I: pbuilder: network access will be disabled during build I: Current time: Fri Jan 12 07:52:16 -12 2024 I: pbuilder-time-stamp: 1705089136 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-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_7.8.3-2.dsc] I: copying [./rocksdb_7.8.3.orig.tar.gz] I: copying [./rocksdb_7.8.3-2.debian.tar.xz] I: Extracting source gpgv: Signature made Sat Jan 7 13:02:37 2023 gpgv: using RSA key 7D887DC8BA7BBBA7B835E3BADCE310E7864CC8BF gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./rocksdb_7.8.3-2.dsc: no acceptable signature found dpkg-source: info: extracting rocksdb in rocksdb-7.8.3 dpkg-source: info: unpacking rocksdb_7.8.3.orig.tar.gz dpkg-source: info: unpacking rocksdb_7.8.3-2.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: using fakeroot in build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/22959/tmp/hooks/D02_print_environment starting I: set BUILDDIR='/build/reproducible-path' BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' BUILDUSERNAME='pbuilder1' BUILD_ARCH='armhf' DEBIAN_FRONTEND='noninteractive' DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' DISTRIBUTION='bookworm' HOME='/root' HOST_ARCH='armhf' IFS=' ' INVOCATION_ID='5d9f05e20ca44496a3ad79358b115d7b' 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='22959' 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.0xHp86bk/pbuilderrc_YT2G --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.0xHp86bk/b1 --logfile b1/build.log rocksdb_7.8.3-2.dsc' SUDO_GID='114' SUDO_UID='108' 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 jtx1a 6.1.0-17-arm64 #1 SMP Debian 6.1.69-1 (2023-12-30) aarch64 GNU/Linux I: ls -l /bin total 4964 -rwxr-xr-x 1 root root 838488 Apr 23 2023 bash -rwxr-xr-x 3 root root 67144 Sep 19 2022 bunzip2 -rwxr-xr-x 3 root root 67144 Sep 19 2022 bzcat lrwxrwxrwx 1 root root 6 Sep 19 2022 bzcmp -> bzdiff -rwxr-xr-x 1 root root 2225 Sep 19 2022 bzdiff lrwxrwxrwx 1 root root 6 Sep 19 2022 bzegrep -> bzgrep -rwxr-xr-x 1 root root 4893 Nov 27 2021 bzexe lrwxrwxrwx 1 root root 6 Sep 19 2022 bzfgrep -> bzgrep -rwxr-xr-x 1 root root 3775 Sep 19 2022 bzgrep -rwxr-xr-x 3 root root 67144 Sep 19 2022 bzip2 -rwxr-xr-x 1 root root 67112 Sep 19 2022 bzip2recover lrwxrwxrwx 1 root root 6 Sep 19 2022 bzless -> bzmore -rwxr-xr-x 1 root root 1297 Sep 19 2022 bzmore -rwxr-xr-x 1 root root 67632 Sep 20 2022 cat -rwxr-xr-x 1 root root 67676 Sep 20 2022 chgrp -rwxr-xr-x 1 root root 67644 Sep 20 2022 chmod -rwxr-xr-x 1 root root 67684 Sep 20 2022 chown -rwxr-xr-x 1 root root 133532 Sep 20 2022 cp -rwxr-xr-x 1 root root 132868 Jan 5 2023 dash -rwxr-xr-x 1 root root 133220 Sep 20 2022 date -rwxr-xr-x 1 root root 67732 Sep 20 2022 dd -rwxr-xr-x 1 root root 68104 Sep 20 2022 df -rwxr-xr-x 1 root root 133632 Sep 20 2022 dir -rwxr-xr-x 1 root root 59128 Mar 23 2023 dmesg lrwxrwxrwx 1 root root 8 Dec 19 2022 dnsdomainname -> hostname lrwxrwxrwx 1 root root 8 Dec 19 2022 domainname -> hostname -rwxr-xr-x 1 root root 67560 Sep 20 2022 echo -rwxr-xr-x 1 root root 41 Jan 24 2023 egrep -rwxr-xr-x 1 root root 67548 Sep 20 2022 false -rwxr-xr-x 1 root root 41 Jan 24 2023 fgrep -rwxr-xr-x 1 root root 55748 Mar 23 2023 findmnt -rwsr-xr-x 1 root root 26208 Mar 23 2023 fusermount -rwxr-xr-x 1 root root 128608 Jan 24 2023 grep -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe -rwxr-xr-x 1 root root 64220 Apr 10 2022 gzip -rwxr-xr-x 1 root root 67032 Dec 19 2022 hostname -rwxr-xr-x 1 root root 67720 Sep 20 2022 ln -rwxr-xr-x 1 root root 35132 Mar 23 2023 login -rwxr-xr-x 1 root root 133632 Sep 20 2022 ls -rwxr-xr-x 1 root root 136808 Mar 23 2023 lsblk -rwxr-xr-x 1 root root 67800 Sep 20 2022 mkdir -rwxr-xr-x 1 root root 67764 Sep 20 2022 mknod -rwxr-xr-x 1 root root 67596 Sep 20 2022 mktemp -rwxr-xr-x 1 root root 38504 Mar 23 2023 more -rwsr-xr-x 1 root root 38496 Mar 23 2023 mount -rwxr-xr-x 1 root root 9824 Mar 23 2023 mountpoint -rwxr-xr-x 1 root root 133532 Sep 20 2022 mv lrwxrwxrwx 1 root root 8 Dec 19 2022 nisdomainname -> hostname lrwxrwxrwx 1 root root 14 Apr 3 2023 pidof -> /sbin/killall5 -rwxr-xr-x 1 root root 67608 Sep 20 2022 pwd lrwxrwxrwx 1 root root 4 Apr 23 2023 rbash -> bash -rwxr-xr-x 1 root root 67600 Sep 20 2022 readlink -rwxr-xr-x 1 root root 67672 Sep 20 2022 rm -rwxr-xr-x 1 root root 67600 Sep 20 2022 rmdir -rwxr-xr-x 1 root root 14152 Jul 28 23:46 run-parts -rwxr-xr-x 1 root root 133372 Jan 5 2023 sed lrwxrwxrwx 1 root root 4 Jan 5 2023 sh -> dash -rwxr-xr-x 1 root root 67584 Sep 20 2022 sleep -rwxr-xr-x 1 root root 67644 Sep 20 2022 stty -rwsr-xr-x 1 root root 50800 Mar 23 2023 su -rwxr-xr-x 1 root root 67584 Sep 20 2022 sync -rwxr-xr-x 1 root root 336764 Apr 6 2023 tar -rwxr-xr-x 1 root root 9800 Jul 28 23:46 tempfile -rwxr-xr-x 1 root root 133224 Sep 20 2022 touch -rwxr-xr-x 1 root root 67548 Sep 20 2022 true -rwxr-xr-x 1 root root 9768 Mar 23 2023 ulockmgr_server -rwsr-xr-x 1 root root 22108 Mar 23 2023 umount -rwxr-xr-x 1 root root 67572 Sep 20 2022 uname -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress -rwxr-xr-x 1 root root 133632 Sep 20 2022 vdir -rwxr-xr-x 1 root root 42608 Mar 23 2023 wdctl lrwxrwxrwx 1 root root 8 Dec 19 2022 ypdomainname -> hostname -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp -rwxr-xr-x 1 root root 6460 Apr 10 2022 zdiff -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce -rwxr-xr-x 1 root root 8103 Apr 10 2022 zgrep -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew I: user script /srv/workspace/pbuilder/22959/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: debhelper-compat (= 13), cmake, libgflags-dev, libsnappy-dev, libbz2-dev, zlib1g-dev, liblz4-dev, libzstd-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 ... 17881 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 debhelper-compat (= 13); however: Package debhelper-compat is not installed. pbuilder-satisfydepends-dummy depends on cmake; however: Package cmake is not installed. pbuilder-satisfydepends-dummy depends on libgflags-dev; however: Package libgflags-dev is not installed. pbuilder-satisfydepends-dummy depends on libsnappy-dev; however: Package libsnappy-dev is not installed. pbuilder-satisfydepends-dummy depends on libbz2-dev; however: Package libbz2-dev is not installed. pbuilder-satisfydepends-dummy depends on zlib1g-dev; however: Package zlib1g-dev is not installed. pbuilder-satisfydepends-dummy depends on liblz4-dev; however: Package liblz4-dev is not installed. pbuilder-satisfydepends-dummy depends on libzstd-dev; however: Package libzstd-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} libarchive13{a} libbrotli1{a} libbz2-dev{a} libcurl4{a} libdebhelper-perl{a} libelf1{a} libexpat1{a} libfile-stripnondeterminism-perl{a} libgflags-dev{a} libgflags2.2{a} libicu72{a} libjsoncpp25{a} libldap-2.5-0{a} liblz4-dev{a} libmagic-mgc{a} libmagic1{a} libnghttp2-14{a} libpipeline1{a} libproc2-0{a} libpsl5{a} librhash0{a} librtmp1{a} libsasl2-2{a} libsasl2-modules-db{a} libsnappy-dev{a} libsnappy1v5{a} libssh2-1{a} libsub-override-perl{a} libtool{a} libuchardet0{a} libuv1{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 libarchive-cpio-perl libldap-common libltdl-dev libmail-sendmail-perl libsasl2-modules lynx psmisc publicsuffix wget 0 packages upgraded, 56 newly installed, 0 to remove and 0 not upgraded. Need to get 28.5 MB of archives. After unpacking 106 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian bookworm/main armhf libproc2-0 armhf 2:4.0.2-3 [54.2 kB] Get: 2 http://deb.debian.org/debian bookworm/main armhf procps armhf 2:4.0.2-3 [695 kB] Get: 3 http://deb.debian.org/debian bookworm/main armhf sensible-utils all 0.0.17+nmu1 [19.0 kB] Get: 4 http://deb.debian.org/debian bookworm/main armhf libmagic-mgc armhf 1:5.44-3 [305 kB] Get: 5 http://deb.debian.org/debian bookworm/main armhf libmagic1 armhf 1:5.44-3 [96.5 kB] Get: 6 http://deb.debian.org/debian bookworm/main armhf file armhf 1:5.44-3 [41.6 kB] Get: 7 http://deb.debian.org/debian bookworm/main armhf gettext-base armhf 0.21-12 [157 kB] Get: 8 http://deb.debian.org/debian bookworm/main armhf libuchardet0 armhf 0.0.7-1 [65.0 kB] Get: 9 http://deb.debian.org/debian bookworm/main armhf groff-base armhf 1.22.4-10 [825 kB] Get: 10 http://deb.debian.org/debian bookworm/main armhf bsdextrautils armhf 2.38.1-5+b1 [78.6 kB] Get: 11 http://deb.debian.org/debian bookworm/main armhf libpipeline1 armhf 1.5.7-1 [33.6 kB] Get: 12 http://deb.debian.org/debian bookworm/main armhf man-db armhf 2.11.2-2 [1351 kB] Get: 13 http://deb.debian.org/debian bookworm/main armhf m4 armhf 1.4.19-3 [265 kB] Get: 14 http://deb.debian.org/debian bookworm/main armhf autoconf all 2.71-3 [332 kB] Get: 15 http://deb.debian.org/debian bookworm/main armhf autotools-dev all 20220109.1 [51.6 kB] Get: 16 http://deb.debian.org/debian bookworm/main armhf automake all 1:1.16.5-1.3 [823 kB] Get: 17 http://deb.debian.org/debian bookworm/main armhf autopoint all 0.21-12 [495 kB] Get: 18 http://deb.debian.org/debian bookworm/main armhf libicu72 armhf 72.1-3 [9048 kB] Get: 19 http://deb.debian.org/debian bookworm/main armhf libxml2 armhf 2.9.14+dfsg-1.3~deb12u1 [591 kB] Get: 20 http://deb.debian.org/debian bookworm/main armhf libarchive13 armhf 3.6.2-1 [299 kB] Get: 21 http://deb.debian.org/debian bookworm/main armhf libbrotli1 armhf 1.0.9-2+b6 [271 kB] Get: 22 http://deb.debian.org/debian bookworm/main armhf libsasl2-modules-db armhf 2.1.28+dfsg-10 [19.0 kB] Get: 23 http://deb.debian.org/debian bookworm/main armhf libsasl2-2 armhf 2.1.28+dfsg-10 [52.3 kB] Get: 24 http://deb.debian.org/debian bookworm/main armhf libldap-2.5-0 armhf 2.5.13+dfsg-5 [158 kB] Get: 25 http://deb.debian.org/debian bookworm/main armhf libnghttp2-14 armhf 1.52.0-1+deb12u1 [62.1 kB] Get: 26 http://deb.debian.org/debian bookworm/main armhf libpsl5 armhf 0.21.2-1 [57.5 kB] Get: 27 http://deb.debian.org/debian bookworm/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2+b2 [55.2 kB] Get: 28 http://deb.debian.org/debian bookworm/main armhf libssh2-1 armhf 1.10.0-3+b1 [163 kB] Get: 29 http://deb.debian.org/debian bookworm/main armhf libcurl4 armhf 7.88.1-10+deb12u4 [350 kB] Get: 30 http://deb.debian.org/debian bookworm/main armhf libexpat1 armhf 2.5.0-1 [79.9 kB] Get: 31 http://deb.debian.org/debian bookworm/main armhf libjsoncpp25 armhf 1.9.5-4 [68.6 kB] Get: 32 http://deb.debian.org/debian bookworm/main armhf librhash0 armhf 1.4.3-3 [146 kB] Get: 33 http://deb.debian.org/debian bookworm/main armhf libuv1 armhf 1.44.2-1 [126 kB] Get: 34 http://deb.debian.org/debian bookworm/main armhf cmake-data all 3.25.1-1 [2026 kB] Get: 35 http://deb.debian.org/debian bookworm/main armhf cmake armhf 3.25.1-1 [4263 kB] Get: 36 http://deb.debian.org/debian bookworm/main armhf libdebhelper-perl all 13.11.4 [81.2 kB] Get: 37 http://deb.debian.org/debian bookworm/main armhf libtool all 2.4.7-5 [517 kB] Get: 38 http://deb.debian.org/debian bookworm/main armhf dh-autoreconf all 20 [17.1 kB] Get: 39 http://deb.debian.org/debian bookworm/main armhf libarchive-zip-perl all 1.68-1 [104 kB] Get: 40 http://deb.debian.org/debian bookworm/main armhf libsub-override-perl all 0.09-4 [9304 B] Get: 41 http://deb.debian.org/debian bookworm/main armhf libfile-stripnondeterminism-perl all 1.13.1-1 [19.4 kB] Get: 42 http://deb.debian.org/debian bookworm/main armhf dh-strip-nondeterminism all 1.13.1-1 [8620 B] Get: 43 http://deb.debian.org/debian bookworm/main armhf libelf1 armhf 0.188-2.1 [170 kB] Get: 44 http://deb.debian.org/debian bookworm/main armhf dwz armhf 0.15-1 [101 kB] Get: 45 http://deb.debian.org/debian bookworm/main armhf gettext armhf 0.21-12 [1229 kB] Get: 46 http://deb.debian.org/debian bookworm/main armhf intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 47 http://deb.debian.org/debian bookworm/main armhf po-debconf all 1.0.21+nmu1 [248 kB] Get: 48 http://deb.debian.org/debian bookworm/main armhf debhelper all 13.11.4 [942 kB] Get: 49 http://deb.debian.org/debian bookworm/main armhf libbz2-dev armhf 1.0.8-5+b1 [28.1 kB] Get: 50 http://deb.debian.org/debian bookworm/main armhf libgflags2.2 armhf 2.2.2-2 [66.4 kB] Get: 51 http://deb.debian.org/debian bookworm/main armhf libgflags-dev armhf 2.2.2-2 [88.6 kB] Get: 52 http://deb.debian.org/debian bookworm/main armhf liblz4-dev armhf 1.9.4-1 [76.6 kB] Get: 53 http://deb.debian.org/debian bookworm/main armhf libsnappy1v5 armhf 1.1.9-3 [23.8 kB] Get: 54 http://deb.debian.org/debian bookworm/main armhf libsnappy-dev armhf 1.1.9-3 [37.5 kB] Get: 55 http://deb.debian.org/debian bookworm/main armhf libzstd-dev armhf 1.5.4+dfsg2-5 [314 kB] Get: 56 http://deb.debian.org/debian bookworm/main armhf zlib1g-dev armhf 1:1.2.13.dfsg-1 [902 kB] Fetched 28.5 MB in 13s (2140 kB/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 ... 17881 files and directories currently installed.) Preparing to unpack .../00-libproc2-0_2%3a4.0.2-3_armhf.deb ... Unpacking libproc2-0:armhf (2:4.0.2-3) ... Selecting previously unselected package procps. Preparing to unpack .../01-procps_2%3a4.0.2-3_armhf.deb ... Unpacking procps (2:4.0.2-3) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../02-sensible-utils_0.0.17+nmu1_all.deb ... Unpacking sensible-utils (0.0.17+nmu1) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../03-libmagic-mgc_1%3a5.44-3_armhf.deb ... Unpacking libmagic-mgc (1:5.44-3) ... Selecting previously unselected package libmagic1:armhf. Preparing to unpack .../04-libmagic1_1%3a5.44-3_armhf.deb ... Unpacking libmagic1:armhf (1:5.44-3) ... Selecting previously unselected package file. Preparing to unpack .../05-file_1%3a5.44-3_armhf.deb ... Unpacking file (1:5.44-3) ... Selecting previously unselected package gettext-base. Preparing to unpack .../06-gettext-base_0.21-12_armhf.deb ... Unpacking gettext-base (0.21-12) ... Selecting previously unselected package libuchardet0:armhf. Preparing to unpack .../07-libuchardet0_0.0.7-1_armhf.deb ... Unpacking libuchardet0:armhf (0.0.7-1) ... Selecting previously unselected package groff-base. Preparing to unpack .../08-groff-base_1.22.4-10_armhf.deb ... Unpacking groff-base (1.22.4-10) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../09-bsdextrautils_2.38.1-5+b1_armhf.deb ... Unpacking bsdextrautils (2.38.1-5+b1) ... Selecting previously unselected package libpipeline1:armhf. Preparing to unpack .../10-libpipeline1_1.5.7-1_armhf.deb ... Unpacking libpipeline1:armhf (1.5.7-1) ... Selecting previously unselected package man-db. Preparing to unpack .../11-man-db_2.11.2-2_armhf.deb ... Unpacking man-db (2.11.2-2) ... Selecting previously unselected package m4. Preparing to unpack .../12-m4_1.4.19-3_armhf.deb ... Unpacking m4 (1.4.19-3) ... Selecting previously unselected package autoconf. Preparing to unpack .../13-autoconf_2.71-3_all.deb ... Unpacking autoconf (2.71-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.21-12_all.deb ... Unpacking autopoint (0.21-12) ... Selecting previously unselected package libicu72:armhf. Preparing to unpack .../17-libicu72_72.1-3_armhf.deb ... Unpacking libicu72:armhf (72.1-3) ... Selecting previously unselected package libxml2:armhf. Preparing to unpack .../18-libxml2_2.9.14+dfsg-1.3~deb12u1_armhf.deb ... Unpacking libxml2:armhf (2.9.14+dfsg-1.3~deb12u1) ... Selecting previously unselected package libarchive13:armhf. Preparing to unpack .../19-libarchive13_3.6.2-1_armhf.deb ... Unpacking libarchive13:armhf (3.6.2-1) ... Selecting previously unselected package libbrotli1:armhf. Preparing to unpack .../20-libbrotli1_1.0.9-2+b6_armhf.deb ... Unpacking libbrotli1:armhf (1.0.9-2+b6) ... Selecting previously unselected package libsasl2-modules-db:armhf. Preparing to unpack .../21-libsasl2-modules-db_2.1.28+dfsg-10_armhf.deb ... Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg-10) ... Selecting previously unselected package libsasl2-2:armhf. Preparing to unpack .../22-libsasl2-2_2.1.28+dfsg-10_armhf.deb ... Unpacking libsasl2-2:armhf (2.1.28+dfsg-10) ... Selecting previously unselected package libldap-2.5-0:armhf. Preparing to unpack .../23-libldap-2.5-0_2.5.13+dfsg-5_armhf.deb ... Unpacking libldap-2.5-0:armhf (2.5.13+dfsg-5) ... Selecting previously unselected package libnghttp2-14:armhf. Preparing to unpack .../24-libnghttp2-14_1.52.0-1+deb12u1_armhf.deb ... Unpacking libnghttp2-14:armhf (1.52.0-1+deb12u1) ... Selecting previously unselected package libpsl5:armhf. Preparing to unpack .../25-libpsl5_0.21.2-1_armhf.deb ... Unpacking libpsl5:armhf (0.21.2-1) ... Selecting previously unselected package librtmp1:armhf. Preparing to unpack .../26-librtmp1_2.4+20151223.gitfa8646d.1-2+b2_armhf.deb ... Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b2) ... Selecting previously unselected package libssh2-1:armhf. Preparing to unpack .../27-libssh2-1_1.10.0-3+b1_armhf.deb ... Unpacking libssh2-1:armhf (1.10.0-3+b1) ... Selecting previously unselected package libcurl4:armhf. Preparing to unpack .../28-libcurl4_7.88.1-10+deb12u4_armhf.deb ... Unpacking libcurl4:armhf (7.88.1-10+deb12u4) ... Selecting previously unselected package libexpat1:armhf. Preparing to unpack .../29-libexpat1_2.5.0-1_armhf.deb ... Unpacking libexpat1:armhf (2.5.0-1) ... Selecting previously unselected package libjsoncpp25:armhf. Preparing to unpack .../30-libjsoncpp25_1.9.5-4_armhf.deb ... Unpacking libjsoncpp25:armhf (1.9.5-4) ... Selecting previously unselected package librhash0:armhf. Preparing to unpack .../31-librhash0_1.4.3-3_armhf.deb ... Unpacking librhash0:armhf (1.4.3-3) ... Selecting previously unselected package libuv1:armhf. Preparing to unpack .../32-libuv1_1.44.2-1_armhf.deb ... Unpacking libuv1:armhf (1.44.2-1) ... Selecting previously unselected package cmake-data. Preparing to unpack .../33-cmake-data_3.25.1-1_all.deb ... Unpacking cmake-data (3.25.1-1) ... Selecting previously unselected package cmake. Preparing to unpack .../34-cmake_3.25.1-1_armhf.deb ... Unpacking cmake (3.25.1-1) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../35-libdebhelper-perl_13.11.4_all.deb ... Unpacking libdebhelper-perl (13.11.4) ... Selecting previously unselected package libtool. Preparing to unpack .../36-libtool_2.4.7-5_all.deb ... Unpacking libtool (2.4.7-5) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../37-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../38-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libsub-override-perl. Preparing to unpack .../39-libsub-override-perl_0.09-4_all.deb ... Unpacking libsub-override-perl (0.09-4) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../40-libfile-stripnondeterminism-perl_1.13.1-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.13.1-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../41-dh-strip-nondeterminism_1.13.1-1_all.deb ... Unpacking dh-strip-nondeterminism (1.13.1-1) ... Selecting previously unselected package libelf1:armhf. Preparing to unpack .../42-libelf1_0.188-2.1_armhf.deb ... Unpacking libelf1:armhf (0.188-2.1) ... Selecting previously unselected package dwz. Preparing to unpack .../43-dwz_0.15-1_armhf.deb ... Unpacking dwz (0.15-1) ... Selecting previously unselected package gettext. Preparing to unpack .../44-gettext_0.21-12_armhf.deb ... Unpacking gettext (0.21-12) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../45-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 .../46-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../47-debhelper_13.11.4_all.deb ... Unpacking debhelper (13.11.4) ... Selecting previously unselected package libbz2-dev:armhf. Preparing to unpack .../48-libbz2-dev_1.0.8-5+b1_armhf.deb ... Unpacking libbz2-dev:armhf (1.0.8-5+b1) ... Selecting previously unselected package libgflags2.2. Preparing to unpack .../49-libgflags2.2_2.2.2-2_armhf.deb ... Unpacking libgflags2.2 (2.2.2-2) ... Selecting previously unselected package libgflags-dev. Preparing to unpack .../50-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 .../51-liblz4-dev_1.9.4-1_armhf.deb ... Unpacking liblz4-dev:armhf (1.9.4-1) ... Selecting previously unselected package libsnappy1v5:armhf. Preparing to unpack .../52-libsnappy1v5_1.1.9-3_armhf.deb ... Unpacking libsnappy1v5:armhf (1.1.9-3) ... Selecting previously unselected package libsnappy-dev:armhf. Preparing to unpack .../53-libsnappy-dev_1.1.9-3_armhf.deb ... Unpacking libsnappy-dev:armhf (1.1.9-3) ... Selecting previously unselected package libzstd-dev:armhf. Preparing to unpack .../54-libzstd-dev_1.5.4+dfsg2-5_armhf.deb ... Unpacking libzstd-dev:armhf (1.5.4+dfsg2-5) ... Selecting previously unselected package zlib1g-dev:armhf. Preparing to unpack .../55-zlib1g-dev_1%3a1.2.13.dfsg-1_armhf.deb ... Unpacking zlib1g-dev:armhf (1:1.2.13.dfsg-1) ... Setting up libexpat1:armhf (2.5.0-1) ... Setting up libpipeline1:armhf (1.5.7-1) ... Setting up libpsl5:armhf (0.21.2-1) ... Setting up libicu72:armhf (72.1-3) ... Setting up libzstd-dev:armhf (1.5.4+dfsg2-5) ... Setting up bsdextrautils (2.38.1-5+b1) ... Setting up libmagic-mgc (1:5.44-3) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.11.4) ... Setting up libbrotli1:armhf (1.0.9-2+b6) ... Setting up libnghttp2-14:armhf (1.52.0-1+deb12u1) ... Setting up libmagic1:armhf (1:5.44-3) ... Setting up gettext-base (0.21-12) ... Setting up m4 (1.4.19-3) ... Setting up file (1:5.44-3) ... Setting up libsnappy1v5:armhf (1.1.9-3) ... Setting up libsasl2-modules-db:armhf (2.1.28+dfsg-10) ... Setting up autotools-dev (20220109.1) ... Setting up libuv1:armhf (1.44.2-1) ... Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b2) ... Setting up libproc2-0:armhf (2:4.0.2-3) ... Setting up autopoint (0.21-12) ... Setting up libjsoncpp25:armhf (1.9.5-4) ... Setting up liblz4-dev:armhf (1.9.4-1) ... Setting up libsasl2-2:armhf (2.1.28+dfsg-10) ... Setting up autoconf (2.71-3) ... Setting up zlib1g-dev:armhf (1:1.2.13.dfsg-1) ... Setting up sensible-utils (0.0.17+nmu1) ... Setting up librhash0:armhf (1.4.3-3) ... Setting up libuchardet0:armhf (0.0.7-1) ... Setting up procps (2:4.0.2-3) ... Setting up libsub-override-perl (0.09-4) ... Setting up libssh2-1:armhf (1.10.0-3+b1) ... Setting up cmake-data (3.25.1-1) ... Setting up libelf1:armhf (0.188-2.1) ... Setting up libxml2:armhf (2.9.14+dfsg-1.3~deb12u1) ... Setting up libgflags2.2 (2.2.2-2) ... Setting up libbz2-dev:armhf (1.0.8-5+b1) ... 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.13.1-1) ... Setting up gettext (0.21-12) ... Setting up libtool (2.4.7-5) ... Setting up libarchive13:armhf (3.6.2-1) ... Setting up libsnappy-dev:armhf (1.1.9-3) ... Setting up libldap-2.5-0:armhf (2.5.13+dfsg-5) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up libgflags-dev (2.2.2-2) ... Setting up dh-strip-nondeterminism (1.13.1-1) ... Setting up dwz (0.15-1) ... Setting up groff-base (1.22.4-10) ... Setting up libcurl4:armhf (7.88.1-10+deb12u4) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up man-db (2.11.2-2) ... Not building database; man-db/auto-update is not 'true'. Setting up cmake (3.25.1-1) ... Setting up debhelper (13.11.4) ... Processing triggers for libc-bin (2.36-9+deb12u3) ... 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 Reading package lists... Building dependency tree... Reading state information... fakeroot is already the newest version (1.31-1.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package I: Running cd /build/reproducible-path/rocksdb-7.8.3/ && 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_7.8.3-2_source.changes dpkg-buildpackage: info: source package rocksdb dpkg-buildpackage: info: source version 7.8.3-2 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Laszlo Boszormenyi (GCS) dpkg-source --before-build . dpkg-buildpackage: info: host architecture armhf fakeroot 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 build dh build --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-7.8.3' 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=ON \ -DFAIL_ON_WARNINGS=OFF cd obj-arm-linux-gnueabihf && 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=ON -DFAIL_ON_WARNINGS=OFF .. -- The CXX compiler identification is GNU 12.2.0 -- The C compiler identification is GNU 12.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.2.13") -- 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 - not 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 -- Generating done 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-7.8.3/obj-arm-linux-gnueabihf make[1]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3' dh_auto_build -O--buildsystem=cmake cd obj-arm-linux-gnueabihf && make -j3 "INSTALL=install --strip-program=true" VERBOSE=1 make[1]: Entering directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' /usr/bin/cmake -S/build/reproducible-path/rocksdb-7.8.3 -B/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf/CMakeFiles /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf//CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[2]: Entering directory '/build/reproducible-path/rocksdb-7.8.3/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-7.8.3/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-7.8.3 /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src/gtest /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest /build/reproducible-path/rocksdb-7.8.3/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-7.8.3/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-7.8.3 /build/reproducible-path/rocksdb-7.8.3 /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf/CMakeFiles/rocksdb.dir/DependInfo.cmake --color= make[3]: Entering directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-7.8.3 /build/reproducible-path/rocksdb-7.8.3 /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf/CMakeFiles/rocksdb-shared.dir/DependInfo.cmake --color= make[3]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3/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-7.8.3/obj-arm-linux-gnueabihf' make[3]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/build [ 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-7.8.3/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest && /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc make[3]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3/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-7.8.3/obj-arm-linux-gnueabihf' make[3]: Entering directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' [ 0%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/cache/cache.cc [ 0%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/cache/cache.cc [ 1%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o [ 1%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/cache/cache_entry_roles.cc /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/cache/cache_entry_roles.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_key.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/cache/cache_key.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/cache/cache_key.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/cache/cache_reservation_manager.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/cache/cache_reservation_manager.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/cache/charged_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/cache/charged_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/cache/clock_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/cache/clock_cache.cc [ 2%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/cache/compressed_secondary_cache.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/cache/compressed_secondary_cache.cc [ 2%] Linking CXX static library libgtest.a cd /build/reproducible-path/rocksdb-7.8.3/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-7.8.3/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest && /usr/bin/cmake -E cmake_link_script CMakeFiles/gtest.dir/link.txt --verbose=1 /usr/bin/ar qc libgtest.a "CMakeFiles/gtest.dir/gtest-all.cc.o" /usr/bin/ranlib libgtest.a make[3]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' [ 2%] Built target gtest make -f CMakeFiles/testharness.dir/build.make CMakeFiles/testharness.dir/depend make[3]: Entering directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-7.8.3 /build/reproducible-path/rocksdb-7.8.3 /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf/CMakeFiles/testharness.dir/DependInfo.cmake --color= make[3]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' make -f CMakeFiles/testharness.dir/build.make CMakeFiles/testharness.dir/build make[3]: Entering directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' [ 2%] Building CXX object CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/test_util/mock_time_env.cc [ 2%] Building CXX object CMakeFiles/testharness.dir/test_util/testharness.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/test_util/testharness.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/fast_lru_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -MD -MT CMakeFiles/rocksdb-shared.dir/cache/fast_lru_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/fast_lru_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/fast_lru_cache.cc.o -c /build/reproducible-path/rocksdb-7.8.3/cache/fast_lru_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/fast_lru_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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/fast_lru_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/fast_lru_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/fast_lru_cache.cc.o -c /build/reproducible-path/rocksdb-7.8.3/cache/fast_lru_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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/cache/lru_cache.cc [ 3%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/cache/lru_cache.cc [ 4%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o [ 4%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/cache/sharded_cache.cc /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/cache/sharded_cache.cc [ 4%] Linking CXX static library libtestharness.a /usr/bin/cmake -P CMakeFiles/testharness.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/testharness.dir/link.txt --verbose=1 /usr/bin/ar qc libtestharness.a CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o CMakeFiles/testharness.dir/test_util/testharness.cc.o /usr/bin/ranlib libtestharness.a make[3]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' [ 4%] Built target testharness [ 4%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/arena_wrapped_db_iter.cc [ 4%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_contents.cc [ 4%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/arena_wrapped_db_iter.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_fetcher.cc [ 4%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_builder.cc.o [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_file_addition.cc /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_file_builder.cc [ 4%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_contents.cc [ 4%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_file_cache.cc [ 4%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_fetcher.cc [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_file_garbage.cc In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62, from /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_builder.h:8, from /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_builder.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&, long long unsigned int&, long long unsigned int&, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const long long unsigned int&, long long unsigned int&, long long unsigned int&, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::BlobFileBuilder::CloseBlobFile()' at /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_builder.cc:340:37: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 5%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_file_addition.cc [ 5%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_file_builder.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_file_cache.cc [ 6%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_file_meta.cc [ 6%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_file_reader.cc [ 6%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_garbage_meter.cc In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62, from /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_builder.h:8, from /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_builder.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&, long long unsigned int&, long long unsigned int&, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const long long unsigned int&, long long unsigned int&, long long unsigned int&, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::BlobFileBuilder::CloseBlobFile()' at /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_builder.cc:340:37: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_file_garbage.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_log_format.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:12, from /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_read_request.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_reader.h:11, from /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_reader.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::FSReadRequest&}; _Tp = rocksdb::FSReadRequest; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::push_back(const T&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:297:22, inlined from 'void rocksdb::BlobFileReader::MultiGetBlob(const rocksdb::ReadOptions&, rocksdb::MemoryAllocator*, rocksdb::autovector > >&, uint64_t*) const' at /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_reader.cc:421:26: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::FSReadRequest&}; _Tp = rocksdb::FSReadRequest; _Alloc = std::allocator]', inlined from 'void rocksdb::BlobFileReader::MultiGetBlob(const rocksdb::ReadOptions&, rocksdb::MemoryAllocator*, rocksdb::autovector > >&, uint64_t*) const' at /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_reader.cc:426:27: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_file_meta.cc [ 6%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_log_sequential_reader.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_file_reader.cc [ 6%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_garbage_meter.cc [ 6%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_log_writer.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:12, from /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_read_request.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_reader.h:11, from /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_reader.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::FSReadRequest&}; _Tp = rocksdb::FSReadRequest; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::push_back(const T&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:297:22, inlined from 'void rocksdb::BlobFileReader::MultiGetBlob(const rocksdb::ReadOptions&, rocksdb::MemoryAllocator*, rocksdb::autovector > >&, uint64_t*) const' at /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_reader.cc:421:26: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::FSReadRequest&}; _Tp = rocksdb::FSReadRequest; _Alloc = std::allocator]', inlined from 'void rocksdb::BlobFileReader::MultiGetBlob(const rocksdb::ReadOptions&, rocksdb::MemoryAllocator*, rocksdb::autovector > >&, uint64_t*) const' at /build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_reader.cc:426:27: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/blob/blob_source.cc [ 7%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_log_format.cc [ 7%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_log_sequential_reader.cc [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/builder.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_log_writer.cc [ 8%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/c.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/blob_source.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/blob/prefetch_buffer_collection.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/column_family.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/c.cc:17: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:63: /usr/include/c++/12/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++/12/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++/12/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++/12/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++/12/bits/stl_uninitialized.h:372: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++/12/bits/stl_vector.h:1617: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++/12/bits/vector.tcc:232:44, inlined from 'void rocksdb_options_set_db_paths(rocksdb_options_t*, const rocksdb_dbpath_t**, size_t)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:2924:23: /usr/include/c++/12/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++/12/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++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h:450:8: /usr/include/c++/12/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++/12/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++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h:65:8: /usr/include/c++/12/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {std::__cxx11::basic_string, std::allocator >, rocksdb::ColumnFamilyOptions}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_transactiondb_t* rocksdb_transactiondb_open_column_families(const rocksdb_options_t*, const rocksdb_transactiondb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:5533:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_t* rocksdb_open_column_families(const rocksdb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:881:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_optimistictransactiondb_t* rocksdb_optimistictransactiondb_open_column_families(const rocksdb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:6243:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_t* rocksdb_open_for_read_only_column_families(const rocksdb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, unsigned char, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:946:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_t* rocksdb_open_and_trim_history(const rocksdb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, char*, size_t, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:848:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/builder.cc In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_t* rocksdb_open_column_families_with_ttl(const rocksdb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, const int*, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:914:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {std::__cxx11::basic_string, std::allocator >, rocksdb::ColumnFamilyOptions}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'rocksdb_t* rocksdb_open_as_secondary_column_families(const rocksdb_options_t*, const char*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:978:33: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/compaction.cc In file included from /usr/include/c++/12/vector:63, from /build/reproducible-path/rocksdb-7.8.3/db/column_family.h:15, from /build/reproducible-path/rocksdb-7.8.3/db/column_family.cc:10: /usr/include/c++/12/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++/12/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++/12/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++/12/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++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h:65:8: /usr/include/c++/12/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++/12/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++/12/bits/stl_uninitialized.h:372: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++/12/bits/stl_vector.h:1617: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++/12/bits/vector.tcc:232:44, inlined from 'rocksdb::ColumnFamilyOptions rocksdb::SanitizeOptions(const ImmutableDBOptions&, const ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/column_family.cc:365:34: /usr/include/c++/12/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 8%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/compaction_iterator.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/c.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/c.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/compaction_job.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/c.cc:17: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:63: /usr/include/c++/12/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++/12/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++/12/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++/12/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++/12/bits/stl_uninitialized.h:372: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++/12/bits/stl_vector.h:1617: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++/12/bits/vector.tcc:232:44, inlined from 'void rocksdb_options_set_db_paths(rocksdb_options_t*, const rocksdb_dbpath_t**, size_t)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:2924:23: /usr/include/c++/12/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++/12/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++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h:450:8: /usr/include/c++/12/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++/12/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++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h:65:8: /usr/include/c++/12/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {std::__cxx11::basic_string, std::allocator >, rocksdb::ColumnFamilyOptions}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_transactiondb_t* rocksdb_transactiondb_open_column_families(const rocksdb_options_t*, const rocksdb_transactiondb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:5533:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_optimistictransactiondb_t* rocksdb_optimistictransactiondb_open_column_families(const rocksdb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:6243:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_t* rocksdb_open_column_families(const rocksdb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:881:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_t* rocksdb_open_for_read_only_column_families(const rocksdb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, unsigned char, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:946:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_t* rocksdb_open_and_trim_history(const rocksdb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, char*, size_t, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:848:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb_t* rocksdb_open_column_families_with_ttl(const rocksdb_options_t*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, const int*, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:914:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {std::__cxx11::basic_string, std::allocator >, rocksdb::ColumnFamilyOptions}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'rocksdb_t* rocksdb_open_as_secondary_column_families(const rocksdb_options_t*, const char*, const char*, int, const char* const*, const rocksdb_options_t* const*, rocksdb_column_family_handle_t**, char**)' at /build/reproducible-path/rocksdb-7.8.3/db/c.cc:978:33: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 9%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/column_family.cc [ 9%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/compaction.cc In file included from /usr/include/c++/12/vector:63, from /build/reproducible-path/rocksdb-7.8.3/db/column_family.h:15, from /build/reproducible-path/rocksdb-7.8.3/db/column_family.cc:10: /usr/include/c++/12/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++/12/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++/12/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++/12/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++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h:65:8: /usr/include/c++/12/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++/12/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++/12/bits/stl_uninitialized.h:372: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++/12/bits/stl_vector.h:1617: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++/12/bits/vector.tcc:232:44, inlined from 'rocksdb::ColumnFamilyOptions rocksdb::SanitizeOptions(const ImmutableDBOptions&, const ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/column_family.cc:365:34: /usr/include/c++/12/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++/12/vector:70, from /usr/include/c++/12/functional:62, from /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:10: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::BlobFileAddition}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int&, long long unsigned int&, long long unsigned int&}; _Tp = rocksdb::BlobFileGarbage; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::Compaction*&, std::optional, std::optional, unsigned int}; _Tp = rocksdb::SubcompactionState; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 [ 10%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/compaction_iterator.cc /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, const rocksdb::FileMetaData&}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, const rocksdb::FileMetaData&}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:445:28, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/subcompaction_state.h:170:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:1679:31: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, const rocksdb::FileMetaData&}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:445:28, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/subcompaction_state.h:173:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:1679:31: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::BlobFileAddition}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]', inlined from 'void rocksdb::VersionEdit::AddBlobFile(rocksdb::BlobFileAddition)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:483:38, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:1682:24: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int&, long long unsigned int&, long long unsigned int&}; _Tp = rocksdb::BlobFileGarbage; _Alloc = std::allocator]', inlined from 'void rocksdb::VersionEdit::AddBlobFileGarbage(uint64_t, uint64_t, uint64_t)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:502:37, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:1705:29: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::FileMetaData, const rocksdb::InternalKeyComparator&, bool&, bool&, bool&, long long unsigned int&}; _Tp = rocksdb::CompactionOutputs::Output; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::FileMetaData, const rocksdb::InternalKeyComparator&, bool&, bool&, bool&, long long unsigned int&}; _Tp = rocksdb::CompactionOutputs::Output; _Alloc = std::allocator]', inlined from 'void rocksdb::CompactionOutputs::AddOutput(rocksdb::FileMetaData&&, const rocksdb::InternalKeyComparator&, bool, bool, bool, uint64_t)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_outputs.h:54:26, inlined from 'rocksdb::Status rocksdb::CompactionJob::OpenCompactionOutputFile(rocksdb::SubcompactionState*, rocksdb::CompactionOutputs&)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:1856:22: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::Compaction*&, std::optional, std::optional, unsigned int}; _Tp = rocksdb::SubcompactionState; _Alloc = std::allocator]', inlined from 'void rocksdb::CompactionJob::Prepare()' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:267:48: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 10%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/compaction_picker.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/compaction_picker_fifo.cc [ 10%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/compaction_job.cc [ 10%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/compaction_picker_level.cc [ 10%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/compaction_picker_fifo.cc [ 10%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/compaction_picker_universal.cc In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62, from /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:10: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::BlobFileAddition}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int&, long long unsigned int&, long long unsigned int&}; _Tp = rocksdb::BlobFileGarbage; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 [ 10%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/compaction_picker_level.cc /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::Compaction*&, std::optional, std::optional, unsigned int}; _Tp = rocksdb::SubcompactionState; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, const rocksdb::FileMetaData&}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, const rocksdb::FileMetaData&}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:445:28, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/subcompaction_state.h:170:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:1679:31: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, const rocksdb::FileMetaData&}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:445:28, inlined from 'void rocksdb::SubcompactionState::AddOutputsEdit(rocksdb::VersionEdit*) const' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/subcompaction_state.h:173:24, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:1679:31: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::BlobFileAddition}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]', inlined from 'void rocksdb::VersionEdit::AddBlobFile(rocksdb::BlobFileAddition)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:483:38, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:1682:24: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int&, long long unsigned int&, long long unsigned int&}; _Tp = rocksdb::BlobFileGarbage; _Alloc = std::allocator]', inlined from 'void rocksdb::VersionEdit::AddBlobFileGarbage(uint64_t, uint64_t, uint64_t)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:502:37, inlined from 'rocksdb::Status rocksdb::CompactionJob::InstallCompactionResults(const rocksdb::MutableCFOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:1705:29: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::FileMetaData, const rocksdb::InternalKeyComparator&, bool&, bool&, bool&, long long unsigned int&}; _Tp = rocksdb::CompactionOutputs::Output; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::FileMetaData, const rocksdb::InternalKeyComparator&, bool&, bool&, bool&, long long unsigned int&}; _Tp = rocksdb::CompactionOutputs::Output; _Alloc = std::allocator]', inlined from 'void rocksdb::CompactionOutputs::AddOutput(rocksdb::FileMetaData&&, const rocksdb::InternalKeyComparator&, bool, bool, bool, uint64_t)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_outputs.h:54:26, inlined from 'rocksdb::Status rocksdb::CompactionJob::OpenCompactionOutputFile(rocksdb::SubcompactionState*, rocksdb::CompactionOutputs&)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:1856:22: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::Compaction*&, std::optional, std::optional, unsigned int}; _Tp = rocksdb::SubcompactionState; _Alloc = std::allocator]', inlined from 'void rocksdb::CompactionJob::Prepare()' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.cc:267:48: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 10%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/compaction_service_job.cc [ 10%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/compaction_picker_universal.cc [ 10%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/compaction_service_job.cc [ 11%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/compaction_state.cc In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62, from /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_service_job.cc:11: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::Compaction*&, std::optional, std::optional, int}; _Tp = rocksdb::SubcompactionState; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62, from /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_job.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_service_job.cc:11: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::Compaction*&, std::optional, std::optional, int}; _Tp = rocksdb::SubcompactionState; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {std::__cxx11::basic_string, std::allocator >, const long long unsigned int&, const long long unsigned int&, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, const long long unsigned int&, const long long unsigned int&, long long unsigned int, const bool&, const std::array&}; _Tp = rocksdb::CompactionServiceOutputFile; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::Compaction*&, std::optional, std::optional, int}; _Tp = rocksdb::SubcompactionState; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::CompactionServiceCompactionJob::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_service_job.cc:266:44: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {std::__cxx11::basic_string, std::allocator >, const long long unsigned int&, const long long unsigned int&, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, const long long unsigned int&, const long long unsigned int&, long long unsigned int, const bool&, const std::array&}; _Tp = rocksdb::CompactionServiceOutputFile; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::CompactionServiceCompactionJob::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_service_job.cc:332:50: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {std::__cxx11::basic_string, std::allocator >, const long long unsigned int&, const long long unsigned int&, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, const long long unsigned int&, const long long unsigned int&, long long unsigned int, const bool&, const std::array&}; _Tp = rocksdb::CompactionServiceOutputFile; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::Compaction*&, std::optional, std::optional, int}; _Tp = rocksdb::SubcompactionState; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::CompactionServiceCompactionJob::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_service_job.cc:266:44: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {std::__cxx11::basic_string, std::allocator >, const long long unsigned int&, const long long unsigned int&, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, const long long unsigned int&, const long long unsigned int&, long long unsigned int, const bool&, const std::array&}; _Tp = rocksdb::CompactionServiceOutputFile; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::CompactionServiceCompactionJob::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_service_job.cc:332:50: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::ParseVector(const ConfigOptions&, const OptionTypeInfo&, char, const std::string&, const std::string&, std::vector<_RealType>*) [with T = long long unsigned int]' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/utilities/options_type.h:1124:29: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::CompactionServiceOutputFile&}; _Tp = rocksdb::CompactionServiceOutputFile; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::ParseVector(const ConfigOptions&, const OptionTypeInfo&, char, const std::string&, const std::string&, std::vector<_RealType>*) [with T = long long unsigned int]' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/utilities/options_type.h:1124:29: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::CompactionServiceOutputFile&}; _Tp = rocksdb::CompactionServiceOutputFile; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::ParseVector(const ConfigOptions&, const OptionTypeInfo&, char, const std::string&, const std::string&, std::vector<_RealType>*) [with T = CompactionServiceOutputFile]' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/utilities/options_type.h:1124:29: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::FileMetaData, const rocksdb::InternalKeyComparator&, bool&, bool&, bool&, long long unsigned int&}; _Tp = rocksdb::CompactionOutputs::Output; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::CompactionServiceOutputFile&}; _Tp = rocksdb::CompactionServiceOutputFile; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::CompactionServiceOutputFile&}; _Tp = rocksdb::CompactionServiceOutputFile; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::ParseVector(const ConfigOptions&, const OptionTypeInfo&, char, const std::string&, const std::string&, std::vector<_RealType>*) [with T = CompactionServiceOutputFile]' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/utilities/options_type.h:1124:29: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::FileMetaData, const rocksdb::InternalKeyComparator&, bool&, bool&, bool&, long long unsigned int&}; _Tp = rocksdb::CompactionOutputs::Output; _Alloc = std::allocator]', inlined from 'void rocksdb::CompactionOutputs::AddOutput(rocksdb::FileMetaData&&, const rocksdb::InternalKeyComparator&, bool, bool, bool, uint64_t)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_outputs.h:54:26, inlined from 'rocksdb::CompactionServiceJobStatus rocksdb::CompactionJob::ProcessKeyValueCompactionWithCompactionService(rocksdb::SubcompactionState*)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_service_job.cc:197:37: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::FileMetaData, const rocksdb::InternalKeyComparator&, bool&, bool&, bool&, long long unsigned int&}; _Tp = rocksdb::CompactionOutputs::Output; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::FileMetaData, const rocksdb::InternalKeyComparator&, bool&, bool&, bool&, long long unsigned int&}; _Tp = rocksdb::CompactionOutputs::Output; _Alloc = std::allocator]', inlined from 'void rocksdb::CompactionOutputs::AddOutput(rocksdb::FileMetaData&&, const rocksdb::InternalKeyComparator&, bool, bool, bool, uint64_t)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_outputs.h:54:26, inlined from 'rocksdb::CompactionServiceJobStatus rocksdb::CompactionJob::ProcessKeyValueCompactionWithCompactionService(rocksdb::SubcompactionState*)' at /build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_service_job.cc:197:37: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/compaction_state.cc [ 12%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/compaction_outputs.cc [ 12%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/compaction_outputs.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/sst_partitioner.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/compaction/subcompaction_state.cc [ 12%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/sst_partitioner.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/convenience.cc [ 12%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/compaction/subcompaction_state.cc [ 12%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_filesnapshot.cc [ 12%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_impl/compacted_db_impl.cc [ 12%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/convenience.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/db_filesnapshot.cc:13: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'virtual rocksdb::Status rocksdb::DBImpl::GetSortedWalFiles(rocksdb::VectorLogPtr&)' at /build/reproducible-path/rocksdb-7.8.3/db/db_filesnapshot.cc:148:37: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {}; _Tp = rocksdb::LiveFileStorageInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = rocksdb::LiveFileStorageInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 12%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_impl/db_impl.cc [ 12%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_filesnapshot.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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_impl/db_impl_write.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/db_filesnapshot.cc:13: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'virtual rocksdb::Status rocksdb::DBImpl::GetSortedWalFiles(rocksdb::VectorLogPtr&)' at /build/reproducible-path/rocksdb-7.8.3/db/db_filesnapshot.cc:148:37: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {}; _Tp = rocksdb::LiveFileStorageInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = rocksdb::LiveFileStorageInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 13%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_impl/compacted_db_impl.cc [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_impl/db_impl_compaction_flush.cc In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.cc:9: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int&, rocksdb::WalMetadata}; _Tp = rocksdb::WalAddition; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ [ 14%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_impl/db_impl.cc In file included from /usr/include/c++/12/map:60, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:16: /usr/include/c++/12/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++/12/bits/stl_tree.h:2457: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 2457 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/map:61: /usr/include/c++/12/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++/12/bits/stl_map.h:511: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 511 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 512 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 513 | std::tuple<>()); | ~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyHandle*&, const rocksdb::Slice&, rocksdb::PinnableSlice*, std::__cxx11::basic_string, std::allocator >*, rocksdb::Status*}; _Tp = rocksdb::KeyContext; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyHandle*&, const rocksdb::Slice&, rocksdb::PinnableSlice*, std::__cxx11::basic_string, std::allocator >*, rocksdb::Status*}; _Tp = rocksdb::KeyContext; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {}; _Tp = rocksdb::ColumnFamilyMetaData; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = rocksdb::ColumnFamilyMetaData; _Alloc = std::allocator]', inlined from 'virtual void rocksdb::DBImpl::GetAllColumnFamilyMetaData(std::vector*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.cc:4386:29: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyOptions}; _Tp = rocksdb::ColumnFamilyOptions; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyOptions}; _Tp = rocksdb::ColumnFamilyOptions; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyOptions; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteOptionsFile(bool, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.cc:4763:22: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/deque:63, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:12: /usr/include/c++/12/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::LiveFileMetaData*]': /usr/include/c++/12/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++/12/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::LiveFileMetaData*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::LiveFileMetaData*]' at /usr/include/c++/12/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::LiveFileMetaData*; _Tp = rocksdb::LiveFileMetaData]' at /usr/include/c++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::LiveFileMetaData; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::ImportColumnFamilyJob::ImportColumnFamilyJob(rocksdb::VersionSet*, rocksdb::ColumnFamilyData*, const rocksdb::ImmutableDBOptions&, const rocksdb::EnvOptions&, const rocksdb::ImportColumnFamilyOptions&, const std::vector&, const std::shared_ptr&)' at /build/reproducible-path/rocksdb-7.8.3/db/import_column_family_job.h:42:9: /usr/include/c++/12/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int&, rocksdb::WalMetadata}; _Tp = rocksdb::WalAddition; _Alloc = std::allocator]', inlined from 'void rocksdb::VersionEdit::AddWal(rocksdb::WalNumber, rocksdb::WalMetadata)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:525:32, inlined from 'void rocksdb::DBImpl::MarkLogsSynced(uint64_t, bool, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.cc:1601:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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-7.8.3/db/db_impl/db_impl.cc:983:74: /usr/include/c++/12/bits/stl_map.h:511: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 511 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 512 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 513 | 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-7.8.3/db/db_impl/db_impl.cc:983:33: /usr/include/c++/12/bits/stl_map.h:511: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 511 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 512 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 513 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/builder.h:11, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:12: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::SnapshotList::GetAll(std::vector*, rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-7.8.3/db/snapshot_impl.h:133:22, inlined from 'std::vector rocksdb::SnapshotList::GetAll(rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-7.8.3/db/snapshot_impl.h:108:11, inlined from 'void rocksdb::DBImpl::GetSnapshotContext(rocksdb::JobContext*, std::vector*, rocksdb::SequenceNumber*, rocksdb::SnapshotChecker**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:3842:37: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const rocksdb::MutableCFOptions&}; _Tp = rocksdb::MutableCFOptions; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyData* const&, long long unsigned int&}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyData* const&, long long unsigned int&}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::DBImpl::GenerateFlushRequest(const rocksdb::autovector&, FlushRequest*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:2013:22: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::BlobFileAdditionInfo}; _Tp = rocksdb::BlobFileAdditionInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::BlobFileGarbageInfo}; _Tp = rocksdb::BlobFileGarbageInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {long long unsigned int}; T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:317:25, inlined from 'rocksdb::Status rocksdb::DBImpl::FlushMemTable(rocksdb::ColumnFamilyData*, const rocksdb::FlushOptions&, rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:2073:42: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {long long unsigned int}; T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:317:25, inlined from 'rocksdb::Status rocksdb::DBImpl::FlushMemTable(rocksdb::ColumnFamilyData*, const rocksdb::FlushOptions&, rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:2101:46: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyData*&, const long long unsigned int&, rocksdb::SuperVersionContext*}; _Tp = rocksdb::DBImpl::BGFlushArg; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::CompactionFileInfo}; _Tp = rocksdb::CompactionFileInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/12/bits/vector.tcc: In function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::CompactionFileInfo}; _Tp = rocksdb::CompactionFileInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const rocksdb::MutableCFOptions&}; _Tp = rocksdb::MutableCFOptions; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::DBImpl::AtomicFlushMemTablesToOutputFiles(const rocksdb::autovector&, bool*, rocksdb::JobContext*, rocksdb::LogBuffer*, rocksdb::Env::Priority)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:459:40: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 14%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_impl/db_impl_files.cc In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyData*&, const long long unsigned int&, rocksdb::SuperVersionContext*}; _Tp = rocksdb::DBImpl::BGFlushArg; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {rocksdb::ColumnFamilyData*&, const long long unsigned int&, rocksdb::SuperVersionContext*}; T = rocksdb::DBImpl::BGFlushArg; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:317:25, inlined from 'rocksdb::Status rocksdb::DBImpl::BackgroundFlush(bool*, rocksdb::JobContext*, rocksdb::LogBuffer*, rocksdb::FlushReason*, rocksdb::Env::Priority)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:2820:33: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::BlobFileAdditionInfo}; _Tp = rocksdb::BlobFileAdditionInfo; _Alloc = std::allocator]', inlined from 'void rocksdb::DBImpl::BuildCompactionJobInfo(const rocksdb::ColumnFamilyData*, rocksdb::Compaction*, const rocksdb::Status&, const rocksdb::CompactionJobStats&, int, const rocksdb::Version*, rocksdb::CompactionJobInfo*) const' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:3720:63: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::BlobFileGarbageInfo}; _Tp = rocksdb::BlobFileGarbageInfo; _Alloc = std::allocator]', inlined from 'void rocksdb::DBImpl::BuildCompactionJobInfo(const rocksdb::ColumnFamilyData*, rocksdb::Compaction*, const rocksdb::Status&, const rocksdb::CompactionJobStats&, int, const rocksdb::Version*, rocksdb::CompactionJobInfo*) const' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:3731:62: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 14%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_impl/db_impl_open.cc In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.cc:9: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int&, rocksdb::WalMetadata}; _Tp = rocksdb::WalAddition; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/map:60, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:16: /usr/include/c++/12/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++/12/bits/stl_tree.h:2457: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 2457 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/map:61: /usr/include/c++/12/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++/12/bits/stl_map.h:511: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 511 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 512 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 513 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_files.cc:13: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::DBImpl::FindObsoleteFiles(rocksdb::JobContext*, bool, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_files.cc:302:48: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyHandle*&, const rocksdb::Slice&, rocksdb::PinnableSlice*, std::__cxx11::basic_string, std::allocator >*, rocksdb::Status*}; _Tp = rocksdb::KeyContext; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyHandle*&, const rocksdb::Slice&, rocksdb::PinnableSlice*, std::__cxx11::basic_string, std::allocator >*, rocksdb::Status*}; _Tp = rocksdb::KeyContext; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/deque:63, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:12: /usr/include/c++/12/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++/12/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++/12/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++/12/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++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:348:7: /usr/include/c++/12/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {}; _Tp = rocksdb::ColumnFamilyMetaData; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = rocksdb::ColumnFamilyMetaData; _Alloc = std::allocator]', inlined from 'virtual void rocksdb::DBImpl::GetAllColumnFamilyMetaData(std::vector*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.cc:4386:29: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyOptions}; _Tp = rocksdb::ColumnFamilyOptions; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyOptions}; _Tp = rocksdb::ColumnFamilyOptions; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyOptions; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteOptionsFile(bool, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.cc:4763:22: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {long long unsigned int&}; T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:317:25, inlined from 'void rocksdb::DBImpl::PurgeObsoleteFiles(rocksdb::JobContext&, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_files.cc:627:35: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/deque:63, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:12: /usr/include/c++/12/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::LiveFileMetaData*]': /usr/include/c++/12/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++/12/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::LiveFileMetaData*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::LiveFileMetaData*]' at /usr/include/c++/12/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::LiveFileMetaData*; _Tp = rocksdb::LiveFileMetaData]' at /usr/include/c++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::LiveFileMetaData; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::ImportColumnFamilyJob::ImportColumnFamilyJob(rocksdb::VersionSet*, rocksdb::ColumnFamilyData*, const rocksdb::ImmutableDBOptions&, const rocksdb::EnvOptions&, const rocksdb::ImportColumnFamilyOptions&, const std::vector&, const std::shared_ptr&)' at /build/reproducible-path/rocksdb-7.8.3/db/import_column_family_job.h:42:9: /usr/include/c++/12/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 14%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_impl/db_impl_debug.cc In file included from /usr/include/c++/12/bits/stl_algo.h:60, from /usr/include/c++/12/algorithm:61, from /build/reproducible-path/rocksdb-7.8.3/util/coding.h:19, from /build/reproducible-path/rocksdb-7.8.3/db/dbformat.h:21, from /build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h:14, from /build/reproducible-path/rocksdb-7.8.3/db/builder.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:11: /usr/include/c++/12/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++/12/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++/12/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++/12/bits/stl_algo.h:1908:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1908 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1908:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/12/bits/stl_algo.h:1922:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1922 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/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++/12/bits/stl_algo.h:1802:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1802 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1802:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int&, rocksdb::WalMetadata}; _Tp = rocksdb::WalAddition; _Alloc = std::allocator]', inlined from 'void rocksdb::VersionEdit::AddWal(rocksdb::WalNumber, rocksdb::WalMetadata)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:525:32, inlined from 'void rocksdb::DBImpl::MarkLogsSynced(uint64_t, bool, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.cc:1601:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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-7.8.3/db/db_impl/db_impl.cc:983:74: /usr/include/c++/12/bits/stl_map.h:511: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 511 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 512 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 513 | 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-7.8.3/db/db_impl/db_impl.cc:983:33: /usr/include/c++/12/bits/stl_map.h:511: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 511 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 512 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 513 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/builder.h:11: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::BlobFileAddition}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, long long unsigned int}; _Tp = rocksdb::DbPath; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, long long unsigned int}; _Tp = rocksdb::DbPath; _Alloc = std::allocator]', inlined from 'rocksdb::DBOptions rocksdb::SanitizeOptions(const std::string&, const DBOptions&, bool, Status*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:121:33: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/column_family.h:15, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_debug.cc:12: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const rocksdb::FileMetaData&}; _Tp = rocksdb::FileMetaData; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = rocksdb::FileMetaData; _Alloc = std::allocator]', inlined from 'void rocksdb::DBImpl::TEST_GetFilesMetaData(rocksdb::ColumnFamilyHandle*, std::vector >*, std::vector >*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_debug.cc:76:35: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'static rocksdb::Status rocksdb::DB::Open(const rocksdb::Options&, const std::string&, rocksdb::DB**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:1626:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'static rocksdb::Status rocksdb::DB::Open(const rocksdb::Options&, const std::string&, rocksdb::DB**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:1629:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::SnapshotList::GetAll(std::vector*, rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-7.8.3/db/snapshot_impl.h:133:22, inlined from 'std::vector rocksdb::SnapshotList::GetAll(rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-7.8.3/db/snapshot_impl.h:108:11, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteLevel0TableForRecovery(int, rocksdb::ColumnFamilyData*, rocksdb::MemTable*, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:1525:62: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::BlobFileAddition}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]', inlined from 'void rocksdb::VersionEdit::AddBlobFile(rocksdb::BlobFileAddition)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:483:38, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteLevel0TableForRecovery(int, rocksdb::ColumnFamilyData*, rocksdb::MemTable*, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:1595:24: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:658:23: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/12/bits/stl_algo.h:4820:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:660:16: /usr/include/c++/12/bits/stl_algo.h:1937:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1937 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1938 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1939 | __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++/12/bits/stl_algo.h:1940:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/12/bits/stl_algo.h:4820:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:660:16: /usr/include/c++/12/bits/stl_algo.h:1849:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1849 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1854:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1854 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 14%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_impl/db_impl_experimental.cc [ 14%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_impl/db_impl_readonly.cc [ 14%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_impl/db_impl_write.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_experimental.cc:11: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_impl/db_impl_secondary.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_readonly.h:11, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_readonly.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'static rocksdb::Status rocksdb::DB::OpenForReadOnly(const rocksdb::Options&, const std::string&, rocksdb::DB**, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_readonly.cc:244:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_info_dumper.cc [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/db_iter.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_impl/db_impl_compaction_flush.cc In file included from /usr/include/c++/12/bits/stl_algo.h:60, from /usr/include/c++/12/functional:64, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:6: /usr/include/c++/12/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++/12/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++/12/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++/12/bits/stl_algo.h:1802:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1802 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1802:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/12/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++/12/bits/stl_algo.h:1908:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1908 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1908:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/12/bits/stl_algo.h:1922:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1922 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.h:11: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:127:22: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/12/bits/stl_algo.h:4820:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:132:14: /usr/include/c++/12/bits/stl_algo.h:1937:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1937 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1938 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1939 | __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++/12/bits/stl_algo.h:1940:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/12/bits/stl_algo.h:4820:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:132:14: /usr/include/c++/12/bits/stl_algo.h:1849:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1849 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1854:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1854 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/map:60, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:16: /usr/include/c++/12/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++/12/bits/stl_tree.h:2488:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2488 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/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++/12/bits/stl_tree.h:2457:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2457 | _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++/12/bits/stl_map.h:1086:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:145:25: /usr/include/c++/12/bits/stl_tree.h:1209:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1209 | _M_erase_aux(__position); | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/12/map:61: 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, _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++/12/bits/stl_map.h:858:27, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:175:24: /usr/include/c++/12/bits/stl_map.h:638: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 638 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 639 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/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++/12/bits/stl_tree.h:2502:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2502 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_tree.h:2502:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, rocksdb::ColumnFamilyOptions&}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, rocksdb::ColumnFamilyOptions&}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'static rocksdb::Status rocksdb::DB::OpenAsSecondary(const rocksdb::Options&, const std::string&, const std::string&, rocksdb::DB**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:674:31: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const rocksdb::ColumnFamilyDescriptor&}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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++/12/bits/stl_map.h:1137:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::RecoverLogFiles(const std::vector&, rocksdb::SequenceNumber*, std::unordered_set*, rocksdb::JobContext*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:327:23: /usr/include/c++/12/bits/stl_tree.h:1238:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1238 | _M_erase_aux(__first, __last); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'static rocksdb::Status rocksdb::DB::OpenAndCompact(const rocksdb::OpenAndCompactOptions&, const std::string&, const std::string&, const std::string&, std::string*, const rocksdb::CompactionServiceOptionsOverride&)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:906:28: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, rocksdb::ColumnFamilyOptions&}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'static rocksdb::Status rocksdb::DB::OpenAndCompact(const rocksdb::OpenAndCompactOptions&, const std::string&, const std::string&, const std::string&, std::string*, const rocksdb::CompactionServiceOptionsOverride&)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:911:33: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/builder.h:11, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:12: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::SnapshotList::GetAll(std::vector*, rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-7.8.3/db/snapshot_impl.h:133:22, inlined from 'std::vector rocksdb::SnapshotList::GetAll(rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-7.8.3/db/snapshot_impl.h:108:11, inlined from 'void rocksdb::DBImpl::GetSnapshotContext(rocksdb::JobContext*, std::vector*, rocksdb::SequenceNumber*, rocksdb::SnapshotChecker**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:3842:37: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const rocksdb::MutableCFOptions&}; _Tp = rocksdb::MutableCFOptions; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyData* const&, long long unsigned int&}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyData* const&, long long unsigned int&}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::DBImpl::GenerateFlushRequest(const rocksdb::autovector&, FlushRequest*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:2013:22: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::BlobFileAdditionInfo}; _Tp = rocksdb::BlobFileAdditionInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::BlobFileGarbageInfo}; _Tp = rocksdb::BlobFileGarbageInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/dbformat.cc /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {long long unsigned int}; T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:317:25, inlined from 'rocksdb::Status rocksdb::DBImpl::FlushMemTable(rocksdb::ColumnFamilyData*, const rocksdb::FlushOptions&, rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:2073:42: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {long long unsigned int}; T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:317:25, inlined from 'rocksdb::Status rocksdb::DBImpl::FlushMemTable(rocksdb::ColumnFamilyData*, const rocksdb::FlushOptions&, rocksdb::FlushReason, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:2101:46: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/error_handler.cc /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyData*&, const long long unsigned int&, rocksdb::SuperVersionContext*}; _Tp = rocksdb::DBImpl::BGFlushArg; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::CompactionFileInfo}; _Tp = rocksdb::CompactionFileInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/12/bits/vector.tcc: In function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::CompactionFileInfo}; _Tp = rocksdb::CompactionFileInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const rocksdb::MutableCFOptions&}; _Tp = rocksdb::MutableCFOptions; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::DBImpl::AtomicFlushMemTablesToOutputFiles(const rocksdb::autovector&, bool*, rocksdb::JobContext*, rocksdb::LogBuffer*, rocksdb::Env::Priority)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:459:40: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/event_helpers.cc In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyData*&, const long long unsigned int&, rocksdb::SuperVersionContext*}; _Tp = rocksdb::DBImpl::BGFlushArg; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {rocksdb::ColumnFamilyData*&, const long long unsigned int&, rocksdb::SuperVersionContext*}; T = rocksdb::DBImpl::BGFlushArg; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:317:25, inlined from 'rocksdb::Status rocksdb::DBImpl::BackgroundFlush(bool*, rocksdb::JobContext*, rocksdb::LogBuffer*, rocksdb::FlushReason*, rocksdb::Env::Priority)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:2820:33: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::BlobFileAdditionInfo}; _Tp = rocksdb::BlobFileAdditionInfo; _Alloc = std::allocator]', inlined from 'void rocksdb::DBImpl::BuildCompactionJobInfo(const rocksdb::ColumnFamilyData*, rocksdb::Compaction*, const rocksdb::Status&, const rocksdb::CompactionJobStats&, int, const rocksdb::Version*, rocksdb::CompactionJobInfo*) const' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:3720:63: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::BlobFileGarbageInfo}; _Tp = rocksdb::BlobFileGarbageInfo; _Alloc = std::allocator]', inlined from 'void rocksdb::DBImpl::BuildCompactionJobInfo(const rocksdb::ColumnFamilyData*, rocksdb::Compaction*, const rocksdb::Status&, const rocksdb::CompactionJobStats&, int, const rocksdb::Version*, rocksdb::CompactionJobInfo*) const' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_compaction_flush.cc:3731:62: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_impl/db_impl_files.cc [ 15%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/experimental.cc [ 16%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/external_sst_file_ingestion_job.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h:18, from /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/experimental.h:8, from /build/reproducible-path/rocksdb-7.8.3/db/experimental.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, int}; _Tp = rocksdb::DbPath; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, int}; _Tp = rocksdb::DbPath; _Alloc = std::allocator]', inlined from 'static rocksdb::ImmutableDBOptions rocksdb::OfflineManifestWriter::WithDbPath(const rocksdb::DBOptions&, const std::string&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_util.h:65:31, inlined from 'rocksdb::OfflineManifestWriter::OfflineManifestWriter(const rocksdb::DBOptions&, const std::string&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_util.h:23:9: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28, inlined from 'rocksdb::Status rocksdb::experimental::UpdateManifestForFilesState(const rocksdb::DBOptions&, const std::string&, const std::vector&, const UpdateManifestForFilesStateOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/experimental.cc:110:27: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 16%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/file_indexer.cc In file included from /usr/include/c++/12/vector:70, from /usr/include/c++/12/functional:62, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_files.cc:13: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/external_sst_file_ingestion_job.h:9, from /build/reproducible-path/rocksdb-7.8.3/db/external_sst_file_ingestion_job.cc:8: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, const rocksdb::FileMetaData&}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::DBImpl::FindObsoleteFiles(rocksdb::JobContext*, bool, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_files.cc:302:48: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::IngestedFileInfo}; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In file included from /usr/include/c++/12/deque:63, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:12: /usr/include/c++/12/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++/12/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++/12/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 member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::IngestedFileInfo}; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {rocksdb::IngestedFileInfo}; T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:317:25, inlined from 'rocksdb::Status rocksdb::ExternalSstFileIngestionJob::Prepare(const std::vector >&, const std::vector >&, const std::vector >&, const rocksdb::Temperature&, uint64_t, rocksdb::SuperVersion*)' at /build/reproducible-path/rocksdb-7.8.3/db/external_sst_file_ingestion_job.cc:65:34: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/12/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++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:348:7: /usr/include/c++/12/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 member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, const rocksdb::FileMetaData&}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:445:28, inlined from 'rocksdb::Status rocksdb::ExternalSstFileIngestionJob::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/external_sst_file_ingestion_job.cc:476:18: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {long long unsigned int&}; T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:317:25, inlined from 'void rocksdb::DBImpl::PurgeObsoleteFiles(rocksdb::JobContext&, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_files.cc:627:35: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 16%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/flush_job.cc [ 16%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/flush_scheduler.cc [ 16%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_impl/db_impl_open.cc [ 16%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/forward_iterator.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/flush_job.h:18, from /build/reproducible-path/rocksdb-7.8.3/db/flush_job.cc:10: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::BlobFileAdditionInfo}; _Tp = rocksdb::BlobFileAdditionInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::BlobFileAdditionInfo}; _Tp = rocksdb::BlobFileAdditionInfo; _Alloc = std::allocator]', inlined from 'std::unique_ptr rocksdb::FlushJob::GetFlushJobInfo() const' at /build/reproducible-path/rocksdb-7.8.3/db/flush_job.cc:1093:48: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 16%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/import_column_family_job.cc In file included from /usr/include/c++/12/bits/stl_algo.h:60, from /usr/include/c++/12/algorithm:61, from /build/reproducible-path/rocksdb-7.8.3/util/coding.h:19, from /build/reproducible-path/rocksdb-7.8.3/db/dbformat.h:21, from /build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h:14, from /build/reproducible-path/rocksdb-7.8.3/db/builder.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:11: /usr/include/c++/12/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++/12/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++/12/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++/12/bits/stl_algo.h:1908:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1908 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1908:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/12/bits/stl_algo.h:1922:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1922 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/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++/12/bits/stl_algo.h:1802:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1802 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1802:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 [ 16%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/internal_stats.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/builder.h:11: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::BlobFileAddition}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, long long unsigned int}; _Tp = rocksdb::DbPath; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, long long unsigned int}; _Tp = rocksdb::DbPath; _Alloc = std::allocator]', inlined from 'rocksdb::DBOptions rocksdb::SanitizeOptions(const std::string&, const DBOptions&, bool, Status*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:121:33: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/import_column_family_job.h:10, from /build/reproducible-path/rocksdb-7.8.3/db/import_column_family_job.cc:9: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/import_column_family_job.cc:163:18: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const rocksdb::IngestedFileInfo&}; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::push_back(const T&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:297:22, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Prepare(uint64_t, rocksdb::SuperVersion*)' at /build/reproducible-path/rocksdb-7.8.3/db/import_column_family_job.cc:42:31: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'static rocksdb::Status rocksdb::DB::Open(const rocksdb::Options&, const std::string&, rocksdb::DB**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:1626:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'static rocksdb::Status rocksdb::DB::Open(const rocksdb::Options&, const std::string&, rocksdb::DB**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:1629:30: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 17%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/logs_with_prep_tracker.cc In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::SnapshotList::GetAll(std::vector*, rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-7.8.3/db/snapshot_impl.h:133:22, inlined from 'std::vector rocksdb::SnapshotList::GetAll(rocksdb::SequenceNumber*, const rocksdb::SequenceNumber&) const' at /build/reproducible-path/rocksdb-7.8.3/db/snapshot_impl.h:108:11, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteLevel0TableForRecovery(int, rocksdb::ColumnFamilyData*, rocksdb::MemTable*, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:1525:62: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::BlobFileAddition}; _Tp = rocksdb::BlobFileAddition; _Alloc = std::allocator]', inlined from 'void rocksdb::VersionEdit::AddBlobFile(rocksdb::BlobFileAddition)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:483:38, inlined from 'rocksdb::Status rocksdb::DBImpl::WriteLevel0TableForRecovery(int, rocksdb::ColumnFamilyData*, rocksdb::MemTable*, rocksdb::VersionEdit*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:1595:24: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/logs_with_prep_tracker.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/logs_with_prep_tracker.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::LogsWithPrepTracker::LogCnt}; _Tp = rocksdb::LogsWithPrepTracker::LogCnt; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = rocksdb::LogsWithPrepTracker::LogCnt; _Alloc = std::allocator]', inlined from 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = rocksdb::LogsWithPrepTracker::LogCnt; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1389:30, inlined from 'void rocksdb::LogsWithPrepTracker::MarkLogAsContainingPrepSection(uint64_t)' at /build/reproducible-path/rocksdb-7.8.3/db/logs_with_prep_tracker.cc:39:27: /usr/include/c++/12/bits/vector.tcc:366:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 366 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 17%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/log_reader.cc In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:658:23: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/12/bits/stl_algo.h:4820:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:660:16: /usr/include/c++/12/bits/stl_algo.h:1937:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1937 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1938 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1939 | __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++/12/bits/stl_algo.h:1940:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/12/bits/stl_algo.h:4820:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, uint64_t*, RecoveryContext*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_open.cc:660:16: /usr/include/c++/12/bits/stl_algo.h:1849:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1849 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1854:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1854 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_impl/db_impl_debug.cc [ 17%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/log_writer.cc In file included from /usr/include/c++/12/map:60, from /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:11: /usr/include/c++/12/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::tuple<>}; _Key = rocksdb::LevelStatType; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /usr/include/c++/12/bits/stl_tree.h:2457:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 2457 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/map:61: /usr/include/c++/12/bits/stl_map.h: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]': /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:130:42: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:131:48: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:132:43: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:133:38: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:134:40: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:135:38: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:137:40: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:138:41: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:139:41: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:140:41: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:141:42: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:143:43: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:145:45: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:146:43: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:147:40: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:153:42: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:154:42: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ [ 17%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/malloc_stats.cc [ 17%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/memtable.cc [ 17%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/memtable_list.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/column_family.h:15, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_debug.cc:12: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const rocksdb::FileMetaData&}; _Tp = rocksdb::FileMetaData; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = rocksdb::FileMetaData; _Alloc = std::allocator]', inlined from 'void rocksdb::DBImpl::TEST_GetFilesMetaData(rocksdb::ColumnFamilyHandle*, std::vector >*, std::vector >*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_debug.cc:76:35: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_impl/db_impl_experimental.cc /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc:256:1: error: insn does not satisfy its constraints: 256 | } | ^ (insn 277 276 278 13 (set (reg:CC_DNE 100 cc) (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [163]) (const_int -1 [0xffffffffffffffff])) (ne:SI (reg:SI 1 r1 [+4 ]) (const_int -1 [0xffffffffffffffff]))) (const_int 0 [0]))) "/usr/include/c++/12/bits/atomic_base.h":560:36 339 {*cmp_ior} (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) (expr_list:REG_DEAD (reg:SI 0 r0 [163]) (nil)))) during RTL pass: cprop_hardreg /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc:256:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692 0xe3a41b internal_error(char const*, ...) ???:0 0x1e07f3 fancy_abort(char const*, int, char const*) ???:0 0x1df453 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x1df485 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x67304f 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. [ 17%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/merge_helper.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_experimental.cc:11: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 18%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_impl/db_impl_readonly.cc [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/merge_operator.cc [ 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/periodic_task_scheduler.cc Preprocessed source stored into /tmp/cc3uLb3R.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 26629: // Target: arm-linux-gnueabihf 26629: // Configured with: ../src/configure -v --with-pkgversion='Debian 12.2.0-14' --with-bugurl=file:///usr/share/doc/gcc-12/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-12 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --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 26629: // Thread model: posix 26629: // Supported LTO compression algorithms: zlib zstd 26629: // gcc version 12.2.0 (Debian 12.2.0-14) 26629: // 26629: // /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': 26629: // /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc:256:1: error: insn does not satisfy its constraints: 26629: // 256 | } 26629: // | ^ 26629: // (insn 277 276 278 13 (set (reg:CC_DNE 100 cc) 26629: // (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [163]) 26629: // (const_int -1 [0xffffffffffffffff])) 26629: // (ne:SI (reg:SI 1 r1 [+4 ]) 26629: // (const_int -1 [0xffffffffffffffff]))) 26629: // (const_int 0 [0]))) "/usr/include/c++/12/bits/atomic_base.h":560:36 339 {*cmp_ior} 26629: // (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) 26629: // (expr_list:REG_DEAD (reg:SI 0 r0 [163]) 26629: // (nil)))) 26629: // during RTL pass: cprop_hardreg 26629: // /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc:256:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692 26629: // 0xe3a41b internal_error(char const*, ...) 26629: // ???:0 26629: // 0x1e07f3 fancy_abort(char const*, int, char const*) 26629: // ???:0 26629: // 0x1df453 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) 26629: // ???:0 26629: // 0x1df485 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) 26629: // ???:0 26629: // 0x67304f extract_constrain_insn(rtx_insn*) 26629: // ???:0 26629: // Please submit a full bug report, with preprocessed source (by using -freport-bug). 26629: // Please include the complete backtrace with any bug report. 26629: // See for instructions. 26629: 26629: // /usr/lib/gcc/arm-linux-gnueabihf/12/cc1plus -quiet -I /build/reproducible-path/rocksdb-7.8.3 -I /build/reproducible-path/rocksdb-7.8.3/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_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 _FORTIFY_SOURCE=2 -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src /build/reproducible-path/rocksdb-7.8.3/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 -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-7.8.3=. -fstack-protector-strong -fno-omit-frame-pointer -fno-builtin-memcmp -o - -frandom-seed=0 -fdump-noaddr 26629: 26629: # 0 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf//" 26629: # 0 "" 26629: # 0 "" 26629: # 1 "/usr/include/stdc-predef.h" 1 3 4 26629: # 0 "" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: 26629: # 1 "/usr/include/c++/12/atomic" 1 3 26629: # 35 "/usr/include/c++/12/atomic" 3 26629: 26629: # 36 "/usr/include/c++/12/atomic" 3 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/atomic_base.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 1 3 26629: # 296 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 26629: 26629: # 296 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 26629: namespace std 26629: { 26629: typedef unsigned int size_t; 26629: typedef int ptrdiff_t; 26629: 26629: 26629: typedef decltype(nullptr) nullptr_t; 26629: 26629: 26629: #pragma GCC visibility push(default) 26629: 26629: 26629: extern "C++" __attribute__ ((__noreturn__, __always_inline__)) 26629: inline void __terminate() noexcept 26629: { 26629: void terminate() noexcept __attribute__ ((__noreturn__)); 26629: terminate(); 26629: } 26629: #pragma GCC visibility pop 26629: } 26629: # 329 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 26629: namespace std 26629: { 26629: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 26629: } 26629: namespace __gnu_cxx 26629: { 26629: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 26629: } 26629: # 508 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 26629: namespace std 26629: { 26629: #pragma GCC visibility push(default) 26629: 26629: 26629: 26629: 26629: constexpr inline bool 26629: __is_constant_evaluated() noexcept 26629: { 26629: 26629: 26629: 26629: 26629: 26629: return __builtin_is_constant_evaluated(); 26629: 26629: 26629: 26629: } 26629: #pragma GCC visibility pop 26629: } 26629: # 655 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/os_defines.h" 1 3 26629: # 39 "/usr/include/arm-linux-gnueabihf/c++/12/bits/os_defines.h" 3 26629: # 1 "/usr/include/features.h" 1 3 4 26629: # 392 "/usr/include/features.h" 3 4 26629: # 1 "/usr/include/features-time64.h" 1 3 4 26629: # 20 "/usr/include/features-time64.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 26629: # 21 "/usr/include/features-time64.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 26629: # 22 "/usr/include/features-time64.h" 2 3 4 26629: # 393 "/usr/include/features.h" 2 3 4 26629: # 489 "/usr/include/features.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4 26629: # 561 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 26629: # 562 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 26629: # 563 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 26629: # 490 "/usr/include/features.h" 2 3 4 26629: # 513 "/usr/include/features.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4 26629: # 10 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs-hard.h" 1 3 4 26629: # 11 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 2 3 4 26629: # 514 "/usr/include/features.h" 2 3 4 26629: # 40 "/usr/include/arm-linux-gnueabihf/c++/12/bits/os_defines.h" 2 3 26629: # 656 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 2 3 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/cpu_defines.h" 1 3 26629: # 659 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 2 3 26629: # 841 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 26629: # 1 "/usr/include/c++/12/pstl/pstl_config.h" 1 3 26629: # 842 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 2 3 26629: # 36 "/usr/include/c++/12/bits/atomic_base.h" 2 3 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdint.h" 1 3 4 26629: # 9 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdint.h" 3 4 26629: # 1 "/usr/include/stdint.h" 1 3 4 26629: # 26 "/usr/include/stdint.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 26629: # 27 "/usr/include/stdint.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 26629: # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 26629: # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 26629: 26629: 26629: typedef unsigned char __u_char; 26629: typedef unsigned short int __u_short; 26629: typedef unsigned int __u_int; 26629: typedef unsigned long int __u_long; 26629: 26629: 26629: typedef signed char __int8_t; 26629: typedef unsigned char __uint8_t; 26629: typedef signed short int __int16_t; 26629: typedef unsigned short int __uint16_t; 26629: typedef signed int __int32_t; 26629: typedef unsigned int __uint32_t; 26629: 26629: 26629: 26629: 26629: __extension__ typedef signed long long int __int64_t; 26629: __extension__ typedef unsigned long long int __uint64_t; 26629: 26629: 26629: 26629: typedef __int8_t __int_least8_t; 26629: typedef __uint8_t __uint_least8_t; 26629: typedef __int16_t __int_least16_t; 26629: typedef __uint16_t __uint_least16_t; 26629: typedef __int32_t __int_least32_t; 26629: typedef __uint32_t __uint_least32_t; 26629: typedef __int64_t __int_least64_t; 26629: typedef __uint64_t __uint_least64_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: __extension__ typedef long long int __quad_t; 26629: __extension__ typedef unsigned long long int __u_quad_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __extension__ typedef long long int __intmax_t; 26629: __extension__ typedef unsigned long long int __uintmax_t; 26629: # 141 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4 26629: # 142 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/time64.h" 1 3 4 26629: # 143 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 26629: 26629: 26629: __extension__ typedef __uint64_t __dev_t; 26629: __extension__ typedef unsigned int __uid_t; 26629: __extension__ typedef unsigned int __gid_t; 26629: __extension__ typedef unsigned long int __ino_t; 26629: __extension__ typedef __uint64_t __ino64_t; 26629: __extension__ typedef unsigned int __mode_t; 26629: __extension__ typedef unsigned int __nlink_t; 26629: __extension__ typedef long int __off_t; 26629: __extension__ typedef __int64_t __off64_t; 26629: __extension__ typedef int __pid_t; 26629: __extension__ typedef struct { int __val[2]; } __fsid_t; 26629: __extension__ typedef long int __clock_t; 26629: __extension__ typedef unsigned long int __rlim_t; 26629: __extension__ typedef __uint64_t __rlim64_t; 26629: __extension__ typedef unsigned int __id_t; 26629: __extension__ typedef long int __time_t; 26629: __extension__ typedef unsigned int __useconds_t; 26629: __extension__ typedef long int __suseconds_t; 26629: __extension__ typedef __int64_t __suseconds64_t; 26629: 26629: __extension__ typedef int __daddr_t; 26629: __extension__ typedef int __key_t; 26629: 26629: 26629: __extension__ typedef int __clockid_t; 26629: 26629: 26629: __extension__ typedef void * __timer_t; 26629: 26629: 26629: __extension__ typedef long int __blksize_t; 26629: 26629: 26629: 26629: 26629: __extension__ typedef long int __blkcnt_t; 26629: __extension__ typedef __int64_t __blkcnt64_t; 26629: 26629: 26629: __extension__ typedef unsigned long int __fsblkcnt_t; 26629: __extension__ typedef __uint64_t __fsblkcnt64_t; 26629: 26629: 26629: __extension__ typedef unsigned long int __fsfilcnt_t; 26629: __extension__ typedef __uint64_t __fsfilcnt64_t; 26629: 26629: 26629: __extension__ typedef int __fsword_t; 26629: 26629: __extension__ typedef int __ssize_t; 26629: 26629: 26629: __extension__ typedef long int __syscall_slong_t; 26629: 26629: __extension__ typedef unsigned long int __syscall_ulong_t; 26629: 26629: 26629: 26629: typedef __off64_t __loff_t; 26629: typedef char *__caddr_t; 26629: 26629: 26629: __extension__ typedef int __intptr_t; 26629: 26629: 26629: __extension__ typedef unsigned int __socklen_t; 26629: 26629: 26629: 26629: 26629: typedef int __sig_atomic_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __extension__ typedef __int64_t __time64_t; 26629: # 28 "/usr/include/stdint.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4 26629: # 29 "/usr/include/stdint.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 26629: # 30 "/usr/include/stdint.h" 2 3 4 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 3 4 26629: typedef __int8_t int8_t; 26629: typedef __int16_t int16_t; 26629: typedef __int32_t int32_t; 26629: typedef __int64_t int64_t; 26629: # 35 "/usr/include/stdint.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 3 4 26629: typedef __uint8_t uint8_t; 26629: typedef __uint16_t uint16_t; 26629: typedef __uint32_t uint32_t; 26629: typedef __uint64_t uint64_t; 26629: # 38 "/usr/include/stdint.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: typedef __int_least8_t int_least8_t; 26629: typedef __int_least16_t int_least16_t; 26629: typedef __int_least32_t int_least32_t; 26629: typedef __int_least64_t int_least64_t; 26629: 26629: 26629: typedef __uint_least8_t uint_least8_t; 26629: typedef __uint_least16_t uint_least16_t; 26629: typedef __uint_least32_t uint_least32_t; 26629: typedef __uint_least64_t uint_least64_t; 26629: 26629: 26629: 26629: 26629: 26629: typedef signed char int_fast8_t; 26629: 26629: 26629: 26629: 26629: 26629: typedef int int_fast16_t; 26629: typedef int int_fast32_t; 26629: __extension__ 26629: typedef long long int int_fast64_t; 26629: 26629: 26629: 26629: typedef unsigned char uint_fast8_t; 26629: 26629: 26629: 26629: 26629: 26629: typedef unsigned int uint_fast16_t; 26629: typedef unsigned int uint_fast32_t; 26629: __extension__ 26629: typedef unsigned long long int uint_fast64_t; 26629: # 93 "/usr/include/stdint.h" 3 4 26629: typedef int intptr_t; 26629: 26629: 26629: typedef unsigned int uintptr_t; 26629: 26629: 26629: 26629: 26629: typedef __intmax_t intmax_t; 26629: typedef __uintmax_t uintmax_t; 26629: # 10 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdint.h" 2 3 4 26629: # 37 "/usr/include/c++/12/bits/atomic_base.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/atomic_lockfree_defines.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/atomic_lockfree_defines.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/atomic_lockfree_defines.h" 3 26629: # 38 "/usr/include/c++/12/bits/atomic_base.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/move.h" 1 3 26629: # 38 "/usr/include/c++/12/bits/move.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline constexpr _Tp* 26629: __addressof(_Tp& __r) noexcept 26629: { return __builtin_addressof(__r); } 26629: 26629: 26629: 26629: 26629: } 26629: 26629: # 1 "/usr/include/c++/12/type_traits" 1 3 26629: # 32 "/usr/include/c++/12/type_traits" 3 26629: 26629: # 33 "/usr/include/c++/12/type_traits" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: class reference_wrapper; 26629: # 61 "/usr/include/c++/12/type_traits" 3 26629: template 26629: struct integral_constant 26629: { 26629: static constexpr _Tp value = __v; 26629: typedef _Tp value_type; 26629: typedef integral_constant<_Tp, __v> type; 26629: constexpr operator value_type() const noexcept { return value; } 26629: 26629: 26629: 26629: 26629: constexpr value_type operator()() const noexcept { return value; } 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: using true_type = integral_constant; 26629: 26629: 26629: using false_type = integral_constant; 26629: 26629: 26629: 26629: template 26629: using __bool_constant = integral_constant; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: using bool_constant = integral_constant; 26629: 26629: 26629: 26629: 26629: template 26629: struct __conditional 26629: { 26629: template 26629: using type = _Tp; 26629: }; 26629: 26629: template<> 26629: struct __conditional 26629: { 26629: template 26629: using type = _Up; 26629: }; 26629: 26629: 26629: template 26629: using __conditional_t 26629: = typename __conditional<_Cond>::template type<_If, _Else>; 26629: 26629: 26629: template 26629: struct __type_identity 26629: { using type = _Type; }; 26629: 26629: template 26629: using __type_identity_t = typename __type_identity<_Tp>::type; 26629: 26629: template 26629: struct __or_; 26629: 26629: template<> 26629: struct __or_<> 26629: : public false_type 26629: { }; 26629: 26629: template 26629: struct __or_<_B1> 26629: : public _B1 26629: { }; 26629: 26629: template 26629: struct __or_<_B1, _B2> 26629: : public __conditional_t<_B1::value, _B1, _B2> 26629: { }; 26629: 26629: template 26629: struct __or_<_B1, _B2, _B3, _Bn...> 26629: : public __conditional_t<_B1::value, _B1, __or_<_B2, _B3, _Bn...>> 26629: { }; 26629: 26629: template 26629: struct __and_; 26629: 26629: template<> 26629: struct __and_<> 26629: : public true_type 26629: { }; 26629: 26629: template 26629: struct __and_<_B1> 26629: : public _B1 26629: { }; 26629: 26629: template 26629: struct __and_<_B1, _B2> 26629: : public __conditional_t<_B1::value, _B2, _B1> 26629: { }; 26629: 26629: template 26629: struct __and_<_B1, _B2, _B3, _Bn...> 26629: : public __conditional_t<_B1::value, __and_<_B2, _B3, _Bn...>, _B1> 26629: { }; 26629: 26629: template 26629: struct __not_ 26629: : public __bool_constant 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline constexpr bool __or_v = __or_<_Bn...>::value; 26629: template 26629: inline constexpr bool __and_v = __and_<_Bn...>::value; 26629: 26629: 26629: 26629: 26629: template 26629: struct conjunction 26629: : __and_<_Bn...> 26629: { }; 26629: 26629: template 26629: struct disjunction 26629: : __or_<_Bn...> 26629: { }; 26629: 26629: template 26629: struct negation 26629: : __not_<_Pp> 26629: { }; 26629: 26629: 26629: 26629: 26629: template 26629: inline constexpr bool conjunction_v = conjunction<_Bn...>::value; 26629: 26629: template 26629: inline constexpr bool disjunction_v = disjunction<_Bn...>::value; 26629: 26629: template 26629: inline constexpr bool negation_v = negation<_Pp>::value; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_reference; 26629: template 26629: struct is_function; 26629: template 26629: struct is_void; 26629: template 26629: struct remove_cv; 26629: template 26629: struct is_const; 26629: 26629: 26629: template 26629: struct __is_array_unknown_bounds; 26629: 26629: 26629: 26629: 26629: template 26629: constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) 26629: { return {}; } 26629: 26629: template 26629: constexpr typename __or_< 26629: is_reference<_NestedType>, 26629: is_function<_NestedType>, 26629: is_void<_NestedType>, 26629: __is_array_unknown_bounds<_NestedType> 26629: >::type __is_complete_or_unbounded(_TypeIdentity) 26629: { return {}; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __success_type 26629: { typedef _Tp type; }; 26629: 26629: struct __failure_type 26629: { }; 26629: 26629: 26629: template 26629: using __remove_cv_t = typename remove_cv<_Tp>::type; 26629: 26629: 26629: 26629: template 26629: struct __is_void_helper 26629: : public false_type { }; 26629: 26629: template<> 26629: struct __is_void_helper 26629: : public true_type { }; 26629: 26629: 26629: 26629: template 26629: struct is_void 26629: : public __is_void_helper<__remove_cv_t<_Tp>>::type 26629: { }; 26629: 26629: 26629: template 26629: struct __is_integral_helper 26629: : public false_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: 26629: 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_integral_helper 26629: : public true_type { }; 26629: # 412 "/usr/include/c++/12/type_traits" 3 26629: template 26629: struct is_integral 26629: : public __is_integral_helper<__remove_cv_t<_Tp>>::type 26629: { }; 26629: 26629: 26629: template 26629: struct __is_floating_point_helper 26629: : public false_type { }; 26629: 26629: template<> 26629: struct __is_floating_point_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_floating_point_helper 26629: : public true_type { }; 26629: 26629: template<> 26629: struct __is_floating_point_helper 26629: : public true_type { }; 26629: # 442 "/usr/include/c++/12/type_traits" 3 26629: template 26629: struct is_floating_point 26629: : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type 26629: { }; 26629: 26629: 26629: template 26629: struct is_array 26629: : public false_type { }; 26629: 26629: template 26629: struct is_array<_Tp[_Size]> 26629: : public true_type { }; 26629: 26629: template 26629: struct is_array<_Tp[]> 26629: : public true_type { }; 26629: 26629: template 26629: struct __is_pointer_helper 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_pointer_helper<_Tp*> 26629: : public true_type { }; 26629: 26629: 26629: template 26629: struct is_pointer 26629: : public __is_pointer_helper<__remove_cv_t<_Tp>>::type 26629: { }; 26629: 26629: 26629: template 26629: struct is_lvalue_reference 26629: : public false_type { }; 26629: 26629: template 26629: struct is_lvalue_reference<_Tp&> 26629: : public true_type { }; 26629: 26629: 26629: template 26629: struct is_rvalue_reference 26629: : public false_type { }; 26629: 26629: template 26629: struct is_rvalue_reference<_Tp&&> 26629: : public true_type { }; 26629: 26629: template 26629: struct __is_member_object_pointer_helper 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_member_object_pointer_helper<_Tp _Cp::*> 26629: : public __not_>::type { }; 26629: 26629: 26629: template 26629: struct is_member_object_pointer 26629: : public __is_member_object_pointer_helper<__remove_cv_t<_Tp>>::type 26629: { }; 26629: 26629: template 26629: struct __is_member_function_pointer_helper 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_member_function_pointer_helper<_Tp _Cp::*> 26629: : public is_function<_Tp>::type { }; 26629: 26629: 26629: template 26629: struct is_member_function_pointer 26629: : public __is_member_function_pointer_helper<__remove_cv_t<_Tp>>::type 26629: { }; 26629: 26629: 26629: template 26629: struct is_enum 26629: : public integral_constant 26629: { }; 26629: 26629: 26629: template 26629: struct is_union 26629: : public integral_constant 26629: { }; 26629: 26629: 26629: template 26629: struct is_class 26629: : public integral_constant 26629: { }; 26629: 26629: 26629: template 26629: struct is_function 26629: : public __bool_constant::value> { }; 26629: 26629: template 26629: struct is_function<_Tp&> 26629: : public false_type { }; 26629: 26629: template 26629: struct is_function<_Tp&&> 26629: : public false_type { }; 26629: 26629: 26629: 26629: template 26629: struct __is_null_pointer_helper 26629: : public false_type { }; 26629: 26629: template<> 26629: struct __is_null_pointer_helper 26629: : public true_type { }; 26629: 26629: 26629: template 26629: struct is_null_pointer 26629: : public __is_null_pointer_helper<__remove_cv_t<_Tp>>::type 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct __is_nullptr_t 26629: : public is_null_pointer<_Tp> 26629: { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); 26629: 26629: 26629: 26629: 26629: template 26629: struct is_reference 26629: : public __or_, 26629: is_rvalue_reference<_Tp>>::type 26629: { }; 26629: 26629: 26629: template 26629: struct is_arithmetic 26629: : public __or_, is_floating_point<_Tp>>::type 26629: { }; 26629: 26629: 26629: template 26629: struct is_fundamental 26629: : public __or_, is_void<_Tp>, 26629: is_null_pointer<_Tp>>::type 26629: { }; 26629: 26629: 26629: template 26629: struct is_object 26629: : public __not_<__or_, is_reference<_Tp>, 26629: is_void<_Tp>>>::type 26629: { }; 26629: 26629: template 26629: struct is_member_pointer; 26629: 26629: 26629: template 26629: struct is_scalar 26629: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 26629: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 26629: { }; 26629: 26629: 26629: template 26629: struct is_compound 26629: : public __not_>::type { }; 26629: 26629: 26629: template 26629: struct __is_member_pointer_helper 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_member_pointer_helper<_Tp _Cp::*> 26629: : public true_type { }; 26629: 26629: 26629: 26629: template 26629: struct is_member_pointer 26629: : public __is_member_pointer_helper<__remove_cv_t<_Tp>>::type 26629: { }; 26629: 26629: template 26629: struct is_same; 26629: 26629: 26629: template 26629: using __is_one_of = __or_...>; 26629: 26629: 26629: __extension__ 26629: template 26629: using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, 26629: signed char, signed short, signed int, signed long, 26629: signed long long 26629: # 659 "/usr/include/c++/12/type_traits" 3 26629: >; 26629: 26629: 26629: __extension__ 26629: template 26629: using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, 26629: unsigned char, unsigned short, unsigned int, unsigned long, 26629: unsigned long long 26629: # 679 "/usr/include/c++/12/type_traits" 3 26629: >; 26629: 26629: 26629: template 26629: using __is_standard_integer 26629: = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; 26629: 26629: 26629: template using __void_t = void; 26629: 26629: 26629: 26629: template 26629: struct __is_referenceable 26629: : public false_type 26629: { }; 26629: 26629: template 26629: struct __is_referenceable<_Tp, __void_t<_Tp&>> 26629: : public true_type 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_const 26629: : public false_type { }; 26629: 26629: template 26629: struct is_const<_Tp const> 26629: : public true_type { }; 26629: 26629: 26629: template 26629: struct is_volatile 26629: : public false_type { }; 26629: 26629: template 26629: struct is_volatile<_Tp volatile> 26629: : public true_type { }; 26629: 26629: 26629: template 26629: struct is_trivial 26629: : public integral_constant 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_trivially_copyable 26629: : public integral_constant 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_standard_layout 26629: : public integral_constant 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct 26629: 26629: is_pod 26629: : public integral_constant 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct 26629: [[__deprecated__]] 26629: is_literal_type 26629: : public integral_constant 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_empty 26629: : public integral_constant 26629: { }; 26629: 26629: 26629: template 26629: struct is_polymorphic 26629: : public integral_constant 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_final 26629: : public integral_constant 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct is_abstract 26629: : public integral_constant 26629: { }; 26629: 26629: 26629: template::value> 26629: struct __is_signed_helper 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_signed_helper<_Tp, true> 26629: : public integral_constant 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct is_signed 26629: : public __is_signed_helper<_Tp>::type 26629: { }; 26629: 26629: 26629: template 26629: struct is_unsigned 26629: : public __and_, __not_>> 26629: { }; 26629: 26629: 26629: template 26629: _Up 26629: __declval(int); 26629: 26629: template 26629: _Tp 26629: __declval(long); 26629: 26629: 26629: template 26629: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 26629: 26629: template 26629: struct extent; 26629: 26629: template 26629: struct remove_all_extents; 26629: 26629: 26629: template 26629: struct __is_array_known_bounds 26629: : public integral_constant::value > 0)> 26629: { }; 26629: 26629: template 26629: struct __is_array_unknown_bounds 26629: : public __and_, __not_>> 26629: { }; 26629: # 867 "/usr/include/c++/12/type_traits" 3 26629: struct __do_is_destructible_impl 26629: { 26629: template().~_Tp())> 26629: static true_type __test(int); 26629: 26629: template 26629: static false_type __test(...); 26629: }; 26629: 26629: template 26629: struct __is_destructible_impl 26629: : public __do_is_destructible_impl 26629: { 26629: typedef decltype(__test<_Tp>(0)) type; 26629: }; 26629: 26629: template, 26629: __is_array_unknown_bounds<_Tp>, 26629: is_function<_Tp>>::value, 26629: bool = __or_, is_scalar<_Tp>>::value> 26629: struct __is_destructible_safe; 26629: 26629: template 26629: struct __is_destructible_safe<_Tp, false, false> 26629: : public __is_destructible_impl::type>::type 26629: { }; 26629: 26629: template 26629: struct __is_destructible_safe<_Tp, true, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_destructible_safe<_Tp, false, true> 26629: : public true_type { }; 26629: 26629: 26629: 26629: template 26629: struct is_destructible 26629: : public __is_destructible_safe<_Tp>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct __do_is_nt_destructible_impl 26629: { 26629: template 26629: static __bool_constant().~_Tp())> 26629: __test(int); 26629: 26629: template 26629: static false_type __test(...); 26629: }; 26629: 26629: template 26629: struct __is_nt_destructible_impl 26629: : public __do_is_nt_destructible_impl 26629: { 26629: typedef decltype(__test<_Tp>(0)) type; 26629: }; 26629: 26629: template, 26629: __is_array_unknown_bounds<_Tp>, 26629: is_function<_Tp>>::value, 26629: bool = __or_, is_scalar<_Tp>>::value> 26629: struct __is_nt_destructible_safe; 26629: 26629: template 26629: struct __is_nt_destructible_safe<_Tp, false, false> 26629: : public __is_nt_destructible_impl::type>::type 26629: { }; 26629: 26629: template 26629: struct __is_nt_destructible_safe<_Tp, true, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_nt_destructible_safe<_Tp, false, true> 26629: : public true_type { }; 26629: 26629: 26629: 26629: template 26629: struct is_nothrow_destructible 26629: : public __is_nt_destructible_safe<_Tp>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct __is_constructible_impl 26629: : public __bool_constant<__is_constructible(_Tp, _Args...)> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct is_constructible 26629: : public __is_constructible_impl<_Tp, _Args...> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_default_constructible 26629: : public __is_constructible_impl<_Tp>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template::value> 26629: struct __is_copy_constructible_impl; 26629: 26629: template 26629: struct __is_copy_constructible_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_copy_constructible_impl<_Tp, true> 26629: : public __is_constructible_impl<_Tp, const _Tp&> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct is_copy_constructible 26629: : public __is_copy_constructible_impl<_Tp> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template::value> 26629: struct __is_move_constructible_impl; 26629: 26629: template 26629: struct __is_move_constructible_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_move_constructible_impl<_Tp, true> 26629: : public __is_constructible_impl<_Tp, _Tp&&> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct is_move_constructible 26629: : public __is_move_constructible_impl<_Tp> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: using __is_nothrow_constructible_impl 26629: = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; 26629: 26629: 26629: 26629: template 26629: struct is_nothrow_constructible 26629: : public __is_nothrow_constructible_impl<_Tp, _Args...>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_nothrow_default_constructible 26629: : public __bool_constant<__is_nothrow_constructible(_Tp)> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template::value> 26629: struct __is_nothrow_copy_constructible_impl; 26629: 26629: template 26629: struct __is_nothrow_copy_constructible_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_nothrow_copy_constructible_impl<_Tp, true> 26629: : public __is_nothrow_constructible_impl<_Tp, const _Tp&> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct is_nothrow_copy_constructible 26629: : public __is_nothrow_copy_constructible_impl<_Tp>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template::value> 26629: struct __is_nothrow_move_constructible_impl; 26629: 26629: template 26629: struct __is_nothrow_move_constructible_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_nothrow_move_constructible_impl<_Tp, true> 26629: : public __is_nothrow_constructible_impl<_Tp, _Tp&&> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct is_nothrow_move_constructible 26629: : public __is_nothrow_move_constructible_impl<_Tp>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_assignable 26629: : public __bool_constant<__is_assignable(_Tp, _Up)> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: template::value> 26629: struct __is_copy_assignable_impl; 26629: 26629: template 26629: struct __is_copy_assignable_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_copy_assignable_impl<_Tp, true> 26629: : public __bool_constant<__is_assignable(_Tp&, const _Tp&)> 26629: { }; 26629: 26629: 26629: template 26629: struct is_copy_assignable 26629: : public __is_copy_assignable_impl<_Tp>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: template::value> 26629: struct __is_move_assignable_impl; 26629: 26629: template 26629: struct __is_move_assignable_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_move_assignable_impl<_Tp, true> 26629: : public __bool_constant<__is_assignable(_Tp&, _Tp&&)> 26629: { }; 26629: 26629: 26629: template 26629: struct is_move_assignable 26629: : public __is_move_assignable_impl<_Tp>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: template 26629: using __is_nothrow_assignable_impl 26629: = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; 26629: 26629: 26629: template 26629: struct is_nothrow_assignable 26629: : public __is_nothrow_assignable_impl<_Tp, _Up> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: template::value> 26629: struct __is_nt_copy_assignable_impl; 26629: 26629: template 26629: struct __is_nt_copy_assignable_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_nt_copy_assignable_impl<_Tp, true> 26629: : public __is_nothrow_assignable_impl<_Tp&, const _Tp&> 26629: { }; 26629: 26629: 26629: template 26629: struct is_nothrow_copy_assignable 26629: : public __is_nt_copy_assignable_impl<_Tp> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: template::value> 26629: struct __is_nt_move_assignable_impl; 26629: 26629: template 26629: struct __is_nt_move_assignable_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_nt_move_assignable_impl<_Tp, true> 26629: : public __is_nothrow_assignable_impl<_Tp&, _Tp&&> 26629: { }; 26629: 26629: 26629: template 26629: struct is_nothrow_move_assignable 26629: : public __is_nt_move_assignable_impl<_Tp> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_trivially_constructible 26629: : public __bool_constant<__is_trivially_constructible(_Tp, _Args...)> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_trivially_default_constructible 26629: : public __bool_constant<__is_trivially_constructible(_Tp)> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: struct __do_is_implicitly_default_constructible_impl 26629: { 26629: template 26629: static void __helper(const _Tp&); 26629: 26629: template 26629: static true_type __test(const _Tp&, 26629: decltype(__helper({}))* = 0); 26629: 26629: static false_type __test(...); 26629: }; 26629: 26629: template 26629: struct __is_implicitly_default_constructible_impl 26629: : public __do_is_implicitly_default_constructible_impl 26629: { 26629: typedef decltype(__test(declval<_Tp>())) type; 26629: }; 26629: 26629: template 26629: struct __is_implicitly_default_constructible_safe 26629: : public __is_implicitly_default_constructible_impl<_Tp>::type 26629: { }; 26629: 26629: template 26629: struct __is_implicitly_default_constructible 26629: : public __and_<__is_constructible_impl<_Tp>, 26629: __is_implicitly_default_constructible_safe<_Tp>> 26629: { }; 26629: 26629: template::value> 26629: struct __is_trivially_copy_constructible_impl; 26629: 26629: template 26629: struct __is_trivially_copy_constructible_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_trivially_copy_constructible_impl<_Tp, true> 26629: : public __and_<__is_copy_constructible_impl<_Tp>, 26629: integral_constant> 26629: { }; 26629: 26629: 26629: template 26629: struct is_trivially_copy_constructible 26629: : public __is_trivially_copy_constructible_impl<_Tp> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: template::value> 26629: struct __is_trivially_move_constructible_impl; 26629: 26629: template 26629: struct __is_trivially_move_constructible_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_trivially_move_constructible_impl<_Tp, true> 26629: : public __and_<__is_move_constructible_impl<_Tp>, 26629: integral_constant> 26629: { }; 26629: 26629: 26629: template 26629: struct is_trivially_move_constructible 26629: : public __is_trivially_move_constructible_impl<_Tp> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_trivially_assignable 26629: : public __bool_constant<__is_trivially_assignable(_Tp, _Up)> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: template::value> 26629: struct __is_trivially_copy_assignable_impl; 26629: 26629: template 26629: struct __is_trivially_copy_assignable_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_trivially_copy_assignable_impl<_Tp, true> 26629: : public __bool_constant<__is_trivially_assignable(_Tp&, const _Tp&)> 26629: { }; 26629: 26629: 26629: template 26629: struct is_trivially_copy_assignable 26629: : public __is_trivially_copy_assignable_impl<_Tp> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: template::value> 26629: struct __is_trivially_move_assignable_impl; 26629: 26629: template 26629: struct __is_trivially_move_assignable_impl<_Tp, false> 26629: : public false_type { }; 26629: 26629: template 26629: struct __is_trivially_move_assignable_impl<_Tp, true> 26629: : public __bool_constant<__is_trivially_assignable(_Tp&, _Tp&&)> 26629: { }; 26629: 26629: 26629: template 26629: struct is_trivially_move_assignable 26629: : public __is_trivially_move_assignable_impl<_Tp> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_trivially_destructible 26629: : public __and_<__is_destructible_safe<_Tp>, 26629: __bool_constant<__has_trivial_destructor(_Tp)>> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: 26629: template 26629: struct has_virtual_destructor 26629: : public integral_constant 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct alignment_of 26629: : public integral_constant 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct rank 26629: : public integral_constant { }; 26629: 26629: template 26629: struct rank<_Tp[_Size]> 26629: : public integral_constant::value> { }; 26629: 26629: template 26629: struct rank<_Tp[]> 26629: : public integral_constant::value> { }; 26629: 26629: 26629: template 26629: struct extent 26629: : public integral_constant { }; 26629: 26629: template 26629: struct extent<_Tp[_Size], _Uint> 26629: : public integral_constant::value> 26629: { }; 26629: 26629: template 26629: struct extent<_Tp[], _Uint> 26629: : public integral_constant::value> 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_same 26629: 26629: : public integral_constant 26629: 26629: 26629: 26629: { }; 26629: # 1445 "/usr/include/c++/12/type_traits" 3 26629: template 26629: struct is_base_of 26629: : public integral_constant 26629: { }; 26629: 26629: template, is_function<_To>, 26629: is_array<_To>>::value> 26629: struct __is_convertible_helper 26629: { 26629: typedef typename is_void<_To>::type type; 26629: }; 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 26629: template 26629: class __is_convertible_helper<_From, _To, false> 26629: { 26629: template 26629: static void __test_aux(_To1) noexcept; 26629: 26629: template(std::declval<_From1>()))> 26629: static true_type 26629: __test(int); 26629: 26629: template 26629: static false_type 26629: __test(...); 26629: 26629: public: 26629: typedef decltype(__test<_From, _To>(0)) type; 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: template 26629: struct is_convertible 26629: : public __is_convertible_helper<_From, _To>::type 26629: { }; 26629: 26629: 26629: template 26629: using __is_array_convertible 26629: = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; 26629: 26629: template, is_function<_To>, 26629: is_array<_To>>::value> 26629: struct __is_nt_convertible_helper 26629: : is_void<_To> 26629: { }; 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 26629: template 26629: class __is_nt_convertible_helper<_From, _To, false> 26629: { 26629: template 26629: static void __test_aux(_To1) noexcept; 26629: 26629: template 26629: static 26629: __bool_constant(std::declval<_From1>()))> 26629: __test(int); 26629: 26629: template 26629: static false_type 26629: __test(...); 26629: 26629: public: 26629: using type = decltype(__test<_From, _To>(0)); 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: template 26629: struct __is_nothrow_convertible 26629: : public __is_nt_convertible_helper<_From, _To>::type 26629: { }; 26629: # 1543 "/usr/include/c++/12/type_traits" 3 26629: template 26629: struct remove_const 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct remove_const<_Tp const> 26629: { typedef _Tp type; }; 26629: 26629: 26629: template 26629: struct remove_volatile 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct remove_volatile<_Tp volatile> 26629: { typedef _Tp type; }; 26629: 26629: 26629: template 26629: struct remove_cv 26629: { using type = _Tp; }; 26629: 26629: template 26629: struct remove_cv 26629: { using type = _Tp; }; 26629: 26629: template 26629: struct remove_cv 26629: { using type = _Tp; }; 26629: 26629: template 26629: struct remove_cv 26629: { using type = _Tp; }; 26629: 26629: 26629: template 26629: struct add_const 26629: { typedef _Tp const type; }; 26629: 26629: 26629: template 26629: struct add_volatile 26629: { typedef _Tp volatile type; }; 26629: 26629: 26629: template 26629: struct add_cv 26629: { 26629: typedef typename 26629: add_const::type>::type type; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: using remove_const_t = typename remove_const<_Tp>::type; 26629: 26629: 26629: template 26629: using remove_volatile_t = typename remove_volatile<_Tp>::type; 26629: 26629: 26629: template 26629: using remove_cv_t = typename remove_cv<_Tp>::type; 26629: 26629: 26629: template 26629: using add_const_t = typename add_const<_Tp>::type; 26629: 26629: 26629: template 26629: using add_volatile_t = typename add_volatile<_Tp>::type; 26629: 26629: 26629: template 26629: using add_cv_t = typename add_cv<_Tp>::type; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct remove_reference 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct remove_reference<_Tp&> 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct remove_reference<_Tp&&> 26629: { typedef _Tp type; }; 26629: 26629: template::value> 26629: struct __add_lvalue_reference_helper 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct __add_lvalue_reference_helper<_Tp, true> 26629: { typedef _Tp& type; }; 26629: 26629: 26629: template 26629: struct add_lvalue_reference 26629: : public __add_lvalue_reference_helper<_Tp> 26629: { }; 26629: 26629: template::value> 26629: struct __add_rvalue_reference_helper 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct __add_rvalue_reference_helper<_Tp, true> 26629: { typedef _Tp&& type; }; 26629: 26629: 26629: template 26629: struct add_rvalue_reference 26629: : public __add_rvalue_reference_helper<_Tp> 26629: { }; 26629: 26629: 26629: 26629: template 26629: using remove_reference_t = typename remove_reference<_Tp>::type; 26629: 26629: 26629: template 26629: using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; 26629: 26629: 26629: template 26629: using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __cv_selector; 26629: 26629: template 26629: struct __cv_selector<_Unqualified, false, false> 26629: { typedef _Unqualified __type; }; 26629: 26629: template 26629: struct __cv_selector<_Unqualified, false, true> 26629: { typedef volatile _Unqualified __type; }; 26629: 26629: template 26629: struct __cv_selector<_Unqualified, true, false> 26629: { typedef const _Unqualified __type; }; 26629: 26629: template 26629: struct __cv_selector<_Unqualified, true, true> 26629: { typedef const volatile _Unqualified __type; }; 26629: 26629: template::value, 26629: bool _IsVol = is_volatile<_Qualified>::value> 26629: class __match_cv_qualifiers 26629: { 26629: typedef __cv_selector<_Unqualified, _IsConst, _IsVol> __match; 26629: 26629: public: 26629: typedef typename __match::__type __type; 26629: }; 26629: 26629: 26629: template 26629: struct __make_unsigned 26629: { typedef _Tp __type; }; 26629: 26629: template<> 26629: struct __make_unsigned 26629: { typedef unsigned char __type; }; 26629: 26629: template<> 26629: struct __make_unsigned 26629: { typedef unsigned char __type; }; 26629: 26629: template<> 26629: struct __make_unsigned 26629: { typedef unsigned short __type; }; 26629: 26629: template<> 26629: struct __make_unsigned 26629: { typedef unsigned int __type; }; 26629: 26629: template<> 26629: struct __make_unsigned 26629: { typedef unsigned long __type; }; 26629: 26629: template<> 26629: struct __make_unsigned 26629: { typedef unsigned long long __type; }; 26629: # 1771 "/usr/include/c++/12/type_traits" 3 26629: template::value, 26629: bool _IsEnum = is_enum<_Tp>::value> 26629: class __make_unsigned_selector; 26629: 26629: template 26629: class __make_unsigned_selector<_Tp, true, false> 26629: { 26629: using __unsigned_type 26629: = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; 26629: 26629: public: 26629: using __type 26629: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 26629: }; 26629: 26629: class __make_unsigned_selector_base 26629: { 26629: protected: 26629: template struct _List { }; 26629: 26629: template 26629: struct _List<_Tp, _Up...> : _List<_Up...> 26629: { static constexpr size_t __size = sizeof(_Tp); }; 26629: 26629: template 26629: struct __select; 26629: 26629: template 26629: struct __select<_Sz, _List<_Uint, _UInts...>, true> 26629: { using __type = _Uint; }; 26629: 26629: template 26629: struct __select<_Sz, _List<_Uint, _UInts...>, false> 26629: : __select<_Sz, _List<_UInts...>> 26629: { }; 26629: }; 26629: 26629: 26629: template 26629: class __make_unsigned_selector<_Tp, false, true> 26629: : __make_unsigned_selector_base 26629: { 26629: 26629: using _UInts = _List; 26629: 26629: using __unsigned_type = typename __select::__type; 26629: 26629: public: 26629: using __type 26629: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct __make_unsigned 26629: { 26629: using __type 26629: = typename __make_unsigned_selector::__type; 26629: }; 26629: # 1845 "/usr/include/c++/12/type_traits" 3 26629: template<> 26629: struct __make_unsigned 26629: { 26629: using __type 26629: = typename __make_unsigned_selector::__type; 26629: }; 26629: 26629: template<> 26629: struct __make_unsigned 26629: { 26629: using __type 26629: = typename __make_unsigned_selector::__type; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct make_unsigned 26629: { typedef typename __make_unsigned_selector<_Tp>::__type type; }; 26629: 26629: 26629: template<> 26629: struct make_unsigned; 26629: 26629: 26629: 26629: 26629: template 26629: struct __make_signed 26629: { typedef _Tp __type; }; 26629: 26629: template<> 26629: struct __make_signed 26629: { typedef signed char __type; }; 26629: 26629: template<> 26629: struct __make_signed 26629: { typedef signed char __type; }; 26629: 26629: template<> 26629: struct __make_signed 26629: { typedef signed short __type; }; 26629: 26629: template<> 26629: struct __make_signed 26629: { typedef signed int __type; }; 26629: 26629: template<> 26629: struct __make_signed 26629: { typedef signed long __type; }; 26629: 26629: template<> 26629: struct __make_signed 26629: { typedef signed long long __type; }; 26629: # 1929 "/usr/include/c++/12/type_traits" 3 26629: template::value, 26629: bool _IsEnum = is_enum<_Tp>::value> 26629: class __make_signed_selector; 26629: 26629: template 26629: class __make_signed_selector<_Tp, true, false> 26629: { 26629: using __signed_type 26629: = typename __make_signed<__remove_cv_t<_Tp>>::__type; 26629: 26629: public: 26629: using __type 26629: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 26629: }; 26629: 26629: 26629: template 26629: class __make_signed_selector<_Tp, false, true> 26629: { 26629: typedef typename __make_unsigned_selector<_Tp>::__type __unsigned_type; 26629: 26629: public: 26629: typedef typename __make_signed_selector<__unsigned_type>::__type __type; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct __make_signed 26629: { 26629: using __type 26629: = typename __make_signed_selector::__type; 26629: }; 26629: # 1975 "/usr/include/c++/12/type_traits" 3 26629: template<> 26629: struct __make_signed 26629: { 26629: using __type 26629: = typename __make_signed_selector::__type; 26629: }; 26629: 26629: template<> 26629: struct __make_signed 26629: { 26629: using __type 26629: = typename __make_signed_selector::__type; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct make_signed 26629: { typedef typename __make_signed_selector<_Tp>::__type type; }; 26629: 26629: 26629: template<> 26629: struct make_signed; 26629: 26629: 26629: 26629: template 26629: using make_signed_t = typename make_signed<_Tp>::type; 26629: 26629: 26629: template 26629: using make_unsigned_t = typename make_unsigned<_Tp>::type; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct remove_extent 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct remove_extent<_Tp[_Size]> 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct remove_extent<_Tp[]> 26629: { typedef _Tp type; }; 26629: 26629: 26629: template 26629: struct remove_all_extents 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct remove_all_extents<_Tp[_Size]> 26629: { typedef typename remove_all_extents<_Tp>::type type; }; 26629: 26629: template 26629: struct remove_all_extents<_Tp[]> 26629: { typedef typename remove_all_extents<_Tp>::type type; }; 26629: 26629: 26629: 26629: template 26629: using remove_extent_t = typename remove_extent<_Tp>::type; 26629: 26629: 26629: template 26629: using remove_all_extents_t = typename remove_all_extents<_Tp>::type; 26629: 26629: 26629: 26629: 26629: template 26629: struct __remove_pointer_helper 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct __remove_pointer_helper<_Tp, _Up*> 26629: { typedef _Up type; }; 26629: 26629: 26629: template 26629: struct remove_pointer 26629: : public __remove_pointer_helper<_Tp, __remove_cv_t<_Tp>> 26629: { }; 26629: 26629: template, 26629: is_void<_Tp>>::value> 26629: struct __add_pointer_helper 26629: { typedef _Tp type; }; 26629: 26629: template 26629: struct __add_pointer_helper<_Tp, true> 26629: { typedef typename remove_reference<_Tp>::type* type; }; 26629: 26629: 26629: template 26629: struct add_pointer 26629: : public __add_pointer_helper<_Tp> 26629: { }; 26629: 26629: 26629: 26629: template 26629: using remove_pointer_t = typename remove_pointer<_Tp>::type; 26629: 26629: 26629: template 26629: using add_pointer_t = typename add_pointer<_Tp>::type; 26629: 26629: 26629: template 26629: struct __aligned_storage_msa 26629: { 26629: union __type 26629: { 26629: unsigned char __data[_Len]; 26629: struct __attribute__((__aligned__)) { } __align; 26629: }; 26629: }; 26629: # 2111 "/usr/include/c++/12/type_traits" 3 26629: template::__type)> 26629: struct aligned_storage 26629: { 26629: union type 26629: { 26629: unsigned char __data[_Len]; 26629: struct __attribute__((__aligned__((_Align)))) { } __align; 26629: }; 26629: }; 26629: 26629: template 26629: struct __strictest_alignment 26629: { 26629: static const size_t _S_alignment = 0; 26629: static const size_t _S_size = 0; 26629: }; 26629: 26629: template 26629: struct __strictest_alignment<_Tp, _Types...> 26629: { 26629: static const size_t _S_alignment = 26629: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 26629: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 26629: static const size_t _S_size = 26629: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 26629: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 26629: }; 26629: # 2150 "/usr/include/c++/12/type_traits" 3 26629: template 26629: struct aligned_union 26629: { 26629: private: 26629: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 26629: 26629: using __strictest = __strictest_alignment<_Types...>; 26629: static const size_t _S_len = _Len > __strictest::_S_size 26629: ? _Len : __strictest::_S_size; 26629: public: 26629: 26629: static const size_t alignment_value = __strictest::_S_alignment; 26629: 26629: typedef typename aligned_storage<_S_len, alignment_value>::type type; 26629: }; 26629: 26629: template 26629: const size_t aligned_union<_Len, _Types...>::alignment_value; 26629: 26629: 26629: 26629: 26629: 26629: template::value, 26629: bool _IsFunction = is_function<_Up>::value> 26629: struct __decay_selector; 26629: 26629: 26629: template 26629: struct __decay_selector<_Up, false, false> 26629: { typedef __remove_cv_t<_Up> __type; }; 26629: 26629: template 26629: struct __decay_selector<_Up, true, false> 26629: { typedef typename remove_extent<_Up>::type* __type; }; 26629: 26629: template 26629: struct __decay_selector<_Up, false, true> 26629: { typedef typename add_pointer<_Up>::type __type; }; 26629: 26629: 26629: 26629: template 26629: class decay 26629: { 26629: typedef typename remove_reference<_Tp>::type __remove_type; 26629: 26629: public: 26629: typedef typename __decay_selector<__remove_type>::__type type; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __strip_reference_wrapper 26629: { 26629: typedef _Tp __type; 26629: }; 26629: 26629: template 26629: struct __strip_reference_wrapper > 26629: { 26629: typedef _Tp& __type; 26629: }; 26629: 26629: 26629: template 26629: using __decay_t = typename decay<_Tp>::type; 26629: 26629: template 26629: using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; 26629: 26629: 26629: 26629: 26629: template 26629: struct enable_if 26629: { }; 26629: 26629: 26629: template 26629: struct enable_if 26629: { typedef _Tp type; }; 26629: 26629: 26629: 26629: 26629: template 26629: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 26629: 26629: 26629: template 26629: using _Require = __enable_if_t<__and_<_Cond...>::value>; 26629: 26629: 26629: template 26629: using __remove_cvref_t 26629: = typename remove_cv::type>::type; 26629: 26629: 26629: 26629: 26629: template 26629: struct conditional 26629: { typedef _Iftrue type; }; 26629: 26629: 26629: template 26629: struct conditional 26629: { typedef _Iffalse type; }; 26629: 26629: 26629: template 26629: struct common_type; 26629: 26629: 26629: 26629: 26629: struct __do_common_type_impl 26629: { 26629: template 26629: using __cond_t 26629: = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); 26629: 26629: 26629: 26629: template 26629: static __success_type<__decay_t<__cond_t<_Tp, _Up>>> 26629: _S_test(int); 26629: # 2290 "/usr/include/c++/12/type_traits" 3 26629: template 26629: static __failure_type 26629: _S_test_2(...); 26629: 26629: template 26629: static decltype(_S_test_2<_Tp, _Up>(0)) 26629: _S_test(...); 26629: }; 26629: 26629: 26629: template<> 26629: struct common_type<> 26629: { }; 26629: 26629: 26629: template 26629: struct common_type<_Tp0> 26629: : public common_type<_Tp0, _Tp0> 26629: { }; 26629: 26629: 26629: template, typename _Dp2 = __decay_t<_Tp2>> 26629: struct __common_type_impl 26629: { 26629: 26629: 26629: using type = common_type<_Dp1, _Dp2>; 26629: }; 26629: 26629: template 26629: struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> 26629: : private __do_common_type_impl 26629: { 26629: 26629: 26629: using type = decltype(_S_test<_Tp1, _Tp2>(0)); 26629: }; 26629: 26629: 26629: template 26629: struct common_type<_Tp1, _Tp2> 26629: : public __common_type_impl<_Tp1, _Tp2>::type 26629: { }; 26629: 26629: template 26629: struct __common_type_pack 26629: { }; 26629: 26629: template 26629: struct __common_type_fold; 26629: 26629: 26629: template 26629: struct common_type<_Tp1, _Tp2, _Rp...> 26629: : public __common_type_fold, 26629: __common_type_pack<_Rp...>> 26629: { }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, 26629: __void_t> 26629: : public common_type 26629: { }; 26629: 26629: 26629: template 26629: struct __common_type_fold<_CTp, _Rp, void> 26629: { }; 26629: 26629: template::value> 26629: struct __underlying_type_impl 26629: { 26629: using type = __underlying_type(_Tp); 26629: }; 26629: 26629: template 26629: struct __underlying_type_impl<_Tp, false> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct underlying_type 26629: : public __underlying_type_impl<_Tp> 26629: { }; 26629: 26629: 26629: template 26629: struct __declval_protector 26629: { 26629: static const bool __stop = false; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 26629: { 26629: static_assert(__declval_protector<_Tp>::__stop, 26629: "declval() must not be used!"); 26629: return __declval<_Tp>(0); 26629: } 26629: 26629: 26629: template 26629: struct result_of; 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct __invoke_memfun_ref { }; 26629: struct __invoke_memfun_deref { }; 26629: struct __invoke_memobj_ref { }; 26629: struct __invoke_memobj_deref { }; 26629: struct __invoke_other { }; 26629: 26629: 26629: template 26629: struct __result_of_success : __success_type<_Tp> 26629: { using __invoke_type = _Tag; }; 26629: 26629: 26629: struct __result_of_memfun_ref_impl 26629: { 26629: template 26629: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 26629: ), __invoke_memfun_ref> _S_test(int); 26629: 26629: template 26629: static __failure_type _S_test(...); 26629: }; 26629: 26629: template 26629: struct __result_of_memfun_ref 26629: : private __result_of_memfun_ref_impl 26629: { 26629: typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; 26629: }; 26629: 26629: 26629: struct __result_of_memfun_deref_impl 26629: { 26629: template 26629: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 26629: ), __invoke_memfun_deref> _S_test(int); 26629: 26629: template 26629: static __failure_type _S_test(...); 26629: }; 26629: 26629: template 26629: struct __result_of_memfun_deref 26629: : private __result_of_memfun_deref_impl 26629: { 26629: typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; 26629: }; 26629: 26629: 26629: struct __result_of_memobj_ref_impl 26629: { 26629: template 26629: static __result_of_success().*std::declval<_Fp>() 26629: ), __invoke_memobj_ref> _S_test(int); 26629: 26629: template 26629: static __failure_type _S_test(...); 26629: }; 26629: 26629: template 26629: struct __result_of_memobj_ref 26629: : private __result_of_memobj_ref_impl 26629: { 26629: typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; 26629: }; 26629: 26629: 26629: struct __result_of_memobj_deref_impl 26629: { 26629: template 26629: static __result_of_success()).*std::declval<_Fp>() 26629: ), __invoke_memobj_deref> _S_test(int); 26629: 26629: template 26629: static __failure_type _S_test(...); 26629: }; 26629: 26629: template 26629: struct __result_of_memobj_deref 26629: : private __result_of_memobj_deref_impl 26629: { 26629: typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; 26629: }; 26629: 26629: template 26629: struct __result_of_memobj; 26629: 26629: template 26629: struct __result_of_memobj<_Res _Class::*, _Arg> 26629: { 26629: typedef __remove_cvref_t<_Arg> _Argval; 26629: typedef _Res _Class::* _MemPtr; 26629: typedef typename __conditional_t<__or_, 26629: is_base_of<_Class, _Argval>>::value, 26629: __result_of_memobj_ref<_MemPtr, _Arg>, 26629: __result_of_memobj_deref<_MemPtr, _Arg> 26629: >::type type; 26629: }; 26629: 26629: template 26629: struct __result_of_memfun; 26629: 26629: template 26629: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 26629: { 26629: typedef typename remove_reference<_Arg>::type _Argval; 26629: typedef _Res _Class::* _MemPtr; 26629: typedef typename __conditional_t::value, 26629: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 26629: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 26629: >::type type; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: struct __inv_unwrap 26629: { 26629: using type = _Tp; 26629: }; 26629: 26629: template 26629: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 26629: { 26629: using type = _Up&; 26629: }; 26629: 26629: template 26629: struct __result_of_impl 26629: { 26629: typedef __failure_type type; 26629: }; 26629: 26629: template 26629: struct __result_of_impl 26629: : public __result_of_memobj<__decay_t<_MemPtr>, 26629: typename __inv_unwrap<_Arg>::type> 26629: { }; 26629: 26629: template 26629: struct __result_of_impl 26629: : public __result_of_memfun<__decay_t<_MemPtr>, 26629: typename __inv_unwrap<_Arg>::type, _Args...> 26629: { }; 26629: 26629: 26629: struct __result_of_other_impl 26629: { 26629: template 26629: static __result_of_success()(std::declval<_Args>()...) 26629: ), __invoke_other> _S_test(int); 26629: 26629: template 26629: static __failure_type _S_test(...); 26629: }; 26629: 26629: template 26629: struct __result_of_impl 26629: : private __result_of_other_impl 26629: { 26629: typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type; 26629: }; 26629: 26629: 26629: template 26629: struct __invoke_result 26629: : public __result_of_impl< 26629: is_member_object_pointer< 26629: typename remove_reference<_Functor>::type 26629: >::value, 26629: is_member_function_pointer< 26629: typename remove_reference<_Functor>::type 26629: >::value, 26629: _Functor, _ArgTypes... 26629: >::type 26629: { }; 26629: 26629: 26629: template 26629: struct result_of<_Functor(_ArgTypes...)> 26629: : public __invoke_result<_Functor, _ArgTypes...> 26629: { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); 26629: 26629: 26629: 26629: template::__type)> 26629: using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; 26629: 26629: template 26629: using aligned_union_t = typename aligned_union<_Len, _Types...>::type; 26629: 26629: 26629: template 26629: using decay_t = typename decay<_Tp>::type; 26629: 26629: 26629: template 26629: using enable_if_t = typename enable_if<_Cond, _Tp>::type; 26629: 26629: 26629: template 26629: using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; 26629: 26629: 26629: template 26629: using common_type_t = typename common_type<_Tp...>::type; 26629: 26629: 26629: template 26629: using underlying_type_t = typename underlying_type<_Tp>::type; 26629: 26629: 26629: template 26629: using result_of_t = typename result_of<_Tp>::type; 26629: 26629: 26629: 26629: 26629: 26629: template using void_t = void; 26629: 26629: 26629: 26629: 26629: 26629: template class _Op, typename... _Args> 26629: struct __detector 26629: { 26629: using value_t = false_type; 26629: using type = _Default; 26629: }; 26629: 26629: 26629: template class _Op, 26629: typename... _Args> 26629: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 26629: { 26629: using value_t = true_type; 26629: using type = _Op<_Args...>; 26629: }; 26629: 26629: 26629: template class _Op, 26629: typename... _Args> 26629: using __detected_or = __detector<_Default, void, _Op, _Args...>; 26629: 26629: 26629: template class _Op, 26629: typename... _Args> 26629: using __detected_or_t 26629: = typename __detected_or<_Default, _Op, _Args...>::type; 26629: # 2684 "/usr/include/c++/12/type_traits" 3 26629: template 26629: struct __is_swappable; 26629: 26629: template 26629: struct __is_nothrow_swappable; 26629: 26629: template 26629: struct __is_tuple_like_impl : false_type 26629: { }; 26629: 26629: 26629: template 26629: struct __is_tuple_like 26629: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 26629: { }; 26629: 26629: 26629: template 26629: 26629: inline 26629: _Require<__not_<__is_tuple_like<_Tp>>, 26629: is_move_constructible<_Tp>, 26629: is_move_assignable<_Tp>> 26629: swap(_Tp&, _Tp&) 26629: noexcept(__and_, 26629: is_nothrow_move_assignable<_Tp>>::value); 26629: 26629: template 26629: 26629: inline 26629: __enable_if_t<__is_swappable<_Tp>::value> 26629: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 26629: noexcept(__is_nothrow_swappable<_Tp>::value); 26629: 26629: 26629: namespace __swappable_details { 26629: using std::swap; 26629: 26629: struct __do_is_swappable_impl 26629: { 26629: template(), std::declval<_Tp&>()))> 26629: static true_type __test(int); 26629: 26629: template 26629: static false_type __test(...); 26629: }; 26629: 26629: struct __do_is_nothrow_swappable_impl 26629: { 26629: template 26629: static __bool_constant< 26629: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 26629: > __test(int); 26629: 26629: template 26629: static false_type __test(...); 26629: }; 26629: 26629: } 26629: 26629: template 26629: struct __is_swappable_impl 26629: : public __swappable_details::__do_is_swappable_impl 26629: { 26629: typedef decltype(__test<_Tp>(0)) type; 26629: }; 26629: 26629: template 26629: struct __is_nothrow_swappable_impl 26629: : public __swappable_details::__do_is_nothrow_swappable_impl 26629: { 26629: typedef decltype(__test<_Tp>(0)) type; 26629: }; 26629: 26629: template 26629: struct __is_swappable 26629: : public __is_swappable_impl<_Tp>::type 26629: { }; 26629: 26629: template 26629: struct __is_nothrow_swappable 26629: : public __is_nothrow_swappable_impl<_Tp>::type 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_swappable 26629: : public __is_swappable_impl<_Tp>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_nothrow_swappable 26629: : public __is_nothrow_swappable_impl<_Tp>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: 26629: template 26629: inline constexpr bool is_swappable_v = 26629: is_swappable<_Tp>::value; 26629: 26629: 26629: template 26629: inline constexpr bool is_nothrow_swappable_v = 26629: is_nothrow_swappable<_Tp>::value; 26629: 26629: 26629: 26629: namespace __swappable_with_details { 26629: using std::swap; 26629: 26629: struct __do_is_swappable_with_impl 26629: { 26629: template(), std::declval<_Up>())), 26629: typename 26629: = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> 26629: static true_type __test(int); 26629: 26629: template 26629: static false_type __test(...); 26629: }; 26629: 26629: struct __do_is_nothrow_swappable_with_impl 26629: { 26629: template 26629: static __bool_constant< 26629: noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) 26629: && 26629: noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) 26629: > __test(int); 26629: 26629: template 26629: static false_type __test(...); 26629: }; 26629: 26629: } 26629: 26629: template 26629: struct __is_swappable_with_impl 26629: : public __swappable_with_details::__do_is_swappable_with_impl 26629: { 26629: typedef decltype(__test<_Tp, _Up>(0)) type; 26629: }; 26629: 26629: 26629: template 26629: struct __is_swappable_with_impl<_Tp&, _Tp&> 26629: : public __swappable_details::__do_is_swappable_impl 26629: { 26629: typedef decltype(__test<_Tp&>(0)) type; 26629: }; 26629: 26629: template 26629: struct __is_nothrow_swappable_with_impl 26629: : public __swappable_with_details::__do_is_nothrow_swappable_with_impl 26629: { 26629: typedef decltype(__test<_Tp, _Up>(0)) type; 26629: }; 26629: 26629: 26629: template 26629: struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> 26629: : public __swappable_details::__do_is_nothrow_swappable_impl 26629: { 26629: typedef decltype(__test<_Tp&>(0)) type; 26629: }; 26629: 26629: 26629: 26629: template 26629: struct is_swappable_with 26629: : public __is_swappable_with_impl<_Tp, _Up>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "first template argument must be a complete class or an unbounded array"); 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 26629: "second template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_nothrow_swappable_with 26629: : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "first template argument must be a complete class or an unbounded array"); 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 26629: "second template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: 26629: template 26629: inline constexpr bool is_swappable_with_v = 26629: is_swappable_with<_Tp, _Up>::value; 26629: 26629: 26629: template 26629: inline constexpr bool is_nothrow_swappable_with_v = 26629: is_nothrow_swappable_with<_Tp, _Up>::value; 26629: # 2907 "/usr/include/c++/12/type_traits" 3 26629: template::value, typename = void> 26629: struct __is_invocable_impl : false_type { }; 26629: 26629: 26629: template 26629: struct __is_invocable_impl<_Result, _Ret, 26629: true, 26629: __void_t> 26629: : true_type 26629: { }; 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 26629: 26629: template 26629: struct __is_invocable_impl<_Result, _Ret, 26629: false, 26629: __void_t> 26629: { 26629: private: 26629: 26629: 26629: static typename _Result::type _S_get(); 26629: 26629: template 26629: static void _S_conv(_Tp); 26629: 26629: 26629: template(_S_get()))> 26629: static true_type 26629: _S_test(int); 26629: 26629: template 26629: static false_type 26629: _S_test(...); 26629: 26629: public: 26629: using type = decltype(_S_test<_Ret>(1)); 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: template 26629: struct __is_invocable 26629: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 26629: { }; 26629: 26629: template 26629: constexpr bool __call_is_nt(__invoke_memfun_ref) 26629: { 26629: using _Up = typename __inv_unwrap<_Tp>::type; 26629: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 26629: std::declval<_Args>()...)); 26629: } 26629: 26629: template 26629: constexpr bool __call_is_nt(__invoke_memfun_deref) 26629: { 26629: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 26629: std::declval<_Args>()...)); 26629: } 26629: 26629: template 26629: constexpr bool __call_is_nt(__invoke_memobj_ref) 26629: { 26629: using _Up = typename __inv_unwrap<_Tp>::type; 26629: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 26629: } 26629: 26629: template 26629: constexpr bool __call_is_nt(__invoke_memobj_deref) 26629: { 26629: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 26629: } 26629: 26629: template 26629: constexpr bool __call_is_nt(__invoke_other) 26629: { 26629: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 26629: } 26629: 26629: template 26629: struct __call_is_nothrow 26629: : __bool_constant< 26629: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 26629: > 26629: { }; 26629: 26629: template 26629: using __call_is_nothrow_ 26629: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 26629: 26629: 26629: template 26629: struct __is_nothrow_invocable 26629: : __and_<__is_invocable<_Fn, _Args...>, 26629: __call_is_nothrow_<_Fn, _Args...>>::type 26629: { }; 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 26629: struct __nonesuchbase {}; 26629: struct __nonesuch : private __nonesuchbase { 26629: ~__nonesuch() = delete; 26629: __nonesuch(__nonesuch const&) = delete; 26629: void operator=(__nonesuch const&) = delete; 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct invoke_result 26629: : public __invoke_result<_Functor, _ArgTypes...> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), 26629: "_Functor must be a complete class or an unbounded array"); 26629: static_assert((std::__is_complete_or_unbounded( 26629: __type_identity<_ArgTypes>{}) && ...), 26629: "each argument type must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; 26629: 26629: 26629: template 26629: struct is_invocable 26629: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 26629: "_Fn must be a complete class or an unbounded array"); 26629: static_assert((std::__is_complete_or_unbounded( 26629: __type_identity<_ArgTypes>{}) && ...), 26629: "each argument type must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_invocable_r 26629: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 26629: "_Fn must be a complete class or an unbounded array"); 26629: static_assert((std::__is_complete_or_unbounded( 26629: __type_identity<_ArgTypes>{}) && ...), 26629: "each argument type must be a complete class or an unbounded array"); 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 26629: "_Ret must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct is_nothrow_invocable 26629: : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, 26629: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 26629: "_Fn must be a complete class or an unbounded array"); 26629: static_assert((std::__is_complete_or_unbounded( 26629: __type_identity<_ArgTypes>{}) && ...), 26629: "each argument type must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: struct __is_nt_invocable_impl : false_type { }; 26629: 26629: template 26629: struct __is_nt_invocable_impl<_Result, _Ret, 26629: __void_t> 26629: : __or_, 26629: __is_nothrow_convertible> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct is_nothrow_invocable_r 26629: : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, 26629: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 26629: "_Fn must be a complete class or an unbounded array"); 26629: static_assert((std::__is_complete_or_unbounded( 26629: __type_identity<_ArgTypes>{}) && ...), 26629: "each argument type must be a complete class or an unbounded array"); 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 26629: "_Ret must be a complete class or an unbounded array"); 26629: }; 26629: # 3119 "/usr/include/c++/12/type_traits" 3 26629: template 26629: inline constexpr bool is_void_v = is_void<_Tp>::value; 26629: template 26629: inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; 26629: template 26629: inline constexpr bool is_integral_v = is_integral<_Tp>::value; 26629: template 26629: inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; 26629: template 26629: inline constexpr bool is_array_v = is_array<_Tp>::value; 26629: template 26629: inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; 26629: template 26629: inline constexpr bool is_lvalue_reference_v = 26629: is_lvalue_reference<_Tp>::value; 26629: template 26629: inline constexpr bool is_rvalue_reference_v = 26629: is_rvalue_reference<_Tp>::value; 26629: template 26629: inline constexpr bool is_member_object_pointer_v = 26629: is_member_object_pointer<_Tp>::value; 26629: template 26629: inline constexpr bool is_member_function_pointer_v = 26629: is_member_function_pointer<_Tp>::value; 26629: template 26629: inline constexpr bool is_enum_v = is_enum<_Tp>::value; 26629: template 26629: inline constexpr bool is_union_v = is_union<_Tp>::value; 26629: template 26629: inline constexpr bool is_class_v = is_class<_Tp>::value; 26629: template 26629: inline constexpr bool is_function_v = is_function<_Tp>::value; 26629: template 26629: inline constexpr bool is_reference_v = is_reference<_Tp>::value; 26629: template 26629: inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; 26629: template 26629: inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; 26629: template 26629: inline constexpr bool is_object_v = is_object<_Tp>::value; 26629: template 26629: inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; 26629: template 26629: inline constexpr bool is_compound_v = is_compound<_Tp>::value; 26629: template 26629: inline constexpr bool is_member_pointer_v = is_member_pointer<_Tp>::value; 26629: template 26629: inline constexpr bool is_const_v = is_const<_Tp>::value; 26629: template 26629: inline constexpr bool is_volatile_v = is_volatile<_Tp>::value; 26629: template 26629: inline constexpr bool is_trivial_v = is_trivial<_Tp>::value; 26629: template 26629: inline constexpr bool is_trivially_copyable_v = 26629: is_trivially_copyable<_Tp>::value; 26629: template 26629: inline constexpr bool is_standard_layout_v = is_standard_layout<_Tp>::value; 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: template 26629: 26629: inline constexpr bool is_pod_v = is_pod<_Tp>::value; 26629: template 26629: [[__deprecated__]] 26629: inline constexpr bool is_literal_type_v = is_literal_type<_Tp>::value; 26629: #pragma GCC diagnostic pop 26629: template 26629: inline constexpr bool is_empty_v = is_empty<_Tp>::value; 26629: template 26629: inline constexpr bool is_polymorphic_v = is_polymorphic<_Tp>::value; 26629: template 26629: inline constexpr bool is_abstract_v = is_abstract<_Tp>::value; 26629: template 26629: inline constexpr bool is_final_v = is_final<_Tp>::value; 26629: template 26629: inline constexpr bool is_signed_v = is_signed<_Tp>::value; 26629: template 26629: inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; 26629: template 26629: inline constexpr bool is_constructible_v = 26629: is_constructible<_Tp, _Args...>::value; 26629: template 26629: inline constexpr bool is_default_constructible_v = 26629: is_default_constructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_copy_constructible_v = 26629: is_copy_constructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_move_constructible_v = 26629: is_move_constructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_assignable_v = is_assignable<_Tp, _Up>::value; 26629: template 26629: inline constexpr bool is_copy_assignable_v = is_copy_assignable<_Tp>::value; 26629: template 26629: inline constexpr bool is_move_assignable_v = is_move_assignable<_Tp>::value; 26629: template 26629: inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_trivially_constructible_v = 26629: is_trivially_constructible<_Tp, _Args...>::value; 26629: template 26629: inline constexpr bool is_trivially_default_constructible_v = 26629: is_trivially_default_constructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_trivially_copy_constructible_v = 26629: is_trivially_copy_constructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_trivially_move_constructible_v = 26629: is_trivially_move_constructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_trivially_assignable_v = 26629: is_trivially_assignable<_Tp, _Up>::value; 26629: template 26629: inline constexpr bool is_trivially_copy_assignable_v = 26629: is_trivially_copy_assignable<_Tp>::value; 26629: template 26629: inline constexpr bool is_trivially_move_assignable_v = 26629: is_trivially_move_assignable<_Tp>::value; 26629: template 26629: inline constexpr bool is_trivially_destructible_v = 26629: is_trivially_destructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_nothrow_constructible_v = 26629: is_nothrow_constructible<_Tp, _Args...>::value; 26629: template 26629: inline constexpr bool is_nothrow_default_constructible_v = 26629: is_nothrow_default_constructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_nothrow_copy_constructible_v = 26629: is_nothrow_copy_constructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_nothrow_move_constructible_v = 26629: is_nothrow_move_constructible<_Tp>::value; 26629: template 26629: inline constexpr bool is_nothrow_assignable_v = 26629: is_nothrow_assignable<_Tp, _Up>::value; 26629: template 26629: inline constexpr bool is_nothrow_copy_assignable_v = 26629: is_nothrow_copy_assignable<_Tp>::value; 26629: template 26629: inline constexpr bool is_nothrow_move_assignable_v = 26629: is_nothrow_move_assignable<_Tp>::value; 26629: template 26629: inline constexpr bool is_nothrow_destructible_v = 26629: is_nothrow_destructible<_Tp>::value; 26629: template 26629: inline constexpr bool has_virtual_destructor_v = 26629: has_virtual_destructor<_Tp>::value; 26629: template 26629: inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; 26629: template 26629: inline constexpr size_t rank_v = rank<_Tp>::value; 26629: template 26629: inline constexpr size_t extent_v = extent<_Tp, _Idx>::value; 26629: 26629: template 26629: inline constexpr bool is_same_v = __is_same(_Tp, _Up); 26629: 26629: 26629: 26629: 26629: template 26629: inline constexpr bool is_base_of_v = is_base_of<_Base, _Derived>::value; 26629: template 26629: inline constexpr bool is_convertible_v = is_convertible<_From, _To>::value; 26629: template 26629: inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; 26629: template 26629: inline constexpr bool is_nothrow_invocable_v 26629: = is_nothrow_invocable<_Fn, _Args...>::value; 26629: template 26629: inline constexpr bool is_invocable_r_v 26629: = is_invocable_r<_Ret, _Fn, _Args...>::value; 26629: template 26629: inline constexpr bool is_nothrow_invocable_r_v 26629: = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct has_unique_object_representations 26629: : bool_constant<__has_unique_object_representations( 26629: remove_cv_t> 26629: )> 26629: { 26629: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 26629: "template argument must be a complete class or an unbounded array"); 26629: }; 26629: 26629: 26629: template 26629: inline constexpr bool has_unique_object_representations_v 26629: = has_unique_object_representations<_Tp>::value; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_aggregate 26629: : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> 26629: { }; 26629: 26629: 26629: template 26629: inline constexpr bool is_aggregate_v = is_aggregate<_Tp>::value; 26629: # 3703 "/usr/include/c++/12/type_traits" 3 26629: 26629: } 26629: # 58 "/usr/include/c++/12/bits/move.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 74 "/usr/include/c++/12/bits/move.h" 3 26629: template 26629: [[__nodiscard__]] 26629: constexpr _Tp&& 26629: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 26629: { return static_cast<_Tp&&>(__t); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: constexpr _Tp&& 26629: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 26629: { 26629: static_assert(!std::is_lvalue_reference<_Tp>::value, 26629: "std::forward must not be used to convert an rvalue to an lvalue"); 26629: return static_cast<_Tp&&>(__t); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: constexpr typename std::remove_reference<_Tp>::type&& 26629: move(_Tp&& __t) noexcept 26629: { return static_cast::type&&>(__t); } 26629: 26629: 26629: template 26629: struct __move_if_noexcept_cond 26629: : public __and_<__not_>, 26629: is_copy_constructible<_Tp>>::type { }; 26629: # 121 "/usr/include/c++/12/bits/move.h" 3 26629: template 26629: [[__nodiscard__]] 26629: constexpr 26629: __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> 26629: move_if_noexcept(_Tp& __x) noexcept 26629: { return std::move(__x); } 26629: # 142 "/usr/include/c++/12/bits/move.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr _Tp* 26629: addressof(_Tp& __r) noexcept 26629: { return std::__addressof(__r); } 26629: 26629: 26629: 26629: template 26629: const _Tp* addressof(const _Tp&&) = delete; 26629: 26629: 26629: template 26629: 26629: inline _Tp 26629: __exchange(_Tp& __obj, _Up&& __new_val) 26629: { 26629: _Tp __old_val = std::move(__obj); 26629: __obj = std::forward<_Up>(__new_val); 26629: return __old_val; 26629: } 26629: # 186 "/usr/include/c++/12/bits/move.h" 3 26629: template 26629: 26629: inline 26629: 26629: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 26629: is_move_constructible<_Tp>, 26629: is_move_assignable<_Tp>>::value>::type 26629: 26629: 26629: 26629: swap(_Tp& __a, _Tp& __b) 26629: noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) 26629: 26629: { 26629: 26629: 26629: 26629: 26629: _Tp __tmp = std::move(__a); 26629: __a = std::move(__b); 26629: __b = std::move(__tmp); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline 26629: 26629: typename enable_if<__is_swappable<_Tp>::value>::type 26629: 26629: 26629: 26629: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 26629: noexcept(__is_nothrow_swappable<_Tp>::value) 26629: { 26629: for (size_t __n = 0; __n < _Nm; ++__n) 26629: swap(__a[__n], __b[__n]); 26629: } 26629: 26629: 26629: 26629: } 26629: # 39 "/usr/include/c++/12/bits/atomic_base.h" 2 3 26629: # 48 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 78 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: typedef enum memory_order 26629: { 26629: memory_order_relaxed, 26629: memory_order_consume, 26629: memory_order_acquire, 26629: memory_order_release, 26629: memory_order_acq_rel, 26629: memory_order_seq_cst 26629: } memory_order; 26629: 26629: 26629: enum __memory_order_modifier 26629: { 26629: __memory_order_mask = 0x0ffff, 26629: __memory_order_modifier_mask = 0xffff0000, 26629: __memory_order_hle_acquire = 0x10000, 26629: __memory_order_hle_release = 0x20000 26629: }; 26629: 26629: constexpr memory_order 26629: operator|(memory_order __m, __memory_order_modifier __mod) 26629: { 26629: return memory_order(int(__m) | int(__mod)); 26629: } 26629: 26629: constexpr memory_order 26629: operator&(memory_order __m, __memory_order_modifier __mod) 26629: { 26629: return memory_order(int(__m) & int(__mod)); 26629: } 26629: 26629: 26629: constexpr memory_order 26629: __cmpexch_failure_order2(memory_order __m) noexcept 26629: { 26629: return __m == memory_order_acq_rel ? memory_order_acquire 26629: : __m == memory_order_release ? memory_order_relaxed : __m; 26629: } 26629: 26629: constexpr memory_order 26629: __cmpexch_failure_order(memory_order __m) noexcept 26629: { 26629: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 26629: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 26629: } 26629: 26629: constexpr bool 26629: __is_valid_cmpexch_failure_order(memory_order __m) noexcept 26629: { 26629: return (__m & __memory_order_mask) != memory_order_release 26629: && (__m & __memory_order_mask) != memory_order_acq_rel; 26629: } 26629: 26629: inline __attribute__((__always_inline__)) void 26629: atomic_thread_fence(memory_order __m) noexcept 26629: { __atomic_thread_fence(int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) void 26629: atomic_signal_fence(memory_order __m) noexcept 26629: { __atomic_signal_fence(int(__m)); } 26629: 26629: 26629: template 26629: inline _Tp 26629: kill_dependency(_Tp __y) noexcept 26629: { 26629: _Tp __ret(__y); 26629: return __ret; 26629: } 26629: 26629: 26629: template 26629: struct __atomic_base; 26629: # 161 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: template 26629: struct atomic; 26629: 26629: template 26629: struct atomic<_Tp*>; 26629: 26629: 26629: 26629: typedef bool __atomic_flag_data_type; 26629: # 184 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: extern "C" { 26629: 26629: struct __atomic_flag_base 26629: { 26629: __atomic_flag_data_type _M_i ; 26629: }; 26629: 26629: } 26629: 26629: 26629: 26629: 26629: struct atomic_flag : public __atomic_flag_base 26629: { 26629: atomic_flag() noexcept = default; 26629: ~atomic_flag() noexcept = default; 26629: atomic_flag(const atomic_flag&) = delete; 26629: atomic_flag& operator=(const atomic_flag&) = delete; 26629: atomic_flag& operator=(const atomic_flag&) volatile = delete; 26629: 26629: 26629: constexpr atomic_flag(bool __i) noexcept 26629: : __atomic_flag_base{ _S_init(__i) } 26629: { } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: return __atomic_test_and_set (&_M_i, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: return __atomic_test_and_set (&_M_i, int(__m)); 26629: } 26629: # 268 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: inline __attribute__((__always_inline__)) void 26629: clear(memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: memory_order __b __attribute__ ((__unused__)) 26629: = __m & __memory_order_mask; 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 26629: 26629: __atomic_clear (&_M_i, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) void 26629: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: memory_order __b __attribute__ ((__unused__)) 26629: = __m & __memory_order_mask; 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 26629: 26629: __atomic_clear (&_M_i, int(__m)); 26629: } 26629: 26629: private: 26629: static constexpr __atomic_flag_data_type 26629: _S_init(bool __i) 26629: { return __i ? 1 : 0; } 26629: }; 26629: # 323 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: template 26629: struct __atomic_base 26629: { 26629: using value_type = _ITp; 26629: using difference_type = value_type; 26629: 26629: private: 26629: typedef _ITp __int_type; 26629: 26629: static constexpr int _S_alignment = 26629: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 26629: 26629: alignas(_S_alignment) __int_type _M_i ; 26629: 26629: public: 26629: __atomic_base() noexcept = default; 26629: ~__atomic_base() noexcept = default; 26629: __atomic_base(const __atomic_base&) = delete; 26629: __atomic_base& operator=(const __atomic_base&) = delete; 26629: __atomic_base& operator=(const __atomic_base&) volatile = delete; 26629: 26629: 26629: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 26629: 26629: operator __int_type() const noexcept 26629: { return load(); } 26629: 26629: operator __int_type() const volatile noexcept 26629: { return load(); } 26629: 26629: __int_type 26629: operator=(__int_type __i) noexcept 26629: { 26629: store(__i); 26629: return __i; 26629: } 26629: 26629: __int_type 26629: operator=(__int_type __i) volatile noexcept 26629: { 26629: store(__i); 26629: return __i; 26629: } 26629: 26629: __int_type 26629: operator++(int) noexcept 26629: { return fetch_add(1); } 26629: 26629: __int_type 26629: operator++(int) volatile noexcept 26629: { return fetch_add(1); } 26629: 26629: __int_type 26629: operator--(int) noexcept 26629: { return fetch_sub(1); } 26629: 26629: __int_type 26629: operator--(int) volatile noexcept 26629: { return fetch_sub(1); } 26629: 26629: __int_type 26629: operator++() noexcept 26629: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator++() volatile noexcept 26629: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator--() noexcept 26629: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator--() volatile noexcept 26629: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator+=(__int_type __i) noexcept 26629: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator+=(__int_type __i) volatile noexcept 26629: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator-=(__int_type __i) noexcept 26629: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator-=(__int_type __i) volatile noexcept 26629: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator&=(__int_type __i) noexcept 26629: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator&=(__int_type __i) volatile noexcept 26629: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator|=(__int_type __i) noexcept 26629: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator|=(__int_type __i) volatile noexcept 26629: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator^=(__int_type __i) noexcept 26629: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 26629: 26629: __int_type 26629: operator^=(__int_type __i) volatile noexcept 26629: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 26629: 26629: bool 26629: is_lock_free() const noexcept 26629: { 26629: 26629: return __atomic_is_lock_free(sizeof(_M_i), 26629: reinterpret_cast(-_S_alignment)); 26629: } 26629: 26629: bool 26629: is_lock_free() const volatile noexcept 26629: { 26629: 26629: return __atomic_is_lock_free(sizeof(_M_i), 26629: reinterpret_cast(-_S_alignment)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) void 26629: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: memory_order __b __attribute__ ((__unused__)) 26629: = __m & __memory_order_mask; 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 26629: 26629: __atomic_store_n(&_M_i, __i, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) void 26629: store(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: memory_order __b __attribute__ ((__unused__)) 26629: = __m & __memory_order_mask; 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 26629: 26629: __atomic_store_n(&_M_i, __i, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: load(memory_order __m = memory_order_seq_cst) const noexcept 26629: { 26629: memory_order __b __attribute__ ((__unused__)) 26629: = __m & __memory_order_mask; 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_load_n(&_M_i, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 26629: { 26629: memory_order __b __attribute__ ((__unused__)) 26629: = __m & __memory_order_mask; 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_load_n(&_M_i, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: exchange(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: return __atomic_exchange_n(&_M_i, __i, int(__m)); 26629: } 26629: 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: exchange(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: return __atomic_exchange_n(&_M_i, __i, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_weak(__int_type& __i1, __int_type __i2, 26629: memory_order __m1, memory_order __m2) noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 26629: int(__m1), int(__m2)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_weak(__int_type& __i1, __int_type __i2, 26629: memory_order __m1, 26629: memory_order __m2) volatile noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 26629: int(__m1), int(__m2)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_weak(__int_type& __i1, __int_type __i2, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: return compare_exchange_weak(__i1, __i2, __m, 26629: __cmpexch_failure_order(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_weak(__int_type& __i1, __int_type __i2, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: return compare_exchange_weak(__i1, __i2, __m, 26629: __cmpexch_failure_order(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_strong(__int_type& __i1, __int_type __i2, 26629: memory_order __m1, memory_order __m2) noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 26629: int(__m1), int(__m2)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_strong(__int_type& __i1, __int_type __i2, 26629: memory_order __m1, 26629: memory_order __m2) volatile noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 26629: int(__m1), int(__m2)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_strong(__int_type& __i1, __int_type __i2, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: return compare_exchange_strong(__i1, __i2, __m, 26629: __cmpexch_failure_order(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_strong(__int_type& __i1, __int_type __i2, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: return compare_exchange_strong(__i1, __i2, __m, 26629: __cmpexch_failure_order(__m)); 26629: } 26629: # 615 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: inline __attribute__((__always_inline__)) __int_type 26629: fetch_add(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: fetch_add(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: fetch_sub(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: fetch_sub(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: fetch_and(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: fetch_and(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: fetch_or(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: fetch_or(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: fetch_xor(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __int_type 26629: fetch_xor(__int_type __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 26629: }; 26629: 26629: 26629: 26629: template 26629: struct __atomic_base<_PTp*> 26629: { 26629: private: 26629: typedef _PTp* __pointer_type; 26629: 26629: __pointer_type _M_p ; 26629: 26629: 26629: constexpr ptrdiff_t 26629: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 26629: 26629: constexpr ptrdiff_t 26629: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 26629: 26629: public: 26629: __atomic_base() noexcept = default; 26629: ~__atomic_base() noexcept = default; 26629: __atomic_base(const __atomic_base&) = delete; 26629: __atomic_base& operator=(const __atomic_base&) = delete; 26629: __atomic_base& operator=(const __atomic_base&) volatile = delete; 26629: 26629: 26629: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 26629: 26629: operator __pointer_type() const noexcept 26629: { return load(); } 26629: 26629: operator __pointer_type() const volatile noexcept 26629: { return load(); } 26629: 26629: __pointer_type 26629: operator=(__pointer_type __p) noexcept 26629: { 26629: store(__p); 26629: return __p; 26629: } 26629: 26629: __pointer_type 26629: operator=(__pointer_type __p) volatile noexcept 26629: { 26629: store(__p); 26629: return __p; 26629: } 26629: 26629: __pointer_type 26629: operator++(int) noexcept 26629: { return fetch_add(1); } 26629: 26629: __pointer_type 26629: operator++(int) volatile noexcept 26629: { return fetch_add(1); } 26629: 26629: __pointer_type 26629: operator--(int) noexcept 26629: { return fetch_sub(1); } 26629: 26629: __pointer_type 26629: operator--(int) volatile noexcept 26629: { return fetch_sub(1); } 26629: 26629: __pointer_type 26629: operator++() noexcept 26629: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 26629: int(memory_order_seq_cst)); } 26629: 26629: __pointer_type 26629: operator++() volatile noexcept 26629: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 26629: int(memory_order_seq_cst)); } 26629: 26629: __pointer_type 26629: operator--() noexcept 26629: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 26629: int(memory_order_seq_cst)); } 26629: 26629: __pointer_type 26629: operator--() volatile noexcept 26629: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 26629: int(memory_order_seq_cst)); } 26629: 26629: __pointer_type 26629: operator+=(ptrdiff_t __d) noexcept 26629: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 26629: int(memory_order_seq_cst)); } 26629: 26629: __pointer_type 26629: operator+=(ptrdiff_t __d) volatile noexcept 26629: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 26629: int(memory_order_seq_cst)); } 26629: 26629: __pointer_type 26629: operator-=(ptrdiff_t __d) noexcept 26629: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 26629: int(memory_order_seq_cst)); } 26629: 26629: __pointer_type 26629: operator-=(ptrdiff_t __d) volatile noexcept 26629: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 26629: int(memory_order_seq_cst)); } 26629: 26629: bool 26629: is_lock_free() const noexcept 26629: { 26629: 26629: return __atomic_is_lock_free(sizeof(_M_p), 26629: reinterpret_cast(-__alignof(_M_p))); 26629: } 26629: 26629: bool 26629: is_lock_free() const volatile noexcept 26629: { 26629: 26629: return __atomic_is_lock_free(sizeof(_M_p), 26629: reinterpret_cast(-__alignof(_M_p))); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) void 26629: store(__pointer_type __p, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: memory_order __b __attribute__ ((__unused__)) 26629: = __m & __memory_order_mask; 26629: 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 26629: 26629: __atomic_store_n(&_M_p, __p, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) void 26629: store(__pointer_type __p, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: memory_order __b __attribute__ ((__unused__)) 26629: = __m & __memory_order_mask; 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 26629: 26629: __atomic_store_n(&_M_p, __p, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) __pointer_type 26629: load(memory_order __m = memory_order_seq_cst) const noexcept 26629: { 26629: memory_order __b __attribute__ ((__unused__)) 26629: = __m & __memory_order_mask; 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_load_n(&_M_p, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) __pointer_type 26629: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 26629: { 26629: memory_order __b __attribute__ ((__unused__)) 26629: = __m & __memory_order_mask; 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_load_n(&_M_p, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) __pointer_type 26629: exchange(__pointer_type __p, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: return __atomic_exchange_n(&_M_p, __p, int(__m)); 26629: } 26629: 26629: 26629: inline __attribute__((__always_inline__)) __pointer_type 26629: exchange(__pointer_type __p, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: return __atomic_exchange_n(&_M_p, __p, int(__m)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m1, 26629: memory_order __m2) noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 26629: int(__m1), int(__m2)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m1, 26629: memory_order __m2) volatile noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 26629: int(__m1), int(__m2)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m1, 26629: memory_order __m2) noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 26629: int(__m1), int(__m2)); 26629: } 26629: 26629: inline __attribute__((__always_inline__)) bool 26629: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m1, 26629: memory_order __m2) volatile noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 26629: int(__m1), int(__m2)); 26629: } 26629: # 918 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: inline __attribute__((__always_inline__)) __pointer_type 26629: fetch_add(ptrdiff_t __d, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __pointer_type 26629: fetch_add(ptrdiff_t __d, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __pointer_type 26629: fetch_sub(ptrdiff_t __d, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 26629: 26629: inline __attribute__((__always_inline__)) __pointer_type 26629: fetch_sub(ptrdiff_t __d, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 26629: }; 26629: # 1943 "/usr/include/c++/12/bits/atomic_base.h" 3 26629: 26629: } 26629: # 42 "/usr/include/c++/12/atomic" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 56 "/usr/include/c++/12/atomic" 3 26629: template 26629: struct atomic; 26629: 26629: 26629: 26629: template<> 26629: struct atomic 26629: { 26629: using value_type = bool; 26629: 26629: private: 26629: __atomic_base _M_base; 26629: 26629: public: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(bool __i) noexcept : _M_base(__i) { } 26629: 26629: bool 26629: operator=(bool __i) noexcept 26629: { return _M_base.operator=(__i); } 26629: 26629: bool 26629: operator=(bool __i) volatile noexcept 26629: { return _M_base.operator=(__i); } 26629: 26629: operator bool() const noexcept 26629: { return _M_base.load(); } 26629: 26629: operator bool() const volatile noexcept 26629: { return _M_base.load(); } 26629: 26629: bool 26629: is_lock_free() const noexcept { return _M_base.is_lock_free(); } 26629: 26629: bool 26629: is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: 26629: void 26629: store(bool __i, memory_order __m = memory_order_seq_cst) noexcept 26629: { _M_base.store(__i, __m); } 26629: 26629: void 26629: store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { _M_base.store(__i, __m); } 26629: 26629: bool 26629: load(memory_order __m = memory_order_seq_cst) const noexcept 26629: { return _M_base.load(__m); } 26629: 26629: bool 26629: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 26629: { return _M_base.load(__m); } 26629: 26629: bool 26629: exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept 26629: { return _M_base.exchange(__i, __m); } 26629: 26629: bool 26629: exchange(bool __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return _M_base.exchange(__i, __m); } 26629: 26629: bool 26629: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 26629: memory_order __m2) noexcept 26629: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 26629: 26629: bool 26629: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 26629: memory_order __m2) volatile noexcept 26629: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 26629: 26629: bool 26629: compare_exchange_weak(bool& __i1, bool __i2, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 26629: 26629: bool 26629: compare_exchange_weak(bool& __i1, bool __i2, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 26629: 26629: bool 26629: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 26629: memory_order __m2) noexcept 26629: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 26629: 26629: bool 26629: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 26629: memory_order __m2) volatile noexcept 26629: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 26629: 26629: bool 26629: compare_exchange_strong(bool& __i1, bool __i2, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 26629: 26629: bool 26629: compare_exchange_strong(bool& __i1, bool __i2, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 26629: # 182 "/usr/include/c++/12/atomic" 3 26629: }; 26629: # 195 "/usr/include/c++/12/atomic" 3 26629: template 26629: struct atomic 26629: { 26629: using value_type = _Tp; 26629: 26629: private: 26629: 26629: static constexpr int _S_min_alignment 26629: = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 26629: ? 0 : sizeof(_Tp); 26629: 26629: static constexpr int _S_alignment 26629: = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); 26629: 26629: alignas(_S_alignment) _Tp _M_i ; 26629: 26629: static_assert(__is_trivially_copyable(_Tp), 26629: "std::atomic requires a trivially copyable type"); 26629: 26629: static_assert(sizeof(_Tp) > 0, 26629: "Incomplete or zero-sized types are not supported"); 26629: # 224 "/usr/include/c++/12/atomic" 3 26629: public: 26629: atomic() = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(_Tp __i) noexcept : _M_i(__i) { } 26629: 26629: operator _Tp() const noexcept 26629: { return load(); } 26629: 26629: operator _Tp() const volatile noexcept 26629: { return load(); } 26629: 26629: _Tp 26629: operator=(_Tp __i) noexcept 26629: { store(__i); return __i; } 26629: 26629: _Tp 26629: operator=(_Tp __i) volatile noexcept 26629: { store(__i); return __i; } 26629: 26629: bool 26629: is_lock_free() const noexcept 26629: { 26629: 26629: return __atomic_is_lock_free(sizeof(_M_i), 26629: reinterpret_cast(-_S_alignment)); 26629: } 26629: 26629: bool 26629: is_lock_free() const volatile noexcept 26629: { 26629: 26629: return __atomic_is_lock_free(sizeof(_M_i), 26629: reinterpret_cast(-_S_alignment)); 26629: } 26629: 26629: 26629: static constexpr bool is_always_lock_free 26629: = __atomic_always_lock_free(sizeof(_M_i), 0); 26629: 26629: 26629: void 26629: store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: __atomic_store(std::__addressof(_M_i), std::__addressof(__i), int(__m)); 26629: } 26629: 26629: void 26629: store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: __atomic_store(std::__addressof(_M_i), std::__addressof(__i), int(__m)); 26629: } 26629: 26629: _Tp 26629: load(memory_order __m = memory_order_seq_cst) const noexcept 26629: { 26629: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 26629: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 26629: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 26629: return *__ptr; 26629: } 26629: 26629: _Tp 26629: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 26629: { 26629: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 26629: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 26629: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 26629: return *__ptr; 26629: } 26629: 26629: _Tp 26629: exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 26629: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 26629: __atomic_exchange(std::__addressof(_M_i), std::__addressof(__i), 26629: __ptr, int(__m)); 26629: return *__ptr; 26629: } 26629: 26629: _Tp 26629: exchange(_Tp __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 26629: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 26629: __atomic_exchange(std::__addressof(_M_i), std::__addressof(__i), 26629: __ptr, int(__m)); 26629: return *__ptr; 26629: } 26629: 26629: bool 26629: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 26629: memory_order __f) noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange(std::__addressof(_M_i), 26629: std::__addressof(__e), 26629: std::__addressof(__i), 26629: true, int(__s), int(__f)); 26629: } 26629: 26629: bool 26629: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 26629: memory_order __f) volatile noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange(std::__addressof(_M_i), 26629: std::__addressof(__e), 26629: std::__addressof(__i), 26629: true, int(__s), int(__f)); 26629: } 26629: 26629: bool 26629: compare_exchange_weak(_Tp& __e, _Tp __i, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return compare_exchange_weak(__e, __i, __m, 26629: __cmpexch_failure_order(__m)); } 26629: 26629: bool 26629: compare_exchange_weak(_Tp& __e, _Tp __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return compare_exchange_weak(__e, __i, __m, 26629: __cmpexch_failure_order(__m)); } 26629: 26629: bool 26629: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 26629: memory_order __f) noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange(std::__addressof(_M_i), 26629: std::__addressof(__e), 26629: std::__addressof(__i), 26629: false, int(__s), int(__f)); 26629: } 26629: 26629: bool 26629: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 26629: memory_order __f) volatile noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); 26629: 26629: return __atomic_compare_exchange(std::__addressof(_M_i), 26629: std::__addressof(__e), 26629: std::__addressof(__i), 26629: false, int(__s), int(__f)); 26629: } 26629: 26629: bool 26629: compare_exchange_strong(_Tp& __e, _Tp __i, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return compare_exchange_strong(__e, __i, __m, 26629: __cmpexch_failure_order(__m)); } 26629: 26629: bool 26629: compare_exchange_strong(_Tp& __e, _Tp __i, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return compare_exchange_strong(__e, __i, __m, 26629: __cmpexch_failure_order(__m)); } 26629: # 410 "/usr/include/c++/12/atomic" 3 26629: }; 26629: 26629: 26629: 26629: template 26629: struct atomic<_Tp*> 26629: { 26629: using value_type = _Tp*; 26629: using difference_type = ptrdiff_t; 26629: 26629: typedef _Tp* __pointer_type; 26629: typedef __atomic_base<_Tp*> __base_type; 26629: __base_type _M_b; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } 26629: 26629: operator __pointer_type() const noexcept 26629: { return __pointer_type(_M_b); } 26629: 26629: operator __pointer_type() const volatile noexcept 26629: { return __pointer_type(_M_b); } 26629: 26629: __pointer_type 26629: operator=(__pointer_type __p) noexcept 26629: { return _M_b.operator=(__p); } 26629: 26629: __pointer_type 26629: operator=(__pointer_type __p) volatile noexcept 26629: { return _M_b.operator=(__p); } 26629: 26629: __pointer_type 26629: operator++(int) noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b++; 26629: } 26629: 26629: __pointer_type 26629: operator++(int) volatile noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b++; 26629: } 26629: 26629: __pointer_type 26629: operator--(int) noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b--; 26629: } 26629: 26629: __pointer_type 26629: operator--(int) volatile noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b--; 26629: } 26629: 26629: __pointer_type 26629: operator++() noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return ++_M_b; 26629: } 26629: 26629: __pointer_type 26629: operator++() volatile noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return ++_M_b; 26629: } 26629: 26629: __pointer_type 26629: operator--() noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return --_M_b; 26629: } 26629: 26629: __pointer_type 26629: operator--() volatile noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return --_M_b; 26629: } 26629: 26629: __pointer_type 26629: operator+=(ptrdiff_t __d) noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b.operator+=(__d); 26629: } 26629: 26629: __pointer_type 26629: operator+=(ptrdiff_t __d) volatile noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b.operator+=(__d); 26629: } 26629: 26629: __pointer_type 26629: operator-=(ptrdiff_t __d) noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b.operator-=(__d); 26629: } 26629: 26629: __pointer_type 26629: operator-=(ptrdiff_t __d) volatile noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b.operator-=(__d); 26629: } 26629: 26629: bool 26629: is_lock_free() const noexcept 26629: { return _M_b.is_lock_free(); } 26629: 26629: bool 26629: is_lock_free() const volatile noexcept 26629: { return _M_b.is_lock_free(); } 26629: 26629: 26629: static constexpr bool is_always_lock_free 26629: = 2 == 2; 26629: 26629: 26629: void 26629: store(__pointer_type __p, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return _M_b.store(__p, __m); } 26629: 26629: void 26629: store(__pointer_type __p, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return _M_b.store(__p, __m); } 26629: 26629: __pointer_type 26629: load(memory_order __m = memory_order_seq_cst) const noexcept 26629: { return _M_b.load(__m); } 26629: 26629: __pointer_type 26629: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 26629: { return _M_b.load(__m); } 26629: 26629: __pointer_type 26629: exchange(__pointer_type __p, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { return _M_b.exchange(__p, __m); } 26629: 26629: __pointer_type 26629: exchange(__pointer_type __p, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { return _M_b.exchange(__p, __m); } 26629: 26629: bool 26629: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m1, memory_order __m2) noexcept 26629: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 26629: 26629: bool 26629: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m1, 26629: memory_order __m2) volatile noexcept 26629: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 26629: 26629: bool 26629: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: return compare_exchange_weak(__p1, __p2, __m, 26629: __cmpexch_failure_order(__m)); 26629: } 26629: 26629: bool 26629: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: return compare_exchange_weak(__p1, __p2, __m, 26629: __cmpexch_failure_order(__m)); 26629: } 26629: 26629: bool 26629: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m1, memory_order __m2) noexcept 26629: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 26629: 26629: bool 26629: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m1, 26629: memory_order __m2) volatile noexcept 26629: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 26629: 26629: bool 26629: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: return _M_b.compare_exchange_strong(__p1, __p2, __m, 26629: __cmpexch_failure_order(__m)); 26629: } 26629: 26629: bool 26629: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: return _M_b.compare_exchange_strong(__p1, __p2, __m, 26629: __cmpexch_failure_order(__m)); 26629: } 26629: # 665 "/usr/include/c++/12/atomic" 3 26629: __pointer_type 26629: fetch_add(ptrdiff_t __d, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b.fetch_add(__d, __m); 26629: } 26629: 26629: __pointer_type 26629: fetch_add(ptrdiff_t __d, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b.fetch_add(__d, __m); 26629: } 26629: 26629: __pointer_type 26629: fetch_sub(ptrdiff_t __d, 26629: memory_order __m = memory_order_seq_cst) noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b.fetch_sub(__d, __m); 26629: } 26629: 26629: __pointer_type 26629: fetch_sub(ptrdiff_t __d, 26629: memory_order __m = memory_order_seq_cst) volatile noexcept 26629: { 26629: 26629: static_assert( is_object<_Tp>::value, "pointer to object type" ); 26629: 26629: return _M_b.fetch_sub(__d, __m); 26629: } 26629: }; 26629: 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef char __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef signed char __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept= default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef unsigned char __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept= default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef short __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef unsigned short __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef int __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef unsigned int __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef long __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef unsigned long __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef long long __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef unsigned long long __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef wchar_t __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free = 2 == 2; 26629: 26629: }; 26629: # 1010 "/usr/include/c++/12/atomic" 3 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef char16_t __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free 26629: = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: template<> 26629: struct atomic : __atomic_base 26629: { 26629: typedef char32_t __integral_type; 26629: typedef __atomic_base __base_type; 26629: 26629: atomic() noexcept = default; 26629: ~atomic() noexcept = default; 26629: atomic(const atomic&) = delete; 26629: atomic& operator=(const atomic&) = delete; 26629: atomic& operator=(const atomic&) volatile = delete; 26629: 26629: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 26629: 26629: using __base_type::operator __integral_type; 26629: using __base_type::operator=; 26629: 26629: 26629: static constexpr bool is_always_lock_free 26629: = 2 == 2; 26629: 26629: }; 26629: 26629: 26629: 26629: typedef atomic atomic_bool; 26629: 26629: 26629: typedef atomic atomic_char; 26629: 26629: 26629: typedef atomic atomic_schar; 26629: 26629: 26629: typedef atomic atomic_uchar; 26629: 26629: 26629: typedef atomic atomic_short; 26629: 26629: 26629: typedef atomic atomic_ushort; 26629: 26629: 26629: typedef atomic atomic_int; 26629: 26629: 26629: typedef atomic atomic_uint; 26629: 26629: 26629: typedef atomic atomic_long; 26629: 26629: 26629: typedef atomic atomic_ulong; 26629: 26629: 26629: typedef atomic atomic_llong; 26629: 26629: 26629: typedef atomic atomic_ullong; 26629: 26629: 26629: typedef atomic atomic_wchar_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef atomic atomic_char16_t; 26629: 26629: 26629: typedef atomic atomic_char32_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef atomic atomic_int8_t; 26629: 26629: 26629: typedef atomic atomic_uint8_t; 26629: 26629: 26629: typedef atomic atomic_int16_t; 26629: 26629: 26629: typedef atomic atomic_uint16_t; 26629: 26629: 26629: typedef atomic atomic_int32_t; 26629: 26629: 26629: typedef atomic atomic_uint32_t; 26629: 26629: 26629: typedef atomic atomic_int64_t; 26629: 26629: 26629: typedef atomic atomic_uint64_t; 26629: 26629: 26629: 26629: typedef atomic atomic_int_least8_t; 26629: 26629: 26629: typedef atomic atomic_uint_least8_t; 26629: 26629: 26629: typedef atomic atomic_int_least16_t; 26629: 26629: 26629: typedef atomic atomic_uint_least16_t; 26629: 26629: 26629: typedef atomic atomic_int_least32_t; 26629: 26629: 26629: typedef atomic atomic_uint_least32_t; 26629: 26629: 26629: typedef atomic atomic_int_least64_t; 26629: 26629: 26629: typedef atomic atomic_uint_least64_t; 26629: 26629: 26629: 26629: typedef atomic atomic_int_fast8_t; 26629: 26629: 26629: typedef atomic atomic_uint_fast8_t; 26629: 26629: 26629: typedef atomic atomic_int_fast16_t; 26629: 26629: 26629: typedef atomic atomic_uint_fast16_t; 26629: 26629: 26629: typedef atomic atomic_int_fast32_t; 26629: 26629: 26629: typedef atomic atomic_uint_fast32_t; 26629: 26629: 26629: typedef atomic atomic_int_fast64_t; 26629: 26629: 26629: typedef atomic atomic_uint_fast64_t; 26629: 26629: 26629: 26629: 26629: typedef atomic atomic_intptr_t; 26629: 26629: 26629: typedef atomic atomic_uintptr_t; 26629: 26629: 26629: typedef atomic atomic_size_t; 26629: 26629: 26629: typedef atomic atomic_ptrdiff_t; 26629: 26629: 26629: 26629: typedef atomic atomic_intmax_t; 26629: 26629: 26629: typedef atomic atomic_uintmax_t; 26629: 26629: 26629: 26629: inline bool 26629: atomic_flag_test_and_set_explicit(atomic_flag* __a, 26629: memory_order __m) noexcept 26629: { return __a->test_and_set(__m); } 26629: 26629: inline bool 26629: atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 26629: memory_order __m) noexcept 26629: { return __a->test_and_set(__m); } 26629: 26629: inline void 26629: atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept 26629: { __a->clear(__m); } 26629: 26629: inline void 26629: atomic_flag_clear_explicit(volatile atomic_flag* __a, 26629: memory_order __m) noexcept 26629: { __a->clear(__m); } 26629: 26629: inline bool 26629: atomic_flag_test_and_set(atomic_flag* __a) noexcept 26629: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 26629: 26629: inline bool 26629: atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept 26629: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 26629: 26629: inline void 26629: atomic_flag_clear(atomic_flag* __a) noexcept 26629: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 26629: 26629: inline void 26629: atomic_flag_clear(volatile atomic_flag* __a) noexcept 26629: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 26629: 26629: 26629: 26629: template 26629: using __atomic_val_t = __type_identity_t<_Tp>; 26629: template 26629: using __atomic_diff_t = typename atomic<_Tp>::difference_type; 26629: 26629: 26629: 26629: template 26629: inline bool 26629: atomic_is_lock_free(const atomic<_ITp>* __a) noexcept 26629: { return __a->is_lock_free(); } 26629: 26629: template 26629: inline bool 26629: atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept 26629: { return __a->is_lock_free(); } 26629: 26629: template 26629: inline void 26629: atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 26629: { __a->store(__i, memory_order_relaxed); } 26629: 26629: template 26629: inline void 26629: atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 26629: { __a->store(__i, memory_order_relaxed); } 26629: 26629: template 26629: inline void 26629: atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { __a->store(__i, __m); } 26629: 26629: template 26629: inline void 26629: atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { __a->store(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept 26629: { return __a->load(__m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_load_explicit(const volatile atomic<_ITp>* __a, 26629: memory_order __m) noexcept 26629: { return __a->load(__m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->exchange(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_exchange_explicit(volatile atomic<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->exchange(__i, __m); } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, 26629: __atomic_val_t<_ITp>* __i1, 26629: __atomic_val_t<_ITp> __i2, 26629: memory_order __m1, 26629: memory_order __m2) noexcept 26629: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, 26629: __atomic_val_t<_ITp>* __i1, 26629: __atomic_val_t<_ITp> __i2, 26629: memory_order __m1, 26629: memory_order __m2) noexcept 26629: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, 26629: __atomic_val_t<_ITp>* __i1, 26629: __atomic_val_t<_ITp> __i2, 26629: memory_order __m1, 26629: memory_order __m2) noexcept 26629: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, 26629: __atomic_val_t<_ITp>* __i1, 26629: __atomic_val_t<_ITp> __i2, 26629: memory_order __m1, 26629: memory_order __m2) noexcept 26629: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 26629: 26629: 26629: template 26629: inline void 26629: atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 26629: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline void 26629: atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 26629: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_load(const atomic<_ITp>* __a) noexcept 26629: { return atomic_load_explicit(__a, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_load(const volatile atomic<_ITp>* __a) noexcept 26629: { return atomic_load_explicit(__a, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 26629: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_exchange(volatile atomic<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i) noexcept 26629: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_weak(atomic<_ITp>* __a, 26629: __atomic_val_t<_ITp>* __i1, 26629: __atomic_val_t<_ITp> __i2) noexcept 26629: { 26629: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 26629: memory_order_seq_cst, 26629: memory_order_seq_cst); 26629: } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, 26629: __atomic_val_t<_ITp>* __i1, 26629: __atomic_val_t<_ITp> __i2) noexcept 26629: { 26629: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 26629: memory_order_seq_cst, 26629: memory_order_seq_cst); 26629: } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_strong(atomic<_ITp>* __a, 26629: __atomic_val_t<_ITp>* __i1, 26629: __atomic_val_t<_ITp> __i2) noexcept 26629: { 26629: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 26629: memory_order_seq_cst, 26629: memory_order_seq_cst); 26629: } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, 26629: __atomic_val_t<_ITp>* __i1, 26629: __atomic_val_t<_ITp> __i2) noexcept 26629: { 26629: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 26629: memory_order_seq_cst, 26629: memory_order_seq_cst); 26629: } 26629: # 1451 "/usr/include/c++/12/atomic" 3 26629: template 26629: inline _ITp 26629: atomic_fetch_add_explicit(atomic<_ITp>* __a, 26629: __atomic_diff_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->fetch_add(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, 26629: __atomic_diff_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->fetch_add(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_sub_explicit(atomic<_ITp>* __a, 26629: __atomic_diff_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->fetch_sub(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, 26629: __atomic_diff_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->fetch_sub(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->fetch_and(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->fetch_and(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->fetch_or(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->fetch_or(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->fetch_xor(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i, 26629: memory_order __m) noexcept 26629: { return __a->fetch_xor(__i, __m); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_add(atomic<_ITp>* __a, 26629: __atomic_diff_t<_ITp> __i) noexcept 26629: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_add(volatile atomic<_ITp>* __a, 26629: __atomic_diff_t<_ITp> __i) noexcept 26629: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_sub(atomic<_ITp>* __a, 26629: __atomic_diff_t<_ITp> __i) noexcept 26629: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_sub(volatile atomic<_ITp>* __a, 26629: __atomic_diff_t<_ITp> __i) noexcept 26629: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_and(__atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i) noexcept 26629: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_and(volatile __atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i) noexcept 26629: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_or(__atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i) noexcept 26629: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_or(volatile __atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i) noexcept 26629: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_xor(__atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i) noexcept 26629: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 26629: 26629: template 26629: inline _ITp 26629: atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, 26629: __atomic_val_t<_ITp> __i) noexcept 26629: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 26629: # 1649 "/usr/include/c++/12/atomic" 3 26629: 26629: } 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: # 1 "/usr/include/c++/12/deque" 1 3 26629: # 58 "/usr/include/c++/12/deque" 3 26629: 26629: # 59 "/usr/include/c++/12/deque" 3 26629: 26629: # 1 "/usr/include/c++/12/bits/stl_algobase.h" 1 3 26629: # 60 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: # 1 "/usr/include/c++/12/bits/functexcept.h" 1 3 26629: # 40 "/usr/include/c++/12/bits/functexcept.h" 3 26629: # 1 "/usr/include/c++/12/bits/exception_defines.h" 1 3 26629: # 41 "/usr/include/c++/12/bits/functexcept.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: void 26629: __throw_bad_exception(void) __attribute__((__noreturn__)); 26629: 26629: 26629: void 26629: __throw_bad_alloc(void) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_bad_array_new_length(void) __attribute__((__noreturn__)); 26629: 26629: 26629: void 26629: __throw_bad_cast(void) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_bad_typeid(void) __attribute__((__noreturn__)); 26629: 26629: 26629: void 26629: __throw_logic_error(const char*) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_domain_error(const char*) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_invalid_argument(const char*) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_length_error(const char*) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_out_of_range(const char*) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__)) 26629: __attribute__((__format__(__gnu_printf__, 1, 2))); 26629: 26629: void 26629: __throw_runtime_error(const char*) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_range_error(const char*) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_overflow_error(const char*) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_underflow_error(const char*) __attribute__((__noreturn__)); 26629: 26629: 26629: void 26629: __throw_ios_failure(const char*) __attribute__((__noreturn__)); 26629: 26629: void 26629: __throw_ios_failure(const char*, int) __attribute__((__noreturn__)); 26629: 26629: 26629: void 26629: __throw_system_error(int) __attribute__((__noreturn__)); 26629: 26629: 26629: void 26629: __throw_future_error(int) __attribute__((__noreturn__)); 26629: 26629: 26629: void 26629: __throw_bad_function_call() __attribute__((__noreturn__)); 26629: 26629: 26629: } 26629: # 61 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/cpp_type_traits.h" 1 3 26629: # 35 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 26629: 26629: # 36 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 26629: # 67 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 26629: extern "C++" { 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: struct __true_type { }; 26629: struct __false_type { }; 26629: 26629: template 26629: struct __truth_type 26629: { typedef __false_type __type; }; 26629: 26629: template<> 26629: struct __truth_type 26629: { typedef __true_type __type; }; 26629: 26629: 26629: 26629: template 26629: struct __traitor 26629: { 26629: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 26629: typedef typename __truth_type<__value>::__type __type; 26629: }; 26629: 26629: 26629: template 26629: struct __are_same 26629: { 26629: enum { __value = 0 }; 26629: typedef __false_type __type; 26629: }; 26629: 26629: template 26629: struct __are_same<_Tp, _Tp> 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: 26629: template 26629: struct __is_void 26629: { 26629: enum { __value = 0 }; 26629: typedef __false_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_void 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_integer 26629: { 26629: enum { __value = 0 }; 26629: typedef __false_type __type; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: # 184 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_integer 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: # 289 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 26629: template 26629: struct __is_floating 26629: { 26629: enum { __value = 0 }; 26629: typedef __false_type __type; 26629: }; 26629: 26629: 26629: template<> 26629: struct __is_floating 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_floating 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_floating 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_pointer 26629: { 26629: enum { __value = 0 }; 26629: typedef __false_type __type; 26629: }; 26629: 26629: template 26629: struct __is_pointer<_Tp*> 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_arithmetic 26629: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 26629: { }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_scalar 26629: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 26629: { }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_char 26629: { 26629: enum { __value = 0 }; 26629: typedef __false_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_char 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: 26629: template<> 26629: struct __is_char 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: 26629: template 26629: struct __is_byte 26629: { 26629: enum { __value = 0 }; 26629: typedef __false_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_byte 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_byte 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template<> 26629: struct __is_byte 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: 26629: enum class byte : unsigned char; 26629: 26629: template<> 26629: struct __is_byte 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: # 425 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 26629: template struct iterator_traits; 26629: 26629: 26629: template 26629: struct __is_nonvolatile_trivially_copyable 26629: { 26629: enum { __value = __is_trivially_copyable(_Tp) }; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_nonvolatile_trivially_copyable 26629: { 26629: enum { __value = 0 }; 26629: }; 26629: 26629: 26629: template 26629: struct __memcpyable 26629: { 26629: enum { __value = 0 }; 26629: }; 26629: 26629: template 26629: struct __memcpyable<_Tp*, _Tp*> 26629: : __is_nonvolatile_trivially_copyable<_Tp> 26629: { }; 26629: 26629: template 26629: struct __memcpyable<_Tp*, const _Tp*> 26629: : __is_nonvolatile_trivially_copyable<_Tp> 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __memcmpable 26629: { 26629: enum { __value = 0 }; 26629: }; 26629: 26629: 26629: template 26629: struct __memcmpable<_Tp*, _Tp*> 26629: : __is_nonvolatile_trivially_copyable<_Tp> 26629: { }; 26629: 26629: template 26629: struct __memcmpable 26629: : __is_nonvolatile_trivially_copyable<_Tp> 26629: { }; 26629: 26629: template 26629: struct __memcmpable<_Tp*, const _Tp*> 26629: : __is_nonvolatile_trivially_copyable<_Tp> 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template::__value 26629: 26629: > 26629: struct __is_memcmp_ordered 26629: { 26629: static const bool __value = _Tp(-1) > _Tp(1); 26629: }; 26629: 26629: template 26629: struct __is_memcmp_ordered<_Tp, false> 26629: { 26629: static const bool __value = false; 26629: }; 26629: 26629: 26629: template 26629: struct __is_memcmp_ordered_with 26629: { 26629: static const bool __value = __is_memcmp_ordered<_Tp>::__value 26629: && __is_memcmp_ordered<_Up>::__value; 26629: }; 26629: 26629: template 26629: struct __is_memcmp_ordered_with<_Tp, _Up, false> 26629: { 26629: static const bool __value = false; 26629: }; 26629: # 534 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 26629: template<> 26629: struct __is_memcmp_ordered_with 26629: { static constexpr bool __value = true; }; 26629: 26629: template 26629: struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> 26629: { static constexpr bool __value = false; }; 26629: 26629: template 26629: struct __is_memcmp_ordered_with 26629: { static constexpr bool __value = false; }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_move_iterator 26629: { 26629: enum { __value = 0 }; 26629: typedef __false_type __type; 26629: }; 26629: 26629: 26629: 26629: template 26629: 26629: inline _Iterator 26629: __miter_base(_Iterator __it) 26629: { return __it; } 26629: 26629: 26629: } 26629: } 26629: # 62 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 26629: # 1 "/usr/include/c++/12/ext/type_traits.h" 1 3 26629: # 32 "/usr/include/c++/12/ext/type_traits.h" 3 26629: 26629: # 33 "/usr/include/c++/12/ext/type_traits.h" 3 26629: 26629: 26629: 26629: 26629: extern "C++" { 26629: 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: struct __enable_if 26629: { }; 26629: 26629: template 26629: struct __enable_if 26629: { typedef _Tp __type; }; 26629: 26629: 26629: 26629: template 26629: struct __conditional_type 26629: { typedef _Iftrue __type; }; 26629: 26629: template 26629: struct __conditional_type 26629: { typedef _Iffalse __type; }; 26629: 26629: 26629: 26629: template 26629: struct __add_unsigned 26629: { 26629: private: 26629: typedef __enable_if::__value, _Tp> __if_type; 26629: 26629: public: 26629: typedef typename __if_type::__type __type; 26629: }; 26629: 26629: template<> 26629: struct __add_unsigned 26629: { typedef unsigned char __type; }; 26629: 26629: template<> 26629: struct __add_unsigned 26629: { typedef unsigned char __type; }; 26629: 26629: template<> 26629: struct __add_unsigned 26629: { typedef unsigned short __type; }; 26629: 26629: template<> 26629: struct __add_unsigned 26629: { typedef unsigned int __type; }; 26629: 26629: template<> 26629: struct __add_unsigned 26629: { typedef unsigned long __type; }; 26629: 26629: template<> 26629: struct __add_unsigned 26629: { typedef unsigned long long __type; }; 26629: 26629: 26629: template<> 26629: struct __add_unsigned; 26629: 26629: template<> 26629: struct __add_unsigned; 26629: 26629: 26629: 26629: template 26629: struct __remove_unsigned 26629: { 26629: private: 26629: typedef __enable_if::__value, _Tp> __if_type; 26629: 26629: public: 26629: typedef typename __if_type::__type __type; 26629: }; 26629: 26629: template<> 26629: struct __remove_unsigned 26629: { typedef signed char __type; }; 26629: 26629: template<> 26629: struct __remove_unsigned 26629: { typedef signed char __type; }; 26629: 26629: template<> 26629: struct __remove_unsigned 26629: { typedef short __type; }; 26629: 26629: template<> 26629: struct __remove_unsigned 26629: { typedef int __type; }; 26629: 26629: template<> 26629: struct __remove_unsigned 26629: { typedef long __type; }; 26629: 26629: template<> 26629: struct __remove_unsigned 26629: { typedef long long __type; }; 26629: 26629: 26629: template<> 26629: struct __remove_unsigned; 26629: 26629: template<> 26629: struct __remove_unsigned; 26629: 26629: 26629: 26629: template 26629: constexpr 26629: inline bool 26629: __is_null_pointer(_Type* __ptr) 26629: { return __ptr == 0; } 26629: 26629: template 26629: constexpr 26629: inline bool 26629: __is_null_pointer(_Type) 26629: { return false; } 26629: 26629: 26629: constexpr bool 26629: __is_null_pointer(std::nullptr_t) 26629: { return true; } 26629: 26629: 26629: 26629: 26629: template::__value> 26629: struct __promote 26629: { typedef double __type; }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __promote<_Tp, false> 26629: { }; 26629: 26629: template<> 26629: struct __promote 26629: { typedef long double __type; }; 26629: 26629: template<> 26629: struct __promote 26629: { typedef double __type; }; 26629: 26629: template<> 26629: struct __promote 26629: { typedef float __type; }; 26629: 26629: 26629: 26629: template 26629: using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); 26629: 26629: 26629: 26629: template 26629: using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; 26629: 26629: template 26629: using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; 26629: 26629: template 26629: using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; 26629: # 239 "/usr/include/c++/12/ext/type_traits.h" 3 26629: 26629: } 26629: } 26629: # 63 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 26629: # 1 "/usr/include/c++/12/ext/numeric_traits.h" 1 3 26629: # 32 "/usr/include/c++/12/ext/numeric_traits.h" 3 26629: 26629: # 33 "/usr/include/c++/12/ext/numeric_traits.h" 3 26629: 26629: 26629: 26629: 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 50 "/usr/include/c++/12/ext/numeric_traits.h" 3 26629: template 26629: struct __is_integer_nonstrict 26629: : public std::__is_integer<_Tp> 26629: { 26629: using std::__is_integer<_Tp>::__value; 26629: 26629: 26629: enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; 26629: }; 26629: 26629: template 26629: struct __numeric_traits_integer 26629: { 26629: 26629: static_assert(__is_integer_nonstrict<_Value>::__value, 26629: "invalid specialization"); 26629: 26629: 26629: 26629: 26629: static const bool __is_signed = (_Value)(-1) < 0; 26629: static const int __digits 26629: = __is_integer_nonstrict<_Value>::__width - __is_signed; 26629: 26629: 26629: static const _Value __max = __is_signed 26629: ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) 26629: : ~(_Value)0; 26629: static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; 26629: }; 26629: 26629: template 26629: const _Value __numeric_traits_integer<_Value>::__min; 26629: 26629: template 26629: const _Value __numeric_traits_integer<_Value>::__max; 26629: 26629: template 26629: const bool __numeric_traits_integer<_Value>::__is_signed; 26629: 26629: template 26629: const int __numeric_traits_integer<_Value>::__digits; 26629: # 137 "/usr/include/c++/12/ext/numeric_traits.h" 3 26629: template 26629: using __int_traits = __numeric_traits_integer<_Tp>; 26629: # 157 "/usr/include/c++/12/ext/numeric_traits.h" 3 26629: template 26629: struct __numeric_traits_floating 26629: { 26629: 26629: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 53) * 643L / 2136); 26629: 26629: 26629: static const bool __is_signed = true; 26629: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 15); 26629: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 308); 26629: }; 26629: 26629: template 26629: const int __numeric_traits_floating<_Value>::__max_digits10; 26629: 26629: template 26629: const bool __numeric_traits_floating<_Value>::__is_signed; 26629: 26629: template 26629: const int __numeric_traits_floating<_Value>::__digits10; 26629: 26629: template 26629: const int __numeric_traits_floating<_Value>::__max_exponent10; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __numeric_traits 26629: : public __numeric_traits_integer<_Value> 26629: { }; 26629: 26629: template<> 26629: struct __numeric_traits 26629: : public __numeric_traits_floating 26629: { }; 26629: 26629: template<> 26629: struct __numeric_traits 26629: : public __numeric_traits_floating 26629: { }; 26629: 26629: template<> 26629: struct __numeric_traits 26629: : public __numeric_traits_floating 26629: { }; 26629: # 238 "/usr/include/c++/12/ext/numeric_traits.h" 3 26629: 26629: } 26629: # 64 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_pair.h" 1 3 26629: # 62 "/usr/include/c++/12/bits/stl_pair.h" 3 26629: # 1 "/usr/include/c++/12/bits/utility.h" 1 3 26629: # 36 "/usr/include/c++/12/bits/utility.h" 3 26629: 26629: # 37 "/usr/include/c++/12/bits/utility.h" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: struct tuple_size; 26629: 26629: 26629: 26629: 26629: 26629: template::type, 26629: typename = typename enable_if::value>::type, 26629: size_t = tuple_size<_Tp>::value> 26629: using __enable_if_has_tuple_size = _Tp; 26629: 26629: template 26629: struct tuple_size> 26629: : public tuple_size<_Tp> { }; 26629: 26629: template 26629: struct tuple_size> 26629: : public tuple_size<_Tp> { }; 26629: 26629: template 26629: struct tuple_size> 26629: : public tuple_size<_Tp> { }; 26629: 26629: 26629: template 26629: inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; 26629: 26629: 26629: 26629: template 26629: struct tuple_element; 26629: 26629: 26629: template 26629: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 26629: 26629: template 26629: struct tuple_element<__i, const _Tp> 26629: { 26629: typedef typename add_const<__tuple_element_t<__i, _Tp>>::type type; 26629: }; 26629: 26629: template 26629: struct tuple_element<__i, volatile _Tp> 26629: { 26629: typedef typename add_volatile<__tuple_element_t<__i, _Tp>>::type type; 26629: }; 26629: 26629: template 26629: struct tuple_element<__i, const volatile _Tp> 26629: { 26629: typedef typename add_cv<__tuple_element_t<__i, _Tp>>::type type; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr size_t 26629: __find_uniq_type_in_pack() 26629: { 26629: constexpr size_t __sz = sizeof...(_Types); 26629: constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; 26629: size_t __n = __sz; 26629: for (size_t __i = 0; __i < __sz; ++__i) 26629: { 26629: if (__found[__i]) 26629: { 26629: if (__n < __sz) 26629: return __sz; 26629: __n = __i; 26629: } 26629: } 26629: return __n; 26629: } 26629: # 134 "/usr/include/c++/12/bits/utility.h" 3 26629: template 26629: using tuple_element_t = typename tuple_element<__i, _Tp>::type; 26629: 26629: 26629: 26629: 26629: template struct _Index_tuple { }; 26629: 26629: 26629: template 26629: struct _Build_index_tuple 26629: { 26629: # 154 "/usr/include/c++/12/bits/utility.h" 3 26629: using __type = _Index_tuple<__integer_pack(_Num)...>; 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct integer_sequence 26629: { 26629: typedef _Tp value_type; 26629: static constexpr size_t size() noexcept { return sizeof...(_Idx); } 26629: }; 26629: 26629: 26629: template 26629: using make_integer_sequence 26629: 26629: 26629: 26629: = integer_sequence<_Tp, __integer_pack(_Num)...>; 26629: 26629: 26629: 26629: template 26629: using index_sequence = integer_sequence; 26629: 26629: 26629: template 26629: using make_index_sequence = make_integer_sequence; 26629: 26629: 26629: template 26629: using index_sequence_for = make_index_sequence; 26629: 26629: 26629: 26629: struct in_place_t { 26629: explicit in_place_t() = default; 26629: }; 26629: 26629: inline constexpr in_place_t in_place{}; 26629: 26629: template struct in_place_type_t 26629: { 26629: explicit in_place_type_t() = default; 26629: }; 26629: 26629: template 26629: inline constexpr in_place_type_t<_Tp> in_place_type{}; 26629: 26629: template struct in_place_index_t 26629: { 26629: explicit in_place_index_t() = default; 26629: }; 26629: 26629: template 26629: inline constexpr in_place_index_t<_Idx> in_place_index{}; 26629: 26629: template 26629: inline constexpr bool __is_in_place_type_v = false; 26629: 26629: template 26629: inline constexpr bool __is_in_place_type_v> = true; 26629: 26629: template 26629: using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; 26629: 26629: 26629: 26629: 26629: template 26629: struct _Nth_type 26629: { }; 26629: 26629: template 26629: struct _Nth_type<0, _Tp0, _Rest...> 26629: { using type = _Tp0; }; 26629: 26629: template 26629: struct _Nth_type<1, _Tp0, _Tp1, _Rest...> 26629: { using type = _Tp1; }; 26629: 26629: template 26629: struct _Nth_type<2, _Tp0, _Tp1, _Tp2, _Rest...> 26629: { using type = _Tp2; }; 26629: 26629: template 26629: 26629: 26629: 26629: struct _Nth_type<_Np, _Tp0, _Tp1, _Tp2, _Rest...> 26629: : _Nth_type<_Np - 3, _Rest...> 26629: { }; 26629: 26629: 26629: template 26629: struct _Nth_type<0, _Tp0, _Tp1, _Rest...> 26629: { using type = _Tp0; }; 26629: 26629: template 26629: struct _Nth_type<0, _Tp0, _Tp1, _Tp2, _Rest...> 26629: { using type = _Tp0; }; 26629: 26629: template 26629: struct _Nth_type<1, _Tp0, _Tp1, _Tp2, _Rest...> 26629: { using type = _Tp1; }; 26629: 26629: 26629: 26629: } 26629: # 63 "/usr/include/c++/12/bits/stl_pair.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 80 "/usr/include/c++/12/bits/stl_pair.h" 3 26629: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 26629: 26629: 26629: inline constexpr piecewise_construct_t piecewise_construct = 26629: piecewise_construct_t(); 26629: 26629: 26629: 26629: 26629: template 26629: class tuple; 26629: 26629: template 26629: struct _Index_tuple; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _PCC 26629: { 26629: template 26629: static constexpr bool _ConstructiblePair() 26629: { 26629: return __and_, 26629: is_constructible<_T2, const _U2&>>::value; 26629: } 26629: 26629: template 26629: static constexpr bool _ImplicitlyConvertiblePair() 26629: { 26629: return __and_, 26629: is_convertible>::value; 26629: } 26629: 26629: template 26629: static constexpr bool _MoveConstructiblePair() 26629: { 26629: return __and_, 26629: is_constructible<_T2, _U2&&>>::value; 26629: } 26629: 26629: template 26629: static constexpr bool _ImplicitlyMoveConvertiblePair() 26629: { 26629: return __and_, 26629: is_convertible<_U2&&, _T2>>::value; 26629: } 26629: }; 26629: 26629: template 26629: struct _PCC 26629: { 26629: template 26629: static constexpr bool _ConstructiblePair() 26629: { 26629: return false; 26629: } 26629: 26629: template 26629: static constexpr bool _ImplicitlyConvertiblePair() 26629: { 26629: return false; 26629: } 26629: 26629: template 26629: static constexpr bool _MoveConstructiblePair() 26629: { 26629: return false; 26629: } 26629: 26629: template 26629: static constexpr bool _ImplicitlyMoveConvertiblePair() 26629: { 26629: return false; 26629: } 26629: }; 26629: 26629: 26629: 26629: template class __pair_base 26629: { 26629: 26629: template friend struct pair; 26629: __pair_base() = default; 26629: ~__pair_base() = default; 26629: __pair_base(const __pair_base&) = default; 26629: __pair_base& operator=(const __pair_base&) = delete; 26629: 26629: }; 26629: # 184 "/usr/include/c++/12/bits/stl_pair.h" 3 26629: template 26629: struct pair 26629: : public __pair_base<_T1, _T2> 26629: { 26629: typedef _T1 first_type; 26629: typedef _T2 second_type; 26629: 26629: _T1 first; 26629: _T2 second; 26629: 26629: 26629: constexpr pair(const pair&) = default; 26629: constexpr pair(pair&&) = default; 26629: 26629: template 26629: 26629: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 26629: 26629: 26629: void 26629: swap(pair& __p) 26629: noexcept(__and_<__is_nothrow_swappable<_T1>, 26629: __is_nothrow_swappable<_T2>>::value) 26629: { 26629: using std::swap; 26629: swap(first, __p.first); 26629: swap(second, __p.second); 26629: } 26629: 26629: private: 26629: template 26629: 26629: pair(tuple<_Args1...>&, tuple<_Args2...>&, 26629: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 26629: public: 26629: # 378 "/usr/include/c++/12/bits/stl_pair.h" 3 26629: template , 26629: __is_implicitly_default_constructible<_U2>> 26629: ::value, bool>::type = true> 26629: constexpr pair() 26629: : first(), second() { } 26629: 26629: template , 26629: is_default_constructible<_U2>, 26629: __not_< 26629: __and_<__is_implicitly_default_constructible<_U1>, 26629: __is_implicitly_default_constructible<_U2>>>> 26629: ::value, bool>::type = false> 26629: explicit constexpr pair() 26629: : first(), second() { } 26629: 26629: 26629: 26629: using _PCCP = _PCC; 26629: 26629: 26629: 26629: template() 26629: && _PCCP::template 26629: _ImplicitlyConvertiblePair<_U1, _U2>(), 26629: bool>::type=true> 26629: constexpr pair(const _T1& __a, const _T2& __b) 26629: : first(__a), second(__b) { } 26629: 26629: 26629: template() 26629: && !_PCCP::template 26629: _ImplicitlyConvertiblePair<_U1, _U2>(), 26629: bool>::type=false> 26629: explicit constexpr pair(const _T1& __a, const _T2& __b) 26629: : first(__a), second(__b) { } 26629: 26629: 26629: 26629: template 26629: using _PCCFP = _PCC::value 26629: || !is_same<_T2, _U2>::value, 26629: _T1, _T2>; 26629: 26629: 26629: template::template 26629: _ConstructiblePair<_U1, _U2>() 26629: && _PCCFP<_U1, _U2>::template 26629: _ImplicitlyConvertiblePair<_U1, _U2>(), 26629: bool>::type=true> 26629: constexpr pair(const pair<_U1, _U2>& __p) 26629: : first(__p.first), second(__p.second) { } 26629: 26629: template::template 26629: _ConstructiblePair<_U1, _U2>() 26629: && !_PCCFP<_U1, _U2>::template 26629: _ImplicitlyConvertiblePair<_U1, _U2>(), 26629: bool>::type=false> 26629: explicit constexpr pair(const pair<_U1, _U2>& __p) 26629: : first(__p.first), second(__p.second) { } 26629: # 460 "/usr/include/c++/12/bits/stl_pair.h" 3 26629: private: 26629: 26629: 26629: 26629: struct __zero_as_null_pointer_constant 26629: { 26629: __zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) 26629: { } 26629: template::value>> 26629: __zero_as_null_pointer_constant(_Tp) = delete; 26629: }; 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: template>, 26629: is_pointer<_T2>, 26629: is_constructible<_T1, _U1>, 26629: __not_>, 26629: is_convertible<_U1, _T1>>::value, 26629: bool> = true> 26629: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 26629: constexpr 26629: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 26629: : first(std::forward<_U1>(__x)), second(nullptr) { } 26629: 26629: template>, 26629: is_pointer<_T2>, 26629: is_constructible<_T1, _U1>, 26629: __not_>, 26629: __not_>>::value, 26629: bool> = false> 26629: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 26629: explicit constexpr 26629: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 26629: : first(std::forward<_U1>(__x)), second(nullptr) { } 26629: 26629: template, 26629: __not_>, 26629: is_constructible<_T2, _U2>, 26629: __not_>, 26629: is_convertible<_U2, _T2>>::value, 26629: bool> = true> 26629: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 26629: constexpr 26629: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 26629: : first(nullptr), second(std::forward<_U2>(__y)) { } 26629: 26629: template, 26629: __not_>, 26629: is_constructible<_T2, _U2>, 26629: __not_>, 26629: __not_>>::value, 26629: bool> = false> 26629: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 26629: explicit constexpr 26629: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 26629: : first(nullptr), second(std::forward<_U2>(__y)) { } 26629: 26629: 26629: 26629: template() 26629: && _PCCP::template 26629: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 26629: bool>::type=true> 26629: constexpr pair(_U1&& __x, _U2&& __y) 26629: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { } 26629: 26629: template() 26629: && !_PCCP::template 26629: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 26629: bool>::type=false> 26629: explicit constexpr pair(_U1&& __x, _U2&& __y) 26629: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { } 26629: 26629: 26629: template::template 26629: _MoveConstructiblePair<_U1, _U2>() 26629: && _PCCFP<_U1, _U2>::template 26629: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 26629: bool>::type=true> 26629: constexpr pair(pair<_U1, _U2>&& __p) 26629: : first(std::forward<_U1>(__p.first)), 26629: second(std::forward<_U2>(__p.second)) { } 26629: 26629: template::template 26629: _MoveConstructiblePair<_U1, _U2>() 26629: && !_PCCFP<_U1, _U2>::template 26629: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 26629: bool>::type=false> 26629: explicit constexpr pair(pair<_U1, _U2>&& __p) 26629: : first(std::forward<_U1>(__p.first)), 26629: second(std::forward<_U2>(__p.second)) { } 26629: 26629: pair& 26629: operator=(__conditional_t<__and_, 26629: is_copy_assignable<_T2>>::value, 26629: const pair&, const __nonesuch&> __p) 26629: { 26629: first = __p.first; 26629: second = __p.second; 26629: return *this; 26629: } 26629: 26629: pair& 26629: operator=(__conditional_t<__and_, 26629: is_move_assignable<_T2>>::value, 26629: pair&&, __nonesuch&&> __p) 26629: noexcept(__and_, 26629: is_nothrow_move_assignable<_T2>>::value) 26629: { 26629: first = std::forward(__p.first); 26629: second = std::forward(__p.second); 26629: return *this; 26629: } 26629: 26629: template 26629: typename enable_if<__and_, 26629: is_assignable<_T2&, const _U2&>>::value, 26629: pair&>::type 26629: operator=(const pair<_U1, _U2>& __p) 26629: { 26629: first = __p.first; 26629: second = __p.second; 26629: return *this; 26629: } 26629: 26629: template 26629: typename enable_if<__and_, 26629: is_assignable<_T2&, _U2&&>>::value, 26629: pair&>::type 26629: operator=(pair<_U1, _U2>&& __p) 26629: { 26629: first = std::forward<_U1>(__p.first); 26629: second = std::forward<_U2>(__p.second); 26629: return *this; 26629: } 26629: # 629 "/usr/include/c++/12/bits/stl_pair.h" 3 26629: }; 26629: 26629: 26629: 26629: 26629: template pair(_T1, _T2) -> pair<_T1, _T2>; 26629: 26629: 26629: 26629: template 26629: inline constexpr bool 26629: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 26629: { return __x.first == __y.first && __x.second == __y.second; } 26629: # 661 "/usr/include/c++/12/bits/stl_pair.h" 3 26629: template 26629: inline constexpr bool 26629: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 26629: { return __x.first < __y.first 26629: || (!(__y.first < __x.first) && __x.second < __y.second); } 26629: 26629: 26629: template 26629: inline constexpr bool 26629: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: inline constexpr bool 26629: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 26629: { return __y < __x; } 26629: 26629: 26629: template 26629: inline constexpr bool 26629: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 26629: { return !(__y < __x); } 26629: 26629: 26629: template 26629: inline constexpr bool 26629: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 26629: { return !(__x < __y); } 26629: # 698 "/usr/include/c++/12/bits/stl_pair.h" 3 26629: template 26629: inline 26629: 26629: 26629: typename enable_if<__and_<__is_swappable<_T1>, 26629: __is_swappable<_T2>>::value>::type 26629: 26629: 26629: 26629: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: 26629: template 26629: typename enable_if, 26629: __is_swappable<_T2>>::value>::type 26629: swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; 26629: # 738 "/usr/include/c++/12/bits/stl_pair.h" 3 26629: template 26629: constexpr pair::__type, 26629: typename __decay_and_strip<_T2>::__type> 26629: make_pair(_T1&& __x, _T2&& __y) 26629: { 26629: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 26629: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 26629: typedef pair<__ds_type1, __ds_type2> __pair_type; 26629: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 26629: } 26629: # 760 "/usr/include/c++/12/bits/stl_pair.h" 3 26629: template 26629: struct __is_tuple_like_impl> : true_type 26629: { }; 26629: 26629: 26629: template 26629: struct tuple_size> 26629: : public integral_constant { }; 26629: 26629: 26629: template 26629: struct tuple_element<0, pair<_Tp1, _Tp2>> 26629: { typedef _Tp1 type; }; 26629: 26629: 26629: template 26629: struct tuple_element<1, pair<_Tp1, _Tp2>> 26629: { typedef _Tp2 type; }; 26629: 26629: 26629: template 26629: inline constexpr size_t tuple_size_v> = 2; 26629: 26629: template 26629: inline constexpr size_t tuple_size_v> = 2; 26629: 26629: template 26629: inline constexpr bool __is_pair = false; 26629: 26629: template 26629: inline constexpr bool __is_pair> = true; 26629: 26629: template 26629: inline constexpr bool __is_pair> = true; 26629: 26629: 26629: 26629: template 26629: struct __pair_get; 26629: 26629: template<> 26629: struct __pair_get<0> 26629: { 26629: template 26629: static constexpr _Tp1& 26629: __get(pair<_Tp1, _Tp2>& __pair) noexcept 26629: { return __pair.first; } 26629: 26629: template 26629: static constexpr _Tp1&& 26629: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 26629: { return std::forward<_Tp1>(__pair.first); } 26629: 26629: template 26629: static constexpr const _Tp1& 26629: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 26629: { return __pair.first; } 26629: 26629: template 26629: static constexpr const _Tp1&& 26629: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 26629: { return std::forward(__pair.first); } 26629: }; 26629: 26629: template<> 26629: struct __pair_get<1> 26629: { 26629: template 26629: static constexpr _Tp2& 26629: __get(pair<_Tp1, _Tp2>& __pair) noexcept 26629: { return __pair.second; } 26629: 26629: template 26629: static constexpr _Tp2&& 26629: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 26629: { return std::forward<_Tp2>(__pair.second); } 26629: 26629: template 26629: static constexpr const _Tp2& 26629: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 26629: { return __pair.second; } 26629: 26629: template 26629: static constexpr const _Tp2&& 26629: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 26629: { return std::forward(__pair.second); } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 26629: get(pair<_Tp1, _Tp2>& __in) noexcept 26629: { return __pair_get<_Int>::__get(__in); } 26629: 26629: template 26629: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 26629: get(pair<_Tp1, _Tp2>&& __in) noexcept 26629: { return __pair_get<_Int>::__move_get(std::move(__in)); } 26629: 26629: template 26629: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 26629: get(const pair<_Tp1, _Tp2>& __in) noexcept 26629: { return __pair_get<_Int>::__const_get(__in); } 26629: 26629: template 26629: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 26629: get(const pair<_Tp1, _Tp2>&& __in) noexcept 26629: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr _Tp& 26629: get(pair<_Tp, _Up>& __p) noexcept 26629: { return __p.first; } 26629: 26629: template 26629: constexpr const _Tp& 26629: get(const pair<_Tp, _Up>& __p) noexcept 26629: { return __p.first; } 26629: 26629: template 26629: constexpr _Tp&& 26629: get(pair<_Tp, _Up>&& __p) noexcept 26629: { return std::move(__p.first); } 26629: 26629: template 26629: constexpr const _Tp&& 26629: get(const pair<_Tp, _Up>&& __p) noexcept 26629: { return std::move(__p.first); } 26629: 26629: template 26629: constexpr _Tp& 26629: get(pair<_Up, _Tp>& __p) noexcept 26629: { return __p.second; } 26629: 26629: template 26629: constexpr const _Tp& 26629: get(const pair<_Up, _Tp>& __p) noexcept 26629: { return __p.second; } 26629: 26629: template 26629: constexpr _Tp&& 26629: get(pair<_Up, _Tp>&& __p) noexcept 26629: { return std::move(__p.second); } 26629: 26629: template 26629: constexpr const _Tp&& 26629: get(const pair<_Up, _Tp>&& __p) noexcept 26629: { return std::move(__p.second); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 65 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 1 3 26629: # 62 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 26629: 26629: # 63 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 26629: # 74 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 93 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 26629: struct input_iterator_tag { }; 26629: 26629: 26629: struct output_iterator_tag { }; 26629: 26629: 26629: struct forward_iterator_tag : public input_iterator_tag { }; 26629: 26629: 26629: 26629: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 26629: 26629: 26629: 26629: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 26629: # 125 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 26629: template 26629: struct [[__deprecated__]] iterator 26629: { 26629: 26629: typedef _Category iterator_category; 26629: 26629: typedef _Tp value_type; 26629: 26629: typedef _Distance difference_type; 26629: 26629: typedef _Pointer pointer; 26629: 26629: typedef _Reference reference; 26629: }; 26629: # 149 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 26629: template 26629: struct iterator_traits; 26629: 26629: 26629: 26629: 26629: template> 26629: struct __iterator_traits { }; 26629: 26629: 26629: 26629: template 26629: struct __iterator_traits<_Iterator, 26629: __void_t> 26629: { 26629: typedef typename _Iterator::iterator_category iterator_category; 26629: typedef typename _Iterator::value_type value_type; 26629: typedef typename _Iterator::difference_type difference_type; 26629: typedef typename _Iterator::pointer pointer; 26629: typedef typename _Iterator::reference reference; 26629: }; 26629: 26629: 26629: template 26629: struct iterator_traits 26629: : public __iterator_traits<_Iterator> { }; 26629: # 209 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 26629: template 26629: struct iterator_traits<_Tp*> 26629: { 26629: typedef random_access_iterator_tag iterator_category; 26629: typedef _Tp value_type; 26629: typedef ptrdiff_t difference_type; 26629: typedef _Tp* pointer; 26629: typedef _Tp& reference; 26629: }; 26629: 26629: 26629: template 26629: struct iterator_traits 26629: { 26629: typedef random_access_iterator_tag iterator_category; 26629: typedef _Tp value_type; 26629: typedef ptrdiff_t difference_type; 26629: typedef const _Tp* pointer; 26629: typedef const _Tp& reference; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline constexpr 26629: typename iterator_traits<_Iter>::iterator_category 26629: __iterator_category(const _Iter&) 26629: { return typename iterator_traits<_Iter>::iterator_category(); } 26629: 26629: 26629: 26629: 26629: template 26629: using __iterator_category_t 26629: = typename iterator_traits<_Iter>::iterator_category; 26629: 26629: template 26629: using _RequireInputIter = 26629: __enable_if_t, 26629: input_iterator_tag>::value>; 26629: 26629: template> 26629: struct __is_random_access_iter 26629: : is_base_of 26629: { 26629: typedef is_base_of _Base; 26629: enum { __value = _Base::value }; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 66 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 1 3 26629: # 62 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 3 26629: 26629: # 63 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 3 26629: 26629: # 1 "/usr/include/c++/12/bits/concept_check.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/concept_check.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/concept_check.h" 3 26629: # 65 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 2 3 26629: # 1 "/usr/include/c++/12/debug/assertions.h" 1 3 26629: # 66 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 2 3 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: template struct _List_iterator; 26629: template struct _List_const_iterator; 26629: 26629: 26629: template 26629: inline constexpr 26629: typename iterator_traits<_InputIterator>::difference_type 26629: __distance(_InputIterator __first, _InputIterator __last, 26629: input_iterator_tag) 26629: { 26629: 26629: 26629: 26629: typename iterator_traits<_InputIterator>::difference_type __n = 0; 26629: while (__first != __last) 26629: { 26629: ++__first; 26629: ++__n; 26629: } 26629: return __n; 26629: } 26629: 26629: template 26629: inline constexpr 26629: typename iterator_traits<_RandomAccessIterator>::difference_type 26629: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: random_access_iterator_tag) 26629: { 26629: 26629: 26629: 26629: return __last - __first; 26629: } 26629: 26629: 26629: 26629: template 26629: ptrdiff_t 26629: __distance(std::_List_iterator<_Tp>, 26629: std::_List_iterator<_Tp>, 26629: input_iterator_tag); 26629: 26629: template 26629: ptrdiff_t 26629: __distance(std::_List_const_iterator<_Tp>, 26629: std::_List_const_iterator<_Tp>, 26629: input_iterator_tag); 26629: 26629: 26629: 26629: 26629: template 26629: void 26629: __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; 26629: # 143 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr 26629: typename iterator_traits<_InputIterator>::difference_type 26629: distance(_InputIterator __first, _InputIterator __last) 26629: { 26629: 26629: return std::__distance(__first, __last, 26629: std::__iterator_category(__first)); 26629: } 26629: 26629: template 26629: inline constexpr void 26629: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 26629: { 26629: 26629: 26629: do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); 26629: while (__n--) 26629: ++__i; 26629: } 26629: 26629: template 26629: inline constexpr void 26629: __advance(_BidirectionalIterator& __i, _Distance __n, 26629: bidirectional_iterator_tag) 26629: { 26629: 26629: 26629: 26629: if (__n > 0) 26629: while (__n--) 26629: ++__i; 26629: else 26629: while (__n++) 26629: --__i; 26629: } 26629: 26629: template 26629: inline constexpr void 26629: __advance(_RandomAccessIterator& __i, _Distance __n, 26629: random_access_iterator_tag) 26629: { 26629: 26629: 26629: 26629: if (__builtin_constant_p(__n) && __n == 1) 26629: ++__i; 26629: else if (__builtin_constant_p(__n) && __n == -1) 26629: --__i; 26629: else 26629: __i += __n; 26629: } 26629: 26629: 26629: 26629: template 26629: void 26629: __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; 26629: # 216 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 3 26629: template 26629: inline constexpr void 26629: advance(_InputIterator& __i, _Distance __n) 26629: { 26629: 26629: typename iterator_traits<_InputIterator>::difference_type __d = __n; 26629: std::__advance(__i, __d, std::__iterator_category(__i)); 26629: } 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr _InputIterator 26629: next(_InputIterator __x, typename 26629: iterator_traits<_InputIterator>::difference_type __n = 1) 26629: { 26629: 26629: 26629: std::advance(__x, __n); 26629: return __x; 26629: } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr _BidirectionalIterator 26629: prev(_BidirectionalIterator __x, typename 26629: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 26629: { 26629: 26629: 26629: 26629: std::advance(__x, -__n); 26629: return __x; 26629: } 26629: 26629: 26629: 26629: 26629: } 26629: # 67 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_iterator.h" 1 3 26629: # 67 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: # 1 "/usr/include/c++/12/bits/ptr_traits.h" 1 3 26629: # 46 "/usr/include/c++/12/bits/ptr_traits.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: class __undefined; 26629: 26629: 26629: 26629: template 26629: struct __get_first_arg 26629: { using type = __undefined; }; 26629: 26629: template class _SomeTemplate, typename _Tp, 26629: typename... _Types> 26629: struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> 26629: { using type = _Tp; }; 26629: 26629: 26629: 26629: template 26629: struct __replace_first_arg 26629: { }; 26629: 26629: template class _SomeTemplate, typename _Up, 26629: typename _Tp, typename... _Types> 26629: struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> 26629: { using type = _SomeTemplate<_Up, _Types...>; }; 26629: # 81 "/usr/include/c++/12/bits/ptr_traits.h" 3 26629: template 26629: struct __ptr_traits_elem : __get_first_arg<_Ptr> 26629: { }; 26629: 26629: 26629: template 26629: struct __ptr_traits_elem<_Ptr, __void_t> 26629: { using type = typename _Ptr::element_type; }; 26629: 26629: template 26629: using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; 26629: 26629: 26629: 26629: template::value> 26629: struct __ptr_traits_ptr_to 26629: { 26629: using pointer = _Ptr; 26629: using element_type = _Elt; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: static pointer 26629: pointer_to(element_type& __e) 26629: 26629: 26629: 26629: 26629: 26629: { return pointer::pointer_to(__e); } 26629: }; 26629: 26629: 26629: template 26629: struct __ptr_traits_ptr_to<_Ptr, _Elt, true> 26629: { }; 26629: 26629: 26629: template 26629: struct __ptr_traits_ptr_to<_Tp*, _Tp, false> 26629: { 26629: using pointer = _Tp*; 26629: using element_type = _Tp; 26629: 26629: 26629: 26629: 26629: 26629: 26629: static pointer 26629: pointer_to(element_type& __r) noexcept 26629: { return std::addressof(__r); } 26629: }; 26629: 26629: template 26629: struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> 26629: { 26629: private: 26629: template 26629: struct __difference { using type = ptrdiff_t; }; 26629: 26629: template 26629: 26629: 26629: 26629: 26629: struct __difference<_Tp, __void_t> 26629: 26629: { using type = typename _Tp::difference_type; }; 26629: 26629: template 26629: struct __rebind : __replace_first_arg<_Tp, _Up> { }; 26629: 26629: template 26629: 26629: 26629: 26629: 26629: struct __rebind<_Tp, _Up, __void_t>> 26629: 26629: { using type = typename _Tp::template rebind<_Up>; }; 26629: 26629: public: 26629: 26629: using pointer = _Ptr; 26629: 26629: 26629: using element_type = _Elt; 26629: 26629: 26629: using difference_type = typename __difference<_Ptr>::type; 26629: 26629: 26629: template 26629: using rebind = typename __rebind<_Ptr, _Up>::type; 26629: }; 26629: 26629: 26629: 26629: template 26629: struct __ptr_traits_impl<_Ptr, __undefined> 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> 26629: { }; 26629: # 209 "/usr/include/c++/12/bits/ptr_traits.h" 3 26629: template 26629: struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> 26629: { 26629: 26629: typedef _Tp* pointer; 26629: 26629: typedef _Tp element_type; 26629: 26629: typedef ptrdiff_t difference_type; 26629: 26629: template using rebind = _Up*; 26629: }; 26629: 26629: 26629: template 26629: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 26629: 26629: template 26629: constexpr _Tp* 26629: __to_address(_Tp* __ptr) noexcept 26629: { 26629: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 26629: return __ptr; 26629: } 26629: 26629: 26629: template 26629: constexpr typename std::pointer_traits<_Ptr>::element_type* 26629: __to_address(const _Ptr& __ptr) 26629: { return std::__to_address(__ptr.operator->()); } 26629: # 282 "/usr/include/c++/12/bits/ptr_traits.h" 3 26629: 26629: } 26629: # 68 "/usr/include/c++/12/bits/stl_iterator.h" 2 3 26629: # 88 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 109 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: # 131 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: class reverse_iterator 26629: : public iterator::iterator_category, 26629: typename iterator_traits<_Iterator>::value_type, 26629: typename iterator_traits<_Iterator>::difference_type, 26629: typename iterator_traits<_Iterator>::pointer, 26629: typename iterator_traits<_Iterator>::reference> 26629: { 26629: template 26629: friend class reverse_iterator; 26629: # 150 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: protected: 26629: _Iterator current; 26629: 26629: typedef iterator_traits<_Iterator> __traits_type; 26629: 26629: public: 26629: typedef _Iterator iterator_type; 26629: typedef typename __traits_type::pointer pointer; 26629: 26629: typedef typename __traits_type::difference_type difference_type; 26629: typedef typename __traits_type::reference reference; 26629: # 181 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: constexpr 26629: reverse_iterator() 26629: noexcept(noexcept(_Iterator())) 26629: : current() 26629: { } 26629: 26629: 26629: 26629: 26629: explicit constexpr 26629: reverse_iterator(iterator_type __x) 26629: noexcept(noexcept(_Iterator(__x))) 26629: : current(__x) 26629: { } 26629: 26629: 26629: 26629: 26629: constexpr 26629: reverse_iterator(const reverse_iterator& __x) 26629: noexcept(noexcept(_Iterator(__x.current))) 26629: : current(__x.current) 26629: { } 26629: 26629: 26629: reverse_iterator& operator=(const reverse_iterator&) = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: 26629: 26629: constexpr 26629: reverse_iterator(const reverse_iterator<_Iter>& __x) 26629: noexcept(noexcept(_Iterator(__x.current))) 26629: : current(__x.current) 26629: { } 26629: 26629: 26629: template 26629: 26629: 26629: 26629: 26629: constexpr 26629: reverse_iterator& 26629: operator=(const reverse_iterator<_Iter>& __x) 26629: noexcept(noexcept(current = __x.current)) 26629: { 26629: current = __x.current; 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: constexpr iterator_type 26629: base() const 26629: noexcept(noexcept(_Iterator(current))) 26629: { return current; } 26629: # 258 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: [[__nodiscard__]] 26629: constexpr reference 26629: operator*() const 26629: { 26629: _Iterator __tmp = current; 26629: return *--__tmp; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: constexpr pointer 26629: operator->() const 26629: 26629: 26629: 26629: 26629: { 26629: 26629: 26629: _Iterator __tmp = current; 26629: --__tmp; 26629: return _S_to_pointer(__tmp); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: constexpr reverse_iterator& 26629: operator++() 26629: { 26629: --current; 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: constexpr reverse_iterator 26629: operator++(int) 26629: { 26629: reverse_iterator __tmp = *this; 26629: --current; 26629: return __tmp; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: constexpr reverse_iterator& 26629: operator--() 26629: { 26629: ++current; 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: constexpr reverse_iterator 26629: operator--(int) 26629: { 26629: reverse_iterator __tmp = *this; 26629: ++current; 26629: return __tmp; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: constexpr reverse_iterator 26629: operator+(difference_type __n) const 26629: { return reverse_iterator(current - __n); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: constexpr reverse_iterator& 26629: operator+=(difference_type __n) 26629: { 26629: current -= __n; 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: constexpr reverse_iterator 26629: operator-(difference_type __n) const 26629: { return reverse_iterator(current + __n); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: constexpr reverse_iterator& 26629: operator-=(difference_type __n) 26629: { 26629: current += __n; 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: constexpr reference 26629: operator[](difference_type __n) const 26629: { return *(*this + __n); } 26629: # 418 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: private: 26629: template 26629: static constexpr _Tp* 26629: _S_to_pointer(_Tp* __p) 26629: { return __p; } 26629: 26629: template 26629: static constexpr pointer 26629: _S_to_pointer(_Tp __t) 26629: { return __t.operator->(); } 26629: }; 26629: # 441 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator==(const reverse_iterator<_Iterator>& __x, 26629: const reverse_iterator<_Iterator>& __y) 26629: { return __x.base() == __y.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator<(const reverse_iterator<_Iterator>& __x, 26629: const reverse_iterator<_Iterator>& __y) 26629: { return __y.base() < __x.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator!=(const reverse_iterator<_Iterator>& __x, 26629: const reverse_iterator<_Iterator>& __y) 26629: { return !(__x == __y); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator>(const reverse_iterator<_Iterator>& __x, 26629: const reverse_iterator<_Iterator>& __y) 26629: { return __y < __x; } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator<=(const reverse_iterator<_Iterator>& __x, 26629: const reverse_iterator<_Iterator>& __y) 26629: { return !(__y < __x); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator>=(const reverse_iterator<_Iterator>& __x, 26629: const reverse_iterator<_Iterator>& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator==(const reverse_iterator<_IteratorL>& __x, 26629: const reverse_iterator<_IteratorR>& __y) 26629: { return __x.base() == __y.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator<(const reverse_iterator<_IteratorL>& __x, 26629: const reverse_iterator<_IteratorR>& __y) 26629: { return __x.base() > __y.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator!=(const reverse_iterator<_IteratorL>& __x, 26629: const reverse_iterator<_IteratorR>& __y) 26629: { return __x.base() != __y.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator>(const reverse_iterator<_IteratorL>& __x, 26629: const reverse_iterator<_IteratorR>& __y) 26629: { return __x.base() < __y.base(); } 26629: 26629: template 26629: inline constexpr bool 26629: operator<=(const reverse_iterator<_IteratorL>& __x, 26629: const reverse_iterator<_IteratorR>& __y) 26629: { return __x.base() >= __y.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator>=(const reverse_iterator<_IteratorL>& __x, 26629: const reverse_iterator<_IteratorR>& __y) 26629: { return __x.base() <= __y.base(); } 26629: # 618 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: operator-(const reverse_iterator<_IteratorL>& __x, 26629: const reverse_iterator<_IteratorR>& __y) 26629: -> decltype(__y.base() - __x.base()) 26629: { return __y.base() - __x.base(); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr reverse_iterator<_Iterator> 26629: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 26629: const reverse_iterator<_Iterator>& __x) 26629: { return reverse_iterator<_Iterator>(__x.base() - __n); } 26629: 26629: 26629: 26629: template 26629: inline constexpr reverse_iterator<_Iterator> 26629: __make_reverse_iterator(_Iterator __i) 26629: { return reverse_iterator<_Iterator>(__i); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr reverse_iterator<_Iterator> 26629: make_reverse_iterator(_Iterator __i) 26629: { return reverse_iterator<_Iterator>(__i); } 26629: # 662 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: 26629: auto 26629: __niter_base(reverse_iterator<_Iterator> __it) 26629: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 26629: { return __make_reverse_iterator(__niter_base(__it.base())); } 26629: 26629: template 26629: struct __is_move_iterator > 26629: : __is_move_iterator<_Iterator> 26629: { }; 26629: 26629: template 26629: 26629: auto 26629: __miter_base(reverse_iterator<_Iterator> __it) 26629: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 26629: { return __make_reverse_iterator(__miter_base(__it.base())); } 26629: # 693 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: class back_insert_iterator 26629: : public iterator 26629: { 26629: protected: 26629: _Container* container; 26629: 26629: public: 26629: 26629: typedef _Container container_type; 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: back_insert_iterator(_Container& __x) 26629: : container(std::__addressof(__x)) { } 26629: # 731 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: 26629: back_insert_iterator& 26629: operator=(const typename _Container::value_type& __value) 26629: { 26629: container->push_back(__value); 26629: return *this; 26629: } 26629: 26629: 26629: back_insert_iterator& 26629: operator=(typename _Container::value_type&& __value) 26629: { 26629: container->push_back(std::move(__value)); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: back_insert_iterator& 26629: operator*() 26629: { return *this; } 26629: 26629: 26629: 26629: back_insert_iterator& 26629: operator++() 26629: { return *this; } 26629: 26629: 26629: 26629: back_insert_iterator 26629: operator++(int) 26629: { return *this; } 26629: }; 26629: # 778 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline back_insert_iterator<_Container> 26629: back_inserter(_Container& __x) 26629: { return back_insert_iterator<_Container>(__x); } 26629: # 794 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: class front_insert_iterator 26629: : public iterator 26629: { 26629: protected: 26629: _Container* container; 26629: 26629: public: 26629: 26629: typedef _Container container_type; 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: front_insert_iterator(_Container& __x) 26629: : container(std::__addressof(__x)) { } 26629: # 832 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: 26629: front_insert_iterator& 26629: operator=(const typename _Container::value_type& __value) 26629: { 26629: container->push_front(__value); 26629: return *this; 26629: } 26629: 26629: 26629: front_insert_iterator& 26629: operator=(typename _Container::value_type&& __value) 26629: { 26629: container->push_front(std::move(__value)); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: front_insert_iterator& 26629: operator*() 26629: { return *this; } 26629: 26629: 26629: 26629: front_insert_iterator& 26629: operator++() 26629: { return *this; } 26629: 26629: 26629: 26629: front_insert_iterator 26629: operator++(int) 26629: { return *this; } 26629: }; 26629: # 879 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline front_insert_iterator<_Container> 26629: front_inserter(_Container& __x) 26629: { return front_insert_iterator<_Container>(__x); } 26629: # 899 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: class insert_iterator 26629: : public iterator 26629: { 26629: 26629: 26629: 26629: typedef typename _Container::iterator _Iter; 26629: 26629: protected: 26629: _Container* container; 26629: _Iter iter; 26629: 26629: public: 26629: 26629: typedef _Container container_type; 26629: # 924 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: 26629: insert_iterator(_Container& __x, _Iter __i) 26629: : container(std::__addressof(__x)), iter(__i) {} 26629: # 960 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: 26629: insert_iterator& 26629: operator=(const typename _Container::value_type& __value) 26629: { 26629: iter = container->insert(iter, __value); 26629: ++iter; 26629: return *this; 26629: } 26629: 26629: 26629: insert_iterator& 26629: operator=(typename _Container::value_type&& __value) 26629: { 26629: iter = container->insert(iter, std::move(__value)); 26629: ++iter; 26629: return *this; 26629: } 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: insert_iterator& 26629: operator*() 26629: { return *this; } 26629: 26629: 26629: 26629: insert_iterator& 26629: operator++() 26629: { return *this; } 26629: 26629: 26629: 26629: insert_iterator& 26629: operator++(int) 26629: { return *this; } 26629: }; 26629: 26629: #pragma GCC diagnostic pop 26629: # 1019 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline insert_iterator<_Container> 26629: inserter(_Container& __x, typename _Container::iterator __i) 26629: { return insert_iterator<_Container>(__x, __i); } 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 1042 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: class __normal_iterator 26629: { 26629: protected: 26629: _Iterator _M_current; 26629: 26629: typedef std::iterator_traits<_Iterator> __traits_type; 26629: 26629: 26629: template 26629: using __convertible_from 26629: = std::__enable_if_t::value>; 26629: 26629: 26629: public: 26629: typedef _Iterator iterator_type; 26629: typedef typename __traits_type::iterator_category iterator_category; 26629: typedef typename __traits_type::value_type value_type; 26629: typedef typename __traits_type::difference_type difference_type; 26629: typedef typename __traits_type::reference reference; 26629: typedef typename __traits_type::pointer pointer; 26629: 26629: 26629: 26629: 26629: 26629: constexpr __normal_iterator() noexcept 26629: : _M_current(_Iterator()) { } 26629: 26629: explicit 26629: __normal_iterator(const _Iterator& __i) noexcept 26629: : _M_current(__i) { } 26629: 26629: 26629: 26629: template> 26629: 26629: __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) 26629: noexcept 26629: # 1090 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: : _M_current(__i.base()) { } 26629: 26629: 26629: 26629: reference 26629: operator*() const noexcept 26629: { return *_M_current; } 26629: 26629: 26629: pointer 26629: operator->() const noexcept 26629: { return _M_current; } 26629: 26629: 26629: __normal_iterator& 26629: operator++() noexcept 26629: { 26629: ++_M_current; 26629: return *this; 26629: } 26629: 26629: 26629: __normal_iterator 26629: operator++(int) noexcept 26629: { return __normal_iterator(_M_current++); } 26629: 26629: 26629: 26629: __normal_iterator& 26629: operator--() noexcept 26629: { 26629: --_M_current; 26629: return *this; 26629: } 26629: 26629: 26629: __normal_iterator 26629: operator--(int) noexcept 26629: { return __normal_iterator(_M_current--); } 26629: 26629: 26629: 26629: reference 26629: operator[](difference_type __n) const noexcept 26629: { return _M_current[__n]; } 26629: 26629: 26629: __normal_iterator& 26629: operator+=(difference_type __n) noexcept 26629: { _M_current += __n; return *this; } 26629: 26629: 26629: __normal_iterator 26629: operator+(difference_type __n) const noexcept 26629: { return __normal_iterator(_M_current + __n); } 26629: 26629: 26629: __normal_iterator& 26629: operator-=(difference_type __n) noexcept 26629: { _M_current -= __n; return *this; } 26629: 26629: 26629: __normal_iterator 26629: operator-(difference_type __n) const noexcept 26629: { return __normal_iterator(_M_current - __n); } 26629: 26629: 26629: const _Iterator& 26629: base() const noexcept 26629: { return _M_current; } 26629: }; 26629: # 1210 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 26629: const __normal_iterator<_IteratorR, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() == __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 26629: const __normal_iterator<_Iterator, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() == __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 26629: const __normal_iterator<_IteratorR, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() != __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 26629: const __normal_iterator<_Iterator, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() != __rhs.base(); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 26629: const __normal_iterator<_IteratorR, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() < __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 26629: const __normal_iterator<_Iterator, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() < __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 26629: const __normal_iterator<_IteratorR, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() > __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 26629: const __normal_iterator<_Iterator, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() > __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 26629: const __normal_iterator<_IteratorR, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() <= __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 26629: const __normal_iterator<_Iterator, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() <= __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 26629: const __normal_iterator<_IteratorR, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() >= __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 26629: const __normal_iterator<_Iterator, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() >= __rhs.base(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: 26629: [[__nodiscard__]] 26629: inline auto 26629: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 26629: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 26629: -> decltype(__lhs.base() - __rhs.base()) 26629: 26629: 26629: 26629: 26629: 26629: { return __lhs.base() - __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline typename __normal_iterator<_Iterator, _Container>::difference_type 26629: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 26629: const __normal_iterator<_Iterator, _Container>& __rhs) 26629: noexcept 26629: { return __lhs.base() - __rhs.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline __normal_iterator<_Iterator, _Container> 26629: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 26629: __n, const __normal_iterator<_Iterator, _Container>& __i) 26629: noexcept 26629: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 26629: 26629: 26629: } 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: 26629: _Iterator 26629: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 26629: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 26629: { return __it.base(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr auto 26629: __to_address(const __gnu_cxx::__normal_iterator<_Iterator, 26629: _Container>& __it) noexcept 26629: -> decltype(std::__to_address(__it.base())) 26629: { return std::__to_address(__it.base()); } 26629: # 1417 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: namespace __detail 26629: { 26629: # 1433 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: } 26629: # 1444 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: class move_iterator 26629: 26629: 26629: 26629: { 26629: _Iterator _M_current; 26629: 26629: using __traits_type = iterator_traits<_Iterator>; 26629: 26629: using __base_ref = typename __traits_type::reference; 26629: 26629: 26629: template 26629: friend class move_iterator; 26629: # 1468 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: public: 26629: using iterator_type = _Iterator; 26629: # 1479 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: typedef typename __traits_type::iterator_category iterator_category; 26629: typedef typename __traits_type::value_type value_type; 26629: typedef typename __traits_type::difference_type difference_type; 26629: 26629: typedef _Iterator pointer; 26629: 26629: 26629: using reference 26629: = __conditional_t::value, 26629: typename remove_reference<__base_ref>::type&&, 26629: __base_ref>; 26629: 26629: 26629: constexpr 26629: move_iterator() 26629: : _M_current() { } 26629: 26629: explicit constexpr 26629: move_iterator(iterator_type __i) 26629: : _M_current(std::move(__i)) { } 26629: 26629: template 26629: 26629: 26629: 26629: constexpr 26629: move_iterator(const move_iterator<_Iter>& __i) 26629: : _M_current(__i._M_current) { } 26629: 26629: template 26629: 26629: 26629: 26629: 26629: constexpr 26629: move_iterator& operator=(const move_iterator<_Iter>& __i) 26629: { 26629: _M_current = __i._M_current; 26629: return *this; 26629: } 26629: 26629: 26629: [[__nodiscard__]] 26629: constexpr iterator_type 26629: base() const 26629: { return _M_current; } 26629: # 1537 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: [[__nodiscard__]] 26629: constexpr reference 26629: operator*() const 26629: 26629: 26629: 26629: { return static_cast(*_M_current); } 26629: 26629: 26629: [[__nodiscard__]] 26629: constexpr pointer 26629: operator->() const 26629: { return _M_current; } 26629: 26629: constexpr move_iterator& 26629: operator++() 26629: { 26629: ++_M_current; 26629: return *this; 26629: } 26629: 26629: constexpr move_iterator 26629: operator++(int) 26629: { 26629: move_iterator __tmp = *this; 26629: ++_M_current; 26629: return __tmp; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: constexpr move_iterator& 26629: operator--() 26629: { 26629: --_M_current; 26629: return *this; 26629: } 26629: 26629: constexpr move_iterator 26629: operator--(int) 26629: { 26629: move_iterator __tmp = *this; 26629: --_M_current; 26629: return __tmp; 26629: } 26629: 26629: [[__nodiscard__]] 26629: constexpr move_iterator 26629: operator+(difference_type __n) const 26629: { return move_iterator(_M_current + __n); } 26629: 26629: constexpr move_iterator& 26629: operator+=(difference_type __n) 26629: { 26629: _M_current += __n; 26629: return *this; 26629: } 26629: 26629: [[__nodiscard__]] 26629: constexpr move_iterator 26629: operator-(difference_type __n) const 26629: { return move_iterator(_M_current - __n); } 26629: 26629: constexpr move_iterator& 26629: operator-=(difference_type __n) 26629: { 26629: _M_current -= __n; 26629: return *this; 26629: } 26629: 26629: [[__nodiscard__]] 26629: constexpr reference 26629: operator[](difference_type __n) const 26629: 26629: 26629: 26629: { return std::move(_M_current[__n]); } 26629: # 1651 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: }; 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator==(const move_iterator<_IteratorL>& __x, 26629: const move_iterator<_IteratorR>& __y) 26629: 26629: 26629: 26629: { return __x.base() == __y.base(); } 26629: # 1672 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator!=(const move_iterator<_IteratorL>& __x, 26629: const move_iterator<_IteratorR>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator<(const move_iterator<_IteratorL>& __x, 26629: const move_iterator<_IteratorR>& __y) 26629: 26629: 26629: 26629: { return __x.base() < __y.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator<=(const move_iterator<_IteratorL>& __x, 26629: const move_iterator<_IteratorR>& __y) 26629: 26629: 26629: 26629: { return !(__y < __x); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator>(const move_iterator<_IteratorL>& __x, 26629: const move_iterator<_IteratorR>& __y) 26629: 26629: 26629: 26629: { return __y < __x; } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator>=(const move_iterator<_IteratorL>& __x, 26629: const move_iterator<_IteratorR>& __y) 26629: 26629: 26629: 26629: { return !(__x < __y); } 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator==(const move_iterator<_Iterator>& __x, 26629: const move_iterator<_Iterator>& __y) 26629: { return __x.base() == __y.base(); } 26629: # 1738 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator!=(const move_iterator<_Iterator>& __x, 26629: const move_iterator<_Iterator>& __y) 26629: { return !(__x == __y); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator<(const move_iterator<_Iterator>& __x, 26629: const move_iterator<_Iterator>& __y) 26629: { return __x.base() < __y.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator<=(const move_iterator<_Iterator>& __x, 26629: const move_iterator<_Iterator>& __y) 26629: { return !(__y < __x); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator>(const move_iterator<_Iterator>& __x, 26629: const move_iterator<_Iterator>& __y) 26629: { return __y < __x; } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr bool 26629: operator>=(const move_iterator<_Iterator>& __x, 26629: const move_iterator<_Iterator>& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: operator-(const move_iterator<_IteratorL>& __x, 26629: const move_iterator<_IteratorR>& __y) 26629: -> decltype(__x.base() - __y.base()) 26629: { return __x.base() - __y.base(); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr move_iterator<_Iterator> 26629: operator+(typename move_iterator<_Iterator>::difference_type __n, 26629: const move_iterator<_Iterator>& __x) 26629: { return __x + __n; } 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr move_iterator<_Iterator> 26629: make_move_iterator(_Iterator __i) 26629: { return move_iterator<_Iterator>(std::move(__i)); } 26629: 26629: template::value_type>::value, 26629: _Iterator, move_iterator<_Iterator>>> 26629: inline constexpr _ReturnType 26629: __make_move_if_noexcept_iterator(_Iterator __i) 26629: { return _ReturnType(__i); } 26629: 26629: 26629: 26629: template::value, 26629: const _Tp*, move_iterator<_Tp*>>> 26629: inline constexpr _ReturnType 26629: __make_move_if_noexcept_iterator(_Tp* __i) 26629: { return _ReturnType(__i); } 26629: # 2552 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: 26629: auto 26629: __niter_base(move_iterator<_Iterator> __it) 26629: -> decltype(make_move_iterator(__niter_base(__it.base()))) 26629: { return make_move_iterator(__niter_base(__it.base())); } 26629: 26629: template 26629: struct __is_move_iterator > 26629: { 26629: enum { __value = 1 }; 26629: typedef __true_type __type; 26629: }; 26629: 26629: template 26629: 26629: auto 26629: __miter_base(move_iterator<_Iterator> __it) 26629: -> decltype(__miter_base(__it.base())) 26629: { return __miter_base(__it.base()); } 26629: # 2584 "/usr/include/c++/12/bits/stl_iterator.h" 3 26629: template 26629: using __iter_key_t = remove_const_t< 26629: typename iterator_traits<_InputIterator>::value_type::first_type>; 26629: 26629: template 26629: using __iter_val_t = 26629: typename iterator_traits<_InputIterator>::value_type::second_type; 26629: 26629: template 26629: struct pair; 26629: 26629: template 26629: using __iter_to_alloc_t = 26629: pair>, 26629: __iter_val_t<_InputIterator>>; 26629: 26629: 26629: 26629: } 26629: # 68 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 26629: 26629: # 1 "/usr/include/c++/12/debug/debug.h" 1 3 26629: # 48 "/usr/include/c++/12/debug/debug.h" 3 26629: namespace std 26629: { 26629: namespace __debug { } 26629: } 26629: 26629: 26629: 26629: 26629: namespace __gnu_debug 26629: { 26629: using namespace std::__debug; 26629: 26629: template 26629: struct _Safe_iterator; 26629: } 26629: # 70 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 26629: 26629: # 1 "/usr/include/c++/12/bits/predefined_ops.h" 1 3 26629: # 35 "/usr/include/c++/12/bits/predefined_ops.h" 3 26629: namespace __gnu_cxx 26629: { 26629: namespace __ops 26629: { 26629: struct _Iter_less_iter 26629: { 26629: template 26629: constexpr 26629: bool 26629: operator()(_Iterator1 __it1, _Iterator2 __it2) const 26629: { return *__it1 < *__it2; } 26629: }; 26629: 26629: constexpr 26629: inline _Iter_less_iter 26629: __iter_less_iter() 26629: { return _Iter_less_iter(); } 26629: 26629: struct _Iter_less_val 26629: { 26629: 26629: constexpr _Iter_less_val() = default; 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: _Iter_less_val(_Iter_less_iter) { } 26629: 26629: template 26629: 26629: bool 26629: operator()(_Iterator __it, _Value& __val) const 26629: { return *__it < __val; } 26629: }; 26629: 26629: 26629: inline _Iter_less_val 26629: __iter_less_val() 26629: { return _Iter_less_val(); } 26629: 26629: 26629: inline _Iter_less_val 26629: __iter_comp_val(_Iter_less_iter) 26629: { return _Iter_less_val(); } 26629: 26629: struct _Val_less_iter 26629: { 26629: 26629: constexpr _Val_less_iter() = default; 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: _Val_less_iter(_Iter_less_iter) { } 26629: 26629: template 26629: 26629: bool 26629: operator()(_Value& __val, _Iterator __it) const 26629: { return __val < *__it; } 26629: }; 26629: 26629: 26629: inline _Val_less_iter 26629: __val_less_iter() 26629: { return _Val_less_iter(); } 26629: 26629: 26629: inline _Val_less_iter 26629: __val_comp_iter(_Iter_less_iter) 26629: { return _Val_less_iter(); } 26629: 26629: struct _Iter_equal_to_iter 26629: { 26629: template 26629: 26629: bool 26629: operator()(_Iterator1 __it1, _Iterator2 __it2) const 26629: { return *__it1 == *__it2; } 26629: }; 26629: 26629: 26629: inline _Iter_equal_to_iter 26629: __iter_equal_to_iter() 26629: { return _Iter_equal_to_iter(); } 26629: 26629: struct _Iter_equal_to_val 26629: { 26629: template 26629: 26629: bool 26629: operator()(_Iterator __it, _Value& __val) const 26629: { return *__it == __val; } 26629: }; 26629: 26629: 26629: inline _Iter_equal_to_val 26629: __iter_equal_to_val() 26629: { return _Iter_equal_to_val(); } 26629: 26629: 26629: inline _Iter_equal_to_val 26629: __iter_comp_val(_Iter_equal_to_iter) 26629: { return _Iter_equal_to_val(); } 26629: 26629: template 26629: struct _Iter_comp_iter 26629: { 26629: _Compare _M_comp; 26629: 26629: explicit constexpr 26629: _Iter_comp_iter(_Compare __comp) 26629: : _M_comp(std::move(__comp)) 26629: { } 26629: 26629: template 26629: constexpr 26629: bool 26629: operator()(_Iterator1 __it1, _Iterator2 __it2) 26629: { return bool(_M_comp(*__it1, *__it2)); } 26629: }; 26629: 26629: template 26629: constexpr 26629: inline _Iter_comp_iter<_Compare> 26629: __iter_comp_iter(_Compare __comp) 26629: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 26629: 26629: template 26629: struct _Iter_comp_val 26629: { 26629: _Compare _M_comp; 26629: 26629: 26629: explicit 26629: _Iter_comp_val(_Compare __comp) 26629: : _M_comp(std::move(__comp)) 26629: { } 26629: 26629: 26629: explicit 26629: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 26629: : _M_comp(__comp._M_comp) 26629: { } 26629: 26629: 26629: 26629: explicit 26629: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 26629: : _M_comp(std::move(__comp._M_comp)) 26629: { } 26629: 26629: 26629: template 26629: 26629: bool 26629: operator()(_Iterator __it, _Value& __val) 26629: { return bool(_M_comp(*__it, __val)); } 26629: }; 26629: 26629: template 26629: 26629: inline _Iter_comp_val<_Compare> 26629: __iter_comp_val(_Compare __comp) 26629: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 26629: 26629: template 26629: 26629: inline _Iter_comp_val<_Compare> 26629: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 26629: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 26629: 26629: template 26629: struct _Val_comp_iter 26629: { 26629: _Compare _M_comp; 26629: 26629: 26629: explicit 26629: _Val_comp_iter(_Compare __comp) 26629: : _M_comp(std::move(__comp)) 26629: { } 26629: 26629: 26629: explicit 26629: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 26629: : _M_comp(__comp._M_comp) 26629: { } 26629: 26629: 26629: 26629: explicit 26629: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 26629: : _M_comp(std::move(__comp._M_comp)) 26629: { } 26629: 26629: 26629: template 26629: 26629: bool 26629: operator()(_Value& __val, _Iterator __it) 26629: { return bool(_M_comp(__val, *__it)); } 26629: }; 26629: 26629: template 26629: 26629: inline _Val_comp_iter<_Compare> 26629: __val_comp_iter(_Compare __comp) 26629: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 26629: 26629: template 26629: 26629: inline _Val_comp_iter<_Compare> 26629: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 26629: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 26629: 26629: template 26629: struct _Iter_equals_val 26629: { 26629: _Value& _M_value; 26629: 26629: 26629: explicit 26629: _Iter_equals_val(_Value& __value) 26629: : _M_value(__value) 26629: { } 26629: 26629: template 26629: 26629: bool 26629: operator()(_Iterator __it) 26629: { return *__it == _M_value; } 26629: }; 26629: 26629: template 26629: 26629: inline _Iter_equals_val<_Value> 26629: __iter_equals_val(_Value& __val) 26629: { return _Iter_equals_val<_Value>(__val); } 26629: 26629: template 26629: struct _Iter_equals_iter 26629: { 26629: _Iterator1 _M_it1; 26629: 26629: 26629: explicit 26629: _Iter_equals_iter(_Iterator1 __it1) 26629: : _M_it1(__it1) 26629: { } 26629: 26629: template 26629: 26629: bool 26629: operator()(_Iterator2 __it2) 26629: { return *__it2 == *_M_it1; } 26629: }; 26629: 26629: template 26629: 26629: inline _Iter_equals_iter<_Iterator> 26629: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 26629: { return _Iter_equals_iter<_Iterator>(__it); } 26629: 26629: template 26629: struct _Iter_pred 26629: { 26629: _Predicate _M_pred; 26629: 26629: 26629: explicit 26629: _Iter_pred(_Predicate __pred) 26629: : _M_pred(std::move(__pred)) 26629: { } 26629: 26629: template 26629: 26629: bool 26629: operator()(_Iterator __it) 26629: { return bool(_M_pred(*__it)); } 26629: }; 26629: 26629: template 26629: 26629: inline _Iter_pred<_Predicate> 26629: __pred_iter(_Predicate __pred) 26629: { return _Iter_pred<_Predicate>(std::move(__pred)); } 26629: 26629: template 26629: struct _Iter_comp_to_val 26629: { 26629: _Compare _M_comp; 26629: _Value& _M_value; 26629: 26629: 26629: _Iter_comp_to_val(_Compare __comp, _Value& __value) 26629: : _M_comp(std::move(__comp)), _M_value(__value) 26629: { } 26629: 26629: template 26629: 26629: bool 26629: operator()(_Iterator __it) 26629: { return bool(_M_comp(*__it, _M_value)); } 26629: }; 26629: 26629: template 26629: _Iter_comp_to_val<_Compare, _Value> 26629: 26629: __iter_comp_val(_Compare __comp, _Value &__val) 26629: { 26629: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 26629: } 26629: 26629: template 26629: struct _Iter_comp_to_iter 26629: { 26629: _Compare _M_comp; 26629: _Iterator1 _M_it1; 26629: 26629: 26629: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 26629: : _M_comp(std::move(__comp)), _M_it1(__it1) 26629: { } 26629: 26629: template 26629: 26629: bool 26629: operator()(_Iterator2 __it2) 26629: { return bool(_M_comp(*__it2, *_M_it1)); } 26629: }; 26629: 26629: template 26629: 26629: inline _Iter_comp_to_iter<_Compare, _Iterator> 26629: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 26629: { 26629: return _Iter_comp_to_iter<_Compare, _Iterator>( 26629: std::move(__comp._M_comp), __it); 26629: } 26629: 26629: template 26629: struct _Iter_negate 26629: { 26629: _Predicate _M_pred; 26629: 26629: 26629: explicit 26629: _Iter_negate(_Predicate __pred) 26629: : _M_pred(std::move(__pred)) 26629: { } 26629: 26629: template 26629: 26629: bool 26629: operator()(_Iterator __it) 26629: { return !bool(_M_pred(*__it)); } 26629: }; 26629: 26629: template 26629: 26629: inline _Iter_negate<_Predicate> 26629: __negate(_Iter_pred<_Predicate> __pred) 26629: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 26629: 26629: } 26629: } 26629: # 72 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr 26629: inline int 26629: __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) 26629: { 26629: 26629: static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); 26629: # 105 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); 26629: } 26629: # 149 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline void 26629: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 26629: { 26629: 26629: 26629: 26629: 26629: # 182 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: swap(*__a, *__b); 26629: 26629: } 26629: # 198 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: _ForwardIterator2 26629: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first1 != __last1; ++__first1, (void)++__first2) 26629: std::iter_swap(__first1, __first2); 26629: return __first2; 26629: } 26629: # 227 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: constexpr 26629: inline const _Tp& 26629: min(const _Tp& __a, const _Tp& __b) 26629: { 26629: 26629: 26629: 26629: if (__b < __a) 26629: return __b; 26629: return __a; 26629: } 26629: # 251 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: constexpr 26629: inline const _Tp& 26629: max(const _Tp& __a, const _Tp& __b) 26629: { 26629: 26629: 26629: 26629: if (__a < __b) 26629: return __b; 26629: return __a; 26629: } 26629: # 275 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: constexpr 26629: inline const _Tp& 26629: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 26629: { 26629: 26629: if (__comp(__b, __a)) 26629: return __b; 26629: return __a; 26629: } 26629: # 297 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: constexpr 26629: inline const _Tp& 26629: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 26629: { 26629: 26629: if (__comp(__a, __b)) 26629: return __b; 26629: return __a; 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: inline _Iterator 26629: __niter_base(_Iterator __it) 26629: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 26629: { return __it; } 26629: 26629: template 26629: _Ite 26629: __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, 26629: std::random_access_iterator_tag>&); 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline _From 26629: __niter_wrap(_From __from, _To __res) 26629: { return __from + (__res - std::__niter_base(__from)); } 26629: 26629: 26629: template 26629: 26629: inline _Iterator 26629: __niter_wrap(const _Iterator&, _Iterator __res) 26629: { return __res; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __copy_move 26629: { 26629: template 26629: 26629: static _OI 26629: __copy_m(_II __first, _II __last, _OI __result) 26629: { 26629: for (; __first != __last; ++__result, (void)++__first) 26629: *__result = *__first; 26629: return __result; 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct __copy_move 26629: { 26629: template 26629: 26629: static _OI 26629: __copy_m(_II __first, _II __last, _OI __result) 26629: { 26629: for (; __first != __last; ++__result, (void)++__first) 26629: *__result = std::move(*__first); 26629: return __result; 26629: } 26629: }; 26629: 26629: 26629: template<> 26629: struct __copy_move 26629: { 26629: template 26629: 26629: static _OI 26629: __copy_m(_II __first, _II __last, _OI __result) 26629: { 26629: typedef typename iterator_traits<_II>::difference_type _Distance; 26629: for(_Distance __n = __last - __first; __n > 0; --__n) 26629: { 26629: *__result = *__first; 26629: ++__first; 26629: ++__result; 26629: } 26629: return __result; 26629: } 26629: }; 26629: 26629: 26629: template<> 26629: struct __copy_move 26629: { 26629: template 26629: 26629: static _OI 26629: __copy_m(_II __first, _II __last, _OI __result) 26629: { 26629: typedef typename iterator_traits<_II>::difference_type _Distance; 26629: for(_Distance __n = __last - __first; __n > 0; --__n) 26629: { 26629: *__result = std::move(*__first); 26629: ++__first; 26629: ++__result; 26629: } 26629: return __result; 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct __copy_move<_IsMove, true, random_access_iterator_tag> 26629: { 26629: template 26629: 26629: static _Tp* 26629: __copy_m(const _Tp* __first, const _Tp* __last, _Tp* __result) 26629: { 26629: 26629: using __assignable = __conditional_t<_IsMove, 26629: is_move_assignable<_Tp>, 26629: is_copy_assignable<_Tp>>; 26629: 26629: static_assert( __assignable::value, "type must be assignable" ); 26629: 26629: const ptrdiff_t _Num = __last - __first; 26629: if (_Num) 26629: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 26629: return __result + _Num; 26629: } 26629: }; 26629: 26629: 26629: 26629: template 26629: struct _Deque_iterator; 26629: 26629: struct _Bit_iterator; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct char_traits; 26629: 26629: template 26629: class istreambuf_iterator; 26629: 26629: template 26629: class ostreambuf_iterator; 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 26629: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 26629: __copy_move_a2(_CharT*, _CharT*, 26629: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 26629: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 26629: __copy_move_a2(const _CharT*, const _CharT*, 26629: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 26629: _CharT*>::__type 26629: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 26629: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_char<_CharT>::__value, 26629: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 26629: __copy_move_a2( 26629: istreambuf_iterator<_CharT, char_traits<_CharT> >, 26629: istreambuf_iterator<_CharT, char_traits<_CharT> >, 26629: std::_Deque_iterator<_CharT, _CharT&, _CharT*>); 26629: 26629: template 26629: 26629: inline _OI 26629: __copy_move_a2(_II __first, _II __last, _OI __result) 26629: { 26629: typedef typename iterator_traits<_II>::iterator_category _Category; 26629: 26629: 26629: 26629: 26629: 26629: return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, 26629: _Category>::__copy_m(__first, __last, __result); 26629: } 26629: 26629: template 26629: _OI 26629: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 26629: _OI); 26629: 26629: template 26629: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 26629: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, 26629: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 26629: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_random_access_iter<_II>::__value, 26629: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 26629: __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 26629: 26629: template 26629: 26629: inline _OI 26629: __copy_move_a1(_II __first, _II __last, _OI __result) 26629: { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } 26629: 26629: template 26629: 26629: inline _OI 26629: __copy_move_a(_II __first, _II __last, _OI __result) 26629: { 26629: return std::__niter_wrap(__result, 26629: std::__copy_move_a1<_IsMove>(std::__niter_base(__first), 26629: std::__niter_base(__last), 26629: std::__niter_base(__result))); 26629: } 26629: 26629: template 26629: _OI 26629: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 26629: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 26629: _OI); 26629: 26629: template 26629: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 26629: __copy_move_a(_II, _II, 26629: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 26629: 26629: template 26629: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 26629: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 26629: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 26629: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 26629: 26629: template 26629: 26629: _OutputIterator 26629: __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, 26629: bool) 26629: { 26629: if (__n > 0) 26629: { 26629: while (true) 26629: { 26629: *__result = *__first; 26629: ++__result; 26629: if (--__n > 0) 26629: ++__first; 26629: else 26629: break; 26629: } 26629: } 26629: return __result; 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_char<_CharT>::__value, _CharT*>::__type 26629: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, 26629: _Size, _CharT*, bool); 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_char<_CharT>::__value, 26629: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 26629: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, 26629: std::_Deque_iterator<_CharT, _CharT&, _CharT*>, 26629: bool); 26629: # 608 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline _OI 26629: copy(_II __first, _II __last, _OI __result) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__copy_move_a<__is_move_iterator<_II>::__value> 26629: (std::__miter_base(__first), std::__miter_base(__last), __result); 26629: } 26629: # 641 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline _OI 26629: move(_II __first, _II __last, _OI __result) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__copy_move_a(std::__miter_base(__first), 26629: std::__miter_base(__last), __result); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __copy_move_backward 26629: { 26629: template 26629: 26629: static _BI2 26629: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 26629: { 26629: while (__first != __last) 26629: *--__result = *--__last; 26629: return __result; 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct __copy_move_backward 26629: { 26629: template 26629: 26629: static _BI2 26629: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 26629: { 26629: while (__first != __last) 26629: *--__result = std::move(*--__last); 26629: return __result; 26629: } 26629: }; 26629: 26629: 26629: template<> 26629: struct __copy_move_backward 26629: { 26629: template 26629: 26629: static _BI2 26629: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 26629: { 26629: typename iterator_traits<_BI1>::difference_type 26629: __n = __last - __first; 26629: for (; __n > 0; --__n) 26629: *--__result = *--__last; 26629: return __result; 26629: } 26629: }; 26629: 26629: 26629: template<> 26629: struct __copy_move_backward 26629: { 26629: template 26629: 26629: static _BI2 26629: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 26629: { 26629: typename iterator_traits<_BI1>::difference_type 26629: __n = __last - __first; 26629: for (; __n > 0; --__n) 26629: *--__result = std::move(*--__last); 26629: return __result; 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 26629: { 26629: template 26629: 26629: static _Tp* 26629: __copy_move_b(const _Tp* __first, const _Tp* __last, _Tp* __result) 26629: { 26629: 26629: using __assignable = __conditional_t<_IsMove, 26629: is_move_assignable<_Tp>, 26629: is_copy_assignable<_Tp>>; 26629: 26629: static_assert( __assignable::value, "type must be assignable" ); 26629: 26629: const ptrdiff_t _Num = __last - __first; 26629: if (_Num) 26629: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 26629: return __result - _Num; 26629: } 26629: }; 26629: 26629: template 26629: 26629: inline _BI2 26629: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 26629: { 26629: typedef typename iterator_traits<_BI1>::iterator_category _Category; 26629: 26629: 26629: 26629: 26629: 26629: return std::__copy_move_backward<_IsMove, 26629: __memcpyable<_BI2, _BI1>::__value, 26629: _Category>::__copy_move_b(__first, 26629: __last, 26629: __result); 26629: } 26629: 26629: template 26629: 26629: inline _BI2 26629: __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) 26629: { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } 26629: 26629: template 26629: _OI 26629: __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 26629: _OI); 26629: 26629: template 26629: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 26629: __copy_move_backward_a1( 26629: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 26629: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 26629: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_random_access_iter<_II>::__value, 26629: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 26629: __copy_move_backward_a1(_II, _II, 26629: std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 26629: 26629: template 26629: 26629: inline _OI 26629: __copy_move_backward_a(_II __first, _II __last, _OI __result) 26629: { 26629: return std::__niter_wrap(__result, 26629: std::__copy_move_backward_a1<_IsMove> 26629: (std::__niter_base(__first), std::__niter_base(__last), 26629: std::__niter_base(__result))); 26629: } 26629: 26629: template 26629: _OI 26629: __copy_move_backward_a( 26629: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 26629: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 26629: _OI); 26629: 26629: template 26629: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 26629: __copy_move_backward_a(_II, _II, 26629: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 26629: 26629: template 26629: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 26629: __copy_move_backward_a( 26629: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 26629: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 26629: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 26629: # 845 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline _BI2 26629: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> 26629: (std::__miter_base(__first), std::__miter_base(__last), __result); 26629: } 26629: # 880 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline _BI2 26629: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__copy_move_backward_a(std::__miter_base(__first), 26629: std::__miter_base(__last), 26629: __result); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline typename 26629: __gnu_cxx::__enable_if::__value, void>::__type 26629: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __value) 26629: { 26629: for (; __first != __last; ++__first) 26629: *__first = __value; 26629: } 26629: 26629: template 26629: 26629: inline typename 26629: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 26629: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __value) 26629: { 26629: const _Tp __tmp = __value; 26629: for (; __first != __last; ++__first) 26629: *__first = __tmp; 26629: } 26629: 26629: 26629: template 26629: 26629: inline typename 26629: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 26629: __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) 26629: { 26629: const _Tp __tmp = __c; 26629: # 941 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: if (const size_t __len = __last - __first) 26629: __builtin_memset(__first, static_cast(__tmp), __len); 26629: } 26629: 26629: template 26629: 26629: inline void 26629: __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, 26629: ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, 26629: const _Tp& __value) 26629: { std::__fill_a1(__first.base(), __last.base(), __value); } 26629: 26629: template 26629: void 26629: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 26629: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 26629: const _VTp&); 26629: 26629: 26629: void 26629: __fill_a1(std::_Bit_iterator, std::_Bit_iterator, 26629: const bool&); 26629: 26629: template 26629: 26629: inline void 26629: __fill_a(_FIte __first, _FIte __last, const _Tp& __value) 26629: { std::__fill_a1(__first, __last, __value); } 26629: 26629: template 26629: void 26629: __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 26629: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 26629: const _Tp&); 26629: # 988 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline void 26629: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 26629: { 26629: 26629: 26629: 26629: ; 26629: 26629: std::__fill_a(__first, __last, __value); 26629: } 26629: 26629: 26629: inline constexpr int 26629: __size_to_integer(int __n) { return __n; } 26629: inline constexpr unsigned 26629: __size_to_integer(unsigned __n) { return __n; } 26629: inline constexpr long 26629: __size_to_integer(long __n) { return __n; } 26629: inline constexpr unsigned long 26629: __size_to_integer(unsigned long __n) { return __n; } 26629: inline constexpr long long 26629: __size_to_integer(long long __n) { return __n; } 26629: inline constexpr unsigned long long 26629: __size_to_integer(unsigned long long __n) { return __n; } 26629: # 1040 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: inline constexpr long long 26629: __size_to_integer(float __n) { return (long long)__n; } 26629: inline constexpr long long 26629: __size_to_integer(double __n) { return (long long)__n; } 26629: inline constexpr long long 26629: __size_to_integer(long double __n) { return (long long)__n; } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline typename 26629: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 26629: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 26629: { 26629: for (; __n > 0; --__n, (void) ++__first) 26629: *__first = __value; 26629: return __first; 26629: } 26629: 26629: template 26629: 26629: inline typename 26629: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 26629: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 26629: { 26629: const _Tp __tmp = __value; 26629: for (; __n > 0; --__n, (void) ++__first) 26629: *__first = __tmp; 26629: return __first; 26629: } 26629: 26629: template 26629: ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 26629: __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, 26629: _Size __n, const _Tp& __value, 26629: std::input_iterator_tag); 26629: 26629: template 26629: 26629: inline _OutputIterator 26629: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 26629: std::output_iterator_tag) 26629: { 26629: 26629: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 26629: 26629: return __fill_n_a1(__first, __n, __value); 26629: } 26629: 26629: template 26629: 26629: inline _OutputIterator 26629: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 26629: std::input_iterator_tag) 26629: { 26629: 26629: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 26629: 26629: return __fill_n_a1(__first, __n, __value); 26629: } 26629: 26629: template 26629: 26629: inline _OutputIterator 26629: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 26629: std::random_access_iterator_tag) 26629: { 26629: 26629: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 26629: 26629: if (__n <= 0) 26629: return __first; 26629: 26629: ; 26629: 26629: std::__fill_a(__first, __first + __n, __value); 26629: return __first + __n; 26629: } 26629: # 1140 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline _OI 26629: fill_n(_OI __first, _Size __n, const _Tp& __value) 26629: { 26629: 26629: 26629: 26629: return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, 26629: std::__iterator_category(__first)); 26629: } 26629: 26629: template 26629: struct __equal 26629: { 26629: template 26629: 26629: static bool 26629: equal(_II1 __first1, _II1 __last1, _II2 __first2) 26629: { 26629: for (; __first1 != __last1; ++__first1, (void) ++__first2) 26629: if (!(*__first1 == *__first2)) 26629: return false; 26629: return true; 26629: } 26629: }; 26629: 26629: template<> 26629: struct __equal 26629: { 26629: template 26629: 26629: static bool 26629: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 26629: { 26629: if (const size_t __len = (__last1 - __first1)) 26629: return !std::__memcmp(__first1, __first2, __len); 26629: return true; 26629: } 26629: }; 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_random_access_iter<_II>::__value, bool>::__type 26629: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 26629: _II); 26629: 26629: template 26629: bool 26629: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 26629: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 26629: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_random_access_iter<_II>::__value, bool>::__type 26629: __equal_aux1(_II, _II, 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr>); 26629: 26629: template 26629: 26629: inline bool 26629: __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) 26629: { 26629: typedef typename iterator_traits<_II1>::value_type _ValueType1; 26629: const bool __simple = ((__is_integer<_ValueType1>::__value 26629: || __is_pointer<_ValueType1>::__value) 26629: && __memcmpable<_II1, _II2>::__value); 26629: return std::__equal<__simple>::equal(__first1, __last1, __first2); 26629: } 26629: 26629: template 26629: 26629: inline bool 26629: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 26629: { 26629: return std::__equal_aux1(std::__niter_base(__first1), 26629: std::__niter_base(__last1), 26629: std::__niter_base(__first2)); 26629: } 26629: 26629: template 26629: bool 26629: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 26629: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 26629: _II2); 26629: 26629: template 26629: bool 26629: __equal_aux(_II1, _II1, 26629: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 26629: 26629: template 26629: bool 26629: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 26629: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 26629: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 26629: 26629: template 26629: struct __lc_rai 26629: { 26629: template 26629: 26629: static _II1 26629: __newlast1(_II1, _II1 __last1, _II2, _II2) 26629: { return __last1; } 26629: 26629: template 26629: 26629: static bool 26629: __cnd2(_II __first, _II __last) 26629: { return __first != __last; } 26629: }; 26629: 26629: template<> 26629: struct __lc_rai 26629: { 26629: template 26629: 26629: static _RAI1 26629: __newlast1(_RAI1 __first1, _RAI1 __last1, 26629: _RAI2 __first2, _RAI2 __last2) 26629: { 26629: const typename iterator_traits<_RAI1>::difference_type 26629: __diff1 = __last1 - __first1; 26629: const typename iterator_traits<_RAI2>::difference_type 26629: __diff2 = __last2 - __first2; 26629: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 26629: } 26629: 26629: template 26629: static bool 26629: __cnd2(_RAI, _RAI) 26629: { return true; } 26629: }; 26629: 26629: template 26629: 26629: bool 26629: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 26629: _II2 __first2, _II2 __last2, 26629: _Compare __comp) 26629: { 26629: typedef typename iterator_traits<_II1>::iterator_category _Category1; 26629: typedef typename iterator_traits<_II2>::iterator_category _Category2; 26629: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 26629: 26629: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 26629: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 26629: ++__first1, (void)++__first2) 26629: { 26629: if (__comp(__first1, __first2)) 26629: return true; 26629: if (__comp(__first2, __first1)) 26629: return false; 26629: } 26629: return __first1 == __last1 && __first2 != __last2; 26629: } 26629: 26629: template 26629: struct __lexicographical_compare 26629: { 26629: template 26629: 26629: static bool 26629: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 26629: { 26629: using __gnu_cxx::__ops::__iter_less_iter; 26629: return std::__lexicographical_compare_impl(__first1, __last1, 26629: __first2, __last2, 26629: __iter_less_iter()); 26629: } 26629: 26629: template 26629: 26629: static int 26629: __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 26629: { 26629: while (__first1 != __last1) 26629: { 26629: if (__first2 == __last2) 26629: return +1; 26629: if (*__first1 < *__first2) 26629: return -1; 26629: if (*__first2 < *__first1) 26629: return +1; 26629: ++__first1; 26629: ++__first2; 26629: } 26629: return int(__first2 == __last2) - 1; 26629: } 26629: }; 26629: 26629: template<> 26629: struct __lexicographical_compare 26629: { 26629: template 26629: 26629: static bool 26629: __lc(const _Tp* __first1, const _Tp* __last1, 26629: const _Up* __first2, const _Up* __last2) 26629: { return __3way(__first1, __last1, __first2, __last2) < 0; } 26629: 26629: template 26629: 26629: static ptrdiff_t 26629: __3way(const _Tp* __first1, const _Tp* __last1, 26629: const _Up* __first2, const _Up* __last2) 26629: { 26629: const size_t __len1 = __last1 - __first1; 26629: const size_t __len2 = __last2 - __first2; 26629: if (const size_t __len = std::min(__len1, __len2)) 26629: if (int __result = std::__memcmp(__first1, __first2, __len)) 26629: return __result; 26629: return ptrdiff_t(__len1 - __len2); 26629: } 26629: }; 26629: 26629: template 26629: 26629: inline bool 26629: __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, 26629: _II2 __first2, _II2 __last2) 26629: { 26629: typedef typename iterator_traits<_II1>::value_type _ValueType1; 26629: typedef typename iterator_traits<_II2>::value_type _ValueType2; 26629: const bool __simple = 26629: (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value 26629: && __is_pointer<_II1>::__value 26629: && __is_pointer<_II2>::__value 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ); 26629: 26629: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 26629: __first2, __last2); 26629: } 26629: 26629: template 26629: bool 26629: __lexicographical_compare_aux1( 26629: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 26629: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 26629: _Tp2*, _Tp2*); 26629: 26629: template 26629: bool 26629: __lexicographical_compare_aux1(_Tp1*, _Tp1*, 26629: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 26629: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 26629: 26629: template 26629: bool 26629: __lexicographical_compare_aux1( 26629: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 26629: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 26629: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 26629: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 26629: 26629: template 26629: 26629: inline bool 26629: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 26629: _II2 __first2, _II2 __last2) 26629: { 26629: return std::__lexicographical_compare_aux1(std::__niter_base(__first1), 26629: std::__niter_base(__last1), 26629: std::__niter_base(__first2), 26629: std::__niter_base(__last2)); 26629: } 26629: 26629: template 26629: bool 26629: __lexicographical_compare_aux( 26629: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 26629: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 26629: _II2, _II2); 26629: 26629: template 26629: bool 26629: __lexicographical_compare_aux( 26629: _II1, _II1, 26629: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 26629: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 26629: 26629: template 26629: bool 26629: __lexicographical_compare_aux( 26629: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 26629: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 26629: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 26629: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val, _Compare __comp) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::difference_type 26629: _DistanceType; 26629: 26629: _DistanceType __len = std::distance(__first, __last); 26629: 26629: while (__len > 0) 26629: { 26629: _DistanceType __half = __len >> 1; 26629: _ForwardIterator __middle = __first; 26629: std::advance(__middle, __half); 26629: if (__comp(__middle, __val)) 26629: { 26629: __first = __middle; 26629: ++__first; 26629: __len = __len - __half - 1; 26629: } 26629: else 26629: __len = __half; 26629: } 26629: return __first; 26629: } 26629: # 1486 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__lower_bound(__first, __last, __val, 26629: __gnu_cxx::__ops::__iter_less_val()); 26629: } 26629: 26629: 26629: 26629: inline constexpr int 26629: __lg(int __n) 26629: { return (int)sizeof(int) * 8 - 1 - __builtin_clz(__n); } 26629: 26629: inline constexpr unsigned 26629: __lg(unsigned __n) 26629: { return (int)sizeof(int) * 8 - 1 - __builtin_clz(__n); } 26629: 26629: inline constexpr long 26629: __lg(long __n) 26629: { return (int)sizeof(long) * 8 - 1 - __builtin_clzl(__n); } 26629: 26629: inline constexpr unsigned long 26629: __lg(unsigned long __n) 26629: { return (int)sizeof(long) * 8 - 1 - __builtin_clzl(__n); } 26629: 26629: inline constexpr long long 26629: __lg(long long __n) 26629: { return (int)sizeof(long long) * 8 - 1 - __builtin_clzll(__n); } 26629: 26629: inline constexpr unsigned long long 26629: __lg(unsigned long long __n) 26629: { return (int)sizeof(long long) * 8 - 1 - __builtin_clzll(__n); } 26629: 26629: 26629: # 1542 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline bool 26629: equal(_II1 __first1, _II1 __last1, _II2 __first2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__equal_aux(__first1, __last1, __first2); 26629: } 26629: # 1573 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline bool 26629: equal(_IIter1 __first1, _IIter1 __last1, 26629: _IIter2 __first2, _BinaryPredicate __binary_pred) 26629: { 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first1 != __last1; ++__first1, (void)++__first2) 26629: if (!bool(__binary_pred(*__first1, *__first2))) 26629: return false; 26629: return true; 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: inline bool 26629: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 26629: { 26629: using _RATag = random_access_iterator_tag; 26629: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 26629: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 26629: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 26629: if (_RAIters()) 26629: { 26629: auto __d1 = std::distance(__first1, __last1); 26629: auto __d2 = std::distance(__first2, __last2); 26629: if (__d1 != __d2) 26629: return false; 26629: return std::equal(__first1, __last1, __first2); 26629: } 26629: 26629: for (; __first1 != __last1 && __first2 != __last2; 26629: ++__first1, (void)++__first2) 26629: if (!(*__first1 == *__first2)) 26629: return false; 26629: return __first1 == __last1 && __first2 == __last2; 26629: } 26629: 26629: 26629: template 26629: 26629: inline bool 26629: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 26629: _BinaryPredicate __binary_pred) 26629: { 26629: using _RATag = random_access_iterator_tag; 26629: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 26629: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 26629: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 26629: if (_RAIters()) 26629: { 26629: auto __d1 = std::distance(__first1, __last1); 26629: auto __d2 = std::distance(__first2, __last2); 26629: if (__d1 != __d2) 26629: return false; 26629: return std::equal(__first1, __last1, __first2, 26629: __binary_pred); 26629: } 26629: 26629: for (; __first1 != __last1 && __first2 != __last2; 26629: ++__first1, (void)++__first2) 26629: if (!bool(__binary_pred(*__first1, *__first2))) 26629: return false; 26629: return __first1 == __last1 && __first2 == __last2; 26629: } 26629: # 1663 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline bool 26629: equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__equal4(__first1, __last1, __first2, __last2); 26629: } 26629: # 1696 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline bool 26629: equal(_IIter1 __first1, _IIter1 __last1, 26629: _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) 26629: { 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__equal4(__first1, __last1, __first2, __last2, 26629: __binary_pred); 26629: } 26629: # 1728 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline bool 26629: lexicographical_compare(_II1 __first1, _II1 __last1, 26629: _II2 __first2, _II2 __last2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__lexicographical_compare_aux(__first1, __last1, 26629: __first2, __last2); 26629: } 26629: # 1763 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline bool 26629: lexicographical_compare(_II1 __first1, _II1 __last1, 26629: _II2 __first2, _II2 __last2, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__lexicographical_compare_impl 26629: (__first1, __last1, __first2, __last2, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: # 1875 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: pair<_InputIterator1, _InputIterator2> 26629: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 26629: { 26629: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 26629: { 26629: ++__first1; 26629: ++__first2; 26629: } 26629: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 26629: } 26629: # 1903 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline pair<_InputIterator1, _InputIterator2> 26629: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__mismatch(__first1, __last1, __first2, 26629: __gnu_cxx::__ops::__iter_equal_to_iter()); 26629: } 26629: # 1937 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline pair<_InputIterator1, _InputIterator2> 26629: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 26629: { 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__mismatch(__first1, __last1, __first2, 26629: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: pair<_InputIterator1, _InputIterator2> 26629: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _BinaryPredicate __binary_pred) 26629: { 26629: while (__first1 != __last1 && __first2 != __last2 26629: && __binary_pred(__first1, __first2)) 26629: { 26629: ++__first1; 26629: ++__first2; 26629: } 26629: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 26629: } 26629: # 1986 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline pair<_InputIterator1, _InputIterator2> 26629: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__mismatch(__first1, __last1, __first2, __last2, 26629: __gnu_cxx::__ops::__iter_equal_to_iter()); 26629: } 26629: # 2022 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline pair<_InputIterator1, _InputIterator2> 26629: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _BinaryPredicate __binary_pred) 26629: { 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__mismatch(__first1, __last1, __first2, __last2, 26629: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline _InputIterator 26629: __find_if(_InputIterator __first, _InputIterator __last, 26629: _Predicate __pred, input_iterator_tag) 26629: { 26629: while (__first != __last && !__pred(__first)) 26629: ++__first; 26629: return __first; 26629: } 26629: 26629: 26629: template 26629: 26629: _RandomAccessIterator 26629: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Predicate __pred, random_access_iterator_tag) 26629: { 26629: typename iterator_traits<_RandomAccessIterator>::difference_type 26629: __trip_count = (__last - __first) >> 2; 26629: 26629: for (; __trip_count > 0; --__trip_count) 26629: { 26629: if (__pred(__first)) 26629: return __first; 26629: ++__first; 26629: 26629: if (__pred(__first)) 26629: return __first; 26629: ++__first; 26629: 26629: if (__pred(__first)) 26629: return __first; 26629: ++__first; 26629: 26629: if (__pred(__first)) 26629: return __first; 26629: ++__first; 26629: } 26629: 26629: switch (__last - __first) 26629: { 26629: case 3: 26629: if (__pred(__first)) 26629: return __first; 26629: ++__first; 26629: 26629: case 2: 26629: if (__pred(__first)) 26629: return __first; 26629: ++__first; 26629: 26629: case 1: 26629: if (__pred(__first)) 26629: return __first; 26629: ++__first; 26629: 26629: case 0: 26629: default: 26629: return __last; 26629: } 26629: } 26629: 26629: template 26629: 26629: inline _Iterator 26629: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 26629: { 26629: return __find_if(__first, __last, __pred, 26629: std::__iterator_category(__first)); 26629: } 26629: 26629: template 26629: 26629: typename iterator_traits<_InputIterator>::difference_type 26629: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 26629: { 26629: typename iterator_traits<_InputIterator>::difference_type __n = 0; 26629: for (; __first != __last; ++__first) 26629: if (__pred(__first)) 26629: ++__n; 26629: return __n; 26629: } 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 26629: _Predicate __pred) 26629: { 26629: __first = std::__find_if(__first, __last, __pred); 26629: if (__first == __last) 26629: return __first; 26629: _ForwardIterator __result = __first; 26629: ++__first; 26629: for (; __first != __last; ++__first) 26629: if (!__pred(__first)) 26629: { 26629: *__result = std::move(*__first); 26629: ++__result; 26629: } 26629: return __result; 26629: } 26629: 26629: 26629: template 26629: 26629: bool 26629: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _BinaryPredicate __pred) 26629: { 26629: 26629: 26629: for (; __first1 != __last1; ++__first1, (void)++__first2) 26629: if (!__pred(__first1, __first2)) 26629: break; 26629: 26629: if (__first1 == __last1) 26629: return true; 26629: 26629: 26629: 26629: _ForwardIterator2 __last2 = __first2; 26629: std::advance(__last2, std::distance(__first1, __last1)); 26629: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 26629: { 26629: if (__scan != std::__find_if(__first1, __scan, 26629: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 26629: continue; 26629: 26629: auto __matches 26629: = std::__count_if(__first2, __last2, 26629: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 26629: if (0 == __matches || 26629: std::__count_if(__scan, __last1, 26629: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 26629: != __matches) 26629: return false; 26629: } 26629: return true; 26629: } 26629: # 2199 "/usr/include/c++/12/bits/stl_algobase.h" 3 26629: template 26629: 26629: inline bool 26629: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__is_permutation(__first1, __last1, __first2, 26629: __gnu_cxx::__ops::__iter_equal_to_iter()); 26629: } 26629: 26629: 26629: 26629: } 26629: # 61 "/usr/include/c++/12/deque" 2 3 26629: # 1 "/usr/include/c++/12/bits/allocator.h" 1 3 26629: # 46 "/usr/include/c++/12/bits/allocator.h" 3 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++allocator.h" 1 3 26629: # 33 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++allocator.h" 3 26629: # 1 "/usr/include/c++/12/bits/new_allocator.h" 1 3 26629: # 34 "/usr/include/c++/12/bits/new_allocator.h" 3 26629: # 1 "/usr/include/c++/12/new" 1 3 26629: # 38 "/usr/include/c++/12/new" 3 26629: 26629: # 39 "/usr/include/c++/12/new" 3 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/exception.h" 1 3 26629: # 34 "/usr/include/c++/12/bits/exception.h" 3 26629: 26629: # 35 "/usr/include/c++/12/bits/exception.h" 3 26629: 26629: #pragma GCC visibility push(default) 26629: 26629: 26629: 26629: extern "C++" { 26629: 26629: namespace std 26629: { 26629: # 61 "/usr/include/c++/12/bits/exception.h" 3 26629: class exception 26629: { 26629: public: 26629: exception() noexcept { } 26629: virtual ~exception() noexcept; 26629: 26629: exception(const exception&) = default; 26629: exception& operator=(const exception&) = default; 26629: exception(exception&&) = default; 26629: exception& operator=(exception&&) = default; 26629: 26629: 26629: 26629: 26629: virtual const char* 26629: what() const noexcept; 26629: }; 26629: 26629: 26629: 26629: } 26629: 26629: } 26629: 26629: #pragma GCC visibility pop 26629: # 42 "/usr/include/c++/12/new" 2 3 26629: 26629: #pragma GCC visibility push(default) 26629: 26629: extern "C++" { 26629: 26629: namespace std 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: class bad_alloc : public exception 26629: { 26629: public: 26629: bad_alloc() throw() { } 26629: 26629: 26629: bad_alloc(const bad_alloc&) = default; 26629: bad_alloc& operator=(const bad_alloc&) = default; 26629: 26629: 26629: 26629: 26629: virtual ~bad_alloc() throw(); 26629: 26629: 26629: virtual const char* what() const throw(); 26629: }; 26629: 26629: 26629: class bad_array_new_length : public bad_alloc 26629: { 26629: public: 26629: bad_array_new_length() throw() { } 26629: 26629: 26629: 26629: virtual ~bad_array_new_length() throw(); 26629: 26629: 26629: virtual const char* what() const throw(); 26629: }; 26629: 26629: 26629: 26629: enum class align_val_t: size_t {}; 26629: 26629: 26629: struct nothrow_t 26629: { 26629: 26629: explicit nothrow_t() = default; 26629: 26629: }; 26629: 26629: extern const nothrow_t nothrow; 26629: 26629: 26629: 26629: typedef void (*new_handler)(); 26629: 26629: 26629: 26629: new_handler set_new_handler(new_handler) throw(); 26629: 26629: 26629: 26629: new_handler get_new_handler() noexcept; 26629: 26629: } 26629: # 126 "/usr/include/c++/12/new" 3 26629: [[__nodiscard__]] void* operator new(std::size_t) 26629: __attribute__((__externally_visible__)); 26629: [[__nodiscard__]] void* operator new[](std::size_t) 26629: __attribute__((__externally_visible__)); 26629: void operator delete(void*) noexcept 26629: __attribute__((__externally_visible__)); 26629: void operator delete[](void*) noexcept 26629: __attribute__((__externally_visible__)); 26629: 26629: void operator delete(void*, std::size_t) noexcept 26629: __attribute__((__externally_visible__)); 26629: void operator delete[](void*, std::size_t) noexcept 26629: __attribute__((__externally_visible__)); 26629: 26629: [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept 26629: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 26629: [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept 26629: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 26629: void operator delete(void*, const std::nothrow_t&) noexcept 26629: __attribute__((__externally_visible__)); 26629: void operator delete[](void*, const std::nothrow_t&) noexcept 26629: __attribute__((__externally_visible__)); 26629: 26629: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) 26629: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 26629: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) 26629: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 26629: void operator delete(void*, std::align_val_t) 26629: noexcept __attribute__((__externally_visible__)); 26629: void operator delete(void*, std::align_val_t, const std::nothrow_t&) 26629: noexcept __attribute__((__externally_visible__)); 26629: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) 26629: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 26629: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) 26629: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 26629: void operator delete[](void*, std::align_val_t) 26629: noexcept __attribute__((__externally_visible__)); 26629: void operator delete[](void*, std::align_val_t, const std::nothrow_t&) 26629: noexcept __attribute__((__externally_visible__)); 26629: 26629: void operator delete(void*, std::size_t, std::align_val_t) 26629: noexcept __attribute__((__externally_visible__)); 26629: void operator delete[](void*, std::size_t, std::align_val_t) 26629: noexcept __attribute__((__externally_visible__)); 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept 26629: { return __p; } 26629: [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept 26629: { return __p; } 26629: 26629: 26629: inline void operator delete (void*, void*) noexcept { } 26629: inline void operator delete[](void*, void*) noexcept { } 26629: 26629: } 26629: 26629: 26629: namespace std 26629: { 26629: 26629: 26629: 26629: template 26629: [[nodiscard]] constexpr _Tp* 26629: launder(_Tp* __p) noexcept 26629: { return __builtin_launder(__p); } 26629: 26629: 26629: 26629: 26629: template 26629: void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; 26629: template 26629: void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; 26629: 26629: void launder(void*) = delete; 26629: void launder(const void*) = delete; 26629: void launder(volatile void*) = delete; 26629: void launder(const volatile void*) = delete; 26629: 26629: 26629: 26629: 26629: inline constexpr size_t hardware_destructive_interference_size = 64; 26629: inline constexpr size_t hardware_constructive_interference_size = 64; 26629: 26629: } 26629: # 236 "/usr/include/c++/12/new" 3 26629: #pragma GCC visibility pop 26629: # 35 "/usr/include/c++/12/bits/new_allocator.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 55 "/usr/include/c++/12/bits/new_allocator.h" 3 26629: template 26629: class __new_allocator 26629: { 26629: public: 26629: typedef _Tp value_type; 26629: typedef std::size_t size_type; 26629: typedef std::ptrdiff_t difference_type; 26629: 26629: typedef _Tp* pointer; 26629: typedef const _Tp* const_pointer; 26629: typedef _Tp& reference; 26629: typedef const _Tp& const_reference; 26629: 26629: template 26629: struct rebind 26629: { typedef __new_allocator<_Tp1> other; }; 26629: 26629: 26629: 26629: 26629: 26629: typedef std::true_type propagate_on_container_move_assignment; 26629: 26629: 26629: 26629: __new_allocator() noexcept { } 26629: 26629: 26629: __new_allocator(const __new_allocator&) noexcept { } 26629: 26629: template 26629: 26629: __new_allocator(const __new_allocator<_Tp1>&) noexcept { } 26629: 26629: 26629: ~__new_allocator() noexcept { } 26629: 26629: pointer 26629: address(reference __x) const noexcept 26629: { return std::__addressof(__x); } 26629: 26629: const_pointer 26629: address(const_reference __x) const noexcept 26629: { return std::__addressof(__x); } 26629: # 111 "/usr/include/c++/12/bits/new_allocator.h" 3 26629: [[__nodiscard__]] _Tp* 26629: allocate(size_type __n, const void* = static_cast(0)) 26629: { 26629: 26629: 26629: 26629: static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); 26629: 26629: 26629: if (__builtin_expect(__n > this->_M_max_size(), false)) 26629: { 26629: 26629: 26629: if (__n > (std::size_t(-1) / sizeof(_Tp))) 26629: std::__throw_bad_array_new_length(); 26629: std::__throw_bad_alloc(); 26629: } 26629: 26629: 26629: if (alignof(_Tp) > 8) 26629: { 26629: std::align_val_t __al = std::align_val_t(alignof(_Tp)); 26629: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), 26629: __al)); 26629: } 26629: 26629: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 26629: } 26629: 26629: 26629: void 26629: deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: if (alignof(_Tp) > 8) 26629: { 26629: ::operator delete((__p), (__n) * sizeof(_Tp), 26629: std::align_val_t(alignof(_Tp))); 26629: return; 26629: } 26629: 26629: ::operator delete((__p), (__n) * sizeof(_Tp)); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return _M_max_size(); } 26629: 26629: 26629: template 26629: void 26629: construct(_Up* __p, _Args&&... __args) 26629: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 26629: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 26629: 26629: template 26629: void 26629: destroy(_Up* __p) 26629: noexcept(std::is_nothrow_destructible<_Up>::value) 26629: { __p->~_Up(); } 26629: # 194 "/usr/include/c++/12/bits/new_allocator.h" 3 26629: template 26629: friend bool 26629: operator==(const __new_allocator&, const __new_allocator<_Up>&) 26629: noexcept 26629: { return true; } 26629: 26629: 26629: template 26629: friend bool 26629: operator!=(const __new_allocator&, const __new_allocator<_Up>&) 26629: noexcept 26629: { return false; } 26629: 26629: 26629: private: 26629: constexpr size_type 26629: _M_max_size() const noexcept 26629: { 26629: 26629: return std::size_t(0x7fffffff) / sizeof(_Tp); 26629: 26629: 26629: 26629: } 26629: }; 26629: 26629: 26629: } 26629: # 34 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++allocator.h" 2 3 26629: 26629: 26629: namespace std 26629: { 26629: # 46 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++allocator.h" 3 26629: template 26629: using __allocator_base = __new_allocator<_Tp>; 26629: } 26629: # 47 "/usr/include/c++/12/bits/allocator.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/memoryfwd.h" 1 3 26629: # 46 "/usr/include/c++/12/bits/memoryfwd.h" 3 26629: 26629: # 47 "/usr/include/c++/12/bits/memoryfwd.h" 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 63 "/usr/include/c++/12/bits/memoryfwd.h" 3 26629: template 26629: class allocator; 26629: 26629: template<> 26629: class allocator; 26629: 26629: 26629: 26629: template 26629: struct uses_allocator; 26629: 26629: template 26629: struct allocator_traits; 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 48 "/usr/include/c++/12/bits/allocator.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 71 "/usr/include/c++/12/bits/allocator.h" 3 26629: template<> 26629: class allocator 26629: { 26629: public: 26629: typedef void value_type; 26629: typedef size_t size_type; 26629: typedef ptrdiff_t difference_type; 26629: 26629: 26629: 26629: typedef void* pointer; 26629: typedef const void* const_pointer; 26629: 26629: template 26629: struct rebind 26629: { typedef allocator<_Tp1> other; }; 26629: 26629: 26629: 26629: 26629: 26629: using propagate_on_container_move_assignment = true_type; 26629: 26629: using is_always_equal 26629: 26629: = true_type; 26629: # 113 "/usr/include/c++/12/bits/allocator.h" 3 26629: }; 26629: # 123 "/usr/include/c++/12/bits/allocator.h" 3 26629: template 26629: class allocator : public __allocator_base<_Tp> 26629: { 26629: public: 26629: typedef _Tp value_type; 26629: typedef size_t size_type; 26629: typedef ptrdiff_t difference_type; 26629: 26629: 26629: 26629: typedef _Tp* pointer; 26629: typedef const _Tp* const_pointer; 26629: typedef _Tp& reference; 26629: typedef const _Tp& const_reference; 26629: 26629: template 26629: struct rebind 26629: { typedef allocator<_Tp1> other; }; 26629: 26629: 26629: 26629: 26629: 26629: using propagate_on_container_move_assignment = true_type; 26629: 26629: using is_always_equal 26629: 26629: = true_type; 26629: 26629: 26629: 26629: 26629: 26629: allocator() noexcept { } 26629: 26629: 26629: allocator(const allocator& __a) noexcept 26629: : __allocator_base<_Tp>(__a) { } 26629: 26629: 26629: 26629: allocator& operator=(const allocator&) = default; 26629: 26629: 26629: template 26629: 26629: allocator(const allocator<_Tp1>&) noexcept { } 26629: 26629: 26629: 26629: 26629: ~allocator() noexcept { } 26629: # 204 "/usr/include/c++/12/bits/allocator.h" 3 26629: friend bool 26629: operator==(const allocator&, const allocator&) noexcept 26629: { return true; } 26629: 26629: 26629: friend bool 26629: operator!=(const allocator&, const allocator&) noexcept 26629: { return false; } 26629: 26629: 26629: 26629: }; 26629: 26629: template 26629: inline bool 26629: operator==(const allocator<_T1>&, const allocator<_T2>&) 26629: noexcept 26629: { return true; } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const allocator<_T1>&, const allocator<_T2>&) 26629: noexcept 26629: { return false; } 26629: 26629: 26629: 26629: 26629: template 26629: class allocator 26629: { 26629: public: 26629: typedef _Tp value_type; 26629: template allocator(const allocator<_Up>&) { } 26629: }; 26629: 26629: template 26629: class allocator 26629: { 26629: public: 26629: typedef _Tp value_type; 26629: template allocator(const allocator<_Up>&) { } 26629: }; 26629: 26629: template 26629: class allocator 26629: { 26629: public: 26629: typedef _Tp value_type; 26629: template allocator(const allocator<_Up>&) { } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern template class allocator; 26629: extern template class allocator; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __alloc_swap 26629: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 26629: 26629: template 26629: struct __alloc_swap<_Alloc, false> 26629: { 26629: static void 26629: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 26629: { 26629: 26629: if (__one != __two) 26629: swap(__one, __two); 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct __alloc_neq 26629: { 26629: static bool 26629: _S_do_it(const _Alloc&, const _Alloc&) 26629: { return false; } 26629: }; 26629: 26629: template 26629: struct __alloc_neq<_Alloc, false> 26629: { 26629: static bool 26629: _S_do_it(const _Alloc& __one, const _Alloc& __two) 26629: { return __one != __two; } 26629: }; 26629: 26629: 26629: template, 26629: is_nothrow_move_constructible>::value> 26629: struct __shrink_to_fit_aux 26629: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 26629: 26629: template 26629: struct __shrink_to_fit_aux<_Tp, true> 26629: { 26629: 26629: static bool 26629: _S_do_it(_Tp& __c) noexcept 26629: { 26629: 26629: try 26629: { 26629: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 26629: __make_move_if_noexcept_iterator(__c.end()), 26629: __c.get_allocator()).swap(__c); 26629: return true; 26629: } 26629: catch(...) 26629: { return false; } 26629: 26629: 26629: 26629: } 26629: }; 26629: 26629: 26629: 26629: } 26629: # 62 "/usr/include/c++/12/deque" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_construct.h" 1 3 26629: # 73 "/usr/include/c++/12/bits/stl_construct.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: inline void 26629: destroy_at(_Tp* __location) 26629: { 26629: if constexpr (201703L > 201703L && is_array_v<_Tp>) 26629: { 26629: for (auto& __x : *__location) 26629: std::destroy_at(std::__addressof(__x)); 26629: } 26629: else 26629: __location->~_Tp(); 26629: } 26629: # 106 "/usr/include/c++/12/bits/stl_construct.h" 3 26629: template 26629: 26629: inline void 26629: _Construct(_Tp* __p, _Args&&... __args) 26629: { 26629: # 119 "/usr/include/c++/12/bits/stl_construct.h" 3 26629: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 26629: } 26629: # 132 "/usr/include/c++/12/bits/stl_construct.h" 3 26629: template 26629: inline void 26629: _Construct_novalue(_T1* __p) 26629: { ::new((void*)__p) _T1; } 26629: 26629: template 26629: void 26629: _Destroy(_ForwardIterator __first, _ForwardIterator __last); 26629: 26629: 26629: 26629: 26629: template 26629: constexpr inline void 26629: _Destroy(_Tp* __pointer) 26629: { 26629: 26629: 26629: 26629: __pointer->~_Tp(); 26629: 26629: } 26629: 26629: template 26629: struct _Destroy_aux 26629: { 26629: template 26629: static void 26629: __destroy(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: for (; __first != __last; ++__first) 26629: std::_Destroy(std::__addressof(*__first)); 26629: } 26629: }; 26629: 26629: template<> 26629: struct _Destroy_aux 26629: { 26629: template 26629: static void 26629: __destroy(_ForwardIterator, _ForwardIterator) { } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline void 26629: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _Value_type; 26629: 26629: 26629: static_assert(is_destructible<_Value_type>::value, 26629: "value type is destructible"); 26629: 26629: 26629: 26629: 26629: 26629: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 26629: __destroy(__first, __last); 26629: } 26629: 26629: template 26629: struct _Destroy_n_aux 26629: { 26629: template 26629: static _ForwardIterator 26629: __destroy_n(_ForwardIterator __first, _Size __count) 26629: { 26629: for (; __count > 0; (void)++__first, --__count) 26629: std::_Destroy(std::__addressof(*__first)); 26629: return __first; 26629: } 26629: }; 26629: 26629: template<> 26629: struct _Destroy_n_aux 26629: { 26629: template 26629: static _ForwardIterator 26629: __destroy_n(_ForwardIterator __first, _Size __count) 26629: { 26629: std::advance(__first, __count); 26629: return __first; 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline _ForwardIterator 26629: _Destroy_n(_ForwardIterator __first, _Size __count) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _Value_type; 26629: 26629: 26629: static_assert(is_destructible<_Value_type>::value, 26629: "value type is destructible"); 26629: 26629: 26629: 26629: 26629: 26629: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 26629: __destroy_n(__first, __count); 26629: } 26629: 26629: 26629: template 26629: inline void 26629: destroy(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: std::_Destroy(__first, __last); 26629: } 26629: 26629: template 26629: inline _ForwardIterator 26629: destroy_n(_ForwardIterator __first, _Size __count) 26629: { 26629: return std::_Destroy_n(__first, __count); 26629: } 26629: 26629: 26629: 26629: } 26629: # 63 "/usr/include/c++/12/deque" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_uninitialized.h" 1 3 26629: # 64 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: # 1 "/usr/include/c++/12/ext/alloc_traits.h" 1 3 26629: # 32 "/usr/include/c++/12/ext/alloc_traits.h" 3 26629: 26629: # 33 "/usr/include/c++/12/ext/alloc_traits.h" 3 26629: 26629: # 1 "/usr/include/c++/12/bits/alloc_traits.h" 1 3 26629: # 41 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct __allocator_traits_base 26629: { 26629: template 26629: struct __rebind : __replace_first_arg<_Tp, _Up> { }; 26629: 26629: template 26629: struct __rebind<_Tp, _Up, 26629: __void_t::other>> 26629: { using type = typename _Tp::template rebind<_Up>::other; }; 26629: 26629: protected: 26629: template 26629: using __pointer = typename _Tp::pointer; 26629: template 26629: using __c_pointer = typename _Tp::const_pointer; 26629: template 26629: using __v_pointer = typename _Tp::void_pointer; 26629: template 26629: using __cv_pointer = typename _Tp::const_void_pointer; 26629: template 26629: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 26629: template 26629: using __pocma = typename _Tp::propagate_on_container_move_assignment; 26629: template 26629: using __pocs = typename _Tp::propagate_on_container_swap; 26629: template 26629: using __equal = typename _Tp::is_always_equal; 26629: }; 26629: 26629: template 26629: using __alloc_rebind 26629: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 26629: # 89 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: struct allocator_traits : __allocator_traits_base 26629: { 26629: 26629: typedef _Alloc allocator_type; 26629: 26629: typedef typename _Alloc::value_type value_type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: using pointer = __detected_or_t; 26629: 26629: private: 26629: 26629: template class _Func, typename _Tp, typename = void> 26629: struct _Ptr 26629: { 26629: using type = typename pointer_traits::template rebind<_Tp>; 26629: }; 26629: 26629: template class _Func, typename _Tp> 26629: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 26629: { 26629: using type = _Func<_Alloc>; 26629: }; 26629: 26629: 26629: template 26629: struct _Diff 26629: { using type = typename pointer_traits<_PtrT>::difference_type; }; 26629: 26629: template 26629: struct _Diff<_A2, _PtrT, __void_t> 26629: { using type = typename _A2::difference_type; }; 26629: 26629: 26629: template 26629: struct _Size : make_unsigned<_DiffT> { }; 26629: 26629: template 26629: struct _Size<_A2, _DiffT, __void_t> 26629: { using type = typename _A2::size_type; }; 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: 26629: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: using void_pointer = typename _Ptr<__v_pointer, void>::type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: using difference_type = typename _Diff<_Alloc, pointer>::type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: using size_type = typename _Size<_Alloc, difference_type>::type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: using propagate_on_container_copy_assignment 26629: = __detected_or_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: using propagate_on_container_move_assignment 26629: = __detected_or_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: using propagate_on_container_swap 26629: = __detected_or_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: using is_always_equal 26629: = __detected_or_t::type, __equal, _Alloc>; 26629: 26629: template 26629: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 26629: template 26629: using rebind_traits = allocator_traits>; 26629: 26629: private: 26629: template 26629: static constexpr auto 26629: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 26629: -> decltype(__a.allocate(__n, __hint)) 26629: { return __a.allocate(__n, __hint); } 26629: 26629: template 26629: static constexpr pointer 26629: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 26629: { return __a.allocate(__n); } 26629: 26629: template 26629: struct __construct_helper 26629: { 26629: template()->construct( 26629: std::declval<_Tp*>(), std::declval<_Args>()...))> 26629: static true_type __test(int); 26629: 26629: template 26629: static false_type __test(...); 26629: 26629: using type = decltype(__test<_Alloc>(0)); 26629: }; 26629: 26629: template 26629: using __has_construct 26629: = typename __construct_helper<_Tp, _Args...>::type; 26629: 26629: template 26629: static constexpr _Require<__has_construct<_Tp, _Args...>> 26629: _S_construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 26629: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 26629: { __a.construct(__p, std::forward<_Args>(__args)...); } 26629: 26629: template 26629: static constexpr 26629: _Require<__and_<__not_<__has_construct<_Tp, _Args...>>, 26629: is_constructible<_Tp, _Args...>>> 26629: _S_construct(_Alloc&, _Tp* __p, _Args&&... __args) 26629: noexcept(std::is_nothrow_constructible<_Tp, _Args...>::value) 26629: { 26629: 26629: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 26629: 26629: 26629: 26629: } 26629: 26629: template 26629: static constexpr auto 26629: _S_destroy(_Alloc2& __a, _Tp* __p, int) 26629: noexcept(noexcept(__a.destroy(__p))) 26629: -> decltype(__a.destroy(__p)) 26629: { __a.destroy(__p); } 26629: 26629: template 26629: static constexpr void 26629: _S_destroy(_Alloc2&, _Tp* __p, ...) 26629: noexcept(std::is_nothrow_destructible<_Tp>::value) 26629: { std::_Destroy(__p); } 26629: 26629: template 26629: static constexpr auto 26629: _S_max_size(_Alloc2& __a, int) 26629: -> decltype(__a.max_size()) 26629: { return __a.max_size(); } 26629: 26629: template 26629: static constexpr size_type 26629: _S_max_size(_Alloc2&, ...) 26629: { 26629: 26629: 26629: return __gnu_cxx::__numeric_traits::__max 26629: / sizeof(value_type); 26629: } 26629: 26629: template 26629: static constexpr auto 26629: _S_select(_Alloc2& __a, int) 26629: -> decltype(__a.select_on_container_copy_construction()) 26629: { return __a.select_on_container_copy_construction(); } 26629: 26629: template 26629: static constexpr _Alloc2 26629: _S_select(_Alloc2& __a, ...) 26629: { return __a; } 26629: 26629: public: 26629: # 316 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: [[__nodiscard__]] static pointer 26629: allocate(_Alloc& __a, size_type __n) 26629: { return __a.allocate(__n); } 26629: # 331 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: [[__nodiscard__]] static pointer 26629: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 26629: { return _S_allocate(__a, __n, __hint, 0); } 26629: # 343 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: static void 26629: deallocate(_Alloc& __a, pointer __p, size_type __n) 26629: { __a.deallocate(__p, __n); } 26629: # 358 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: static auto 26629: construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 26629: noexcept(noexcept(_S_construct(__a, __p, 26629: std::forward<_Args>(__args)...))) 26629: -> decltype(_S_construct(__a, __p, std::forward<_Args>(__args)...)) 26629: { _S_construct(__a, __p, std::forward<_Args>(__args)...); } 26629: # 374 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: static void 26629: destroy(_Alloc& __a, _Tp* __p) 26629: noexcept(noexcept(_S_destroy(__a, __p, 0))) 26629: { _S_destroy(__a, __p, 0); } 26629: # 388 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: static size_type 26629: max_size(const _Alloc& __a) noexcept 26629: { return _S_max_size(__a, 0); } 26629: # 400 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: static _Alloc 26629: select_on_container_copy_construction(const _Alloc& __rhs) 26629: { return _S_select(__rhs, 0); } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct allocator_traits> 26629: { 26629: 26629: using allocator_type = allocator<_Tp>; 26629: 26629: 26629: using value_type = _Tp; 26629: 26629: 26629: using pointer = _Tp*; 26629: 26629: 26629: using const_pointer = const _Tp*; 26629: 26629: 26629: using void_pointer = void*; 26629: 26629: 26629: using const_void_pointer = const void*; 26629: 26629: 26629: using difference_type = std::ptrdiff_t; 26629: 26629: 26629: using size_type = std::size_t; 26629: 26629: 26629: using propagate_on_container_copy_assignment = false_type; 26629: 26629: 26629: using propagate_on_container_move_assignment = true_type; 26629: 26629: 26629: using propagate_on_container_swap = false_type; 26629: 26629: 26629: using is_always_equal = true_type; 26629: 26629: template 26629: using rebind_alloc = allocator<_Up>; 26629: 26629: template 26629: using rebind_traits = allocator_traits>; 26629: # 462 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: [[__nodiscard__]] static pointer 26629: allocate(allocator_type& __a, size_type __n) 26629: { return __a.allocate(__n); } 26629: # 476 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: [[__nodiscard__]] static pointer 26629: allocate(allocator_type& __a, size_type __n, const_void_pointer __hint) 26629: { 26629: 26629: return __a.allocate(__n, __hint); 26629: 26629: 26629: 26629: } 26629: # 494 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: static void 26629: deallocate(allocator_type& __a, pointer __p, size_type __n) 26629: { __a.deallocate(__p, __n); } 26629: # 509 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: static void 26629: construct(allocator_type& __a __attribute__((__unused__)), _Up* __p, 26629: _Args&&... __args) 26629: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 26629: { 26629: 26629: __a.construct(__p, std::forward<_Args>(__args)...); 26629: 26629: 26629: 26629: } 26629: # 529 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: static void 26629: destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) 26629: noexcept(is_nothrow_destructible<_Up>::value) 26629: { 26629: 26629: __a.destroy(__p); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: static size_type 26629: max_size(const allocator_type& __a __attribute__((__unused__))) noexcept 26629: { 26629: 26629: return __a.max_size(); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: static allocator_type 26629: select_on_container_copy_construction(const allocator_type& __rhs) 26629: { return __rhs; } 26629: }; 26629: 26629: 26629: template<> 26629: struct allocator_traits> 26629: { 26629: 26629: using allocator_type = allocator; 26629: 26629: 26629: using value_type = void; 26629: 26629: 26629: using pointer = void*; 26629: 26629: 26629: using const_pointer = const void*; 26629: 26629: 26629: using void_pointer = void*; 26629: 26629: 26629: using const_void_pointer = const void*; 26629: 26629: 26629: using difference_type = std::ptrdiff_t; 26629: 26629: 26629: using size_type = std::size_t; 26629: 26629: 26629: using propagate_on_container_copy_assignment = false_type; 26629: 26629: 26629: using propagate_on_container_move_assignment = true_type; 26629: 26629: 26629: using propagate_on_container_swap = false_type; 26629: 26629: 26629: using is_always_equal = true_type; 26629: 26629: template 26629: using rebind_alloc = allocator<_Up>; 26629: 26629: template 26629: using rebind_traits = allocator_traits>; 26629: 26629: 26629: static void* 26629: allocate(allocator_type&, size_type, const void* = nullptr) = delete; 26629: 26629: 26629: static void 26629: deallocate(allocator_type&, void*, size_type) = delete; 26629: # 631 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: static void 26629: construct(allocator_type&, _Up* __p, _Args&&... __args) 26629: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 26629: { std::_Construct(__p, std::forward<_Args>(__args)...); } 26629: # 644 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: static void 26629: destroy(allocator_type&, _Up* __p) 26629: noexcept(is_nothrow_destructible<_Up>::value) 26629: { std::_Destroy(__p); } 26629: 26629: 26629: static size_type 26629: max_size(const allocator_type&) = delete; 26629: 26629: 26629: 26629: 26629: 26629: 26629: static allocator_type 26629: select_on_container_copy_construction(const allocator_type& __rhs) 26629: { return __rhs; } 26629: }; 26629: # 676 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: constexpr inline void 26629: __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 26629: { 26629: typedef allocator_traits<_Alloc> __traits; 26629: typedef typename __traits::propagate_on_container_copy_assignment __pocca; 26629: 26629: if constexpr (__pocca::value) 26629: __one = __two; 26629: 26629: 26629: 26629: } 26629: 26629: template 26629: constexpr _Alloc 26629: __alloc_on_copy(const _Alloc& __a) 26629: { 26629: typedef allocator_traits<_Alloc> __traits; 26629: return __traits::select_on_container_copy_construction(__a); 26629: } 26629: # 708 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: constexpr inline void 26629: __alloc_on_move(_Alloc& __one, _Alloc& __two) 26629: { 26629: typedef allocator_traits<_Alloc> __traits; 26629: typedef typename __traits::propagate_on_container_move_assignment __pocma; 26629: 26629: if constexpr (__pocma::value) 26629: __one = std::move(__two); 26629: 26629: 26629: 26629: } 26629: # 735 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: constexpr inline void 26629: __alloc_on_swap(_Alloc& __one, _Alloc& __two) 26629: { 26629: typedef allocator_traits<_Alloc> __traits; 26629: typedef typename __traits::propagate_on_container_swap __pocs; 26629: 26629: if constexpr (__pocs::value) 26629: { 26629: using std::swap; 26629: swap(__one, __two); 26629: } 26629: 26629: 26629: 26629: } 26629: 26629: template, 26629: typename = void> 26629: struct __is_alloc_insertable_impl 26629: : false_type 26629: { }; 26629: 26629: template 26629: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 26629: __void_t::construct( 26629: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 26629: std::declval<_Tp>()))>> 26629: : true_type 26629: { }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_copy_insertable 26629: : __is_alloc_insertable_impl<_Alloc, 26629: typename _Alloc::value_type const&>::type 26629: { }; 26629: 26629: 26629: template 26629: struct __is_copy_insertable> 26629: : is_copy_constructible<_Tp> 26629: { }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_move_insertable 26629: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 26629: { }; 26629: 26629: 26629: template 26629: struct __is_move_insertable> 26629: : is_move_constructible<_Tp> 26629: { }; 26629: 26629: 26629: template 26629: struct __is_allocator : false_type { }; 26629: 26629: template 26629: struct __is_allocator<_Alloc, 26629: __void_t().allocate(size_t{}))>> 26629: : true_type { }; 26629: 26629: template 26629: using _RequireAllocator 26629: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 26629: 26629: template 26629: using _RequireNotAllocator 26629: = typename enable_if::value, _Alloc>::type; 26629: # 829 "/usr/include/c++/12/bits/alloc_traits.h" 3 26629: template 26629: 26629: void 26629: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 26629: _Allocator& __alloc) 26629: { 26629: for (; __first != __last; ++__first) 26629: 26629: 26629: 26629: allocator_traits<_Allocator>::destroy(__alloc, 26629: std::__addressof(*__first)); 26629: 26629: } 26629: 26629: template 26629: 26629: inline void 26629: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 26629: allocator<_Tp>&) 26629: { 26629: _Destroy(__first, __last); 26629: } 26629: 26629: 26629: } 26629: # 35 "/usr/include/c++/12/ext/alloc_traits.h" 2 3 26629: 26629: 26629: 26629: 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __alloc_traits 26629: 26629: : std::allocator_traits<_Alloc> 26629: 26629: { 26629: typedef _Alloc allocator_type; 26629: 26629: typedef std::allocator_traits<_Alloc> _Base_type; 26629: typedef typename _Base_type::value_type value_type; 26629: typedef typename _Base_type::pointer pointer; 26629: typedef typename _Base_type::const_pointer const_pointer; 26629: typedef typename _Base_type::size_type size_type; 26629: typedef typename _Base_type::difference_type difference_type; 26629: 26629: typedef value_type& reference; 26629: typedef const value_type& const_reference; 26629: using _Base_type::allocate; 26629: using _Base_type::deallocate; 26629: using _Base_type::construct; 26629: using _Base_type::destroy; 26629: using _Base_type::max_size; 26629: 26629: private: 26629: template 26629: using __is_custom_pointer 26629: = std::__and_, 26629: std::__not_>>; 26629: 26629: public: 26629: 26629: template 26629: static constexpr 26629: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 26629: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 26629: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 26629: std::forward<_Args>(__args)...))) 26629: { 26629: _Base_type::construct(__a, std::__to_address(__p), 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: 26629: template 26629: static constexpr 26629: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 26629: destroy(_Alloc& __a, _Ptr __p) 26629: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 26629: { _Base_type::destroy(__a, std::__to_address(__p)); } 26629: 26629: static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) 26629: { return _Base_type::select_on_container_copy_construction(__a); } 26629: 26629: static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) 26629: { std::__alloc_on_swap(__a, __b); } 26629: 26629: static constexpr bool _S_propagate_on_copy_assign() 26629: { return _Base_type::propagate_on_container_copy_assignment::value; } 26629: 26629: static constexpr bool _S_propagate_on_move_assign() 26629: { return _Base_type::propagate_on_container_move_assignment::value; } 26629: 26629: static constexpr bool _S_propagate_on_swap() 26629: { return _Base_type::propagate_on_container_swap::value; } 26629: 26629: static constexpr bool _S_always_equal() 26629: { return _Base_type::is_always_equal::value; } 26629: 26629: static constexpr bool _S_nothrow_move() 26629: { return _S_propagate_on_move_assign() || _S_always_equal(); } 26629: 26629: template 26629: struct rebind 26629: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 26629: # 166 "/usr/include/c++/12/ext/alloc_traits.h" 3 26629: }; 26629: 26629: 26629: } 26629: # 65 "/usr/include/c++/12/bits/stl_uninitialized.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 81 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: constexpr bool 26629: __check_constructible() 26629: { 26629: 26629: 26629: 26629: 26629: 26629: static_assert(is_constructible<_ValueType, _Tp>::value, 26629: "result type must be constructible from input type"); 26629: 26629: return true; 26629: } 26629: # 110 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: 26629: _ForwardIterator 26629: __do_uninit_copy(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result) 26629: { 26629: _ForwardIterator __cur = __result; 26629: try 26629: { 26629: for (; __first != __last; ++__first, (void)++__cur) 26629: std::_Construct(std::__addressof(*__cur), *__first); 26629: return __cur; 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__result, __cur); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: struct __uninitialized_copy 26629: { 26629: template 26629: static _ForwardIterator 26629: __uninit_copy(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result) 26629: { return std::__do_uninit_copy(__first, __last, __result); } 26629: }; 26629: 26629: template<> 26629: struct __uninitialized_copy 26629: { 26629: template 26629: static _ForwardIterator 26629: __uninit_copy(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result) 26629: { return std::copy(__first, __last, __result); } 26629: }; 26629: # 161 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: inline _ForwardIterator 26629: uninitialized_copy(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result) 26629: { 26629: typedef typename iterator_traits<_InputIterator>::value_type 26629: _ValueType1; 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _ValueType2; 26629: 26629: 26629: 26629: 26629: const bool __can_memmove = __is_trivial(_ValueType1); 26629: 26629: 26629: 26629: 26629: using _From = decltype(*__first); 26629: 26629: const bool __assignable 26629: = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); 26629: 26629: return std::__uninitialized_copy<__can_memmove && __assignable>:: 26629: __uninit_copy(__first, __last, __result); 26629: } 26629: 26629: 26629: 26629: template 26629: void 26629: __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __x) 26629: { 26629: _ForwardIterator __cur = __first; 26629: try 26629: { 26629: for (; __cur != __last; ++__cur) 26629: std::_Construct(std::__addressof(*__cur), __x); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: struct __uninitialized_fill 26629: { 26629: template 26629: static void 26629: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __x) 26629: { std::__do_uninit_fill(__first, __last, __x); } 26629: }; 26629: 26629: template<> 26629: struct __uninitialized_fill 26629: { 26629: template 26629: static void 26629: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __x) 26629: { std::fill(__first, __last, __x); } 26629: }; 26629: # 239 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: inline void 26629: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __x) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _ValueType; 26629: 26629: 26629: 26629: const bool __can_fill 26629: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); 26629: 26629: std::__uninitialized_fill<__can_fill>:: 26629: __uninit_fill(__first, __last, __x); 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 26629: { 26629: _ForwardIterator __cur = __first; 26629: try 26629: { 26629: for (; __n > 0; --__n, (void) ++__cur) 26629: std::_Construct(std::__addressof(*__cur), __x); 26629: return __cur; 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: struct __uninitialized_fill_n 26629: { 26629: template 26629: static _ForwardIterator 26629: __uninit_fill_n(_ForwardIterator __first, _Size __n, 26629: const _Tp& __x) 26629: { return std::__do_uninit_fill_n(__first, __n, __x); } 26629: }; 26629: 26629: template<> 26629: struct __uninitialized_fill_n 26629: { 26629: template 26629: static _ForwardIterator 26629: __uninit_fill_n(_ForwardIterator __first, _Size __n, 26629: const _Tp& __x) 26629: { return std::fill_n(__first, __n, __x); } 26629: }; 26629: # 310 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: inline _ForwardIterator 26629: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _ValueType; 26629: 26629: 26629: 26629: const bool __can_fill 26629: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() 26629: 26629: 26629: 26629: && __is_integer<_Size>::__value; 26629: 26629: return __uninitialized_fill_n<__can_fill>:: 26629: __uninit_fill_n(__first, __n, __x); 26629: } 26629: # 340 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: 26629: _ForwardIterator 26629: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result, _Allocator& __alloc) 26629: { 26629: _ForwardIterator __cur = __result; 26629: try 26629: { 26629: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 26629: for (; __first != __last; ++__first, (void)++__cur) 26629: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 26629: return __cur; 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__result, __cur, __alloc); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: 26629: inline _ForwardIterator 26629: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result, allocator<_Tp>&) 26629: { 26629: 26629: 26629: 26629: 26629: return std::uninitialized_copy(__first, __last, __result); 26629: } 26629: 26629: template 26629: 26629: inline _ForwardIterator 26629: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result, _Allocator& __alloc) 26629: { 26629: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 26629: std::make_move_iterator(__last), 26629: __result, __alloc); 26629: } 26629: 26629: template 26629: 26629: inline _ForwardIterator 26629: __uninitialized_move_if_noexcept_a(_InputIterator __first, 26629: _InputIterator __last, 26629: _ForwardIterator __result, 26629: _Allocator& __alloc) 26629: { 26629: return std::__uninitialized_copy_a 26629: (std::__make_move_if_noexcept_iterator(__first), 26629: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 26629: } 26629: 26629: template 26629: 26629: void 26629: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __x, _Allocator& __alloc) 26629: { 26629: _ForwardIterator __cur = __first; 26629: try 26629: { 26629: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 26629: for (; __cur != __last; ++__cur) 26629: __traits::construct(__alloc, std::__addressof(*__cur), __x); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur, __alloc); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: 26629: inline void 26629: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __x, allocator<_Tp2>&) 26629: { 26629: 26629: 26629: 26629: 26629: std::uninitialized_fill(__first, __last, __x); 26629: } 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 26629: const _Tp& __x, _Allocator& __alloc) 26629: { 26629: _ForwardIterator __cur = __first; 26629: try 26629: { 26629: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 26629: for (; __n > 0; --__n, (void) ++__cur) 26629: __traits::construct(__alloc, std::__addressof(*__cur), __x); 26629: return __cur; 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur, __alloc); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: 26629: inline _ForwardIterator 26629: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 26629: const _Tp& __x, allocator<_Tp2>&) 26629: { 26629: 26629: 26629: 26629: 26629: return std::uninitialized_fill_n(__first, __n, __x); 26629: } 26629: # 480 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: inline _ForwardIterator 26629: __uninitialized_copy_move(_InputIterator1 __first1, 26629: _InputIterator1 __last1, 26629: _InputIterator2 __first2, 26629: _InputIterator2 __last2, 26629: _ForwardIterator __result, 26629: _Allocator& __alloc) 26629: { 26629: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 26629: __result, 26629: __alloc); 26629: try 26629: { 26629: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__result, __mid, __alloc); 26629: throw; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline _ForwardIterator 26629: __uninitialized_move_copy(_InputIterator1 __first1, 26629: _InputIterator1 __last1, 26629: _InputIterator2 __first2, 26629: _InputIterator2 __last2, 26629: _ForwardIterator __result, 26629: _Allocator& __alloc) 26629: { 26629: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 26629: __result, 26629: __alloc); 26629: try 26629: { 26629: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__result, __mid, __alloc); 26629: throw; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: inline _ForwardIterator 26629: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 26629: const _Tp& __x, _InputIterator __first, 26629: _InputIterator __last, _Allocator& __alloc) 26629: { 26629: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 26629: try 26629: { 26629: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__result, __mid, __alloc); 26629: throw; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: inline void 26629: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 26629: _ForwardIterator __first2, 26629: _ForwardIterator __last2, const _Tp& __x, 26629: _Allocator& __alloc) 26629: { 26629: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 26629: __first2, 26629: __alloc); 26629: try 26629: { 26629: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first2, __mid2, __alloc); 26629: throw; 26629: } 26629: } 26629: # 587 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: struct __uninitialized_default_1 26629: { 26629: template 26629: static void 26629: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: _ForwardIterator __cur = __first; 26629: try 26629: { 26629: for (; __cur != __last; ++__cur) 26629: std::_Construct(std::__addressof(*__cur)); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur); 26629: throw; 26629: } 26629: } 26629: }; 26629: 26629: template<> 26629: struct __uninitialized_default_1 26629: { 26629: template 26629: static void 26629: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: if (__first == __last) 26629: return; 26629: 26629: typename iterator_traits<_ForwardIterator>::value_type* __val 26629: = std::__addressof(*__first); 26629: std::_Construct(__val); 26629: if (++__first != __last) 26629: std::fill(__first, __last, *__val); 26629: } 26629: }; 26629: 26629: template 26629: struct __uninitialized_default_n_1 26629: { 26629: template 26629: 26629: static _ForwardIterator 26629: __uninit_default_n(_ForwardIterator __first, _Size __n) 26629: { 26629: _ForwardIterator __cur = __first; 26629: try 26629: { 26629: for (; __n > 0; --__n, (void) ++__cur) 26629: std::_Construct(std::__addressof(*__cur)); 26629: return __cur; 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur); 26629: throw; 26629: } 26629: } 26629: }; 26629: 26629: template<> 26629: struct __uninitialized_default_n_1 26629: { 26629: template 26629: 26629: static _ForwardIterator 26629: __uninit_default_n(_ForwardIterator __first, _Size __n) 26629: { 26629: if (__n > 0) 26629: { 26629: typename iterator_traits<_ForwardIterator>::value_type* __val 26629: = std::__addressof(*__first); 26629: std::_Construct(__val); 26629: ++__first; 26629: __first = std::fill_n(__first, __n - 1, *__val); 26629: } 26629: return __first; 26629: } 26629: }; 26629: 26629: 26629: 26629: template 26629: inline void 26629: __uninitialized_default(_ForwardIterator __first, 26629: _ForwardIterator __last) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _ValueType; 26629: 26629: const bool __assignable = is_copy_assignable<_ValueType>::value; 26629: 26629: std::__uninitialized_default_1<__is_trivial(_ValueType) 26629: && __assignable>:: 26629: __uninit_default(__first, __last); 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: inline _ForwardIterator 26629: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _ValueType; 26629: 26629: constexpr bool __can_fill 26629: = __and_, is_copy_assignable<_ValueType>>::value; 26629: 26629: return __uninitialized_default_n_1<__is_trivial(_ValueType) 26629: && __can_fill>:: 26629: __uninit_default_n(__first, __n); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: void 26629: __uninitialized_default_a(_ForwardIterator __first, 26629: _ForwardIterator __last, 26629: _Allocator& __alloc) 26629: { 26629: _ForwardIterator __cur = __first; 26629: try 26629: { 26629: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 26629: for (; __cur != __last; ++__cur) 26629: __traits::construct(__alloc, std::__addressof(*__cur)); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur, __alloc); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: inline void 26629: __uninitialized_default_a(_ForwardIterator __first, 26629: _ForwardIterator __last, 26629: allocator<_Tp>&) 26629: { std::__uninitialized_default(__first, __last); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: _ForwardIterator 26629: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 26629: _Allocator& __alloc) 26629: { 26629: _ForwardIterator __cur = __first; 26629: try 26629: { 26629: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 26629: for (; __n > 0; --__n, (void) ++__cur) 26629: __traits::construct(__alloc, std::__addressof(*__cur)); 26629: return __cur; 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur, __alloc); 26629: throw; 26629: } 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: inline _ForwardIterator 26629: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 26629: allocator<_Tp>&) 26629: { return std::__uninitialized_default_n(__first, __n); } 26629: 26629: template 26629: struct __uninitialized_default_novalue_1 26629: { 26629: template 26629: static void 26629: __uninit_default_novalue(_ForwardIterator __first, 26629: _ForwardIterator __last) 26629: { 26629: _ForwardIterator __cur = __first; 26629: try 26629: { 26629: for (; __cur != __last; ++__cur) 26629: std::_Construct_novalue(std::__addressof(*__cur)); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur); 26629: throw; 26629: } 26629: } 26629: }; 26629: 26629: template<> 26629: struct __uninitialized_default_novalue_1 26629: { 26629: template 26629: static void 26629: __uninit_default_novalue(_ForwardIterator __first, 26629: _ForwardIterator __last) 26629: { 26629: } 26629: }; 26629: 26629: template 26629: struct __uninitialized_default_novalue_n_1 26629: { 26629: template 26629: static _ForwardIterator 26629: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 26629: { 26629: _ForwardIterator __cur = __first; 26629: try 26629: { 26629: for (; __n > 0; --__n, (void) ++__cur) 26629: std::_Construct_novalue(std::__addressof(*__cur)); 26629: return __cur; 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur); 26629: throw; 26629: } 26629: } 26629: }; 26629: 26629: template<> 26629: struct __uninitialized_default_novalue_n_1 26629: { 26629: template 26629: static _ForwardIterator 26629: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 26629: { return std::next(__first, __n); } 26629: }; 26629: 26629: 26629: 26629: template 26629: inline void 26629: __uninitialized_default_novalue(_ForwardIterator __first, 26629: _ForwardIterator __last) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _ValueType; 26629: 26629: std::__uninitialized_default_novalue_1< 26629: is_trivially_default_constructible<_ValueType>::value>:: 26629: __uninit_default_novalue(__first, __last); 26629: } 26629: 26629: 26629: 26629: template 26629: inline _ForwardIterator 26629: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _ValueType; 26629: 26629: return __uninitialized_default_novalue_n_1< 26629: is_trivially_default_constructible<_ValueType>::value>:: 26629: __uninit_default_novalue_n(__first, __n); 26629: } 26629: 26629: template 26629: _ForwardIterator 26629: __uninitialized_copy_n(_InputIterator __first, _Size __n, 26629: _ForwardIterator __result, input_iterator_tag) 26629: { 26629: _ForwardIterator __cur = __result; 26629: try 26629: { 26629: for (; __n > 0; --__n, (void) ++__first, ++__cur) 26629: std::_Construct(std::__addressof(*__cur), *__first); 26629: return __cur; 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__result, __cur); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: inline _ForwardIterator 26629: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 26629: _ForwardIterator __result, 26629: random_access_iterator_tag) 26629: { return std::uninitialized_copy(__first, __first + __n, __result); } 26629: 26629: template 26629: pair<_InputIterator, _ForwardIterator> 26629: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 26629: _ForwardIterator __result, input_iterator_tag) 26629: { 26629: _ForwardIterator __cur = __result; 26629: try 26629: { 26629: for (; __n > 0; --__n, (void) ++__first, ++__cur) 26629: std::_Construct(std::__addressof(*__cur), *__first); 26629: return {__first, __cur}; 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__result, __cur); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: inline pair<_RandomAccessIterator, _ForwardIterator> 26629: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 26629: _ForwardIterator __result, 26629: random_access_iterator_tag) 26629: { 26629: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 26629: auto __first_res = std::next(__first, __n); 26629: return {__first_res, __second_res}; 26629: } 26629: # 933 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: inline _ForwardIterator 26629: uninitialized_copy_n(_InputIterator __first, _Size __n, 26629: _ForwardIterator __result) 26629: { return std::__uninitialized_copy_n(__first, __n, __result, 26629: std::__iterator_category(__first)); } 26629: 26629: 26629: template 26629: inline pair<_InputIterator, _ForwardIterator> 26629: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 26629: _ForwardIterator __result) 26629: { 26629: return 26629: std::__uninitialized_copy_n_pair(__first, __n, __result, 26629: std::__iterator_category(__first)); 26629: } 26629: # 962 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: inline void 26629: uninitialized_default_construct(_ForwardIterator __first, 26629: _ForwardIterator __last) 26629: { 26629: __uninitialized_default_novalue(__first, __last); 26629: } 26629: # 977 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: inline _ForwardIterator 26629: uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) 26629: { 26629: return __uninitialized_default_novalue_n(__first, __count); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline void 26629: uninitialized_value_construct(_ForwardIterator __first, 26629: _ForwardIterator __last) 26629: { 26629: return __uninitialized_default(__first, __last); 26629: } 26629: # 1005 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: inline _ForwardIterator 26629: uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) 26629: { 26629: return __uninitialized_default_n(__first, __count); 26629: } 26629: # 1020 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: inline _ForwardIterator 26629: uninitialized_move(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result) 26629: { 26629: return std::uninitialized_copy 26629: (std::make_move_iterator(__first), 26629: std::make_move_iterator(__last), __result); 26629: } 26629: # 1038 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: template 26629: inline pair<_InputIterator, _ForwardIterator> 26629: uninitialized_move_n(_InputIterator __first, _Size __count, 26629: _ForwardIterator __result) 26629: { 26629: auto __res = std::__uninitialized_copy_n_pair 26629: (std::make_move_iterator(__first), 26629: __count, __result); 26629: return {__res.first.base(), __res.second}; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline void 26629: __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, 26629: _Allocator& __alloc) 26629: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 26629: __dest, std::move(*__orig))) 26629: && noexcept(std::allocator_traits<_Allocator>::destroy( 26629: __alloc, std::__addressof(*__orig)))) 26629: { 26629: typedef std::allocator_traits<_Allocator> __traits; 26629: __traits::construct(__alloc, __dest, std::move(*__orig)); 26629: __traits::destroy(__alloc, std::__addressof(*__orig)); 26629: } 26629: 26629: 26629: 26629: template 26629: struct __is_bitwise_relocatable 26629: : is_trivial<_Tp> { }; 26629: 26629: template 26629: 26629: inline _ForwardIterator 26629: __relocate_a_1(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result, _Allocator& __alloc) 26629: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 26629: std::addressof(*__first), 26629: __alloc))) 26629: { 26629: typedef typename iterator_traits<_InputIterator>::value_type 26629: _ValueType; 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _ValueType2; 26629: static_assert(std::is_same<_ValueType, _ValueType2>::value, 26629: "relocation is only possible for values of the same type"); 26629: _ForwardIterator __cur = __result; 26629: for (; __first != __last; ++__first, (void)++__cur) 26629: std::__relocate_object_a(std::__addressof(*__cur), 26629: std::__addressof(*__first), __alloc); 26629: return __cur; 26629: } 26629: 26629: template 26629: 26629: inline __enable_if_t::value, _Tp*> 26629: __relocate_a_1(_Tp* __first, _Tp* __last, 26629: _Tp* __result, 26629: [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept 26629: { 26629: ptrdiff_t __count = __last - __first; 26629: if (__count > 0) 26629: { 26629: # 1117 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 26629: __builtin_memmove(__result, __first, __count * sizeof(_Tp)); 26629: } 26629: return __result + __count; 26629: } 26629: 26629: 26629: template 26629: 26629: inline _ForwardIterator 26629: __relocate_a(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result, _Allocator& __alloc) 26629: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 26629: std::__niter_base(__last), 26629: std::__niter_base(__result), __alloc))) 26629: { 26629: return std::__relocate_a_1(std::__niter_base(__first), 26629: std::__niter_base(__last), 26629: std::__niter_base(__result), __alloc); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 64 "/usr/include/c++/12/deque" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_deque.h" 1 3 26629: # 63 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: # 1 "/usr/include/c++/12/initializer_list" 1 3 26629: # 33 "/usr/include/c++/12/initializer_list" 3 26629: 26629: # 34 "/usr/include/c++/12/initializer_list" 3 26629: 26629: 26629: 26629: 26629: 26629: #pragma GCC visibility push(default) 26629: 26629: 26629: 26629: namespace std 26629: { 26629: 26629: template 26629: class initializer_list 26629: { 26629: public: 26629: typedef _E value_type; 26629: typedef const _E& reference; 26629: typedef const _E& const_reference; 26629: typedef size_t size_type; 26629: typedef const _E* iterator; 26629: typedef const _E* const_iterator; 26629: 26629: private: 26629: iterator _M_array; 26629: size_type _M_len; 26629: 26629: 26629: constexpr initializer_list(const_iterator __a, size_type __l) 26629: : _M_array(__a), _M_len(__l) { } 26629: 26629: public: 26629: constexpr initializer_list() noexcept 26629: : _M_array(0), _M_len(0) { } 26629: 26629: 26629: constexpr size_type 26629: size() const noexcept { return _M_len; } 26629: 26629: 26629: constexpr const_iterator 26629: begin() const noexcept { return _M_array; } 26629: 26629: 26629: constexpr const_iterator 26629: end() const noexcept { return begin() + size(); } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr const _Tp* 26629: begin(initializer_list<_Tp> __ils) noexcept 26629: { return __ils.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr const _Tp* 26629: end(initializer_list<_Tp> __ils) noexcept 26629: { return __ils.end(); } 26629: } 26629: 26629: #pragma GCC visibility pop 26629: # 64 "/usr/include/c++/12/bits/stl_deque.h" 2 3 26629: # 72 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: # 95 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: constexpr inline size_t 26629: __deque_buf_size(size_t __size) 26629: { return (__size < 512 26629: ? size_t(512 / __size) : size_t(1)); } 26629: # 112 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template 26629: struct _Deque_iterator 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: private: 26629: template 26629: using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_rebind<_Ptr, _CvTp>>; 26629: public: 26629: typedef __iter<_Tp> iterator; 26629: typedef __iter const_iterator; 26629: typedef __ptr_rebind<_Ptr, _Tp> _Elt_pointer; 26629: typedef __ptr_rebind<_Ptr, _Elt_pointer> _Map_pointer; 26629: 26629: 26629: static size_t _S_buffer_size() noexcept 26629: { return __deque_buf_size(sizeof(_Tp)); } 26629: 26629: typedef std::random_access_iterator_tag iterator_category; 26629: typedef _Tp value_type; 26629: typedef _Ptr pointer; 26629: typedef _Ref reference; 26629: typedef size_t size_type; 26629: typedef ptrdiff_t difference_type; 26629: typedef _Deque_iterator _Self; 26629: 26629: _Elt_pointer _M_cur; 26629: _Elt_pointer _M_first; 26629: _Elt_pointer _M_last; 26629: _Map_pointer _M_node; 26629: 26629: _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) noexcept 26629: : _M_cur(__x), _M_first(*__y), 26629: _M_last(*__y + _S_buffer_size()), _M_node(__y) { } 26629: 26629: _Deque_iterator() noexcept 26629: : _M_cur(), _M_first(), _M_last(), _M_node() { } 26629: # 161 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template, 26629: is_same<_Iter, iterator>>> 26629: _Deque_iterator(const _Iter& __x) noexcept 26629: : _M_cur(__x._M_cur), _M_first(__x._M_first), 26629: _M_last(__x._M_last), _M_node(__x._M_node) { } 26629: 26629: _Deque_iterator(const _Deque_iterator& __x) noexcept 26629: : _M_cur(__x._M_cur), _M_first(__x._M_first), 26629: _M_last(__x._M_last), _M_node(__x._M_node) { } 26629: 26629: _Deque_iterator& operator=(const _Deque_iterator&) = default; 26629: 26629: 26629: iterator 26629: _M_const_cast() const noexcept 26629: { return iterator(_M_cur, _M_node); } 26629: 26629: [[__nodiscard__]] 26629: reference 26629: operator*() const noexcept 26629: { return *_M_cur; } 26629: 26629: [[__nodiscard__]] 26629: pointer 26629: operator->() const noexcept 26629: { return _M_cur; } 26629: 26629: _Self& 26629: operator++() noexcept 26629: { 26629: ++_M_cur; 26629: if (_M_cur == _M_last) 26629: { 26629: _M_set_node(_M_node + 1); 26629: _M_cur = _M_first; 26629: } 26629: return *this; 26629: } 26629: 26629: _Self 26629: operator++(int) noexcept 26629: { 26629: _Self __tmp = *this; 26629: ++*this; 26629: return __tmp; 26629: } 26629: 26629: _Self& 26629: operator--() noexcept 26629: { 26629: if (_M_cur == _M_first) 26629: { 26629: _M_set_node(_M_node - 1); 26629: _M_cur = _M_last; 26629: } 26629: --_M_cur; 26629: return *this; 26629: } 26629: 26629: _Self 26629: operator--(int) noexcept 26629: { 26629: _Self __tmp = *this; 26629: --*this; 26629: return __tmp; 26629: } 26629: 26629: _Self& 26629: operator+=(difference_type __n) noexcept 26629: { 26629: const difference_type __offset = __n + (_M_cur - _M_first); 26629: if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) 26629: _M_cur += __n; 26629: else 26629: { 26629: const difference_type __node_offset = 26629: __offset > 0 ? __offset / difference_type(_S_buffer_size()) 26629: : -difference_type((-__offset - 1) 26629: / _S_buffer_size()) - 1; 26629: _M_set_node(_M_node + __node_offset); 26629: _M_cur = _M_first + (__offset - __node_offset 26629: * difference_type(_S_buffer_size())); 26629: } 26629: return *this; 26629: } 26629: 26629: _Self& 26629: operator-=(difference_type __n) noexcept 26629: { return *this += -__n; } 26629: 26629: [[__nodiscard__]] 26629: reference 26629: operator[](difference_type __n) const noexcept 26629: { return *(*this + __n); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: _M_set_node(_Map_pointer __new_node) noexcept 26629: { 26629: _M_node = __new_node; 26629: _M_first = *__new_node; 26629: _M_last = _M_first + difference_type(_S_buffer_size()); 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator==(const _Self& __x, const _Self& __y) noexcept 26629: { return __x._M_cur == __y._M_cur; } 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: friend bool 26629: operator==(const _Self& __x, 26629: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 26629: noexcept 26629: { return __x._M_cur == __y._M_cur; } 26629: # 296 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: [[__nodiscard__]] 26629: friend bool 26629: operator!=(const _Self& __x, const _Self& __y) noexcept 26629: { return !(__x == __y); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: friend bool 26629: operator!=(const _Self& __x, 26629: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 26629: noexcept 26629: { return !(__x == __y); } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator<(const _Self& __x, const _Self& __y) noexcept 26629: { 26629: return (__x._M_node == __y._M_node) 26629: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 26629: } 26629: 26629: template 26629: [[__nodiscard__]] 26629: friend bool 26629: operator<(const _Self& __x, 26629: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 26629: noexcept 26629: { 26629: return (__x._M_node == __y._M_node) 26629: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator>(const _Self& __x, const _Self& __y) noexcept 26629: { return __y < __x; } 26629: 26629: template 26629: [[__nodiscard__]] 26629: friend bool 26629: operator>(const _Self& __x, 26629: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 26629: noexcept 26629: { return __y < __x; } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator<=(const _Self& __x, const _Self& __y) noexcept 26629: { return !(__y < __x); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: friend bool 26629: operator<=(const _Self& __x, 26629: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 26629: noexcept 26629: { return !(__y < __x); } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator>=(const _Self& __x, const _Self& __y) noexcept 26629: { return !(__x < __y); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: friend bool 26629: operator>=(const _Self& __x, 26629: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 26629: noexcept 26629: { return !(__x < __y); } 26629: 26629: 26629: [[__nodiscard__]] 26629: friend difference_type 26629: operator-(const _Self& __x, const _Self& __y) noexcept 26629: { 26629: return difference_type(_S_buffer_size()) 26629: * (__x._M_node - __y._M_node - bool(__x._M_node)) 26629: + (__x._M_cur - __x._M_first) 26629: + (__y._M_last - __y._M_cur); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: friend difference_type 26629: operator-(const _Self& __x, 26629: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 26629: noexcept 26629: { 26629: return difference_type(_S_buffer_size()) 26629: * (__x._M_node - __y._M_node - bool(__x._M_node)) 26629: + (__x._M_cur - __x._M_first) 26629: + (__y._M_last - __y._M_cur); 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend _Self 26629: operator+(const _Self& __x, difference_type __n) noexcept 26629: { 26629: _Self __tmp = __x; 26629: __tmp += __n; 26629: return __tmp; 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend _Self 26629: operator-(const _Self& __x, difference_type __n) noexcept 26629: { 26629: _Self __tmp = __x; 26629: __tmp -= __n; 26629: return __tmp; 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend _Self 26629: operator+(difference_type __n, const _Self& __x) noexcept 26629: { return __x + __n; } 26629: }; 26629: # 429 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template 26629: class _Deque_base 26629: { 26629: protected: 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind<_Tp>::other _Tp_alloc_type; 26629: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 26629: 26629: 26629: 26629: 26629: 26629: typedef typename _Alloc_traits::pointer _Ptr; 26629: typedef typename _Alloc_traits::const_pointer _Ptr_const; 26629: 26629: 26629: typedef typename _Alloc_traits::template rebind<_Ptr>::other 26629: _Map_alloc_type; 26629: typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; 26629: 26629: typedef _Alloc allocator_type; 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return allocator_type(_M_get_Tp_allocator()); } 26629: 26629: typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; 26629: typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; 26629: 26629: _Deque_base() 26629: : _M_impl() 26629: { _M_initialize_map(0); } 26629: 26629: _Deque_base(size_t __num_elements) 26629: : _M_impl() 26629: { _M_initialize_map(__num_elements); } 26629: 26629: _Deque_base(const allocator_type& __a, size_t __num_elements) 26629: : _M_impl(__a) 26629: { _M_initialize_map(__num_elements); } 26629: 26629: _Deque_base(const allocator_type& __a) 26629: : _M_impl(__a) 26629: { } 26629: 26629: 26629: _Deque_base(_Deque_base&& __x) 26629: : _M_impl(std::move(__x._M_get_Tp_allocator())) 26629: { 26629: _M_initialize_map(0); 26629: if (__x._M_impl._M_map) 26629: this->_M_impl._M_swap_data(__x._M_impl); 26629: } 26629: 26629: _Deque_base(_Deque_base&& __x, const allocator_type& __a) 26629: : _M_impl(std::move(__x._M_impl), _Tp_alloc_type(__a)) 26629: { __x._M_initialize_map(0); } 26629: 26629: _Deque_base(_Deque_base&& __x, const allocator_type& __a, size_t __n) 26629: : _M_impl(__a) 26629: { 26629: if (__x.get_allocator() == __a) 26629: { 26629: if (__x._M_impl._M_map) 26629: { 26629: _M_initialize_map(0); 26629: this->_M_impl._M_swap_data(__x._M_impl); 26629: } 26629: } 26629: else 26629: { 26629: _M_initialize_map(__n); 26629: } 26629: } 26629: 26629: 26629: ~_Deque_base() noexcept; 26629: 26629: typedef typename iterator::_Map_pointer _Map_pointer; 26629: 26629: struct _Deque_impl_data 26629: { 26629: _Map_pointer _M_map; 26629: size_t _M_map_size; 26629: iterator _M_start; 26629: iterator _M_finish; 26629: 26629: _Deque_impl_data() noexcept 26629: : _M_map(), _M_map_size(), _M_start(), _M_finish() 26629: { } 26629: 26629: 26629: _Deque_impl_data(const _Deque_impl_data&) = default; 26629: _Deque_impl_data& 26629: operator=(const _Deque_impl_data&) = default; 26629: 26629: _Deque_impl_data(_Deque_impl_data&& __x) noexcept 26629: : _Deque_impl_data(__x) 26629: { __x = _Deque_impl_data(); } 26629: 26629: 26629: void 26629: _M_swap_data(_Deque_impl_data& __x) noexcept 26629: { 26629: 26629: 26629: std::swap(*this, __x); 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: struct _Deque_impl 26629: : public _Tp_alloc_type, public _Deque_impl_data 26629: { 26629: _Deque_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 26629: 26629: : _Tp_alloc_type() 26629: { } 26629: 26629: _Deque_impl(const _Tp_alloc_type& __a) noexcept 26629: : _Tp_alloc_type(__a) 26629: { } 26629: 26629: 26629: _Deque_impl(_Deque_impl&&) = default; 26629: 26629: _Deque_impl(_Tp_alloc_type&& __a) noexcept 26629: : _Tp_alloc_type(std::move(__a)) 26629: { } 26629: 26629: _Deque_impl(_Deque_impl&& __d, _Tp_alloc_type&& __a) 26629: : _Tp_alloc_type(std::move(__a)), _Deque_impl_data(std::move(__d)) 26629: { } 26629: 26629: }; 26629: 26629: _Tp_alloc_type& 26629: _M_get_Tp_allocator() noexcept 26629: { return this->_M_impl; } 26629: 26629: const _Tp_alloc_type& 26629: _M_get_Tp_allocator() const noexcept 26629: { return this->_M_impl; } 26629: 26629: _Map_alloc_type 26629: _M_get_map_allocator() const noexcept 26629: { return _Map_alloc_type(_M_get_Tp_allocator()); } 26629: 26629: _Ptr 26629: _M_allocate_node() 26629: { 26629: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 26629: return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); 26629: } 26629: 26629: void 26629: _M_deallocate_node(_Ptr __p) noexcept 26629: { 26629: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 26629: _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); 26629: } 26629: 26629: _Map_pointer 26629: _M_allocate_map(size_t __n) 26629: { 26629: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 26629: return _Map_alloc_traits::allocate(__map_alloc, __n); 26629: } 26629: 26629: void 26629: _M_deallocate_map(_Map_pointer __p, size_t __n) noexcept 26629: { 26629: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 26629: _Map_alloc_traits::deallocate(__map_alloc, __p, __n); 26629: } 26629: 26629: void _M_initialize_map(size_t); 26629: void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); 26629: void _M_destroy_nodes(_Map_pointer __nstart, 26629: _Map_pointer __nfinish) noexcept; 26629: enum { _S_initial_map_size = 8 }; 26629: 26629: _Deque_impl _M_impl; 26629: }; 26629: 26629: template 26629: _Deque_base<_Tp, _Alloc>:: 26629: ~_Deque_base() noexcept 26629: { 26629: if (this->_M_impl._M_map) 26629: { 26629: _M_destroy_nodes(this->_M_impl._M_start._M_node, 26629: this->_M_impl._M_finish._M_node + 1); 26629: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 26629: } 26629: } 26629: # 636 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template 26629: void 26629: _Deque_base<_Tp, _Alloc>:: 26629: _M_initialize_map(size_t __num_elements) 26629: { 26629: const size_t __num_nodes = (__num_elements / __deque_buf_size(sizeof(_Tp)) 26629: + 1); 26629: 26629: this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, 26629: size_t(__num_nodes + 2)); 26629: this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); 26629: 26629: 26629: 26629: 26629: 26629: 26629: _Map_pointer __nstart = (this->_M_impl._M_map 26629: + (this->_M_impl._M_map_size - __num_nodes) / 2); 26629: _Map_pointer __nfinish = __nstart + __num_nodes; 26629: 26629: try 26629: { _M_create_nodes(__nstart, __nfinish); } 26629: catch(...) 26629: { 26629: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 26629: this->_M_impl._M_map = _Map_pointer(); 26629: this->_M_impl._M_map_size = 0; 26629: throw; 26629: } 26629: 26629: this->_M_impl._M_start._M_set_node(__nstart); 26629: this->_M_impl._M_finish._M_set_node(__nfinish - 1); 26629: this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; 26629: this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first 26629: + __num_elements 26629: % __deque_buf_size(sizeof(_Tp))); 26629: } 26629: 26629: template 26629: void 26629: _Deque_base<_Tp, _Alloc>:: 26629: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) 26629: { 26629: _Map_pointer __cur; 26629: try 26629: { 26629: for (__cur = __nstart; __cur < __nfinish; ++__cur) 26629: *__cur = this->_M_allocate_node(); 26629: } 26629: catch(...) 26629: { 26629: _M_destroy_nodes(__nstart, __cur); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: void 26629: _Deque_base<_Tp, _Alloc>:: 26629: _M_destroy_nodes(_Map_pointer __nstart, 26629: _Map_pointer __nfinish) noexcept 26629: { 26629: for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) 26629: _M_deallocate_node(*__n); 26629: } 26629: # 787 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template > 26629: class deque : protected _Deque_base<_Tp, _Alloc> 26629: { 26629: # 800 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: static_assert(is_same::type, _Tp>::value, 26629: "std::deque must have a non-const, non-volatile value_type"); 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef _Deque_base<_Tp, _Alloc> _Base; 26629: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 26629: typedef typename _Base::_Alloc_traits _Alloc_traits; 26629: typedef typename _Base::_Map_pointer _Map_pointer; 26629: 26629: public: 26629: typedef _Tp value_type; 26629: typedef typename _Alloc_traits::pointer pointer; 26629: typedef typename _Alloc_traits::const_pointer const_pointer; 26629: typedef typename _Alloc_traits::reference reference; 26629: typedef typename _Alloc_traits::const_reference const_reference; 26629: typedef typename _Base::iterator iterator; 26629: typedef typename _Base::const_iterator const_iterator; 26629: typedef std::reverse_iterator const_reverse_iterator; 26629: typedef std::reverse_iterator reverse_iterator; 26629: typedef size_t size_type; 26629: typedef ptrdiff_t difference_type; 26629: typedef _Alloc allocator_type; 26629: 26629: private: 26629: static size_t _S_buffer_size() noexcept 26629: { return __deque_buf_size(sizeof(_Tp)); } 26629: 26629: 26629: using _Base::_M_initialize_map; 26629: using _Base::_M_create_nodes; 26629: using _Base::_M_destroy_nodes; 26629: using _Base::_M_allocate_node; 26629: using _Base::_M_deallocate_node; 26629: using _Base::_M_allocate_map; 26629: using _Base::_M_deallocate_map; 26629: using _Base::_M_get_Tp_allocator; 26629: 26629: 26629: 26629: 26629: 26629: using _Base::_M_impl; 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: deque() = default; 26629: # 864 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: explicit 26629: deque(const allocator_type& __a) 26629: : _Base(__a, 0) { } 26629: # 877 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: explicit 26629: deque(size_type __n, const allocator_type& __a = allocator_type()) 26629: : _Base(__a, _S_check_init_len(__n, __a)) 26629: { _M_default_initialize(); } 26629: # 890 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: deque(size_type __n, const value_type& __value, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(__a, _S_check_init_len(__n, __a)) 26629: { _M_fill_initialize(__value); } 26629: # 917 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: deque(const deque& __x) 26629: : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), 26629: __x.size()) 26629: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 26629: this->_M_impl._M_start, 26629: _M_get_Tp_allocator()); } 26629: # 933 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: deque(deque&&) = default; 26629: 26629: 26629: deque(const deque& __x, const __type_identity_t& __a) 26629: : _Base(__a, __x.size()) 26629: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 26629: this->_M_impl._M_start, 26629: _M_get_Tp_allocator()); } 26629: 26629: 26629: deque(deque&& __x, const __type_identity_t& __a) 26629: : deque(std::move(__x), __a, typename _Alloc_traits::is_always_equal{}) 26629: { } 26629: 26629: private: 26629: deque(deque&& __x, const allocator_type& __a, true_type) 26629: : _Base(std::move(__x), __a) 26629: { } 26629: 26629: deque(deque&& __x, const allocator_type& __a, false_type) 26629: : _Base(std::move(__x), __a, __x.size()) 26629: { 26629: if (__x.get_allocator() != __a && !__x.empty()) 26629: { 26629: std::__uninitialized_move_a(__x.begin(), __x.end(), 26629: this->_M_impl._M_start, 26629: _M_get_Tp_allocator()); 26629: __x.clear(); 26629: } 26629: } 26629: 26629: public: 26629: # 976 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: deque(initializer_list __l, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(__a) 26629: { 26629: _M_range_initialize(__l.begin(), __l.end(), 26629: random_access_iterator_tag()); 26629: } 26629: # 1001 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template> 26629: deque(_InputIterator __first, _InputIterator __last, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(__a) 26629: { 26629: _M_range_initialize(__first, __last, 26629: std::__iterator_category(__first)); 26629: } 26629: # 1027 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: ~deque() 26629: { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } 26629: # 1039 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: deque& 26629: operator=(const deque& __x); 26629: # 1051 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: deque& 26629: operator=(deque&& __x) noexcept(_Alloc_traits::_S_always_equal()) 26629: { 26629: using __always_equal = typename _Alloc_traits::is_always_equal; 26629: _M_move_assign1(std::move(__x), __always_equal{}); 26629: return *this; 26629: } 26629: # 1070 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: deque& 26629: operator=(initializer_list __l) 26629: { 26629: _M_assign_aux(__l.begin(), __l.end(), 26629: random_access_iterator_tag()); 26629: return *this; 26629: } 26629: # 1089 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: assign(size_type __n, const value_type& __val) 26629: { _M_fill_assign(__n, __val); } 26629: # 1106 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template> 26629: void 26629: assign(_InputIterator __first, _InputIterator __last) 26629: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 26629: # 1133 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: assign(initializer_list __l) 26629: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return _Base::get_allocator(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: iterator 26629: begin() noexcept 26629: { return this->_M_impl._M_start; } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: begin() const noexcept 26629: { return this->_M_impl._M_start; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: iterator 26629: end() noexcept 26629: { return this->_M_impl._M_finish; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: end() const noexcept 26629: { return this->_M_impl._M_finish; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reverse_iterator 26629: rbegin() noexcept 26629: { return reverse_iterator(this->_M_impl._M_finish); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: rbegin() const noexcept 26629: { return const_reverse_iterator(this->_M_impl._M_finish); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reverse_iterator 26629: rend() noexcept 26629: { return reverse_iterator(this->_M_impl._M_start); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: rend() const noexcept 26629: { return const_reverse_iterator(this->_M_impl._M_start); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: cbegin() const noexcept 26629: { return this->_M_impl._M_start; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: cend() const noexcept 26629: { return this->_M_impl._M_finish; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: crbegin() const noexcept 26629: { return const_reverse_iterator(this->_M_impl._M_finish); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: crend() const noexcept 26629: { return const_reverse_iterator(this->_M_impl._M_start); } 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: size_type 26629: size() const noexcept 26629: { return this->_M_impl._M_finish - this->_M_impl._M_start; } 26629: 26629: 26629: [[__nodiscard__]] 26629: size_type 26629: max_size() const noexcept 26629: { return _S_max_size(_M_get_Tp_allocator()); } 26629: # 1287 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: resize(size_type __new_size) 26629: { 26629: const size_type __len = size(); 26629: if (__new_size > __len) 26629: _M_default_append(__new_size - __len); 26629: else if (__new_size < __len) 26629: _M_erase_at_end(this->_M_impl._M_start 26629: + difference_type(__new_size)); 26629: } 26629: # 1309 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: resize(size_type __new_size, const value_type& __x) 26629: # 1326 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: { 26629: const size_type __len = size(); 26629: if (__new_size > __len) 26629: _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); 26629: else if (__new_size < __len) 26629: _M_erase_at_end(this->_M_impl._M_start 26629: + difference_type(__new_size)); 26629: } 26629: 26629: 26629: 26629: void 26629: shrink_to_fit() noexcept 26629: { _M_shrink_to_fit(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return this->_M_impl._M_finish == this->_M_impl._M_start; } 26629: # 1362 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: [[__nodiscard__]] 26629: reference 26629: operator[](size_type __n) noexcept 26629: { 26629: ; 26629: return this->_M_impl._M_start[difference_type(__n)]; 26629: } 26629: # 1381 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: [[__nodiscard__]] 26629: const_reference 26629: operator[](size_type __n) const noexcept 26629: { 26629: ; 26629: return this->_M_impl._M_start[difference_type(__n)]; 26629: } 26629: 26629: protected: 26629: 26629: void 26629: _M_range_check(size_type __n) const 26629: { 26629: if (__n >= this->size()) 26629: __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") 26629: 26629: , 26629: __n, this->size()); 26629: } 26629: 26629: public: 26629: # 1413 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: reference 26629: at(size_type __n) 26629: { 26629: _M_range_check(__n); 26629: return (*this)[__n]; 26629: } 26629: # 1431 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: const_reference 26629: at(size_type __n) const 26629: { 26629: _M_range_check(__n); 26629: return (*this)[__n]; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reference 26629: front() noexcept 26629: { 26629: ; 26629: return *begin(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: front() const noexcept 26629: { 26629: ; 26629: return *begin(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reference 26629: back() noexcept 26629: { 26629: ; 26629: iterator __tmp = end(); 26629: --__tmp; 26629: return *__tmp; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: back() const noexcept 26629: { 26629: ; 26629: const_iterator __tmp = end(); 26629: --__tmp; 26629: return *__tmp; 26629: } 26629: # 1500 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: push_front(const value_type& __x) 26629: { 26629: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 26629: { 26629: _Alloc_traits::construct(this->_M_impl, 26629: this->_M_impl._M_start._M_cur - 1, 26629: __x); 26629: --this->_M_impl._M_start._M_cur; 26629: } 26629: else 26629: _M_push_front_aux(__x); 26629: } 26629: 26629: 26629: void 26629: push_front(value_type&& __x) 26629: { emplace_front(std::move(__x)); } 26629: 26629: template 26629: 26629: reference 26629: 26629: 26629: 26629: emplace_front(_Args&&... __args); 26629: # 1537 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: push_back(const value_type& __x) 26629: { 26629: if (this->_M_impl._M_finish._M_cur 26629: != this->_M_impl._M_finish._M_last - 1) 26629: { 26629: _Alloc_traits::construct(this->_M_impl, 26629: this->_M_impl._M_finish._M_cur, __x); 26629: ++this->_M_impl._M_finish._M_cur; 26629: } 26629: else 26629: _M_push_back_aux(__x); 26629: } 26629: 26629: 26629: void 26629: push_back(value_type&& __x) 26629: { emplace_back(std::move(__x)); } 26629: 26629: template 26629: 26629: reference 26629: 26629: 26629: 26629: emplace_back(_Args&&... __args); 26629: # 1573 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: pop_front() noexcept 26629: { 26629: ; 26629: if (this->_M_impl._M_start._M_cur 26629: != this->_M_impl._M_start._M_last - 1) 26629: { 26629: _Alloc_traits::destroy(_M_get_Tp_allocator(), 26629: this->_M_impl._M_start._M_cur); 26629: ++this->_M_impl._M_start._M_cur; 26629: } 26629: else 26629: _M_pop_front_aux(); 26629: } 26629: # 1596 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: pop_back() noexcept 26629: { 26629: ; 26629: if (this->_M_impl._M_finish._M_cur 26629: != this->_M_impl._M_finish._M_first) 26629: { 26629: --this->_M_impl._M_finish._M_cur; 26629: _Alloc_traits::destroy(_M_get_Tp_allocator(), 26629: this->_M_impl._M_finish._M_cur); 26629: } 26629: else 26629: _M_pop_back_aux(); 26629: } 26629: # 1621 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template 26629: iterator 26629: emplace(const_iterator __position, _Args&&... __args); 26629: # 1634 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: iterator 26629: insert(const_iterator __position, const value_type& __x); 26629: # 1660 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: iterator 26629: insert(const_iterator __position, value_type&& __x) 26629: { return emplace(__position, std::move(__x)); } 26629: # 1674 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: iterator 26629: insert(const_iterator __p, initializer_list __l) 26629: { 26629: auto __offset = __p - cbegin(); 26629: _M_range_insert_aux(__p._M_const_cast(), __l.begin(), __l.end(), 26629: std::random_access_iterator_tag()); 26629: return begin() + __offset; 26629: } 26629: # 1693 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: iterator 26629: insert(const_iterator __position, size_type __n, const value_type& __x) 26629: { 26629: difference_type __offset = __position - cbegin(); 26629: _M_fill_insert(__position._M_const_cast(), __n, __x); 26629: return begin() + __offset; 26629: } 26629: # 1727 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template> 26629: iterator 26629: insert(const_iterator __position, _InputIterator __first, 26629: _InputIterator __last) 26629: { 26629: difference_type __offset = __position - cbegin(); 26629: _M_range_insert_aux(__position._M_const_cast(), __first, __last, 26629: std::__iterator_category(__first)); 26629: return begin() + __offset; 26629: } 26629: # 1773 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: iterator 26629: 26629: erase(const_iterator __position) 26629: 26629: 26629: 26629: { return _M_erase(__position._M_const_cast()); } 26629: # 1797 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: iterator 26629: 26629: erase(const_iterator __first, const_iterator __last) 26629: 26629: 26629: 26629: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 26629: # 1816 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: swap(deque& __x) noexcept 26629: { 26629: 26629: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) __builtin_unreachable(); } while (false) 26629: ; 26629: 26629: _M_impl._M_swap_data(__x._M_impl); 26629: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 26629: __x._M_get_Tp_allocator()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: clear() noexcept 26629: { _M_erase_at_end(begin()); } 26629: 26629: protected: 26629: # 1866 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: static size_t 26629: _S_check_init_len(size_t __n, const allocator_type& __a) 26629: { 26629: if (__n > _S_max_size(__a)) 26629: __throw_length_error( 26629: ("cannot create std::deque larger than max_size()")); 26629: return __n; 26629: } 26629: 26629: static size_type 26629: _S_max_size(const _Tp_alloc_type& __a) noexcept 26629: { 26629: const size_t __diffmax = __gnu_cxx::__numeric_traits::__max; 26629: const size_t __allocmax = _Alloc_traits::max_size(__a); 26629: return (std::min)(__diffmax, __allocmax); 26629: } 26629: # 1895 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template 26629: void 26629: _M_range_initialize(_InputIterator __first, _InputIterator __last, 26629: std::input_iterator_tag); 26629: 26629: 26629: template 26629: void 26629: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 26629: std::forward_iterator_tag); 26629: # 1917 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: _M_fill_initialize(const value_type& __value); 26629: 26629: 26629: 26629: void 26629: _M_default_initialize(); 26629: # 1948 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template 26629: void 26629: _M_assign_aux(_InputIterator __first, _InputIterator __last, 26629: std::input_iterator_tag); 26629: 26629: 26629: template 26629: void 26629: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 26629: std::forward_iterator_tag) 26629: { 26629: const size_type __len = std::distance(__first, __last); 26629: if (__len > size()) 26629: { 26629: _ForwardIterator __mid = __first; 26629: std::advance(__mid, size()); 26629: std::copy(__first, __mid, begin()); 26629: _M_range_insert_aux(end(), __mid, __last, 26629: std::__iterator_category(__first)); 26629: } 26629: else 26629: _M_erase_at_end(std::copy(__first, __last, begin())); 26629: } 26629: 26629: 26629: 26629: void 26629: _M_fill_assign(size_type __n, const value_type& __val) 26629: { 26629: if (__n > size()) 26629: { 26629: std::fill(begin(), end(), __val); 26629: _M_fill_insert(end(), __n - size(), __val); 26629: } 26629: else 26629: { 26629: _M_erase_at_end(begin() + difference_type(__n)); 26629: std::fill(begin(), end(), __val); 26629: } 26629: } 26629: # 1996 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template 26629: void _M_push_back_aux(_Args&&... __args); 26629: 26629: template 26629: void _M_push_front_aux(_Args&&... __args); 26629: 26629: 26629: void _M_pop_back_aux(); 26629: 26629: void _M_pop_front_aux(); 26629: # 2035 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template 26629: void 26629: _M_range_insert_aux(iterator __pos, _InputIterator __first, 26629: _InputIterator __last, std::input_iterator_tag); 26629: 26629: 26629: template 26629: void 26629: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, 26629: _ForwardIterator __last, std::forward_iterator_tag); 26629: 26629: 26629: 26629: 26629: void 26629: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: iterator 26629: _M_insert_aux(iterator __pos, _Args&&... __args); 26629: 26629: 26629: 26629: void 26629: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); 26629: 26629: 26629: template 26629: void 26629: _M_insert_aux(iterator __pos, 26629: _ForwardIterator __first, _ForwardIterator __last, 26629: size_type __n); 26629: 26629: 26629: 26629: 26629: void 26629: _M_destroy_data_aux(iterator __first, iterator __last); 26629: 26629: 26629: 26629: template 26629: void 26629: _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) 26629: { _M_destroy_data_aux(__first, __last); } 26629: 26629: void 26629: _M_destroy_data(iterator __first, iterator __last, 26629: const std::allocator<_Tp>&) 26629: { 26629: if (!__has_trivial_destructor(value_type)) 26629: _M_destroy_data_aux(__first, __last); 26629: } 26629: 26629: 26629: void 26629: _M_erase_at_begin(iterator __pos) 26629: { 26629: _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); 26629: _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); 26629: this->_M_impl._M_start = __pos; 26629: } 26629: 26629: 26629: 26629: void 26629: _M_erase_at_end(iterator __pos) 26629: { 26629: _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); 26629: _M_destroy_nodes(__pos._M_node + 1, 26629: this->_M_impl._M_finish._M_node + 1); 26629: this->_M_impl._M_finish = __pos; 26629: } 26629: 26629: iterator 26629: _M_erase(iterator __pos); 26629: 26629: iterator 26629: _M_erase(iterator __first, iterator __last); 26629: 26629: 26629: 26629: void 26629: _M_default_append(size_type __n); 26629: 26629: bool 26629: _M_shrink_to_fit(); 26629: 26629: 26629: 26629: 26629: iterator 26629: _M_reserve_elements_at_front(size_type __n) 26629: { 26629: const size_type __vacancies = this->_M_impl._M_start._M_cur 26629: - this->_M_impl._M_start._M_first; 26629: if (__n > __vacancies) 26629: _M_new_elements_at_front(__n - __vacancies); 26629: return this->_M_impl._M_start - difference_type(__n); 26629: } 26629: 26629: iterator 26629: _M_reserve_elements_at_back(size_type __n) 26629: { 26629: const size_type __vacancies = (this->_M_impl._M_finish._M_last 26629: - this->_M_impl._M_finish._M_cur) - 1; 26629: if (__n > __vacancies) 26629: _M_new_elements_at_back(__n - __vacancies); 26629: return this->_M_impl._M_finish + difference_type(__n); 26629: } 26629: 26629: void 26629: _M_new_elements_at_front(size_type __new_elements); 26629: 26629: void 26629: _M_new_elements_at_back(size_type __new_elements); 26629: # 2167 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: void 26629: _M_reserve_map_at_back(size_type __nodes_to_add = 1) 26629: { 26629: if (__nodes_to_add + 1 > this->_M_impl._M_map_size 26629: - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) 26629: _M_reallocate_map(__nodes_to_add, false); 26629: } 26629: 26629: void 26629: _M_reserve_map_at_front(size_type __nodes_to_add = 1) 26629: { 26629: if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node 26629: - this->_M_impl._M_map)) 26629: _M_reallocate_map(__nodes_to_add, true); 26629: } 26629: 26629: void 26629: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); 26629: 26629: 26629: 26629: 26629: 26629: void 26629: _M_move_assign1(deque&& __x, true_type) noexcept 26629: { 26629: this->_M_impl._M_swap_data(__x._M_impl); 26629: __x.clear(); 26629: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 26629: } 26629: 26629: 26629: 26629: 26629: void 26629: _M_move_assign1(deque&& __x, false_type) 26629: { 26629: if (_M_get_Tp_allocator() == __x._M_get_Tp_allocator()) 26629: return _M_move_assign1(std::move(__x), true_type()); 26629: 26629: constexpr bool __move_storage = 26629: _Alloc_traits::_S_propagate_on_move_assign(); 26629: _M_move_assign2(std::move(__x), __bool_constant<__move_storage>()); 26629: } 26629: 26629: 26629: 26629: template 26629: void 26629: _M_replace_map(_Args&&... __args) 26629: { 26629: 26629: deque __newobj(std::forward<_Args>(__args)...); 26629: 26629: clear(); 26629: _M_deallocate_node(*begin()._M_node); 26629: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 26629: this->_M_impl._M_map = nullptr; 26629: this->_M_impl._M_map_size = 0; 26629: 26629: this->_M_impl._M_swap_data(__newobj._M_impl); 26629: } 26629: 26629: 26629: void 26629: _M_move_assign2(deque&& __x, true_type) 26629: { 26629: 26629: auto __alloc = __x._M_get_Tp_allocator(); 26629: 26629: 26629: _M_replace_map(std::move(__x)); 26629: 26629: _M_get_Tp_allocator() = std::move(__alloc); 26629: } 26629: 26629: 26629: 26629: void 26629: _M_move_assign2(deque&& __x, false_type) 26629: { 26629: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 26629: { 26629: 26629: 26629: _M_replace_map(std::move(__x), __x.get_allocator()); 26629: } 26629: else 26629: { 26629: 26629: 26629: _M_assign_aux(std::make_move_iterator(__x.begin()), 26629: std::make_move_iterator(__x.end()), 26629: std::random_access_iterator_tag()); 26629: __x.clear(); 26629: } 26629: } 26629: 26629: }; 26629: 26629: 26629: template::value_type, 26629: typename _Allocator = allocator<_ValT>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireAllocator<_Allocator>> 26629: deque(_InputIterator, _InputIterator, _Allocator = _Allocator()) 26629: -> deque<_ValT, _Allocator>; 26629: # 2287 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 26629: { return __x.size() == __y.size() 26629: && std::equal(__x.begin(), __x.end(), __y.begin()); } 26629: # 2327 "/usr/include/c++/12/bits/stl_deque.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 26629: { return std::lexicographical_compare(__x.begin(), __x.end(), 26629: __y.begin(), __y.end()); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 26629: { return __y < __x; } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 26629: { return !(__y < __x); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_bitwise_relocatable> 26629: : true_type { }; 26629: 26629: 26629: 26629: } 26629: # 65 "/usr/include/c++/12/deque" 2 3 26629: # 1 "/usr/include/c++/12/bits/refwrap.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/refwrap.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/refwrap.h" 3 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/invoke.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/invoke.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/invoke.h" 3 26629: # 42 "/usr/include/c++/12/bits/invoke.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 53 "/usr/include/c++/12/bits/invoke.h" 3 26629: template::type> 26629: constexpr _Up&& 26629: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 26629: { return static_cast<_Up&&>(__t); } 26629: 26629: template 26629: constexpr _Res 26629: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 26629: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 26629: 26629: template 26629: constexpr _Res 26629: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 26629: _Args&&... __args) 26629: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 26629: 26629: template 26629: constexpr _Res 26629: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 26629: _Args&&... __args) 26629: { 26629: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 26629: } 26629: 26629: template 26629: constexpr _Res 26629: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 26629: { return __invfwd<_Tp>(__t).*__f; } 26629: 26629: template 26629: constexpr _Res 26629: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 26629: { return (*std::forward<_Tp>(__t)).*__f; } 26629: 26629: 26629: template 26629: constexpr typename __invoke_result<_Callable, _Args...>::type 26629: __invoke(_Callable&& __fn, _Args&&... __args) 26629: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 26629: { 26629: using __result = __invoke_result<_Callable, _Args...>; 26629: using __type = typename __result::type; 26629: using __tag = typename __result::__invoke_type; 26629: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: 26629: 26629: template 26629: constexpr enable_if_t, _Res> 26629: __invoke_r(_Callable&& __fn, _Args&&... __args) 26629: noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 26629: { 26629: using __result = __invoke_result<_Callable, _Args...>; 26629: using __type = typename __result::type; 26629: using __tag = typename __result::__invoke_type; 26629: if constexpr (is_void_v<_Res>) 26629: std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 26629: std::forward<_Args>(__args)...); 26629: else 26629: return std::__invoke_impl<__type>(__tag{}, 26629: std::forward<_Callable>(__fn), 26629: std::forward<_Args>(__args)...); 26629: } 26629: # 159 "/usr/include/c++/12/bits/invoke.h" 3 26629: 26629: } 26629: # 39 "/usr/include/c++/12/bits/refwrap.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_function.h" 1 3 26629: # 63 "/usr/include/c++/12/bits/stl_function.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 116 "/usr/include/c++/12/bits/stl_function.h" 3 26629: template 26629: struct unary_function 26629: { 26629: 26629: typedef _Arg argument_type; 26629: 26629: 26629: typedef _Result result_type; 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct binary_function 26629: { 26629: 26629: typedef _Arg1 first_argument_type; 26629: 26629: 26629: typedef _Arg2 second_argument_type; 26629: 26629: 26629: typedef _Result result_type; 26629: } __attribute__ ((__deprecated__)); 26629: # 157 "/usr/include/c++/12/bits/stl_function.h" 3 26629: struct __is_transparent; 26629: 26629: template 26629: struct plus; 26629: 26629: template 26629: struct minus; 26629: 26629: template 26629: struct multiplies; 26629: 26629: template 26629: struct divides; 26629: 26629: template 26629: struct modulus; 26629: 26629: template 26629: struct negate; 26629: 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: template 26629: struct plus : public binary_function<_Tp, _Tp, _Tp> 26629: { 26629: 26629: constexpr 26629: _Tp 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x + __y; } 26629: }; 26629: 26629: 26629: template 26629: struct minus : public binary_function<_Tp, _Tp, _Tp> 26629: { 26629: constexpr 26629: _Tp 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x - __y; } 26629: }; 26629: 26629: 26629: template 26629: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 26629: { 26629: constexpr 26629: _Tp 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x * __y; } 26629: }; 26629: 26629: 26629: template 26629: struct divides : public binary_function<_Tp, _Tp, _Tp> 26629: { 26629: constexpr 26629: _Tp 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x / __y; } 26629: }; 26629: 26629: 26629: template 26629: struct modulus : public binary_function<_Tp, _Tp, _Tp> 26629: { 26629: constexpr 26629: _Tp 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x % __y; } 26629: }; 26629: 26629: 26629: template 26629: struct negate : public unary_function<_Tp, _Tp> 26629: { 26629: constexpr 26629: _Tp 26629: operator()(const _Tp& __x) const 26629: { return -__x; } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct plus 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: template<> 26629: struct minus 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: template<> 26629: struct multiplies 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: template<> 26629: struct divides 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: template<> 26629: struct modulus 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: template<> 26629: struct negate 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t) const 26629: noexcept(noexcept(-std::forward<_Tp>(__t))) 26629: -> decltype(-std::forward<_Tp>(__t)) 26629: { return -std::forward<_Tp>(__t); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: # 349 "/usr/include/c++/12/bits/stl_function.h" 3 26629: template 26629: struct equal_to; 26629: 26629: template 26629: struct not_equal_to; 26629: 26629: template 26629: struct greater; 26629: 26629: template 26629: struct less; 26629: 26629: template 26629: struct greater_equal; 26629: 26629: template 26629: struct less_equal; 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: template 26629: struct equal_to : public binary_function<_Tp, _Tp, bool> 26629: { 26629: constexpr 26629: bool 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x == __y; } 26629: }; 26629: 26629: 26629: template 26629: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 26629: { 26629: constexpr 26629: bool 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x != __y; } 26629: }; 26629: 26629: 26629: template 26629: struct greater : public binary_function<_Tp, _Tp, bool> 26629: { 26629: constexpr 26629: bool 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x > __y; } 26629: }; 26629: 26629: 26629: template 26629: struct less : public binary_function<_Tp, _Tp, bool> 26629: { 26629: constexpr 26629: bool 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x < __y; } 26629: }; 26629: 26629: 26629: template 26629: struct greater_equal : public binary_function<_Tp, _Tp, bool> 26629: { 26629: constexpr 26629: bool 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x >= __y; } 26629: }; 26629: 26629: 26629: template 26629: struct less_equal : public binary_function<_Tp, _Tp, bool> 26629: { 26629: constexpr 26629: bool 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x <= __y; } 26629: }; 26629: 26629: 26629: template 26629: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 26629: { 26629: constexpr bool 26629: operator()(_Tp* __x, _Tp* __y) const noexcept 26629: { 26629: 26629: if (std::__is_constant_evaluated()) 26629: return __x > __y; 26629: 26629: return (unsigned int)__x > (unsigned int)__y; 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 26629: { 26629: constexpr bool 26629: operator()(_Tp* __x, _Tp* __y) const noexcept 26629: { 26629: 26629: if (std::__is_constant_evaluated()) 26629: return __x < __y; 26629: 26629: return (unsigned int)__x < (unsigned int)__y; 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 26629: { 26629: constexpr bool 26629: operator()(_Tp* __x, _Tp* __y) const noexcept 26629: { 26629: 26629: if (std::__is_constant_evaluated()) 26629: return __x >= __y; 26629: 26629: return (unsigned int)__x >= (unsigned int)__y; 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 26629: { 26629: constexpr bool 26629: operator()(_Tp* __x, _Tp* __y) const noexcept 26629: { 26629: 26629: if (std::__is_constant_evaluated()) 26629: return __x <= __y; 26629: 26629: return (unsigned int)__x <= (unsigned int)__y; 26629: } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: template<> 26629: struct equal_to 26629: { 26629: template 26629: constexpr auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: template<> 26629: struct not_equal_to 26629: { 26629: template 26629: constexpr auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: template<> 26629: struct greater 26629: { 26629: template 26629: constexpr auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) 26629: { 26629: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 26629: __ptr_cmp<_Tp, _Up>{}); 26629: } 26629: 26629: template 26629: constexpr bool 26629: operator()(_Tp* __t, _Up* __u) const noexcept 26629: { return greater>{}(__t, __u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: 26629: private: 26629: template 26629: static constexpr decltype(auto) 26629: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 26629: { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } 26629: 26629: template 26629: static constexpr bool 26629: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 26629: { 26629: return greater{}( 26629: static_cast(std::forward<_Tp>(__t)), 26629: static_cast(std::forward<_Up>(__u))); 26629: } 26629: 26629: 26629: template 26629: struct __not_overloaded2 : true_type { }; 26629: 26629: 26629: template 26629: struct __not_overloaded2<_Tp, _Up, __void_t< 26629: decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> 26629: : false_type { }; 26629: 26629: 26629: template 26629: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 26629: 26629: 26629: template 26629: struct __not_overloaded<_Tp, _Up, __void_t< 26629: decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> 26629: : false_type { }; 26629: 26629: template 26629: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 26629: is_convertible<_Tp, const volatile void*>, 26629: is_convertible<_Up, const volatile void*>>; 26629: }; 26629: 26629: 26629: template<> 26629: struct less 26629: { 26629: template 26629: constexpr auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) 26629: { 26629: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 26629: __ptr_cmp<_Tp, _Up>{}); 26629: } 26629: 26629: template 26629: constexpr bool 26629: operator()(_Tp* __t, _Up* __u) const noexcept 26629: { return less>{}(__t, __u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: 26629: private: 26629: template 26629: static constexpr decltype(auto) 26629: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 26629: { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } 26629: 26629: template 26629: static constexpr bool 26629: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 26629: { 26629: return less{}( 26629: static_cast(std::forward<_Tp>(__t)), 26629: static_cast(std::forward<_Up>(__u))); 26629: } 26629: 26629: 26629: template 26629: struct __not_overloaded2 : true_type { }; 26629: 26629: 26629: template 26629: struct __not_overloaded2<_Tp, _Up, __void_t< 26629: decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> 26629: : false_type { }; 26629: 26629: 26629: template 26629: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 26629: 26629: 26629: template 26629: struct __not_overloaded<_Tp, _Up, __void_t< 26629: decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> 26629: : false_type { }; 26629: 26629: template 26629: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 26629: is_convertible<_Tp, const volatile void*>, 26629: is_convertible<_Up, const volatile void*>>; 26629: }; 26629: 26629: 26629: template<> 26629: struct greater_equal 26629: { 26629: template 26629: constexpr auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) 26629: { 26629: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 26629: __ptr_cmp<_Tp, _Up>{}); 26629: } 26629: 26629: template 26629: constexpr bool 26629: operator()(_Tp* __t, _Up* __u) const noexcept 26629: { return greater_equal>{}(__t, __u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: 26629: private: 26629: template 26629: static constexpr decltype(auto) 26629: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 26629: { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } 26629: 26629: template 26629: static constexpr bool 26629: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 26629: { 26629: return greater_equal{}( 26629: static_cast(std::forward<_Tp>(__t)), 26629: static_cast(std::forward<_Up>(__u))); 26629: } 26629: 26629: 26629: template 26629: struct __not_overloaded2 : true_type { }; 26629: 26629: 26629: template 26629: struct __not_overloaded2<_Tp, _Up, __void_t< 26629: decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> 26629: : false_type { }; 26629: 26629: 26629: template 26629: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 26629: 26629: 26629: template 26629: struct __not_overloaded<_Tp, _Up, __void_t< 26629: decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> 26629: : false_type { }; 26629: 26629: template 26629: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 26629: is_convertible<_Tp, const volatile void*>, 26629: is_convertible<_Up, const volatile void*>>; 26629: }; 26629: 26629: 26629: template<> 26629: struct less_equal 26629: { 26629: template 26629: constexpr auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) 26629: { 26629: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 26629: __ptr_cmp<_Tp, _Up>{}); 26629: } 26629: 26629: template 26629: constexpr bool 26629: operator()(_Tp* __t, _Up* __u) const noexcept 26629: { return less_equal>{}(__t, __u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: 26629: private: 26629: template 26629: static constexpr decltype(auto) 26629: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 26629: { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } 26629: 26629: template 26629: static constexpr bool 26629: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 26629: { 26629: return less_equal{}( 26629: static_cast(std::forward<_Tp>(__t)), 26629: static_cast(std::forward<_Up>(__u))); 26629: } 26629: 26629: 26629: template 26629: struct __not_overloaded2 : true_type { }; 26629: 26629: 26629: template 26629: struct __not_overloaded2<_Tp, _Up, __void_t< 26629: decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> 26629: : false_type { }; 26629: 26629: 26629: template 26629: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 26629: 26629: 26629: template 26629: struct __not_overloaded<_Tp, _Up, __void_t< 26629: decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> 26629: : false_type { }; 26629: 26629: template 26629: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 26629: is_convertible<_Tp, const volatile void*>, 26629: is_convertible<_Up, const volatile void*>>; 26629: }; 26629: # 781 "/usr/include/c++/12/bits/stl_function.h" 3 26629: template 26629: struct logical_and; 26629: 26629: template 26629: struct logical_or; 26629: 26629: template 26629: struct logical_not; 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: template 26629: struct logical_and : public binary_function<_Tp, _Tp, bool> 26629: { 26629: constexpr 26629: bool 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x && __y; } 26629: }; 26629: 26629: 26629: template 26629: struct logical_or : public binary_function<_Tp, _Tp, bool> 26629: { 26629: constexpr 26629: bool 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x || __y; } 26629: }; 26629: 26629: 26629: template 26629: struct logical_not : public unary_function<_Tp, bool> 26629: { 26629: constexpr 26629: bool 26629: operator()(const _Tp& __x) const 26629: { return !__x; } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: template<> 26629: struct logical_and 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: template<> 26629: struct logical_or 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: template<> 26629: struct logical_not 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t) const 26629: noexcept(noexcept(!std::forward<_Tp>(__t))) 26629: -> decltype(!std::forward<_Tp>(__t)) 26629: { return !std::forward<_Tp>(__t); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct bit_and; 26629: 26629: template 26629: struct bit_or; 26629: 26629: template 26629: struct bit_xor; 26629: 26629: template 26629: struct bit_not; 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: 26629: template 26629: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 26629: { 26629: constexpr 26629: _Tp 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x & __y; } 26629: }; 26629: 26629: template 26629: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 26629: { 26629: constexpr 26629: _Tp 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x | __y; } 26629: }; 26629: 26629: template 26629: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 26629: { 26629: constexpr 26629: _Tp 26629: operator()(const _Tp& __x, const _Tp& __y) const 26629: { return __x ^ __y; } 26629: }; 26629: 26629: template 26629: struct bit_not : public unary_function<_Tp, _Tp> 26629: { 26629: constexpr 26629: _Tp 26629: operator()(const _Tp& __x) const 26629: { return ~__x; } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: template <> 26629: struct bit_and 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: template <> 26629: struct bit_or 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: template <> 26629: struct bit_xor 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t, _Up&& __u) const 26629: noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) 26629: -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) 26629: { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: template <> 26629: struct bit_not 26629: { 26629: template 26629: constexpr 26629: auto 26629: operator()(_Tp&& __t) const 26629: noexcept(noexcept(~std::forward<_Tp>(__t))) 26629: -> decltype(~std::forward<_Tp>(__t)) 26629: { return ~std::forward<_Tp>(__t); } 26629: 26629: typedef __is_transparent is_transparent; 26629: }; 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: # 1023 "/usr/include/c++/12/bits/stl_function.h" 3 26629: template 26629: class [[__deprecated__]] unary_negate 26629: : public unary_function 26629: { 26629: protected: 26629: _Predicate _M_pred; 26629: 26629: public: 26629: constexpr 26629: explicit 26629: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 26629: 26629: constexpr 26629: bool 26629: operator()(const typename _Predicate::argument_type& __x) const 26629: { return !_M_pred(__x); } 26629: }; 26629: 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 26629: constexpr 26629: inline unary_negate<_Predicate> 26629: not1(const _Predicate& __pred) 26629: { return unary_negate<_Predicate>(__pred); } 26629: 26629: 26629: template 26629: class [[__deprecated__]] binary_negate 26629: : public binary_function 26629: { 26629: protected: 26629: _Predicate _M_pred; 26629: 26629: public: 26629: constexpr 26629: explicit 26629: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 26629: 26629: constexpr 26629: bool 26629: operator()(const typename _Predicate::first_argument_type& __x, 26629: const typename _Predicate::second_argument_type& __y) const 26629: { return !_M_pred(__x, __y); } 26629: }; 26629: 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 26629: constexpr 26629: inline binary_negate<_Predicate> 26629: not2(const _Predicate& __pred) 26629: { return binary_negate<_Predicate>(__pred); } 26629: # 1104 "/usr/include/c++/12/bits/stl_function.h" 3 26629: template 26629: class pointer_to_unary_function : public unary_function<_Arg, _Result> 26629: { 26629: protected: 26629: _Result (*_M_ptr)(_Arg); 26629: 26629: public: 26629: pointer_to_unary_function() { } 26629: 26629: explicit 26629: pointer_to_unary_function(_Result (*__x)(_Arg)) 26629: : _M_ptr(__x) { } 26629: 26629: _Result 26629: operator()(_Arg __x) const 26629: { return _M_ptr(__x); } 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 26629: inline pointer_to_unary_function<_Arg, _Result> 26629: ptr_fun(_Result (*__x)(_Arg)) 26629: { return pointer_to_unary_function<_Arg, _Result>(__x); } 26629: 26629: 26629: template 26629: class pointer_to_binary_function 26629: : public binary_function<_Arg1, _Arg2, _Result> 26629: { 26629: protected: 26629: _Result (*_M_ptr)(_Arg1, _Arg2); 26629: 26629: public: 26629: pointer_to_binary_function() { } 26629: 26629: explicit 26629: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 26629: : _M_ptr(__x) { } 26629: 26629: _Result 26629: operator()(_Arg1 __x, _Arg2 __y) const 26629: { return _M_ptr(__x, __y); } 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 26629: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 26629: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 26629: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 26629: 26629: 26629: template 26629: struct _Identity 26629: : public unary_function<_Tp, _Tp> 26629: { 26629: _Tp& 26629: operator()(_Tp& __x) const 26629: { return __x; } 26629: 26629: const _Tp& 26629: operator()(const _Tp& __x) const 26629: { return __x; } 26629: }; 26629: 26629: 26629: template struct _Identity : _Identity<_Tp> { }; 26629: 26629: template 26629: struct _Select1st 26629: : public unary_function<_Pair, typename _Pair::first_type> 26629: { 26629: typename _Pair::first_type& 26629: operator()(_Pair& __x) const 26629: { return __x.first; } 26629: 26629: const typename _Pair::first_type& 26629: operator()(const _Pair& __x) const 26629: { return __x.first; } 26629: 26629: 26629: template 26629: typename _Pair2::first_type& 26629: operator()(_Pair2& __x) const 26629: { return __x.first; } 26629: 26629: template 26629: const typename _Pair2::first_type& 26629: operator()(const _Pair2& __x) const 26629: { return __x.first; } 26629: 26629: }; 26629: 26629: template 26629: struct _Select2nd 26629: : public unary_function<_Pair, typename _Pair::second_type> 26629: { 26629: typename _Pair::second_type& 26629: operator()(_Pair& __x) const 26629: { return __x.second; } 26629: 26629: const typename _Pair::second_type& 26629: operator()(const _Pair& __x) const 26629: { return __x.second; } 26629: }; 26629: # 1231 "/usr/include/c++/12/bits/stl_function.h" 3 26629: template 26629: class mem_fun_t : public unary_function<_Tp*, _Ret> 26629: { 26629: public: 26629: explicit 26629: mem_fun_t(_Ret (_Tp::*__pf)()) 26629: : _M_f(__pf) { } 26629: 26629: _Ret 26629: operator()(_Tp* __p) const 26629: { return (__p->*_M_f)(); } 26629: 26629: private: 26629: _Ret (_Tp::*_M_f)(); 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: template 26629: class const_mem_fun_t : public unary_function 26629: { 26629: public: 26629: explicit 26629: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 26629: : _M_f(__pf) { } 26629: 26629: _Ret 26629: operator()(const _Tp* __p) const 26629: { return (__p->*_M_f)(); } 26629: 26629: private: 26629: _Ret (_Tp::*_M_f)() const; 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: template 26629: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 26629: { 26629: public: 26629: explicit 26629: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 26629: : _M_f(__pf) { } 26629: 26629: _Ret 26629: operator()(_Tp& __r) const 26629: { return (__r.*_M_f)(); } 26629: 26629: private: 26629: _Ret (_Tp::*_M_f)(); 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: template 26629: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 26629: { 26629: public: 26629: explicit 26629: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 26629: : _M_f(__pf) { } 26629: 26629: _Ret 26629: operator()(const _Tp& __r) const 26629: { return (__r.*_M_f)(); } 26629: 26629: private: 26629: _Ret (_Tp::*_M_f)() const; 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: template 26629: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 26629: { 26629: public: 26629: explicit 26629: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 26629: : _M_f(__pf) { } 26629: 26629: _Ret 26629: operator()(_Tp* __p, _Arg __x) const 26629: { return (__p->*_M_f)(__x); } 26629: 26629: private: 26629: _Ret (_Tp::*_M_f)(_Arg); 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: template 26629: class const_mem_fun1_t : public binary_function 26629: { 26629: public: 26629: explicit 26629: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 26629: : _M_f(__pf) { } 26629: 26629: _Ret 26629: operator()(const _Tp* __p, _Arg __x) const 26629: { return (__p->*_M_f)(__x); } 26629: 26629: private: 26629: _Ret (_Tp::*_M_f)(_Arg) const; 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: template 26629: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 26629: { 26629: public: 26629: explicit 26629: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 26629: : _M_f(__pf) { } 26629: 26629: _Ret 26629: operator()(_Tp& __r, _Arg __x) const 26629: { return (__r.*_M_f)(__x); } 26629: 26629: private: 26629: _Ret (_Tp::*_M_f)(_Arg); 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: template 26629: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 26629: { 26629: public: 26629: explicit 26629: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 26629: : _M_f(__pf) { } 26629: 26629: _Ret 26629: operator()(const _Tp& __r, _Arg __x) const 26629: { return (__r.*_M_f)(__x); } 26629: 26629: private: 26629: _Ret (_Tp::*_M_f)(_Arg) const; 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 26629: inline mem_fun_t<_Ret, _Tp> 26629: mem_fun(_Ret (_Tp::*__f)()) 26629: { return mem_fun_t<_Ret, _Tp>(__f); } 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 26629: inline const_mem_fun_t<_Ret, _Tp> 26629: mem_fun(_Ret (_Tp::*__f)() const) 26629: { return const_mem_fun_t<_Ret, _Tp>(__f); } 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 26629: inline mem_fun_ref_t<_Ret, _Tp> 26629: mem_fun_ref(_Ret (_Tp::*__f)()) 26629: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 26629: inline const_mem_fun_ref_t<_Ret, _Tp> 26629: mem_fun_ref(_Ret (_Tp::*__f)() const) 26629: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 26629: inline mem_fun1_t<_Ret, _Tp, _Arg> 26629: mem_fun(_Ret (_Tp::*__f)(_Arg)) 26629: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 26629: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 26629: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 26629: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 26629: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 26629: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 26629: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 26629: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 26629: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 26629: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: 26629: template> 26629: struct __has_is_transparent 26629: { }; 26629: 26629: template 26629: struct __has_is_transparent<_Func, _SfinaeType, 26629: __void_t> 26629: { typedef void type; }; 26629: 26629: template 26629: using __has_is_transparent_t 26629: = typename __has_is_transparent<_Func, _SfinaeType>::type; 26629: 26629: 26629: 26629: } 26629: 26629: 26629: # 1 "/usr/include/c++/12/backward/binders.h" 1 3 26629: # 60 "/usr/include/c++/12/backward/binders.h" 3 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 107 "/usr/include/c++/12/backward/binders.h" 3 26629: template 26629: class binder1st 26629: : public unary_function 26629: { 26629: protected: 26629: _Operation op; 26629: typename _Operation::first_argument_type value; 26629: 26629: public: 26629: binder1st(const _Operation& __x, 26629: const typename _Operation::first_argument_type& __y) 26629: : op(__x), value(__y) { } 26629: 26629: typename _Operation::result_type 26629: operator()(const typename _Operation::second_argument_type& __x) const 26629: { return op(value, __x); } 26629: 26629: 26629: 26629: typename _Operation::result_type 26629: operator()(typename _Operation::second_argument_type& __x) const 26629: { return op(value, __x); } 26629: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 26629: 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 26629: inline binder1st<_Operation> 26629: bind1st(const _Operation& __fn, const _Tp& __x) 26629: { 26629: typedef typename _Operation::first_argument_type _Arg1_type; 26629: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 26629: } 26629: 26629: 26629: template 26629: class binder2nd 26629: : public unary_function 26629: { 26629: protected: 26629: _Operation op; 26629: typename _Operation::second_argument_type value; 26629: 26629: public: 26629: binder2nd(const _Operation& __x, 26629: const typename _Operation::second_argument_type& __y) 26629: : op(__x), value(__y) { } 26629: 26629: typename _Operation::result_type 26629: operator()(const typename _Operation::first_argument_type& __x) const 26629: { return op(__x, value); } 26629: 26629: 26629: 26629: typename _Operation::result_type 26629: operator()(typename _Operation::first_argument_type& __x) const 26629: { return op(__x, value); } 26629: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 26629: 26629: 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 26629: inline binder2nd<_Operation> 26629: bind2nd(const _Operation& __fn, const _Tp& __x) 26629: { 26629: typedef typename _Operation::second_argument_type _Arg2_type; 26629: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 26629: } 26629: 26629: 26629: 26629: } 26629: 26629: #pragma GCC diagnostic pop 26629: # 1439 "/usr/include/c++/12/bits/stl_function.h" 2 3 26629: # 40 "/usr/include/c++/12/bits/refwrap.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 52 "/usr/include/c++/12/bits/refwrap.h" 3 26629: template 26629: struct _Maybe_unary_or_binary_function { }; 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: template 26629: struct _Maybe_unary_or_binary_function<_Res, _T1> 26629: : std::unary_function<_T1, _Res> { }; 26629: 26629: 26629: template 26629: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 26629: : std::binary_function<_T1, _T2, _Res> { }; 26629: 26629: #pragma GCC diagnostic pop 26629: 26629: template 26629: struct _Mem_fn_traits; 26629: 26629: template 26629: struct _Mem_fn_traits_base 26629: { 26629: using __result_type = _Res; 26629: using __maybe_type 26629: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 26629: using __arity = integral_constant; 26629: }; 26629: # 103 "/usr/include/c++/12/bits/refwrap.h" 3 26629: 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; }; 26629: 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; }; 26629: 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; }; 26629: 26629: 26629: 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; }; 26629: 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; }; 26629: 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; }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: struct _Maybe_get_result_type 26629: { }; 26629: 26629: template 26629: struct _Maybe_get_result_type<_Functor, 26629: __void_t> 26629: { typedef typename _Functor::result_type result_type; }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Weak_result_type_impl 26629: : _Maybe_get_result_type<_Functor> 26629: { }; 26629: 26629: 26629: template 26629: struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> 26629: { typedef _Res result_type; }; 26629: 26629: 26629: template 26629: struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> 26629: { typedef _Res result_type; }; 26629: 26629: 26629: template 26629: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> 26629: { typedef _Res result_type; }; 26629: 26629: 26629: template 26629: struct 26629: _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> 26629: { typedef _Res result_type; }; 26629: 26629: 26629: template::value> 26629: struct _Weak_result_type_memfun 26629: : _Weak_result_type_impl<_Functor> 26629: { }; 26629: 26629: 26629: template 26629: struct _Weak_result_type_memfun<_MemFunPtr, true> 26629: { 26629: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 26629: }; 26629: 26629: 26629: template 26629: struct _Weak_result_type_memfun<_Func _Class::*, false> 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Weak_result_type 26629: : _Weak_result_type_memfun::type> 26629: { }; 26629: 26629: 26629: 26629: template> 26629: struct _Refwrap_base_arg1 26629: { }; 26629: 26629: 26629: template 26629: struct _Refwrap_base_arg1<_Tp, 26629: __void_t> 26629: { 26629: typedef typename _Tp::argument_type argument_type; 26629: }; 26629: 26629: 26629: template> 26629: struct _Refwrap_base_arg2 26629: { }; 26629: 26629: 26629: template 26629: struct _Refwrap_base_arg2<_Tp, 26629: __void_t> 26629: { 26629: typedef typename _Tp::first_argument_type first_argument_type; 26629: typedef typename _Tp::second_argument_type second_argument_type; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Reference_wrapper_base 26629: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 26629: { }; 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: template 26629: struct _Reference_wrapper_base<_Res(_T1) noexcept (_NE)> 26629: : unary_function<_T1, _Res> 26629: { }; 26629: 26629: template 26629: struct _Reference_wrapper_base<_Res(_T1) const> 26629: : unary_function<_T1, _Res> 26629: { }; 26629: 26629: template 26629: struct _Reference_wrapper_base<_Res(_T1) volatile> 26629: : unary_function<_T1, _Res> 26629: { }; 26629: 26629: template 26629: struct _Reference_wrapper_base<_Res(_T1) const volatile> 26629: : unary_function<_T1, _Res> 26629: { }; 26629: 26629: 26629: template 26629: struct _Reference_wrapper_base<_Res(_T1, _T2) noexcept (_NE)> 26629: : binary_function<_T1, _T2, _Res> 26629: { }; 26629: 26629: template 26629: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 26629: : binary_function<_T1, _T2, _Res> 26629: { }; 26629: 26629: template 26629: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 26629: : binary_function<_T1, _T2, _Res> 26629: { }; 26629: 26629: template 26629: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 26629: : binary_function<_T1, _T2, _Res> 26629: { }; 26629: 26629: 26629: template 26629: struct _Reference_wrapper_base<_Res(*)(_T1) noexcept (_NE)> 26629: : unary_function<_T1, _Res> 26629: { }; 26629: 26629: 26629: template 26629: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) noexcept (_NE)> 26629: : binary_function<_T1, _T2, _Res> 26629: { }; 26629: 26629: template::value> 26629: struct _Reference_wrapper_base_memfun 26629: : _Reference_wrapper_base<_Tp> 26629: { }; 26629: 26629: template 26629: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 26629: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 26629: { 26629: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 26629: }; 26629: #pragma GCC diagnostic pop 26629: # 302 "/usr/include/c++/12/bits/refwrap.h" 3 26629: template 26629: class reference_wrapper 26629: 26629: 26629: 26629: : public _Reference_wrapper_base_memfun::type> 26629: 26629: { 26629: _Tp* _M_data; 26629: 26629: 26629: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 26629: 26629: static void _S_fun(_Tp&&) = delete; 26629: 26629: template> 26629: using __not_same 26629: = typename enable_if::value>::type; 26629: 26629: public: 26629: typedef _Tp type; 26629: 26629: 26629: 26629: 26629: template, typename 26629: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 26629: 26629: reference_wrapper(_Up&& __uref) 26629: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 26629: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 26629: { } 26629: 26629: reference_wrapper(const reference_wrapper&) = default; 26629: 26629: reference_wrapper& 26629: operator=(const reference_wrapper&) = default; 26629: 26629: 26629: operator _Tp&() const noexcept 26629: { return this->get(); } 26629: 26629: 26629: _Tp& 26629: get() const noexcept 26629: { return *_M_data; } 26629: 26629: template 26629: 26629: typename result_of<_Tp&(_Args&&...)>::type 26629: operator()(_Args&&... __args) const 26629: { 26629: 26629: 26629: 26629: 26629: return std::__invoke(get(), std::forward<_Args>(__args)...); 26629: } 26629: }; 26629: 26629: 26629: template 26629: reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline reference_wrapper<_Tp> 26629: ref(_Tp& __t) noexcept 26629: { return reference_wrapper<_Tp>(__t); } 26629: 26629: 26629: template 26629: 26629: inline reference_wrapper 26629: cref(const _Tp& __t) noexcept 26629: { return reference_wrapper(__t); } 26629: 26629: template 26629: void ref(const _Tp&&) = delete; 26629: 26629: template 26629: void cref(const _Tp&&) = delete; 26629: 26629: 26629: template 26629: 26629: inline reference_wrapper<_Tp> 26629: ref(reference_wrapper<_Tp> __t) noexcept 26629: { return __t; } 26629: 26629: 26629: template 26629: 26629: inline reference_wrapper 26629: cref(reference_wrapper<_Tp> __t) noexcept 26629: { return { __t.get() }; } 26629: 26629: 26629: 26629: 26629: } 26629: # 66 "/usr/include/c++/12/deque" 2 3 26629: # 1 "/usr/include/c++/12/bits/range_access.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/range_access.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/range_access.h" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: begin(_Container& __cont) -> decltype(__cont.begin()) 26629: { return __cont.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: begin(const _Container& __cont) -> decltype(__cont.begin()) 26629: { return __cont.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: end(_Container& __cont) -> decltype(__cont.end()) 26629: { return __cont.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: end(const _Container& __cont) -> decltype(__cont.end()) 26629: { return __cont.end(); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr _Tp* 26629: begin(_Tp (&__arr)[_Nm]) noexcept 26629: { return __arr; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr _Tp* 26629: end(_Tp (&__arr)[_Nm]) noexcept 26629: { return __arr + _Nm; } 26629: 26629: 26629: 26629: template class valarray; 26629: 26629: template _Tp* begin(valarray<_Tp>&) noexcept; 26629: template const _Tp* begin(const valarray<_Tp>&) noexcept; 26629: template _Tp* end(valarray<_Tp>&) noexcept; 26629: template const _Tp* end(const valarray<_Tp>&) noexcept; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: constexpr auto 26629: cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) 26629: -> decltype(std::begin(__cont)) 26629: { return std::begin(__cont); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: constexpr auto 26629: cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) 26629: -> decltype(std::end(__cont)) 26629: { return std::end(__cont); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: rbegin(_Container& __cont) -> decltype(__cont.rbegin()) 26629: { return __cont.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) 26629: { return __cont.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: rend(_Container& __cont) -> decltype(__cont.rend()) 26629: { return __cont.rend(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: rend(const _Container& __cont) -> decltype(__cont.rend()) 26629: { return __cont.rend(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr reverse_iterator<_Tp*> 26629: rbegin(_Tp (&__arr)[_Nm]) noexcept 26629: { return reverse_iterator<_Tp*>(__arr + _Nm); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr reverse_iterator<_Tp*> 26629: rend(_Tp (&__arr)[_Nm]) noexcept 26629: { return reverse_iterator<_Tp*>(__arr); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr reverse_iterator 26629: rbegin(initializer_list<_Tp> __il) noexcept 26629: { return reverse_iterator(__il.end()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr reverse_iterator 26629: rend(initializer_list<_Tp> __il) noexcept 26629: { return reverse_iterator(__il.begin()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) 26629: { return std::rbegin(__cont); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline constexpr auto 26629: crend(const _Container& __cont) -> decltype(std::rend(__cont)) 26629: { return std::rend(__cont); } 26629: # 261 "/usr/include/c++/12/bits/range_access.h" 3 26629: template 26629: [[nodiscard]] 26629: constexpr auto 26629: size(const _Container& __cont) noexcept(noexcept(__cont.size())) 26629: -> decltype(__cont.size()) 26629: { return __cont.size(); } 26629: 26629: 26629: 26629: 26629: template 26629: [[nodiscard]] 26629: constexpr size_t 26629: size(const _Tp (&)[_Nm]) noexcept 26629: { return _Nm; } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[nodiscard]] constexpr auto 26629: empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) 26629: -> decltype(__cont.empty()) 26629: { return __cont.empty(); } 26629: 26629: 26629: 26629: 26629: template 26629: [[nodiscard]] constexpr bool 26629: empty(const _Tp (&)[_Nm]) noexcept 26629: { return false; } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[nodiscard]] constexpr bool 26629: empty(initializer_list<_Tp> __il) noexcept 26629: { return __il.size() == 0;} 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[nodiscard]] 26629: constexpr auto 26629: data(_Container& __cont) noexcept(noexcept(__cont.data())) 26629: -> decltype(__cont.data()) 26629: { return __cont.data(); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[nodiscard]] 26629: constexpr auto 26629: data(const _Container& __cont) noexcept(noexcept(__cont.data())) 26629: -> decltype(__cont.data()) 26629: { return __cont.data(); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[nodiscard]] 26629: constexpr _Tp* 26629: data(_Tp (&__array)[_Nm]) noexcept 26629: { return __array; } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[nodiscard]] 26629: constexpr const _Tp* 26629: data(initializer_list<_Tp> __il) noexcept 26629: { return __il.begin(); } 26629: # 367 "/usr/include/c++/12/bits/range_access.h" 3 26629: 26629: } 26629: # 67 "/usr/include/c++/12/deque" 2 3 26629: # 1 "/usr/include/c++/12/bits/deque.tcc" 1 3 26629: # 61 "/usr/include/c++/12/bits/deque.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_default_initialize() 26629: { 26629: _Map_pointer __cur; 26629: try 26629: { 26629: for (__cur = this->_M_impl._M_start._M_node; 26629: __cur < this->_M_impl._M_finish._M_node; 26629: ++__cur) 26629: std::__uninitialized_default_a(*__cur, *__cur + _S_buffer_size(), 26629: _M_get_Tp_allocator()); 26629: std::__uninitialized_default_a(this->_M_impl._M_finish._M_first, 26629: this->_M_impl._M_finish._M_cur, 26629: _M_get_Tp_allocator()); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 26629: _M_get_Tp_allocator()); 26629: throw; 26629: } 26629: } 26629: 26629: 26629: template 26629: deque<_Tp, _Alloc>& 26629: deque<_Tp, _Alloc>:: 26629: operator=(const deque& __x) 26629: { 26629: if (std::__addressof(__x) != this) 26629: { 26629: 26629: if (_Alloc_traits::_S_propagate_on_copy_assign()) 26629: { 26629: if (!_Alloc_traits::_S_always_equal() 26629: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 26629: { 26629: 26629: 26629: _M_replace_map(__x, __x.get_allocator()); 26629: std::__alloc_on_copy(_M_get_Tp_allocator(), 26629: __x._M_get_Tp_allocator()); 26629: return *this; 26629: } 26629: std::__alloc_on_copy(_M_get_Tp_allocator(), 26629: __x._M_get_Tp_allocator()); 26629: } 26629: 26629: const size_type __len = size(); 26629: if (__len >= __x.size()) 26629: _M_erase_at_end(std::copy(__x.begin(), __x.end(), 26629: this->_M_impl._M_start)); 26629: else 26629: { 26629: const_iterator __mid = __x.begin() + difference_type(__len); 26629: std::copy(__x.begin(), __mid, this->_M_impl._M_start); 26629: _M_range_insert_aux(this->_M_impl._M_finish, __mid, __x.end(), 26629: std::random_access_iterator_tag()); 26629: } 26629: } 26629: return *this; 26629: } 26629: 26629: 26629: template 26629: template 26629: 26629: typename deque<_Tp, _Alloc>::reference 26629: 26629: 26629: 26629: deque<_Tp, _Alloc>:: 26629: emplace_front(_Args&&... __args) 26629: { 26629: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 26629: { 26629: _Alloc_traits::construct(this->_M_impl, 26629: this->_M_impl._M_start._M_cur - 1, 26629: std::forward<_Args>(__args)...); 26629: --this->_M_impl._M_start._M_cur; 26629: } 26629: else 26629: _M_push_front_aux(std::forward<_Args>(__args)...); 26629: 26629: return front(); 26629: 26629: } 26629: 26629: template 26629: template 26629: 26629: typename deque<_Tp, _Alloc>::reference 26629: 26629: 26629: 26629: deque<_Tp, _Alloc>:: 26629: emplace_back(_Args&&... __args) 26629: { 26629: if (this->_M_impl._M_finish._M_cur 26629: != this->_M_impl._M_finish._M_last - 1) 26629: { 26629: _Alloc_traits::construct(this->_M_impl, 26629: this->_M_impl._M_finish._M_cur, 26629: std::forward<_Args>(__args)...); 26629: ++this->_M_impl._M_finish._M_cur; 26629: } 26629: else 26629: _M_push_back_aux(std::forward<_Args>(__args)...); 26629: 26629: return back(); 26629: 26629: } 26629: 26629: 26629: 26629: template 26629: template 26629: typename deque<_Tp, _Alloc>::iterator 26629: deque<_Tp, _Alloc>:: 26629: emplace(const_iterator __position, _Args&&... __args) 26629: { 26629: if (__position._M_cur == this->_M_impl._M_start._M_cur) 26629: { 26629: emplace_front(std::forward<_Args>(__args)...); 26629: return this->_M_impl._M_start; 26629: } 26629: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 26629: { 26629: emplace_back(std::forward<_Args>(__args)...); 26629: iterator __tmp = this->_M_impl._M_finish; 26629: --__tmp; 26629: return __tmp; 26629: } 26629: else 26629: return _M_insert_aux(__position._M_const_cast(), 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: 26629: template 26629: typename deque<_Tp, _Alloc>::iterator 26629: deque<_Tp, _Alloc>:: 26629: 26629: insert(const_iterator __position, const value_type& __x) 26629: 26629: 26629: 26629: { 26629: if (__position._M_cur == this->_M_impl._M_start._M_cur) 26629: { 26629: push_front(__x); 26629: return this->_M_impl._M_start; 26629: } 26629: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 26629: { 26629: push_back(__x); 26629: iterator __tmp = this->_M_impl._M_finish; 26629: --__tmp; 26629: return __tmp; 26629: } 26629: else 26629: return _M_insert_aux(__position._M_const_cast(), __x); 26629: } 26629: 26629: template 26629: typename deque<_Tp, _Alloc>::iterator 26629: deque<_Tp, _Alloc>:: 26629: _M_erase(iterator __position) 26629: { 26629: iterator __next = __position; 26629: ++__next; 26629: const difference_type __index = __position - begin(); 26629: if (static_cast(__index) < (size() >> 1)) 26629: { 26629: if (__position != begin()) 26629: std::move_backward(begin(), __position, __next); 26629: pop_front(); 26629: } 26629: else 26629: { 26629: if (__next != end()) 26629: std::move(__next, end(), __position); 26629: pop_back(); 26629: } 26629: return begin() + __index; 26629: } 26629: 26629: template 26629: typename deque<_Tp, _Alloc>::iterator 26629: deque<_Tp, _Alloc>:: 26629: _M_erase(iterator __first, iterator __last) 26629: { 26629: if (__first == __last) 26629: return __first; 26629: else if (__first == begin() && __last == end()) 26629: { 26629: clear(); 26629: return end(); 26629: } 26629: else 26629: { 26629: const difference_type __n = __last - __first; 26629: const difference_type __elems_before = __first - begin(); 26629: if (static_cast(__elems_before) <= (size() - __n) / 2) 26629: { 26629: if (__first != begin()) 26629: std::move_backward(begin(), __first, __last); 26629: _M_erase_at_begin(begin() + __n); 26629: } 26629: else 26629: { 26629: if (__last != end()) 26629: std::move(__last, end(), __first); 26629: _M_erase_at_end(end() - __n); 26629: } 26629: return begin() + __elems_before; 26629: } 26629: } 26629: 26629: template 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_assign_aux(_InputIterator __first, _InputIterator __last, 26629: std::input_iterator_tag) 26629: { 26629: iterator __cur = begin(); 26629: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 26629: *__cur = *__first; 26629: if (__first == __last) 26629: _M_erase_at_end(__cur); 26629: else 26629: _M_range_insert_aux(end(), __first, __last, 26629: std::__iterator_category(__first)); 26629: } 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) 26629: { 26629: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 26629: { 26629: iterator __new_start = _M_reserve_elements_at_front(__n); 26629: try 26629: { 26629: std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, 26629: __x, _M_get_Tp_allocator()); 26629: this->_M_impl._M_start = __new_start; 26629: } 26629: catch(...) 26629: { 26629: _M_destroy_nodes(__new_start._M_node, 26629: this->_M_impl._M_start._M_node); 26629: throw; 26629: } 26629: } 26629: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 26629: { 26629: iterator __new_finish = _M_reserve_elements_at_back(__n); 26629: try 26629: { 26629: std::__uninitialized_fill_a(this->_M_impl._M_finish, 26629: __new_finish, __x, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish = __new_finish; 26629: } 26629: catch(...) 26629: { 26629: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 26629: __new_finish._M_node + 1); 26629: throw; 26629: } 26629: } 26629: else 26629: _M_insert_aux(__pos, __n, __x); 26629: } 26629: 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_default_append(size_type __n) 26629: { 26629: if (__n) 26629: { 26629: iterator __new_finish = _M_reserve_elements_at_back(__n); 26629: try 26629: { 26629: std::__uninitialized_default_a(this->_M_impl._M_finish, 26629: __new_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish = __new_finish; 26629: } 26629: catch(...) 26629: { 26629: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 26629: __new_finish._M_node + 1); 26629: throw; 26629: } 26629: } 26629: } 26629: 26629: template 26629: bool 26629: deque<_Tp, _Alloc>:: 26629: _M_shrink_to_fit() 26629: { 26629: const difference_type __front_capacity 26629: = (this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first); 26629: if (__front_capacity == 0) 26629: return false; 26629: 26629: const difference_type __back_capacity 26629: = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur); 26629: if (__front_capacity + __back_capacity < _S_buffer_size()) 26629: return false; 26629: 26629: return std::__shrink_to_fit_aux::_S_do_it(*this); 26629: } 26629: 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_fill_initialize(const value_type& __value) 26629: { 26629: _Map_pointer __cur; 26629: try 26629: { 26629: for (__cur = this->_M_impl._M_start._M_node; 26629: __cur < this->_M_impl._M_finish._M_node; 26629: ++__cur) 26629: std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), 26629: __value, _M_get_Tp_allocator()); 26629: std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, 26629: this->_M_impl._M_finish._M_cur, 26629: __value, _M_get_Tp_allocator()); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 26629: _M_get_Tp_allocator()); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_range_initialize(_InputIterator __first, _InputIterator __last, 26629: std::input_iterator_tag) 26629: { 26629: this->_M_initialize_map(0); 26629: try 26629: { 26629: for (; __first != __last; ++__first) 26629: 26629: emplace_back(*__first); 26629: 26629: 26629: 26629: } 26629: catch(...) 26629: { 26629: clear(); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 26629: std::forward_iterator_tag) 26629: { 26629: const size_type __n = std::distance(__first, __last); 26629: this->_M_initialize_map(_S_check_init_len(__n, _M_get_Tp_allocator())); 26629: 26629: _Map_pointer __cur_node; 26629: try 26629: { 26629: for (__cur_node = this->_M_impl._M_start._M_node; 26629: __cur_node < this->_M_impl._M_finish._M_node; 26629: ++__cur_node) 26629: { 26629: if (__n < _S_buffer_size()) 26629: __builtin_unreachable(); 26629: 26629: _ForwardIterator __mid = __first; 26629: std::advance(__mid, _S_buffer_size()); 26629: std::__uninitialized_copy_a(__first, __mid, *__cur_node, 26629: _M_get_Tp_allocator()); 26629: __first = __mid; 26629: } 26629: std::__uninitialized_copy_a(__first, __last, 26629: this->_M_impl._M_finish._M_first, 26629: _M_get_Tp_allocator()); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(this->_M_impl._M_start, 26629: iterator(*__cur_node, __cur_node), 26629: _M_get_Tp_allocator()); 26629: throw; 26629: } 26629: } 26629: 26629: 26629: template 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_push_back_aux(_Args&&... __args) 26629: 26629: 26629: 26629: 26629: 26629: { 26629: if (size() == max_size()) 26629: __throw_length_error( 26629: ("cannot create std::deque larger than max_size()")); 26629: 26629: _M_reserve_map_at_back(); 26629: *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); 26629: try 26629: { 26629: 26629: _Alloc_traits::construct(this->_M_impl, 26629: this->_M_impl._M_finish._M_cur, 26629: std::forward<_Args>(__args)...); 26629: 26629: 26629: 26629: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node 26629: + 1); 26629: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; 26629: } 26629: catch(...) 26629: { 26629: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); 26629: throw; 26629: } 26629: } 26629: 26629: 26629: template 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_push_front_aux(_Args&&... __args) 26629: 26629: 26629: 26629: 26629: 26629: { 26629: if (size() == max_size()) 26629: __throw_length_error( 26629: ("cannot create std::deque larger than max_size()")); 26629: 26629: _M_reserve_map_at_front(); 26629: *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); 26629: try 26629: { 26629: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node 26629: - 1); 26629: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; 26629: 26629: _Alloc_traits::construct(this->_M_impl, 26629: this->_M_impl._M_start._M_cur, 26629: std::forward<_Args>(__args)...); 26629: 26629: 26629: 26629: } 26629: catch(...) 26629: { 26629: ++this->_M_impl._M_start; 26629: _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); 26629: throw; 26629: } 26629: } 26629: 26629: 26629: template 26629: void deque<_Tp, _Alloc>:: 26629: _M_pop_back_aux() 26629: { 26629: _M_deallocate_node(this->_M_impl._M_finish._M_first); 26629: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); 26629: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; 26629: _Alloc_traits::destroy(_M_get_Tp_allocator(), 26629: this->_M_impl._M_finish._M_cur); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: void deque<_Tp, _Alloc>:: 26629: _M_pop_front_aux() 26629: { 26629: _Alloc_traits::destroy(_M_get_Tp_allocator(), 26629: this->_M_impl._M_start._M_cur); 26629: _M_deallocate_node(this->_M_impl._M_start._M_first); 26629: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); 26629: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; 26629: } 26629: 26629: template 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_range_insert_aux(iterator __pos, 26629: _InputIterator __first, _InputIterator __last, 26629: std::input_iterator_tag) 26629: { std::copy(__first, __last, std::inserter(*this, __pos)); } 26629: 26629: template 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_range_insert_aux(iterator __pos, 26629: _ForwardIterator __first, _ForwardIterator __last, 26629: std::forward_iterator_tag) 26629: { 26629: const size_type __n = std::distance(__first, __last); 26629: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 26629: { 26629: iterator __new_start = _M_reserve_elements_at_front(__n); 26629: try 26629: { 26629: std::__uninitialized_copy_a(__first, __last, __new_start, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_start = __new_start; 26629: } 26629: catch(...) 26629: { 26629: _M_destroy_nodes(__new_start._M_node, 26629: this->_M_impl._M_start._M_node); 26629: throw; 26629: } 26629: } 26629: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 26629: { 26629: iterator __new_finish = _M_reserve_elements_at_back(__n); 26629: try 26629: { 26629: std::__uninitialized_copy_a(__first, __last, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish = __new_finish; 26629: } 26629: catch(...) 26629: { 26629: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 26629: __new_finish._M_node + 1); 26629: throw; 26629: } 26629: } 26629: else 26629: _M_insert_aux(__pos, __first, __last, __n); 26629: } 26629: 26629: template 26629: 26629: template 26629: typename deque<_Tp, _Alloc>::iterator 26629: deque<_Tp, _Alloc>:: 26629: _M_insert_aux(iterator __pos, _Args&&... __args) 26629: { 26629: value_type __x_copy(std::forward<_Args>(__args)...); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: difference_type __index = __pos - this->_M_impl._M_start; 26629: if (static_cast(__index) < size() / 2) 26629: { 26629: push_front(std::move(front())); 26629: iterator __front1 = this->_M_impl._M_start; 26629: ++__front1; 26629: iterator __front2 = __front1; 26629: ++__front2; 26629: __pos = this->_M_impl._M_start + __index; 26629: iterator __pos1 = __pos; 26629: ++__pos1; 26629: std::move(__front2, __pos1, __front1); 26629: } 26629: else 26629: { 26629: push_back(std::move(back())); 26629: iterator __back1 = this->_M_impl._M_finish; 26629: --__back1; 26629: iterator __back2 = __back1; 26629: --__back2; 26629: __pos = this->_M_impl._M_start + __index; 26629: std::move_backward(__pos, __back2, __back1); 26629: } 26629: *__pos = std::move(__x_copy); 26629: return __pos; 26629: } 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) 26629: { 26629: const difference_type __elems_before = __pos - this->_M_impl._M_start; 26629: const size_type __length = this->size(); 26629: value_type __x_copy = __x; 26629: if (__elems_before < difference_type(__length / 2)) 26629: { 26629: iterator __new_start = _M_reserve_elements_at_front(__n); 26629: iterator __old_start = this->_M_impl._M_start; 26629: __pos = this->_M_impl._M_start + __elems_before; 26629: try 26629: { 26629: if (__elems_before >= difference_type(__n)) 26629: { 26629: iterator __start_n = (this->_M_impl._M_start 26629: + difference_type(__n)); 26629: std::__uninitialized_move_a(this->_M_impl._M_start, 26629: __start_n, __new_start, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_start = __new_start; 26629: std::move(__start_n, __pos, __old_start); 26629: std::fill(__pos - difference_type(__n), __pos, __x_copy); 26629: } 26629: else 26629: { 26629: std::__uninitialized_move_fill(this->_M_impl._M_start, 26629: __pos, __new_start, 26629: this->_M_impl._M_start, 26629: __x_copy, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_start = __new_start; 26629: std::fill(__old_start, __pos, __x_copy); 26629: } 26629: } 26629: catch(...) 26629: { 26629: _M_destroy_nodes(__new_start._M_node, 26629: this->_M_impl._M_start._M_node); 26629: throw; 26629: } 26629: } 26629: else 26629: { 26629: iterator __new_finish = _M_reserve_elements_at_back(__n); 26629: iterator __old_finish = this->_M_impl._M_finish; 26629: const difference_type __elems_after = 26629: difference_type(__length) - __elems_before; 26629: __pos = this->_M_impl._M_finish - __elems_after; 26629: try 26629: { 26629: if (__elems_after > difference_type(__n)) 26629: { 26629: iterator __finish_n = (this->_M_impl._M_finish 26629: - difference_type(__n)); 26629: std::__uninitialized_move_a(__finish_n, 26629: this->_M_impl._M_finish, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish = __new_finish; 26629: std::move_backward(__pos, __finish_n, __old_finish); 26629: std::fill(__pos, __pos + difference_type(__n), __x_copy); 26629: } 26629: else 26629: { 26629: std::__uninitialized_fill_move(this->_M_impl._M_finish, 26629: __pos + difference_type(__n), 26629: __x_copy, __pos, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish = __new_finish; 26629: std::fill(__pos, __old_finish, __x_copy); 26629: } 26629: } 26629: catch(...) 26629: { 26629: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 26629: __new_finish._M_node + 1); 26629: throw; 26629: } 26629: } 26629: } 26629: 26629: template 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_insert_aux(iterator __pos, 26629: _ForwardIterator __first, _ForwardIterator __last, 26629: size_type __n) 26629: { 26629: const difference_type __elemsbefore = __pos - this->_M_impl._M_start; 26629: const size_type __length = size(); 26629: if (static_cast(__elemsbefore) < __length / 2) 26629: { 26629: iterator __new_start = _M_reserve_elements_at_front(__n); 26629: iterator __old_start = this->_M_impl._M_start; 26629: __pos = this->_M_impl._M_start + __elemsbefore; 26629: try 26629: { 26629: if (__elemsbefore >= difference_type(__n)) 26629: { 26629: iterator __start_n = (this->_M_impl._M_start 26629: + difference_type(__n)); 26629: std::__uninitialized_move_a(this->_M_impl._M_start, 26629: __start_n, __new_start, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_start = __new_start; 26629: std::move(__start_n, __pos, __old_start); 26629: std::copy(__first, __last, __pos - difference_type(__n)); 26629: } 26629: else 26629: { 26629: _ForwardIterator __mid = __first; 26629: std::advance(__mid, difference_type(__n) - __elemsbefore); 26629: std::__uninitialized_move_copy(this->_M_impl._M_start, 26629: __pos, __first, __mid, 26629: __new_start, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_start = __new_start; 26629: std::copy(__mid, __last, __old_start); 26629: } 26629: } 26629: catch(...) 26629: { 26629: _M_destroy_nodes(__new_start._M_node, 26629: this->_M_impl._M_start._M_node); 26629: throw; 26629: } 26629: } 26629: else 26629: { 26629: iterator __new_finish = _M_reserve_elements_at_back(__n); 26629: iterator __old_finish = this->_M_impl._M_finish; 26629: const difference_type __elemsafter = 26629: difference_type(__length) - __elemsbefore; 26629: __pos = this->_M_impl._M_finish - __elemsafter; 26629: try 26629: { 26629: if (__elemsafter > difference_type(__n)) 26629: { 26629: iterator __finish_n = (this->_M_impl._M_finish 26629: - difference_type(__n)); 26629: std::__uninitialized_move_a(__finish_n, 26629: this->_M_impl._M_finish, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish = __new_finish; 26629: std::move_backward(__pos, __finish_n, __old_finish); 26629: std::copy(__first, __last, __pos); 26629: } 26629: else 26629: { 26629: _ForwardIterator __mid = __first; 26629: std::advance(__mid, __elemsafter); 26629: std::__uninitialized_copy_move(__mid, __last, __pos, 26629: this->_M_impl._M_finish, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish = __new_finish; 26629: std::copy(__first, __mid, __pos); 26629: } 26629: } 26629: catch(...) 26629: { 26629: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 26629: __new_finish._M_node + 1); 26629: throw; 26629: } 26629: } 26629: } 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_destroy_data_aux(iterator __first, iterator __last) 26629: { 26629: for (_Map_pointer __node = __first._M_node + 1; 26629: __node < __last._M_node; ++__node) 26629: std::_Destroy(*__node, *__node + _S_buffer_size(), 26629: _M_get_Tp_allocator()); 26629: 26629: if (__first._M_node != __last._M_node) 26629: { 26629: std::_Destroy(__first._M_cur, __first._M_last, 26629: _M_get_Tp_allocator()); 26629: std::_Destroy(__last._M_first, __last._M_cur, 26629: _M_get_Tp_allocator()); 26629: } 26629: else 26629: std::_Destroy(__first._M_cur, __last._M_cur, 26629: _M_get_Tp_allocator()); 26629: } 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_new_elements_at_front(size_type __new_elems) 26629: { 26629: if (this->max_size() - this->size() < __new_elems) 26629: __throw_length_error(("deque::_M_new_elements_at_front")); 26629: 26629: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 26629: / _S_buffer_size()); 26629: _M_reserve_map_at_front(__new_nodes); 26629: size_type __i; 26629: try 26629: { 26629: for (__i = 1; __i <= __new_nodes; ++__i) 26629: *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); 26629: } 26629: catch(...) 26629: { 26629: for (size_type __j = 1; __j < __i; ++__j) 26629: _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_new_elements_at_back(size_type __new_elems) 26629: { 26629: if (this->max_size() - this->size() < __new_elems) 26629: __throw_length_error(("deque::_M_new_elements_at_back")); 26629: 26629: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 26629: / _S_buffer_size()); 26629: _M_reserve_map_at_back(__new_nodes); 26629: size_type __i; 26629: try 26629: { 26629: for (__i = 1; __i <= __new_nodes; ++__i) 26629: *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); 26629: } 26629: catch(...) 26629: { 26629: for (size_type __j = 1; __j < __i; ++__j) 26629: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: void 26629: deque<_Tp, _Alloc>:: 26629: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) 26629: { 26629: const size_type __old_num_nodes 26629: = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; 26629: const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; 26629: 26629: _Map_pointer __new_nstart; 26629: if (this->_M_impl._M_map_size > 2 * __new_num_nodes) 26629: { 26629: __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size 26629: - __new_num_nodes) / 2 26629: + (__add_at_front ? __nodes_to_add : 0); 26629: if (__new_nstart < this->_M_impl._M_start._M_node) 26629: std::copy(this->_M_impl._M_start._M_node, 26629: this->_M_impl._M_finish._M_node + 1, 26629: __new_nstart); 26629: else 26629: std::copy_backward(this->_M_impl._M_start._M_node, 26629: this->_M_impl._M_finish._M_node + 1, 26629: __new_nstart + __old_num_nodes); 26629: } 26629: else 26629: { 26629: size_type __new_map_size = this->_M_impl._M_map_size 26629: + std::max(this->_M_impl._M_map_size, 26629: __nodes_to_add) + 2; 26629: 26629: _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); 26629: __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 26629: + (__add_at_front ? __nodes_to_add : 0); 26629: std::copy(this->_M_impl._M_start._M_node, 26629: this->_M_impl._M_finish._M_node + 1, 26629: __new_nstart); 26629: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 26629: 26629: this->_M_impl._M_map = __new_map; 26629: this->_M_impl._M_map_size = __new_map_size; 26629: } 26629: 26629: this->_M_impl._M_start._M_set_node(__new_nstart); 26629: this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: void 26629: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __first, 26629: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __last, 26629: const _VTp& __value) 26629: { 26629: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 26629: if (__first._M_node != __last._M_node) 26629: { 26629: std::__fill_a1(__first._M_cur, __first._M_last, __value); 26629: 26629: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 26629: __node < __last._M_node; ++__node) 26629: std::__fill_a1(*__node, *__node + _Iter::_S_buffer_size(), __value); 26629: 26629: std::__fill_a1(__last._M_first, __last._M_cur, __value); 26629: } 26629: else 26629: std::__fill_a1(__first._M_cur, __last._M_cur, __value); 26629: } 26629: 26629: template 26629: _OI 26629: __copy_move_dit(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 26629: _OI __result) 26629: { 26629: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 26629: if (__first._M_node != __last._M_node) 26629: { 26629: __result 26629: = std::__copy_move_a1<_IsMove>(__first._M_cur, __first._M_last, 26629: __result); 26629: 26629: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 26629: __node != __last._M_node; ++__node) 26629: __result 26629: = std::__copy_move_a1<_IsMove>(*__node, 26629: *__node + _Iter::_S_buffer_size(), 26629: __result); 26629: 26629: return std::__copy_move_a1<_IsMove>(__last._M_first, __last._M_cur, 26629: __result); 26629: } 26629: 26629: return std::__copy_move_a1<_IsMove>(__first._M_cur, __last._M_cur, 26629: __result); 26629: } 26629: 26629: template 26629: _OI 26629: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 26629: _OI __result) 26629: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 26629: 26629: template 26629: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 26629: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 26629: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 26629: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 26629: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_random_access_iter<_II>::__value, 26629: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 26629: __copy_move_a1(_II __first, _II __last, 26629: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 26629: { 26629: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 26629: typedef typename _Iter::difference_type difference_type; 26629: 26629: difference_type __len = __last - __first; 26629: while (__len > 0) 26629: { 26629: const difference_type __clen 26629: = std::min(__len, __result._M_last - __result._M_cur); 26629: std::__copy_move_a1<_IsMove>(__first, __first + __clen, 26629: __result._M_cur); 26629: 26629: __first += __clen; 26629: __result += __clen; 26629: __len -= __clen; 26629: } 26629: 26629: return __result; 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_char<_CharT>::__value, 26629: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 26629: __copy_move_a2( 26629: istreambuf_iterator<_CharT, char_traits<_CharT> > __first, 26629: istreambuf_iterator<_CharT, char_traits<_CharT> > __last, 26629: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result) 26629: { 26629: if (__first == __last) 26629: return __result; 26629: 26629: for (;;) 26629: { 26629: const std::ptrdiff_t __len = __result._M_last - __result._M_cur; 26629: const std::ptrdiff_t __nb 26629: = std::__copy_n_a(__first, __len, __result._M_cur, false) 26629: - __result._M_cur; 26629: __result += __nb; 26629: 26629: if (__nb != __len) 26629: break; 26629: } 26629: 26629: return __result; 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_char<_CharT>::__value, 26629: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 26629: __copy_n_a( 26629: istreambuf_iterator<_CharT, char_traits<_CharT> > __it, _Size __size, 26629: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result, 26629: bool __strict) 26629: { 26629: if (__size == 0) 26629: return __result; 26629: 26629: do 26629: { 26629: const _Size __len 26629: = std::min<_Size>(__result._M_last - __result._M_cur, __size); 26629: std::__copy_n_a(__it, __len, __result._M_cur, __strict); 26629: __result += __len; 26629: __size -= __len; 26629: } 26629: while (__size != 0); 26629: return __result; 26629: } 26629: 26629: template 26629: _OI 26629: __copy_move_backward_dit( 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 26629: _OI __result) 26629: { 26629: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 26629: if (__first._M_node != __last._M_node) 26629: { 26629: __result = std::__copy_move_backward_a1<_IsMove>( 26629: __last._M_first, __last._M_cur, __result); 26629: 26629: for (typename _Iter::_Map_pointer __node = __last._M_node - 1; 26629: __node != __first._M_node; --__node) 26629: __result = std::__copy_move_backward_a1<_IsMove>( 26629: *__node, *__node + _Iter::_S_buffer_size(), __result); 26629: 26629: return std::__copy_move_backward_a1<_IsMove>( 26629: __first._M_cur, __first._M_last, __result); 26629: } 26629: 26629: return std::__copy_move_backward_a1<_IsMove>( 26629: __first._M_cur, __last._M_cur, __result); 26629: } 26629: 26629: template 26629: _OI 26629: __copy_move_backward_a1( 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 26629: _OI __result) 26629: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 26629: 26629: template 26629: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 26629: __copy_move_backward_a1( 26629: std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 26629: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 26629: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 26629: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_random_access_iter<_II>::__value, 26629: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 26629: __copy_move_backward_a1(_II __first, _II __last, 26629: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 26629: { 26629: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 26629: typedef typename _Iter::difference_type difference_type; 26629: 26629: difference_type __len = __last - __first; 26629: while (__len > 0) 26629: { 26629: difference_type __rlen = __result._M_cur - __result._M_first; 26629: _Tp* __rend = __result._M_cur; 26629: if (!__rlen) 26629: { 26629: __rlen = _Iter::_S_buffer_size(); 26629: __rend = *(__result._M_node - 1) + __rlen; 26629: } 26629: 26629: const difference_type __clen = std::min(__len, __rlen); 26629: std::__copy_move_backward_a1<_IsMove>(__last - __clen, __last, __rend); 26629: 26629: __last -= __clen; 26629: __result -= __clen; 26629: __len -= __clen; 26629: } 26629: 26629: return __result; 26629: } 26629: 26629: template 26629: bool 26629: __equal_dit( 26629: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __first1, 26629: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __last1, 26629: _II __first2) 26629: { 26629: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 26629: if (__first1._M_node != __last1._M_node) 26629: { 26629: if (!std::__equal_aux1(__first1._M_cur, __first1._M_last, __first2)) 26629: return false; 26629: 26629: __first2 += __first1._M_last - __first1._M_cur; 26629: for (typename _Iter::_Map_pointer __node = __first1._M_node + 1; 26629: __node != __last1._M_node; 26629: __first2 += _Iter::_S_buffer_size(), ++__node) 26629: if (!std::__equal_aux1(*__node, *__node + _Iter::_S_buffer_size(), 26629: __first2)) 26629: return false; 26629: 26629: return std::__equal_aux1(__last1._M_first, __last1._M_cur, __first2); 26629: } 26629: 26629: return std::__equal_aux1(__first1._M_cur, __last1._M_cur, __first2); 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_random_access_iter<_II>::__value, bool>::__type 26629: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first1, 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last1, 26629: _II __first2) 26629: { return std::__equal_dit(__first1, __last1, __first2); } 26629: 26629: template 26629: bool 26629: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 26629: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 26629: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2) 26629: { return std::__equal_dit(__first1, __last1, __first2); } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if< 26629: __is_random_access_iter<_II>::__value, bool>::__type 26629: __equal_aux1(_II __first1, _II __last1, 26629: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first2) 26629: { 26629: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 26629: typedef typename _Iter::difference_type difference_type; 26629: 26629: difference_type __len = __last1 - __first1; 26629: while (__len > 0) 26629: { 26629: const difference_type __clen 26629: = std::min(__len, __first2._M_last - __first2._M_cur); 26629: if (!std::__equal_aux1(__first1, __first1 + __clen, __first2._M_cur)) 26629: return false; 26629: 26629: __first1 += __clen; 26629: __len -= __clen; 26629: __first2 += __clen; 26629: } 26629: 26629: return true; 26629: } 26629: 26629: template 26629: int 26629: __lex_cmp_dit( 26629: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __first1, 26629: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __last1, 26629: const _Tp2* __first2, const _Tp2* __last2) 26629: { 26629: const bool __simple = 26629: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 26629: && __is_pointer<_Ptr>::__value 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ); 26629: typedef std::__lexicographical_compare<__simple> _Lc; 26629: 26629: while (__first1._M_node != __last1._M_node) 26629: { 26629: const ptrdiff_t __len1 = __first1._M_last - __first1._M_cur; 26629: const ptrdiff_t __len2 = __last2 - __first2; 26629: const ptrdiff_t __len = std::min(__len1, __len2); 26629: 26629: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_last, 26629: __first2, __first2 + __len)) 26629: return __ret; 26629: 26629: __first1 += __len; 26629: __first2 += __len; 26629: } 26629: return _Lc::__3way(__first1._M_cur, __last1._M_cur, 26629: __first2, __last2); 26629: } 26629: 26629: template 26629: inline bool 26629: __lexicographical_compare_aux1( 26629: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 26629: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 26629: _Tp2* __first2, _Tp2* __last2) 26629: { return std::__lex_cmp_dit(__first1, __last1, __first2, __last2) < 0; } 26629: 26629: template 26629: inline bool 26629: __lexicographical_compare_aux1(_Tp1* __first1, _Tp1* __last1, 26629: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 26629: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 26629: { return std::__lex_cmp_dit(__first2, __last2, __first1, __last1) > 0; } 26629: 26629: template 26629: inline bool 26629: __lexicographical_compare_aux1( 26629: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 26629: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 26629: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 26629: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 26629: { 26629: const bool __simple = 26629: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 26629: && __is_pointer<_Ptr1>::__value 26629: && __is_pointer<_Ptr2>::__value 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ); 26629: typedef std::__lexicographical_compare<__simple> _Lc; 26629: 26629: while (__first1 != __last1) 26629: { 26629: const ptrdiff_t __len2 = __first2._M_node == __last2._M_node 26629: ? __last2._M_cur - __first2._M_cur 26629: : __first2._M_last - __first2._M_cur; 26629: if (__len2 == 0) 26629: return false; 26629: const ptrdiff_t __len1 = __first1._M_node == __last1._M_node 26629: ? __last1._M_cur - __first1._M_cur 26629: : __first1._M_last - __first1._M_cur; 26629: const ptrdiff_t __len = std::min(__len1, __len2); 26629: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_cur + __len, 26629: __first2._M_cur, __first2._M_cur + __len)) 26629: return __ret < 0; 26629: 26629: __first1 += __len; 26629: __first2 += __len; 26629: } 26629: 26629: return __last2 != __first2; 26629: } 26629: 26629: 26629: } 26629: # 68 "/usr/include/c++/12/deque" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace pmr 26629: { 26629: template class polymorphic_allocator; 26629: template 26629: using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>; 26629: } 26629: 26629: } 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: # 1 "/usr/include/c++/12/functional" 1 3 26629: # 46 "/usr/include/c++/12/functional" 3 26629: 26629: # 47 "/usr/include/c++/12/functional" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/tuple" 1 3 26629: # 32 "/usr/include/c++/12/tuple" 3 26629: 26629: # 33 "/usr/include/c++/12/tuple" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/uses_allocator.h" 1 3 26629: # 35 "/usr/include/c++/12/bits/uses_allocator.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: struct __erased_type { }; 26629: 26629: 26629: 26629: 26629: template 26629: using __is_erased_or_convertible 26629: = __or_, is_same<_Tp, __erased_type>>; 26629: 26629: 26629: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 26629: 26629: inline constexpr allocator_arg_t allocator_arg = 26629: allocator_arg_t(); 26629: 26629: template> 26629: struct __uses_allocator_helper 26629: : false_type { }; 26629: 26629: template 26629: struct __uses_allocator_helper<_Tp, _Alloc, 26629: __void_t> 26629: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 26629: { }; 26629: 26629: 26629: template 26629: struct uses_allocator 26629: : __uses_allocator_helper<_Tp, _Alloc>::type 26629: { }; 26629: 26629: struct __uses_alloc_base { }; 26629: 26629: struct __uses_alloc0 : __uses_alloc_base 26629: { 26629: struct _Sink { void operator=(const void*) { } } _M_a; 26629: }; 26629: 26629: template 26629: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 26629: 26629: template 26629: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 26629: 26629: template 26629: struct __uses_alloc; 26629: 26629: template 26629: struct __uses_alloc 26629: : __conditional_t< 26629: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 26629: __uses_alloc1<_Alloc>, 26629: __uses_alloc2<_Alloc>> 26629: { 26629: 26629: 26629: static_assert(__or_< 26629: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 26629: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 26629: "construction with an allocator must be possible" 26629: " if uses_allocator is true"); 26629: }; 26629: 26629: template 26629: struct __uses_alloc 26629: : __uses_alloc0 { }; 26629: 26629: template 26629: using __uses_alloc_t = 26629: __uses_alloc::value, _Tp, _Alloc, _Args...>; 26629: 26629: template 26629: 26629: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 26629: __use_alloc(const _Alloc& __a) 26629: { 26629: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 26629: __ret._M_a = std::__addressof(__a); 26629: return __ret; 26629: } 26629: 26629: template 26629: void 26629: __use_alloc(const _Alloc&&) = delete; 26629: 26629: 26629: template 26629: inline constexpr bool uses_allocator_v = 26629: uses_allocator<_Tp, _Alloc>::value; 26629: 26629: 26629: template class _Predicate, 26629: typename _Tp, typename _Alloc, typename... _Args> 26629: struct __is_uses_allocator_predicate 26629: : __conditional_t::value, 26629: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 26629: _Predicate<_Tp, _Args..., _Alloc>>, 26629: _Predicate<_Tp, _Args...>> { }; 26629: 26629: template 26629: struct __is_uses_allocator_constructible 26629: : __is_uses_allocator_predicate 26629: { }; 26629: 26629: 26629: template 26629: inline constexpr bool __is_uses_allocator_constructible_v = 26629: __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 26629: 26629: 26629: template 26629: struct __is_nothrow_uses_allocator_constructible 26629: : __is_uses_allocator_predicate 26629: { }; 26629: 26629: 26629: 26629: template 26629: inline constexpr bool 26629: __is_nothrow_uses_allocator_constructible_v = 26629: __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 26629: 26629: 26629: template 26629: void __uses_allocator_construct_impl(__uses_alloc0 __a, _Tp* __ptr, 26629: _Args&&... __args) 26629: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 26629: 26629: template 26629: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 26629: _Args&&... __args) 26629: { 26629: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: template 26629: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 26629: _Args&&... __args) 26629: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 26629: 26629: template 26629: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 26629: _Args&&... __args) 26629: { 26629: std::__uses_allocator_construct_impl( 26629: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: 26629: 26629: } 26629: # 40 "/usr/include/c++/12/tuple" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class tuple; 26629: 26629: template 26629: struct __is_empty_non_tuple : is_empty<_Tp> { }; 26629: 26629: 26629: template 26629: struct __is_empty_non_tuple> : false_type { }; 26629: 26629: 26629: template 26629: using __empty_not_final 26629: = __conditional_t<__is_final(_Tp), false_type, 26629: __is_empty_non_tuple<_Tp>>; 26629: 26629: template::value> 26629: struct _Head_base; 26629: 26629: 26629: template 26629: struct _Head_base<_Idx, _Head, true> 26629: { 26629: constexpr _Head_base() 26629: : _M_head_impl() { } 26629: 26629: constexpr _Head_base(const _Head& __h) 26629: : _M_head_impl(__h) { } 26629: 26629: constexpr _Head_base(const _Head_base&) = default; 26629: constexpr _Head_base(_Head_base&&) = default; 26629: 26629: template 26629: constexpr _Head_base(_UHead&& __h) 26629: : _M_head_impl(std::forward<_UHead>(__h)) { } 26629: 26629: 26629: _Head_base(allocator_arg_t, __uses_alloc0) 26629: : _M_head_impl() { } 26629: 26629: template 26629: 26629: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 26629: : _M_head_impl(allocator_arg, *__a._M_a) { } 26629: 26629: template 26629: 26629: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 26629: : _M_head_impl(*__a._M_a) { } 26629: 26629: template 26629: 26629: _Head_base(__uses_alloc0, _UHead&& __uhead) 26629: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 26629: 26629: template 26629: 26629: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 26629: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 26629: { } 26629: 26629: template 26629: 26629: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 26629: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 26629: 26629: static constexpr _Head& 26629: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 26629: 26629: static constexpr const _Head& 26629: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 26629: 26629: [[__no_unique_address__]] _Head _M_head_impl; 26629: }; 26629: # 186 "/usr/include/c++/12/tuple" 3 26629: template 26629: struct _Head_base<_Idx, _Head, false> 26629: { 26629: constexpr _Head_base() 26629: : _M_head_impl() { } 26629: 26629: constexpr _Head_base(const _Head& __h) 26629: : _M_head_impl(__h) { } 26629: 26629: constexpr _Head_base(const _Head_base&) = default; 26629: constexpr _Head_base(_Head_base&&) = default; 26629: 26629: template 26629: constexpr _Head_base(_UHead&& __h) 26629: : _M_head_impl(std::forward<_UHead>(__h)) { } 26629: 26629: 26629: _Head_base(allocator_arg_t, __uses_alloc0) 26629: : _M_head_impl() { } 26629: 26629: template 26629: 26629: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 26629: : _M_head_impl(allocator_arg, *__a._M_a) { } 26629: 26629: template 26629: 26629: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 26629: : _M_head_impl(*__a._M_a) { } 26629: 26629: template 26629: 26629: _Head_base(__uses_alloc0, _UHead&& __uhead) 26629: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 26629: 26629: template 26629: 26629: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 26629: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 26629: { } 26629: 26629: template 26629: 26629: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 26629: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 26629: 26629: static constexpr _Head& 26629: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 26629: 26629: static constexpr const _Head& 26629: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 26629: 26629: _Head _M_head_impl; 26629: }; 26629: # 249 "/usr/include/c++/12/tuple" 3 26629: template 26629: struct _Tuple_impl; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Tuple_impl<_Idx, _Head, _Tail...> 26629: : public _Tuple_impl<_Idx + 1, _Tail...>, 26629: private _Head_base<_Idx, _Head> 26629: { 26629: template friend struct _Tuple_impl; 26629: 26629: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 26629: typedef _Head_base<_Idx, _Head> _Base; 26629: 26629: static constexpr _Head& 26629: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 26629: 26629: static constexpr const _Head& 26629: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 26629: 26629: static constexpr _Inherited& 26629: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 26629: 26629: static constexpr const _Inherited& 26629: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 26629: 26629: constexpr _Tuple_impl() 26629: : _Inherited(), _Base() { } 26629: 26629: explicit constexpr 26629: _Tuple_impl(const _Head& __head, const _Tail&... __tail) 26629: : _Inherited(__tail...), _Base(__head) 26629: { } 26629: 26629: template> 26629: explicit constexpr 26629: _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 26629: : _Inherited(std::forward<_UTail>(__tail)...), 26629: _Base(std::forward<_UHead>(__head)) 26629: { } 26629: 26629: constexpr _Tuple_impl(const _Tuple_impl&) = default; 26629: 26629: 26629: 26629: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 26629: 26629: _Tuple_impl(_Tuple_impl&&) = default; 26629: 26629: template 26629: constexpr 26629: _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 26629: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 26629: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) 26629: { } 26629: 26629: template 26629: constexpr 26629: _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 26629: : _Inherited(std::move 26629: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 26629: _Base(std::forward<_UHead> 26629: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 26629: : _Inherited(__tag, __a), 26629: _Base(__tag, __use_alloc<_Head>(__a)) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: const _Head& __head, const _Tail&... __tail) 26629: : _Inherited(__tag, __a, __tail...), 26629: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) 26629: { } 26629: 26629: template> 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: _UHead&& __head, _UTail&&... __tail) 26629: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 26629: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 26629: std::forward<_UHead>(__head)) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: const _Tuple_impl& __in) 26629: : _Inherited(__tag, __a, _M_tail(__in)), 26629: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: _Tuple_impl&& __in) 26629: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 26629: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 26629: std::forward<_Head>(_M_head(__in))) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) 26629: : _Inherited(__tag, __a, 26629: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), 26629: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 26629: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 26629: : _Inherited(__tag, __a, std::move 26629: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 26629: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 26629: std::forward<_UHead> 26629: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 26629: { } 26629: 26629: template 26629: 26629: void 26629: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 26629: { 26629: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 26629: _M_tail(*this)._M_assign( 26629: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 26629: } 26629: 26629: template 26629: 26629: void 26629: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 26629: { 26629: _M_head(*this) = std::forward<_UHead> 26629: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 26629: _M_tail(*this)._M_assign( 26629: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 26629: } 26629: 26629: protected: 26629: 26629: void 26629: _M_swap(_Tuple_impl& __in) 26629: { 26629: using std::swap; 26629: swap(_M_head(*this), _M_head(__in)); 26629: _Inherited::_M_swap(_M_tail(__in)); 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct _Tuple_impl<_Idx, _Head> 26629: : private _Head_base<_Idx, _Head> 26629: { 26629: template friend struct _Tuple_impl; 26629: 26629: typedef _Head_base<_Idx, _Head> _Base; 26629: 26629: static constexpr _Head& 26629: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 26629: 26629: static constexpr const _Head& 26629: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 26629: 26629: constexpr 26629: _Tuple_impl() 26629: : _Base() { } 26629: 26629: explicit constexpr 26629: _Tuple_impl(const _Head& __head) 26629: : _Base(__head) 26629: { } 26629: 26629: template 26629: explicit constexpr 26629: _Tuple_impl(_UHead&& __head) 26629: : _Base(std::forward<_UHead>(__head)) 26629: { } 26629: 26629: constexpr _Tuple_impl(const _Tuple_impl&) = default; 26629: 26629: 26629: 26629: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 26629: 26629: 26629: 26629: 26629: constexpr 26629: _Tuple_impl(_Tuple_impl&& __in) 26629: noexcept(is_nothrow_move_constructible<_Head>::value) 26629: : _Base(static_cast<_Base&&>(__in)) 26629: { } 26629: 26629: 26629: template 26629: constexpr 26629: _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 26629: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) 26629: { } 26629: 26629: template 26629: constexpr 26629: _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 26629: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 26629: : _Base(__tag, __use_alloc<_Head>(__a)) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: const _Head& __head) 26629: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: _UHead&& __head) 26629: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 26629: std::forward<_UHead>(__head)) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: const _Tuple_impl& __in) 26629: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: _Tuple_impl&& __in) 26629: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 26629: std::forward<_Head>(_M_head(__in))) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: const _Tuple_impl<_Idx, _UHead>& __in) 26629: : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 26629: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) 26629: { } 26629: 26629: template 26629: 26629: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 26629: _Tuple_impl<_Idx, _UHead>&& __in) 26629: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 26629: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 26629: { } 26629: 26629: template 26629: 26629: void 26629: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 26629: { 26629: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 26629: } 26629: 26629: template 26629: 26629: void 26629: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 26629: { 26629: _M_head(*this) 26629: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 26629: } 26629: 26629: protected: 26629: 26629: void 26629: _M_swap(_Tuple_impl& __in) 26629: { 26629: using std::swap; 26629: swap(_M_head(*this), _M_head(__in)); 26629: } 26629: }; 26629: 26629: 26629: 26629: template 26629: struct _TupleConstraints 26629: { 26629: 26629: 26629: 26629: template 26629: static constexpr bool __is_implicitly_constructible() 26629: { 26629: return __and_..., 26629: is_convertible<_UTypes, _Types>... 26629: >::value; 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: static constexpr bool __is_explicitly_constructible() 26629: { 26629: return __and_..., 26629: __not_<__and_...>> 26629: >::value; 26629: } 26629: 26629: static constexpr bool __is_implicitly_default_constructible() 26629: { 26629: return __and_... 26629: >::value; 26629: } 26629: 26629: static constexpr bool __is_explicitly_default_constructible() 26629: { 26629: return __and_..., 26629: __not_<__and_< 26629: std::__is_implicitly_default_constructible<_Types>...> 26629: >>::value; 26629: } 26629: }; 26629: 26629: 26629: 26629: template 26629: struct _TupleConstraints 26629: { 26629: template 26629: static constexpr bool __is_implicitly_constructible() 26629: { return false; } 26629: 26629: template 26629: static constexpr bool __is_explicitly_constructible() 26629: { return false; } 26629: }; 26629: 26629: 26629: template 26629: class tuple : public _Tuple_impl<0, _Elements...> 26629: { 26629: typedef _Tuple_impl<0, _Elements...> _Inherited; 26629: 26629: template 26629: using _TCC = _TupleConstraints<_Cond, _Elements...>; 26629: 26629: 26629: template 26629: using _ImplicitDefaultCtor = __enable_if_t< 26629: _TCC<_Dummy>::__is_implicitly_default_constructible(), 26629: bool>; 26629: 26629: 26629: template 26629: using _ExplicitDefaultCtor = __enable_if_t< 26629: _TCC<_Dummy>::__is_explicitly_default_constructible(), 26629: bool>; 26629: 26629: 26629: template 26629: using _ImplicitCtor = __enable_if_t< 26629: _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), 26629: bool>; 26629: 26629: 26629: template 26629: using _ExplicitCtor = __enable_if_t< 26629: _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), 26629: bool>; 26629: 26629: template 26629: static constexpr 26629: __enable_if_t 26629: __assignable() 26629: { return __and_...>::value; } 26629: 26629: 26629: template 26629: static constexpr bool __nothrow_assignable() 26629: { 26629: return 26629: __and_...>::value; 26629: } 26629: 26629: 26629: template 26629: static constexpr bool __nothrow_constructible() 26629: { 26629: return 26629: __and_...>::value; 26629: } 26629: 26629: 26629: template 26629: static constexpr bool __valid_args() 26629: { 26629: return sizeof...(_Elements) == 1 26629: && !is_same>::value; 26629: } 26629: 26629: 26629: template 26629: static constexpr bool __valid_args() 26629: { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } 26629: # 684 "/usr/include/c++/12/tuple" 3 26629: template> 26629: struct _UseOtherCtor 26629: : false_type 26629: { }; 26629: 26629: 26629: template 26629: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> 26629: : __or_, is_constructible<_Tp, _Tuple>> 26629: { }; 26629: 26629: 26629: template 26629: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> 26629: : true_type 26629: { }; 26629: 26629: 26629: 26629: 26629: template 26629: static constexpr bool __use_other_ctor() 26629: { return _UseOtherCtor<_Tuple>::value; } 26629: 26629: public: 26629: template::value> = true> 26629: constexpr 26629: tuple() 26629: noexcept(__and_...>::value) 26629: : _Inherited() { } 26629: 26629: template::value> = false> 26629: explicit constexpr 26629: tuple() 26629: noexcept(__and_...>::value) 26629: : _Inherited() { } 26629: 26629: template= 1), 26629: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 26629: constexpr 26629: tuple(const _Elements&... __elements) 26629: noexcept(__nothrow_constructible()) 26629: : _Inherited(__elements...) { } 26629: 26629: template= 1), 26629: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 26629: explicit constexpr 26629: tuple(const _Elements&... __elements) 26629: noexcept(__nothrow_constructible()) 26629: : _Inherited(__elements...) { } 26629: 26629: template(), 26629: _ImplicitCtor<_Valid, _UElements...> = true> 26629: constexpr 26629: tuple(_UElements&&... __elements) 26629: noexcept(__nothrow_constructible<_UElements...>()) 26629: : _Inherited(std::forward<_UElements>(__elements)...) { } 26629: 26629: template(), 26629: _ExplicitCtor<_Valid, _UElements...> = false> 26629: explicit constexpr 26629: tuple(_UElements&&... __elements) 26629: noexcept(__nothrow_constructible<_UElements...>()) 26629: : _Inherited(std::forward<_UElements>(__elements)...) { } 26629: 26629: constexpr tuple(const tuple&) = default; 26629: 26629: constexpr tuple(tuple&&) = default; 26629: 26629: template&>(), 26629: _ImplicitCtor<_Valid, const _UElements&...> = true> 26629: constexpr 26629: tuple(const tuple<_UElements...>& __in) 26629: noexcept(__nothrow_constructible()) 26629: : _Inherited(static_cast&>(__in)) 26629: { } 26629: 26629: template&>(), 26629: _ExplicitCtor<_Valid, const _UElements&...> = false> 26629: explicit constexpr 26629: tuple(const tuple<_UElements...>& __in) 26629: noexcept(__nothrow_constructible()) 26629: : _Inherited(static_cast&>(__in)) 26629: { } 26629: 26629: template&&>(), 26629: _ImplicitCtor<_Valid, _UElements...> = true> 26629: constexpr 26629: tuple(tuple<_UElements...>&& __in) 26629: noexcept(__nothrow_constructible<_UElements...>()) 26629: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } 26629: 26629: template&&>(), 26629: _ExplicitCtor<_Valid, _UElements...> = false> 26629: explicit constexpr 26629: tuple(tuple<_UElements...>&& __in) 26629: noexcept(__nothrow_constructible<_UElements...>()) 26629: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } 26629: 26629: 26629: 26629: template::value> = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a) 26629: : _Inherited(__tag, __a) { } 26629: 26629: template= 1), 26629: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: const _Elements&... __elements) 26629: : _Inherited(__tag, __a, __elements...) { } 26629: 26629: template= 1), 26629: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 26629: 26629: explicit 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: const _Elements&... __elements) 26629: : _Inherited(__tag, __a, __elements...) { } 26629: 26629: template(), 26629: _ImplicitCtor<_Valid, _UElements...> = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: _UElements&&... __elements) 26629: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 26629: { } 26629: 26629: template(), 26629: _ExplicitCtor<_Valid, _UElements...> = false> 26629: 26629: explicit 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: _UElements&&... __elements) 26629: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 26629: { } 26629: 26629: template 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 26629: : _Inherited(__tag, __a, static_cast(__in)) { } 26629: 26629: template 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 26629: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 26629: 26629: template&>(), 26629: _ImplicitCtor<_Valid, const _UElements&...> = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: const tuple<_UElements...>& __in) 26629: : _Inherited(__tag, __a, 26629: static_cast&>(__in)) 26629: { } 26629: 26629: template&>(), 26629: _ExplicitCtor<_Valid, const _UElements&...> = false> 26629: 26629: explicit 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: const tuple<_UElements...>& __in) 26629: : _Inherited(__tag, __a, 26629: static_cast&>(__in)) 26629: { } 26629: 26629: template&&>(), 26629: _ImplicitCtor<_Valid, _UElements...> = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: tuple<_UElements...>&& __in) 26629: : _Inherited(__tag, __a, 26629: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 26629: { } 26629: 26629: template&&>(), 26629: _ExplicitCtor<_Valid, _UElements...> = false> 26629: 26629: explicit 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: tuple<_UElements...>&& __in) 26629: : _Inherited(__tag, __a, 26629: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 26629: { } 26629: 26629: 26629: 26629: 26629: tuple& 26629: operator=(__conditional_t<__assignable(), 26629: const tuple&, 26629: const __nonesuch&> __in) 26629: noexcept(__nothrow_assignable()) 26629: { 26629: this->_M_assign(__in); 26629: return *this; 26629: } 26629: 26629: 26629: tuple& 26629: operator=(__conditional_t<__assignable<_Elements...>(), 26629: tuple&&, 26629: __nonesuch&&> __in) 26629: noexcept(__nothrow_assignable<_Elements...>()) 26629: { 26629: this->_M_assign(std::move(__in)); 26629: return *this; 26629: } 26629: 26629: template 26629: 26629: __enable_if_t<__assignable(), tuple&> 26629: operator=(const tuple<_UElements...>& __in) 26629: noexcept(__nothrow_assignable()) 26629: { 26629: this->_M_assign(__in); 26629: return *this; 26629: } 26629: 26629: template 26629: 26629: __enable_if_t<__assignable<_UElements...>(), tuple&> 26629: operator=(tuple<_UElements...>&& __in) 26629: noexcept(__nothrow_assignable<_UElements...>()) 26629: { 26629: this->_M_assign(std::move(__in)); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: void 26629: swap(tuple& __in) 26629: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 26629: { _Inherited::_M_swap(__in); } 26629: }; 26629: 26629: 26629: template 26629: tuple(_UTypes...) -> tuple<_UTypes...>; 26629: template 26629: tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; 26629: template 26629: tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; 26629: template 26629: tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; 26629: template 26629: tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; 26629: 26629: 26629: 26629: template<> 26629: class tuple<> 26629: { 26629: public: 26629: 26629: void swap(tuple&) noexcept { } 26629: 26629: 26629: tuple() = default; 26629: 26629: template 26629: 26629: tuple(allocator_arg_t, const _Alloc&) noexcept { } 26629: template 26629: 26629: tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } 26629: }; 26629: 26629: 26629: 26629: template 26629: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 26629: { 26629: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 26629: 26629: 26629: template 26629: using _ImplicitDefaultCtor = __enable_if_t< 26629: _TupleConstraints<_Dummy, _U1, _U2>:: 26629: __is_implicitly_default_constructible(), 26629: bool>; 26629: 26629: 26629: template 26629: using _ExplicitDefaultCtor = __enable_if_t< 26629: _TupleConstraints<_Dummy, _U1, _U2>:: 26629: __is_explicitly_default_constructible(), 26629: bool>; 26629: 26629: template 26629: using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; 26629: 26629: 26629: template 26629: using _ImplicitCtor = __enable_if_t< 26629: _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), 26629: bool>; 26629: 26629: 26629: template 26629: using _ExplicitCtor = __enable_if_t< 26629: _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), 26629: bool>; 26629: 26629: template 26629: static constexpr bool __assignable() 26629: { 26629: return __and_, 26629: is_assignable<_T2&, _U2>>::value; 26629: } 26629: 26629: template 26629: static constexpr bool __nothrow_assignable() 26629: { 26629: return __and_, 26629: is_nothrow_assignable<_T2&, _U2>>::value; 26629: } 26629: 26629: template 26629: static constexpr bool __nothrow_constructible() 26629: { 26629: return __and_, 26629: is_nothrow_constructible<_T2, _U2>>::value; 26629: } 26629: 26629: static constexpr bool __nothrow_default_constructible() 26629: { 26629: return __and_, 26629: is_nothrow_default_constructible<_T2>>::value; 26629: } 26629: 26629: template 26629: static constexpr bool __is_alloc_arg() 26629: { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } 26629: 26629: public: 26629: template = true> 26629: constexpr 26629: tuple() 26629: noexcept(__nothrow_default_constructible()) 26629: : _Inherited() { } 26629: 26629: template = false> 26629: explicit constexpr 26629: tuple() 26629: noexcept(__nothrow_default_constructible()) 26629: : _Inherited() { } 26629: 26629: template = true> 26629: constexpr 26629: tuple(const _T1& __a1, const _T2& __a2) 26629: noexcept(__nothrow_constructible()) 26629: : _Inherited(__a1, __a2) { } 26629: 26629: template = false> 26629: explicit constexpr 26629: tuple(const _T1& __a1, const _T2& __a2) 26629: noexcept(__nothrow_constructible()) 26629: : _Inherited(__a1, __a2) { } 26629: 26629: template(), _U1, _U2> = true> 26629: constexpr 26629: tuple(_U1&& __a1, _U2&& __a2) 26629: noexcept(__nothrow_constructible<_U1, _U2>()) 26629: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } 26629: 26629: template(), _U1, _U2> = false> 26629: explicit constexpr 26629: tuple(_U1&& __a1, _U2&& __a2) 26629: noexcept(__nothrow_constructible<_U1, _U2>()) 26629: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } 26629: 26629: constexpr tuple(const tuple&) = default; 26629: 26629: constexpr tuple(tuple&&) = default; 26629: 26629: template = true> 26629: constexpr 26629: tuple(const tuple<_U1, _U2>& __in) 26629: noexcept(__nothrow_constructible()) 26629: : _Inherited(static_cast&>(__in)) { } 26629: 26629: template = false> 26629: explicit constexpr 26629: tuple(const tuple<_U1, _U2>& __in) 26629: noexcept(__nothrow_constructible()) 26629: : _Inherited(static_cast&>(__in)) { } 26629: 26629: template = true> 26629: constexpr 26629: tuple(tuple<_U1, _U2>&& __in) 26629: noexcept(__nothrow_constructible<_U1, _U2>()) 26629: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } 26629: 26629: template = false> 26629: explicit constexpr 26629: tuple(tuple<_U1, _U2>&& __in) 26629: noexcept(__nothrow_constructible<_U1, _U2>()) 26629: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } 26629: 26629: template = true> 26629: constexpr 26629: tuple(const pair<_U1, _U2>& __in) 26629: noexcept(__nothrow_constructible()) 26629: : _Inherited(__in.first, __in.second) { } 26629: 26629: template = false> 26629: explicit constexpr 26629: tuple(const pair<_U1, _U2>& __in) 26629: noexcept(__nothrow_constructible()) 26629: : _Inherited(__in.first, __in.second) { } 26629: 26629: template = true> 26629: constexpr 26629: tuple(pair<_U1, _U2>&& __in) 26629: noexcept(__nothrow_constructible<_U1, _U2>()) 26629: : _Inherited(std::forward<_U1>(__in.first), 26629: std::forward<_U2>(__in.second)) { } 26629: 26629: template = false> 26629: explicit constexpr 26629: tuple(pair<_U1, _U2>&& __in) 26629: noexcept(__nothrow_constructible<_U1, _U2>()) 26629: : _Inherited(std::forward<_U1>(__in.first), 26629: std::forward<_U2>(__in.second)) { } 26629: 26629: 26629: 26629: template::value, _T1, _T2> = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a) 26629: : _Inherited(__tag, __a) { } 26629: 26629: template = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: const _T1& __a1, const _T2& __a2) 26629: : _Inherited(__tag, __a, __a1, __a2) { } 26629: 26629: template = false> 26629: explicit 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: const _T1& __a1, const _T2& __a2) 26629: : _Inherited(__tag, __a, __a1, __a2) { } 26629: 26629: template = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 26629: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 26629: std::forward<_U2>(__a2)) { } 26629: 26629: template = false> 26629: explicit 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: _U1&& __a1, _U2&& __a2) 26629: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 26629: std::forward<_U2>(__a2)) { } 26629: 26629: template 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 26629: : _Inherited(__tag, __a, static_cast(__in)) { } 26629: 26629: template 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 26629: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 26629: 26629: template = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: const tuple<_U1, _U2>& __in) 26629: : _Inherited(__tag, __a, 26629: static_cast&>(__in)) 26629: { } 26629: 26629: template = false> 26629: explicit 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: const tuple<_U1, _U2>& __in) 26629: : _Inherited(__tag, __a, 26629: static_cast&>(__in)) 26629: { } 26629: 26629: template = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 26629: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 26629: { } 26629: 26629: template = false> 26629: explicit 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 26629: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 26629: { } 26629: 26629: template = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: const pair<_U1, _U2>& __in) 26629: : _Inherited(__tag, __a, __in.first, __in.second) { } 26629: 26629: template = false> 26629: explicit 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, 26629: const pair<_U1, _U2>& __in) 26629: : _Inherited(__tag, __a, __in.first, __in.second) { } 26629: 26629: template = true> 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 26629: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 26629: std::forward<_U2>(__in.second)) { } 26629: 26629: template = false> 26629: explicit 26629: 26629: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 26629: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 26629: std::forward<_U2>(__in.second)) { } 26629: 26629: 26629: 26629: 26629: tuple& 26629: operator=(__conditional_t<__assignable(), 26629: const tuple&, 26629: const __nonesuch&> __in) 26629: noexcept(__nothrow_assignable()) 26629: { 26629: this->_M_assign(__in); 26629: return *this; 26629: } 26629: 26629: 26629: tuple& 26629: operator=(__conditional_t<__assignable<_T1, _T2>(), 26629: tuple&&, 26629: __nonesuch&&> __in) 26629: noexcept(__nothrow_assignable<_T1, _T2>()) 26629: { 26629: this->_M_assign(std::move(__in)); 26629: return *this; 26629: } 26629: 26629: template 26629: 26629: __enable_if_t<__assignable(), tuple&> 26629: operator=(const tuple<_U1, _U2>& __in) 26629: noexcept(__nothrow_assignable()) 26629: { 26629: this->_M_assign(__in); 26629: return *this; 26629: } 26629: 26629: template 26629: 26629: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 26629: operator=(tuple<_U1, _U2>&& __in) 26629: noexcept(__nothrow_assignable<_U1, _U2>()) 26629: { 26629: this->_M_assign(std::move(__in)); 26629: return *this; 26629: } 26629: 26629: template 26629: 26629: __enable_if_t<__assignable(), tuple&> 26629: operator=(const pair<_U1, _U2>& __in) 26629: noexcept(__nothrow_assignable()) 26629: { 26629: this->_M_head(*this) = __in.first; 26629: this->_M_tail(*this)._M_head(*this) = __in.second; 26629: return *this; 26629: } 26629: 26629: template 26629: 26629: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 26629: operator=(pair<_U1, _U2>&& __in) 26629: noexcept(__nothrow_assignable<_U1, _U2>()) 26629: { 26629: this->_M_head(*this) = std::forward<_U1>(__in.first); 26629: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 26629: return *this; 26629: } 26629: 26629: 26629: void 26629: swap(tuple& __in) 26629: noexcept(__and_<__is_nothrow_swappable<_T1>, 26629: __is_nothrow_swappable<_T2>>::value) 26629: { _Inherited::_M_swap(__in); } 26629: }; 26629: 26629: 26629: 26629: template 26629: struct tuple_size> 26629: : public integral_constant { }; 26629: 26629: 26629: template 26629: inline constexpr size_t tuple_size_v> 26629: = sizeof...(_Types); 26629: 26629: template 26629: inline constexpr size_t tuple_size_v> 26629: = sizeof...(_Types); 26629: 26629: 26629: 26629: template 26629: struct tuple_element<__i, tuple<_Types...>> 26629: { 26629: static_assert(__i < sizeof...(_Types), "tuple index must be in range"); 26629: 26629: using type = typename _Nth_type<__i, _Types...>::type; 26629: }; 26629: 26629: template 26629: constexpr _Head& 26629: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 26629: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 26629: 26629: template 26629: constexpr const _Head& 26629: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 26629: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 26629: 26629: 26629: template 26629: __enable_if_t<(__i >= sizeof...(_Types))> 26629: __get_helper(const tuple<_Types...>&) = delete; 26629: 26629: 26629: template 26629: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 26629: get(tuple<_Elements...>& __t) noexcept 26629: { return std::__get_helper<__i>(__t); } 26629: 26629: 26629: template 26629: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 26629: get(const tuple<_Elements...>& __t) noexcept 26629: { return std::__get_helper<__i>(__t); } 26629: 26629: 26629: template 26629: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 26629: get(tuple<_Elements...>&& __t) noexcept 26629: { 26629: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 26629: return std::forward<__element_type>(std::__get_helper<__i>(__t)); 26629: } 26629: 26629: 26629: template 26629: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 26629: get(const tuple<_Elements...>&& __t) noexcept 26629: { 26629: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 26629: return std::forward(std::__get_helper<__i>(__t)); 26629: } 26629: 26629: 26629: 26629: template 26629: constexpr __enable_if_t<(__i >= sizeof...(_Elements))> 26629: get(const tuple<_Elements...>&) = delete; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr _Tp& 26629: get(tuple<_Types...>& __t) noexcept 26629: { 26629: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 26629: static_assert(__idx < sizeof...(_Types), 26629: "the type T in std::get must occur exactly once in the tuple"); 26629: return std::__get_helper<__idx>(__t); 26629: } 26629: 26629: 26629: template 26629: constexpr _Tp&& 26629: get(tuple<_Types...>&& __t) noexcept 26629: { 26629: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 26629: static_assert(__idx < sizeof...(_Types), 26629: "the type T in std::get must occur exactly once in the tuple"); 26629: return std::forward<_Tp>(std::__get_helper<__idx>(__t)); 26629: } 26629: 26629: 26629: template 26629: constexpr const _Tp& 26629: get(const tuple<_Types...>& __t) noexcept 26629: { 26629: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 26629: static_assert(__idx < sizeof...(_Types), 26629: "the type T in std::get must occur exactly once in the tuple"); 26629: return std::__get_helper<__idx>(__t); 26629: } 26629: 26629: 26629: 26629: template 26629: constexpr const _Tp&& 26629: get(const tuple<_Types...>&& __t) noexcept 26629: { 26629: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 26629: static_assert(__idx < sizeof...(_Types), 26629: "the type T in std::get must occur exactly once in the tuple"); 26629: return std::forward(std::__get_helper<__idx>(__t)); 26629: } 26629: 26629: 26629: 26629: template 26629: struct __tuple_compare 26629: { 26629: static constexpr bool 26629: __eq(const _Tp& __t, const _Up& __u) 26629: { 26629: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 26629: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 26629: } 26629: 26629: static constexpr bool 26629: __less(const _Tp& __t, const _Up& __u) 26629: { 26629: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 26629: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 26629: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 26629: } 26629: }; 26629: 26629: template 26629: struct __tuple_compare<_Tp, _Up, __size, __size> 26629: { 26629: static constexpr bool 26629: __eq(const _Tp&, const _Up&) { return true; } 26629: 26629: static constexpr bool 26629: __less(const _Tp&, const _Up&) { return false; } 26629: }; 26629: 26629: template 26629: constexpr bool 26629: operator==(const tuple<_TElements...>& __t, 26629: const tuple<_UElements...>& __u) 26629: { 26629: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 26629: "tuple objects can only be compared if they have equal sizes."); 26629: using __compare = __tuple_compare, 26629: tuple<_UElements...>, 26629: 0, sizeof...(_TElements)>; 26629: return __compare::__eq(__t, __u); 26629: } 26629: # 1536 "/usr/include/c++/12/tuple" 3 26629: template 26629: constexpr bool 26629: operator<(const tuple<_TElements...>& __t, 26629: const tuple<_UElements...>& __u) 26629: { 26629: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 26629: "tuple objects can only be compared if they have equal sizes."); 26629: using __compare = __tuple_compare, 26629: tuple<_UElements...>, 26629: 0, sizeof...(_TElements)>; 26629: return __compare::__less(__t, __u); 26629: } 26629: 26629: template 26629: constexpr bool 26629: operator!=(const tuple<_TElements...>& __t, 26629: const tuple<_UElements...>& __u) 26629: { return !(__t == __u); } 26629: 26629: template 26629: constexpr bool 26629: operator>(const tuple<_TElements...>& __t, 26629: const tuple<_UElements...>& __u) 26629: { return __u < __t; } 26629: 26629: template 26629: constexpr bool 26629: operator<=(const tuple<_TElements...>& __t, 26629: const tuple<_UElements...>& __u) 26629: { return !(__u < __t); } 26629: 26629: template 26629: constexpr bool 26629: operator>=(const tuple<_TElements...>& __t, 26629: const tuple<_UElements...>& __u) 26629: { return !(__t < __u); } 26629: 26629: 26629: 26629: template 26629: constexpr tuple::__type...> 26629: make_tuple(_Elements&&... __args) 26629: { 26629: typedef tuple::__type...> 26629: __result_type; 26629: return __result_type(std::forward<_Elements>(__args)...); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: constexpr tuple<_Elements&&...> 26629: forward_as_tuple(_Elements&&... __args) noexcept 26629: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 26629: 26629: 26629: 26629: 26629: template struct array; 26629: 26629: template 26629: constexpr _Tp& 26629: get(array<_Tp, _Nm>&) noexcept; 26629: 26629: template 26629: constexpr _Tp&& 26629: get(array<_Tp, _Nm>&&) noexcept; 26629: 26629: template 26629: constexpr const _Tp& 26629: get(const array<_Tp, _Nm>&) noexcept; 26629: 26629: template 26629: constexpr const _Tp&& 26629: get(const array<_Tp, _Nm>&&) noexcept; 26629: 26629: 26629: template 26629: struct __make_tuple_impl; 26629: 26629: template 26629: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 26629: : __make_tuple_impl<_Idx + 1, 26629: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 26629: _Tuple, _Nm> 26629: { }; 26629: 26629: template 26629: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 26629: { 26629: typedef tuple<_Tp...> __type; 26629: }; 26629: 26629: template 26629: struct __do_make_tuple 26629: : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> 26629: { }; 26629: 26629: 26629: template 26629: struct __make_tuple 26629: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 26629: { }; 26629: 26629: 26629: template 26629: struct __combine_tuples; 26629: 26629: template<> 26629: struct __combine_tuples<> 26629: { 26629: typedef tuple<> __type; 26629: }; 26629: 26629: template 26629: struct __combine_tuples> 26629: { 26629: typedef tuple<_Ts...> __type; 26629: }; 26629: 26629: template 26629: struct __combine_tuples, tuple<_T2s...>, _Rem...> 26629: { 26629: typedef typename __combine_tuples, 26629: _Rem...>::__type __type; 26629: }; 26629: 26629: 26629: template 26629: struct __tuple_cat_result 26629: { 26629: typedef typename __combine_tuples 26629: ::__type...>::__type __type; 26629: }; 26629: 26629: 26629: 26629: template 26629: struct __make_1st_indices; 26629: 26629: template<> 26629: struct __make_1st_indices<> 26629: { 26629: typedef _Index_tuple<> __type; 26629: }; 26629: 26629: template 26629: struct __make_1st_indices<_Tp, _Tpls...> 26629: { 26629: typedef typename _Build_index_tuple::type>::value>::__type __type; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct __tuple_concater; 26629: 26629: template 26629: struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> 26629: { 26629: template 26629: static constexpr _Ret 26629: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 26629: { 26629: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 26629: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 26629: return __next::_S_do(std::forward<_Tpls>(__tps)..., 26629: std::forward<_Us>(__us)..., 26629: std::get<_Is>(std::forward<_Tp>(__tp))...); 26629: } 26629: }; 26629: 26629: template 26629: struct __tuple_concater<_Ret, _Index_tuple<>> 26629: { 26629: template 26629: static constexpr _Ret 26629: _S_do(_Us&&... __us) 26629: { 26629: return _Ret(std::forward<_Us>(__us)...); 26629: } 26629: }; 26629: 26629: template 26629: struct __is_tuple_like_impl> : true_type 26629: { }; 26629: 26629: 26629: template...>::value>::type> 26629: constexpr auto 26629: tuple_cat(_Tpls&&... __tpls) 26629: -> typename __tuple_cat_result<_Tpls...>::__type 26629: { 26629: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 26629: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 26629: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 26629: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: constexpr tuple<_Elements&...> 26629: tie(_Elements&... __args) noexcept 26629: { return tuple<_Elements&...>(__args...); } 26629: 26629: 26629: template 26629: 26629: inline 26629: 26629: 26629: typename enable_if<__and_<__is_swappable<_Elements>...>::value 26629: >::type 26629: 26629: 26629: 26629: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: 26629: template 26629: 26629: typename enable_if...>::value>::type 26629: swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct _Swallow_assign 26629: { 26629: template 26629: constexpr const _Swallow_assign& 26629: operator=(const _Tp&) const 26629: { return *this; } 26629: }; 26629: 26629: 26629: 26629: inline constexpr _Swallow_assign ignore{}; 26629: 26629: 26629: template 26629: struct uses_allocator, _Alloc> : true_type { }; 26629: # 1798 "/usr/include/c++/12/tuple" 3 26629: template 26629: template 26629: 26629: inline 26629: pair<_T1, _T2>:: 26629: pair(piecewise_construct_t, 26629: tuple<_Args1...> __first, tuple<_Args2...> __second) 26629: : pair(__first, __second, 26629: typename _Build_index_tuple::__type(), 26629: typename _Build_index_tuple::__type()) 26629: { } 26629: 26629: template 26629: template 26629: inline 26629: pair<_T1, _T2>:: 26629: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 26629: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 26629: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 26629: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template class _Trait, typename _Tp, typename _Tuple> 26629: inline constexpr bool __unpack_std_tuple = false; 26629: 26629: template class _Trait, typename _Tp, typename... _Up> 26629: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> 26629: = _Trait<_Tp, _Up...>::value; 26629: 26629: template class _Trait, typename _Tp, typename... _Up> 26629: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> 26629: = _Trait<_Tp, _Up&...>::value; 26629: 26629: template class _Trait, typename _Tp, typename... _Up> 26629: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> 26629: = _Trait<_Tp, const _Up...>::value; 26629: 26629: template class _Trait, typename _Tp, typename... _Up> 26629: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> 26629: = _Trait<_Tp, const _Up&...>::value; 26629: 26629: 26629: 26629: template 26629: constexpr decltype(auto) 26629: __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) 26629: { 26629: return std::__invoke(std::forward<_Fn>(__f), 26629: std::get<_Idx>(std::forward<_Tuple>(__t))...); 26629: } 26629: 26629: template 26629: constexpr decltype(auto) 26629: apply(_Fn&& __f, _Tuple&& __t) 26629: noexcept(__unpack_std_tuple) 26629: { 26629: using _Indices 26629: = make_index_sequence>>; 26629: return std::__apply_impl(std::forward<_Fn>(__f), 26629: std::forward<_Tuple>(__t), 26629: _Indices{}); 26629: } 26629: 26629: 26629: 26629: template 26629: constexpr _Tp 26629: __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) 26629: { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } 26629: 26629: template 26629: constexpr _Tp 26629: make_from_tuple(_Tuple&& __t) 26629: noexcept(__unpack_std_tuple) 26629: { 26629: return __make_from_tuple_impl<_Tp>( 26629: std::forward<_Tuple>(__t), 26629: make_index_sequence>>{}); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 55 "/usr/include/c++/12/functional" 2 3 26629: 26629: # 1 "/usr/include/c++/12/bits/functional_hash.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/functional_hash.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/functional_hash.h" 3 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/hash_bytes.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/hash_bytes.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/hash_bytes.h" 3 26629: 26629: 26629: 26629: namespace std 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t 26629: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 26629: 26629: 26629: 26629: 26629: 26629: size_t 26629: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 26629: 26629: 26629: } 26629: # 37 "/usr/include/c++/12/bits/functional_hash.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 50 "/usr/include/c++/12/bits/functional_hash.h" 3 26629: template 26629: struct __hash_base 26629: { 26629: typedef _Result result_type [[__deprecated__]]; 26629: typedef _Arg argument_type [[__deprecated__]]; 26629: }; 26629: 26629: 26629: template 26629: struct hash; 26629: 26629: template 26629: struct __poison_hash 26629: { 26629: static constexpr bool __enable_hash_call = false; 26629: private: 26629: 26629: __poison_hash(__poison_hash&&); 26629: ~__poison_hash(); 26629: }; 26629: 26629: template 26629: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 26629: { 26629: static constexpr bool __enable_hash_call = true; 26629: }; 26629: 26629: 26629: template::value> 26629: struct __hash_enum 26629: { 26629: private: 26629: 26629: __hash_enum(__hash_enum&&); 26629: ~__hash_enum(); 26629: }; 26629: 26629: 26629: template 26629: struct __hash_enum<_Tp, true> : public __hash_base 26629: { 26629: size_t 26629: operator()(_Tp __val) const noexcept 26629: { 26629: using __type = typename underlying_type<_Tp>::type; 26629: return hash<__type>{}(static_cast<__type>(__val)); 26629: } 26629: }; 26629: 26629: 26629: 26629: template 26629: struct hash : __hash_enum<_Tp> 26629: { }; 26629: 26629: 26629: template 26629: struct hash<_Tp*> : public __hash_base 26629: { 26629: size_t 26629: operator()(_Tp* __p) const noexcept 26629: { return reinterpret_cast(__p); } 26629: }; 26629: # 125 "/usr/include/c++/12/bits/functional_hash.h" 3 26629: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 26629: 26629: 26629: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 26629: # 201 "/usr/include/c++/12/bits/functional_hash.h" 3 26629: struct _Hash_impl 26629: { 26629: static size_t 26629: hash(const void* __ptr, size_t __clength, 26629: size_t __seed = static_cast(0xc70f6907UL)) 26629: { return _Hash_bytes(__ptr, __clength, __seed); } 26629: 26629: template 26629: static size_t 26629: hash(const _Tp& __val) 26629: { return hash(&__val, sizeof(__val)); } 26629: 26629: template 26629: static size_t 26629: __hash_combine(const _Tp& __val, size_t __hash) 26629: { return hash(&__val, sizeof(__val), __hash); } 26629: }; 26629: 26629: 26629: struct _Fnv_hash_impl 26629: { 26629: static size_t 26629: hash(const void* __ptr, size_t __clength, 26629: size_t __seed = static_cast(2166136261UL)) 26629: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 26629: 26629: template 26629: static size_t 26629: hash(const _Tp& __val) 26629: { return hash(&__val, sizeof(__val)); } 26629: 26629: template 26629: static size_t 26629: __hash_combine(const _Tp& __val, size_t __hash) 26629: { return hash(&__val, sizeof(__val), __hash); } 26629: }; 26629: 26629: 26629: template<> 26629: struct hash : public __hash_base 26629: { 26629: size_t 26629: operator()(float __val) const noexcept 26629: { 26629: 26629: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 26629: } 26629: }; 26629: 26629: 26629: template<> 26629: struct hash : public __hash_base 26629: { 26629: size_t 26629: operator()(double __val) const noexcept 26629: { 26629: 26629: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 26629: } 26629: }; 26629: 26629: 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: __attribute__ ((__pure__)) size_t 26629: operator()(long double __val) const noexcept; 26629: }; 26629: 26629: 26629: template<> 26629: struct hash : public __hash_base 26629: { 26629: size_t 26629: operator()(nullptr_t) const noexcept 26629: { return 0; } 26629: }; 26629: # 287 "/usr/include/c++/12/bits/functional_hash.h" 3 26629: template 26629: struct __is_fast_hash : public std::true_type 26629: { }; 26629: 26629: template<> 26629: struct __is_fast_hash> : public std::false_type 26629: { }; 26629: 26629: 26629: } 26629: # 57 "/usr/include/c++/12/functional" 2 3 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/std_function.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/std_function.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/std_function.h" 3 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/typeinfo" 1 3 26629: # 32 "/usr/include/c++/12/typeinfo" 3 26629: 26629: # 33 "/usr/include/c++/12/typeinfo" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: #pragma GCC visibility push(default) 26629: 26629: 26629: 26629: 26629: 26629: extern "C++" { 26629: 26629: namespace __cxxabiv1 26629: { 26629: class __class_type_info; 26629: } 26629: # 84 "/usr/include/c++/12/typeinfo" 3 26629: namespace std 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: class type_info 26629: { 26629: public: 26629: 26629: 26629: 26629: 26629: virtual ~type_info(); 26629: 26629: 26629: 26629: const char* name() const noexcept 26629: { return __name[0] == '*' ? __name + 1 : __name; } 26629: 26629: 26629: 26629: bool before(const type_info& __arg) const noexcept; 26629: 26629: 26629: bool operator==(const type_info& __arg) const noexcept; 26629: 26629: 26629: bool operator!=(const type_info& __arg) const noexcept 26629: { return !operator==(__arg); } 26629: 26629: 26629: 26629: size_t hash_code() const noexcept 26629: { 26629: 26629: return _Hash_bytes(name(), __builtin_strlen(name()), 26629: static_cast(0xc70f6907UL)); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: virtual bool __is_pointer_p() const; 26629: 26629: 26629: virtual bool __is_function_p() const; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 26629: unsigned __outer) const; 26629: 26629: 26629: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 26629: void **__obj_ptr) const; 26629: 26629: protected: 26629: const char *__name; 26629: 26629: explicit type_info(const char *__n): __name(__n) { } 26629: 26629: private: 26629: 26629: 26629: type_info& operator=(const type_info&) = delete; 26629: type_info(const type_info&) = delete; 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool __equal(const type_info&) const noexcept; 26629: 26629: }; 26629: # 220 "/usr/include/c++/12/typeinfo" 3 26629: class bad_cast : public exception 26629: { 26629: public: 26629: bad_cast() noexcept { } 26629: 26629: 26629: 26629: virtual ~bad_cast() noexcept; 26629: 26629: 26629: virtual const char* what() const noexcept; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: class bad_typeid : public exception 26629: { 26629: public: 26629: bad_typeid () noexcept { } 26629: 26629: 26629: 26629: virtual ~bad_typeid() noexcept; 26629: 26629: 26629: virtual const char* what() const noexcept; 26629: }; 26629: } 26629: 26629: } 26629: 26629: #pragma GCC visibility pop 26629: # 40 "/usr/include/c++/12/bits/std_function.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class bad_function_call : public std::exception 26629: { 26629: public: 26629: virtual ~bad_function_call() noexcept; 26629: 26629: const char* what() const noexcept; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __is_location_invariant 26629: : is_trivially_copyable<_Tp>::type 26629: { }; 26629: 26629: class _Undefined_class; 26629: 26629: union _Nocopy_types 26629: { 26629: void* _M_object; 26629: const void* _M_const_object; 26629: void (*_M_function_pointer)(); 26629: void (_Undefined_class::*_M_member_pointer)(); 26629: }; 26629: 26629: union [[gnu::may_alias]] _Any_data 26629: { 26629: void* _M_access() noexcept { return &_M_pod_data[0]; } 26629: const void* _M_access() const noexcept { return &_M_pod_data[0]; } 26629: 26629: template 26629: _Tp& 26629: _M_access() noexcept 26629: { return *static_cast<_Tp*>(_M_access()); } 26629: 26629: template 26629: const _Tp& 26629: _M_access() const noexcept 26629: { return *static_cast(_M_access()); } 26629: 26629: _Nocopy_types _M_unused; 26629: char _M_pod_data[sizeof(_Nocopy_types)]; 26629: }; 26629: 26629: enum _Manager_operation 26629: { 26629: __get_type_info, 26629: __get_functor_ptr, 26629: __clone_functor, 26629: __destroy_functor 26629: }; 26629: 26629: template 26629: class function; 26629: 26629: 26629: class _Function_base 26629: { 26629: public: 26629: static const size_t _M_max_size = sizeof(_Nocopy_types); 26629: static const size_t _M_max_align = __alignof__(_Nocopy_types); 26629: 26629: template 26629: class _Base_manager 26629: { 26629: protected: 26629: static const bool __stored_locally = 26629: (__is_location_invariant<_Functor>::value 26629: && sizeof(_Functor) <= _M_max_size 26629: && __alignof__(_Functor) <= _M_max_align 26629: && (_M_max_align % __alignof__(_Functor) == 0)); 26629: 26629: using _Local_storage = integral_constant; 26629: 26629: 26629: static _Functor* 26629: _M_get_pointer(const _Any_data& __source) noexcept 26629: { 26629: if constexpr (__stored_locally) 26629: { 26629: const _Functor& __f = __source._M_access<_Functor>(); 26629: return const_cast<_Functor*>(std::__addressof(__f)); 26629: } 26629: else 26629: return __source._M_access<_Functor*>(); 26629: } 26629: 26629: private: 26629: 26629: 26629: template 26629: static void 26629: _M_create(_Any_data& __dest, _Fn&& __f, true_type) 26629: { 26629: ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); 26629: } 26629: 26629: 26629: template 26629: static void 26629: _M_create(_Any_data& __dest, _Fn&& __f, false_type) 26629: { 26629: __dest._M_access<_Functor*>() 26629: = new _Functor(std::forward<_Fn>(__f)); 26629: } 26629: 26629: 26629: static void 26629: _M_destroy(_Any_data& __victim, true_type) 26629: { 26629: __victim._M_access<_Functor>().~_Functor(); 26629: } 26629: 26629: 26629: static void 26629: _M_destroy(_Any_data& __victim, false_type) 26629: { 26629: delete __victim._M_access<_Functor*>(); 26629: } 26629: 26629: public: 26629: static bool 26629: _M_manager(_Any_data& __dest, const _Any_data& __source, 26629: _Manager_operation __op) 26629: { 26629: switch (__op) 26629: { 26629: case __get_type_info: 26629: 26629: __dest._M_access() = &typeid(_Functor); 26629: 26629: 26629: 26629: break; 26629: 26629: case __get_functor_ptr: 26629: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 26629: break; 26629: 26629: case __clone_functor: 26629: _M_init_functor(__dest, 26629: *const_cast(_M_get_pointer(__source))); 26629: break; 26629: 26629: case __destroy_functor: 26629: _M_destroy(__dest, _Local_storage()); 26629: break; 26629: } 26629: return false; 26629: } 26629: 26629: template 26629: static void 26629: _M_init_functor(_Any_data& __functor, _Fn&& __f) 26629: noexcept(__and_<_Local_storage, 26629: is_nothrow_constructible<_Functor, _Fn>>::value) 26629: { 26629: _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); 26629: } 26629: 26629: template 26629: static bool 26629: _M_not_empty_function(const function<_Signature>& __f) noexcept 26629: { return static_cast(__f); } 26629: 26629: template 26629: static bool 26629: _M_not_empty_function(_Tp* __fp) noexcept 26629: { return __fp != nullptr; } 26629: 26629: template 26629: static bool 26629: _M_not_empty_function(_Tp _Class::* __mp) noexcept 26629: { return __mp != nullptr; } 26629: 26629: template 26629: static bool 26629: _M_not_empty_function(const _Tp&) noexcept 26629: { return true; } 26629: }; 26629: 26629: _Function_base() = default; 26629: 26629: ~_Function_base() 26629: { 26629: if (_M_manager) 26629: _M_manager(_M_functor, _M_functor, __destroy_functor); 26629: } 26629: 26629: bool _M_empty() const { return !_M_manager; } 26629: 26629: using _Manager_type 26629: = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); 26629: 26629: _Any_data _M_functor{}; 26629: _Manager_type _M_manager{}; 26629: }; 26629: 26629: template 26629: class _Function_handler; 26629: 26629: template 26629: class _Function_handler<_Res(_ArgTypes...), _Functor> 26629: : public _Function_base::_Base_manager<_Functor> 26629: { 26629: using _Base = _Function_base::_Base_manager<_Functor>; 26629: 26629: public: 26629: static bool 26629: _M_manager(_Any_data& __dest, const _Any_data& __source, 26629: _Manager_operation __op) 26629: { 26629: switch (__op) 26629: { 26629: 26629: case __get_type_info: 26629: __dest._M_access() = &typeid(_Functor); 26629: break; 26629: 26629: case __get_functor_ptr: 26629: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); 26629: break; 26629: 26629: default: 26629: _Base::_M_manager(__dest, __source, __op); 26629: } 26629: return false; 26629: } 26629: 26629: static _Res 26629: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 26629: { 26629: return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), 26629: std::forward<_ArgTypes>(__args)...); 26629: } 26629: 26629: template 26629: static constexpr bool 26629: _S_nothrow_init() noexcept 26629: { 26629: return __and_>::value; 26629: } 26629: }; 26629: 26629: 26629: template<> 26629: class _Function_handler 26629: { 26629: public: 26629: static bool 26629: _M_manager(_Any_data&, const _Any_data&, _Manager_operation) 26629: { return false; } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template::value> 26629: struct _Target_handler 26629: : _Function_handler<_Signature, typename remove_cv<_Functor>::type> 26629: { }; 26629: 26629: template 26629: struct _Target_handler<_Signature, _Functor, false> 26629: : _Function_handler 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class function<_Res(_ArgTypes...)> 26629: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 26629: private _Function_base 26629: { 26629: 26629: 26629: template, function>::value> 26629: using _Decay_t 26629: = typename __enable_if_t>::type; 26629: 26629: template, 26629: typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> 26629: struct _Callable 26629: : __is_invocable_impl<_Res2, _Res>::type 26629: { }; 26629: 26629: template 26629: using _Requires = __enable_if_t<_Cond::value, _Tp>; 26629: 26629: template 26629: using _Handler 26629: = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; 26629: 26629: public: 26629: typedef _Res result_type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: function() noexcept 26629: : _Function_base() { } 26629: 26629: 26629: 26629: 26629: 26629: function(nullptr_t) noexcept 26629: : _Function_base() { } 26629: # 386 "/usr/include/c++/12/bits/std_function.h" 3 26629: function(const function& __x) 26629: : _Function_base() 26629: { 26629: if (static_cast(__x)) 26629: { 26629: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 26629: _M_invoker = __x._M_invoker; 26629: _M_manager = __x._M_manager; 26629: } 26629: } 26629: # 404 "/usr/include/c++/12/bits/std_function.h" 3 26629: function(function&& __x) noexcept 26629: : _Function_base(), _M_invoker(__x._M_invoker) 26629: { 26629: if (static_cast(__x)) 26629: { 26629: _M_functor = __x._M_functor; 26629: _M_manager = __x._M_manager; 26629: __x._M_manager = nullptr; 26629: __x._M_invoker = nullptr; 26629: } 26629: } 26629: # 433 "/usr/include/c++/12/bits/std_function.h" 3 26629: template>> 26629: function(_Functor&& __f) 26629: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 26629: : _Function_base() 26629: { 26629: static_assert(is_copy_constructible<__decay_t<_Functor>>::value, 26629: "std::function target must be copy-constructible"); 26629: static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, 26629: "std::function target must be constructible from the " 26629: "constructor argument"); 26629: 26629: using _My_handler = _Handler<_Functor>; 26629: 26629: if (_My_handler::_M_not_empty_function(__f)) 26629: { 26629: _My_handler::_M_init_functor(_M_functor, 26629: std::forward<_Functor>(__f)); 26629: _M_invoker = &_My_handler::_M_invoke; 26629: _M_manager = &_My_handler::_M_manager; 26629: } 26629: } 26629: # 468 "/usr/include/c++/12/bits/std_function.h" 3 26629: function& 26629: operator=(const function& __x) 26629: { 26629: function(__x).swap(*this); 26629: return *this; 26629: } 26629: # 486 "/usr/include/c++/12/bits/std_function.h" 3 26629: function& 26629: operator=(function&& __x) noexcept 26629: { 26629: function(std::move(__x)).swap(*this); 26629: return *this; 26629: } 26629: # 500 "/usr/include/c++/12/bits/std_function.h" 3 26629: function& 26629: operator=(nullptr_t) noexcept 26629: { 26629: if (_M_manager) 26629: { 26629: _M_manager(_M_functor, _M_functor, __destroy_functor); 26629: _M_manager = nullptr; 26629: _M_invoker = nullptr; 26629: } 26629: return *this; 26629: } 26629: # 529 "/usr/include/c++/12/bits/std_function.h" 3 26629: template 26629: _Requires<_Callable<_Functor>, function&> 26629: operator=(_Functor&& __f) 26629: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 26629: { 26629: function(std::forward<_Functor>(__f)).swap(*this); 26629: return *this; 26629: } 26629: 26629: 26629: template 26629: function& 26629: operator=(reference_wrapper<_Functor> __f) noexcept 26629: { 26629: function(__f).swap(*this); 26629: return *this; 26629: } 26629: # 556 "/usr/include/c++/12/bits/std_function.h" 3 26629: void swap(function& __x) noexcept 26629: { 26629: std::swap(_M_functor, __x._M_functor); 26629: std::swap(_M_manager, __x._M_manager); 26629: std::swap(_M_invoker, __x._M_invoker); 26629: } 26629: # 573 "/usr/include/c++/12/bits/std_function.h" 3 26629: explicit operator bool() const noexcept 26629: { return !_M_empty(); } 26629: # 586 "/usr/include/c++/12/bits/std_function.h" 3 26629: _Res 26629: operator()(_ArgTypes... __args) const 26629: { 26629: if (_M_empty()) 26629: __throw_bad_function_call(); 26629: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 26629: } 26629: # 605 "/usr/include/c++/12/bits/std_function.h" 3 26629: const type_info& 26629: target_type() const noexcept 26629: { 26629: if (_M_manager) 26629: { 26629: _Any_data __typeinfo_result; 26629: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 26629: if (auto __ti = __typeinfo_result._M_access()) 26629: return *__ti; 26629: } 26629: return typeid(void); 26629: } 26629: # 630 "/usr/include/c++/12/bits/std_function.h" 3 26629: template 26629: _Functor* 26629: target() noexcept 26629: { 26629: const function* __const_this = this; 26629: const _Functor* __func = __const_this->template target<_Functor>(); 26629: 26629: 26629: return *const_cast<_Functor**>(&__func); 26629: } 26629: 26629: template 26629: const _Functor* 26629: target() const noexcept 26629: { 26629: if constexpr (is_object<_Functor>::value) 26629: { 26629: 26629: 26629: using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; 26629: 26629: if (_M_manager == &_Handler::_M_manager 26629: 26629: || (_M_manager && typeid(_Functor) == target_type()) 26629: 26629: ) 26629: { 26629: _Any_data __ptr; 26629: _M_manager(__ptr, _M_functor, __get_functor_ptr); 26629: return __ptr._M_access(); 26629: } 26629: } 26629: return nullptr; 26629: } 26629: 26629: 26629: private: 26629: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 26629: _Invoker_type _M_invoker = nullptr; 26629: }; 26629: 26629: 26629: template 26629: struct __function_guide_helper 26629: { }; 26629: 26629: template 26629: struct __function_guide_helper< 26629: _Res (_Tp::*) (_Args...) noexcept(_Nx) 26629: > 26629: { using type = _Res(_Args...); }; 26629: 26629: template 26629: struct __function_guide_helper< 26629: _Res (_Tp::*) (_Args...) & noexcept(_Nx) 26629: > 26629: { using type = _Res(_Args...); }; 26629: 26629: template 26629: struct __function_guide_helper< 26629: _Res (_Tp::*) (_Args...) const noexcept(_Nx) 26629: > 26629: { using type = _Res(_Args...); }; 26629: 26629: template 26629: struct __function_guide_helper< 26629: _Res (_Tp::*) (_Args...) const & noexcept(_Nx) 26629: > 26629: { using type = _Res(_Args...); }; 26629: 26629: template 26629: function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; 26629: 26629: template::type> 26629: function(_Functor) -> function<_Signature>; 26629: # 716 "/usr/include/c++/12/bits/std_function.h" 3 26629: template 26629: inline bool 26629: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 26629: { return !static_cast(__f); } 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 26629: { return !static_cast(__f); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 26629: { return static_cast(__f); } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 26629: { return static_cast(__f); } 26629: # 755 "/usr/include/c++/12/bits/std_function.h" 3 26629: template 26629: inline void 26629: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 26629: { __x.swap(__y); } 26629: 26629: 26629: namespace __detail::__variant 26629: { 26629: template struct _Never_valueless_alt; 26629: 26629: 26629: 26629: template 26629: struct _Never_valueless_alt> 26629: : std::true_type 26629: { }; 26629: } 26629: 26629: 26629: 26629: } 26629: # 60 "/usr/include/c++/12/functional" 2 3 26629: 26629: # 1 "/usr/include/c++/12/unordered_map" 1 3 26629: # 32 "/usr/include/c++/12/unordered_map" 3 26629: 26629: # 33 "/usr/include/c++/12/unordered_map" 3 26629: # 42 "/usr/include/c++/12/unordered_map" 3 26629: # 1 "/usr/include/c++/12/ext/aligned_buffer.h" 1 3 26629: # 32 "/usr/include/c++/12/ext/aligned_buffer.h" 3 26629: 26629: # 33 "/usr/include/c++/12/ext/aligned_buffer.h" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace __gnu_cxx 26629: { 26629: 26629: 26629: 26629: 26629: template 26629: struct __aligned_membuf 26629: { 26629: 26629: 26629: 26629: 26629: 26629: struct _Tp2 { _Tp _M_t; }; 26629: 26629: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 26629: 26629: __aligned_membuf() = default; 26629: 26629: 26629: __aligned_membuf(std::nullptr_t) { } 26629: 26629: void* 26629: _M_addr() noexcept 26629: { return static_cast(&_M_storage); } 26629: 26629: const void* 26629: _M_addr() const noexcept 26629: { return static_cast(&_M_storage); } 26629: 26629: _Tp* 26629: _M_ptr() noexcept 26629: { return static_cast<_Tp*>(_M_addr()); } 26629: 26629: const _Tp* 26629: _M_ptr() const noexcept 26629: { return static_cast(_M_addr()); } 26629: }; 26629: # 89 "/usr/include/c++/12/ext/aligned_buffer.h" 3 26629: template 26629: struct __aligned_buffer 26629: : std::aligned_storage 26629: { 26629: typename 26629: std::aligned_storage::type _M_storage; 26629: 26629: __aligned_buffer() = default; 26629: 26629: 26629: __aligned_buffer(std::nullptr_t) { } 26629: 26629: void* 26629: _M_addr() noexcept 26629: { 26629: return static_cast(&_M_storage); 26629: } 26629: 26629: const void* 26629: _M_addr() const noexcept 26629: { 26629: return static_cast(&_M_storage); 26629: } 26629: 26629: _Tp* 26629: _M_ptr() noexcept 26629: { return static_cast<_Tp*>(_M_addr()); } 26629: 26629: const _Tp* 26629: _M_ptr() const noexcept 26629: { return static_cast(_M_addr()); } 26629: }; 26629: 26629: 26629: } 26629: # 43 "/usr/include/c++/12/unordered_map" 2 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/hashtable.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/hashtable.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/hashtable.h" 3 26629: 26629: # 1 "/usr/include/c++/12/bits/hashtable_policy.h" 1 3 26629: # 40 "/usr/include/c++/12/bits/hashtable_policy.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: class _Hashtable; 26629: 26629: namespace __detail 26629: { 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Hashtable_base; 26629: 26629: 26629: 26629: template 26629: inline typename std::iterator_traits<_Iterator>::difference_type 26629: __distance_fw(_Iterator __first, _Iterator __last, 26629: std::input_iterator_tag) 26629: { return __first != __last ? 1 : 0; } 26629: 26629: template 26629: inline typename std::iterator_traits<_Iterator>::difference_type 26629: __distance_fw(_Iterator __first, _Iterator __last, 26629: std::forward_iterator_tag) 26629: { return std::distance(__first, __last); } 26629: 26629: template 26629: inline typename std::iterator_traits<_Iterator>::difference_type 26629: __distance_fw(_Iterator __first, _Iterator __last) 26629: { return __distance_fw(__first, __last, 26629: std::__iterator_category(__first)); } 26629: 26629: struct _Identity 26629: { 26629: template 26629: _Tp&& 26629: operator()(_Tp&& __x) const noexcept 26629: { return std::forward<_Tp>(__x); } 26629: }; 26629: 26629: struct _Select1st 26629: { 26629: template 26629: struct __1st_type; 26629: 26629: template 26629: struct __1st_type> 26629: { using type = _Tp; }; 26629: 26629: template 26629: struct __1st_type> 26629: { using type = const _Tp; }; 26629: 26629: template 26629: struct __1st_type<_Pair&> 26629: { using type = typename __1st_type<_Pair>::type&; }; 26629: 26629: template 26629: typename __1st_type<_Tp>::type&& 26629: operator()(_Tp&& __x) const noexcept 26629: { return std::forward<_Tp>(__x).first; } 26629: }; 26629: 26629: template 26629: struct _NodeBuilder; 26629: 26629: template<> 26629: struct _NodeBuilder<_Select1st> 26629: { 26629: template 26629: static auto 26629: _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) 26629: -> typename _NodeGenerator::__node_type* 26629: { 26629: return __node_gen(std::forward<_Kt>(__k), 26629: std::forward<_Arg>(__arg).second); 26629: } 26629: }; 26629: 26629: template<> 26629: struct _NodeBuilder<_Identity> 26629: { 26629: template 26629: static auto 26629: _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) 26629: -> typename _NodeGenerator::__node_type* 26629: { return __node_gen(std::forward<_Kt>(__k)); } 26629: }; 26629: 26629: template 26629: struct _Hashtable_alloc; 26629: 26629: 26629: 26629: template 26629: struct _ReuseOrAllocNode 26629: { 26629: private: 26629: using __node_alloc_type = _NodeAlloc; 26629: using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; 26629: using __node_alloc_traits = 26629: typename __hashtable_alloc::__node_alloc_traits; 26629: 26629: public: 26629: using __node_type = typename __hashtable_alloc::__node_type; 26629: 26629: _ReuseOrAllocNode(__node_type* __nodes, __hashtable_alloc& __h) 26629: : _M_nodes(__nodes), _M_h(__h) { } 26629: _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; 26629: 26629: ~_ReuseOrAllocNode() 26629: { _M_h._M_deallocate_nodes(_M_nodes); } 26629: 26629: template 26629: __node_type* 26629: operator()(_Args&&... __args) const 26629: { 26629: if (_M_nodes) 26629: { 26629: __node_type* __node = _M_nodes; 26629: _M_nodes = _M_nodes->_M_next(); 26629: __node->_M_nxt = nullptr; 26629: auto& __a = _M_h._M_node_allocator(); 26629: __node_alloc_traits::destroy(__a, __node->_M_valptr()); 26629: try 26629: { 26629: __node_alloc_traits::construct(__a, __node->_M_valptr(), 26629: std::forward<_Args>(__args)...); 26629: } 26629: catch(...) 26629: { 26629: _M_h._M_deallocate_node_ptr(__node); 26629: throw; 26629: } 26629: return __node; 26629: } 26629: return _M_h._M_allocate_node(std::forward<_Args>(__args)...); 26629: } 26629: 26629: private: 26629: mutable __node_type* _M_nodes; 26629: __hashtable_alloc& _M_h; 26629: }; 26629: 26629: 26629: 26629: template 26629: struct _AllocNode 26629: { 26629: private: 26629: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; 26629: 26629: public: 26629: using __node_type = typename __hashtable_alloc::__node_type; 26629: 26629: _AllocNode(__hashtable_alloc& __h) 26629: : _M_h(__h) { } 26629: 26629: template 26629: __node_type* 26629: operator()(_Args&&... __args) const 26629: { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } 26629: 26629: private: 26629: __hashtable_alloc& _M_h; 26629: }; 26629: # 243 "/usr/include/c++/12/bits/hashtable_policy.h" 3 26629: template 26629: struct _Hashtable_traits 26629: { 26629: using __hash_cached = __bool_constant<_Cache_hash_code>; 26629: using __constant_iterators = __bool_constant<_Constant_iterators>; 26629: using __unique_keys = __bool_constant<_Unique_keys>; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Hashtable_hash_traits 26629: { 26629: static constexpr std::size_t 26629: __small_size_threshold() noexcept 26629: { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } 26629: }; 26629: # 273 "/usr/include/c++/12/bits/hashtable_policy.h" 3 26629: struct _Hash_node_base 26629: { 26629: _Hash_node_base* _M_nxt; 26629: 26629: _Hash_node_base() noexcept : _M_nxt() { } 26629: 26629: _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Hash_node_value_base 26629: { 26629: typedef _Value value_type; 26629: 26629: __gnu_cxx::__aligned_buffer<_Value> _M_storage; 26629: 26629: _Value* 26629: _M_valptr() noexcept 26629: { return _M_storage._M_ptr(); } 26629: 26629: const _Value* 26629: _M_valptr() const noexcept 26629: { return _M_storage._M_ptr(); } 26629: 26629: _Value& 26629: _M_v() noexcept 26629: { return *_M_valptr(); } 26629: 26629: const _Value& 26629: _M_v() const noexcept 26629: { return *_M_valptr(); } 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct _Hash_node_code_cache 26629: { }; 26629: 26629: 26629: 26629: 26629: template<> 26629: struct _Hash_node_code_cache 26629: { std::size_t _M_hash_code; }; 26629: 26629: template 26629: struct _Hash_node_value 26629: : _Hash_node_value_base<_Value> 26629: , _Hash_node_code_cache<_Cache_hash_code> 26629: { }; 26629: 26629: 26629: 26629: 26629: template 26629: struct _Hash_node 26629: : _Hash_node_base 26629: , _Hash_node_value<_Value, _Cache_hash_code> 26629: { 26629: _Hash_node* 26629: _M_next() const noexcept 26629: { return static_cast<_Hash_node*>(this->_M_nxt); } 26629: }; 26629: 26629: 26629: template 26629: struct _Node_iterator_base 26629: { 26629: using __node_type = _Hash_node<_Value, _Cache_hash_code>; 26629: 26629: __node_type* _M_cur; 26629: 26629: _Node_iterator_base() : _M_cur(nullptr) { } 26629: _Node_iterator_base(__node_type* __p) noexcept 26629: : _M_cur(__p) { } 26629: 26629: void 26629: _M_incr() noexcept 26629: { _M_cur = _M_cur->_M_next(); } 26629: 26629: friend bool 26629: operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 26629: noexcept 26629: { return __x._M_cur == __y._M_cur; } 26629: 26629: 26629: friend bool 26629: operator!=(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 26629: noexcept 26629: { return __x._M_cur != __y._M_cur; } 26629: 26629: }; 26629: 26629: 26629: template 26629: struct _Node_iterator 26629: : public _Node_iterator_base<_Value, __cache> 26629: { 26629: private: 26629: using __base_type = _Node_iterator_base<_Value, __cache>; 26629: using __node_type = typename __base_type::__node_type; 26629: 26629: public: 26629: using value_type = _Value; 26629: using difference_type = std::ptrdiff_t; 26629: using iterator_category = std::forward_iterator_tag; 26629: 26629: using pointer = __conditional_t<__constant_iterators, 26629: const value_type*, value_type*>; 26629: 26629: using reference = __conditional_t<__constant_iterators, 26629: const value_type&, value_type&>; 26629: 26629: _Node_iterator() = default; 26629: 26629: explicit 26629: _Node_iterator(__node_type* __p) noexcept 26629: : __base_type(__p) { } 26629: 26629: reference 26629: operator*() const noexcept 26629: { return this->_M_cur->_M_v(); } 26629: 26629: pointer 26629: operator->() const noexcept 26629: { return this->_M_cur->_M_valptr(); } 26629: 26629: _Node_iterator& 26629: operator++() noexcept 26629: { 26629: this->_M_incr(); 26629: return *this; 26629: } 26629: 26629: _Node_iterator 26629: operator++(int) noexcept 26629: { 26629: _Node_iterator __tmp(*this); 26629: this->_M_incr(); 26629: return __tmp; 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct _Node_const_iterator 26629: : public _Node_iterator_base<_Value, __cache> 26629: { 26629: private: 26629: using __base_type = _Node_iterator_base<_Value, __cache>; 26629: using __node_type = typename __base_type::__node_type; 26629: 26629: public: 26629: typedef _Value value_type; 26629: typedef std::ptrdiff_t difference_type; 26629: typedef std::forward_iterator_tag iterator_category; 26629: 26629: typedef const value_type* pointer; 26629: typedef const value_type& reference; 26629: 26629: _Node_const_iterator() = default; 26629: 26629: explicit 26629: _Node_const_iterator(__node_type* __p) noexcept 26629: : __base_type(__p) { } 26629: 26629: _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, 26629: __cache>& __x) noexcept 26629: : __base_type(__x._M_cur) { } 26629: 26629: reference 26629: operator*() const noexcept 26629: { return this->_M_cur->_M_v(); } 26629: 26629: pointer 26629: operator->() const noexcept 26629: { return this->_M_cur->_M_valptr(); } 26629: 26629: _Node_const_iterator& 26629: operator++() noexcept 26629: { 26629: this->_M_incr(); 26629: return *this; 26629: } 26629: 26629: _Node_const_iterator 26629: operator++(int) noexcept 26629: { 26629: _Node_const_iterator __tmp(*this); 26629: this->_M_incr(); 26629: return __tmp; 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct _Mod_range_hashing 26629: { 26629: typedef std::size_t first_argument_type; 26629: typedef std::size_t second_argument_type; 26629: typedef std::size_t result_type; 26629: 26629: result_type 26629: operator()(first_argument_type __num, 26629: second_argument_type __den) const noexcept 26629: { return __num % __den; } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct _Default_ranged_hash { }; 26629: 26629: 26629: 26629: struct _Prime_rehash_policy 26629: { 26629: using __has_load_factor = true_type; 26629: 26629: _Prime_rehash_policy(float __z = 1.0) noexcept 26629: : _M_max_load_factor(__z), _M_next_resize(0) { } 26629: 26629: float 26629: max_load_factor() const noexcept 26629: { return _M_max_load_factor; } 26629: 26629: 26629: std::size_t 26629: _M_next_bkt(std::size_t __n) const; 26629: 26629: 26629: std::size_t 26629: _M_bkt_for_elements(std::size_t __n) const 26629: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 26629: 26629: 26629: 26629: 26629: 26629: std::pair 26629: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 26629: std::size_t __n_ins) const; 26629: 26629: typedef std::size_t _State; 26629: 26629: _State 26629: _M_state() const 26629: { return _M_next_resize; } 26629: 26629: void 26629: _M_reset() noexcept 26629: { _M_next_resize = 0; } 26629: 26629: void 26629: _M_reset(_State __state) 26629: { _M_next_resize = __state; } 26629: 26629: static const std::size_t _S_growth_factor = 2; 26629: 26629: float _M_max_load_factor; 26629: mutable std::size_t _M_next_resize; 26629: }; 26629: 26629: 26629: struct _Mask_range_hashing 26629: { 26629: typedef std::size_t first_argument_type; 26629: typedef std::size_t second_argument_type; 26629: typedef std::size_t result_type; 26629: 26629: result_type 26629: operator()(first_argument_type __num, 26629: second_argument_type __den) const noexcept 26629: { return __num & (__den - 1); } 26629: }; 26629: 26629: 26629: inline std::size_t 26629: __clp2(std::size_t __n) noexcept 26629: { 26629: using __gnu_cxx::__int_traits; 26629: 26629: if (__n < 2) 26629: return __n; 26629: const unsigned __lz = sizeof(size_t) > sizeof(long) 26629: ? __builtin_clzll(__n - 1ull) 26629: : __builtin_clzl(__n - 1ul); 26629: 26629: return (size_t(1) << (__int_traits::__digits - __lz - 1)) << 1; 26629: } 26629: 26629: 26629: 26629: struct _Power2_rehash_policy 26629: { 26629: using __has_load_factor = true_type; 26629: 26629: _Power2_rehash_policy(float __z = 1.0) noexcept 26629: : _M_max_load_factor(__z), _M_next_resize(0) { } 26629: 26629: float 26629: max_load_factor() const noexcept 26629: { return _M_max_load_factor; } 26629: 26629: 26629: 26629: std::size_t 26629: _M_next_bkt(std::size_t __n) noexcept 26629: { 26629: if (__n == 0) 26629: 26629: 26629: 26629: return 1; 26629: 26629: const auto __max_width = std::min(sizeof(size_t), 8); 26629: const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); 26629: std::size_t __res = __clp2(__n); 26629: 26629: if (__res == 0) 26629: __res = __max_bkt; 26629: else if (__res == 1) 26629: 26629: 26629: 26629: __res = 2; 26629: 26629: if (__res == __max_bkt) 26629: 26629: 26629: 26629: _M_next_resize = size_t(-1); 26629: else 26629: _M_next_resize 26629: = __builtin_floor(__res * (double)_M_max_load_factor); 26629: 26629: return __res; 26629: } 26629: 26629: 26629: std::size_t 26629: _M_bkt_for_elements(std::size_t __n) const noexcept 26629: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 26629: 26629: 26629: 26629: 26629: 26629: std::pair 26629: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 26629: std::size_t __n_ins) noexcept 26629: { 26629: if (__n_elt + __n_ins > _M_next_resize) 26629: { 26629: 26629: 26629: 26629: double __min_bkts 26629: = std::max(__n_elt + __n_ins, _M_next_resize ? 0 : 11) 26629: / (double)_M_max_load_factor; 26629: if (__min_bkts >= __n_bkt) 26629: return { true, 26629: _M_next_bkt(std::max(__builtin_floor(__min_bkts) + 1, 26629: __n_bkt * _S_growth_factor)) }; 26629: 26629: _M_next_resize 26629: = __builtin_floor(__n_bkt * (double)_M_max_load_factor); 26629: return { false, 0 }; 26629: } 26629: else 26629: return { false, 0 }; 26629: } 26629: 26629: typedef std::size_t _State; 26629: 26629: _State 26629: _M_state() const noexcept 26629: { return _M_next_resize; } 26629: 26629: void 26629: _M_reset() noexcept 26629: { _M_next_resize = 0; } 26629: 26629: void 26629: _M_reset(_State __state) noexcept 26629: { _M_next_resize = __state; } 26629: 26629: static const std::size_t _S_growth_factor = 2; 26629: 26629: float _M_max_load_factor; 26629: std::size_t _M_next_resize; 26629: }; 26629: # 696 "/usr/include/c++/12/bits/hashtable_policy.h" 3 26629: template 26629: struct _Map_base { }; 26629: 26629: 26629: template 26629: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 26629: { 26629: using mapped_type = _Val; 26629: }; 26629: 26629: 26629: template 26629: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 26629: { 26629: private: 26629: using __hashtable_base = _Hashtable_base<_Key, pair, 26629: _Select1st, _Equal, _Hash, 26629: _RangeHash, _Unused, 26629: _Traits>; 26629: 26629: using __hashtable = _Hashtable<_Key, pair, _Alloc, 26629: _Select1st, _Equal, _Hash, _RangeHash, 26629: _Unused, _RehashPolicy, _Traits>; 26629: 26629: using __hash_code = typename __hashtable_base::__hash_code; 26629: 26629: public: 26629: using key_type = typename __hashtable_base::key_type; 26629: using mapped_type = _Val; 26629: 26629: mapped_type& 26629: operator[](const key_type& __k); 26629: 26629: mapped_type& 26629: operator[](key_type&& __k); 26629: 26629: 26629: 26629: mapped_type& 26629: at(const key_type& __k) 26629: { 26629: auto __ite = static_cast<__hashtable*>(this)->find(__k); 26629: if (!__ite._M_cur) 26629: __throw_out_of_range(("unordered_map::at")); 26629: return __ite->second; 26629: } 26629: 26629: const mapped_type& 26629: at(const key_type& __k) const 26629: { 26629: auto __ite = static_cast(this)->find(__k); 26629: if (!__ite._M_cur) 26629: __throw_out_of_range(("unordered_map::at")); 26629: return __ite->second; 26629: } 26629: }; 26629: 26629: template 26629: auto 26629: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 26629: operator[](const key_type& __k) 26629: -> mapped_type& 26629: { 26629: __hashtable* __h = static_cast<__hashtable*>(this); 26629: __hash_code __code = __h->_M_hash_code(__k); 26629: std::size_t __bkt = __h->_M_bucket_index(__code); 26629: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 26629: return __node->_M_v().second; 26629: 26629: typename __hashtable::_Scoped_node __node { 26629: __h, 26629: std::piecewise_construct, 26629: std::tuple(__k), 26629: std::tuple<>() 26629: }; 26629: auto __pos 26629: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 26629: __node._M_node = nullptr; 26629: return __pos->second; 26629: } 26629: 26629: template 26629: auto 26629: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 26629: operator[](key_type&& __k) 26629: -> mapped_type& 26629: { 26629: __hashtable* __h = static_cast<__hashtable*>(this); 26629: __hash_code __code = __h->_M_hash_code(__k); 26629: std::size_t __bkt = __h->_M_bucket_index(__code); 26629: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 26629: return __node->_M_v().second; 26629: 26629: typename __hashtable::_Scoped_node __node { 26629: __h, 26629: std::piecewise_construct, 26629: std::forward_as_tuple(std::move(__k)), 26629: std::tuple<>() 26629: }; 26629: auto __pos 26629: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 26629: __node._M_node = nullptr; 26629: return __pos->second; 26629: } 26629: 26629: 26629: template 26629: struct _Map_base, 26629: _Alloc, _Select1st, _Equal, _Hash, 26629: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 26629: : _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, _Hash, 26629: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Insert_base 26629: { 26629: protected: 26629: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, 26629: _Equal, _Hash, _RangeHash, 26629: _Unused, _Traits>; 26629: 26629: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, 26629: _Unused, _RehashPolicy, _Traits>; 26629: 26629: using __hash_cached = typename _Traits::__hash_cached; 26629: using __constant_iterators = typename _Traits::__constant_iterators; 26629: 26629: using __hashtable_alloc = _Hashtable_alloc< 26629: __alloc_rebind<_Alloc, _Hash_node<_Value, 26629: __hash_cached::value>>>; 26629: 26629: using value_type = typename __hashtable_base::value_type; 26629: using size_type = typename __hashtable_base::size_type; 26629: 26629: using __unique_keys = typename _Traits::__unique_keys; 26629: using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; 26629: using __node_gen_type = _AllocNode<__node_alloc_type>; 26629: 26629: __hashtable& 26629: _M_conjure_hashtable() 26629: { return *(static_cast<__hashtable*>(this)); } 26629: 26629: template 26629: void 26629: _M_insert_range(_InputIterator __first, _InputIterator __last, 26629: const _NodeGetter&, true_type __uks); 26629: 26629: template 26629: void 26629: _M_insert_range(_InputIterator __first, _InputIterator __last, 26629: const _NodeGetter&, false_type __uks); 26629: 26629: public: 26629: using iterator = _Node_iterator<_Value, __constant_iterators::value, 26629: __hash_cached::value>; 26629: 26629: using const_iterator = _Node_const_iterator<_Value, 26629: __constant_iterators::value, 26629: __hash_cached::value>; 26629: 26629: using __ireturn_type = __conditional_t<__unique_keys::value, 26629: std::pair, 26629: iterator>; 26629: 26629: __ireturn_type 26629: insert(const value_type& __v) 26629: { 26629: __hashtable& __h = _M_conjure_hashtable(); 26629: __node_gen_type __node_gen(__h); 26629: return __h._M_insert(__v, __node_gen, __unique_keys{}); 26629: } 26629: 26629: iterator 26629: insert(const_iterator __hint, const value_type& __v) 26629: { 26629: __hashtable& __h = _M_conjure_hashtable(); 26629: __node_gen_type __node_gen(__h); 26629: return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); 26629: } 26629: 26629: template 26629: std::pair 26629: try_emplace(const_iterator, _KType&& __k, _Args&&... __args) 26629: { 26629: __hashtable& __h = _M_conjure_hashtable(); 26629: auto __code = __h._M_hash_code(__k); 26629: std::size_t __bkt = __h._M_bucket_index(__code); 26629: if (auto __node = __h._M_find_node(__bkt, __k, __code)) 26629: return { iterator(__node), false }; 26629: 26629: typename __hashtable::_Scoped_node __node { 26629: &__h, 26629: std::piecewise_construct, 26629: std::forward_as_tuple(std::forward<_KType>(__k)), 26629: std::forward_as_tuple(std::forward<_Args>(__args)...) 26629: }; 26629: auto __it 26629: = __h._M_insert_unique_node(__bkt, __code, __node._M_node); 26629: __node._M_node = nullptr; 26629: return { __it, true }; 26629: } 26629: 26629: void 26629: insert(initializer_list __l) 26629: { this->insert(__l.begin(), __l.end()); } 26629: 26629: template 26629: void 26629: insert(_InputIterator __first, _InputIterator __last) 26629: { 26629: __hashtable& __h = _M_conjure_hashtable(); 26629: __node_gen_type __node_gen(__h); 26629: return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); 26629: } 26629: }; 26629: 26629: template 26629: template 26629: void 26629: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>:: 26629: _M_insert_range(_InputIterator __first, _InputIterator __last, 26629: const _NodeGetter& __node_gen, true_type __uks) 26629: { 26629: __hashtable& __h = _M_conjure_hashtable(); 26629: for (; __first != __last; ++__first) 26629: __h._M_insert(*__first, __node_gen, __uks); 26629: } 26629: 26629: template 26629: template 26629: void 26629: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>:: 26629: _M_insert_range(_InputIterator __first, _InputIterator __last, 26629: const _NodeGetter& __node_gen, false_type __uks) 26629: { 26629: using __rehash_type = typename __hashtable::__rehash_type; 26629: using __rehash_state = typename __hashtable::__rehash_state; 26629: using pair_type = std::pair; 26629: 26629: size_type __n_elt = __detail::__distance_fw(__first, __last); 26629: if (__n_elt == 0) 26629: return; 26629: 26629: __hashtable& __h = _M_conjure_hashtable(); 26629: __rehash_type& __rehash = __h._M_rehash_policy; 26629: const __rehash_state& __saved_state = __rehash._M_state(); 26629: pair_type __do_rehash = __rehash._M_need_rehash(__h._M_bucket_count, 26629: __h._M_element_count, 26629: __n_elt); 26629: 26629: if (__do_rehash.first) 26629: __h._M_rehash(__do_rehash.second, __saved_state); 26629: 26629: for (; __first != __last; ++__first) 26629: __h._M_insert(*__first, __node_gen, __uks); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Insert; 26629: 26629: 26629: template 26629: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits, true> 26629: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 26629: { 26629: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 26629: _Equal, _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>; 26629: 26629: using value_type = typename __base_type::value_type; 26629: using iterator = typename __base_type::iterator; 26629: using const_iterator = typename __base_type::const_iterator; 26629: using __ireturn_type = typename __base_type::__ireturn_type; 26629: 26629: using __unique_keys = typename __base_type::__unique_keys; 26629: using __hashtable = typename __base_type::__hashtable; 26629: using __node_gen_type = typename __base_type::__node_gen_type; 26629: 26629: using __base_type::insert; 26629: 26629: __ireturn_type 26629: insert(value_type&& __v) 26629: { 26629: __hashtable& __h = this->_M_conjure_hashtable(); 26629: __node_gen_type __node_gen(__h); 26629: return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); 26629: } 26629: 26629: iterator 26629: insert(const_iterator __hint, value_type&& __v) 26629: { 26629: __hashtable& __h = this->_M_conjure_hashtable(); 26629: __node_gen_type __node_gen(__h); 26629: return __h._M_insert(__hint, std::move(__v), __node_gen, 26629: __unique_keys{}); 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 26629: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 26629: { 26629: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 26629: _Equal, _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>; 26629: using value_type = typename __base_type::value_type; 26629: using iterator = typename __base_type::iterator; 26629: using const_iterator = typename __base_type::const_iterator; 26629: 26629: using __unique_keys = typename __base_type::__unique_keys; 26629: using __hashtable = typename __base_type::__hashtable; 26629: using __ireturn_type = typename __base_type::__ireturn_type; 26629: 26629: using __base_type::insert; 26629: 26629: template 26629: using __is_cons = std::is_constructible; 26629: 26629: template 26629: using _IFcons = std::enable_if<__is_cons<_Pair>::value>; 26629: 26629: template 26629: using _IFconsp = typename _IFcons<_Pair>::type; 26629: 26629: template> 26629: __ireturn_type 26629: insert(_Pair&& __v) 26629: { 26629: __hashtable& __h = this->_M_conjure_hashtable(); 26629: return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); 26629: } 26629: 26629: template> 26629: iterator 26629: insert(const_iterator __hint, _Pair&& __v) 26629: { 26629: __hashtable& __h = this->_M_conjure_hashtable(); 26629: return __h._M_emplace(__hint, __unique_keys{}, 26629: std::forward<_Pair>(__v)); 26629: } 26629: }; 26629: 26629: template 26629: using __has_load_factor = typename _Policy::__has_load_factor; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: struct _Rehash_base; 26629: 26629: 26629: template 26629: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 26629: false_type > 26629: { 26629: }; 26629: 26629: 26629: template 26629: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 26629: true_type > 26629: { 26629: private: 26629: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, 26629: _Equal, _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>; 26629: 26629: public: 26629: float 26629: max_load_factor() const noexcept 26629: { 26629: const __hashtable* __this = static_cast(this); 26629: return __this->__rehash_policy().max_load_factor(); 26629: } 26629: 26629: void 26629: max_load_factor(float __z) 26629: { 26629: __hashtable* __this = static_cast<__hashtable*>(this); 26629: __this->__rehash_policy(_RehashPolicy(__z)); 26629: } 26629: 26629: void 26629: reserve(std::size_t __n) 26629: { 26629: __hashtable* __this = static_cast<__hashtable*>(this); 26629: __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Hashtable_ebo_helper; 26629: 26629: 26629: template 26629: struct _Hashtable_ebo_helper<_Nm, _Tp, true> 26629: : private _Tp 26629: { 26629: _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } 26629: 26629: template 26629: _Hashtable_ebo_helper(_OtherTp&& __tp) 26629: : _Tp(std::forward<_OtherTp>(__tp)) 26629: { } 26629: 26629: const _Tp& _M_cget() const { return static_cast(*this); } 26629: _Tp& _M_get() { return static_cast<_Tp&>(*this); } 26629: }; 26629: 26629: 26629: template 26629: struct _Hashtable_ebo_helper<_Nm, _Tp, false> 26629: { 26629: _Hashtable_ebo_helper() = default; 26629: 26629: template 26629: _Hashtable_ebo_helper(_OtherTp&& __tp) 26629: : _M_tp(std::forward<_OtherTp>(__tp)) 26629: { } 26629: 26629: const _Tp& _M_cget() const { return _M_tp; } 26629: _Tp& _M_get() { return _M_tp; } 26629: 26629: private: 26629: _Tp _M_tp{}; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Local_iterator_base; 26629: # 1236 "/usr/include/c++/12/bits/hashtable_policy.h" 3 26629: template 26629: struct _Hash_code_base 26629: : private _Hashtable_ebo_helper<1, _Hash> 26629: { 26629: private: 26629: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; 26629: 26629: 26629: friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, false>; 26629: 26629: public: 26629: typedef _Hash hasher; 26629: 26629: hasher 26629: hash_function() const 26629: { return _M_hash(); } 26629: 26629: protected: 26629: typedef std::size_t __hash_code; 26629: 26629: 26629: 26629: _Hash_code_base() = default; 26629: 26629: _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } 26629: 26629: __hash_code 26629: _M_hash_code(const _Key& __k) const 26629: { 26629: static_assert(__is_invocable{}, 26629: "hash function must be invocable with an argument of key type"); 26629: return _M_hash()(__k); 26629: } 26629: 26629: template 26629: __hash_code 26629: _M_hash_code_tr(const _Kt& __k) const 26629: { 26629: static_assert(__is_invocable{}, 26629: "hash function must be invocable with an argument of key type"); 26629: return _M_hash()(__k); 26629: } 26629: 26629: __hash_code 26629: _M_hash_code(const _Hash&, 26629: const _Hash_node_value<_Value, true>& __n) const 26629: { return __n._M_hash_code; } 26629: 26629: 26629: 26629: template 26629: __hash_code 26629: _M_hash_code(const _H2&, 26629: const _Hash_node_value<_Value, __cache_hash_code>& __n) const 26629: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 26629: 26629: __hash_code 26629: _M_hash_code(const _Hash_node_value<_Value, false>& __n) const 26629: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 26629: 26629: __hash_code 26629: _M_hash_code(const _Hash_node_value<_Value, true>& __n) const 26629: { return __n._M_hash_code; } 26629: 26629: std::size_t 26629: _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const 26629: { return _RangeHash{}(__c, __bkt_count); } 26629: 26629: std::size_t 26629: _M_bucket_index(const _Hash_node_value<_Value, false>& __n, 26629: std::size_t __bkt_count) const 26629: noexcept( noexcept(declval()(declval())) 26629: && noexcept(declval()((__hash_code)0, 26629: (std::size_t)0)) ) 26629: { 26629: return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), 26629: __bkt_count); 26629: } 26629: 26629: std::size_t 26629: _M_bucket_index(const _Hash_node_value<_Value, true>& __n, 26629: std::size_t __bkt_count) const 26629: noexcept( noexcept(declval()((__hash_code)0, 26629: (std::size_t)0)) ) 26629: { return _RangeHash{}(__n._M_hash_code, __bkt_count); } 26629: 26629: void 26629: _M_store_code(_Hash_node_code_cache&, __hash_code) const 26629: { } 26629: 26629: void 26629: _M_copy_code(_Hash_node_code_cache&, 26629: const _Hash_node_code_cache&) const 26629: { } 26629: 26629: void 26629: _M_store_code(_Hash_node_code_cache& __n, __hash_code __c) const 26629: { __n._M_hash_code = __c; } 26629: 26629: void 26629: _M_copy_code(_Hash_node_code_cache& __to, 26629: const _Hash_node_code_cache& __from) const 26629: { __to._M_hash_code = __from._M_hash_code; } 26629: 26629: void 26629: _M_swap(_Hash_code_base& __x) 26629: { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } 26629: 26629: const _Hash& 26629: _M_hash() const { return __ebo_hash::_M_cget(); } 26629: }; 26629: 26629: 26629: template 26629: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, true> 26629: : public _Node_iterator_base<_Value, true> 26629: { 26629: protected: 26629: using __base_node_iter = _Node_iterator_base<_Value, true>; 26629: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, true>; 26629: 26629: _Local_iterator_base() = default; 26629: _Local_iterator_base(const __hash_code_base&, 26629: _Hash_node<_Value, true>* __p, 26629: std::size_t __bkt, std::size_t __bkt_count) 26629: : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 26629: { } 26629: 26629: void 26629: _M_incr() 26629: { 26629: __base_node_iter::_M_incr(); 26629: if (this->_M_cur) 26629: { 26629: std::size_t __bkt 26629: = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); 26629: if (__bkt != _M_bucket) 26629: this->_M_cur = nullptr; 26629: } 26629: } 26629: 26629: std::size_t _M_bucket; 26629: std::size_t _M_bucket_count; 26629: 26629: public: 26629: std::size_t 26629: _M_get_bucket() const { return _M_bucket; } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template::value> 26629: struct _Hash_code_storage 26629: { 26629: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 26629: 26629: _Tp* 26629: _M_h() { return _M_storage._M_ptr(); } 26629: 26629: const _Tp* 26629: _M_h() const { return _M_storage._M_ptr(); } 26629: }; 26629: 26629: 26629: template 26629: struct _Hash_code_storage<_Tp, true> 26629: { 26629: static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); 26629: 26629: 26629: 26629: _Tp* 26629: _M_h() { return reinterpret_cast<_Tp*>(this); } 26629: 26629: const _Tp* 26629: _M_h() const { return reinterpret_cast(this); } 26629: }; 26629: 26629: template 26629: using __hash_code_for_local_iter 26629: = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, false>>; 26629: 26629: 26629: template 26629: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, false> 26629: : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 26629: _Unused> 26629: , _Node_iterator_base<_Value, false> 26629: { 26629: protected: 26629: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, false>; 26629: using __node_iter_base = _Node_iterator_base<_Value, false>; 26629: 26629: _Local_iterator_base() : _M_bucket_count(-1) { } 26629: 26629: _Local_iterator_base(const __hash_code_base& __base, 26629: _Hash_node<_Value, false>* __p, 26629: std::size_t __bkt, std::size_t __bkt_count) 26629: : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 26629: { _M_init(__base); } 26629: 26629: ~_Local_iterator_base() 26629: { 26629: if (_M_bucket_count != size_t(-1)) 26629: _M_destroy(); 26629: } 26629: 26629: _Local_iterator_base(const _Local_iterator_base& __iter) 26629: : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) 26629: , _M_bucket_count(__iter._M_bucket_count) 26629: { 26629: if (_M_bucket_count != size_t(-1)) 26629: _M_init(*__iter._M_h()); 26629: } 26629: 26629: _Local_iterator_base& 26629: operator=(const _Local_iterator_base& __iter) 26629: { 26629: if (_M_bucket_count != -1) 26629: _M_destroy(); 26629: this->_M_cur = __iter._M_cur; 26629: _M_bucket = __iter._M_bucket; 26629: _M_bucket_count = __iter._M_bucket_count; 26629: if (_M_bucket_count != -1) 26629: _M_init(*__iter._M_h()); 26629: return *this; 26629: } 26629: 26629: void 26629: _M_incr() 26629: { 26629: __node_iter_base::_M_incr(); 26629: if (this->_M_cur) 26629: { 26629: std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, 26629: _M_bucket_count); 26629: if (__bkt != _M_bucket) 26629: this->_M_cur = nullptr; 26629: } 26629: } 26629: 26629: std::size_t _M_bucket; 26629: std::size_t _M_bucket_count; 26629: 26629: void 26629: _M_init(const __hash_code_base& __base) 26629: { ::new(this->_M_h()) __hash_code_base(__base); } 26629: 26629: void 26629: _M_destroy() { this->_M_h()->~__hash_code_base(); } 26629: 26629: public: 26629: std::size_t 26629: _M_get_bucket() const { return _M_bucket; } 26629: }; 26629: 26629: 26629: template 26629: struct _Local_iterator 26629: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, __cache> 26629: { 26629: private: 26629: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, __cache>; 26629: using __hash_code_base = typename __base_type::__hash_code_base; 26629: 26629: public: 26629: using value_type = _Value; 26629: using pointer = __conditional_t<__constant_iterators, 26629: const value_type*, value_type*>; 26629: using reference = __conditional_t<__constant_iterators, 26629: const value_type&, value_type&>; 26629: using difference_type = ptrdiff_t; 26629: using iterator_category = forward_iterator_tag; 26629: 26629: _Local_iterator() = default; 26629: 26629: _Local_iterator(const __hash_code_base& __base, 26629: _Hash_node<_Value, __cache>* __n, 26629: std::size_t __bkt, std::size_t __bkt_count) 26629: : __base_type(__base, __n, __bkt, __bkt_count) 26629: { } 26629: 26629: reference 26629: operator*() const 26629: { return this->_M_cur->_M_v(); } 26629: 26629: pointer 26629: operator->() const 26629: { return this->_M_cur->_M_valptr(); } 26629: 26629: _Local_iterator& 26629: operator++() 26629: { 26629: this->_M_incr(); 26629: return *this; 26629: } 26629: 26629: _Local_iterator 26629: operator++(int) 26629: { 26629: _Local_iterator __tmp(*this); 26629: this->_M_incr(); 26629: return __tmp; 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct _Local_const_iterator 26629: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, __cache> 26629: { 26629: private: 26629: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, __cache>; 26629: using __hash_code_base = typename __base_type::__hash_code_base; 26629: 26629: public: 26629: typedef _Value value_type; 26629: typedef const value_type* pointer; 26629: typedef const value_type& reference; 26629: typedef std::ptrdiff_t difference_type; 26629: typedef std::forward_iterator_tag iterator_category; 26629: 26629: _Local_const_iterator() = default; 26629: 26629: _Local_const_iterator(const __hash_code_base& __base, 26629: _Hash_node<_Value, __cache>* __n, 26629: std::size_t __bkt, std::size_t __bkt_count) 26629: : __base_type(__base, __n, __bkt, __bkt_count) 26629: { } 26629: 26629: _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, 26629: __constant_iterators, 26629: __cache>& __x) 26629: : __base_type(__x) 26629: { } 26629: 26629: reference 26629: operator*() const 26629: { return this->_M_cur->_M_v(); } 26629: 26629: pointer 26629: operator->() const 26629: { return this->_M_cur->_M_valptr(); } 26629: 26629: _Local_const_iterator& 26629: operator++() 26629: { 26629: this->_M_incr(); 26629: return *this; 26629: } 26629: 26629: _Local_const_iterator 26629: operator++(int) 26629: { 26629: _Local_const_iterator __tmp(*this); 26629: this->_M_incr(); 26629: return __tmp; 26629: } 26629: }; 26629: # 1628 "/usr/include/c++/12/bits/hashtable_policy.h" 3 26629: template 26629: struct _Hashtable_base 26629: : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 26629: _Unused, _Traits::__hash_cached::value>, 26629: private _Hashtable_ebo_helper<0, _Equal> 26629: { 26629: public: 26629: typedef _Key key_type; 26629: typedef _Value value_type; 26629: typedef _Equal key_equal; 26629: typedef std::size_t size_type; 26629: typedef std::ptrdiff_t difference_type; 26629: 26629: using __traits_type = _Traits; 26629: using __hash_cached = typename __traits_type::__hash_cached; 26629: 26629: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 26629: _Hash, _RangeHash, _Unused, 26629: __hash_cached::value>; 26629: 26629: using __hash_code = typename __hash_code_base::__hash_code; 26629: 26629: private: 26629: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; 26629: 26629: static bool 26629: _S_equals(__hash_code, const _Hash_node_code_cache&) 26629: { return true; } 26629: 26629: static bool 26629: _S_node_equals(const _Hash_node_code_cache&, 26629: const _Hash_node_code_cache&) 26629: { return true; } 26629: 26629: static bool 26629: _S_equals(__hash_code __c, const _Hash_node_code_cache& __n) 26629: { return __c == __n._M_hash_code; } 26629: 26629: static bool 26629: _S_node_equals(const _Hash_node_code_cache& __lhn, 26629: const _Hash_node_code_cache& __rhn) 26629: { return __lhn._M_hash_code == __rhn._M_hash_code; } 26629: 26629: protected: 26629: _Hashtable_base() = default; 26629: 26629: _Hashtable_base(const _Hash& __hash, const _Equal& __eq) 26629: : __hash_code_base(__hash), _EqualEBO(__eq) 26629: { } 26629: 26629: bool 26629: _M_key_equals(const _Key& __k, 26629: const _Hash_node_value<_Value, 26629: __hash_cached::value>& __n) const 26629: { 26629: static_assert(__is_invocable{}, 26629: "key equality predicate must be invocable with two arguments of " 26629: "key type"); 26629: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 26629: } 26629: 26629: template 26629: bool 26629: _M_key_equals_tr(const _Kt& __k, 26629: const _Hash_node_value<_Value, 26629: __hash_cached::value>& __n) const 26629: { 26629: static_assert( 26629: __is_invocable{}, 26629: "key equality predicate must be invocable with two arguments of " 26629: "key type"); 26629: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 26629: } 26629: 26629: bool 26629: _M_equals(const _Key& __k, __hash_code __c, 26629: const _Hash_node_value<_Value, __hash_cached::value>& __n) const 26629: { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } 26629: 26629: template 26629: bool 26629: _M_equals_tr(const _Kt& __k, __hash_code __c, 26629: const _Hash_node_value<_Value, 26629: __hash_cached::value>& __n) const 26629: { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } 26629: 26629: bool 26629: _M_node_equals( 26629: const _Hash_node_value<_Value, __hash_cached::value>& __lhn, 26629: const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const 26629: { 26629: return _S_node_equals(__lhn, __rhn) 26629: && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); 26629: } 26629: 26629: void 26629: _M_swap(_Hashtable_base& __x) 26629: { 26629: __hash_code_base::_M_swap(__x); 26629: std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); 26629: } 26629: 26629: const _Equal& 26629: _M_eq() const { return _EqualEBO::_M_cget(); } 26629: }; 26629: # 1744 "/usr/include/c++/12/bits/hashtable_policy.h" 3 26629: template 26629: struct _Equality; 26629: 26629: 26629: template 26629: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 26629: { 26629: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>; 26629: 26629: bool 26629: _M_equal(const __hashtable&) const; 26629: }; 26629: 26629: template 26629: bool 26629: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 26629: _M_equal(const __hashtable& __other) const 26629: { 26629: using __node_type = typename __hashtable::__node_type; 26629: const __hashtable* __this = static_cast(this); 26629: if (__this->size() != __other.size()) 26629: return false; 26629: 26629: for (auto __itx = __this->begin(); __itx != __this->end(); ++__itx) 26629: { 26629: std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur); 26629: auto __prev_n = __other._M_buckets[__ybkt]; 26629: if (!__prev_n) 26629: return false; 26629: 26629: for (__node_type* __n = static_cast<__node_type*>(__prev_n->_M_nxt);; 26629: __n = __n->_M_next()) 26629: { 26629: if (__n->_M_v() == *__itx) 26629: break; 26629: 26629: if (!__n->_M_nxt 26629: || __other._M_bucket_index(*__n->_M_next()) != __ybkt) 26629: return false; 26629: } 26629: } 26629: 26629: return true; 26629: } 26629: 26629: 26629: template 26629: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 26629: { 26629: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>; 26629: 26629: bool 26629: _M_equal(const __hashtable&) const; 26629: }; 26629: 26629: template 26629: bool 26629: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: 26629: _M_equal(const __hashtable& __other) const 26629: { 26629: using __node_type = typename __hashtable::__node_type; 26629: const __hashtable* __this = static_cast(this); 26629: if (__this->size() != __other.size()) 26629: return false; 26629: 26629: for (auto __itx = __this->begin(); __itx != __this->end();) 26629: { 26629: std::size_t __x_count = 1; 26629: auto __itx_end = __itx; 26629: for (++__itx_end; __itx_end != __this->end() 26629: && __this->key_eq()(_ExtractKey{}(*__itx), 26629: _ExtractKey{}(*__itx_end)); 26629: ++__itx_end) 26629: ++__x_count; 26629: 26629: std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur); 26629: auto __y_prev_n = __other._M_buckets[__ybkt]; 26629: if (!__y_prev_n) 26629: return false; 26629: 26629: __node_type* __y_n = static_cast<__node_type*>(__y_prev_n->_M_nxt); 26629: for (;;) 26629: { 26629: if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), 26629: _ExtractKey{}(*__itx))) 26629: break; 26629: 26629: auto __y_ref_n = __y_n; 26629: for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) 26629: if (!__other._M_node_equals(*__y_ref_n, *__y_n)) 26629: break; 26629: 26629: if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) 26629: return false; 26629: } 26629: 26629: typename __hashtable::const_iterator __ity(__y_n); 26629: for (auto __ity_end = __ity; __ity_end != __other.end(); ++__ity_end) 26629: if (--__x_count == 0) 26629: break; 26629: 26629: if (__x_count != 0) 26629: return false; 26629: 26629: if (!std::is_permutation(__itx, __itx_end, __ity)) 26629: return false; 26629: 26629: __itx = __itx_end; 26629: } 26629: return true; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> 26629: { 26629: private: 26629: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; 26629: 26629: template 26629: struct __get_value_type; 26629: template 26629: struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> 26629: { using type = _Val; }; 26629: 26629: public: 26629: using __node_type = typename _NodeAlloc::value_type; 26629: using __node_alloc_type = _NodeAlloc; 26629: 26629: using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; 26629: 26629: using __value_alloc_traits = typename __node_alloc_traits::template 26629: rebind_traits::type>; 26629: 26629: using __node_ptr = __node_type*; 26629: using __node_base = _Hash_node_base; 26629: using __node_base_ptr = __node_base*; 26629: using __buckets_alloc_type = 26629: __alloc_rebind<__node_alloc_type, __node_base_ptr>; 26629: using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; 26629: using __buckets_ptr = __node_base_ptr*; 26629: 26629: _Hashtable_alloc() = default; 26629: _Hashtable_alloc(const _Hashtable_alloc&) = default; 26629: _Hashtable_alloc(_Hashtable_alloc&&) = default; 26629: 26629: template 26629: _Hashtable_alloc(_Alloc&& __a) 26629: : __ebo_node_alloc(std::forward<_Alloc>(__a)) 26629: { } 26629: 26629: __node_alloc_type& 26629: _M_node_allocator() 26629: { return __ebo_node_alloc::_M_get(); } 26629: 26629: const __node_alloc_type& 26629: _M_node_allocator() const 26629: { return __ebo_node_alloc::_M_cget(); } 26629: 26629: 26629: template 26629: __node_ptr 26629: _M_allocate_node(_Args&&... __args); 26629: 26629: 26629: void 26629: _M_deallocate_node(__node_ptr __n); 26629: 26629: 26629: void 26629: _M_deallocate_node_ptr(__node_ptr __n); 26629: 26629: 26629: 26629: void 26629: _M_deallocate_nodes(__node_ptr __n); 26629: 26629: __buckets_ptr 26629: _M_allocate_buckets(std::size_t __bkt_count); 26629: 26629: void 26629: _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); 26629: }; 26629: 26629: 26629: 26629: template 26629: template 26629: auto 26629: _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) 26629: -> __node_ptr 26629: { 26629: auto __nptr = __node_alloc_traits::allocate(_M_node_allocator(), 1); 26629: __node_ptr __n = std::__to_address(__nptr); 26629: try 26629: { 26629: ::new ((void*)__n) __node_type; 26629: __node_alloc_traits::construct(_M_node_allocator(), 26629: __n->_M_valptr(), 26629: std::forward<_Args>(__args)...); 26629: return __n; 26629: } 26629: catch(...) 26629: { 26629: __node_alloc_traits::deallocate(_M_node_allocator(), __nptr, 1); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: void 26629: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) 26629: { 26629: __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); 26629: _M_deallocate_node_ptr(__n); 26629: } 26629: 26629: template 26629: void 26629: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) 26629: { 26629: typedef typename __node_alloc_traits::pointer _Ptr; 26629: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); 26629: __n->~__node_type(); 26629: __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); 26629: } 26629: 26629: template 26629: void 26629: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) 26629: { 26629: while (__n) 26629: { 26629: __node_ptr __tmp = __n; 26629: __n = __n->_M_next(); 26629: _M_deallocate_node(__tmp); 26629: } 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) 26629: -> __buckets_ptr 26629: { 26629: __buckets_alloc_type __alloc(_M_node_allocator()); 26629: 26629: auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); 26629: __buckets_ptr __p = std::__to_address(__ptr); 26629: __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); 26629: return __p; 26629: } 26629: 26629: template 26629: void 26629: _Hashtable_alloc<_NodeAlloc>:: 26629: _M_deallocate_buckets(__buckets_ptr __bkts, 26629: std::size_t __bkt_count) 26629: { 26629: typedef typename __buckets_alloc_traits::pointer _Ptr; 26629: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); 26629: __buckets_alloc_type __alloc(_M_node_allocator()); 26629: __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); 26629: } 26629: 26629: 26629: } 26629: 26629: 26629: } 26629: # 36 "/usr/include/c++/12/bits/hashtable.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/enable_special_members.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/enable_special_members.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/enable_special_members.h" 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: struct _Enable_default_constructor_tag 26629: { 26629: explicit constexpr _Enable_default_constructor_tag() = default; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Enable_default_constructor 26629: { 26629: constexpr _Enable_default_constructor() noexcept = default; 26629: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 26629: noexcept = default; 26629: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 26629: noexcept = default; 26629: _Enable_default_constructor& 26629: operator=(_Enable_default_constructor const&) noexcept = default; 26629: _Enable_default_constructor& 26629: operator=(_Enable_default_constructor&&) noexcept = default; 26629: 26629: 26629: constexpr explicit 26629: _Enable_default_constructor(_Enable_default_constructor_tag) { } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Enable_destructor { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Enable_copy_move { }; 26629: # 96 "/usr/include/c++/12/bits/enable_special_members.h" 3 26629: template 26629: struct _Enable_special_members 26629: : private _Enable_default_constructor<_Default, _Tag>, 26629: private _Enable_destructor<_Destructor, _Tag>, 26629: private _Enable_copy_move<_Copy, _CopyAssignment, 26629: _Move, _MoveAssignment, 26629: _Tag> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct _Enable_default_constructor 26629: { 26629: constexpr _Enable_default_constructor() noexcept = delete; 26629: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 26629: noexcept = default; 26629: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 26629: noexcept = default; 26629: _Enable_default_constructor& 26629: operator=(_Enable_default_constructor const&) noexcept = default; 26629: _Enable_default_constructor& 26629: operator=(_Enable_default_constructor&&) noexcept = default; 26629: 26629: 26629: constexpr explicit 26629: _Enable_default_constructor(_Enable_default_constructor_tag) { } 26629: }; 26629: 26629: template 26629: struct _Enable_destructor 26629: { ~_Enable_destructor() noexcept = delete; }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = default; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = default; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = default; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = default; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = default; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = default; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = default; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = delete; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = delete; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = delete; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = delete; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = delete; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = default; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = delete; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = delete; 26629: }; 26629: 26629: template 26629: struct _Enable_copy_move 26629: { 26629: constexpr _Enable_copy_move() noexcept = default; 26629: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 26629: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move const&) noexcept = delete; 26629: _Enable_copy_move& 26629: operator=(_Enable_copy_move&&) noexcept = delete; 26629: }; 26629: 26629: 26629: 26629: } 26629: # 37 "/usr/include/c++/12/bits/hashtable.h" 2 3 26629: 26629: # 1 "/usr/include/c++/12/bits/node_handle.h" 1 3 26629: # 34 "/usr/include/c++/12/bits/node_handle.h" 3 26629: 26629: # 35 "/usr/include/c++/12/bits/node_handle.h" 3 26629: # 43 "/usr/include/c++/12/bits/node_handle.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 63 "/usr/include/c++/12/bits/node_handle.h" 3 26629: template 26629: class _Node_handle_common 26629: { 26629: using _AllocTraits = allocator_traits<_NodeAlloc>; 26629: 26629: public: 26629: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 26629: return allocator_type(_M_alloc._M_alloc); 26629: } 26629: 26629: explicit operator bool() const noexcept { return _M_ptr != nullptr; } 26629: 26629: [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } 26629: 26629: 26629: protected: 26629: constexpr _Node_handle_common() noexcept : _M_ptr() { } 26629: 26629: ~_Node_handle_common() 26629: { 26629: if (!empty()) 26629: _M_reset(); 26629: } 26629: 26629: _Node_handle_common(_Node_handle_common&& __nh) noexcept 26629: : _M_ptr(__nh._M_ptr) 26629: { 26629: if (_M_ptr) 26629: _M_move(std::move(__nh)); 26629: } 26629: 26629: _Node_handle_common& 26629: operator=(_Node_handle_common&& __nh) noexcept 26629: { 26629: if (empty()) 26629: { 26629: if (!__nh.empty()) 26629: _M_move(std::move(__nh)); 26629: } 26629: else if (__nh.empty()) 26629: _M_reset(); 26629: else 26629: { 26629: 26629: _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); 26629: _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); 26629: 26629: _M_alloc = __nh._M_alloc.release(); 26629: _M_ptr = __nh._M_ptr; 26629: __nh._M_ptr = nullptr; 26629: } 26629: return *this; 26629: } 26629: 26629: _Node_handle_common(typename _AllocTraits::pointer __ptr, 26629: const _NodeAlloc& __alloc) 26629: : _M_ptr(__ptr), _M_alloc(__alloc) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__ptr != nullptr)) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: void 26629: _M_swap(_Node_handle_common& __nh) noexcept 26629: { 26629: if (empty()) 26629: { 26629: if (!__nh.empty()) 26629: _M_move(std::move(__nh)); 26629: } 26629: else if (__nh.empty()) 26629: __nh._M_move(std::move(*this)); 26629: else 26629: { 26629: using std::swap; 26629: swap(_M_ptr, __nh._M_ptr); 26629: _M_alloc.swap(__nh._M_alloc); 26629: } 26629: } 26629: 26629: private: 26629: 26629: 26629: 26629: void 26629: _M_move(_Node_handle_common&& __nh) noexcept 26629: { 26629: ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); 26629: _M_ptr = __nh._M_ptr; 26629: __nh._M_ptr = nullptr; 26629: } 26629: 26629: 26629: 26629: 26629: void 26629: _M_reset() noexcept 26629: { 26629: _NodeAlloc __alloc = _M_alloc.release(); 26629: _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); 26629: _AllocTraits::deallocate(__alloc, _M_ptr, 1); 26629: _M_ptr = nullptr; 26629: } 26629: 26629: protected: 26629: typename _AllocTraits::pointer _M_ptr; 26629: 26629: private: 26629: 26629: 26629: union _Optional_alloc 26629: { 26629: _Optional_alloc() { } 26629: ~_Optional_alloc() { } 26629: 26629: _Optional_alloc(_Optional_alloc&&) = delete; 26629: _Optional_alloc& operator=(_Optional_alloc&&) = delete; 26629: 26629: _Optional_alloc(const _NodeAlloc& __alloc) noexcept 26629: : _M_alloc(__alloc) 26629: { } 26629: 26629: 26629: void 26629: operator=(_NodeAlloc&& __alloc) noexcept 26629: { 26629: using _ATr = _AllocTraits; 26629: if constexpr (_ATr::propagate_on_container_move_assignment::value) 26629: _M_alloc = std::move(__alloc); 26629: else if constexpr (!_AllocTraits::is_always_equal::value) 26629: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __alloc)) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: 26629: void 26629: swap(_Optional_alloc& __other) noexcept 26629: { 26629: using std::swap; 26629: if constexpr (_AllocTraits::propagate_on_container_swap::value) 26629: swap(_M_alloc, __other._M_alloc); 26629: else if constexpr (!_AllocTraits::is_always_equal::value) 26629: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __other._M_alloc)) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: 26629: _NodeAlloc& operator*() noexcept { return _M_alloc; } 26629: 26629: 26629: _NodeAlloc release() noexcept 26629: { 26629: _NodeAlloc __tmp = std::move(_M_alloc); 26629: _M_alloc.~_NodeAlloc(); 26629: return __tmp; 26629: } 26629: 26629: struct _Empty { }; 26629: 26629: [[__no_unique_address__]] _Empty _M_empty; 26629: [[__no_unique_address__]] _NodeAlloc _M_alloc; 26629: }; 26629: 26629: [[__no_unique_address__]] _Optional_alloc _M_alloc; 26629: 26629: template 26629: friend class _Rb_tree; 26629: 26629: 26629: }; 26629: 26629: 26629: template 26629: class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> 26629: { 26629: public: 26629: constexpr _Node_handle() noexcept = default; 26629: ~_Node_handle() = default; 26629: _Node_handle(_Node_handle&&) noexcept = default; 26629: 26629: _Node_handle& 26629: operator=(_Node_handle&&) noexcept = default; 26629: 26629: using key_type = _Key; 26629: using mapped_type = typename _Value::second_type; 26629: 26629: key_type& 26629: key() const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 26629: return *_M_pkey; 26629: } 26629: 26629: mapped_type& 26629: mapped() const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 26629: return *_M_pmapped; 26629: } 26629: 26629: void 26629: swap(_Node_handle& __nh) noexcept 26629: { 26629: this->_M_swap(__nh); 26629: using std::swap; 26629: swap(_M_pkey, __nh._M_pkey); 26629: swap(_M_pmapped, __nh._M_pmapped); 26629: } 26629: 26629: friend void 26629: swap(_Node_handle& __x, _Node_handle& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: private: 26629: using _AllocTraits = allocator_traits<_NodeAlloc>; 26629: 26629: _Node_handle(typename _AllocTraits::pointer __ptr, 26629: const _NodeAlloc& __alloc) 26629: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) 26629: { 26629: if (__ptr) 26629: { 26629: auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); 26629: _M_pkey = _S_pointer_to(__key); 26629: _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); 26629: } 26629: else 26629: { 26629: _M_pkey = nullptr; 26629: _M_pmapped = nullptr; 26629: } 26629: } 26629: 26629: template 26629: using __pointer 26629: = __ptr_rebind>; 26629: 26629: __pointer<_Key> _M_pkey = nullptr; 26629: __pointer _M_pmapped = nullptr; 26629: 26629: template 26629: __pointer<_Tp> 26629: _S_pointer_to(_Tp& __obj) 26629: { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } 26629: 26629: const key_type& 26629: _M_key() const noexcept { return key(); } 26629: 26629: template 26629: friend class _Rb_tree; 26629: 26629: template 26629: friend class _Hashtable; 26629: }; 26629: 26629: 26629: template 26629: class _Node_handle<_Value, _Value, _NodeAlloc> 26629: : public _Node_handle_common<_Value, _NodeAlloc> 26629: { 26629: public: 26629: constexpr _Node_handle() noexcept = default; 26629: ~_Node_handle() = default; 26629: _Node_handle(_Node_handle&&) noexcept = default; 26629: 26629: _Node_handle& 26629: operator=(_Node_handle&&) noexcept = default; 26629: 26629: using value_type = _Value; 26629: 26629: value_type& 26629: value() const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 26629: return *this->_M_ptr->_M_valptr(); 26629: } 26629: 26629: void 26629: swap(_Node_handle& __nh) noexcept 26629: { this->_M_swap(__nh); } 26629: 26629: friend void 26629: swap(_Node_handle& __x, _Node_handle& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: private: 26629: using _AllocTraits = allocator_traits<_NodeAlloc>; 26629: 26629: _Node_handle(typename _AllocTraits::pointer __ptr, 26629: const _NodeAlloc& __alloc) 26629: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } 26629: 26629: const value_type& 26629: _M_key() const noexcept { return value(); } 26629: 26629: template 26629: friend class _Rb_tree; 26629: 26629: template 26629: friend class _Hashtable; 26629: }; 26629: 26629: 26629: template 26629: struct _Node_insert_return 26629: { 26629: _Iterator position = _Iterator(); 26629: bool inserted = false; 26629: _NodeHandle node; 26629: }; 26629: 26629: 26629: 26629: 26629: } 26629: # 39 "/usr/include/c++/12/bits/hashtable.h" 2 3 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: using __cache_default 26629: = __not_<__and_< 26629: __is_fast_hash<_Hash>, 26629: 26629: __is_nothrow_invocable>>; 26629: 26629: 26629: 26629: 26629: template 26629: using _Hashtable_enable_default_ctor 26629: = _Enable_default_constructor<__and_, 26629: is_default_constructible<_Hash>, 26629: is_default_constructible<_Allocator>>{}, 26629: __detail::_Hash_node_base>; 26629: # 178 "/usr/include/c++/12/bits/hashtable.h" 3 26629: template 26629: class _Hashtable 26629: : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _Traits>, 26629: public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>, 26629: public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>, 26629: public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>, 26629: public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>, 26629: private __detail::_Hashtable_alloc< 26629: __alloc_rebind<_Alloc, 26629: __detail::_Hash_node<_Value, 26629: _Traits::__hash_cached::value>>>, 26629: private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> 26629: { 26629: static_assert(is_same::type, _Value>::value, 26629: "unordered container must have a non-const, non-volatile value_type"); 26629: 26629: 26629: 26629: 26629: 26629: using __traits_type = _Traits; 26629: using __hash_cached = typename __traits_type::__hash_cached; 26629: using __constant_iterators = typename __traits_type::__constant_iterators; 26629: using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; 26629: using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; 26629: 26629: using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; 26629: 26629: using __node_value_type = 26629: __detail::_Hash_node_value<_Value, __hash_cached::value>; 26629: using __node_ptr = typename __hashtable_alloc::__node_ptr; 26629: using __value_alloc_traits = 26629: typename __hashtable_alloc::__value_alloc_traits; 26629: using __node_alloc_traits = 26629: typename __hashtable_alloc::__node_alloc_traits; 26629: using __node_base = typename __hashtable_alloc::__node_base; 26629: using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; 26629: using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; 26629: 26629: using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, 26629: _Equal, _Hash, 26629: _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>; 26629: using __enable_default_ctor 26629: = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; 26629: 26629: public: 26629: typedef _Key key_type; 26629: typedef _Value value_type; 26629: typedef _Alloc allocator_type; 26629: typedef _Equal key_equal; 26629: 26629: 26629: 26629: typedef typename __value_alloc_traits::pointer pointer; 26629: typedef typename __value_alloc_traits::const_pointer const_pointer; 26629: typedef value_type& reference; 26629: typedef const value_type& const_reference; 26629: 26629: using iterator = typename __insert_base::iterator; 26629: 26629: using const_iterator = typename __insert_base::const_iterator; 26629: 26629: using local_iterator = __detail::_Local_iterator; 26629: 26629: using const_local_iterator = __detail::_Local_const_iterator< 26629: key_type, _Value, 26629: _ExtractKey, _Hash, _RangeHash, _Unused, 26629: __constant_iterators::value, __hash_cached::value>; 26629: 26629: private: 26629: using __rehash_type = _RehashPolicy; 26629: using __rehash_state = typename __rehash_type::_State; 26629: 26629: using __unique_keys = typename __traits_type::__unique_keys; 26629: 26629: using __hashtable_base = __detail:: 26629: _Hashtable_base<_Key, _Value, _ExtractKey, 26629: _Equal, _Hash, _RangeHash, _Unused, _Traits>; 26629: 26629: using __hash_code_base = typename __hashtable_base::__hash_code_base; 26629: using __hash_code = typename __hashtable_base::__hash_code; 26629: using __ireturn_type = typename __insert_base::__ireturn_type; 26629: 26629: using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, 26629: _Equal, _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>; 26629: 26629: using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, 26629: _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>; 26629: 26629: using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, 26629: _Equal, _Hash, _RangeHash, _Unused, 26629: _RehashPolicy, _Traits>; 26629: 26629: using __reuse_or_alloc_node_gen_t = 26629: __detail::_ReuseOrAllocNode<__node_alloc_type>; 26629: using __alloc_node_gen_t = 26629: __detail::_AllocNode<__node_alloc_type>; 26629: using __node_builder_t = 26629: __detail::_NodeBuilder<_ExtractKey>; 26629: 26629: 26629: struct _Scoped_node 26629: { 26629: 26629: _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) 26629: : _M_h(__h), _M_node(__n) { } 26629: 26629: 26629: template 26629: _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) 26629: : _M_h(__h), 26629: _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) 26629: { } 26629: 26629: 26629: ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; 26629: 26629: _Scoped_node(const _Scoped_node&) = delete; 26629: _Scoped_node& operator=(const _Scoped_node&) = delete; 26629: 26629: __hashtable_alloc* _M_h; 26629: __node_ptr _M_node; 26629: }; 26629: 26629: template 26629: static constexpr 26629: __conditional_t::value, 26629: const value_type&, value_type&&> 26629: __fwd_value_for(value_type& __val) noexcept 26629: { return std::move(__val); } 26629: 26629: 26629: 26629: 26629: 26629: struct __hash_code_base_access : __hash_code_base 26629: { using __hash_code_base::_M_bucket_index; }; 26629: 26629: 26629: static_assert(is_nothrow_default_constructible<_RangeHash>::value, 26629: "Functor used to map hash code to bucket index" 26629: " must be nothrow default constructible"); 26629: static_assert(noexcept( 26629: std::declval()((std::size_t)0, (std::size_t)0)), 26629: "Functor used to map hash code to bucket index must be" 26629: " noexcept"); 26629: 26629: 26629: static_assert(is_nothrow_default_constructible<_ExtractKey>::value, 26629: "_ExtractKey must be nothrow default constructible"); 26629: static_assert(noexcept( 26629: std::declval()(std::declval<_Value>())), 26629: "_ExtractKey functor must be noexcept invocable"); 26629: 26629: template 26629: friend struct __detail::_Map_base; 26629: 26629: template 26629: friend struct __detail::_Insert_base; 26629: 26629: template 26629: friend struct __detail::_Insert; 26629: 26629: template 26629: friend struct __detail::_Equality; 26629: 26629: public: 26629: using size_type = typename __hashtable_base::size_type; 26629: using difference_type = typename __hashtable_base::difference_type; 26629: 26629: 26629: using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; 26629: using insert_return_type = _Node_insert_return; 26629: 26629: 26629: private: 26629: __buckets_ptr _M_buckets = &_M_single_bucket; 26629: size_type _M_bucket_count = 1; 26629: __node_base _M_before_begin; 26629: size_type _M_element_count = 0; 26629: _RehashPolicy _M_rehash_policy; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __node_base_ptr _M_single_bucket = nullptr; 26629: 26629: void 26629: _M_update_bbegin() 26629: { 26629: if (_M_begin()) 26629: _M_buckets[_M_bucket_index(*_M_begin())] = &_M_before_begin; 26629: } 26629: 26629: void 26629: _M_update_bbegin(__node_ptr __n) 26629: { 26629: _M_before_begin._M_nxt = __n; 26629: _M_update_bbegin(); 26629: } 26629: 26629: bool 26629: _M_uses_single_bucket(__buckets_ptr __bkts) const 26629: { return __builtin_expect(__bkts == &_M_single_bucket, false); } 26629: 26629: bool 26629: _M_uses_single_bucket() const 26629: { return _M_uses_single_bucket(_M_buckets); } 26629: 26629: static constexpr size_t 26629: __small_size_threshold() noexcept 26629: { 26629: return 26629: __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); 26629: } 26629: 26629: __hashtable_alloc& 26629: _M_base_alloc() { return *this; } 26629: 26629: __buckets_ptr 26629: _M_allocate_buckets(size_type __bkt_count) 26629: { 26629: if (__builtin_expect(__bkt_count == 1, false)) 26629: { 26629: _M_single_bucket = nullptr; 26629: return &_M_single_bucket; 26629: } 26629: 26629: return __hashtable_alloc::_M_allocate_buckets(__bkt_count); 26629: } 26629: 26629: void 26629: _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) 26629: { 26629: if (_M_uses_single_bucket(__bkts)) 26629: return; 26629: 26629: __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); 26629: } 26629: 26629: void 26629: _M_deallocate_buckets() 26629: { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } 26629: 26629: 26629: 26629: __node_ptr 26629: _M_bucket_begin(size_type __bkt) const; 26629: 26629: __node_ptr 26629: _M_begin() const 26629: { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } 26629: 26629: 26629: 26629: template 26629: void 26629: _M_assign_elements(_Ht&&); 26629: 26629: template 26629: void 26629: _M_assign(_Ht&&, const _NodeGenerator&); 26629: 26629: void 26629: _M_move_assign(_Hashtable&&, true_type); 26629: 26629: void 26629: _M_move_assign(_Hashtable&&, false_type); 26629: 26629: void 26629: _M_reset() noexcept; 26629: 26629: _Hashtable(const _Hash& __h, const _Equal& __eq, 26629: const allocator_type& __a) 26629: : __hashtable_base(__h, __eq), 26629: __hashtable_alloc(__node_alloc_type(__a)), 26629: __enable_default_ctor(_Enable_default_constructor_tag{}) 26629: { } 26629: 26629: template 26629: static constexpr bool 26629: _S_nothrow_move() 26629: { 26629: 26629: 26629: 26629: 26629: 26629: if constexpr (_No_realloc) 26629: if constexpr (is_nothrow_copy_constructible<_Hash>()) 26629: return is_nothrow_copy_constructible<_Equal>(); 26629: return false; 26629: 26629: } 26629: 26629: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 26629: true_type ) 26629: noexcept(_S_nothrow_move()); 26629: 26629: _Hashtable(_Hashtable&&, __node_alloc_type&&, 26629: false_type ); 26629: 26629: template 26629: _Hashtable(_InputIterator __first, _InputIterator __last, 26629: size_type __bkt_count_hint, 26629: const _Hash&, const _Equal&, const allocator_type&, 26629: true_type __uks); 26629: 26629: template 26629: _Hashtable(_InputIterator __first, _InputIterator __last, 26629: size_type __bkt_count_hint, 26629: const _Hash&, const _Equal&, const allocator_type&, 26629: false_type __uks); 26629: 26629: public: 26629: 26629: _Hashtable() = default; 26629: 26629: _Hashtable(const _Hashtable&); 26629: 26629: _Hashtable(const _Hashtable&, const allocator_type&); 26629: 26629: explicit 26629: _Hashtable(size_type __bkt_count_hint, 26629: const _Hash& __hf = _Hash(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()); 26629: 26629: 26629: _Hashtable(_Hashtable&& __ht) 26629: noexcept(_S_nothrow_move()) 26629: : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), 26629: true_type{}) 26629: { } 26629: 26629: _Hashtable(_Hashtable&& __ht, const allocator_type& __a) 26629: noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) 26629: : _Hashtable(std::move(__ht), __node_alloc_type(__a), 26629: typename __node_alloc_traits::is_always_equal{}) 26629: { } 26629: 26629: explicit 26629: _Hashtable(const allocator_type& __a) 26629: : __hashtable_alloc(__node_alloc_type(__a)), 26629: __enable_default_ctor(_Enable_default_constructor_tag{}) 26629: { } 26629: 26629: template 26629: _Hashtable(_InputIterator __f, _InputIterator __l, 26629: size_type __bkt_count_hint = 0, 26629: const _Hash& __hf = _Hash(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, 26629: __unique_keys{}) 26629: { } 26629: 26629: _Hashtable(initializer_list __l, 26629: size_type __bkt_count_hint = 0, 26629: const _Hash& __hf = _Hash(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, 26629: __hf, __eql, __a, __unique_keys{}) 26629: { } 26629: 26629: _Hashtable& 26629: operator=(const _Hashtable& __ht); 26629: 26629: _Hashtable& 26629: operator=(_Hashtable&& __ht) 26629: noexcept(__node_alloc_traits::_S_nothrow_move() 26629: && is_nothrow_move_assignable<_Hash>::value 26629: && is_nothrow_move_assignable<_Equal>::value) 26629: { 26629: constexpr bool __move_storage = 26629: __node_alloc_traits::_S_propagate_on_move_assign() 26629: || __node_alloc_traits::_S_always_equal(); 26629: _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); 26629: return *this; 26629: } 26629: 26629: _Hashtable& 26629: operator=(initializer_list __l) 26629: { 26629: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 26629: _M_before_begin._M_nxt = nullptr; 26629: clear(); 26629: 26629: 26629: auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); 26629: 26629: 26629: if (_M_bucket_count < __l_bkt_count) 26629: rehash(__l_bkt_count); 26629: 26629: this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); 26629: return *this; 26629: } 26629: 26629: ~_Hashtable() noexcept; 26629: 26629: void 26629: swap(_Hashtable&) 26629: noexcept(__and_<__is_nothrow_swappable<_Hash>, 26629: __is_nothrow_swappable<_Equal>>::value); 26629: 26629: 26629: iterator 26629: begin() noexcept 26629: { return iterator(_M_begin()); } 26629: 26629: const_iterator 26629: begin() const noexcept 26629: { return const_iterator(_M_begin()); } 26629: 26629: iterator 26629: end() noexcept 26629: { return iterator(nullptr); } 26629: 26629: const_iterator 26629: end() const noexcept 26629: { return const_iterator(nullptr); } 26629: 26629: const_iterator 26629: cbegin() const noexcept 26629: { return const_iterator(_M_begin()); } 26629: 26629: const_iterator 26629: cend() const noexcept 26629: { return const_iterator(nullptr); } 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_element_count; } 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return size() == 0; } 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return allocator_type(this->_M_node_allocator()); } 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return __node_alloc_traits::max_size(this->_M_node_allocator()); } 26629: 26629: 26629: key_equal 26629: key_eq() const 26629: { return this->_M_eq(); } 26629: 26629: 26629: 26629: 26629: size_type 26629: bucket_count() const noexcept 26629: { return _M_bucket_count; } 26629: 26629: size_type 26629: max_bucket_count() const noexcept 26629: { return max_size(); } 26629: 26629: size_type 26629: bucket_size(size_type __bkt) const 26629: { return std::distance(begin(__bkt), end(__bkt)); } 26629: 26629: size_type 26629: bucket(const key_type& __k) const 26629: { return _M_bucket_index(this->_M_hash_code(__k)); } 26629: 26629: local_iterator 26629: begin(size_type __bkt) 26629: { 26629: return local_iterator(*this, _M_bucket_begin(__bkt), 26629: __bkt, _M_bucket_count); 26629: } 26629: 26629: local_iterator 26629: end(size_type __bkt) 26629: { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 26629: 26629: const_local_iterator 26629: begin(size_type __bkt) const 26629: { 26629: return const_local_iterator(*this, _M_bucket_begin(__bkt), 26629: __bkt, _M_bucket_count); 26629: } 26629: 26629: const_local_iterator 26629: end(size_type __bkt) const 26629: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 26629: 26629: 26629: const_local_iterator 26629: cbegin(size_type __bkt) const 26629: { 26629: return const_local_iterator(*this, _M_bucket_begin(__bkt), 26629: __bkt, _M_bucket_count); 26629: } 26629: 26629: const_local_iterator 26629: cend(size_type __bkt) const 26629: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 26629: 26629: float 26629: load_factor() const noexcept 26629: { 26629: return static_cast(size()) / static_cast(bucket_count()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const _RehashPolicy& 26629: __rehash_policy() const 26629: { return _M_rehash_policy; } 26629: 26629: void 26629: __rehash_policy(const _RehashPolicy& __pol) 26629: { _M_rehash_policy = __pol; } 26629: 26629: 26629: iterator 26629: find(const key_type& __k); 26629: 26629: const_iterator 26629: find(const key_type& __k) const; 26629: 26629: size_type 26629: count(const key_type& __k) const; 26629: 26629: std::pair 26629: equal_range(const key_type& __k); 26629: 26629: std::pair 26629: equal_range(const key_type& __k) const; 26629: # 790 "/usr/include/c++/12/bits/hashtable.h" 3 26629: private: 26629: 26629: size_type 26629: _M_bucket_index(const __node_value_type& __n) const noexcept 26629: { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } 26629: 26629: size_type 26629: _M_bucket_index(__hash_code __c) const 26629: { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } 26629: 26629: __node_base_ptr 26629: _M_find_before_node(const key_type&); 26629: 26629: 26629: 26629: __node_base_ptr 26629: _M_find_before_node(size_type, const key_type&, __hash_code) const; 26629: 26629: template 26629: __node_base_ptr 26629: _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; 26629: 26629: __node_ptr 26629: _M_find_node(size_type __bkt, const key_type& __key, 26629: __hash_code __c) const 26629: { 26629: __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); 26629: if (__before_n) 26629: return static_cast<__node_ptr>(__before_n->_M_nxt); 26629: return nullptr; 26629: } 26629: 26629: template 26629: __node_ptr 26629: _M_find_node_tr(size_type __bkt, const _Kt& __key, 26629: __hash_code __c) const 26629: { 26629: auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); 26629: if (__before_n) 26629: return static_cast<__node_ptr>(__before_n->_M_nxt); 26629: return nullptr; 26629: } 26629: 26629: 26629: void 26629: _M_insert_bucket_begin(size_type, __node_ptr); 26629: 26629: 26629: void 26629: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, 26629: size_type __next_bkt); 26629: 26629: 26629: __node_base_ptr 26629: _M_get_previous_node(size_type __bkt, __node_ptr __n); 26629: 26629: pair 26629: _M_compute_hash_code(const_iterator __hint, const key_type& __k) const; 26629: 26629: 26629: 26629: 26629: iterator 26629: _M_insert_unique_node(size_type __bkt, __hash_code, 26629: __node_ptr __n, size_type __n_elt = 1); 26629: 26629: 26629: 26629: iterator 26629: _M_insert_multi_node(__node_ptr __hint, 26629: __hash_code __code, __node_ptr __n); 26629: 26629: template 26629: std::pair 26629: _M_emplace(true_type __uks, _Args&&... __args); 26629: 26629: template 26629: iterator 26629: _M_emplace(false_type __uks, _Args&&... __args) 26629: { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } 26629: 26629: 26629: template 26629: iterator 26629: _M_emplace(const_iterator, true_type __uks, _Args&&... __args) 26629: { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } 26629: 26629: template 26629: iterator 26629: _M_emplace(const_iterator, false_type __uks, _Args&&... __args); 26629: 26629: template 26629: std::pair 26629: _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); 26629: 26629: template 26629: static __conditional_t< 26629: __and_<__is_nothrow_invocable<_Hash&, const key_type&>, 26629: __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, 26629: key_type, _Kt&&> 26629: _S_forward_key(_Kt&& __k) 26629: { return std::forward<_Kt>(__k); } 26629: 26629: static const key_type& 26629: _S_forward_key(const key_type& __k) 26629: { return __k; } 26629: 26629: static key_type&& 26629: _S_forward_key(key_type&& __k) 26629: { return std::move(__k); } 26629: 26629: template 26629: std::pair 26629: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 26629: true_type ) 26629: { 26629: return _M_insert_unique( 26629: _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), 26629: std::forward<_Arg>(__arg), __node_gen); 26629: } 26629: 26629: template 26629: iterator 26629: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 26629: false_type __uks) 26629: { 26629: return _M_insert(cend(), std::forward<_Arg>(__arg), __node_gen, 26629: __uks); 26629: } 26629: 26629: 26629: template 26629: iterator 26629: _M_insert(const_iterator, _Arg&& __arg, 26629: const _NodeGenerator& __node_gen, true_type __uks) 26629: { 26629: return 26629: _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; 26629: } 26629: 26629: 26629: template 26629: iterator 26629: _M_insert(const_iterator, _Arg&&, 26629: const _NodeGenerator&, false_type __uks); 26629: 26629: size_type 26629: _M_erase(true_type __uks, const key_type&); 26629: 26629: size_type 26629: _M_erase(false_type __uks, const key_type&); 26629: 26629: iterator 26629: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); 26629: 26629: public: 26629: 26629: template 26629: __ireturn_type 26629: emplace(_Args&&... __args) 26629: { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } 26629: 26629: template 26629: iterator 26629: emplace_hint(const_iterator __hint, _Args&&... __args) 26629: { 26629: return _M_emplace(__hint, __unique_keys{}, 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: 26629: 26629: 26629: iterator 26629: erase(const_iterator); 26629: 26629: 26629: iterator 26629: erase(iterator __it) 26629: { return erase(const_iterator(__it)); } 26629: 26629: size_type 26629: erase(const key_type& __k) 26629: { return _M_erase(__unique_keys{}, __k); } 26629: 26629: iterator 26629: erase(const_iterator, const_iterator); 26629: 26629: void 26629: clear() noexcept; 26629: 26629: 26629: 26629: void rehash(size_type __bkt_count); 26629: 26629: 26629: 26629: 26629: 26629: 26629: insert_return_type 26629: _M_reinsert_node(node_type&& __nh) 26629: { 26629: insert_return_type __ret; 26629: if (__nh.empty()) 26629: __ret.position = end(); 26629: else 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) __builtin_unreachable(); } while (false); 26629: 26629: const key_type& __k = __nh._M_key(); 26629: __hash_code __code = this->_M_hash_code(__k); 26629: size_type __bkt = _M_bucket_index(__code); 26629: if (__node_ptr __n = _M_find_node(__bkt, __k, __code)) 26629: { 26629: __ret.node = std::move(__nh); 26629: __ret.position = iterator(__n); 26629: __ret.inserted = false; 26629: } 26629: else 26629: { 26629: __ret.position 26629: = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); 26629: __nh._M_ptr = nullptr; 26629: __ret.inserted = true; 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: 26629: iterator 26629: _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) 26629: { 26629: if (__nh.empty()) 26629: return end(); 26629: 26629: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) __builtin_unreachable(); } while (false); 26629: 26629: const key_type& __k = __nh._M_key(); 26629: auto __code = this->_M_hash_code(__k); 26629: auto __ret 26629: = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); 26629: __nh._M_ptr = nullptr; 26629: return __ret; 26629: } 26629: 26629: private: 26629: node_type 26629: _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) 26629: { 26629: __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 26629: if (__prev_n == _M_buckets[__bkt]) 26629: _M_remove_bucket_begin(__bkt, __n->_M_next(), 26629: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 26629: else if (__n->_M_nxt) 26629: { 26629: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 26629: if (__next_bkt != __bkt) 26629: _M_buckets[__next_bkt] = __prev_n; 26629: } 26629: 26629: __prev_n->_M_nxt = __n->_M_nxt; 26629: __n->_M_nxt = nullptr; 26629: --_M_element_count; 26629: return { __n, this->_M_node_allocator() }; 26629: } 26629: 26629: public: 26629: 26629: node_type 26629: extract(const_iterator __pos) 26629: { 26629: size_t __bkt = _M_bucket_index(*__pos._M_cur); 26629: return _M_extract_node(__bkt, 26629: _M_get_previous_node(__bkt, __pos._M_cur)); 26629: } 26629: 26629: 26629: node_type 26629: extract(const _Key& __k) 26629: { 26629: node_type __nh; 26629: __hash_code __code = this->_M_hash_code(__k); 26629: std::size_t __bkt = _M_bucket_index(__code); 26629: if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) 26629: __nh = _M_extract_node(__bkt, __prev_node); 26629: return __nh; 26629: } 26629: 26629: 26629: template 26629: void 26629: _M_merge_unique(_Compatible_Hashtable& __src) 26629: { 26629: static_assert(is_same_v, "Node types are compatible"); 26629: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) __builtin_unreachable(); } while (false); 26629: 26629: auto __n_elt = __src.size(); 26629: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 26629: { 26629: auto __pos = __i++; 26629: const key_type& __k = _ExtractKey{}(*__pos); 26629: __hash_code __code 26629: = this->_M_hash_code(__src.hash_function(), *__pos._M_cur); 26629: size_type __bkt = _M_bucket_index(__code); 26629: if (_M_find_node(__bkt, __k, __code) == nullptr) 26629: { 26629: auto __nh = __src.extract(__pos); 26629: _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); 26629: __nh._M_ptr = nullptr; 26629: __n_elt = 1; 26629: } 26629: else if (__n_elt != 1) 26629: --__n_elt; 26629: } 26629: } 26629: 26629: 26629: template 26629: void 26629: _M_merge_multi(_Compatible_Hashtable& __src) 26629: { 26629: static_assert(is_same_v, "Node types are compatible"); 26629: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) __builtin_unreachable(); } while (false); 26629: 26629: __node_ptr __hint = nullptr; 26629: this->reserve(size() + __src.size()); 26629: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 26629: { 26629: auto __pos = __i++; 26629: __hash_code __code 26629: = this->_M_hash_code(__src.hash_function(), *__pos._M_cur); 26629: auto __nh = __src.extract(__pos); 26629: __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; 26629: __nh._M_ptr = nullptr; 26629: } 26629: } 26629: 26629: 26629: private: 26629: 26629: void _M_rehash_aux(size_type __bkt_count, true_type __uks); 26629: 26629: 26629: void _M_rehash_aux(size_type __bkt_count, false_type __uks); 26629: 26629: 26629: 26629: void _M_rehash(size_type __bkt_count, const __rehash_state& __state); 26629: }; 26629: 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_bucket_begin(size_type __bkt) const 26629: -> __node_ptr 26629: { 26629: __node_base_ptr __n = _M_buckets[__bkt]; 26629: return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; 26629: } 26629: 26629: template 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _Hashtable(size_type __bkt_count_hint, 26629: const _Hash& __h, const _Equal& __eq, const allocator_type& __a) 26629: : _Hashtable(__h, __eq, __a) 26629: { 26629: auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); 26629: if (__bkt_count > _M_bucket_count) 26629: { 26629: _M_buckets = _M_allocate_buckets(__bkt_count); 26629: _M_bucket_count = __bkt_count; 26629: } 26629: } 26629: 26629: template 26629: template 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _Hashtable(_InputIterator __f, _InputIterator __l, 26629: size_type __bkt_count_hint, 26629: const _Hash& __h, const _Equal& __eq, 26629: const allocator_type& __a, true_type ) 26629: : _Hashtable(__bkt_count_hint, __h, __eq, __a) 26629: { 26629: for (; __f != __l; ++__f) 26629: this->insert(*__f); 26629: } 26629: 26629: template 26629: template 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _Hashtable(_InputIterator __f, _InputIterator __l, 26629: size_type __bkt_count_hint, 26629: const _Hash& __h, const _Equal& __eq, 26629: const allocator_type& __a, false_type ) 26629: : _Hashtable(__h, __eq, __a) 26629: { 26629: auto __nb_elems = __detail::__distance_fw(__f, __l); 26629: auto __bkt_count = 26629: _M_rehash_policy._M_next_bkt( 26629: std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), 26629: __bkt_count_hint)); 26629: 26629: if (__bkt_count > _M_bucket_count) 26629: { 26629: _M_buckets = _M_allocate_buckets(__bkt_count); 26629: _M_bucket_count = __bkt_count; 26629: } 26629: 26629: for (; __f != __l; ++__f) 26629: this->insert(*__f); 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: operator=(const _Hashtable& __ht) 26629: -> _Hashtable& 26629: { 26629: if (&__ht == this) 26629: return *this; 26629: 26629: if (__node_alloc_traits::_S_propagate_on_copy_assign()) 26629: { 26629: auto& __this_alloc = this->_M_node_allocator(); 26629: auto& __that_alloc = __ht._M_node_allocator(); 26629: if (!__node_alloc_traits::_S_always_equal() 26629: && __this_alloc != __that_alloc) 26629: { 26629: 26629: this->_M_deallocate_nodes(_M_begin()); 26629: _M_before_begin._M_nxt = nullptr; 26629: _M_deallocate_buckets(); 26629: _M_buckets = nullptr; 26629: std::__alloc_on_copy(__this_alloc, __that_alloc); 26629: __hashtable_base::operator=(__ht); 26629: _M_bucket_count = __ht._M_bucket_count; 26629: _M_element_count = __ht._M_element_count; 26629: _M_rehash_policy = __ht._M_rehash_policy; 26629: __alloc_node_gen_t __alloc_node_gen(*this); 26629: try 26629: { 26629: _M_assign(__ht, __alloc_node_gen); 26629: } 26629: catch(...) 26629: { 26629: 26629: 26629: _M_reset(); 26629: throw; 26629: } 26629: return *this; 26629: } 26629: std::__alloc_on_copy(__this_alloc, __that_alloc); 26629: } 26629: 26629: 26629: _M_assign_elements(__ht); 26629: return *this; 26629: } 26629: 26629: template 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_assign_elements(_Ht&& __ht) 26629: { 26629: __buckets_ptr __former_buckets = nullptr; 26629: std::size_t __former_bucket_count = _M_bucket_count; 26629: const __rehash_state& __former_state = _M_rehash_policy._M_state(); 26629: 26629: if (_M_bucket_count != __ht._M_bucket_count) 26629: { 26629: __former_buckets = _M_buckets; 26629: _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); 26629: _M_bucket_count = __ht._M_bucket_count; 26629: } 26629: else 26629: __builtin_memset(_M_buckets, 0, 26629: _M_bucket_count * sizeof(__node_base_ptr)); 26629: 26629: try 26629: { 26629: __hashtable_base::operator=(std::forward<_Ht>(__ht)); 26629: _M_element_count = __ht._M_element_count; 26629: _M_rehash_policy = __ht._M_rehash_policy; 26629: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 26629: _M_before_begin._M_nxt = nullptr; 26629: _M_assign(std::forward<_Ht>(__ht), __roan); 26629: if (__former_buckets) 26629: _M_deallocate_buckets(__former_buckets, __former_bucket_count); 26629: } 26629: catch(...) 26629: { 26629: if (__former_buckets) 26629: { 26629: 26629: _M_deallocate_buckets(); 26629: _M_rehash_policy._M_reset(__former_state); 26629: _M_buckets = __former_buckets; 26629: _M_bucket_count = __former_bucket_count; 26629: } 26629: __builtin_memset(_M_buckets, 0, 26629: _M_bucket_count * sizeof(__node_base_ptr)); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) 26629: { 26629: __buckets_ptr __buckets = nullptr; 26629: if (!_M_buckets) 26629: _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); 26629: 26629: try 26629: { 26629: if (!__ht._M_before_begin._M_nxt) 26629: return; 26629: 26629: 26629: 26629: __node_ptr __ht_n = __ht._M_begin(); 26629: __node_ptr __this_n 26629: = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 26629: this->_M_copy_code(*__this_n, *__ht_n); 26629: _M_update_bbegin(__this_n); 26629: 26629: 26629: __node_ptr __prev_n = __this_n; 26629: for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) 26629: { 26629: __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 26629: __prev_n->_M_nxt = __this_n; 26629: this->_M_copy_code(*__this_n, *__ht_n); 26629: size_type __bkt = _M_bucket_index(*__this_n); 26629: if (!_M_buckets[__bkt]) 26629: _M_buckets[__bkt] = __prev_n; 26629: __prev_n = __this_n; 26629: } 26629: } 26629: catch(...) 26629: { 26629: clear(); 26629: if (__buckets) 26629: _M_deallocate_buckets(); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_reset() noexcept 26629: { 26629: _M_rehash_policy._M_reset(); 26629: _M_bucket_count = 1; 26629: _M_single_bucket = nullptr; 26629: _M_buckets = &_M_single_bucket; 26629: _M_before_begin._M_nxt = nullptr; 26629: _M_element_count = 0; 26629: } 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_move_assign(_Hashtable&& __ht, true_type) 26629: { 26629: if (__builtin_expect(std::__addressof(__ht) == this, false)) 26629: return; 26629: 26629: this->_M_deallocate_nodes(_M_begin()); 26629: _M_deallocate_buckets(); 26629: __hashtable_base::operator=(std::move(__ht)); 26629: _M_rehash_policy = __ht._M_rehash_policy; 26629: if (!__ht._M_uses_single_bucket()) 26629: _M_buckets = __ht._M_buckets; 26629: else 26629: { 26629: _M_buckets = &_M_single_bucket; 26629: _M_single_bucket = __ht._M_single_bucket; 26629: } 26629: 26629: _M_bucket_count = __ht._M_bucket_count; 26629: _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; 26629: _M_element_count = __ht._M_element_count; 26629: std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); 26629: 26629: 26629: _M_update_bbegin(); 26629: __ht._M_reset(); 26629: } 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_move_assign(_Hashtable&& __ht, false_type) 26629: { 26629: if (__ht._M_node_allocator() == this->_M_node_allocator()) 26629: _M_move_assign(std::move(__ht), true_type{}); 26629: else 26629: { 26629: 26629: _M_assign_elements(std::move(__ht)); 26629: __ht.clear(); 26629: } 26629: } 26629: 26629: template 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _Hashtable(const _Hashtable& __ht) 26629: : __hashtable_base(__ht), 26629: __map_base(__ht), 26629: __rehash_base(__ht), 26629: __hashtable_alloc( 26629: __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), 26629: __enable_default_ctor(__ht), 26629: _M_buckets(nullptr), 26629: _M_bucket_count(__ht._M_bucket_count), 26629: _M_element_count(__ht._M_element_count), 26629: _M_rehash_policy(__ht._M_rehash_policy) 26629: { 26629: __alloc_node_gen_t __alloc_node_gen(*this); 26629: _M_assign(__ht, __alloc_node_gen); 26629: } 26629: 26629: template 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 26629: true_type ) 26629: noexcept(_S_nothrow_move()) 26629: : __hashtable_base(__ht), 26629: __map_base(__ht), 26629: __rehash_base(__ht), 26629: __hashtable_alloc(std::move(__a)), 26629: __enable_default_ctor(__ht), 26629: _M_buckets(__ht._M_buckets), 26629: _M_bucket_count(__ht._M_bucket_count), 26629: _M_before_begin(__ht._M_before_begin._M_nxt), 26629: _M_element_count(__ht._M_element_count), 26629: _M_rehash_policy(__ht._M_rehash_policy) 26629: { 26629: 26629: if (__ht._M_uses_single_bucket()) 26629: { 26629: _M_buckets = &_M_single_bucket; 26629: _M_single_bucket = __ht._M_single_bucket; 26629: } 26629: 26629: 26629: _M_update_bbegin(); 26629: 26629: __ht._M_reset(); 26629: } 26629: 26629: template 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) 26629: : __hashtable_base(__ht), 26629: __map_base(__ht), 26629: __rehash_base(__ht), 26629: __hashtable_alloc(__node_alloc_type(__a)), 26629: __enable_default_ctor(__ht), 26629: _M_buckets(), 26629: _M_bucket_count(__ht._M_bucket_count), 26629: _M_element_count(__ht._M_element_count), 26629: _M_rehash_policy(__ht._M_rehash_policy) 26629: { 26629: __alloc_node_gen_t __alloc_node_gen(*this); 26629: _M_assign(__ht, __alloc_node_gen); 26629: } 26629: 26629: template 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 26629: false_type ) 26629: : __hashtable_base(__ht), 26629: __map_base(__ht), 26629: __rehash_base(__ht), 26629: __hashtable_alloc(std::move(__a)), 26629: __enable_default_ctor(__ht), 26629: _M_buckets(nullptr), 26629: _M_bucket_count(__ht._M_bucket_count), 26629: _M_element_count(__ht._M_element_count), 26629: _M_rehash_policy(__ht._M_rehash_policy) 26629: { 26629: if (__ht._M_node_allocator() == this->_M_node_allocator()) 26629: { 26629: if (__ht._M_uses_single_bucket()) 26629: { 26629: _M_buckets = &_M_single_bucket; 26629: _M_single_bucket = __ht._M_single_bucket; 26629: } 26629: else 26629: _M_buckets = __ht._M_buckets; 26629: 26629: 26629: 26629: _M_update_bbegin(__ht._M_begin()); 26629: 26629: __ht._M_reset(); 26629: } 26629: else 26629: { 26629: __alloc_node_gen_t __alloc_gen(*this); 26629: 26629: using _Fwd_Ht = __conditional_t< 26629: __move_if_noexcept_cond::value, 26629: const _Hashtable&, _Hashtable&&>; 26629: _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); 26629: __ht.clear(); 26629: } 26629: } 26629: 26629: template 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: ~_Hashtable() noexcept 26629: { 26629: 26629: 26629: 26629: static_assert(noexcept(declval() 26629: ._M_bucket_index(declval(), 26629: (std::size_t)0)), 26629: "Cache the hash code or qualify your functors involved" 26629: " in hash code and bucket index computation with noexcept"); 26629: 26629: clear(); 26629: _M_deallocate_buckets(); 26629: } 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: swap(_Hashtable& __x) 26629: noexcept(__and_<__is_nothrow_swappable<_Hash>, 26629: __is_nothrow_swappable<_Equal>>::value) 26629: { 26629: 26629: 26629: 26629: this->_M_swap(__x); 26629: 26629: std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); 26629: std::swap(_M_rehash_policy, __x._M_rehash_policy); 26629: 26629: 26629: if (this->_M_uses_single_bucket()) 26629: { 26629: if (!__x._M_uses_single_bucket()) 26629: { 26629: _M_buckets = __x._M_buckets; 26629: __x._M_buckets = &__x._M_single_bucket; 26629: } 26629: } 26629: else if (__x._M_uses_single_bucket()) 26629: { 26629: __x._M_buckets = _M_buckets; 26629: _M_buckets = &_M_single_bucket; 26629: } 26629: else 26629: std::swap(_M_buckets, __x._M_buckets); 26629: 26629: std::swap(_M_bucket_count, __x._M_bucket_count); 26629: std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); 26629: std::swap(_M_element_count, __x._M_element_count); 26629: std::swap(_M_single_bucket, __x._M_single_bucket); 26629: 26629: 26629: 26629: _M_update_bbegin(); 26629: __x._M_update_bbegin(); 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: find(const key_type& __k) 26629: -> iterator 26629: { 26629: if (size() <= __small_size_threshold()) 26629: { 26629: for (auto __it = begin(); __it != end(); ++__it) 26629: if (this->_M_key_equals(__k, *__it._M_cur)) 26629: return __it; 26629: return end(); 26629: } 26629: 26629: __hash_code __code = this->_M_hash_code(__k); 26629: std::size_t __bkt = _M_bucket_index(__code); 26629: return iterator(_M_find_node(__bkt, __k, __code)); 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: find(const key_type& __k) const 26629: -> const_iterator 26629: { 26629: if (size() <= __small_size_threshold()) 26629: { 26629: for (auto __it = begin(); __it != end(); ++__it) 26629: if (this->_M_key_equals(__k, *__it._M_cur)) 26629: return __it; 26629: return end(); 26629: } 26629: 26629: __hash_code __code = this->_M_hash_code(__k); 26629: std::size_t __bkt = _M_bucket_index(__code); 26629: return const_iterator(_M_find_node(__bkt, __k, __code)); 26629: } 26629: # 1715 "/usr/include/c++/12/bits/hashtable.h" 3 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: count(const key_type& __k) const 26629: -> size_type 26629: { 26629: auto __it = find(__k); 26629: if (!__it._M_cur) 26629: return 0; 26629: 26629: if (__unique_keys::value) 26629: return 1; 26629: 26629: 26629: 26629: 26629: size_type __result = 1; 26629: for (auto __ref = __it++; 26629: __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); 26629: ++__it) 26629: ++__result; 26629: 26629: return __result; 26629: } 26629: # 1776 "/usr/include/c++/12/bits/hashtable.h" 3 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: equal_range(const key_type& __k) 26629: -> pair 26629: { 26629: auto __ite = find(__k); 26629: if (!__ite._M_cur) 26629: return { __ite, __ite }; 26629: 26629: auto __beg = __ite++; 26629: if (__unique_keys::value) 26629: return { __beg, __ite }; 26629: 26629: 26629: 26629: 26629: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 26629: ++__ite; 26629: 26629: return { __beg, __ite }; 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: equal_range(const key_type& __k) const 26629: -> pair 26629: { 26629: auto __ite = find(__k); 26629: if (!__ite._M_cur) 26629: return { __ite, __ite }; 26629: 26629: auto __beg = __ite++; 26629: if (__unique_keys::value) 26629: return { __beg, __ite }; 26629: 26629: 26629: 26629: 26629: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 26629: ++__ite; 26629: 26629: return { __beg, __ite }; 26629: } 26629: # 1890 "/usr/include/c++/12/bits/hashtable.h" 3 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_find_before_node(const key_type& __k) 26629: -> __node_base_ptr 26629: { 26629: __node_base_ptr __prev_p = &_M_before_begin; 26629: if (!__prev_p->_M_nxt) 26629: return nullptr; 26629: 26629: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); 26629: __p != nullptr; 26629: __p = __p->_M_next()) 26629: { 26629: if (this->_M_key_equals(__k, *__p)) 26629: return __prev_p; 26629: 26629: __prev_p = __p; 26629: } 26629: 26629: return nullptr; 26629: } 26629: 26629: 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_find_before_node(size_type __bkt, const key_type& __k, 26629: __hash_code __code) const 26629: -> __node_base_ptr 26629: { 26629: __node_base_ptr __prev_p = _M_buckets[__bkt]; 26629: if (!__prev_p) 26629: return nullptr; 26629: 26629: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 26629: __p = __p->_M_next()) 26629: { 26629: if (this->_M_equals(__k, __code, *__p)) 26629: return __prev_p; 26629: 26629: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 26629: break; 26629: __prev_p = __p; 26629: } 26629: 26629: return nullptr; 26629: } 26629: 26629: template 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, 26629: __hash_code __code) const 26629: -> __node_base_ptr 26629: { 26629: __node_base_ptr __prev_p = _M_buckets[__bkt]; 26629: if (!__prev_p) 26629: return nullptr; 26629: 26629: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 26629: __p = __p->_M_next()) 26629: { 26629: if (this->_M_equals_tr(__k, __code, *__p)) 26629: return __prev_p; 26629: 26629: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 26629: break; 26629: __prev_p = __p; 26629: } 26629: 26629: return nullptr; 26629: } 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) 26629: { 26629: if (_M_buckets[__bkt]) 26629: { 26629: 26629: 26629: __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; 26629: _M_buckets[__bkt]->_M_nxt = __node; 26629: } 26629: else 26629: { 26629: 26629: 26629: 26629: __node->_M_nxt = _M_before_begin._M_nxt; 26629: _M_before_begin._M_nxt = __node; 26629: 26629: if (__node->_M_nxt) 26629: 26629: 26629: _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; 26629: 26629: _M_buckets[__bkt] = &_M_before_begin; 26629: } 26629: } 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next, 26629: size_type __next_bkt) 26629: { 26629: if (!__next || __next_bkt != __bkt) 26629: { 26629: 26629: 26629: if (__next) 26629: _M_buckets[__next_bkt] = _M_buckets[__bkt]; 26629: 26629: 26629: if (&_M_before_begin == _M_buckets[__bkt]) 26629: _M_before_begin._M_nxt = __next; 26629: _M_buckets[__bkt] = nullptr; 26629: } 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_get_previous_node(size_type __bkt, __node_ptr __n) 26629: -> __node_base_ptr 26629: { 26629: __node_base_ptr __prev_n = _M_buckets[__bkt]; 26629: while (__prev_n->_M_nxt != __n) 26629: __prev_n = __prev_n->_M_nxt; 26629: return __prev_n; 26629: } 26629: 26629: template 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_emplace(true_type , _Args&&... __args) 26629: -> pair 26629: { 26629: 26629: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 26629: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 26629: if (size() <= __small_size_threshold()) 26629: { 26629: for (auto __it = begin(); __it != end(); ++__it) 26629: if (this->_M_key_equals(__k, *__it._M_cur)) 26629: 26629: return { __it, false }; 26629: } 26629: 26629: __hash_code __code = this->_M_hash_code(__k); 26629: size_type __bkt = _M_bucket_index(__code); 26629: if (size() > __small_size_threshold()) 26629: if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) 26629: 26629: return { iterator(__p), false }; 26629: 26629: 26629: auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); 26629: __node._M_node = nullptr; 26629: return { __pos, true }; 26629: } 26629: 26629: template 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_emplace(const_iterator __hint, false_type , 26629: _Args&&... __args) 26629: -> iterator 26629: { 26629: 26629: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 26629: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 26629: 26629: auto __res = this->_M_compute_hash_code(__hint, __k); 26629: auto __pos 26629: = _M_insert_multi_node(__res.first._M_cur, __res.second, 26629: __node._M_node); 26629: __node._M_node = nullptr; 26629: return __pos; 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_compute_hash_code(const_iterator __hint, const key_type& __k) const 26629: -> pair 26629: { 26629: if (size() <= __small_size_threshold()) 26629: { 26629: if (__hint != cend()) 26629: { 26629: for (auto __it = __hint; __it != cend(); ++__it) 26629: if (this->_M_key_equals(__k, *__it._M_cur)) 26629: return { __it, this->_M_hash_code(*__it._M_cur) }; 26629: } 26629: 26629: for (auto __it = cbegin(); __it != __hint; ++__it) 26629: if (this->_M_key_equals(__k, *__it._M_cur)) 26629: return { __it, this->_M_hash_code(*__it._M_cur) }; 26629: } 26629: 26629: return { __hint, this->_M_hash_code(__k) }; 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_insert_unique_node(size_type __bkt, __hash_code __code, 26629: __node_ptr __node, size_type __n_elt) 26629: -> iterator 26629: { 26629: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 26629: std::pair __do_rehash 26629: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 26629: __n_elt); 26629: 26629: if (__do_rehash.first) 26629: { 26629: _M_rehash(__do_rehash.second, __saved_state); 26629: __bkt = _M_bucket_index(__code); 26629: } 26629: 26629: this->_M_store_code(*__node, __code); 26629: 26629: 26629: _M_insert_bucket_begin(__bkt, __node); 26629: ++_M_element_count; 26629: return iterator(__node); 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_insert_multi_node(__node_ptr __hint, 26629: __hash_code __code, __node_ptr __node) 26629: -> iterator 26629: { 26629: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 26629: std::pair __do_rehash 26629: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); 26629: 26629: if (__do_rehash.first) 26629: _M_rehash(__do_rehash.second, __saved_state); 26629: 26629: this->_M_store_code(*__node, __code); 26629: const key_type& __k = _ExtractKey{}(__node->_M_v()); 26629: size_type __bkt = _M_bucket_index(__code); 26629: 26629: 26629: 26629: __node_base_ptr __prev 26629: = __builtin_expect(__hint != nullptr, false) 26629: && this->_M_equals(__k, __code, *__hint) 26629: ? __hint 26629: : _M_find_before_node(__bkt, __k, __code); 26629: 26629: if (__prev) 26629: { 26629: 26629: __node->_M_nxt = __prev->_M_nxt; 26629: __prev->_M_nxt = __node; 26629: if (__builtin_expect(__prev == __hint, false)) 26629: 26629: 26629: if (__node->_M_nxt 26629: && !this->_M_equals(__k, __code, *__node->_M_next())) 26629: { 26629: size_type __next_bkt = _M_bucket_index(*__node->_M_next()); 26629: if (__next_bkt != __bkt) 26629: _M_buckets[__next_bkt] = __node; 26629: } 26629: } 26629: else 26629: 26629: 26629: 26629: _M_insert_bucket_begin(__bkt, __node); 26629: ++_M_element_count; 26629: return iterator(__node); 26629: } 26629: 26629: 26629: template 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_insert_unique(_Kt&& __k, _Arg&& __v, 26629: const _NodeGenerator& __node_gen) 26629: -> pair 26629: { 26629: if (size() <= __small_size_threshold()) 26629: for (auto __it = begin(); __it != end(); ++__it) 26629: if (this->_M_key_equals_tr(__k, *__it._M_cur)) 26629: return { __it, false }; 26629: 26629: __hash_code __code = this->_M_hash_code_tr(__k); 26629: size_type __bkt = _M_bucket_index(__code); 26629: 26629: if (size() > __small_size_threshold()) 26629: if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) 26629: return { iterator(__node), false }; 26629: 26629: _Scoped_node __node { 26629: __node_builder_t::_S_build(std::forward<_Kt>(__k), 26629: std::forward<_Arg>(__v), 26629: __node_gen), 26629: this 26629: }; 26629: auto __pos 26629: = _M_insert_unique_node(__bkt, __code, __node._M_node); 26629: __node._M_node = nullptr; 26629: return { __pos, true }; 26629: } 26629: 26629: 26629: template 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_insert(const_iterator __hint, _Arg&& __v, 26629: const _NodeGenerator& __node_gen, 26629: false_type ) 26629: -> iterator 26629: { 26629: 26629: _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; 26629: 26629: 26629: auto __res = this->_M_compute_hash_code( 26629: __hint, _ExtractKey{}(__node._M_node->_M_v())); 26629: 26629: auto __pos 26629: = _M_insert_multi_node(__res.first._M_cur, __res.second, 26629: __node._M_node); 26629: __node._M_node = nullptr; 26629: return __pos; 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: erase(const_iterator __it) 26629: -> iterator 26629: { 26629: __node_ptr __n = __it._M_cur; 26629: std::size_t __bkt = _M_bucket_index(*__n); 26629: 26629: 26629: 26629: 26629: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 26629: return _M_erase(__bkt, __prev_n, __n); 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) 26629: -> iterator 26629: { 26629: if (__prev_n == _M_buckets[__bkt]) 26629: _M_remove_bucket_begin(__bkt, __n->_M_next(), 26629: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 26629: else if (__n->_M_nxt) 26629: { 26629: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 26629: if (__next_bkt != __bkt) 26629: _M_buckets[__next_bkt] = __prev_n; 26629: } 26629: 26629: __prev_n->_M_nxt = __n->_M_nxt; 26629: iterator __result(__n->_M_next()); 26629: this->_M_deallocate_node(__n); 26629: --_M_element_count; 26629: 26629: return __result; 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_erase(true_type , const key_type& __k) 26629: -> size_type 26629: { 26629: __node_base_ptr __prev_n; 26629: __node_ptr __n; 26629: std::size_t __bkt; 26629: if (size() <= __small_size_threshold()) 26629: { 26629: __prev_n = _M_find_before_node(__k); 26629: if (!__prev_n) 26629: return 0; 26629: 26629: 26629: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 26629: __bkt = _M_bucket_index(*__n); 26629: } 26629: else 26629: { 26629: __hash_code __code = this->_M_hash_code(__k); 26629: __bkt = _M_bucket_index(__code); 26629: 26629: 26629: __prev_n = _M_find_before_node(__bkt, __k, __code); 26629: if (!__prev_n) 26629: return 0; 26629: 26629: 26629: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 26629: } 26629: 26629: _M_erase(__bkt, __prev_n, __n); 26629: return 1; 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_erase(false_type , const key_type& __k) 26629: -> size_type 26629: { 26629: std::size_t __bkt; 26629: __node_base_ptr __prev_n; 26629: __node_ptr __n; 26629: if (size() <= __small_size_threshold()) 26629: { 26629: __prev_n = _M_find_before_node(__k); 26629: if (!__prev_n) 26629: return 0; 26629: 26629: 26629: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 26629: __bkt = _M_bucket_index(*__n); 26629: } 26629: else 26629: { 26629: __hash_code __code = this->_M_hash_code(__k); 26629: __bkt = _M_bucket_index(__code); 26629: 26629: 26629: __prev_n = _M_find_before_node(__bkt, __k, __code); 26629: if (!__prev_n) 26629: return 0; 26629: 26629: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __node_ptr __n_last = __n->_M_next(); 26629: while (__n_last && this->_M_node_equals(*__n, *__n_last)) 26629: __n_last = __n_last->_M_next(); 26629: 26629: std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; 26629: 26629: 26629: size_type __result = 0; 26629: do 26629: { 26629: __node_ptr __p = __n->_M_next(); 26629: this->_M_deallocate_node(__n); 26629: __n = __p; 26629: ++__result; 26629: } 26629: while (__n != __n_last); 26629: 26629: _M_element_count -= __result; 26629: if (__prev_n == _M_buckets[__bkt]) 26629: _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); 26629: else if (__n_last_bkt != __bkt) 26629: _M_buckets[__n_last_bkt] = __prev_n; 26629: __prev_n->_M_nxt = __n_last; 26629: return __result; 26629: } 26629: 26629: template 26629: auto 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: erase(const_iterator __first, const_iterator __last) 26629: -> iterator 26629: { 26629: __node_ptr __n = __first._M_cur; 26629: __node_ptr __last_n = __last._M_cur; 26629: if (__n == __last_n) 26629: return iterator(__n); 26629: 26629: std::size_t __bkt = _M_bucket_index(*__n); 26629: 26629: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 26629: bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); 26629: std::size_t __n_bkt = __bkt; 26629: for (;;) 26629: { 26629: do 26629: { 26629: __node_ptr __tmp = __n; 26629: __n = __n->_M_next(); 26629: this->_M_deallocate_node(__tmp); 26629: --_M_element_count; 26629: if (!__n) 26629: break; 26629: __n_bkt = _M_bucket_index(*__n); 26629: } 26629: while (__n != __last_n && __n_bkt == __bkt); 26629: if (__is_bucket_begin) 26629: _M_remove_bucket_begin(__bkt, __n, __n_bkt); 26629: if (__n == __last_n) 26629: break; 26629: __is_bucket_begin = true; 26629: __bkt = __n_bkt; 26629: } 26629: 26629: if (__n && (__n_bkt != __bkt || __is_bucket_begin)) 26629: _M_buckets[__n_bkt] = __prev_n; 26629: __prev_n->_M_nxt = __n; 26629: return iterator(__n); 26629: } 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: clear() noexcept 26629: { 26629: this->_M_deallocate_nodes(_M_begin()); 26629: __builtin_memset(_M_buckets, 0, 26629: _M_bucket_count * sizeof(__node_base_ptr)); 26629: _M_element_count = 0; 26629: _M_before_begin._M_nxt = nullptr; 26629: } 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: rehash(size_type __bkt_count) 26629: { 26629: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 26629: __bkt_count 26629: = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), 26629: __bkt_count); 26629: __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); 26629: 26629: if (__bkt_count != _M_bucket_count) 26629: _M_rehash(__bkt_count, __saved_state); 26629: else 26629: 26629: 26629: _M_rehash_policy._M_reset(__saved_state); 26629: } 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_rehash(size_type __bkt_count, const __rehash_state& __state) 26629: { 26629: try 26629: { 26629: _M_rehash_aux(__bkt_count, __unique_keys{}); 26629: } 26629: catch(...) 26629: { 26629: 26629: 26629: _M_rehash_policy._M_reset(__state); 26629: throw; 26629: } 26629: } 26629: 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_rehash_aux(size_type __bkt_count, true_type ) 26629: { 26629: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 26629: __node_ptr __p = _M_begin(); 26629: _M_before_begin._M_nxt = nullptr; 26629: std::size_t __bbegin_bkt = 0; 26629: while (__p) 26629: { 26629: __node_ptr __next = __p->_M_next(); 26629: std::size_t __bkt 26629: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 26629: if (!__new_buckets[__bkt]) 26629: { 26629: __p->_M_nxt = _M_before_begin._M_nxt; 26629: _M_before_begin._M_nxt = __p; 26629: __new_buckets[__bkt] = &_M_before_begin; 26629: if (__p->_M_nxt) 26629: __new_buckets[__bbegin_bkt] = __p; 26629: __bbegin_bkt = __bkt; 26629: } 26629: else 26629: { 26629: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 26629: __new_buckets[__bkt]->_M_nxt = __p; 26629: } 26629: 26629: __p = __next; 26629: } 26629: 26629: _M_deallocate_buckets(); 26629: _M_bucket_count = __bkt_count; 26629: _M_buckets = __new_buckets; 26629: } 26629: 26629: 26629: 26629: template 26629: void 26629: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 26629: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 26629: _M_rehash_aux(size_type __bkt_count, false_type ) 26629: { 26629: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 26629: __node_ptr __p = _M_begin(); 26629: _M_before_begin._M_nxt = nullptr; 26629: std::size_t __bbegin_bkt = 0; 26629: std::size_t __prev_bkt = 0; 26629: __node_ptr __prev_p = nullptr; 26629: bool __check_bucket = false; 26629: 26629: while (__p) 26629: { 26629: __node_ptr __next = __p->_M_next(); 26629: std::size_t __bkt 26629: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 26629: 26629: if (__prev_p && __prev_bkt == __bkt) 26629: { 26629: 26629: 26629: 26629: __p->_M_nxt = __prev_p->_M_nxt; 26629: __prev_p->_M_nxt = __p; 26629: 26629: 26629: 26629: 26629: 26629: 26629: __check_bucket = true; 26629: } 26629: else 26629: { 26629: if (__check_bucket) 26629: { 26629: 26629: 26629: if (__prev_p->_M_nxt) 26629: { 26629: std::size_t __next_bkt 26629: = __hash_code_base::_M_bucket_index( 26629: *__prev_p->_M_next(), __bkt_count); 26629: if (__next_bkt != __prev_bkt) 26629: __new_buckets[__next_bkt] = __prev_p; 26629: } 26629: __check_bucket = false; 26629: } 26629: 26629: if (!__new_buckets[__bkt]) 26629: { 26629: __p->_M_nxt = _M_before_begin._M_nxt; 26629: _M_before_begin._M_nxt = __p; 26629: __new_buckets[__bkt] = &_M_before_begin; 26629: if (__p->_M_nxt) 26629: __new_buckets[__bbegin_bkt] = __p; 26629: __bbegin_bkt = __bkt; 26629: } 26629: else 26629: { 26629: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 26629: __new_buckets[__bkt]->_M_nxt = __p; 26629: } 26629: } 26629: __prev_p = __p; 26629: __prev_bkt = __bkt; 26629: __p = __next; 26629: } 26629: 26629: if (__check_bucket && __prev_p->_M_nxt) 26629: { 26629: std::size_t __next_bkt 26629: = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), 26629: __bkt_count); 26629: if (__next_bkt != __prev_bkt) 26629: __new_buckets[__next_bkt] = __prev_p; 26629: } 26629: 26629: _M_deallocate_buckets(); 26629: _M_bucket_count = __bkt_count; 26629: _M_buckets = __new_buckets; 26629: } 26629: 26629: 26629: template class _Hash_merge_helper { }; 26629: 26629: 26629: 26629: 26629: template 26629: using _RequireNotAllocatorOrIntegral 26629: = __enable_if_t, __is_allocator<_Hash>>::value>; 26629: 26629: 26629: 26629: 26629: } 26629: # 47 "/usr/include/c++/12/unordered_map" 2 3 26629: # 1 "/usr/include/c++/12/bits/unordered_map.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: template 26629: using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; 26629: 26629: template, 26629: typename _Pred = std::equal_to<_Key>, 26629: typename _Alloc = std::allocator >, 26629: typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> 26629: using __umap_hashtable = _Hashtable<_Key, std::pair, 26629: _Alloc, __detail::_Select1st, 26629: _Pred, _Hash, 26629: __detail::_Mod_range_hashing, 26629: __detail::_Default_ranged_hash, 26629: __detail::_Prime_rehash_policy, _Tr>; 26629: 26629: 26629: template 26629: using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; 26629: 26629: template, 26629: typename _Pred = std::equal_to<_Key>, 26629: typename _Alloc = std::allocator >, 26629: typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> 26629: using __ummap_hashtable = _Hashtable<_Key, std::pair, 26629: _Alloc, __detail::_Select1st, 26629: _Pred, _Hash, 26629: __detail::_Mod_range_hashing, 26629: __detail::_Default_ranged_hash, 26629: __detail::_Prime_rehash_policy, _Tr>; 26629: 26629: template 26629: class unordered_multimap; 26629: # 98 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template, 26629: typename _Pred = equal_to<_Key>, 26629: typename _Alloc = allocator>> 26629: class unordered_map 26629: { 26629: typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 26629: _Hashtable _M_h; 26629: 26629: public: 26629: 26629: 26629: 26629: typedef typename _Hashtable::key_type key_type; 26629: typedef typename _Hashtable::value_type value_type; 26629: typedef typename _Hashtable::mapped_type mapped_type; 26629: typedef typename _Hashtable::hasher hasher; 26629: typedef typename _Hashtable::key_equal key_equal; 26629: typedef typename _Hashtable::allocator_type allocator_type; 26629: 26629: 26629: 26629: 26629: typedef typename _Hashtable::pointer pointer; 26629: typedef typename _Hashtable::const_pointer const_pointer; 26629: typedef typename _Hashtable::reference reference; 26629: typedef typename _Hashtable::const_reference const_reference; 26629: typedef typename _Hashtable::iterator iterator; 26629: typedef typename _Hashtable::const_iterator const_iterator; 26629: typedef typename _Hashtable::local_iterator local_iterator; 26629: typedef typename _Hashtable::const_local_iterator const_local_iterator; 26629: typedef typename _Hashtable::size_type size_type; 26629: typedef typename _Hashtable::difference_type difference_type; 26629: 26629: 26629: 26629: using node_type = typename _Hashtable::node_type; 26629: using insert_return_type = typename _Hashtable::insert_return_type; 26629: 26629: 26629: 26629: 26629: 26629: unordered_map() = default; 26629: # 150 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: explicit 26629: unordered_map(size_type __n, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__n, __hf, __eql, __a) 26629: { } 26629: # 171 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: unordered_map(_InputIterator __first, _InputIterator __last, 26629: size_type __n = 0, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__first, __last, __n, __hf, __eql, __a) 26629: { } 26629: 26629: 26629: unordered_map(const unordered_map&) = default; 26629: 26629: 26629: unordered_map(unordered_map&&) = default; 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: unordered_map(const allocator_type& __a) 26629: : _M_h(__a) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: unordered_map(const unordered_map& __umap, 26629: const allocator_type& __a) 26629: : _M_h(__umap._M_h, __a) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: unordered_map(unordered_map&& __umap, 26629: const allocator_type& __a) 26629: noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) 26629: : _M_h(std::move(__umap._M_h), __a) 26629: { } 26629: # 227 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: unordered_map(initializer_list __l, 26629: size_type __n = 0, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__l, __n, __hf, __eql, __a) 26629: { } 26629: 26629: unordered_map(size_type __n, const allocator_type& __a) 26629: : unordered_map(__n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: unordered_map(size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_map(__n, __hf, key_equal(), __a) 26629: { } 26629: 26629: template 26629: unordered_map(_InputIterator __first, _InputIterator __last, 26629: size_type __n, 26629: const allocator_type& __a) 26629: : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: template 26629: unordered_map(_InputIterator __first, _InputIterator __last, 26629: size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_map(__first, __last, __n, __hf, key_equal(), __a) 26629: { } 26629: 26629: unordered_map(initializer_list __l, 26629: size_type __n, 26629: const allocator_type& __a) 26629: : unordered_map(__l, __n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: unordered_map(initializer_list __l, 26629: size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_map(__l, __n, __hf, key_equal(), __a) 26629: { } 26629: 26629: 26629: unordered_map& 26629: operator=(const unordered_map&) = default; 26629: 26629: 26629: unordered_map& 26629: operator=(unordered_map&&) = default; 26629: # 289 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: unordered_map& 26629: operator=(initializer_list __l) 26629: { 26629: _M_h = __l; 26629: return *this; 26629: } 26629: 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return _M_h.get_allocator(); } 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return _M_h.empty(); } 26629: 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_h.size(); } 26629: 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return _M_h.max_size(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: begin() noexcept 26629: { return _M_h.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: begin() const noexcept 26629: { return _M_h.begin(); } 26629: 26629: const_iterator 26629: cbegin() const noexcept 26629: { return _M_h.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: end() noexcept 26629: { return _M_h.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: end() const noexcept 26629: { return _M_h.end(); } 26629: 26629: const_iterator 26629: cend() const noexcept 26629: { return _M_h.end(); } 26629: # 386 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: std::pair 26629: emplace(_Args&&... __args) 26629: { return _M_h.emplace(std::forward<_Args>(__args)...); } 26629: # 417 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: iterator 26629: emplace_hint(const_iterator __pos, _Args&&... __args) 26629: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 26629: 26629: 26629: 26629: node_type 26629: extract(const_iterator __pos) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 26629: return _M_h.extract(__pos); 26629: } 26629: 26629: 26629: node_type 26629: extract(const key_type& __key) 26629: { return _M_h.extract(__key); } 26629: 26629: 26629: insert_return_type 26629: insert(node_type&& __nh) 26629: { return _M_h._M_reinsert_node(std::move(__nh)); } 26629: 26629: 26629: iterator 26629: insert(const_iterator, node_type&& __nh) 26629: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 26629: # 469 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: pair 26629: try_emplace(const key_type& __k, _Args&&... __args) 26629: { 26629: return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); 26629: } 26629: 26629: 26629: template 26629: pair 26629: try_emplace(key_type&& __k, _Args&&... __args) 26629: { 26629: return _M_h.try_emplace(cend(), std::move(__k), 26629: std::forward<_Args>(__args)...); 26629: } 26629: # 513 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: iterator 26629: try_emplace(const_iterator __hint, const key_type& __k, 26629: _Args&&... __args) 26629: { 26629: return _M_h.try_emplace(__hint, __k, 26629: std::forward<_Args>(__args)...).first; 26629: } 26629: 26629: 26629: template 26629: iterator 26629: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 26629: { 26629: return _M_h.try_emplace(__hint, std::move(__k), 26629: std::forward<_Args>(__args)...).first; 26629: } 26629: # 550 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: std::pair 26629: insert(const value_type& __x) 26629: { return _M_h.insert(__x); } 26629: 26629: 26629: 26629: std::pair 26629: insert(value_type&& __x) 26629: { return _M_h.insert(std::move(__x)); } 26629: 26629: template 26629: __enable_if_t::value, 26629: pair> 26629: insert(_Pair&& __x) 26629: { return _M_h.emplace(std::forward<_Pair>(__x)); } 26629: # 589 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: iterator 26629: insert(const_iterator __hint, const value_type& __x) 26629: { return _M_h.insert(__hint, __x); } 26629: 26629: 26629: 26629: iterator 26629: insert(const_iterator __hint, value_type&& __x) 26629: { return _M_h.insert(__hint, std::move(__x)); } 26629: 26629: template 26629: __enable_if_t::value, iterator> 26629: insert(const_iterator __hint, _Pair&& __x) 26629: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 26629: # 614 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: void 26629: insert(_InputIterator __first, _InputIterator __last) 26629: { _M_h.insert(__first, __last); } 26629: # 626 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: void 26629: insert(initializer_list __l) 26629: { _M_h.insert(__l); } 26629: # 652 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: pair 26629: insert_or_assign(const key_type& __k, _Obj&& __obj) 26629: { 26629: auto __ret = _M_h.try_emplace(cend(), __k, 26629: std::forward<_Obj>(__obj)); 26629: if (!__ret.second) 26629: __ret.first->second = std::forward<_Obj>(__obj); 26629: return __ret; 26629: } 26629: 26629: 26629: template 26629: pair 26629: insert_or_assign(key_type&& __k, _Obj&& __obj) 26629: { 26629: auto __ret = _M_h.try_emplace(cend(), std::move(__k), 26629: std::forward<_Obj>(__obj)); 26629: if (!__ret.second) 26629: __ret.first->second = std::forward<_Obj>(__obj); 26629: return __ret; 26629: } 26629: # 701 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: iterator 26629: insert_or_assign(const_iterator __hint, const key_type& __k, 26629: _Obj&& __obj) 26629: { 26629: auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); 26629: if (!__ret.second) 26629: __ret.first->second = std::forward<_Obj>(__obj); 26629: return __ret.first; 26629: } 26629: 26629: 26629: template 26629: iterator 26629: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 26629: { 26629: auto __ret = _M_h.try_emplace(__hint, std::move(__k), 26629: std::forward<_Obj>(__obj)); 26629: if (!__ret.second) 26629: __ret.first->second = std::forward<_Obj>(__obj); 26629: return __ret.first; 26629: } 26629: # 739 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: iterator 26629: erase(const_iterator __position) 26629: { return _M_h.erase(__position); } 26629: 26629: 26629: iterator 26629: erase(iterator __position) 26629: { return _M_h.erase(__position); } 26629: # 761 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: size_type 26629: erase(const key_type& __x) 26629: { return _M_h.erase(__x); } 26629: # 779 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: iterator 26629: erase(const_iterator __first, const_iterator __last) 26629: { return _M_h.erase(__first, __last); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: clear() noexcept 26629: { _M_h.clear(); } 26629: # 803 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: void 26629: swap(unordered_map& __x) 26629: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 26629: { _M_h.swap(__x._M_h); } 26629: 26629: 26629: template 26629: friend class std::_Hash_merge_helper; 26629: 26629: template 26629: void 26629: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Hash_merge_helper; 26629: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: template 26629: void 26629: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Hash_merge_helper; 26629: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: hasher 26629: hash_function() const 26629: { return _M_h.hash_function(); } 26629: 26629: 26629: 26629: key_equal 26629: key_eq() const 26629: { return _M_h.key_eq(); } 26629: # 867 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: iterator 26629: find(const key_type& __x) 26629: { return _M_h.find(__x); } 26629: # 878 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: const_iterator 26629: find(const key_type& __x) const 26629: { return _M_h.find(__x); } 26629: # 900 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: size_type 26629: count(const key_type& __x) const 26629: { return _M_h.count(__x); } 26629: # 940 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) 26629: { return _M_h.equal_range(__x); } 26629: # 952 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) const 26629: { return _M_h.equal_range(__x); } 26629: # 978 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: mapped_type& 26629: operator[](const key_type& __k) 26629: { return _M_h[__k]; } 26629: 26629: mapped_type& 26629: operator[](key_type&& __k) 26629: { return _M_h[std::move(__k)]; } 26629: # 995 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: mapped_type& 26629: at(const key_type& __k) 26629: { return _M_h.at(__k); } 26629: 26629: const mapped_type& 26629: at(const key_type& __k) const 26629: { return _M_h.at(__k); } 26629: 26629: 26629: 26629: 26629: 26629: size_type 26629: bucket_count() const noexcept 26629: { return _M_h.bucket_count(); } 26629: 26629: 26629: size_type 26629: max_bucket_count() const noexcept 26629: { return _M_h.max_bucket_count(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_type 26629: bucket_size(size_type __n) const 26629: { return _M_h.bucket_size(__n); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_type 26629: bucket(const key_type& __key) const 26629: { return _M_h.bucket(__key); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: local_iterator 26629: begin(size_type __n) 26629: { return _M_h.begin(__n); } 26629: # 1051 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: const_local_iterator 26629: begin(size_type __n) const 26629: { return _M_h.begin(__n); } 26629: 26629: const_local_iterator 26629: cbegin(size_type __n) const 26629: { return _M_h.cbegin(__n); } 26629: # 1066 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: local_iterator 26629: end(size_type __n) 26629: { return _M_h.end(__n); } 26629: # 1077 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: const_local_iterator 26629: end(size_type __n) const 26629: { return _M_h.end(__n); } 26629: 26629: const_local_iterator 26629: cend(size_type __n) const 26629: { return _M_h.cend(__n); } 26629: 26629: 26629: 26629: 26629: 26629: float 26629: load_factor() const noexcept 26629: { return _M_h.load_factor(); } 26629: 26629: 26629: 26629: float 26629: max_load_factor() const noexcept 26629: { return _M_h.max_load_factor(); } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: max_load_factor(float __z) 26629: { _M_h.max_load_factor(__z); } 26629: # 1114 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: void 26629: rehash(size_type __n) 26629: { _M_h.rehash(__n); } 26629: # 1125 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: void 26629: reserve(size_type __n) 26629: { _M_h.reserve(__n); } 26629: 26629: template 26629: friend bool 26629: operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, 26629: const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); 26629: }; 26629: 26629: 26629: 26629: template>, 26629: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 26629: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireNotAllocator<_Pred>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_map(_InputIterator, _InputIterator, 26629: typename unordered_map::size_type = {}, 26629: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 26629: -> unordered_map<__iter_key_t<_InputIterator>, 26629: __iter_val_t<_InputIterator>, 26629: _Hash, _Pred, _Allocator>; 26629: 26629: template, 26629: typename _Pred = equal_to<_Key>, 26629: typename _Allocator = allocator>, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireNotAllocator<_Pred>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_map(initializer_list>, 26629: typename unordered_map::size_type = {}, 26629: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 26629: -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_map(_InputIterator, _InputIterator, 26629: typename unordered_map::size_type, _Allocator) 26629: -> unordered_map<__iter_key_t<_InputIterator>, 26629: __iter_val_t<_InputIterator>, 26629: hash<__iter_key_t<_InputIterator>>, 26629: equal_to<__iter_key_t<_InputIterator>>, 26629: _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_map(_InputIterator, _InputIterator, _Allocator) 26629: -> unordered_map<__iter_key_t<_InputIterator>, 26629: __iter_val_t<_InputIterator>, 26629: hash<__iter_key_t<_InputIterator>>, 26629: equal_to<__iter_key_t<_InputIterator>>, 26629: _Allocator>; 26629: 26629: template, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_map(_InputIterator, _InputIterator, 26629: typename unordered_map::size_type, 26629: _Hash, _Allocator) 26629: -> unordered_map<__iter_key_t<_InputIterator>, 26629: __iter_val_t<_InputIterator>, _Hash, 26629: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 26629: 26629: template> 26629: unordered_map(initializer_list>, 26629: typename unordered_map::size_type, 26629: _Allocator) 26629: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 26629: 26629: template> 26629: unordered_map(initializer_list>, _Allocator) 26629: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_map(initializer_list>, 26629: typename unordered_map::size_type, 26629: _Hash, _Allocator) 26629: -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 26629: # 1241 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template, 26629: typename _Pred = equal_to<_Key>, 26629: typename _Alloc = allocator>> 26629: class unordered_multimap 26629: { 26629: typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 26629: _Hashtable _M_h; 26629: 26629: public: 26629: 26629: 26629: 26629: typedef typename _Hashtable::key_type key_type; 26629: typedef typename _Hashtable::value_type value_type; 26629: typedef typename _Hashtable::mapped_type mapped_type; 26629: typedef typename _Hashtable::hasher hasher; 26629: typedef typename _Hashtable::key_equal key_equal; 26629: typedef typename _Hashtable::allocator_type allocator_type; 26629: 26629: 26629: 26629: 26629: typedef typename _Hashtable::pointer pointer; 26629: typedef typename _Hashtable::const_pointer const_pointer; 26629: typedef typename _Hashtable::reference reference; 26629: typedef typename _Hashtable::const_reference const_reference; 26629: typedef typename _Hashtable::iterator iterator; 26629: typedef typename _Hashtable::const_iterator const_iterator; 26629: typedef typename _Hashtable::local_iterator local_iterator; 26629: typedef typename _Hashtable::const_local_iterator const_local_iterator; 26629: typedef typename _Hashtable::size_type size_type; 26629: typedef typename _Hashtable::difference_type difference_type; 26629: 26629: 26629: 26629: using node_type = typename _Hashtable::node_type; 26629: 26629: 26629: 26629: 26629: 26629: unordered_multimap() = default; 26629: # 1292 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: explicit 26629: unordered_multimap(size_type __n, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__n, __hf, __eql, __a) 26629: { } 26629: # 1313 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: unordered_multimap(_InputIterator __first, _InputIterator __last, 26629: size_type __n = 0, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__first, __last, __n, __hf, __eql, __a) 26629: { } 26629: 26629: 26629: unordered_multimap(const unordered_multimap&) = default; 26629: 26629: 26629: unordered_multimap(unordered_multimap&&) = default; 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: unordered_multimap(const allocator_type& __a) 26629: : _M_h(__a) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: unordered_multimap(const unordered_multimap& __ummap, 26629: const allocator_type& __a) 26629: : _M_h(__ummap._M_h, __a) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: unordered_multimap(unordered_multimap&& __ummap, 26629: const allocator_type& __a) 26629: noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) 26629: : _M_h(std::move(__ummap._M_h), __a) 26629: { } 26629: # 1369 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: unordered_multimap(initializer_list __l, 26629: size_type __n = 0, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__l, __n, __hf, __eql, __a) 26629: { } 26629: 26629: unordered_multimap(size_type __n, const allocator_type& __a) 26629: : unordered_multimap(__n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: unordered_multimap(size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_multimap(__n, __hf, key_equal(), __a) 26629: { } 26629: 26629: template 26629: unordered_multimap(_InputIterator __first, _InputIterator __last, 26629: size_type __n, 26629: const allocator_type& __a) 26629: : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: template 26629: unordered_multimap(_InputIterator __first, _InputIterator __last, 26629: size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) 26629: { } 26629: 26629: unordered_multimap(initializer_list __l, 26629: size_type __n, 26629: const allocator_type& __a) 26629: : unordered_multimap(__l, __n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: unordered_multimap(initializer_list __l, 26629: size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_multimap(__l, __n, __hf, key_equal(), __a) 26629: { } 26629: 26629: 26629: unordered_multimap& 26629: operator=(const unordered_multimap&) = default; 26629: 26629: 26629: unordered_multimap& 26629: operator=(unordered_multimap&&) = default; 26629: # 1431 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: unordered_multimap& 26629: operator=(initializer_list __l) 26629: { 26629: _M_h = __l; 26629: return *this; 26629: } 26629: 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return _M_h.get_allocator(); } 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return _M_h.empty(); } 26629: 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_h.size(); } 26629: 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return _M_h.max_size(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: begin() noexcept 26629: { return _M_h.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: begin() const noexcept 26629: { return _M_h.begin(); } 26629: 26629: const_iterator 26629: cbegin() const noexcept 26629: { return _M_h.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: end() noexcept 26629: { return _M_h.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: end() const noexcept 26629: { return _M_h.end(); } 26629: 26629: const_iterator 26629: cend() const noexcept 26629: { return _M_h.end(); } 26629: # 1523 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: iterator 26629: emplace(_Args&&... __args) 26629: { return _M_h.emplace(std::forward<_Args>(__args)...); } 26629: # 1550 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: iterator 26629: emplace_hint(const_iterator __pos, _Args&&... __args) 26629: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 26629: # 1565 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: iterator 26629: insert(const value_type& __x) 26629: { return _M_h.insert(__x); } 26629: 26629: iterator 26629: insert(value_type&& __x) 26629: { return _M_h.insert(std::move(__x)); } 26629: 26629: template 26629: __enable_if_t::value, iterator> 26629: insert(_Pair&& __x) 26629: { return _M_h.emplace(std::forward<_Pair>(__x)); } 26629: # 1599 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: iterator 26629: insert(const_iterator __hint, const value_type& __x) 26629: { return _M_h.insert(__hint, __x); } 26629: 26629: 26629: 26629: iterator 26629: insert(const_iterator __hint, value_type&& __x) 26629: { return _M_h.insert(__hint, std::move(__x)); } 26629: 26629: template 26629: __enable_if_t::value, iterator> 26629: insert(const_iterator __hint, _Pair&& __x) 26629: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 26629: # 1624 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: template 26629: void 26629: insert(_InputIterator __first, _InputIterator __last) 26629: { _M_h.insert(__first, __last); } 26629: # 1637 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: void 26629: insert(initializer_list __l) 26629: { _M_h.insert(__l); } 26629: 26629: 26629: 26629: node_type 26629: extract(const_iterator __pos) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 26629: return _M_h.extract(__pos); 26629: } 26629: 26629: 26629: node_type 26629: extract(const key_type& __key) 26629: { return _M_h.extract(__key); } 26629: 26629: 26629: iterator 26629: insert(node_type&& __nh) 26629: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 26629: 26629: 26629: iterator 26629: insert(const_iterator __hint, node_type&& __nh) 26629: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 26629: # 1680 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: iterator 26629: erase(const_iterator __position) 26629: { return _M_h.erase(__position); } 26629: 26629: 26629: iterator 26629: erase(iterator __position) 26629: { return _M_h.erase(__position); } 26629: # 1701 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: size_type 26629: erase(const key_type& __x) 26629: { return _M_h.erase(__x); } 26629: # 1720 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: iterator 26629: erase(const_iterator __first, const_iterator __last) 26629: { return _M_h.erase(__first, __last); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: clear() noexcept 26629: { _M_h.clear(); } 26629: # 1744 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: void 26629: swap(unordered_multimap& __x) 26629: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 26629: { _M_h.swap(__x._M_h); } 26629: 26629: 26629: template 26629: friend class std::_Hash_merge_helper; 26629: 26629: template 26629: void 26629: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 26629: { 26629: using _Merge_helper 26629: = _Hash_merge_helper; 26629: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: template 26629: void 26629: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 26629: { 26629: using _Merge_helper 26629: = _Hash_merge_helper; 26629: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: hasher 26629: hash_function() const 26629: { return _M_h.hash_function(); } 26629: 26629: 26629: 26629: key_equal 26629: key_eq() const 26629: { return _M_h.key_eq(); } 26629: # 1810 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: iterator 26629: find(const key_type& __x) 26629: { return _M_h.find(__x); } 26629: # 1821 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: const_iterator 26629: find(const key_type& __x) const 26629: { return _M_h.find(__x); } 26629: # 1839 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: size_type 26629: count(const key_type& __x) const 26629: { return _M_h.count(__x); } 26629: # 1877 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) 26629: { return _M_h.equal_range(__x); } 26629: # 1889 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) const 26629: { return _M_h.equal_range(__x); } 26629: # 1905 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: size_type 26629: bucket_count() const noexcept 26629: { return _M_h.bucket_count(); } 26629: 26629: 26629: size_type 26629: max_bucket_count() const noexcept 26629: { return _M_h.max_bucket_count(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_type 26629: bucket_size(size_type __n) const 26629: { return _M_h.bucket_size(__n); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_type 26629: bucket(const key_type& __key) const 26629: { return _M_h.bucket(__key); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: local_iterator 26629: begin(size_type __n) 26629: { return _M_h.begin(__n); } 26629: # 1949 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: const_local_iterator 26629: begin(size_type __n) const 26629: { return _M_h.begin(__n); } 26629: 26629: const_local_iterator 26629: cbegin(size_type __n) const 26629: { return _M_h.cbegin(__n); } 26629: # 1964 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: local_iterator 26629: end(size_type __n) 26629: { return _M_h.end(__n); } 26629: # 1975 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: const_local_iterator 26629: end(size_type __n) const 26629: { return _M_h.end(__n); } 26629: 26629: const_local_iterator 26629: cend(size_type __n) const 26629: { return _M_h.cend(__n); } 26629: 26629: 26629: 26629: 26629: 26629: float 26629: load_factor() const noexcept 26629: { return _M_h.load_factor(); } 26629: 26629: 26629: 26629: float 26629: max_load_factor() const noexcept 26629: { return _M_h.max_load_factor(); } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: max_load_factor(float __z) 26629: { _M_h.max_load_factor(__z); } 26629: # 2012 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: void 26629: rehash(size_type __n) 26629: { _M_h.rehash(__n); } 26629: # 2023 "/usr/include/c++/12/bits/unordered_map.h" 3 26629: void 26629: reserve(size_type __n) 26629: { _M_h.reserve(__n); } 26629: 26629: template 26629: friend bool 26629: operator==(const unordered_multimap<_Key1, _Tp1, 26629: _Hash1, _Pred1, _Alloc1>&, 26629: const unordered_multimap<_Key1, _Tp1, 26629: _Hash1, _Pred1, _Alloc1>&); 26629: }; 26629: 26629: 26629: 26629: template>, 26629: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 26629: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireNotAllocator<_Pred>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multimap(_InputIterator, _InputIterator, 26629: unordered_multimap::size_type = {}, 26629: _Hash = _Hash(), _Pred = _Pred(), 26629: _Allocator = _Allocator()) 26629: -> unordered_multimap<__iter_key_t<_InputIterator>, 26629: __iter_val_t<_InputIterator>, _Hash, _Pred, 26629: _Allocator>; 26629: 26629: template, 26629: typename _Pred = equal_to<_Key>, 26629: typename _Allocator = allocator>, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireNotAllocator<_Pred>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multimap(initializer_list>, 26629: unordered_multimap::size_type = {}, 26629: _Hash = _Hash(), _Pred = _Pred(), 26629: _Allocator = _Allocator()) 26629: -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multimap(_InputIterator, _InputIterator, 26629: unordered_multimap::size_type, _Allocator) 26629: -> unordered_multimap<__iter_key_t<_InputIterator>, 26629: __iter_val_t<_InputIterator>, 26629: hash<__iter_key_t<_InputIterator>>, 26629: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multimap(_InputIterator, _InputIterator, _Allocator) 26629: -> unordered_multimap<__iter_key_t<_InputIterator>, 26629: __iter_val_t<_InputIterator>, 26629: hash<__iter_key_t<_InputIterator>>, 26629: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 26629: 26629: template, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multimap(_InputIterator, _InputIterator, 26629: unordered_multimap::size_type, _Hash, 26629: _Allocator) 26629: -> unordered_multimap<__iter_key_t<_InputIterator>, 26629: __iter_val_t<_InputIterator>, _Hash, 26629: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 26629: 26629: template> 26629: unordered_multimap(initializer_list>, 26629: unordered_multimap::size_type, 26629: _Allocator) 26629: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 26629: 26629: template> 26629: unordered_multimap(initializer_list>, _Allocator) 26629: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multimap(initializer_list>, 26629: unordered_multimap::size_type, 26629: _Hash, _Allocator) 26629: -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 26629: unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: template 26629: inline void 26629: swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 26629: unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: template 26629: inline bool 26629: operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 26629: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 26629: { return __x._M_h._M_equal(__y._M_h); } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 26629: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: inline bool 26629: operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 26629: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 26629: { return __x._M_h._M_equal(__y._M_h); } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 26629: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Hash_merge_helper< 26629: std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, 26629: _Hash2, _Eq2> 26629: { 26629: private: 26629: template 26629: using unordered_map = std::unordered_map<_Tp...>; 26629: template 26629: using unordered_multimap = std::unordered_multimap<_Tp...>; 26629: 26629: friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; 26629: 26629: static auto& 26629: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 26629: { return __map._M_h; } 26629: 26629: static auto& 26629: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 26629: { return __map._M_h; } 26629: }; 26629: 26629: 26629: template 26629: struct _Hash_merge_helper< 26629: std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, 26629: _Hash2, _Eq2> 26629: { 26629: private: 26629: template 26629: using unordered_map = std::unordered_map<_Tp...>; 26629: template 26629: using unordered_multimap = std::unordered_multimap<_Tp...>; 26629: 26629: friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; 26629: 26629: static auto& 26629: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 26629: { return __map._M_h; } 26629: 26629: static auto& 26629: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 26629: { return __map._M_h; } 26629: }; 26629: 26629: 26629: 26629: } 26629: # 48 "/usr/include/c++/12/unordered_map" 2 3 26629: 26629: # 1 "/usr/include/c++/12/bits/erase_if.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/erase_if.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/erase_if.h" 3 26629: 26629: 26629: 26629: 26629: 26629: namespace std 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace __detail 26629: { 26629: template 26629: typename _Container::size_type 26629: __erase_nodes_if(_Container& __cont, const _UnsafeContainer& __ucont, 26629: _Predicate __pred) 26629: { 26629: typename _Container::size_type __num = 0; 26629: for (auto __iter = __ucont.begin(), __last = __ucont.end(); 26629: __iter != __last;) 26629: { 26629: if (__pred(*__iter)) 26629: { 26629: __iter = __cont.erase(__iter); 26629: ++__num; 26629: } 26629: else 26629: ++__iter; 26629: } 26629: return __num; 26629: } 26629: } 26629: 26629: 26629: } 26629: # 50 "/usr/include/c++/12/unordered_map" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace pmr 26629: { 26629: template class polymorphic_allocator; 26629: template, 26629: typename _Pred = std::equal_to<_Key>> 26629: using unordered_map 26629: = std::unordered_map<_Key, _Tp, _Hash, _Pred, 26629: polymorphic_allocator>>; 26629: template, 26629: typename _Pred = std::equal_to<_Key>> 26629: using unordered_multimap 26629: = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, 26629: polymorphic_allocator>>; 26629: } 26629: 26629: } 26629: # 62 "/usr/include/c++/12/functional" 2 3 26629: # 1 "/usr/include/c++/12/vector" 1 3 26629: # 58 "/usr/include/c++/12/vector" 3 26629: 26629: # 59 "/usr/include/c++/12/vector" 3 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/stl_vector.h" 1 3 26629: # 78 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: template 26629: struct _Vector_base 26629: { 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind<_Tp>::other _Tp_alloc_type; 26629: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 26629: pointer; 26629: 26629: struct _Vector_impl_data 26629: { 26629: pointer _M_start; 26629: pointer _M_finish; 26629: pointer _M_end_of_storage; 26629: 26629: 26629: _Vector_impl_data() noexcept 26629: : _M_start(), _M_finish(), _M_end_of_storage() 26629: { } 26629: 26629: 26629: 26629: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 26629: : _M_start(__x._M_start), _M_finish(__x._M_finish), 26629: _M_end_of_storage(__x._M_end_of_storage) 26629: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 26629: 26629: 26629: 26629: void 26629: _M_copy_data(_Vector_impl_data const& __x) noexcept 26629: { 26629: _M_start = __x._M_start; 26629: _M_finish = __x._M_finish; 26629: _M_end_of_storage = __x._M_end_of_storage; 26629: } 26629: 26629: 26629: void 26629: _M_swap_data(_Vector_impl_data& __x) noexcept 26629: { 26629: 26629: 26629: _Vector_impl_data __tmp; 26629: __tmp._M_copy_data(*this); 26629: _M_copy_data(__x); 26629: __x._M_copy_data(__tmp); 26629: } 26629: }; 26629: 26629: struct _Vector_impl 26629: : public _Tp_alloc_type, public _Vector_impl_data 26629: { 26629: 26629: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 26629: 26629: : _Tp_alloc_type() 26629: { } 26629: 26629: 26629: _Vector_impl(_Tp_alloc_type const& __a) noexcept 26629: : _Tp_alloc_type(__a) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: _Vector_impl(_Vector_impl&& __x) noexcept 26629: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 26629: { } 26629: 26629: 26629: _Vector_impl(_Tp_alloc_type&& __a) noexcept 26629: : _Tp_alloc_type(std::move(__a)) 26629: { } 26629: 26629: 26629: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 26629: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 26629: { } 26629: # 291 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: }; 26629: 26629: public: 26629: typedef _Alloc allocator_type; 26629: 26629: 26629: _Tp_alloc_type& 26629: _M_get_Tp_allocator() noexcept 26629: { return this->_M_impl; } 26629: 26629: 26629: const _Tp_alloc_type& 26629: _M_get_Tp_allocator() const noexcept 26629: { return this->_M_impl; } 26629: 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return allocator_type(_M_get_Tp_allocator()); } 26629: 26629: 26629: _Vector_base() = default; 26629: 26629: 26629: 26629: 26629: 26629: _Vector_base(const allocator_type& __a) noexcept 26629: : _M_impl(__a) { } 26629: 26629: 26629: 26629: 26629: _Vector_base(size_t __n) 26629: : _M_impl() 26629: { _M_create_storage(__n); } 26629: 26629: 26629: 26629: _Vector_base(size_t __n, const allocator_type& __a) 26629: : _M_impl(__a) 26629: { _M_create_storage(__n); } 26629: 26629: 26629: _Vector_base(_Vector_base&&) = default; 26629: 26629: 26629: 26629: 26629: _Vector_base(_Tp_alloc_type&& __a) noexcept 26629: : _M_impl(std::move(__a)) { } 26629: 26629: 26629: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 26629: : _M_impl(__a) 26629: { 26629: if (__x.get_allocator() == __a) 26629: this->_M_impl._M_swap_data(__x._M_impl); 26629: else 26629: { 26629: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 26629: _M_create_storage(__n); 26629: } 26629: } 26629: 26629: 26629: 26629: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 26629: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 26629: { } 26629: 26629: 26629: 26629: ~_Vector_base() noexcept 26629: { 26629: _M_deallocate(_M_impl._M_start, 26629: _M_impl._M_end_of_storage - _M_impl._M_start); 26629: } 26629: 26629: public: 26629: _Vector_impl _M_impl; 26629: 26629: 26629: pointer 26629: _M_allocate(size_t __n) 26629: { 26629: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 26629: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 26629: } 26629: 26629: 26629: void 26629: _M_deallocate(pointer __p, size_t __n) 26629: { 26629: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 26629: if (__p) 26629: _Tr::deallocate(_M_impl, __p, __n); 26629: } 26629: 26629: protected: 26629: 26629: void 26629: _M_create_storage(size_t __n) 26629: { 26629: this->_M_impl._M_start = this->_M_allocate(__n); 26629: this->_M_impl._M_finish = this->_M_impl._M_start; 26629: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 26629: } 26629: }; 26629: # 422 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: template > 26629: class vector : protected _Vector_base<_Tp, _Alloc> 26629: { 26629: # 435 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: static_assert(is_same::type, _Tp>::value, 26629: "std::vector must have a non-const, non-volatile value_type"); 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef _Vector_base<_Tp, _Alloc> _Base; 26629: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 26629: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 26629: 26629: public: 26629: typedef _Tp value_type; 26629: typedef typename _Base::pointer pointer; 26629: typedef typename _Alloc_traits::const_pointer const_pointer; 26629: typedef typename _Alloc_traits::reference reference; 26629: typedef typename _Alloc_traits::const_reference const_reference; 26629: typedef __gnu_cxx::__normal_iterator iterator; 26629: typedef __gnu_cxx::__normal_iterator 26629: const_iterator; 26629: typedef std::reverse_iterator const_reverse_iterator; 26629: typedef std::reverse_iterator reverse_iterator; 26629: typedef size_t size_type; 26629: typedef ptrdiff_t difference_type; 26629: typedef _Alloc allocator_type; 26629: 26629: private: 26629: 26629: static constexpr bool 26629: _S_nothrow_relocate(true_type) 26629: { 26629: return noexcept(std::__relocate_a(std::declval(), 26629: std::declval(), 26629: std::declval(), 26629: std::declval<_Tp_alloc_type&>())); 26629: } 26629: 26629: static constexpr bool 26629: _S_nothrow_relocate(false_type) 26629: { return false; } 26629: 26629: static constexpr bool 26629: _S_use_relocate() 26629: { 26629: 26629: 26629: 26629: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 26629: } 26629: 26629: static pointer 26629: _S_do_relocate(pointer __first, pointer __last, pointer __result, 26629: _Tp_alloc_type& __alloc, true_type) noexcept 26629: { 26629: return std::__relocate_a(__first, __last, __result, __alloc); 26629: } 26629: 26629: static pointer 26629: _S_do_relocate(pointer, pointer, pointer __result, 26629: _Tp_alloc_type&, false_type) noexcept 26629: { return __result; } 26629: 26629: static pointer 26629: _S_relocate(pointer __first, pointer __last, pointer __result, 26629: _Tp_alloc_type& __alloc) noexcept 26629: { 26629: 26629: 26629: return std::__relocate_a(__first, __last, __result, __alloc); 26629: 26629: 26629: 26629: 26629: } 26629: 26629: 26629: protected: 26629: using _Base::_M_allocate; 26629: using _Base::_M_deallocate; 26629: using _Base::_M_impl; 26629: using _Base::_M_get_Tp_allocator; 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: vector() = default; 26629: # 535 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: explicit 26629: 26629: vector(const allocator_type& __a) noexcept 26629: : _Base(__a) { } 26629: # 549 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: explicit 26629: 26629: vector(size_type __n, const allocator_type& __a = allocator_type()) 26629: : _Base(_S_check_init_len(__n, __a), __a) 26629: { _M_default_initialize(__n); } 26629: # 563 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: vector(size_type __n, const value_type& __value, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(_S_check_init_len(__n, __a), __a) 26629: { _M_fill_initialize(__n, __value); } 26629: # 595 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: vector(const vector& __x) 26629: : _Base(__x.size(), 26629: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 26629: { 26629: this->_M_impl._M_finish = 26629: std::__uninitialized_copy_a(__x.begin(), __x.end(), 26629: this->_M_impl._M_start, 26629: _M_get_Tp_allocator()); 26629: } 26629: # 615 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: vector(vector&&) noexcept = default; 26629: 26629: 26629: 26629: vector(const vector& __x, const __type_identity_t& __a) 26629: : _Base(__x.size(), __a) 26629: { 26629: this->_M_impl._M_finish = 26629: std::__uninitialized_copy_a(__x.begin(), __x.end(), 26629: this->_M_impl._M_start, 26629: _M_get_Tp_allocator()); 26629: } 26629: 26629: private: 26629: 26629: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 26629: : _Base(__m, std::move(__rv)) 26629: { } 26629: 26629: 26629: vector(vector&& __rv, const allocator_type& __m, false_type) 26629: : _Base(__m) 26629: { 26629: if (__rv.get_allocator() == __m) 26629: this->_M_impl._M_swap_data(__rv._M_impl); 26629: else if (!__rv.empty()) 26629: { 26629: this->_M_create_storage(__rv.size()); 26629: this->_M_impl._M_finish = 26629: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 26629: this->_M_impl._M_start, 26629: _M_get_Tp_allocator()); 26629: __rv.clear(); 26629: } 26629: } 26629: 26629: public: 26629: 26629: 26629: vector(vector&& __rv, const __type_identity_t& __m) 26629: noexcept( noexcept( 26629: vector(std::declval(), std::declval(), 26629: std::declval())) ) 26629: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 26629: { } 26629: # 672 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: vector(initializer_list __l, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(__a) 26629: { 26629: _M_range_initialize(__l.begin(), __l.end(), 26629: random_access_iterator_tag()); 26629: } 26629: # 699 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: template> 26629: 26629: vector(_InputIterator __first, _InputIterator __last, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(__a) 26629: { 26629: _M_range_initialize(__first, __last, 26629: std::__iterator_category(__first)); 26629: } 26629: # 727 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: ~vector() noexcept 26629: { 26629: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: ; 26629: } 26629: # 744 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: vector& 26629: operator=(const vector& __x); 26629: # 759 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: vector& 26629: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 26629: { 26629: constexpr bool __move_storage = 26629: _Alloc_traits::_S_propagate_on_move_assign() 26629: || _Alloc_traits::_S_always_equal(); 26629: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 26629: return *this; 26629: } 26629: # 781 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: vector& 26629: operator=(initializer_list __l) 26629: { 26629: this->_M_assign_aux(__l.begin(), __l.end(), 26629: random_access_iterator_tag()); 26629: return *this; 26629: } 26629: # 801 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: void 26629: assign(size_type __n, const value_type& __val) 26629: { _M_fill_assign(__n, __val); } 26629: # 819 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: template> 26629: 26629: void 26629: assign(_InputIterator __first, _InputIterator __last) 26629: { _M_assign_dispatch(__first, __last, __false_type()); } 26629: # 848 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: void 26629: assign(initializer_list __l) 26629: { 26629: this->_M_assign_aux(__l.begin(), __l.end(), 26629: random_access_iterator_tag()); 26629: } 26629: 26629: 26629: 26629: using _Base::get_allocator; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: iterator 26629: begin() noexcept 26629: { return iterator(this->_M_impl._M_start); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: begin() const noexcept 26629: { return const_iterator(this->_M_impl._M_start); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: iterator 26629: end() noexcept 26629: { return iterator(this->_M_impl._M_finish); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: end() const noexcept 26629: { return const_iterator(this->_M_impl._M_finish); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reverse_iterator 26629: rbegin() noexcept 26629: { return reverse_iterator(end()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: rbegin() const noexcept 26629: { return const_reverse_iterator(end()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reverse_iterator 26629: rend() noexcept 26629: { return reverse_iterator(begin()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: rend() const noexcept 26629: { return const_reverse_iterator(begin()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: cbegin() const noexcept 26629: { return const_iterator(this->_M_impl._M_start); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: cend() const noexcept 26629: { return const_iterator(this->_M_impl._M_finish); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: crbegin() const noexcept 26629: { return const_reverse_iterator(end()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: crend() const noexcept 26629: { return const_reverse_iterator(begin()); } 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: size_type 26629: size() const noexcept 26629: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 26629: 26629: 26629: [[__nodiscard__]] 26629: size_type 26629: max_size() const noexcept 26629: { return _S_max_size(_M_get_Tp_allocator()); } 26629: # 1006 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: void 26629: resize(size_type __new_size) 26629: { 26629: if (__new_size > size()) 26629: _M_default_append(__new_size - size()); 26629: else if (__new_size < size()) 26629: _M_erase_at_end(this->_M_impl._M_start + __new_size); 26629: } 26629: # 1027 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: void 26629: resize(size_type __new_size, const value_type& __x) 26629: { 26629: if (__new_size > size()) 26629: _M_fill_insert(end(), __new_size - size(), __x); 26629: else if (__new_size < size()) 26629: _M_erase_at_end(this->_M_impl._M_start + __new_size); 26629: } 26629: # 1061 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: void 26629: shrink_to_fit() 26629: { _M_shrink_to_fit(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: size_type 26629: capacity() const noexcept 26629: { return size_type(this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_start); } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: bool 26629: empty() const noexcept 26629: { return begin() == end(); } 26629: # 1103 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: void 26629: reserve(size_type __n); 26629: # 1119 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: [[__nodiscard__]] 26629: reference 26629: operator[](size_type __n) noexcept 26629: { 26629: ; 26629: return *(this->_M_impl._M_start + __n); 26629: } 26629: # 1138 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: [[__nodiscard__]] 26629: const_reference 26629: operator[](size_type __n) const noexcept 26629: { 26629: ; 26629: return *(this->_M_impl._M_start + __n); 26629: } 26629: 26629: protected: 26629: 26629: 26629: void 26629: _M_range_check(size_type __n) const 26629: { 26629: if (__n >= this->size()) 26629: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 26629: 26629: , 26629: __n, this->size()); 26629: } 26629: 26629: public: 26629: # 1171 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: reference 26629: at(size_type __n) 26629: { 26629: _M_range_check(__n); 26629: return (*this)[__n]; 26629: } 26629: # 1190 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: const_reference 26629: at(size_type __n) const 26629: { 26629: _M_range_check(__n); 26629: return (*this)[__n]; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reference 26629: front() noexcept 26629: { 26629: ; 26629: return *begin(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: front() const noexcept 26629: { 26629: ; 26629: return *begin(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reference 26629: back() noexcept 26629: { 26629: ; 26629: return *(end() - 1); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: back() const noexcept 26629: { 26629: ; 26629: return *(end() - 1); 26629: } 26629: # 1253 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: [[__nodiscard__]] 26629: _Tp* 26629: data() noexcept 26629: { return _M_data_ptr(this->_M_impl._M_start); } 26629: 26629: [[__nodiscard__]] 26629: const _Tp* 26629: data() const noexcept 26629: { return _M_data_ptr(this->_M_impl._M_start); } 26629: # 1274 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: void 26629: push_back(const value_type& __x) 26629: { 26629: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 26629: { 26629: ; 26629: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 26629: __x); 26629: ++this->_M_impl._M_finish; 26629: ; 26629: } 26629: else 26629: _M_realloc_insert(end(), __x); 26629: } 26629: 26629: 26629: 26629: void 26629: push_back(value_type&& __x) 26629: { emplace_back(std::move(__x)); } 26629: 26629: template 26629: 26629: 26629: reference 26629: 26629: 26629: 26629: emplace_back(_Args&&... __args); 26629: # 1315 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: void 26629: pop_back() noexcept 26629: { 26629: ; 26629: --this->_M_impl._M_finish; 26629: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 26629: ; 26629: } 26629: # 1338 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: template 26629: 26629: iterator 26629: emplace(const_iterator __position, _Args&&... __args) 26629: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 26629: # 1355 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: iterator 26629: insert(const_iterator __position, const value_type& __x); 26629: # 1386 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: iterator 26629: insert(const_iterator __position, value_type&& __x) 26629: { return _M_insert_rval(__position, std::move(__x)); } 26629: # 1404 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: iterator 26629: insert(const_iterator __position, initializer_list __l) 26629: { 26629: auto __offset = __position - cbegin(); 26629: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 26629: std::random_access_iterator_tag()); 26629: return begin() + __offset; 26629: } 26629: # 1430 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: iterator 26629: insert(const_iterator __position, size_type __n, const value_type& __x) 26629: { 26629: difference_type __offset = __position - cbegin(); 26629: _M_fill_insert(begin() + __offset, __n, __x); 26629: return begin() + __offset; 26629: } 26629: # 1473 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: template> 26629: 26629: iterator 26629: insert(const_iterator __position, _InputIterator __first, 26629: _InputIterator __last) 26629: { 26629: difference_type __offset = __position - cbegin(); 26629: _M_insert_dispatch(begin() + __offset, 26629: __first, __last, __false_type()); 26629: return begin() + __offset; 26629: } 26629: # 1526 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: iterator 26629: 26629: erase(const_iterator __position) 26629: { return _M_erase(begin() + (__position - cbegin())); } 26629: # 1554 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: iterator 26629: 26629: erase(const_iterator __first, const_iterator __last) 26629: { 26629: const auto __beg = begin(); 26629: const auto __cbeg = cbegin(); 26629: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 26629: } 26629: # 1579 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: 26629: void 26629: swap(vector& __x) noexcept 26629: { 26629: 26629: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) __builtin_unreachable(); } while (false) 26629: ; 26629: 26629: this->_M_impl._M_swap_data(__x._M_impl); 26629: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 26629: __x._M_get_Tp_allocator()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: clear() noexcept 26629: { _M_erase_at_end(this->_M_impl._M_start); } 26629: 26629: protected: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: pointer 26629: _M_allocate_and_copy(size_type __n, 26629: _ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: pointer __result = this->_M_allocate(__n); 26629: try 26629: { 26629: std::__uninitialized_copy_a(__first, __last, __result, 26629: _M_get_Tp_allocator()); 26629: return __result; 26629: } 26629: catch(...) 26629: { 26629: _M_deallocate(__result, __n); 26629: throw; 26629: } 26629: } 26629: # 1659 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: template 26629: 26629: void 26629: _M_range_initialize(_InputIterator __first, _InputIterator __last, 26629: std::input_iterator_tag) 26629: { 26629: try { 26629: for (; __first != __last; ++__first) 26629: 26629: emplace_back(*__first); 26629: 26629: 26629: 26629: } catch(...) { 26629: clear(); 26629: throw; 26629: } 26629: } 26629: 26629: 26629: template 26629: 26629: void 26629: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 26629: std::forward_iterator_tag) 26629: { 26629: const size_type __n = std::distance(__first, __last); 26629: this->_M_impl._M_start 26629: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 26629: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 26629: this->_M_impl._M_finish = 26629: std::__uninitialized_copy_a(__first, __last, 26629: this->_M_impl._M_start, 26629: _M_get_Tp_allocator()); 26629: } 26629: 26629: 26629: 26629: 26629: void 26629: _M_fill_initialize(size_type __n, const value_type& __value) 26629: { 26629: this->_M_impl._M_finish = 26629: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 26629: _M_get_Tp_allocator()); 26629: } 26629: 26629: 26629: 26629: 26629: void 26629: _M_default_initialize(size_type __n) 26629: { 26629: this->_M_impl._M_finish = 26629: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 26629: _M_get_Tp_allocator()); 26629: } 26629: # 1725 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: template 26629: 26629: void 26629: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 26629: { _M_fill_assign(__n, __val); } 26629: 26629: 26629: template 26629: 26629: void 26629: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 26629: __false_type) 26629: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 26629: 26629: 26629: template 26629: 26629: void 26629: _M_assign_aux(_InputIterator __first, _InputIterator __last, 26629: std::input_iterator_tag); 26629: 26629: 26629: template 26629: 26629: void 26629: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 26629: std::forward_iterator_tag); 26629: 26629: 26629: 26629: 26629: void 26629: _M_fill_assign(size_type __n, const value_type& __val); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 26629: __true_type) 26629: { _M_fill_insert(__pos, __n, __val); } 26629: 26629: 26629: template 26629: 26629: void 26629: _M_insert_dispatch(iterator __pos, _InputIterator __first, 26629: _InputIterator __last, __false_type) 26629: { 26629: _M_range_insert(__pos, __first, __last, 26629: std::__iterator_category(__first)); 26629: } 26629: 26629: 26629: template 26629: 26629: void 26629: _M_range_insert(iterator __pos, _InputIterator __first, 26629: _InputIterator __last, std::input_iterator_tag); 26629: 26629: 26629: template 26629: 26629: void 26629: _M_range_insert(iterator __pos, _ForwardIterator __first, 26629: _ForwardIterator __last, std::forward_iterator_tag); 26629: 26629: 26629: 26629: 26629: void 26629: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 26629: 26629: 26629: 26629: 26629: void 26629: _M_default_append(size_type __n); 26629: 26629: 26629: bool 26629: _M_shrink_to_fit(); 26629: # 1824 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: struct _Temporary_value 26629: { 26629: template 26629: explicit 26629: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 26629: { 26629: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: 26629: ~_Temporary_value() 26629: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 26629: 26629: value_type& 26629: _M_val() noexcept { return _M_storage._M_val; } 26629: 26629: private: 26629: _Tp* 26629: _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } 26629: 26629: union _Storage 26629: { 26629: constexpr _Storage() : _M_byte() { } 26629: ~_Storage() { } 26629: _Storage& operator=(const _Storage&) = delete; 26629: unsigned char _M_byte; 26629: _Tp _M_val; 26629: }; 26629: 26629: vector* _M_this; 26629: _Storage _M_storage; 26629: }; 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: _M_insert_aux(iterator __position, _Arg&& __arg); 26629: 26629: template 26629: 26629: void 26629: _M_realloc_insert(iterator __position, _Args&&... __args); 26629: 26629: 26629: 26629: iterator 26629: _M_insert_rval(const_iterator __position, value_type&& __v); 26629: 26629: 26629: template 26629: 26629: iterator 26629: _M_emplace_aux(const_iterator __position, _Args&&... __args); 26629: 26629: 26629: 26629: iterator 26629: _M_emplace_aux(const_iterator __position, value_type&& __v) 26629: { return _M_insert_rval(__position, std::move(__v)); } 26629: 26629: 26629: 26629: 26629: size_type 26629: _M_check_len(size_type __n, const char* __s) const 26629: { 26629: if (max_size() - size() < __n) 26629: __throw_length_error((__s)); 26629: 26629: const size_type __len = size() + (std::max)(size(), __n); 26629: return (__len < size() || __len > max_size()) ? max_size() : __len; 26629: } 26629: 26629: 26629: static size_type 26629: _S_check_init_len(size_type __n, const allocator_type& __a) 26629: { 26629: if (__n > _S_max_size(_Tp_alloc_type(__a))) 26629: __throw_length_error( 26629: ("cannot create std::vector larger than max_size()")); 26629: return __n; 26629: } 26629: 26629: static size_type 26629: _S_max_size(const _Tp_alloc_type& __a) noexcept 26629: { 26629: 26629: 26629: 26629: const size_t __diffmax 26629: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 26629: const size_t __allocmax = _Alloc_traits::max_size(__a); 26629: return (std::min)(__diffmax, __allocmax); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: _M_erase_at_end(pointer __pos) noexcept 26629: { 26629: if (size_type __n = this->_M_impl._M_finish - __pos) 26629: { 26629: std::_Destroy(__pos, this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish = __pos; 26629: ; 26629: } 26629: } 26629: 26629: 26629: iterator 26629: _M_erase(iterator __position); 26629: 26629: 26629: iterator 26629: _M_erase(iterator __first, iterator __last); 26629: 26629: 26629: private: 26629: 26629: 26629: 26629: 26629: void 26629: _M_move_assign(vector&& __x, true_type) noexcept 26629: { 26629: vector __tmp(get_allocator()); 26629: this->_M_impl._M_swap_data(__x._M_impl); 26629: __tmp._M_impl._M_swap_data(__x._M_impl); 26629: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 26629: } 26629: 26629: 26629: 26629: 26629: void 26629: _M_move_assign(vector&& __x, false_type) 26629: { 26629: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 26629: _M_move_assign(std::move(__x), true_type()); 26629: else 26629: { 26629: 26629: 26629: this->_M_assign_aux(std::make_move_iterator(__x.begin()), 26629: std::make_move_iterator(__x.end()), 26629: std::random_access_iterator_tag()); 26629: __x.clear(); 26629: } 26629: } 26629: 26629: 26629: template 26629: 26629: _Up* 26629: _M_data_ptr(_Up* __ptr) const noexcept 26629: { return __ptr; } 26629: 26629: 26629: template 26629: 26629: typename std::pointer_traits<_Ptr>::element_type* 26629: _M_data_ptr(_Ptr __ptr) const 26629: { return empty() ? nullptr : std::__to_address(__ptr); } 26629: # 2010 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: }; 26629: 26629: 26629: template::value_type, 26629: typename _Allocator = allocator<_ValT>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireAllocator<_Allocator>> 26629: vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) 26629: -> vector<_ValT, _Allocator>; 26629: # 2032 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: template 26629: 26629: inline bool 26629: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 26629: { return (__x.size() == __y.size() 26629: && std::equal(__x.begin(), __x.end(), __y.begin())); } 26629: # 2072 "/usr/include/c++/12/bits/stl_vector.h" 3 26629: template 26629: inline bool 26629: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 26629: { return std::lexicographical_compare(__x.begin(), __x.end(), 26629: __y.begin(), __y.end()); } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: inline bool 26629: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 26629: { return __y < __x; } 26629: 26629: 26629: template 26629: inline bool 26629: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 26629: { return !(__y < __x); } 26629: 26629: 26629: template 26629: inline bool 26629: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: 26629: template 26629: 26629: inline void 26629: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: 26629: 26629: 26629: namespace __detail::__variant 26629: { 26629: template struct _Never_valueless_alt; 26629: 26629: 26629: 26629: template 26629: struct _Never_valueless_alt> 26629: : std::is_nothrow_move_assignable> 26629: { }; 26629: } 26629: 26629: 26629: 26629: } 26629: # 65 "/usr/include/c++/12/vector" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_bvector.h" 1 3 26629: # 64 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: typedef unsigned long _Bit_type; 26629: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 26629: 26629: __attribute__((__nonnull__)) 26629: 26629: void 26629: __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; 26629: 26629: 26629: 26629: struct _Bit_reference 26629: { 26629: _Bit_type * _M_p; 26629: _Bit_type _M_mask; 26629: 26629: 26629: _Bit_reference(_Bit_type * __x, _Bit_type __y) 26629: : _M_p(__x), _M_mask(__y) { } 26629: 26629: 26629: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 26629: 26629: 26629: _Bit_reference(const _Bit_reference&) = default; 26629: 26629: 26629: [[__nodiscard__]] 26629: operator bool() const noexcept 26629: { return !!(*_M_p & _M_mask); } 26629: 26629: 26629: _Bit_reference& 26629: operator=(bool __x) noexcept 26629: { 26629: if (__x) 26629: *_M_p |= _M_mask; 26629: else 26629: *_M_p &= ~_M_mask; 26629: return *this; 26629: } 26629: 26629: 26629: _Bit_reference& 26629: operator=(const _Bit_reference& __x) noexcept 26629: { return *this = bool(__x); } 26629: 26629: [[__nodiscard__]] 26629: bool 26629: operator==(const _Bit_reference& __x) const 26629: { return bool(*this) == bool(__x); } 26629: 26629: [[__nodiscard__]] 26629: bool 26629: operator<(const _Bit_reference& __x) const 26629: { return !bool(*this) && bool(__x); } 26629: 26629: 26629: void 26629: flip() noexcept 26629: { *_M_p ^= _M_mask; } 26629: 26629: 26629: 26629: friend void 26629: swap(_Bit_reference __x, _Bit_reference __y) noexcept 26629: { 26629: bool __tmp = __x; 26629: __x = __y; 26629: __y = __tmp; 26629: } 26629: 26629: 26629: friend void 26629: swap(_Bit_reference __x, bool& __y) noexcept 26629: { 26629: bool __tmp = __x; 26629: __x = __y; 26629: __y = __tmp; 26629: } 26629: 26629: 26629: friend void 26629: swap(bool& __x, _Bit_reference __y) noexcept 26629: { 26629: bool __tmp = __x; 26629: __x = __y; 26629: __y = __tmp; 26629: } 26629: 26629: }; 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: struct _Bit_iterator_base 26629: : public std::iterator 26629: { 26629: _Bit_type * _M_p; 26629: unsigned int _M_offset; 26629: 26629: 26629: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 26629: : _M_p(__x), _M_offset(__y) { } 26629: 26629: 26629: void 26629: _M_bump_up() 26629: { 26629: if (_M_offset++ == int(_S_word_bit) - 1) 26629: { 26629: _M_offset = 0; 26629: ++_M_p; 26629: } 26629: } 26629: 26629: 26629: void 26629: _M_bump_down() 26629: { 26629: if (_M_offset-- == 0) 26629: { 26629: _M_offset = int(_S_word_bit) - 1; 26629: --_M_p; 26629: } 26629: } 26629: 26629: 26629: void 26629: _M_incr(ptrdiff_t __i) 26629: { 26629: difference_type __n = __i + _M_offset; 26629: _M_p += __n / int(_S_word_bit); 26629: __n = __n % int(_S_word_bit); 26629: if (__n < 0) 26629: { 26629: __n += int(_S_word_bit); 26629: --_M_p; 26629: } 26629: _M_offset = static_cast(__n); 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 26629: { return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; } 26629: # 225 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: [[__nodiscard__]] 26629: friend bool 26629: operator<(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 26629: { 26629: return __x._M_p < __y._M_p 26629: || (__x._M_p == __y._M_p && __x._M_offset < __y._M_offset); 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator!=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 26629: { return !(__x == __y); } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 26629: { return __y < __x; } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator<=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 26629: { return !(__y < __x); } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator>=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: friend ptrdiff_t 26629: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 26629: { 26629: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 26629: + __x._M_offset - __y._M_offset); 26629: } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: struct _Bit_iterator : public _Bit_iterator_base 26629: { 26629: typedef _Bit_reference reference; 26629: 26629: 26629: 26629: typedef _Bit_reference* pointer; 26629: 26629: typedef _Bit_iterator iterator; 26629: 26629: 26629: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 26629: 26629: 26629: _Bit_iterator(_Bit_type * __x, unsigned int __y) 26629: : _Bit_iterator_base(__x, __y) { } 26629: 26629: 26629: iterator 26629: _M_const_cast() const 26629: { return *this; } 26629: 26629: [[__nodiscard__]] 26629: reference 26629: operator*() const 26629: { return reference(_M_p, 1UL << _M_offset); } 26629: 26629: 26629: iterator& 26629: operator++() 26629: { 26629: _M_bump_up(); 26629: return *this; 26629: } 26629: 26629: 26629: iterator 26629: operator++(int) 26629: { 26629: iterator __tmp = *this; 26629: _M_bump_up(); 26629: return __tmp; 26629: } 26629: 26629: 26629: iterator& 26629: operator--() 26629: { 26629: _M_bump_down(); 26629: return *this; 26629: } 26629: 26629: 26629: iterator 26629: operator--(int) 26629: { 26629: iterator __tmp = *this; 26629: _M_bump_down(); 26629: return __tmp; 26629: } 26629: 26629: 26629: iterator& 26629: operator+=(difference_type __i) 26629: { 26629: _M_incr(__i); 26629: return *this; 26629: } 26629: 26629: 26629: iterator& 26629: operator-=(difference_type __i) 26629: { 26629: *this += -__i; 26629: return *this; 26629: } 26629: 26629: [[__nodiscard__]] 26629: reference 26629: operator[](difference_type __i) const 26629: { return *(*this + __i); } 26629: 26629: [[__nodiscard__]] 26629: friend iterator 26629: operator+(const iterator& __x, difference_type __n) 26629: { 26629: iterator __tmp = __x; 26629: __tmp += __n; 26629: return __tmp; 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend iterator 26629: operator+(difference_type __n, const iterator& __x) 26629: { return __x + __n; } 26629: 26629: [[__nodiscard__]] 26629: friend iterator 26629: operator-(const iterator& __x, difference_type __n) 26629: { 26629: iterator __tmp = __x; 26629: __tmp -= __n; 26629: return __tmp; 26629: } 26629: }; 26629: 26629: struct _Bit_const_iterator : public _Bit_iterator_base 26629: { 26629: typedef bool reference; 26629: typedef bool const_reference; 26629: 26629: 26629: 26629: typedef const bool* pointer; 26629: 26629: typedef _Bit_const_iterator const_iterator; 26629: 26629: 26629: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 26629: 26629: 26629: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 26629: : _Bit_iterator_base(__x, __y) { } 26629: 26629: 26629: _Bit_const_iterator(const _Bit_iterator& __x) 26629: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 26629: 26629: 26629: _Bit_iterator 26629: _M_const_cast() const 26629: { return _Bit_iterator(_M_p, _M_offset); } 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: operator*() const 26629: { return _Bit_reference(_M_p, 1UL << _M_offset); } 26629: 26629: 26629: const_iterator& 26629: operator++() 26629: { 26629: _M_bump_up(); 26629: return *this; 26629: } 26629: 26629: 26629: const_iterator 26629: operator++(int) 26629: { 26629: const_iterator __tmp = *this; 26629: _M_bump_up(); 26629: return __tmp; 26629: } 26629: 26629: 26629: const_iterator& 26629: operator--() 26629: { 26629: _M_bump_down(); 26629: return *this; 26629: } 26629: 26629: 26629: const_iterator 26629: operator--(int) 26629: { 26629: const_iterator __tmp = *this; 26629: _M_bump_down(); 26629: return __tmp; 26629: } 26629: 26629: 26629: const_iterator& 26629: operator+=(difference_type __i) 26629: { 26629: _M_incr(__i); 26629: return *this; 26629: } 26629: 26629: 26629: const_iterator& 26629: operator-=(difference_type __i) 26629: { 26629: *this += -__i; 26629: return *this; 26629: } 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: operator[](difference_type __i) const 26629: { return *(*this + __i); } 26629: 26629: [[__nodiscard__]] 26629: friend const_iterator 26629: operator+(const const_iterator& __x, difference_type __n) 26629: { 26629: const_iterator __tmp = __x; 26629: __tmp += __n; 26629: return __tmp; 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend const_iterator 26629: operator-(const const_iterator& __x, difference_type __n) 26629: { 26629: const_iterator __tmp = __x; 26629: __tmp -= __n; 26629: return __tmp; 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend const_iterator 26629: operator+(difference_type __n, const const_iterator& __x) 26629: { return __x + __n; } 26629: }; 26629: 26629: template 26629: struct _Bvector_base 26629: { 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind<_Bit_type>::other _Bit_alloc_type; 26629: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 26629: _Bit_alloc_traits; 26629: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 26629: 26629: struct _Bvector_impl_data 26629: { 26629: 26629: _Bit_iterator _M_start; 26629: # 502 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: _Bit_iterator _M_finish; 26629: _Bit_pointer _M_end_of_storage; 26629: 26629: 26629: _Bvector_impl_data() noexcept 26629: : _M_start(), _M_finish(), _M_end_of_storage() 26629: { } 26629: 26629: 26629: _Bvector_impl_data(const _Bvector_impl_data&) = default; 26629: 26629: _Bvector_impl_data& 26629: operator=(const _Bvector_impl_data&) = default; 26629: 26629: 26629: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 26629: : _Bvector_impl_data(__x) 26629: { __x._M_reset(); } 26629: 26629: 26629: void 26629: _M_move_data(_Bvector_impl_data&& __x) noexcept 26629: { 26629: *this = __x; 26629: __x._M_reset(); 26629: } 26629: 26629: 26629: 26629: void 26629: _M_reset() noexcept 26629: { *this = _Bvector_impl_data(); } 26629: 26629: 26629: void 26629: _M_swap_data(_Bvector_impl_data& __x) noexcept 26629: { 26629: 26629: 26629: std::swap(*this, __x); 26629: } 26629: }; 26629: 26629: struct _Bvector_impl 26629: : public _Bit_alloc_type, public _Bvector_impl_data 26629: { 26629: 26629: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 26629: 26629: : _Bit_alloc_type() 26629: { } 26629: 26629: 26629: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 26629: : _Bit_alloc_type(__a) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: _Bvector_impl(_Bvector_impl&& __x) noexcept 26629: : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) 26629: { } 26629: 26629: 26629: _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept 26629: : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) 26629: { } 26629: 26629: 26629: 26629: _Bit_type* 26629: _M_end_addr() const noexcept 26629: { 26629: if (this->_M_end_of_storage) 26629: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 26629: return 0; 26629: } 26629: }; 26629: 26629: public: 26629: typedef _Alloc allocator_type; 26629: 26629: 26629: _Bit_alloc_type& 26629: _M_get_Bit_allocator() noexcept 26629: { return this->_M_impl; } 26629: 26629: 26629: const _Bit_alloc_type& 26629: _M_get_Bit_allocator() const noexcept 26629: { return this->_M_impl; } 26629: 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return allocator_type(_M_get_Bit_allocator()); } 26629: 26629: 26629: _Bvector_base() = default; 26629: 26629: 26629: 26629: 26629: 26629: _Bvector_base(const allocator_type& __a) 26629: : _M_impl(__a) { } 26629: 26629: 26629: _Bvector_base(_Bvector_base&&) = default; 26629: 26629: 26629: _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept 26629: : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) 26629: { } 26629: 26629: 26629: 26629: ~_Bvector_base() 26629: { this->_M_deallocate(); } 26629: 26629: protected: 26629: _Bvector_impl _M_impl; 26629: 26629: 26629: _Bit_pointer 26629: _M_allocate(size_t __n) 26629: { 26629: _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); 26629: # 640 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: return __p; 26629: } 26629: 26629: 26629: void 26629: _M_deallocate() 26629: { 26629: if (_M_impl._M_start._M_p) 26629: { 26629: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 26629: _Bit_alloc_traits::deallocate(_M_impl, 26629: _M_impl._M_end_of_storage - __n, 26629: __n); 26629: _M_impl._M_reset(); 26629: } 26629: } 26629: 26629: 26629: 26629: void 26629: _M_move_data(_Bvector_base&& __x) noexcept 26629: { _M_impl._M_move_data(std::move(__x._M_impl)); } 26629: 26629: 26629: constexpr 26629: static size_t 26629: _S_nword(size_t __n) 26629: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 26629: }; 26629: # 689 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: template 26629: class vector : protected _Bvector_base<_Alloc> 26629: { 26629: typedef _Bvector_base<_Alloc> _Base; 26629: typedef typename _Base::_Bit_pointer _Bit_pointer; 26629: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 26629: 26629: 26629: friend struct std::hash; 26629: 26629: 26629: public: 26629: typedef bool value_type; 26629: typedef size_t size_type; 26629: typedef ptrdiff_t difference_type; 26629: typedef _Bit_reference reference; 26629: typedef bool const_reference; 26629: typedef _Bit_reference* pointer; 26629: typedef const bool* const_pointer; 26629: typedef _Bit_iterator iterator; 26629: typedef _Bit_const_iterator const_iterator; 26629: typedef std::reverse_iterator const_reverse_iterator; 26629: typedef std::reverse_iterator reverse_iterator; 26629: typedef _Alloc allocator_type; 26629: 26629: 26629: allocator_type 26629: get_allocator() const 26629: { return _Base::get_allocator(); } 26629: 26629: protected: 26629: using _Base::_M_allocate; 26629: using _Base::_M_deallocate; 26629: using _Base::_S_nword; 26629: using _Base::_M_get_Bit_allocator; 26629: 26629: public: 26629: 26629: vector() = default; 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: vector(const allocator_type& __a) 26629: : _Base(__a) { } 26629: 26629: 26629: 26629: explicit 26629: vector(size_type __n, const allocator_type& __a = allocator_type()) 26629: : vector(__n, false, __a) 26629: { } 26629: 26629: 26629: vector(size_type __n, const bool& __value, 26629: const allocator_type& __a = allocator_type()) 26629: 26629: 26629: 26629: 26629: 26629: : _Base(__a) 26629: { 26629: _M_initialize(__n); 26629: _M_initialize_value(__value); 26629: } 26629: 26629: 26629: vector(const vector& __x) 26629: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 26629: { 26629: _M_initialize(__x.size()); 26629: _M_copy_aligned(__x.begin(), __x.end(), begin()); 26629: } 26629: 26629: 26629: vector(vector&&) = default; 26629: 26629: private: 26629: 26629: vector(vector&& __x, const allocator_type& __a, true_type) noexcept 26629: : _Base(std::move(__x), __a) 26629: { } 26629: 26629: 26629: vector(vector&& __x, const allocator_type& __a, false_type) 26629: : _Base(__a) 26629: { 26629: if (__x.get_allocator() == __a) 26629: this->_M_move_data(std::move(__x)); 26629: else 26629: { 26629: _M_initialize(__x.size()); 26629: _M_copy_aligned(__x.begin(), __x.end(), begin()); 26629: __x.clear(); 26629: } 26629: } 26629: 26629: public: 26629: 26629: vector(vector&& __x, const __type_identity_t& __a) 26629: noexcept(_Bit_alloc_traits::_S_always_equal()) 26629: : vector(std::move(__x), __a, 26629: typename _Bit_alloc_traits::is_always_equal{}) 26629: { } 26629: 26629: 26629: vector(const vector& __x, const __type_identity_t& __a) 26629: : _Base(__a) 26629: { 26629: _M_initialize(__x.size()); 26629: _M_copy_aligned(__x.begin(), __x.end(), begin()); 26629: } 26629: 26629: 26629: vector(initializer_list __l, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(__a) 26629: { 26629: _M_initialize_range(__l.begin(), __l.end(), 26629: random_access_iterator_tag()); 26629: } 26629: 26629: 26629: 26629: template> 26629: 26629: vector(_InputIterator __first, _InputIterator __last, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(__a) 26629: { 26629: _M_initialize_range(__first, __last, 26629: std::__iterator_category(__first)); 26629: } 26629: # 838 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: 26629: ~vector() noexcept { } 26629: 26629: 26629: vector& 26629: operator=(const vector& __x) 26629: { 26629: if (&__x == this) 26629: return *this; 26629: 26629: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 26629: { 26629: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 26629: { 26629: this->_M_deallocate(); 26629: std::__alloc_on_copy(_M_get_Bit_allocator(), 26629: __x._M_get_Bit_allocator()); 26629: _M_initialize(__x.size()); 26629: } 26629: else 26629: std::__alloc_on_copy(_M_get_Bit_allocator(), 26629: __x._M_get_Bit_allocator()); 26629: } 26629: 26629: if (__x.size() > capacity()) 26629: { 26629: this->_M_deallocate(); 26629: _M_initialize(__x.size()); 26629: } 26629: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 26629: begin()); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: vector& 26629: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 26629: { 26629: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 26629: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 26629: { 26629: this->_M_deallocate(); 26629: this->_M_move_data(std::move(__x)); 26629: std::__alloc_on_move(_M_get_Bit_allocator(), 26629: __x._M_get_Bit_allocator()); 26629: } 26629: else 26629: { 26629: if (__x.size() > capacity()) 26629: { 26629: this->_M_deallocate(); 26629: _M_initialize(__x.size()); 26629: } 26629: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 26629: begin()); 26629: __x.clear(); 26629: } 26629: return *this; 26629: } 26629: 26629: 26629: vector& 26629: operator=(initializer_list __l) 26629: { 26629: this->assign(__l.begin(), __l.end()); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: assign(size_type __n, const bool& __x) 26629: { _M_fill_assign(__n, __x); } 26629: 26629: 26629: template> 26629: 26629: void 26629: assign(_InputIterator __first, _InputIterator __last) 26629: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 26629: # 936 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: 26629: void 26629: assign(initializer_list __l) 26629: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 26629: 26629: 26629: [[__nodiscard__]] 26629: iterator 26629: begin() noexcept 26629: { return iterator(this->_M_impl._M_start._M_p, 0); } 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: begin() const noexcept 26629: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 26629: 26629: [[__nodiscard__]] 26629: iterator 26629: end() noexcept 26629: { return this->_M_impl._M_finish; } 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: end() const noexcept 26629: { return this->_M_impl._M_finish; } 26629: 26629: [[__nodiscard__]] 26629: reverse_iterator 26629: rbegin() noexcept 26629: { return reverse_iterator(end()); } 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: rbegin() const noexcept 26629: { return const_reverse_iterator(end()); } 26629: 26629: [[__nodiscard__]] 26629: reverse_iterator 26629: rend() noexcept 26629: { return reverse_iterator(begin()); } 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: rend() const noexcept 26629: { return const_reverse_iterator(begin()); } 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: cbegin() const noexcept 26629: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: cend() const noexcept 26629: { return this->_M_impl._M_finish; } 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: crbegin() const noexcept 26629: { return const_reverse_iterator(end()); } 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: crend() const noexcept 26629: { return const_reverse_iterator(begin()); } 26629: 26629: 26629: [[__nodiscard__]] 26629: size_type 26629: size() const noexcept 26629: { return size_type(end() - begin()); } 26629: 26629: [[__nodiscard__]] 26629: size_type 26629: max_size() const noexcept 26629: { 26629: const size_type __isize = 26629: __gnu_cxx::__numeric_traits::__max 26629: - int(_S_word_bit) + 1; 26629: const size_type __asize 26629: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 26629: return (__asize <= __isize / int(_S_word_bit) 26629: ? __asize * int(_S_word_bit) : __isize); 26629: } 26629: 26629: [[__nodiscard__]] 26629: size_type 26629: capacity() const noexcept 26629: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 26629: - begin()); } 26629: 26629: [[__nodiscard__]] 26629: bool 26629: empty() const noexcept 26629: { return begin() == end(); } 26629: 26629: [[__nodiscard__]] 26629: reference 26629: operator[](size_type __n) 26629: { return begin()[__n]; } 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: operator[](size_type __n) const 26629: { return begin()[__n]; } 26629: 26629: protected: 26629: 26629: void 26629: _M_range_check(size_type __n) const 26629: { 26629: if (__n >= this->size()) 26629: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 26629: 26629: , 26629: __n, this->size()); 26629: } 26629: 26629: public: 26629: 26629: reference 26629: at(size_type __n) 26629: { 26629: _M_range_check(__n); 26629: return (*this)[__n]; 26629: } 26629: 26629: 26629: const_reference 26629: at(size_type __n) const 26629: { 26629: _M_range_check(__n); 26629: return (*this)[__n]; 26629: } 26629: 26629: 26629: void 26629: reserve(size_type __n) 26629: { 26629: if (__n > max_size()) 26629: __throw_length_error(("vector::reserve")); 26629: if (capacity() < __n) 26629: _M_reallocate(__n); 26629: } 26629: 26629: [[__nodiscard__]] 26629: reference 26629: front() 26629: { return *begin(); } 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: front() const 26629: { return *begin(); } 26629: 26629: [[__nodiscard__]] 26629: reference 26629: back() 26629: { return *(end() - 1); } 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: back() const 26629: { return *(end() - 1); } 26629: 26629: 26629: void 26629: push_back(bool __x) 26629: { 26629: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 26629: *this->_M_impl._M_finish++ = __x; 26629: else 26629: _M_insert_aux(end(), __x); 26629: } 26629: 26629: 26629: void 26629: swap(vector& __x) noexcept 26629: { 26629: 26629: do { if (std::__is_constant_evaluated() && !bool(_Bit_alloc_traits::propagate_on_container_swap::value || _M_get_Bit_allocator() == __x._M_get_Bit_allocator())) __builtin_unreachable(); } while (false) 26629: ; 26629: 26629: this->_M_impl._M_swap_data(__x._M_impl); 26629: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 26629: __x._M_get_Bit_allocator()); 26629: } 26629: 26629: 26629: 26629: static void 26629: swap(reference __x, reference __y) noexcept 26629: { 26629: bool __tmp = __x; 26629: __x = __y; 26629: __y = __tmp; 26629: } 26629: 26629: 26629: iterator 26629: 26629: insert(const_iterator __position, const bool& __x) 26629: 26629: 26629: 26629: { 26629: const difference_type __n = __position - begin(); 26629: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 26629: && __position == end()) 26629: *this->_M_impl._M_finish++ = __x; 26629: else 26629: _M_insert_aux(__position._M_const_cast(), __x); 26629: return begin() + __n; 26629: } 26629: 26629: 26629: __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) 26629: iterator 26629: insert(const_iterator __position) 26629: { return this->insert(__position._M_const_cast(), false); } 26629: 26629: 26629: 26629: template> 26629: 26629: iterator 26629: insert(const_iterator __position, 26629: _InputIterator __first, _InputIterator __last) 26629: { 26629: difference_type __offset = __position - cbegin(); 26629: _M_insert_range(__position._M_const_cast(), 26629: __first, __last, 26629: std::__iterator_category(__first)); 26629: return begin() + __offset; 26629: } 26629: # 1186 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: 26629: iterator 26629: insert(const_iterator __position, size_type __n, const bool& __x) 26629: { 26629: difference_type __offset = __position - cbegin(); 26629: _M_fill_insert(__position._M_const_cast(), __n, __x); 26629: return begin() + __offset; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: insert(const_iterator __p, initializer_list __l) 26629: { return this->insert(__p, __l.begin(), __l.end()); } 26629: 26629: 26629: 26629: void 26629: pop_back() 26629: { --this->_M_impl._M_finish; } 26629: 26629: 26629: iterator 26629: 26629: erase(const_iterator __position) 26629: 26629: 26629: 26629: { return _M_erase(__position._M_const_cast()); } 26629: 26629: 26629: iterator 26629: 26629: erase(const_iterator __first, const_iterator __last) 26629: 26629: 26629: 26629: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 26629: 26629: 26629: void 26629: resize(size_type __new_size, bool __x = bool()) 26629: { 26629: if (__new_size < size()) 26629: _M_erase_at_end(begin() + difference_type(__new_size)); 26629: else 26629: insert(end(), __new_size - size(), __x); 26629: } 26629: 26629: 26629: 26629: void 26629: shrink_to_fit() 26629: { _M_shrink_to_fit(); } 26629: 26629: 26629: 26629: void 26629: flip() noexcept 26629: { 26629: _Bit_type * const __end = this->_M_impl._M_end_addr(); 26629: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 26629: *__p = ~*__p; 26629: } 26629: 26629: 26629: void 26629: clear() noexcept 26629: { _M_erase_at_end(begin()); } 26629: 26629: 26629: template 26629: 26629: 26629: reference 26629: 26629: 26629: 26629: emplace_back(_Args&&... __args) 26629: { 26629: push_back(bool(__args...)); 26629: 26629: return back(); 26629: 26629: } 26629: 26629: template 26629: 26629: iterator 26629: emplace(const_iterator __pos, _Args&&... __args) 26629: { return insert(__pos, bool(__args...)); } 26629: 26629: 26629: protected: 26629: 26629: 26629: iterator 26629: _M_copy_aligned(const_iterator __first, const_iterator __last, 26629: iterator __result) 26629: { 26629: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 26629: return std::copy(const_iterator(__last._M_p, 0), __last, 26629: iterator(__q, 0)); 26629: } 26629: 26629: 26629: void 26629: _M_initialize(size_type __n) 26629: { 26629: if (__n) 26629: { 26629: _Bit_pointer __q = this->_M_allocate(__n); 26629: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 26629: iterator __start = iterator(std::__addressof(*__q), 0); 26629: this->_M_impl._M_start = __start; 26629: this->_M_impl._M_finish = __start + difference_type(__n); 26629: } 26629: } 26629: 26629: 26629: void 26629: _M_initialize_value(bool __x) noexcept 26629: { 26629: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 26629: __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); 26629: } 26629: 26629: 26629: void 26629: _M_reallocate(size_type __n); 26629: 26629: 26629: 26629: bool 26629: _M_shrink_to_fit(); 26629: # 1347 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: template 26629: 26629: void 26629: _M_initialize_range(_InputIterator __first, _InputIterator __last, 26629: std::input_iterator_tag) 26629: { 26629: for (; __first != __last; ++__first) 26629: push_back(*__first); 26629: } 26629: 26629: template 26629: 26629: void 26629: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 26629: std::forward_iterator_tag) 26629: { 26629: const size_type __n = std::distance(__first, __last); 26629: _M_initialize(__n); 26629: std::copy(__first, __last, begin()); 26629: } 26629: # 1383 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: 26629: void 26629: _M_fill_assign(size_t __n, bool __x) 26629: { 26629: if (__n > size()) 26629: { 26629: _M_initialize_value(__x); 26629: insert(end(), __n - size(), __x); 26629: } 26629: else 26629: { 26629: _M_erase_at_end(begin() + __n); 26629: _M_initialize_value(__x); 26629: } 26629: } 26629: 26629: template 26629: 26629: void 26629: _M_assign_aux(_InputIterator __first, _InputIterator __last, 26629: std::input_iterator_tag) 26629: { 26629: iterator __cur = begin(); 26629: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 26629: *__cur = *__first; 26629: if (__first == __last) 26629: _M_erase_at_end(__cur); 26629: else 26629: insert(end(), __first, __last); 26629: } 26629: 26629: template 26629: 26629: void 26629: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 26629: std::forward_iterator_tag) 26629: { 26629: const size_type __len = std::distance(__first, __last); 26629: if (__len < size()) 26629: _M_erase_at_end(std::copy(__first, __last, begin())); 26629: else 26629: { 26629: _ForwardIterator __mid = __first; 26629: std::advance(__mid, size()); 26629: std::copy(__first, __mid, begin()); 26629: insert(end(), __mid, __last); 26629: } 26629: } 26629: # 1450 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: 26629: void 26629: _M_fill_insert(iterator __position, size_type __n, bool __x); 26629: 26629: template 26629: 26629: void 26629: _M_insert_range(iterator __pos, _InputIterator __first, 26629: _InputIterator __last, std::input_iterator_tag) 26629: { 26629: for (; __first != __last; ++__first) 26629: { 26629: __pos = insert(__pos, *__first); 26629: ++__pos; 26629: } 26629: } 26629: 26629: template 26629: 26629: void 26629: _M_insert_range(iterator __position, _ForwardIterator __first, 26629: _ForwardIterator __last, std::forward_iterator_tag); 26629: 26629: 26629: void 26629: _M_insert_aux(iterator __position, bool __x); 26629: 26629: 26629: size_type 26629: _M_check_len(size_type __n, const char* __s) const 26629: { 26629: if (max_size() - size() < __n) 26629: __throw_length_error((__s)); 26629: 26629: const size_type __len = size() + std::max(size(), __n); 26629: return (__len < size() || __len > max_size()) ? max_size() : __len; 26629: } 26629: 26629: 26629: void 26629: _M_erase_at_end(iterator __pos) 26629: { this->_M_impl._M_finish = __pos; } 26629: 26629: 26629: iterator 26629: _M_erase(iterator __pos); 26629: 26629: 26629: iterator 26629: _M_erase(iterator __first, iterator __last); 26629: 26629: protected: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void data() = delete; 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: inline void 26629: __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, 26629: bool __x) noexcept 26629: { 26629: const _Bit_type __fmask = ~0ul << __first; 26629: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 26629: const _Bit_type __mask = __fmask & __lmask; 26629: 26629: if (__x) 26629: *__v |= __mask; 26629: else 26629: *__v &= ~__mask; 26629: } 26629: 26629: 26629: __attribute__((__nonnull__)) 26629: 26629: inline void 26629: __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept 26629: { 26629: # 1546 "/usr/include/c++/12/bits/stl_bvector.h" 3 26629: __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); 26629: } 26629: 26629: 26629: 26629: inline void 26629: __fill_a1(std::_Bit_iterator __first, 26629: std::_Bit_iterator __last, const bool& __x) 26629: { 26629: if (__first._M_p != __last._M_p) 26629: { 26629: _Bit_type* __first_p = __first._M_p; 26629: if (__first._M_offset != 0) 26629: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 26629: 26629: __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); 26629: 26629: if (__last._M_offset != 0) 26629: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 26629: } 26629: else if (__first._M_offset != __last._M_offset) 26629: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: struct hash> 26629: : public __hash_base> 26629: { 26629: size_t 26629: operator()(const std::vector&) const noexcept; 26629: }; 26629: 26629: 26629: 26629: } 26629: # 66 "/usr/include/c++/12/vector" 2 3 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/vector.tcc" 1 3 26629: # 59 "/usr/include/c++/12/bits/vector.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: vector<_Tp, _Alloc>:: 26629: reserve(size_type __n) 26629: { 26629: if (__n > this->max_size()) 26629: __throw_length_error(("vector::reserve")); 26629: if (this->capacity() < __n) 26629: { 26629: const size_type __old_size = size(); 26629: pointer __tmp; 26629: 26629: if constexpr (_S_use_relocate()) 26629: { 26629: __tmp = this->_M_allocate(__n); 26629: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 26629: __tmp, _M_get_Tp_allocator()); 26629: } 26629: else 26629: 26629: { 26629: __tmp = _M_allocate_and_copy(__n, 26629: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 26629: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 26629: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: } 26629: ; 26629: _M_deallocate(this->_M_impl._M_start, 26629: this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_start); 26629: this->_M_impl._M_start = __tmp; 26629: this->_M_impl._M_finish = __tmp + __old_size; 26629: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 26629: } 26629: } 26629: 26629: 26629: template 26629: template 26629: 26629: 26629: typename vector<_Tp, _Alloc>::reference 26629: 26629: 26629: 26629: vector<_Tp, _Alloc>:: 26629: emplace_back(_Args&&... __args) 26629: { 26629: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 26629: { 26629: ; 26629: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 26629: std::forward<_Args>(__args)...); 26629: ++this->_M_impl._M_finish; 26629: ; 26629: } 26629: else 26629: _M_realloc_insert(end(), std::forward<_Args>(__args)...); 26629: 26629: return back(); 26629: 26629: } 26629: 26629: 26629: template 26629: 26629: typename vector<_Tp, _Alloc>::iterator 26629: vector<_Tp, _Alloc>:: 26629: 26629: insert(const_iterator __position, const value_type& __x) 26629: 26629: 26629: 26629: { 26629: const size_type __n = __position - begin(); 26629: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 26629: if (__position == end()) 26629: { 26629: ; 26629: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 26629: __x); 26629: ++this->_M_impl._M_finish; 26629: ; 26629: } 26629: else 26629: { 26629: 26629: const auto __pos = begin() + (__position - cbegin()); 26629: 26629: 26629: _Temporary_value __x_copy(this, __x); 26629: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 26629: 26629: 26629: 26629: } 26629: else 26629: 26629: _M_realloc_insert(begin() + (__position - cbegin()), __x); 26629: 26629: 26629: 26629: 26629: return iterator(this->_M_impl._M_start + __n); 26629: } 26629: 26629: template 26629: 26629: typename vector<_Tp, _Alloc>::iterator 26629: vector<_Tp, _Alloc>:: 26629: _M_erase(iterator __position) 26629: { 26629: if (__position + 1 != end()) 26629: std::move(__position + 1, end(), __position); 26629: --this->_M_impl._M_finish; 26629: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 26629: ; 26629: return __position; 26629: } 26629: 26629: template 26629: 26629: typename vector<_Tp, _Alloc>::iterator 26629: vector<_Tp, _Alloc>:: 26629: _M_erase(iterator __first, iterator __last) 26629: { 26629: if (__first != __last) 26629: { 26629: if (__last != end()) 26629: std::move(__last, end(), __first); 26629: _M_erase_at_end(__first.base() + (end() - __last)); 26629: } 26629: return __first; 26629: } 26629: 26629: template 26629: 26629: vector<_Tp, _Alloc>& 26629: vector<_Tp, _Alloc>:: 26629: operator=(const vector<_Tp, _Alloc>& __x) 26629: { 26629: if (std::__addressof(__x) != this) 26629: { 26629: ; 26629: 26629: if (_Alloc_traits::_S_propagate_on_copy_assign()) 26629: { 26629: if (!_Alloc_traits::_S_always_equal() 26629: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 26629: { 26629: 26629: this->clear(); 26629: _M_deallocate(this->_M_impl._M_start, 26629: this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_start); 26629: this->_M_impl._M_start = nullptr; 26629: this->_M_impl._M_finish = nullptr; 26629: this->_M_impl._M_end_of_storage = nullptr; 26629: } 26629: std::__alloc_on_copy(_M_get_Tp_allocator(), 26629: __x._M_get_Tp_allocator()); 26629: } 26629: 26629: const size_type __xlen = __x.size(); 26629: if (__xlen > capacity()) 26629: { 26629: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 26629: __x.end()); 26629: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: _M_deallocate(this->_M_impl._M_start, 26629: this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_start); 26629: this->_M_impl._M_start = __tmp; 26629: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 26629: } 26629: else if (size() >= __xlen) 26629: { 26629: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 26629: end(), _M_get_Tp_allocator()); 26629: } 26629: else 26629: { 26629: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 26629: this->_M_impl._M_start); 26629: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 26629: __x._M_impl._M_finish, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: } 26629: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: 26629: void 26629: vector<_Tp, _Alloc>:: 26629: _M_fill_assign(size_t __n, const value_type& __val) 26629: { 26629: if (__n > capacity()) 26629: { 26629: vector __tmp(__n, __val, _M_get_Tp_allocator()); 26629: __tmp._M_impl._M_swap_data(this->_M_impl); 26629: } 26629: else if (__n > size()) 26629: { 26629: std::fill(begin(), end(), __val); 26629: const size_type __add = __n - size(); 26629: ; 26629: this->_M_impl._M_finish = 26629: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 26629: __add, __val, _M_get_Tp_allocator()); 26629: ; 26629: } 26629: else 26629: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 26629: } 26629: 26629: template 26629: template 26629: 26629: void 26629: vector<_Tp, _Alloc>:: 26629: _M_assign_aux(_InputIterator __first, _InputIterator __last, 26629: std::input_iterator_tag) 26629: { 26629: pointer __cur(this->_M_impl._M_start); 26629: for (; __first != __last && __cur != this->_M_impl._M_finish; 26629: ++__cur, (void)++__first) 26629: *__cur = *__first; 26629: if (__first == __last) 26629: _M_erase_at_end(__cur); 26629: else 26629: _M_range_insert(end(), __first, __last, 26629: std::__iterator_category(__first)); 26629: } 26629: 26629: template 26629: template 26629: 26629: void 26629: vector<_Tp, _Alloc>:: 26629: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 26629: std::forward_iterator_tag) 26629: { 26629: const size_type __len = std::distance(__first, __last); 26629: 26629: if (__len > capacity()) 26629: { 26629: _S_check_init_len(__len, _M_get_Tp_allocator()); 26629: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 26629: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: ; 26629: _M_deallocate(this->_M_impl._M_start, 26629: this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_start); 26629: this->_M_impl._M_start = __tmp; 26629: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 26629: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 26629: } 26629: else if (size() >= __len) 26629: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 26629: else 26629: { 26629: _ForwardIterator __mid = __first; 26629: std::advance(__mid, size()); 26629: std::copy(__first, __mid, this->_M_impl._M_start); 26629: const size_type __attribute__((__unused__)) __n = __len - size(); 26629: ; 26629: this->_M_impl._M_finish = 26629: std::__uninitialized_copy_a(__mid, __last, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: ; 26629: } 26629: } 26629: 26629: 26629: template 26629: 26629: auto 26629: vector<_Tp, _Alloc>:: 26629: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 26629: { 26629: const auto __n = __position - cbegin(); 26629: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 26629: if (__position == cend()) 26629: { 26629: ; 26629: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 26629: std::move(__v)); 26629: ++this->_M_impl._M_finish; 26629: ; 26629: } 26629: else 26629: _M_insert_aux(begin() + __n, std::move(__v)); 26629: else 26629: _M_realloc_insert(begin() + __n, std::move(__v)); 26629: 26629: return iterator(this->_M_impl._M_start + __n); 26629: } 26629: 26629: template 26629: template 26629: 26629: auto 26629: vector<_Tp, _Alloc>:: 26629: _M_emplace_aux(const_iterator __position, _Args&&... __args) 26629: -> iterator 26629: { 26629: const auto __n = __position - cbegin(); 26629: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 26629: if (__position == cend()) 26629: { 26629: ; 26629: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 26629: std::forward<_Args>(__args)...); 26629: ++this->_M_impl._M_finish; 26629: ; 26629: } 26629: else 26629: { 26629: 26629: 26629: 26629: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 26629: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 26629: } 26629: else 26629: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 26629: 26629: return iterator(this->_M_impl._M_start + __n); 26629: } 26629: 26629: template 26629: template 26629: 26629: void 26629: vector<_Tp, _Alloc>:: 26629: _M_insert_aux(iterator __position, _Arg&& __arg) 26629: 26629: 26629: 26629: 26629: 26629: 26629: { 26629: ; 26629: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 26629: std::move(*(this->_M_impl._M_finish - 1))); 26629: ++this->_M_impl._M_finish; 26629: ; 26629: 26629: 26629: 26629: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 26629: 26629: ; 26629: 26629: 26629: 26629: *__position = std::forward<_Arg>(__arg); 26629: 26629: } 26629: 26629: 26629: template 26629: template 26629: 26629: void 26629: vector<_Tp, _Alloc>:: 26629: _M_realloc_insert(iterator __position, _Args&&... __args) 26629: 26629: 26629: 26629: 26629: 26629: 26629: { 26629: const size_type __len = 26629: _M_check_len(size_type(1), "vector::_M_realloc_insert"); 26629: pointer __old_start = this->_M_impl._M_start; 26629: pointer __old_finish = this->_M_impl._M_finish; 26629: const size_type __elems_before = __position - begin(); 26629: pointer __new_start(this->_M_allocate(__len)); 26629: pointer __new_finish(__new_start); 26629: try 26629: { 26629: 26629: 26629: 26629: 26629: 26629: _Alloc_traits::construct(this->_M_impl, 26629: __new_start + __elems_before, 26629: 26629: std::forward<_Args>(__args)...); 26629: 26629: 26629: 26629: __new_finish = pointer(); 26629: 26629: 26629: if constexpr (_S_use_relocate()) 26629: { 26629: __new_finish = _S_relocate(__old_start, __position.base(), 26629: __new_start, _M_get_Tp_allocator()); 26629: 26629: ++__new_finish; 26629: 26629: __new_finish = _S_relocate(__position.base(), __old_finish, 26629: __new_finish, _M_get_Tp_allocator()); 26629: } 26629: else 26629: 26629: { 26629: __new_finish 26629: = std::__uninitialized_move_if_noexcept_a 26629: (__old_start, __position.base(), 26629: __new_start, _M_get_Tp_allocator()); 26629: 26629: ++__new_finish; 26629: 26629: __new_finish 26629: = std::__uninitialized_move_if_noexcept_a 26629: (__position.base(), __old_finish, 26629: __new_finish, _M_get_Tp_allocator()); 26629: } 26629: } 26629: catch(...) 26629: { 26629: if (!__new_finish) 26629: _Alloc_traits::destroy(this->_M_impl, 26629: __new_start + __elems_before); 26629: else 26629: std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); 26629: _M_deallocate(__new_start, __len); 26629: throw; 26629: } 26629: 26629: if constexpr (!_S_use_relocate()) 26629: 26629: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 26629: ; 26629: _M_deallocate(__old_start, 26629: this->_M_impl._M_end_of_storage - __old_start); 26629: this->_M_impl._M_start = __new_start; 26629: this->_M_impl._M_finish = __new_finish; 26629: this->_M_impl._M_end_of_storage = __new_start + __len; 26629: } 26629: 26629: template 26629: 26629: void 26629: vector<_Tp, _Alloc>:: 26629: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 26629: { 26629: if (__n != 0) 26629: { 26629: if (size_type(this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_finish) >= __n) 26629: { 26629: 26629: 26629: 26629: _Temporary_value __tmp(this, __x); 26629: value_type& __x_copy = __tmp._M_val(); 26629: 26629: const size_type __elems_after = end() - __position; 26629: pointer __old_finish(this->_M_impl._M_finish); 26629: if (__elems_after > __n) 26629: { 26629: ; 26629: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 26629: this->_M_impl._M_finish, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish += __n; 26629: ; 26629: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 26629: ; 26629: std::fill(__position.base(), __position.base() + __n, 26629: __x_copy); 26629: } 26629: else 26629: { 26629: ; 26629: this->_M_impl._M_finish = 26629: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 26629: __n - __elems_after, 26629: __x_copy, 26629: _M_get_Tp_allocator()); 26629: ; 26629: std::__uninitialized_move_a(__position.base(), __old_finish, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish += __elems_after; 26629: ; 26629: std::fill(__position.base(), __old_finish, __x_copy); 26629: } 26629: } 26629: else 26629: { 26629: const size_type __len = 26629: _M_check_len(__n, "vector::_M_fill_insert"); 26629: const size_type __elems_before = __position - begin(); 26629: pointer __new_start(this->_M_allocate(__len)); 26629: pointer __new_finish(__new_start); 26629: try 26629: { 26629: 26629: std::__uninitialized_fill_n_a(__new_start + __elems_before, 26629: __n, __x, 26629: _M_get_Tp_allocator()); 26629: __new_finish = pointer(); 26629: 26629: __new_finish 26629: = std::__uninitialized_move_if_noexcept_a 26629: (this->_M_impl._M_start, __position.base(), 26629: __new_start, _M_get_Tp_allocator()); 26629: 26629: __new_finish += __n; 26629: 26629: __new_finish 26629: = std::__uninitialized_move_if_noexcept_a 26629: (__position.base(), this->_M_impl._M_finish, 26629: __new_finish, _M_get_Tp_allocator()); 26629: } 26629: catch(...) 26629: { 26629: if (!__new_finish) 26629: std::_Destroy(__new_start + __elems_before, 26629: __new_start + __elems_before + __n, 26629: _M_get_Tp_allocator()); 26629: else 26629: std::_Destroy(__new_start, __new_finish, 26629: _M_get_Tp_allocator()); 26629: _M_deallocate(__new_start, __len); 26629: throw; 26629: } 26629: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: ; 26629: _M_deallocate(this->_M_impl._M_start, 26629: this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_start); 26629: this->_M_impl._M_start = __new_start; 26629: this->_M_impl._M_finish = __new_finish; 26629: this->_M_impl._M_end_of_storage = __new_start + __len; 26629: } 26629: } 26629: } 26629: 26629: 26629: template 26629: 26629: void 26629: vector<_Tp, _Alloc>:: 26629: _M_default_append(size_type __n) 26629: { 26629: if (__n != 0) 26629: { 26629: const size_type __size = size(); 26629: size_type __navail = size_type(this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_finish); 26629: 26629: if (__size > max_size() || __navail > max_size() - __size) 26629: __builtin_unreachable(); 26629: 26629: if (__navail >= __n) 26629: { 26629: ; 26629: this->_M_impl._M_finish = 26629: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 26629: __n, _M_get_Tp_allocator()); 26629: ; 26629: } 26629: else 26629: { 26629: const size_type __len = 26629: _M_check_len(__n, "vector::_M_default_append"); 26629: pointer __new_start(this->_M_allocate(__len)); 26629: if constexpr (_S_use_relocate()) 26629: { 26629: try 26629: { 26629: std::__uninitialized_default_n_a(__new_start + __size, 26629: __n, _M_get_Tp_allocator()); 26629: } 26629: catch(...) 26629: { 26629: _M_deallocate(__new_start, __len); 26629: throw; 26629: } 26629: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 26629: __new_start, _M_get_Tp_allocator()); 26629: } 26629: else 26629: { 26629: pointer __destroy_from = pointer(); 26629: try 26629: { 26629: std::__uninitialized_default_n_a(__new_start + __size, 26629: __n, _M_get_Tp_allocator()); 26629: __destroy_from = __new_start + __size; 26629: std::__uninitialized_move_if_noexcept_a( 26629: this->_M_impl._M_start, this->_M_impl._M_finish, 26629: __new_start, _M_get_Tp_allocator()); 26629: } 26629: catch(...) 26629: { 26629: if (__destroy_from) 26629: std::_Destroy(__destroy_from, __destroy_from + __n, 26629: _M_get_Tp_allocator()); 26629: _M_deallocate(__new_start, __len); 26629: throw; 26629: } 26629: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: } 26629: ; 26629: _M_deallocate(this->_M_impl._M_start, 26629: this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_start); 26629: this->_M_impl._M_start = __new_start; 26629: this->_M_impl._M_finish = __new_start + __size + __n; 26629: this->_M_impl._M_end_of_storage = __new_start + __len; 26629: } 26629: } 26629: } 26629: 26629: template 26629: 26629: bool 26629: vector<_Tp, _Alloc>:: 26629: _M_shrink_to_fit() 26629: { 26629: if (capacity() == size()) 26629: return false; 26629: ; 26629: return std::__shrink_to_fit_aux::_S_do_it(*this); 26629: } 26629: 26629: 26629: template 26629: template 26629: 26629: void 26629: vector<_Tp, _Alloc>:: 26629: _M_range_insert(iterator __pos, _InputIterator __first, 26629: _InputIterator __last, std::input_iterator_tag) 26629: { 26629: if (__pos == end()) 26629: { 26629: for (; __first != __last; ++__first) 26629: insert(end(), *__first); 26629: } 26629: else if (__first != __last) 26629: { 26629: vector __tmp(__first, __last, _M_get_Tp_allocator()); 26629: insert(__pos, 26629: std::make_move_iterator(__tmp.begin()), 26629: std::make_move_iterator(__tmp.end())); 26629: } 26629: } 26629: 26629: template 26629: template 26629: 26629: void 26629: vector<_Tp, _Alloc>:: 26629: _M_range_insert(iterator __position, _ForwardIterator __first, 26629: _ForwardIterator __last, std::forward_iterator_tag) 26629: { 26629: if (__first != __last) 26629: { 26629: const size_type __n = std::distance(__first, __last); 26629: if (size_type(this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_finish) >= __n) 26629: { 26629: const size_type __elems_after = end() - __position; 26629: pointer __old_finish(this->_M_impl._M_finish); 26629: if (__elems_after > __n) 26629: { 26629: ; 26629: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 26629: this->_M_impl._M_finish, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish += __n; 26629: ; 26629: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 26629: ; 26629: std::copy(__first, __last, __position); 26629: } 26629: else 26629: { 26629: _ForwardIterator __mid = __first; 26629: std::advance(__mid, __elems_after); 26629: ; 26629: std::__uninitialized_copy_a(__mid, __last, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish += __n - __elems_after; 26629: ; 26629: std::__uninitialized_move_a(__position.base(), 26629: __old_finish, 26629: this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: this->_M_impl._M_finish += __elems_after; 26629: ; 26629: std::copy(__first, __mid, __position); 26629: } 26629: } 26629: else 26629: { 26629: const size_type __len = 26629: _M_check_len(__n, "vector::_M_range_insert"); 26629: pointer __new_start(this->_M_allocate(__len)); 26629: pointer __new_finish(__new_start); 26629: try 26629: { 26629: __new_finish 26629: = std::__uninitialized_move_if_noexcept_a 26629: (this->_M_impl._M_start, __position.base(), 26629: __new_start, _M_get_Tp_allocator()); 26629: __new_finish 26629: = std::__uninitialized_copy_a(__first, __last, 26629: __new_finish, 26629: _M_get_Tp_allocator()); 26629: __new_finish 26629: = std::__uninitialized_move_if_noexcept_a 26629: (__position.base(), this->_M_impl._M_finish, 26629: __new_finish, _M_get_Tp_allocator()); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__new_start, __new_finish, 26629: _M_get_Tp_allocator()); 26629: _M_deallocate(__new_start, __len); 26629: throw; 26629: } 26629: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 26629: _M_get_Tp_allocator()); 26629: ; 26629: _M_deallocate(this->_M_impl._M_start, 26629: this->_M_impl._M_end_of_storage 26629: - this->_M_impl._M_start); 26629: this->_M_impl._M_start = __new_start; 26629: this->_M_impl._M_finish = __new_finish; 26629: this->_M_impl._M_end_of_storage = __new_start + __len; 26629: } 26629: } 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: vector:: 26629: _M_reallocate(size_type __n) 26629: { 26629: _Bit_pointer __q = this->_M_allocate(__n); 26629: iterator __start(std::__addressof(*__q), 0); 26629: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 26629: this->_M_deallocate(); 26629: this->_M_impl._M_start = __start; 26629: this->_M_impl._M_finish = __finish; 26629: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 26629: } 26629: 26629: template 26629: 26629: void 26629: vector:: 26629: _M_fill_insert(iterator __position, size_type __n, bool __x) 26629: { 26629: if (__n == 0) 26629: return; 26629: if (capacity() - size() >= __n) 26629: { 26629: std::copy_backward(__position, end(), 26629: this->_M_impl._M_finish + difference_type(__n)); 26629: std::fill(__position, __position + difference_type(__n), __x); 26629: this->_M_impl._M_finish += difference_type(__n); 26629: } 26629: else 26629: { 26629: const size_type __len = 26629: _M_check_len(__n, "vector::_M_fill_insert"); 26629: _Bit_pointer __q = this->_M_allocate(__len); 26629: iterator __start(std::__addressof(*__q), 0); 26629: iterator __i = _M_copy_aligned(begin(), __position, __start); 26629: std::fill(__i, __i + difference_type(__n), __x); 26629: iterator __finish = std::copy(__position, end(), 26629: __i + difference_type(__n)); 26629: this->_M_deallocate(); 26629: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 26629: this->_M_impl._M_start = __start; 26629: this->_M_impl._M_finish = __finish; 26629: } 26629: } 26629: 26629: template 26629: template 26629: 26629: void 26629: vector:: 26629: _M_insert_range(iterator __position, _ForwardIterator __first, 26629: _ForwardIterator __last, std::forward_iterator_tag) 26629: { 26629: if (__first != __last) 26629: { 26629: size_type __n = std::distance(__first, __last); 26629: if (capacity() - size() >= __n) 26629: { 26629: std::copy_backward(__position, end(), 26629: this->_M_impl._M_finish 26629: + difference_type(__n)); 26629: std::copy(__first, __last, __position); 26629: this->_M_impl._M_finish += difference_type(__n); 26629: } 26629: else 26629: { 26629: const size_type __len = 26629: _M_check_len(__n, "vector::_M_insert_range"); 26629: _Bit_pointer __q = this->_M_allocate(__len); 26629: iterator __start(std::__addressof(*__q), 0); 26629: iterator __i = _M_copy_aligned(begin(), __position, __start); 26629: __i = std::copy(__first, __last, __i); 26629: iterator __finish = std::copy(__position, end(), __i); 26629: this->_M_deallocate(); 26629: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 26629: this->_M_impl._M_start = __start; 26629: this->_M_impl._M_finish = __finish; 26629: } 26629: } 26629: } 26629: 26629: template 26629: 26629: void 26629: vector:: 26629: _M_insert_aux(iterator __position, bool __x) 26629: { 26629: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 26629: { 26629: std::copy_backward(__position, this->_M_impl._M_finish, 26629: this->_M_impl._M_finish + 1); 26629: *__position = __x; 26629: ++this->_M_impl._M_finish; 26629: } 26629: else 26629: { 26629: const size_type __len = 26629: _M_check_len(size_type(1), "vector::_M_insert_aux"); 26629: _Bit_pointer __q = this->_M_allocate(__len); 26629: iterator __start(std::__addressof(*__q), 0); 26629: iterator __i = _M_copy_aligned(begin(), __position, __start); 26629: *__i++ = __x; 26629: iterator __finish = std::copy(__position, end(), __i); 26629: this->_M_deallocate(); 26629: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 26629: this->_M_impl._M_start = __start; 26629: this->_M_impl._M_finish = __finish; 26629: } 26629: } 26629: 26629: template 26629: 26629: typename vector::iterator 26629: vector:: 26629: _M_erase(iterator __position) 26629: { 26629: if (__position + 1 != end()) 26629: std::copy(__position + 1, end(), __position); 26629: --this->_M_impl._M_finish; 26629: return __position; 26629: } 26629: 26629: template 26629: 26629: typename vector::iterator 26629: vector:: 26629: _M_erase(iterator __first, iterator __last) 26629: { 26629: if (__first != __last) 26629: _M_erase_at_end(std::copy(__last, end(), __first)); 26629: return __first; 26629: } 26629: 26629: 26629: template 26629: 26629: bool 26629: vector:: 26629: _M_shrink_to_fit() 26629: { 26629: if (capacity() - size() < int(_S_word_bit)) 26629: return false; 26629: try 26629: { 26629: if (size_type __n = size()) 26629: _M_reallocate(__n); 26629: else 26629: { 26629: this->_M_deallocate(); 26629: this->_M_impl._M_reset(); 26629: } 26629: return true; 26629: } 26629: catch(...) 26629: { return false; } 26629: } 26629: 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: size_t 26629: hash>:: 26629: operator()(const std::vector& __b) const noexcept 26629: { 26629: size_t __hash = 0; 26629: const size_t __words = __b.size() / _S_word_bit; 26629: if (__words) 26629: { 26629: const size_t __clength = __words * sizeof(_Bit_type); 26629: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 26629: } 26629: 26629: const size_t __extrabits = __b.size() % _S_word_bit; 26629: if (__extrabits) 26629: { 26629: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 26629: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 26629: 26629: const size_t __clength 26629: = (__extrabits + 8 - 1) / 8; 26629: if (__words) 26629: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 26629: else 26629: __hash = std::_Hash_impl::hash(&__hiword, __clength); 26629: } 26629: 26629: return __hash; 26629: } 26629: 26629: 26629: } 26629: # 71 "/usr/include/c++/12/vector" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace pmr { 26629: template class polymorphic_allocator; 26629: template 26629: using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 63 "/usr/include/c++/12/functional" 2 3 26629: # 1 "/usr/include/c++/12/array" 1 3 26629: # 32 "/usr/include/c++/12/array" 3 26629: 26629: # 33 "/usr/include/c++/12/array" 3 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/compare" 1 3 26629: # 33 "/usr/include/c++/12/compare" 3 26629: 26629: # 34 "/usr/include/c++/12/compare" 3 26629: # 39 "/usr/include/c++/12/array" 2 3 26629: # 48 "/usr/include/c++/12/array" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: struct __array_traits 26629: { 26629: typedef _Tp _Type[_Nm]; 26629: typedef __is_swappable<_Tp> _Is_swappable; 26629: typedef __is_nothrow_swappable<_Tp> _Is_nothrow_swappable; 26629: 26629: static constexpr _Tp& 26629: _S_ref(const _Type& __t, std::size_t __n) noexcept 26629: { return const_cast<_Tp&>(__t[__n]); } 26629: 26629: static constexpr _Tp* 26629: _S_ptr(const _Type& __t) noexcept 26629: { return const_cast<_Tp*>(__t); } 26629: }; 26629: 26629: template 26629: struct __array_traits<_Tp, 0> 26629: { 26629: struct _Type { }; 26629: typedef true_type _Is_swappable; 26629: typedef true_type _Is_nothrow_swappable; 26629: 26629: static constexpr _Tp& 26629: _S_ref(const _Type&, std::size_t) noexcept 26629: { return *static_cast<_Tp*>(nullptr); } 26629: 26629: static constexpr _Tp* 26629: _S_ptr(const _Type&) noexcept 26629: { return nullptr; } 26629: }; 26629: # 98 "/usr/include/c++/12/array" 3 26629: template 26629: struct array 26629: { 26629: typedef _Tp value_type; 26629: typedef value_type* pointer; 26629: typedef const value_type* const_pointer; 26629: typedef value_type& reference; 26629: typedef const value_type& const_reference; 26629: typedef value_type* iterator; 26629: typedef const value_type* const_iterator; 26629: typedef std::size_t size_type; 26629: typedef std::ptrdiff_t difference_type; 26629: typedef std::reverse_iterator reverse_iterator; 26629: typedef std::reverse_iterator const_reverse_iterator; 26629: 26629: 26629: typedef __array_traits<_Tp, _Nm> _AT_Type; 26629: typename _AT_Type::_Type _M_elems; 26629: 26629: 26629: 26629: 26629: void 26629: fill(const value_type& __u) 26629: { std::fill_n(begin(), size(), __u); } 26629: 26629: void 26629: swap(array& __other) 26629: noexcept(_AT_Type::_Is_nothrow_swappable::value) 26629: { std::swap_ranges(begin(), end(), __other.begin()); } 26629: 26629: 26629: [[__gnu__::__const__, __nodiscard__]] 26629: constexpr iterator 26629: begin() noexcept 26629: { return iterator(data()); } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_iterator 26629: begin() const noexcept 26629: { return const_iterator(data()); } 26629: 26629: [[__gnu__::__const__, __nodiscard__]] 26629: constexpr iterator 26629: end() noexcept 26629: { return iterator(data() + _Nm); } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_iterator 26629: end() const noexcept 26629: { return const_iterator(data() + _Nm); } 26629: 26629: [[__gnu__::__const__, __nodiscard__]] 26629: constexpr reverse_iterator 26629: rbegin() noexcept 26629: { return reverse_iterator(end()); } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_reverse_iterator 26629: rbegin() const noexcept 26629: { return const_reverse_iterator(end()); } 26629: 26629: [[__gnu__::__const__, __nodiscard__]] 26629: constexpr reverse_iterator 26629: rend() noexcept 26629: { return reverse_iterator(begin()); } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_reverse_iterator 26629: rend() const noexcept 26629: { return const_reverse_iterator(begin()); } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_iterator 26629: cbegin() const noexcept 26629: { return const_iterator(data()); } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_iterator 26629: cend() const noexcept 26629: { return const_iterator(data() + _Nm); } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_reverse_iterator 26629: crbegin() const noexcept 26629: { return const_reverse_iterator(end()); } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_reverse_iterator 26629: crend() const noexcept 26629: { return const_reverse_iterator(begin()); } 26629: 26629: 26629: [[__gnu__::__const__, __nodiscard__]] 26629: constexpr size_type 26629: size() const noexcept { return _Nm; } 26629: 26629: [[__gnu__::__const__, __nodiscard__]] 26629: constexpr size_type 26629: max_size() const noexcept { return _Nm; } 26629: 26629: [[__gnu__::__const__, __nodiscard__]] 26629: constexpr bool 26629: empty() const noexcept { return size() == 0; } 26629: 26629: 26629: [[__nodiscard__]] 26629: constexpr reference 26629: operator[](size_type __n) noexcept 26629: { 26629: ; 26629: return _AT_Type::_S_ref(_M_elems, __n); 26629: } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_reference 26629: operator[](size_type __n) const noexcept 26629: { 26629: 26629: ; 26629: 26629: return _AT_Type::_S_ref(_M_elems, __n); 26629: } 26629: 26629: constexpr reference 26629: at(size_type __n) 26629: { 26629: if (__n >= _Nm) 26629: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 26629: , 26629: __n, _Nm); 26629: return _AT_Type::_S_ref(_M_elems, __n); 26629: } 26629: 26629: constexpr const_reference 26629: at(size_type __n) const 26629: { 26629: 26629: 26629: return __n < _Nm ? _AT_Type::_S_ref(_M_elems, __n) 26629: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 26629: , 26629: __n, _Nm), 26629: _AT_Type::_S_ref(_M_elems, 0)); 26629: } 26629: 26629: [[__nodiscard__]] 26629: constexpr reference 26629: front() noexcept 26629: { 26629: ; 26629: return *begin(); 26629: } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_reference 26629: front() const noexcept 26629: { 26629: 26629: ; 26629: 26629: return _AT_Type::_S_ref(_M_elems, 0); 26629: } 26629: 26629: [[__nodiscard__]] 26629: constexpr reference 26629: back() noexcept 26629: { 26629: ; 26629: return _Nm ? *(end() - 1) : *end(); 26629: } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_reference 26629: back() const noexcept 26629: { 26629: 26629: ; 26629: 26629: return _Nm ? _AT_Type::_S_ref(_M_elems, _Nm - 1) 26629: : _AT_Type::_S_ref(_M_elems, 0); 26629: } 26629: 26629: [[__gnu__::__const__, __nodiscard__]] 26629: constexpr pointer 26629: data() noexcept 26629: { return _AT_Type::_S_ptr(_M_elems); } 26629: 26629: [[__nodiscard__]] 26629: constexpr const_pointer 26629: data() const noexcept 26629: { return _AT_Type::_S_ptr(_M_elems); } 26629: }; 26629: 26629: 26629: template 26629: array(_Tp, _Up...) 26629: -> array && ...), _Tp>, 26629: 1 + sizeof...(_Up)>; 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: 26629: inline bool 26629: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 26629: { return std::equal(__one.begin(), __one.end(), __two.begin()); } 26629: # 329 "/usr/include/c++/12/array" 3 26629: template 26629: [[__nodiscard__]] 26629: 26629: inline bool 26629: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 26629: { return !(__one == __two); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: 26629: inline bool 26629: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 26629: { 26629: return std::lexicographical_compare(__a.begin(), __a.end(), 26629: __b.begin(), __b.end()); 26629: } 26629: 26629: template 26629: [[__nodiscard__]] 26629: 26629: inline bool 26629: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 26629: { return __two < __one; } 26629: 26629: template 26629: [[__nodiscard__]] 26629: 26629: inline bool 26629: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 26629: { return !(__one > __two); } 26629: 26629: template 26629: [[__nodiscard__]] 26629: 26629: inline bool 26629: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 26629: { return !(__one < __two); } 26629: 26629: 26629: 26629: template 26629: 26629: inline 26629: 26629: 26629: typename enable_if< 26629: __array_traits<_Tp, _Nm>::_Is_swappable::value 26629: >::type 26629: 26629: 26629: 26629: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 26629: noexcept(noexcept(__one.swap(__two))) 26629: { __one.swap(__two); } 26629: 26629: 26629: template 26629: typename enable_if< 26629: !__array_traits<_Tp, _Nm>::_Is_swappable::value>::type 26629: swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: constexpr _Tp& 26629: get(array<_Tp, _Nm>& __arr) noexcept 26629: { 26629: static_assert(_Int < _Nm, "array index is within bounds"); 26629: return __array_traits<_Tp, _Nm>::_S_ref(__arr._M_elems, _Int); 26629: } 26629: 26629: template 26629: [[__nodiscard__]] 26629: constexpr _Tp&& 26629: get(array<_Tp, _Nm>&& __arr) noexcept 26629: { 26629: static_assert(_Int < _Nm, "array index is within bounds"); 26629: return std::move(std::get<_Int>(__arr)); 26629: } 26629: 26629: template 26629: [[__nodiscard__]] 26629: constexpr const _Tp& 26629: get(const array<_Tp, _Nm>& __arr) noexcept 26629: { 26629: static_assert(_Int < _Nm, "array index is within bounds"); 26629: return __array_traits<_Tp, _Nm>::_S_ref(__arr._M_elems, _Int); 26629: } 26629: 26629: template 26629: [[__nodiscard__]] 26629: constexpr const _Tp&& 26629: get(const array<_Tp, _Nm>&& __arr) noexcept 26629: { 26629: static_assert(_Int < _Nm, "array index is within bounds"); 26629: return std::move(std::get<_Int>(__arr)); 26629: } 26629: # 470 "/usr/include/c++/12/array" 3 26629: template 26629: struct tuple_size> 26629: : public integral_constant { }; 26629: 26629: 26629: template 26629: struct tuple_element<_Ind, array<_Tp, _Nm>> 26629: { 26629: static_assert(_Ind < _Nm, "array index is in range"); 26629: using type = _Tp; 26629: }; 26629: 26629: 26629: template 26629: inline constexpr size_t tuple_size_v> = _Nm; 26629: 26629: template 26629: inline constexpr size_t tuple_size_v> = _Nm; 26629: 26629: 26629: template 26629: struct __is_tuple_like_impl> : true_type 26629: { }; 26629: 26629: 26629: } 26629: # 64 "/usr/include/c++/12/functional" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_algo.h" 1 3 26629: # 59 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: # 1 "/usr/include/c++/12/bits/algorithmfwd.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/algorithmfwd.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/algorithmfwd.h" 3 26629: # 42 "/usr/include/c++/12/bits/algorithmfwd.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 199 "/usr/include/c++/12/bits/algorithmfwd.h" 3 26629: template 26629: 26629: bool 26629: all_of(_IIter, _IIter, _Predicate); 26629: 26629: template 26629: 26629: bool 26629: any_of(_IIter, _IIter, _Predicate); 26629: 26629: 26629: template 26629: 26629: bool 26629: binary_search(_FIter, _FIter, const _Tp&); 26629: 26629: template 26629: 26629: bool 26629: binary_search(_FIter, _FIter, const _Tp&, _Compare); 26629: 26629: 26629: template 26629: constexpr 26629: const _Tp& 26629: clamp(const _Tp&, const _Tp&, const _Tp&); 26629: 26629: template 26629: constexpr 26629: const _Tp& 26629: clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); 26629: 26629: 26629: template 26629: 26629: _OIter 26629: copy(_IIter, _IIter, _OIter); 26629: 26629: template 26629: 26629: _BIter2 26629: copy_backward(_BIter1, _BIter1, _BIter2); 26629: 26629: 26629: template 26629: 26629: _OIter 26629: copy_if(_IIter, _IIter, _OIter, _Predicate); 26629: 26629: template 26629: 26629: _OIter 26629: copy_n(_IIter, _Size, _OIter); 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: pair<_FIter, _FIter> 26629: equal_range(_FIter, _FIter, const _Tp&); 26629: 26629: template 26629: 26629: pair<_FIter, _FIter> 26629: equal_range(_FIter, _FIter, const _Tp&, _Compare); 26629: 26629: template 26629: 26629: void 26629: fill(_FIter, _FIter, const _Tp&); 26629: 26629: template 26629: 26629: _OIter 26629: fill_n(_OIter, _Size, const _Tp&); 26629: 26629: 26629: 26629: template 26629: 26629: _FIter1 26629: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 26629: 26629: template 26629: 26629: _FIter1 26629: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _IIter 26629: find_if_not(_IIter, _IIter, _Predicate); 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: bool 26629: includes(_IIter1, _IIter1, _IIter2, _IIter2); 26629: 26629: template 26629: 26629: bool 26629: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 26629: 26629: template 26629: void 26629: inplace_merge(_BIter, _BIter, _BIter); 26629: 26629: template 26629: void 26629: inplace_merge(_BIter, _BIter, _BIter, _Compare); 26629: 26629: 26629: template 26629: 26629: bool 26629: is_heap(_RAIter, _RAIter); 26629: 26629: template 26629: 26629: bool 26629: is_heap(_RAIter, _RAIter, _Compare); 26629: 26629: template 26629: 26629: _RAIter 26629: is_heap_until(_RAIter, _RAIter); 26629: 26629: template 26629: 26629: _RAIter 26629: is_heap_until(_RAIter, _RAIter, _Compare); 26629: 26629: template 26629: 26629: bool 26629: is_partitioned(_IIter, _IIter, _Predicate); 26629: 26629: template 26629: 26629: bool 26629: is_permutation(_FIter1, _FIter1, _FIter2); 26629: 26629: template 26629: 26629: bool 26629: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 26629: 26629: template 26629: 26629: bool 26629: is_sorted(_FIter, _FIter); 26629: 26629: template 26629: 26629: bool 26629: is_sorted(_FIter, _FIter, _Compare); 26629: 26629: template 26629: 26629: _FIter 26629: is_sorted_until(_FIter, _FIter); 26629: 26629: template 26629: 26629: _FIter 26629: is_sorted_until(_FIter, _FIter, _Compare); 26629: 26629: 26629: template 26629: 26629: void 26629: iter_swap(_FIter1, _FIter2); 26629: 26629: template 26629: 26629: _FIter 26629: lower_bound(_FIter, _FIter, const _Tp&); 26629: 26629: template 26629: 26629: _FIter 26629: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 26629: 26629: template 26629: 26629: void 26629: make_heap(_RAIter, _RAIter); 26629: 26629: template 26629: 26629: void 26629: make_heap(_RAIter, _RAIter, _Compare); 26629: 26629: template 26629: constexpr 26629: const _Tp& 26629: max(const _Tp&, const _Tp&); 26629: 26629: template 26629: constexpr 26629: const _Tp& 26629: max(const _Tp&, const _Tp&, _Compare); 26629: 26629: 26629: 26629: 26629: template 26629: constexpr 26629: const _Tp& 26629: min(const _Tp&, const _Tp&); 26629: 26629: template 26629: constexpr 26629: const _Tp& 26629: min(const _Tp&, const _Tp&, _Compare); 26629: 26629: 26629: 26629: 26629: template 26629: constexpr 26629: pair 26629: minmax(const _Tp&, const _Tp&); 26629: 26629: template 26629: constexpr 26629: pair 26629: minmax(const _Tp&, const _Tp&, _Compare); 26629: 26629: template 26629: constexpr 26629: pair<_FIter, _FIter> 26629: minmax_element(_FIter, _FIter); 26629: 26629: template 26629: constexpr 26629: pair<_FIter, _FIter> 26629: minmax_element(_FIter, _FIter, _Compare); 26629: 26629: template 26629: constexpr 26629: _Tp 26629: min(initializer_list<_Tp>); 26629: 26629: template 26629: constexpr 26629: _Tp 26629: min(initializer_list<_Tp>, _Compare); 26629: 26629: template 26629: constexpr 26629: _Tp 26629: max(initializer_list<_Tp>); 26629: 26629: template 26629: constexpr 26629: _Tp 26629: max(initializer_list<_Tp>, _Compare); 26629: 26629: template 26629: constexpr 26629: pair<_Tp, _Tp> 26629: minmax(initializer_list<_Tp>); 26629: 26629: template 26629: constexpr 26629: pair<_Tp, _Tp> 26629: minmax(initializer_list<_Tp>, _Compare); 26629: 26629: 26629: 26629: 26629: template 26629: 26629: bool 26629: next_permutation(_BIter, _BIter); 26629: 26629: template 26629: 26629: bool 26629: next_permutation(_BIter, _BIter, _Compare); 26629: 26629: 26629: template 26629: 26629: bool 26629: none_of(_IIter, _IIter, _Predicate); 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _RAIter 26629: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 26629: 26629: template 26629: 26629: _RAIter 26629: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 26629: 26629: 26629: 26629: 26629: template 26629: 26629: pair<_OIter1, _OIter2> 26629: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 26629: 26629: template 26629: 26629: _FIter 26629: partition_point(_FIter, _FIter, _Predicate); 26629: 26629: 26629: template 26629: 26629: void 26629: pop_heap(_RAIter, _RAIter); 26629: 26629: template 26629: 26629: void 26629: pop_heap(_RAIter, _RAIter, _Compare); 26629: 26629: template 26629: 26629: bool 26629: prev_permutation(_BIter, _BIter); 26629: 26629: template 26629: 26629: bool 26629: prev_permutation(_BIter, _BIter, _Compare); 26629: 26629: template 26629: 26629: void 26629: push_heap(_RAIter, _RAIter); 26629: 26629: template 26629: 26629: void 26629: push_heap(_RAIter, _RAIter, _Compare); 26629: 26629: 26629: 26629: template 26629: 26629: _FIter 26629: remove(_FIter, _FIter, const _Tp&); 26629: 26629: template 26629: 26629: _FIter 26629: remove_if(_FIter, _FIter, _Predicate); 26629: 26629: template 26629: 26629: _OIter 26629: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 26629: 26629: template 26629: 26629: _OIter 26629: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 26629: 26629: 26629: 26629: template 26629: 26629: _OIter 26629: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 26629: 26629: template 26629: 26629: _OIter 26629: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: reverse(_BIter, _BIter); 26629: 26629: template 26629: 26629: _OIter 26629: reverse_copy(_BIter, _BIter, _OIter); 26629: 26629: inline namespace _V2 26629: { 26629: template 26629: 26629: _FIter 26629: rotate(_FIter, _FIter, _FIter); 26629: } 26629: 26629: template 26629: 26629: _OIter 26629: rotate_copy(_FIter, _FIter, _FIter, _OIter); 26629: # 625 "/usr/include/c++/12/bits/algorithmfwd.h" 3 26629: template 26629: void 26629: shuffle(_RAIter, _RAIter, _UGenerator&&); 26629: 26629: 26629: template 26629: 26629: void 26629: sort_heap(_RAIter, _RAIter); 26629: 26629: template 26629: 26629: void 26629: sort_heap(_RAIter, _RAIter, _Compare); 26629: 26629: template 26629: _BIter 26629: stable_partition(_BIter, _BIter, _Predicate); 26629: # 658 "/usr/include/c++/12/bits/algorithmfwd.h" 3 26629: template 26629: 26629: _FIter2 26629: swap_ranges(_FIter1, _FIter1, _FIter2); 26629: 26629: 26629: 26629: template 26629: 26629: _FIter 26629: unique(_FIter, _FIter); 26629: 26629: template 26629: 26629: _FIter 26629: unique(_FIter, _FIter, _BinaryPredicate); 26629: 26629: 26629: 26629: template 26629: 26629: _FIter 26629: upper_bound(_FIter, _FIter, const _Tp&); 26629: 26629: template 26629: 26629: _FIter 26629: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 26629: 26629: 26629: 26629: template 26629: 26629: _FIter 26629: adjacent_find(_FIter, _FIter); 26629: 26629: template 26629: 26629: _FIter 26629: adjacent_find(_FIter, _FIter, _BinaryPredicate); 26629: 26629: template 26629: 26629: typename iterator_traits<_IIter>::difference_type 26629: count(_IIter, _IIter, const _Tp&); 26629: 26629: template 26629: 26629: typename iterator_traits<_IIter>::difference_type 26629: count_if(_IIter, _IIter, _Predicate); 26629: 26629: template 26629: 26629: bool 26629: equal(_IIter1, _IIter1, _IIter2); 26629: 26629: template 26629: 26629: bool 26629: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 26629: 26629: template 26629: 26629: _IIter 26629: find(_IIter, _IIter, const _Tp&); 26629: 26629: template 26629: 26629: _FIter1 26629: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 26629: 26629: template 26629: 26629: _FIter1 26629: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 26629: 26629: template 26629: 26629: _IIter 26629: find_if(_IIter, _IIter, _Predicate); 26629: 26629: template 26629: 26629: _Funct 26629: for_each(_IIter, _IIter, _Funct); 26629: 26629: template 26629: 26629: void 26629: generate(_FIter, _FIter, _Generator); 26629: 26629: template 26629: 26629: _OIter 26629: generate_n(_OIter, _Size, _Generator); 26629: 26629: template 26629: 26629: bool 26629: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 26629: 26629: template 26629: 26629: bool 26629: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 26629: 26629: template 26629: constexpr 26629: _FIter 26629: max_element(_FIter, _FIter); 26629: 26629: template 26629: constexpr 26629: _FIter 26629: max_element(_FIter, _FIter, _Compare); 26629: 26629: template 26629: 26629: _OIter 26629: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 26629: 26629: template 26629: 26629: _OIter 26629: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 26629: 26629: template 26629: constexpr 26629: _FIter 26629: min_element(_FIter, _FIter); 26629: 26629: template 26629: constexpr 26629: _FIter 26629: min_element(_FIter, _FIter, _Compare); 26629: 26629: template 26629: 26629: pair<_IIter1, _IIter2> 26629: mismatch(_IIter1, _IIter1, _IIter2); 26629: 26629: template 26629: 26629: pair<_IIter1, _IIter2> 26629: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 26629: 26629: template 26629: 26629: void 26629: nth_element(_RAIter, _RAIter, _RAIter); 26629: 26629: template 26629: 26629: void 26629: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 26629: 26629: template 26629: 26629: void 26629: partial_sort(_RAIter, _RAIter, _RAIter); 26629: 26629: template 26629: 26629: void 26629: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 26629: 26629: template 26629: 26629: _BIter 26629: partition(_BIter, _BIter, _Predicate); 26629: 26629: template 26629: void 26629: random_shuffle(_RAIter, _RAIter); 26629: 26629: template 26629: void 26629: random_shuffle(_RAIter, _RAIter, 26629: 26629: _Generator&&); 26629: 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: replace(_FIter, _FIter, const _Tp&, const _Tp&); 26629: 26629: template 26629: 26629: void 26629: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 26629: 26629: template 26629: 26629: _FIter1 26629: search(_FIter1, _FIter1, _FIter2, _FIter2); 26629: 26629: template 26629: 26629: _FIter1 26629: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 26629: 26629: template 26629: 26629: _FIter 26629: search_n(_FIter, _FIter, _Size, const _Tp&); 26629: 26629: template 26629: 26629: _FIter 26629: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 26629: 26629: template 26629: 26629: _OIter 26629: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 26629: 26629: template 26629: 26629: _OIter 26629: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 26629: 26629: template 26629: 26629: _OIter 26629: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 26629: 26629: template 26629: 26629: _OIter 26629: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 26629: 26629: template 26629: 26629: _OIter 26629: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 26629: 26629: template 26629: 26629: _OIter 26629: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 26629: _OIter, _Compare); 26629: 26629: template 26629: 26629: _OIter 26629: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 26629: 26629: template 26629: 26629: _OIter 26629: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 26629: 26629: template 26629: 26629: void 26629: sort(_RAIter, _RAIter); 26629: 26629: template 26629: 26629: void 26629: sort(_RAIter, _RAIter, _Compare); 26629: 26629: template 26629: void 26629: stable_sort(_RAIter, _RAIter); 26629: 26629: template 26629: void 26629: stable_sort(_RAIter, _RAIter, _Compare); 26629: 26629: template 26629: 26629: _OIter 26629: transform(_IIter, _IIter, _OIter, _UnaryOperation); 26629: 26629: template 26629: 26629: _OIter 26629: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 26629: 26629: template 26629: 26629: _OIter 26629: unique_copy(_IIter, _IIter, _OIter); 26629: 26629: template 26629: 26629: _OIter 26629: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 26629: 26629: 26629: 26629: } 26629: # 60 "/usr/include/c++/12/bits/stl_algo.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_heap.h" 1 3 26629: # 63 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _Distance 26629: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 26629: _Compare& __comp) 26629: { 26629: _Distance __parent = 0; 26629: for (_Distance __child = 1; __child < __n; ++__child) 26629: { 26629: if (__comp(__first + __parent, __first + __child)) 26629: return __child; 26629: if ((__child & 1) == 0) 26629: ++__parent; 26629: } 26629: return __n; 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: inline bool 26629: __is_heap(_RandomAccessIterator __first, _Distance __n) 26629: { 26629: __gnu_cxx::__ops::_Iter_less_iter __comp; 26629: return std::__is_heap_until(__first, __n, __comp) == __n; 26629: } 26629: 26629: template 26629: 26629: inline bool 26629: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 26629: { 26629: typedef __decltype(__comp) _Cmp; 26629: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 26629: return std::__is_heap_until(__first, __n, __cmp) == __n; 26629: } 26629: 26629: template 26629: 26629: inline bool 26629: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 26629: { return std::__is_heap(__first, std::distance(__first, __last)); } 26629: 26629: template 26629: 26629: inline bool 26629: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: return std::__is_heap(__first, std::move(__comp), 26629: std::distance(__first, __last)); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: __push_heap(_RandomAccessIterator __first, 26629: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 26629: _Compare& __comp) 26629: { 26629: _Distance __parent = (__holeIndex - 1) / 2; 26629: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 26629: { 26629: *(__first + __holeIndex) = std::move(*(__first + __parent)); 26629: __holeIndex = __parent; 26629: __parent = (__holeIndex - 1) / 2; 26629: } 26629: *(__first + __holeIndex) = std::move(__value); 26629: } 26629: # 159 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline void 26629: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 26629: { 26629: typedef typename iterator_traits<_RandomAccessIterator>::value_type 26629: _ValueType; 26629: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 26629: _DistanceType; 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: __gnu_cxx::__ops::_Iter_less_val __comp; 26629: _ValueType __value = std::move(*(__last - 1)); 26629: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 26629: _DistanceType(0), std::move(__value), __comp); 26629: } 26629: # 195 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline void 26629: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: typedef typename iterator_traits<_RandomAccessIterator>::value_type 26629: _ValueType; 26629: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 26629: _DistanceType; 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 26629: __cmp(std::move(__comp)); 26629: _ValueType __value = std::move(*(__last - 1)); 26629: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 26629: _DistanceType(0), std::move(__value), __cmp); 26629: } 26629: 26629: template 26629: 26629: void 26629: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 26629: _Distance __len, _Tp __value, _Compare __comp) 26629: { 26629: const _Distance __topIndex = __holeIndex; 26629: _Distance __secondChild = __holeIndex; 26629: while (__secondChild < (__len - 1) / 2) 26629: { 26629: __secondChild = 2 * (__secondChild + 1); 26629: if (__comp(__first + __secondChild, 26629: __first + (__secondChild - 1))) 26629: __secondChild--; 26629: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 26629: __holeIndex = __secondChild; 26629: } 26629: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 26629: { 26629: __secondChild = 2 * (__secondChild + 1); 26629: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 26629: ; 26629: __holeIndex = __secondChild - 1; 26629: } 26629: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 26629: __cmp(std::move(__comp)); 26629: std::__push_heap(__first, __holeIndex, __topIndex, 26629: std::move(__value), __cmp); 26629: } 26629: 26629: template 26629: 26629: inline void 26629: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _RandomAccessIterator __result, _Compare& __comp) 26629: { 26629: typedef typename iterator_traits<_RandomAccessIterator>::value_type 26629: _ValueType; 26629: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 26629: _DistanceType; 26629: 26629: _ValueType __value = std::move(*__result); 26629: *__result = std::move(*__first); 26629: std::__adjust_heap(__first, _DistanceType(0), 26629: _DistanceType(__last - __first), 26629: std::move(__value), __comp); 26629: } 26629: # 280 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline void 26629: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: if (__last - __first > 1) 26629: { 26629: --__last; 26629: __gnu_cxx::__ops::_Iter_less_iter __comp; 26629: std::__pop_heap(__first, __last, __last, __comp); 26629: } 26629: } 26629: # 314 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline void 26629: pop_heap(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: if (__last - __first > 1) 26629: { 26629: typedef __decltype(__comp) _Cmp; 26629: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 26629: --__last; 26629: std::__pop_heap(__first, __last, __last, __cmp); 26629: } 26629: } 26629: 26629: template 26629: 26629: void 26629: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare& __comp) 26629: { 26629: typedef typename iterator_traits<_RandomAccessIterator>::value_type 26629: _ValueType; 26629: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 26629: _DistanceType; 26629: 26629: if (__last - __first < 2) 26629: return; 26629: 26629: const _DistanceType __len = __last - __first; 26629: _DistanceType __parent = (__len - 2) / 2; 26629: while (true) 26629: { 26629: _ValueType __value = std::move(*(__first + __parent)); 26629: std::__adjust_heap(__first, __parent, __len, std::move(__value), 26629: __comp); 26629: if (__parent == 0) 26629: return; 26629: __parent--; 26629: } 26629: } 26629: # 372 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline void 26629: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: __gnu_cxx::__ops::_Iter_less_iter __comp; 26629: std::__make_heap(__first, __last, __comp); 26629: } 26629: # 399 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline void 26629: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: typedef __decltype(__comp) _Cmp; 26629: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 26629: std::__make_heap(__first, __last, __cmp); 26629: } 26629: 26629: template 26629: 26629: void 26629: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare& __comp) 26629: { 26629: while (__last - __first > 1) 26629: { 26629: --__last; 26629: std::__pop_heap(__first, __last, __last, __comp); 26629: } 26629: } 26629: # 437 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline void 26629: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: __gnu_cxx::__ops::_Iter_less_iter __comp; 26629: std::__sort_heap(__first, __last, __comp); 26629: } 26629: # 465 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline void 26629: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: typedef __decltype(__comp) _Cmp; 26629: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 26629: std::__sort_heap(__first, __last, __cmp); 26629: } 26629: # 494 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline _RandomAccessIterator 26629: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: __gnu_cxx::__ops::_Iter_less_iter __comp; 26629: return __first + 26629: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 26629: } 26629: # 523 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline _RandomAccessIterator 26629: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: typedef __decltype(__comp) _Cmp; 26629: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 26629: return __first 26629: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 26629: } 26629: # 548 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline bool 26629: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 26629: { return std::is_heap_until(__first, __last) == __last; } 26629: # 562 "/usr/include/c++/12/bits/stl_heap.h" 3 26629: template 26629: 26629: inline bool 26629: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: const auto __dist = std::distance(__first, __last); 26629: typedef __decltype(__comp) _Cmp; 26629: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 26629: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 26629: } 26629: 26629: 26629: 26629: } 26629: # 61 "/usr/include/c++/12/bits/stl_algo.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_tempbuf.h" 1 3 26629: # 62 "/usr/include/c++/12/bits/stl_tempbuf.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: namespace __detail 26629: { 26629: template 26629: inline void 26629: __return_temporary_buffer(_Tp* __p, 26629: size_t __len __attribute__((__unused__))) 26629: { 26629: 26629: ::operator delete(__p, __len * sizeof(_Tp)); 26629: 26629: 26629: 26629: } 26629: } 26629: # 98 "/usr/include/c++/12/bits/stl_tempbuf.h" 3 26629: template 26629: [[__deprecated__]] 26629: pair<_Tp*, ptrdiff_t> 26629: get_temporary_buffer(ptrdiff_t __len) noexcept 26629: { 26629: const ptrdiff_t __max = 26629: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 26629: if (__len > __max) 26629: __len = __max; 26629: 26629: while (__len > 0) 26629: { 26629: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 26629: std::nothrow)); 26629: if (__tmp != 0) 26629: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 26629: __len = __len == 1 ? 0 : ((__len + 1) / 2); 26629: } 26629: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 26629: } 26629: # 126 "/usr/include/c++/12/bits/stl_tempbuf.h" 3 26629: template 26629: inline void 26629: return_temporary_buffer(_Tp* __p) 26629: { ::operator delete(__p); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class _Temporary_buffer 26629: { 26629: 26629: 26629: 26629: public: 26629: typedef _Tp value_type; 26629: typedef value_type* pointer; 26629: typedef pointer iterator; 26629: typedef ptrdiff_t size_type; 26629: 26629: protected: 26629: size_type _M_original_len; 26629: size_type _M_len; 26629: pointer _M_buffer; 26629: 26629: public: 26629: 26629: size_type 26629: size() const 26629: { return _M_len; } 26629: 26629: 26629: size_type 26629: requested_size() const 26629: { return _M_original_len; } 26629: 26629: 26629: iterator 26629: begin() 26629: { return _M_buffer; } 26629: 26629: 26629: iterator 26629: end() 26629: { return _M_buffer + _M_len; } 26629: 26629: 26629: 26629: 26629: 26629: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 26629: 26629: ~_Temporary_buffer() 26629: { 26629: std::_Destroy(_M_buffer, _M_buffer + _M_len); 26629: std::__detail::__return_temporary_buffer(_M_buffer, _M_len); 26629: } 26629: 26629: private: 26629: 26629: _Temporary_buffer(const _Temporary_buffer&); 26629: 26629: void 26629: operator=(const _Temporary_buffer&); 26629: }; 26629: 26629: 26629: template 26629: struct __uninitialized_construct_buf_dispatch 26629: { 26629: template 26629: static void 26629: __ucr(_Pointer __first, _Pointer __last, 26629: _ForwardIterator __seed) 26629: { 26629: if (__first == __last) 26629: return; 26629: 26629: _Pointer __cur = __first; 26629: try 26629: { 26629: std::_Construct(std::__addressof(*__first), 26629: std::move(*__seed)); 26629: _Pointer __prev = __cur; 26629: ++__cur; 26629: for(; __cur != __last; ++__cur, ++__prev) 26629: std::_Construct(std::__addressof(*__cur), 26629: std::move(*__prev)); 26629: *__seed = std::move(*__prev); 26629: } 26629: catch(...) 26629: { 26629: std::_Destroy(__first, __cur); 26629: throw; 26629: } 26629: } 26629: }; 26629: 26629: template<> 26629: struct __uninitialized_construct_buf_dispatch 26629: { 26629: template 26629: static void 26629: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 26629: }; 26629: # 244 "/usr/include/c++/12/bits/stl_tempbuf.h" 3 26629: template 26629: inline void 26629: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 26629: _ForwardIterator __seed) 26629: { 26629: typedef typename std::iterator_traits<_Pointer>::value_type 26629: _ValueType; 26629: 26629: std::__uninitialized_construct_buf_dispatch< 26629: __has_trivial_constructor(_ValueType)>:: 26629: __ucr(__first, __last, __seed); 26629: } 26629: 26629: template 26629: _Temporary_buffer<_ForwardIterator, _Tp>:: 26629: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 26629: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 26629: { 26629: std::pair __p( 26629: std::get_temporary_buffer(_M_original_len)); 26629: 26629: if (__p.first) 26629: { 26629: try 26629: { 26629: std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, 26629: __seed); 26629: _M_buffer = __p.first; 26629: _M_len = __p.second; 26629: } 26629: catch(...) 26629: { 26629: std::__detail::__return_temporary_buffer(__p.first, __p.second); 26629: throw; 26629: } 26629: } 26629: } 26629: 26629: 26629: } 26629: # 62 "/usr/include/c++/12/bits/stl_algo.h" 2 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/uniform_int_dist.h" 1 3 26629: # 41 "/usr/include/c++/12/bits/uniform_int_dist.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 58 "/usr/include/c++/12/bits/uniform_int_dist.h" 3 26629: namespace __detail 26629: { 26629: 26629: 26629: 26629: template 26629: constexpr bool 26629: _Power_of_2(_Tp __x) 26629: { 26629: return ((__x - 1) & __x) == 0; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class uniform_int_distribution 26629: { 26629: static_assert(std::is_integral<_IntType>::value, 26629: "template argument must be an integral type"); 26629: 26629: public: 26629: 26629: typedef _IntType result_type; 26629: 26629: struct param_type 26629: { 26629: typedef uniform_int_distribution<_IntType> distribution_type; 26629: 26629: param_type() : param_type(0) { } 26629: 26629: explicit 26629: param_type(_IntType __a, 26629: _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) 26629: : _M_a(__a), _M_b(__b) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: result_type 26629: a() const 26629: { return _M_a; } 26629: 26629: result_type 26629: b() const 26629: { return _M_b; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _IntType _M_a; 26629: _IntType _M_b; 26629: }; 26629: 26629: public: 26629: 26629: 26629: 26629: uniform_int_distribution() : uniform_int_distribution(0) { } 26629: 26629: 26629: 26629: 26629: explicit 26629: uniform_int_distribution(_IntType __a, 26629: _IntType __b 26629: = __gnu_cxx::__int_traits<_IntType>::__max) 26629: : _M_param(__a, __b) 26629: { } 26629: 26629: explicit 26629: uniform_int_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: reset() { } 26629: 26629: result_type 26629: a() const 26629: { return _M_param.a(); } 26629: 26629: result_type 26629: b() const 26629: { return _M_param.b(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return this->a(); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return this->b(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomBitGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomBitGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomBitGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomBitGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomBitGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const uniform_int_distribution& __d1, 26629: const uniform_int_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomBitGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: 26629: 26629: 26629: 26629: template 26629: static _Up 26629: _S_nd(_Urbg& __g, _Up __range) 26629: { 26629: using _Up_traits = __gnu_cxx::__int_traits<_Up>; 26629: using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; 26629: static_assert(!_Up_traits::__is_signed, "U must be unsigned"); 26629: static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); 26629: static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), 26629: "W must be twice as wide as U"); 26629: 26629: 26629: 26629: 26629: _Wp __product = _Wp(__g()) * _Wp(__range); 26629: _Up __low = _Up(__product); 26629: if (__low < __range) 26629: { 26629: _Up __threshold = -__range % __range; 26629: while (__low < __threshold) 26629: { 26629: __product = _Wp(__g()) * _Wp(__range); 26629: __low = _Up(__product); 26629: } 26629: } 26629: return __product >> _Up_traits::__digits; 26629: } 26629: }; 26629: 26629: template 26629: template 26629: typename uniform_int_distribution<_IntType>::result_type 26629: uniform_int_distribution<_IntType>:: 26629: operator()(_UniformRandomBitGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 26629: typedef typename make_unsigned::type __utype; 26629: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 26629: 26629: constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); 26629: constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); 26629: static_assert( __urngmin < __urngmax, 26629: "Uniform random bit generator must define min() < max()"); 26629: constexpr __uctype __urngrange = __urngmax - __urngmin; 26629: 26629: const __uctype __urange 26629: = __uctype(__param.b()) - __uctype(__param.a()); 26629: 26629: __uctype __ret; 26629: if (__urngrange > __urange) 26629: { 26629: 26629: 26629: const __uctype __uerange = __urange + 1; 26629: # 312 "/usr/include/c++/12/bits/uniform_int_dist.h" 3 26629: if constexpr (__urngrange == 0xffffffffU) 26629: { 26629: 26629: 26629: unsigned int __u32erange = __uerange; 26629: __ret = _S_nd(__urng, __u32erange); 26629: } 26629: else 26629: 26629: { 26629: 26629: const __uctype __scaling = __urngrange / __uerange; 26629: const __uctype __past = __uerange * __scaling; 26629: do 26629: __ret = __uctype(__urng()) - __urngmin; 26629: while (__ret >= __past); 26629: __ret /= __scaling; 26629: } 26629: } 26629: else if (__urngrange < __urange) 26629: { 26629: # 348 "/usr/include/c++/12/bits/uniform_int_dist.h" 3 26629: __uctype __tmp; 26629: do 26629: { 26629: const __uctype __uerngrange = __urngrange + 1; 26629: __tmp = (__uerngrange * operator() 26629: (__urng, param_type(0, __urange / __uerngrange))); 26629: __ret = __tmp + (__uctype(__urng()) - __urngmin); 26629: } 26629: while (__ret > __urange || __ret < __tmp); 26629: } 26629: else 26629: __ret = __uctype(__urng()) - __urngmin; 26629: 26629: return __ret + __param.a(); 26629: } 26629: 26629: 26629: template 26629: template 26629: void 26629: uniform_int_distribution<_IntType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomBitGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: 26629: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 26629: typedef typename make_unsigned::type __utype; 26629: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 26629: 26629: static_assert( __urng.min() < __urng.max(), 26629: "Uniform random bit generator must define min() < max()"); 26629: 26629: constexpr __uctype __urngmin = __urng.min(); 26629: constexpr __uctype __urngmax = __urng.max(); 26629: constexpr __uctype __urngrange = __urngmax - __urngmin; 26629: const __uctype __urange 26629: = __uctype(__param.b()) - __uctype(__param.a()); 26629: 26629: __uctype __ret; 26629: 26629: if (__urngrange > __urange) 26629: { 26629: if (__detail::_Power_of_2(__urngrange + 1) 26629: && __detail::_Power_of_2(__urange + 1)) 26629: { 26629: while (__f != __t) 26629: { 26629: __ret = __uctype(__urng()) - __urngmin; 26629: *__f++ = (__ret & __urange) + __param.a(); 26629: } 26629: } 26629: else 26629: { 26629: 26629: const __uctype __uerange = __urange + 1; 26629: const __uctype __scaling = __urngrange / __uerange; 26629: const __uctype __past = __uerange * __scaling; 26629: while (__f != __t) 26629: { 26629: do 26629: __ret = __uctype(__urng()) - __urngmin; 26629: while (__ret >= __past); 26629: *__f++ = __ret / __scaling + __param.a(); 26629: } 26629: } 26629: } 26629: else if (__urngrange < __urange) 26629: { 26629: # 433 "/usr/include/c++/12/bits/uniform_int_dist.h" 3 26629: __uctype __tmp; 26629: while (__f != __t) 26629: { 26629: do 26629: { 26629: constexpr __uctype __uerngrange = __urngrange + 1; 26629: __tmp = (__uerngrange * operator() 26629: (__urng, param_type(0, __urange / __uerngrange))); 26629: __ret = __tmp + (__uctype(__urng()) - __urngmin); 26629: } 26629: while (__ret > __urange || __ret < __tmp); 26629: *__f++ = __ret; 26629: } 26629: } 26629: else 26629: while (__f != __t) 26629: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 26629: } 26629: 26629: 26629: 26629: 26629: } 26629: # 66 "/usr/include/c++/12/bits/stl_algo.h" 2 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cstdlib" 1 3 26629: # 39 "/usr/include/c++/12/cstdlib" 3 26629: 26629: # 40 "/usr/include/c++/12/cstdlib" 3 26629: # 75 "/usr/include/c++/12/cstdlib" 3 26629: # 1 "/usr/include/stdlib.h" 1 3 4 26629: # 26 "/usr/include/stdlib.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 26629: # 27 "/usr/include/stdlib.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 214 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 3 4 26629: typedef unsigned int size_t; 26629: # 33 "/usr/include/stdlib.h" 2 3 4 26629: 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4 26629: # 41 "/usr/include/stdlib.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4 26629: # 42 "/usr/include/stdlib.h" 2 3 4 26629: # 56 "/usr/include/stdlib.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 26629: # 52 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 26629: # 25 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 2 3 4 26629: # 214 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 26629: typedef float _Float32; 26629: # 238 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 26629: typedef long double _Float64; 26629: # 268 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 26629: typedef double _Float32x; 26629: # 53 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 2 3 4 26629: # 57 "/usr/include/stdlib.h" 2 3 4 26629: 26629: 26629: typedef struct 26629: { 26629: int quot; 26629: int rem; 26629: } div_t; 26629: 26629: 26629: 26629: typedef struct 26629: { 26629: long int quot; 26629: long int rem; 26629: } ldiv_t; 26629: 26629: 26629: 26629: 26629: 26629: __extension__ typedef struct 26629: { 26629: long long int quot; 26629: long long int rem; 26629: } lldiv_t; 26629: # 98 "/usr/include/stdlib.h" 3 4 26629: extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern double atof (const char *__nptr) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: extern int atoi (const char *__nptr) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: extern long int atol (const char *__nptr) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: __extension__ extern long long int atoll (const char *__nptr) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern double strtod (const char *__restrict __nptr, 26629: char **__restrict __endptr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern float strtof (const char *__restrict __nptr, 26629: char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: extern long double strtold (const char *__restrict __nptr, 26629: char **__restrict __endptr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: # 141 "/usr/include/stdlib.h" 3 4 26629: extern _Float32 strtof32 (const char *__restrict __nptr, 26629: char **__restrict __endptr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern _Float64 strtof64 (const char *__restrict __nptr, 26629: char **__restrict __endptr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: # 159 "/usr/include/stdlib.h" 3 4 26629: extern _Float32x strtof32x (const char *__restrict __nptr, 26629: char **__restrict __endptr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: # 177 "/usr/include/stdlib.h" 3 4 26629: extern long int strtol (const char *__restrict __nptr, 26629: char **__restrict __endptr, int __base) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: extern unsigned long int strtoul (const char *__restrict __nptr, 26629: char **__restrict __endptr, int __base) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: __extension__ 26629: extern long long int strtoq (const char *__restrict __nptr, 26629: char **__restrict __endptr, int __base) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: __extension__ 26629: extern unsigned long long int strtouq (const char *__restrict __nptr, 26629: char **__restrict __endptr, int __base) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: __extension__ 26629: extern long long int strtoll (const char *__restrict __nptr, 26629: char **__restrict __endptr, int __base) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: __extension__ 26629: extern unsigned long long int strtoull (const char *__restrict __nptr, 26629: char **__restrict __endptr, int __base) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: extern int strfromd (char *__dest, size_t __size, const char *__format, 26629: double __f) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))); 26629: 26629: extern int strfromf (char *__dest, size_t __size, const char *__format, 26629: float __f) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))); 26629: 26629: extern int strfroml (char *__dest, size_t __size, const char *__format, 26629: long double __f) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))); 26629: # 233 "/usr/include/stdlib.h" 3 4 26629: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 26629: _Float32 __f) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))); 26629: 26629: 26629: 26629: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 26629: _Float64 __f) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))); 26629: # 251 "/usr/include/stdlib.h" 3 4 26629: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 26629: _Float32x __f) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))); 26629: # 273 "/usr/include/stdlib.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 1 3 4 26629: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 1 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 3 4 26629: struct __locale_struct 26629: { 26629: 26629: struct __locale_data *__locales[13]; 26629: 26629: 26629: const unsigned short int *__ctype_b; 26629: const int *__ctype_tolower; 26629: const int *__ctype_toupper; 26629: 26629: 26629: const char *__names[13]; 26629: }; 26629: 26629: typedef struct __locale_struct *__locale_t; 26629: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 2 3 4 26629: 26629: typedef __locale_t locale_t; 26629: # 274 "/usr/include/stdlib.h" 2 3 4 26629: 26629: extern long int strtol_l (const char *__restrict __nptr, 26629: char **__restrict __endptr, int __base, 26629: locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 26629: 26629: extern unsigned long int strtoul_l (const char *__restrict __nptr, 26629: char **__restrict __endptr, 26629: int __base, locale_t __loc) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 26629: 26629: __extension__ 26629: extern long long int strtoll_l (const char *__restrict __nptr, 26629: char **__restrict __endptr, int __base, 26629: locale_t __loc) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 26629: 26629: __extension__ 26629: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 26629: char **__restrict __endptr, 26629: int __base, locale_t __loc) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 26629: 26629: extern double strtod_l (const char *__restrict __nptr, 26629: char **__restrict __endptr, locale_t __loc) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: 26629: extern float strtof_l (const char *__restrict __nptr, 26629: char **__restrict __endptr, locale_t __loc) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: 26629: extern long double strtold_l (const char *__restrict __nptr, 26629: char **__restrict __endptr, 26629: locale_t __loc) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: # 317 "/usr/include/stdlib.h" 3 4 26629: extern _Float32 strtof32_l (const char *__restrict __nptr, 26629: char **__restrict __endptr, 26629: locale_t __loc) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: 26629: 26629: 26629: extern _Float64 strtof64_l (const char *__restrict __nptr, 26629: char **__restrict __endptr, 26629: locale_t __loc) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: # 338 "/usr/include/stdlib.h" 3 4 26629: extern _Float32x strtof32x_l (const char *__restrict __nptr, 26629: char **__restrict __endptr, 26629: locale_t __loc) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: # 361 "/usr/include/stdlib.h" 3 4 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) 26629: { 26629: return (int) strtol (__nptr, (char **) __null, 10); 26629: } 26629: extern __inline __attribute__ ((__gnu_inline__)) long int 26629: __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) 26629: { 26629: return strtol (__nptr, (char **) __null, 10); 26629: } 26629: 26629: 26629: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 26629: __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) 26629: { 26629: return strtoll (__nptr, (char **) __null, 10); 26629: } 26629: # 386 "/usr/include/stdlib.h" 3 4 26629: extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: extern long int a64l (const char *__s) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: 26629: typedef __u_char u_char; 26629: typedef __u_short u_short; 26629: typedef __u_int u_int; 26629: typedef __u_long u_long; 26629: typedef __quad_t quad_t; 26629: typedef __u_quad_t u_quad_t; 26629: typedef __fsid_t fsid_t; 26629: 26629: 26629: typedef __loff_t loff_t; 26629: 26629: 26629: 26629: 26629: typedef __ino_t ino_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef __ino64_t ino64_t; 26629: 26629: 26629: 26629: 26629: typedef __dev_t dev_t; 26629: 26629: 26629: 26629: 26629: typedef __gid_t gid_t; 26629: 26629: 26629: 26629: 26629: typedef __mode_t mode_t; 26629: 26629: 26629: 26629: 26629: typedef __nlink_t nlink_t; 26629: 26629: 26629: 26629: 26629: typedef __uid_t uid_t; 26629: 26629: 26629: 26629: 26629: 26629: typedef __off_t off_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef __off64_t off64_t; 26629: 26629: 26629: 26629: 26629: typedef __pid_t pid_t; 26629: 26629: 26629: 26629: 26629: 26629: typedef __id_t id_t; 26629: 26629: 26629: 26629: 26629: typedef __ssize_t ssize_t; 26629: 26629: 26629: 26629: 26629: 26629: typedef __daddr_t daddr_t; 26629: typedef __caddr_t caddr_t; 26629: 26629: 26629: 26629: 26629: 26629: typedef __key_t key_t; 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clock_t.h" 1 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef __clock_t clock_t; 26629: # 127 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clockid_t.h" 1 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef __clockid_t clockid_t; 26629: # 129 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 1 3 4 26629: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 3 4 26629: typedef __time_t time_t; 26629: # 130 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/timer_t.h" 1 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef __timer_t timer_t; 26629: # 131 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 26629: 26629: 26629: 26629: typedef __useconds_t useconds_t; 26629: 26629: 26629: 26629: typedef __suseconds_t suseconds_t; 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 145 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 26629: 26629: 26629: 26629: typedef unsigned long int ulong; 26629: typedef unsigned short int ushort; 26629: typedef unsigned int uint; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef __uint8_t u_int8_t; 26629: typedef __uint16_t u_int16_t; 26629: typedef __uint32_t u_int32_t; 26629: typedef __uint64_t u_int64_t; 26629: 26629: 26629: typedef int register_t __attribute__ ((__mode__ (__word__))); 26629: # 176 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 26629: # 1 "/usr/include/endian.h" 1 3 4 26629: # 24 "/usr/include/endian.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4 26629: # 35 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/endianness.h" 1 3 4 26629: # 36 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 2 3 4 26629: # 25 "/usr/include/endian.h" 2 3 4 26629: # 35 "/usr/include/endian.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4 26629: # 33 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 26629: static __inline __uint16_t 26629: __bswap_16 (__uint16_t __bsx) 26629: { 26629: 26629: return __builtin_bswap16 (__bsx); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: static __inline __uint32_t 26629: __bswap_32 (__uint32_t __bsx) 26629: { 26629: 26629: return __builtin_bswap32 (__bsx); 26629: 26629: 26629: 26629: } 26629: # 69 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 26629: __extension__ static __inline __uint64_t 26629: __bswap_64 (__uint64_t __bsx) 26629: { 26629: 26629: return __builtin_bswap64 (__bsx); 26629: 26629: 26629: 26629: } 26629: # 36 "/usr/include/endian.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 1 3 4 26629: # 32 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 3 4 26629: static __inline __uint16_t 26629: __uint16_identity (__uint16_t __x) 26629: { 26629: return __x; 26629: } 26629: 26629: static __inline __uint32_t 26629: __uint32_identity (__uint32_t __x) 26629: { 26629: return __x; 26629: } 26629: 26629: static __inline __uint64_t 26629: __uint64_identity (__uint64_t __x) 26629: { 26629: return __x; 26629: } 26629: # 37 "/usr/include/endian.h" 2 3 4 26629: # 177 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4 26629: # 30 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4 26629: # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 1 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__sigset_t.h" 1 3 4 26629: 26629: 26629: 26629: 26629: typedef struct 26629: { 26629: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 26629: } __sigset_t; 26629: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 2 3 4 26629: 26629: 26629: typedef __sigset_t sigset_t; 26629: # 34 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timeval.h" 1 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct timeval 26629: { 26629: 26629: 26629: 26629: 26629: __time_t tv_sec; 26629: __suseconds_t tv_usec; 26629: 26629: }; 26629: # 38 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 1 3 4 26629: # 11 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 26629: struct timespec 26629: { 26629: 26629: 26629: 26629: __time_t tv_sec; 26629: 26629: 26629: 26629: 26629: __syscall_slong_t tv_nsec; 26629: # 31 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 26629: }; 26629: # 40 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 26629: # 49 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 26629: typedef long int __fd_mask; 26629: # 59 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 26629: typedef struct 26629: { 26629: 26629: 26629: 26629: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 26629: 26629: 26629: 26629: 26629: 26629: } fd_set; 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef __fd_mask fd_mask; 26629: # 91 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 26629: extern "C" { 26629: # 102 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 26629: extern int select (int __nfds, fd_set *__restrict __readfds, 26629: fd_set *__restrict __writefds, 26629: fd_set *__restrict __exceptfds, 26629: struct timeval *__restrict __timeout); 26629: # 127 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 26629: extern int pselect (int __nfds, fd_set *__restrict __readfds, 26629: fd_set *__restrict __writefds, 26629: fd_set *__restrict __exceptfds, 26629: const struct timespec *__restrict __timeout, 26629: const __sigset_t *__restrict __sigmask); 26629: # 150 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 3 4 26629: extern long int __fdelt_chk (long int __d); 26629: extern long int __fdelt_warn (long int __d) 26629: __attribute__((__warning__ ("bit outside of fd_set selected"))); 26629: # 151 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 26629: 26629: 26629: } 26629: # 180 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: typedef __blksize_t blksize_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef __blkcnt_t blkcnt_t; 26629: 26629: 26629: 26629: typedef __fsblkcnt_t fsblkcnt_t; 26629: 26629: 26629: 26629: typedef __fsfilcnt_t fsfilcnt_t; 26629: # 219 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 26629: typedef __blkcnt64_t blkcnt64_t; 26629: typedef __fsblkcnt64_t fsblkcnt64_t; 26629: typedef __fsfilcnt64_t fsfilcnt64_t; 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4 26629: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 1 3 4 26629: # 44 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 1 3 4 26629: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 2 3 4 26629: # 45 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 1 3 4 26629: # 25 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 3 4 26629: typedef union 26629: { 26629: __extension__ unsigned long long int __value64; 26629: struct 26629: { 26629: unsigned int __low; 26629: unsigned int __high; 26629: } __value32; 26629: } __atomic_wide_counter; 26629: # 47 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 26629: 26629: 26629: 26629: 26629: typedef struct __pthread_internal_list 26629: { 26629: struct __pthread_internal_list *__prev; 26629: struct __pthread_internal_list *__next; 26629: } __pthread_list_t; 26629: 26629: typedef struct __pthread_internal_slist 26629: { 26629: struct __pthread_internal_slist *__next; 26629: } __pthread_slist_t; 26629: # 76 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 1 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 26629: struct __pthread_mutex_s 26629: { 26629: int __lock ; 26629: unsigned int __count; 26629: int __owner; 26629: # 58 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 26629: int __kind; 26629: 26629: unsigned int __nusers; 26629: 26629: 26629: 26629: 26629: 26629: 26629: __extension__ union 26629: { 26629: int __spins; 26629: __pthread_slist_t __list; 26629: }; 26629: 26629: 26629: }; 26629: # 77 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 26629: # 89 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 1 3 4 26629: # 29 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 26629: struct __pthread_rwlock_arch_t 26629: { 26629: unsigned int __readers; 26629: unsigned int __writers; 26629: unsigned int __wrphase_futex; 26629: unsigned int __writers_futex; 26629: unsigned int __pad3; 26629: unsigned int __pad4; 26629: # 45 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 26629: unsigned char __flags; 26629: unsigned char __shared; 26629: unsigned char __pad1; 26629: unsigned char __pad2; 26629: 26629: int __cur_writer; 26629: }; 26629: # 90 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 26629: 26629: 26629: 26629: 26629: struct __pthread_cond_s 26629: { 26629: __atomic_wide_counter __wseq; 26629: __atomic_wide_counter __g1_start; 26629: unsigned int __g_refs[2] ; 26629: unsigned int __g_size[2]; 26629: unsigned int __g1_orig_size; 26629: unsigned int __wrefs; 26629: unsigned int __g_signals[2]; 26629: }; 26629: 26629: typedef unsigned int __tss_t; 26629: typedef unsigned long int __thrd_t; 26629: 26629: typedef struct 26629: { 26629: int __data ; 26629: } __once_flag; 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 2 3 4 26629: 26629: 26629: 26629: typedef unsigned long int pthread_t; 26629: 26629: 26629: 26629: 26629: typedef union 26629: { 26629: char __size[4]; 26629: int __align; 26629: } pthread_mutexattr_t; 26629: 26629: 26629: 26629: 26629: typedef union 26629: { 26629: char __size[4]; 26629: int __align; 26629: } pthread_condattr_t; 26629: 26629: 26629: 26629: typedef unsigned int pthread_key_t; 26629: 26629: 26629: 26629: typedef int pthread_once_t; 26629: 26629: 26629: union pthread_attr_t 26629: { 26629: char __size[36]; 26629: long int __align; 26629: }; 26629: 26629: typedef union pthread_attr_t pthread_attr_t; 26629: 26629: 26629: 26629: 26629: typedef union 26629: { 26629: struct __pthread_mutex_s __data; 26629: char __size[24]; 26629: long int __align; 26629: } pthread_mutex_t; 26629: 26629: 26629: typedef union 26629: { 26629: struct __pthread_cond_s __data; 26629: char __size[48]; 26629: __extension__ long long int __align; 26629: } pthread_cond_t; 26629: 26629: 26629: 26629: 26629: 26629: typedef union 26629: { 26629: struct __pthread_rwlock_arch_t __data; 26629: char __size[32]; 26629: long int __align; 26629: } pthread_rwlock_t; 26629: 26629: typedef union 26629: { 26629: char __size[8]; 26629: long int __align; 26629: } pthread_rwlockattr_t; 26629: 26629: 26629: 26629: 26629: 26629: typedef volatile int pthread_spinlock_t; 26629: 26629: 26629: 26629: 26629: typedef union 26629: { 26629: char __size[20]; 26629: long int __align; 26629: } pthread_barrier_t; 26629: 26629: typedef union 26629: { 26629: char __size[4]; 26629: int __align; 26629: } pthread_barrierattr_t; 26629: # 228 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 26629: 26629: 26629: } 26629: # 396 "/usr/include/stdlib.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long int random (void) noexcept (true); 26629: 26629: 26629: extern void srandom (unsigned int __seed) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern char *initstate (unsigned int __seed, char *__statebuf, 26629: size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct random_data 26629: { 26629: int32_t *fptr; 26629: int32_t *rptr; 26629: int32_t *state; 26629: int rand_type; 26629: int rand_deg; 26629: int rand_sep; 26629: int32_t *end_ptr; 26629: }; 26629: 26629: extern int random_r (struct random_data *__restrict __buf, 26629: int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 26629: size_t __statelen, 26629: struct random_data *__restrict __buf) 26629: noexcept (true) __attribute__ ((__nonnull__ (2, 4))); 26629: 26629: extern int setstate_r (char *__restrict __statebuf, 26629: struct random_data *__restrict __buf) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: 26629: extern int rand (void) noexcept (true); 26629: 26629: extern void srand (unsigned int __seed) noexcept (true); 26629: 26629: 26629: 26629: extern int rand_r (unsigned int *__seed) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern double drand48 (void) noexcept (true); 26629: extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern long int lrand48 (void) noexcept (true); 26629: extern long int nrand48 (unsigned short int __xsubi[3]) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern long int mrand48 (void) noexcept (true); 26629: extern long int jrand48 (unsigned short int __xsubi[3]) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern void srand48 (long int __seedval) noexcept (true); 26629: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: struct drand48_data 26629: { 26629: unsigned short int __x[3]; 26629: unsigned short int __old_x[3]; 26629: unsigned short int __c; 26629: unsigned short int __init; 26629: __extension__ unsigned long long int __a; 26629: 26629: }; 26629: 26629: 26629: extern int drand48_r (struct drand48_data *__restrict __buffer, 26629: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: extern int erand48_r (unsigned short int __xsubi[3], 26629: struct drand48_data *__restrict __buffer, 26629: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int lrand48_r (struct drand48_data *__restrict __buffer, 26629: long int *__restrict __result) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: extern int nrand48_r (unsigned short int __xsubi[3], 26629: struct drand48_data *__restrict __buffer, 26629: long int *__restrict __result) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int mrand48_r (struct drand48_data *__restrict __buffer, 26629: long int *__restrict __result) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: extern int jrand48_r (unsigned short int __xsubi[3], 26629: struct drand48_data *__restrict __buffer, 26629: long int *__restrict __result) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: extern int seed48_r (unsigned short int __seed16v[3], 26629: struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: extern int lcong48_r (unsigned short int __param[7], 26629: struct drand48_data *__buffer) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern __uint32_t arc4random (void) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: extern void arc4random_buf (void *__buf, size_t __size) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 26629: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: extern void *calloc (size_t __nmemb, size_t __size) 26629: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern void *realloc (void *__ptr, size_t __size) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 26629: 26629: 26629: extern void free (void *__ptr) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__alloc_size__ (2, 3))) 26629: __attribute__ ((__malloc__ (__builtin_free, 1))); 26629: 26629: 26629: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 26629: noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); 26629: 26629: 26629: 26629: # 1 "/usr/include/alloca.h" 1 3 4 26629: # 24 "/usr/include/alloca.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 25 "/usr/include/alloca.h" 2 3 4 26629: 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: 26629: extern void *alloca (size_t __size) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 588 "/usr/include/stdlib.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 26629: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern void *aligned_alloc (size_t __alignment, size_t __size) 26629: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 26629: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); 26629: 26629: 26629: 26629: extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: extern "C++" int at_quick_exit (void (*__func) (void)) 26629: noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 26629: # 630 "/usr/include/stdlib.h" 3 4 26629: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 26629: 26629: 26629: 26629: 26629: 26629: extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 26629: 26629: 26629: 26629: 26629: 26629: extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 26629: 26629: 26629: 26629: 26629: extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern char *secure_getenv (const char *__name) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: extern int setenv (const char *__name, const char *__value, int __replace) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int clearenv (void) noexcept (true); 26629: # 695 "/usr/include/stdlib.h" 3 4 26629: extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: # 708 "/usr/include/stdlib.h" 3 4 26629: extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 718 "/usr/include/stdlib.h" 3 4 26629: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 730 "/usr/include/stdlib.h" 3 4 26629: extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 740 "/usr/include/stdlib.h" 3 4 26629: extern int mkstemps64 (char *__template, int __suffixlen) 26629: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 751 "/usr/include/stdlib.h" 3 4 26629: extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 762 "/usr/include/stdlib.h" 3 4 26629: extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 772 "/usr/include/stdlib.h" 3 4 26629: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 782 "/usr/include/stdlib.h" 3 4 26629: extern int mkostemps (char *__template, int __suffixlen, int __flags) 26629: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 794 "/usr/include/stdlib.h" 3 4 26629: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 26629: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 804 "/usr/include/stdlib.h" 3 4 26629: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: extern char *canonicalize_file_name (const char *__name) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) 26629: __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); 26629: # 821 "/usr/include/stdlib.h" 3 4 26629: extern char *realpath (const char *__restrict __name, 26629: char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef int (*__compar_fn_t) (const void *, const void *); 26629: 26629: 26629: typedef __compar_fn_t comparison_fn_t; 26629: 26629: 26629: 26629: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 26629: 26629: 26629: 26629: 26629: extern void *bsearch (const void *__key, const void *__base, 26629: size_t __nmemb, size_t __size, __compar_fn_t __compar) 26629: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 1 3 4 26629: # 19 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 3 4 26629: extern __inline __attribute__ ((__gnu_inline__)) void * 26629: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 26629: __compar_fn_t __compar) 26629: { 26629: size_t __l, __u, __idx; 26629: const void *__p; 26629: int __comparison; 26629: 26629: __l = 0; 26629: __u = __nmemb; 26629: while (__l < __u) 26629: { 26629: __idx = (__l + __u) / 2; 26629: __p = (const void *) (((const char *) __base) + (__idx * __size)); 26629: __comparison = (*__compar) (__key, __p); 26629: if (__comparison < 0) 26629: __u = __idx; 26629: else if (__comparison > 0) 26629: __l = __idx + 1; 26629: else 26629: { 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wcast-qual" 26629: 26629: return (void *) __p; 26629: 26629: #pragma GCC diagnostic pop 26629: 26629: } 26629: } 26629: 26629: return __null; 26629: } 26629: # 847 "/usr/include/stdlib.h" 2 3 4 26629: 26629: 26629: 26629: 26629: extern void qsort (void *__base, size_t __nmemb, size_t __size, 26629: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 26629: 26629: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 26629: __compar_d_fn_t __compar, void *__arg) 26629: __attribute__ ((__nonnull__ (1, 4))); 26629: 26629: 26629: 26629: 26629: extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 26629: extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: __extension__ extern long long int llabs (long long int __x) 26629: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern div_t div (int __numer, int __denom) 26629: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 26629: extern ldiv_t ldiv (long int __numer, long int __denom) 26629: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: __extension__ extern lldiv_t lldiv (long long int __numer, 26629: long long int __denom) 26629: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 26629: # 893 "/usr/include/stdlib.h" 3 4 26629: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 26629: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 26629: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern char *gcvt (double __value, int __ndigit, char *__buf) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern char *qecvt (long double __value, int __ndigit, 26629: int *__restrict __decpt, int *__restrict __sign) 26629: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 26629: extern char *qfcvt (long double __value, int __ndigit, 26629: int *__restrict __decpt, int *__restrict __sign) 26629: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 26629: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 26629: int *__restrict __sign, char *__restrict __buf, 26629: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 26629: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 26629: int *__restrict __sign, char *__restrict __buf, 26629: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 26629: 26629: extern int qecvt_r (long double __value, int __ndigit, 26629: int *__restrict __decpt, int *__restrict __sign, 26629: char *__restrict __buf, size_t __len) 26629: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 26629: extern int qfcvt_r (long double __value, int __ndigit, 26629: int *__restrict __decpt, int *__restrict __sign, 26629: char *__restrict __buf, size_t __len) 26629: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 26629: 26629: 26629: 26629: 26629: 26629: extern int mblen (const char *__s, size_t __n) noexcept (true); 26629: 26629: 26629: extern int mbtowc (wchar_t *__restrict __pwc, 26629: const char *__restrict __s, size_t __n) noexcept (true); 26629: 26629: 26629: extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); 26629: 26629: 26629: 26629: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 26629: const char *__restrict __s, size_t __n) noexcept (true) 26629: __attribute__ ((__access__ (__read_only__, 2))); 26629: 26629: extern size_t wcstombs (char *__restrict __s, 26629: const wchar_t *__restrict __pwcs, size_t __n) 26629: noexcept (true) 26629: __attribute__ ((__access__ (__write_only__, 1, 3))) 26629: __attribute__ ((__access__ (__read_only__, 2))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 980 "/usr/include/stdlib.h" 3 4 26629: extern int getsubopt (char **__restrict __optionp, 26629: char *const *__restrict __tokens, 26629: char **__restrict __valuep) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int grantpt (int __fd) noexcept (true); 26629: 26629: 26629: 26629: extern int unlockpt (int __fd) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: 26629: 26629: extern int getpt (void); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int getloadavg (double __loadavg[], int __nelem) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: # 1036 "/usr/include/stdlib.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 3 4 26629: extern __inline __attribute__ ((__gnu_inline__)) double 26629: __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) 26629: { 26629: return strtod (__nptr, (char **) __null); 26629: } 26629: # 1037 "/usr/include/stdlib.h" 2 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 1 3 4 26629: # 23 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 3 4 26629: extern char *__realpath_chk (const char *__restrict __name, 26629: char *__restrict __resolved, 26629: size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") 26629: 26629: __attribute__ ((__warn_unused_result__)); 26629: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) 26629: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 26629: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char *__restrict __resolved) noexcept (true) 26629: { 26629: size_t sz = __builtin_object_size (__resolved, 2 > 1); 26629: 26629: if (sz == (size_t) -1) 26629: return __realpath_alias (__name, __resolved); 26629: 26629: 26629: 26629: 26629: 26629: return __realpath_chk (__name, __resolved, sz); 26629: } 26629: 26629: 26629: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 26629: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") 26629: 26629: __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") 26629: 26629: 26629: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) ptsname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") 26629: __attribute__ ((__warn_unused_result__)); 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 26629: __attribute__ ((__leaf__)) wctomb (char *__s, wchar_t __wchar) noexcept (true) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 26629: && 16 > __builtin_object_size (__s, 2 > 1)) 26629: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 26629: return __wctomb_alias (__s, __wchar); 26629: } 26629: 26629: 26629: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 26629: const char *__restrict __src, 26629: size_t __len, size_t __dstlen) noexcept (true) 26629: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 26629: extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 26629: 26629: 26629: 26629: __attribute__ ((__access__ (__read_only__, 2))); 26629: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 26629: 26629: 26629: 26629: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 26629: 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") 26629: 26629: 26629: 26629: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 26629: __attribute__ ((__leaf__)) mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) 26629: 26629: { 26629: if (__builtin_constant_p (__dst == __null) && __dst == __null) 26629: return __mbstowcs_nulldst (__dst, __src, __len); 26629: else 26629: 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))))) 26629: ; 26629: } 26629: 26629: extern size_t __wcstombs_chk (char *__restrict __dst, 26629: const wchar_t *__restrict __src, 26629: size_t __len, size_t __dstlen) noexcept (true) 26629: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 26629: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") 26629: 26629: 26629: 26629: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 26629: 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") 26629: 26629: 26629: 26629: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 26629: __attribute__ ((__leaf__)) wcstombs (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) 26629: 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: # 1041 "/usr/include/stdlib.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 26629: # 1044 "/usr/include/stdlib.h" 2 3 4 26629: 26629: 26629: 26629: 26629: } 26629: # 76 "/usr/include/c++/12/cstdlib" 2 3 26629: 26629: # 1 "/usr/include/c++/12/bits/std_abs.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/std_abs.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/std_abs.h" 3 26629: # 46 "/usr/include/c++/12/bits/std_abs.h" 3 26629: extern "C++" 26629: { 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: using ::abs; 26629: 26629: 26629: inline long 26629: abs(long __i) { return __builtin_labs(__i); } 26629: 26629: 26629: 26629: inline long long 26629: abs(long long __x) { return __builtin_llabs (__x); } 26629: # 70 "/usr/include/c++/12/bits/std_abs.h" 3 26629: inline constexpr double 26629: abs(double __x) 26629: { return __builtin_fabs(__x); } 26629: 26629: inline constexpr float 26629: abs(float __x) 26629: { return __builtin_fabsf(__x); } 26629: 26629: inline constexpr long double 26629: abs(long double __x) 26629: { return __builtin_fabsl(__x); } 26629: # 107 "/usr/include/c++/12/bits/std_abs.h" 3 26629: 26629: } 26629: } 26629: # 78 "/usr/include/c++/12/cstdlib" 2 3 26629: # 121 "/usr/include/c++/12/cstdlib" 3 26629: extern "C++" 26629: { 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: using ::div_t; 26629: using ::ldiv_t; 26629: 26629: using ::abort; 26629: 26629: using ::aligned_alloc; 26629: 26629: using ::atexit; 26629: 26629: 26629: using ::at_quick_exit; 26629: 26629: 26629: using ::atof; 26629: using ::atoi; 26629: using ::atol; 26629: using ::bsearch; 26629: using ::calloc; 26629: using ::div; 26629: using ::exit; 26629: using ::free; 26629: using ::getenv; 26629: using ::labs; 26629: using ::ldiv; 26629: using ::malloc; 26629: 26629: using ::mblen; 26629: using ::mbstowcs; 26629: using ::mbtowc; 26629: 26629: using ::qsort; 26629: 26629: 26629: using ::quick_exit; 26629: 26629: 26629: using ::rand; 26629: using ::realloc; 26629: using ::srand; 26629: using ::strtod; 26629: using ::strtol; 26629: using ::strtoul; 26629: using ::system; 26629: 26629: using ::wcstombs; 26629: using ::wctomb; 26629: 26629: 26629: 26629: inline ldiv_t 26629: div(long __i, long __j) { return ldiv(__i, __j); } 26629: 26629: 26629: 26629: 26629: } 26629: # 195 "/usr/include/c++/12/cstdlib" 3 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: using ::lldiv_t; 26629: 26629: 26629: 26629: 26629: 26629: using ::_Exit; 26629: 26629: 26629: 26629: using ::llabs; 26629: 26629: inline lldiv_t 26629: div(long long __n, long long __d) 26629: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 26629: 26629: using ::lldiv; 26629: # 227 "/usr/include/c++/12/cstdlib" 3 26629: using ::atoll; 26629: using ::strtoll; 26629: using ::strtoull; 26629: 26629: using ::strtof; 26629: using ::strtold; 26629: 26629: 26629: } 26629: 26629: namespace std 26629: { 26629: 26629: using ::__gnu_cxx::lldiv_t; 26629: 26629: using ::__gnu_cxx::_Exit; 26629: 26629: using ::__gnu_cxx::llabs; 26629: using ::__gnu_cxx::div; 26629: using ::__gnu_cxx::lldiv; 26629: 26629: using ::__gnu_cxx::atoll; 26629: using ::__gnu_cxx::strtof; 26629: using ::__gnu_cxx::strtoll; 26629: using ::__gnu_cxx::strtoull; 26629: using ::__gnu_cxx::strtold; 26629: } 26629: 26629: 26629: 26629: } 26629: # 70 "/usr/include/c++/12/bits/stl_algo.h" 2 3 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 26629: _Iterator __c, _Compare __comp) 26629: { 26629: if (__comp(__a, __b)) 26629: { 26629: if (__comp(__b, __c)) 26629: std::iter_swap(__result, __b); 26629: else if (__comp(__a, __c)) 26629: std::iter_swap(__result, __c); 26629: else 26629: std::iter_swap(__result, __a); 26629: } 26629: else if (__comp(__a, __c)) 26629: std::iter_swap(__result, __a); 26629: else if (__comp(__b, __c)) 26629: std::iter_swap(__result, __c); 26629: else 26629: std::iter_swap(__result, __b); 26629: } 26629: 26629: 26629: template 26629: 26629: inline _InputIterator 26629: __find_if_not(_InputIterator __first, _InputIterator __last, 26629: _Predicate __pred) 26629: { 26629: return std::__find_if(__first, __last, 26629: __gnu_cxx::__ops::__negate(__pred), 26629: std::__iterator_category(__first)); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _InputIterator 26629: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 26629: { 26629: for (; __len; --__len, (void) ++__first) 26629: if (!__pred(__first)) 26629: break; 26629: return __first; 26629: } 26629: # 141 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _ForwardIterator1 26629: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 26629: _BinaryPredicate __predicate) 26629: { 26629: 26629: if (__first1 == __last1 || __first2 == __last2) 26629: return __first1; 26629: 26629: 26629: _ForwardIterator2 __p1(__first2); 26629: if (++__p1 == __last2) 26629: return std::__find_if(__first1, __last1, 26629: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 26629: 26629: 26629: _ForwardIterator1 __current = __first1; 26629: 26629: for (;;) 26629: { 26629: __first1 = 26629: std::__find_if(__first1, __last1, 26629: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 26629: 26629: if (__first1 == __last1) 26629: return __last1; 26629: 26629: _ForwardIterator2 __p = __p1; 26629: __current = __first1; 26629: if (++__current == __last1) 26629: return __last1; 26629: 26629: while (__predicate(__current, __p)) 26629: { 26629: if (++__p == __last2) 26629: return __first1; 26629: if (++__current == __last1) 26629: return __last1; 26629: } 26629: ++__first1; 26629: } 26629: return __first1; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 26629: _Integer __count, _UnaryPredicate __unary_pred, 26629: std::forward_iterator_tag) 26629: { 26629: __first = std::__find_if(__first, __last, __unary_pred); 26629: while (__first != __last) 26629: { 26629: typename iterator_traits<_ForwardIterator>::difference_type 26629: __n = __count; 26629: _ForwardIterator __i = __first; 26629: ++__i; 26629: while (__i != __last && __n != 1 && __unary_pred(__i)) 26629: { 26629: ++__i; 26629: --__n; 26629: } 26629: if (__n == 1) 26629: return __first; 26629: if (__i == __last) 26629: return __last; 26629: __first = std::__find_if(++__i, __last, __unary_pred); 26629: } 26629: return __last; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _RandomAccessIter 26629: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 26629: _Integer __count, _UnaryPredicate __unary_pred, 26629: std::random_access_iterator_tag) 26629: { 26629: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 26629: _DistanceType; 26629: 26629: _DistanceType __tailSize = __last - __first; 26629: _DistanceType __remainder = __count; 26629: 26629: while (__remainder <= __tailSize) 26629: { 26629: __first += __remainder; 26629: __tailSize -= __remainder; 26629: 26629: 26629: _RandomAccessIter __backTrack = __first; 26629: while (__unary_pred(--__backTrack)) 26629: { 26629: if (--__remainder == 0) 26629: return (__first - __count); 26629: } 26629: __remainder = __count + 1 - (__first - __backTrack); 26629: } 26629: return __last; 26629: } 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __search_n(_ForwardIterator __first, _ForwardIterator __last, 26629: _Integer __count, 26629: _UnaryPredicate __unary_pred) 26629: { 26629: if (__count <= 0) 26629: return __first; 26629: 26629: if (__count == 1) 26629: return std::__find_if(__first, __last, __unary_pred); 26629: 26629: return std::__search_n_aux(__first, __last, __count, __unary_pred, 26629: std::__iterator_category(__first)); 26629: } 26629: 26629: 26629: template 26629: 26629: _ForwardIterator1 26629: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 26629: forward_iterator_tag, forward_iterator_tag, 26629: _BinaryPredicate __comp) 26629: { 26629: if (__first2 == __last2) 26629: return __last1; 26629: 26629: _ForwardIterator1 __result = __last1; 26629: while (1) 26629: { 26629: _ForwardIterator1 __new_result 26629: = std::__search(__first1, __last1, __first2, __last2, __comp); 26629: if (__new_result == __last1) 26629: return __result; 26629: else 26629: { 26629: __result = __new_result; 26629: __first1 = __new_result; 26629: ++__first1; 26629: } 26629: } 26629: } 26629: 26629: 26629: template 26629: 26629: _BidirectionalIterator1 26629: __find_end(_BidirectionalIterator1 __first1, 26629: _BidirectionalIterator1 __last1, 26629: _BidirectionalIterator2 __first2, 26629: _BidirectionalIterator2 __last2, 26629: bidirectional_iterator_tag, bidirectional_iterator_tag, 26629: _BinaryPredicate __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 26629: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 26629: 26629: _RevIterator1 __rlast1(__first1); 26629: _RevIterator2 __rlast2(__first2); 26629: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 26629: _RevIterator2(__last2), __rlast2, 26629: __comp); 26629: 26629: if (__rresult == __rlast1) 26629: return __last1; 26629: else 26629: { 26629: _BidirectionalIterator1 __result = __rresult.base(); 26629: std::advance(__result, -std::distance(__first2, __last2)); 26629: return __result; 26629: } 26629: } 26629: # 367 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator1 26629: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__find_end(__first1, __last1, __first2, __last2, 26629: std::__iterator_category(__first1), 26629: std::__iterator_category(__first2), 26629: __gnu_cxx::__ops::__iter_equal_to_iter()); 26629: } 26629: # 416 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator1 26629: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 26629: _BinaryPredicate __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__find_end(__first1, __last1, __first2, __last2, 26629: std::__iterator_category(__first1), 26629: std::__iterator_category(__first2), 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: # 452 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 26629: { return __last == std::find_if_not(__first, __last, __pred); } 26629: # 470 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 26629: { return __last == std::find_if(__first, __last, __pred); } 26629: # 489 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 26629: { return !std::none_of(__first, __last, __pred); } 26629: # 505 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _InputIterator 26629: find_if_not(_InputIterator __first, _InputIterator __last, 26629: _Predicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: return std::__find_if_not(__first, __last, 26629: __gnu_cxx::__ops::__pred_iter(__pred)); 26629: } 26629: # 530 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: is_partitioned(_InputIterator __first, _InputIterator __last, 26629: _Predicate __pred) 26629: { 26629: __first = std::find_if_not(__first, __last, __pred); 26629: if (__first == __last) 26629: return true; 26629: ++__first; 26629: return std::none_of(__first, __last, __pred); 26629: } 26629: # 552 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _ForwardIterator 26629: partition_point(_ForwardIterator __first, _ForwardIterator __last, 26629: _Predicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: typedef typename iterator_traits<_ForwardIterator>::difference_type 26629: _DistanceType; 26629: 26629: _DistanceType __len = std::distance(__first, __last); 26629: 26629: while (__len > 0) 26629: { 26629: _DistanceType __half = __len >> 1; 26629: _ForwardIterator __middle = __first; 26629: std::advance(__middle, __half); 26629: if (__pred(*__middle)) 26629: { 26629: __first = __middle; 26629: ++__first; 26629: __len = __len - __half - 1; 26629: } 26629: else 26629: __len = __half; 26629: } 26629: return __first; 26629: } 26629: 26629: 26629: template 26629: 26629: _OutputIterator 26629: __remove_copy_if(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _Predicate __pred) 26629: { 26629: for (; __first != __last; ++__first) 26629: if (!__pred(__first)) 26629: { 26629: *__result = *__first; 26629: ++__result; 26629: } 26629: return __result; 26629: } 26629: # 619 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: remove_copy(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, const _Tp& __value) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__remove_copy_if(__first, __last, __result, 26629: __gnu_cxx::__ops::__iter_equals_val(__value)); 26629: } 26629: # 652 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: remove_copy_if(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _Predicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__remove_copy_if(__first, __last, __result, 26629: __gnu_cxx::__ops::__pred_iter(__pred)); 26629: } 26629: # 687 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _OutputIterator 26629: copy_if(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _Predicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first != __last; ++__first) 26629: if (__pred(*__first)) 26629: { 26629: *__result = *__first; 26629: ++__result; 26629: } 26629: return __result; 26629: } 26629: 26629: template 26629: 26629: _OutputIterator 26629: __copy_n(_InputIterator __first, _Size __n, 26629: _OutputIterator __result, input_iterator_tag) 26629: { 26629: return std::__niter_wrap(__result, 26629: __copy_n_a(__first, __n, 26629: std::__niter_base(__result), true)); 26629: } 26629: 26629: template 26629: 26629: inline _OutputIterator 26629: __copy_n(_RandomAccessIterator __first, _Size __n, 26629: _OutputIterator __result, random_access_iterator_tag) 26629: { return std::copy(__first, __first + __n, __result); } 26629: # 743 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: const auto __n2 = std::__size_to_integer(__n); 26629: if (__n2 <= 0) 26629: return __result; 26629: 26629: ; 26629: ; 26629: 26629: return std::__copy_n(__first, __n2, __result, 26629: std::__iterator_category(__first)); 26629: } 26629: # 779 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: pair<_OutputIterator1, _OutputIterator2> 26629: partition_copy(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 26629: _Predicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first != __last; ++__first) 26629: if (__pred(*__first)) 26629: { 26629: *__out_true = *__first; 26629: ++__out_true; 26629: } 26629: else 26629: { 26629: *__out_false = *__first; 26629: ++__out_false; 26629: } 26629: 26629: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 26629: } 26629: # 830 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: remove(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __value) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__remove_if(__first, __last, 26629: __gnu_cxx::__ops::__iter_equals_val(__value)); 26629: } 26629: # 864 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: remove_if(_ForwardIterator __first, _ForwardIterator __last, 26629: _Predicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__remove_if(__first, __last, 26629: __gnu_cxx::__ops::__pred_iter(__pred)); 26629: } 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 26629: _BinaryPredicate __binary_pred) 26629: { 26629: if (__first == __last) 26629: return __last; 26629: _ForwardIterator __next = __first; 26629: while (++__next != __last) 26629: { 26629: if (__binary_pred(__first, __next)) 26629: return __first; 26629: __first = __next; 26629: } 26629: return __last; 26629: } 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __unique(_ForwardIterator __first, _ForwardIterator __last, 26629: _BinaryPredicate __binary_pred) 26629: { 26629: 26629: __first = std::__adjacent_find(__first, __last, __binary_pred); 26629: if (__first == __last) 26629: return __last; 26629: 26629: 26629: _ForwardIterator __dest = __first; 26629: ++__first; 26629: while (++__first != __last) 26629: if (!__binary_pred(__dest, __first)) 26629: *++__dest = std::move(*__first); 26629: return ++__dest; 26629: } 26629: # 933 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: unique(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__unique(__first, __last, 26629: __gnu_cxx::__ops::__iter_equal_to_iter()); 26629: } 26629: # 964 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: unique(_ForwardIterator __first, _ForwardIterator __last, 26629: _BinaryPredicate __binary_pred) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__unique(__first, __last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _OutputIterator 26629: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 26629: _OutputIterator __result, _BinaryPredicate __binary_pred, 26629: forward_iterator_tag, output_iterator_tag) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: _ForwardIterator __next = __first; 26629: *__result = *__first; 26629: while (++__next != __last) 26629: if (!__binary_pred(__first, __next)) 26629: { 26629: __first = __next; 26629: *++__result = *__first; 26629: } 26629: return ++__result; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _OutputIterator 26629: __unique_copy(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _BinaryPredicate __binary_pred, 26629: input_iterator_tag, output_iterator_tag) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: typename iterator_traits<_InputIterator>::value_type __value = *__first; 26629: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 26629: __rebound_pred 26629: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 26629: *__result = __value; 26629: while (++__first != __last) 26629: if (!__rebound_pred(__first, __value)) 26629: { 26629: __value = *__first; 26629: *++__result = __value; 26629: } 26629: return ++__result; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __unique_copy(_InputIterator __first, _InputIterator __last, 26629: _ForwardIterator __result, _BinaryPredicate __binary_pred, 26629: input_iterator_tag, forward_iterator_tag) 26629: { 26629: 26629: 26629: 26629: 26629: *__result = *__first; 26629: while (++__first != __last) 26629: if (!__binary_pred(__result, __first)) 26629: *++__result = *__first; 26629: return ++__result; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 26629: bidirectional_iterator_tag) 26629: { 26629: while (true) 26629: if (__first == __last || __first == --__last) 26629: return; 26629: else 26629: { 26629: std::iter_swap(__first, __last); 26629: ++__first; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: random_access_iterator_tag) 26629: { 26629: if (__first == __last) 26629: return; 26629: --__last; 26629: while (__first < __last) 26629: { 26629: std::iter_swap(__first, __last); 26629: ++__first; 26629: --__last; 26629: } 26629: } 26629: # 1125 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline void 26629: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 26629: { 26629: 26629: 26629: 26629: ; 26629: std::__reverse(__first, __last, std::__iterator_category(__first)); 26629: } 26629: # 1153 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _OutputIterator 26629: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 26629: _OutputIterator __result) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: while (__first != __last) 26629: { 26629: --__last; 26629: *__result = *__last; 26629: ++__result; 26629: } 26629: return __result; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _EuclideanRingElement 26629: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 26629: { 26629: while (__n != 0) 26629: { 26629: _EuclideanRingElement __t = __m % __n; 26629: __m = __n; 26629: __n = __t; 26629: } 26629: return __m; 26629: } 26629: 26629: inline namespace _V2 26629: { 26629: 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __rotate(_ForwardIterator __first, 26629: _ForwardIterator __middle, 26629: _ForwardIterator __last, 26629: forward_iterator_tag) 26629: { 26629: if (__first == __middle) 26629: return __last; 26629: else if (__last == __middle) 26629: return __first; 26629: 26629: _ForwardIterator __first2 = __middle; 26629: do 26629: { 26629: std::iter_swap(__first, __first2); 26629: ++__first; 26629: ++__first2; 26629: if (__first == __middle) 26629: __middle = __first2; 26629: } 26629: while (__first2 != __last); 26629: 26629: _ForwardIterator __ret = __first; 26629: 26629: __first2 = __middle; 26629: 26629: while (__first2 != __last) 26629: { 26629: std::iter_swap(__first, __first2); 26629: ++__first; 26629: ++__first2; 26629: if (__first == __middle) 26629: __middle = __first2; 26629: else if (__first2 == __last) 26629: __first2 = __middle; 26629: } 26629: return __ret; 26629: } 26629: 26629: 26629: template 26629: 26629: _BidirectionalIterator 26629: __rotate(_BidirectionalIterator __first, 26629: _BidirectionalIterator __middle, 26629: _BidirectionalIterator __last, 26629: bidirectional_iterator_tag) 26629: { 26629: 26629: 26629: 26629: 26629: if (__first == __middle) 26629: return __last; 26629: else if (__last == __middle) 26629: return __first; 26629: 26629: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 26629: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 26629: 26629: while (__first != __middle && __middle != __last) 26629: { 26629: std::iter_swap(__first, --__last); 26629: ++__first; 26629: } 26629: 26629: if (__first == __middle) 26629: { 26629: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 26629: return __last; 26629: } 26629: else 26629: { 26629: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 26629: return __first; 26629: } 26629: } 26629: 26629: 26629: template 26629: 26629: _RandomAccessIterator 26629: __rotate(_RandomAccessIterator __first, 26629: _RandomAccessIterator __middle, 26629: _RandomAccessIterator __last, 26629: random_access_iterator_tag) 26629: { 26629: 26629: 26629: 26629: 26629: if (__first == __middle) 26629: return __last; 26629: else if (__last == __middle) 26629: return __first; 26629: 26629: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 26629: _Distance; 26629: typedef typename iterator_traits<_RandomAccessIterator>::value_type 26629: _ValueType; 26629: 26629: _Distance __n = __last - __first; 26629: _Distance __k = __middle - __first; 26629: 26629: if (__k == __n - __k) 26629: { 26629: std::swap_ranges(__first, __middle, __middle); 26629: return __middle; 26629: } 26629: 26629: _RandomAccessIterator __p = __first; 26629: _RandomAccessIterator __ret = __first + (__last - __middle); 26629: 26629: for (;;) 26629: { 26629: if (__k < __n - __k) 26629: { 26629: if (__is_pod(_ValueType) && __k == 1) 26629: { 26629: _ValueType __t = std::move(*__p); 26629: std::move(__p + 1, __p + __n, __p); 26629: *(__p + __n - 1) = std::move(__t); 26629: return __ret; 26629: } 26629: _RandomAccessIterator __q = __p + __k; 26629: for (_Distance __i = 0; __i < __n - __k; ++ __i) 26629: { 26629: std::iter_swap(__p, __q); 26629: ++__p; 26629: ++__q; 26629: } 26629: __n %= __k; 26629: if (__n == 0) 26629: return __ret; 26629: std::swap(__n, __k); 26629: __k = __n - __k; 26629: } 26629: else 26629: { 26629: __k = __n - __k; 26629: if (__is_pod(_ValueType) && __k == 1) 26629: { 26629: _ValueType __t = std::move(*(__p + __n - 1)); 26629: std::move_backward(__p, __p + __n - 1, __p + __n); 26629: *__p = std::move(__t); 26629: return __ret; 26629: } 26629: _RandomAccessIterator __q = __p + __n; 26629: __p = __q - __k; 26629: for (_Distance __i = 0; __i < __n - __k; ++ __i) 26629: { 26629: --__p; 26629: --__q; 26629: std::iter_swap(__p, __q); 26629: } 26629: __n %= __k; 26629: if (__n == 0) 26629: return __ret; 26629: std::swap(__n, __k); 26629: } 26629: } 26629: } 26629: # 1385 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: rotate(_ForwardIterator __first, _ForwardIterator __middle, 26629: _ForwardIterator __last) 26629: { 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__rotate(__first, __middle, __last, 26629: std::__iterator_category(__first)); 26629: } 26629: 26629: } 26629: # 1423 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 26629: _ForwardIterator __last, _OutputIterator __result) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::copy(__first, __middle, 26629: std::copy(__middle, __last, __result)); 26629: } 26629: 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __partition(_ForwardIterator __first, _ForwardIterator __last, 26629: _Predicate __pred, forward_iterator_tag) 26629: { 26629: if (__first == __last) 26629: return __first; 26629: 26629: while (__pred(*__first)) 26629: if (++__first == __last) 26629: return __first; 26629: 26629: _ForwardIterator __next = __first; 26629: 26629: while (++__next != __last) 26629: if (__pred(*__next)) 26629: { 26629: std::iter_swap(__first, __next); 26629: ++__first; 26629: } 26629: 26629: return __first; 26629: } 26629: 26629: 26629: template 26629: 26629: _BidirectionalIterator 26629: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 26629: _Predicate __pred, bidirectional_iterator_tag) 26629: { 26629: while (true) 26629: { 26629: while (true) 26629: if (__first == __last) 26629: return __first; 26629: else if (__pred(*__first)) 26629: ++__first; 26629: else 26629: break; 26629: --__last; 26629: while (true) 26629: if (__first == __last) 26629: return __first; 26629: else if (!bool(__pred(*__last))) 26629: --__last; 26629: else 26629: break; 26629: std::iter_swap(__first, __last); 26629: ++__first; 26629: } 26629: } 26629: # 1503 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: _ForwardIterator 26629: __stable_partition_adaptive(_ForwardIterator __first, 26629: _ForwardIterator __last, 26629: _Predicate __pred, _Distance __len, 26629: _Pointer __buffer, 26629: _Distance __buffer_size) 26629: { 26629: if (__len == 1) 26629: return __first; 26629: 26629: if (__len <= __buffer_size) 26629: { 26629: _ForwardIterator __result1 = __first; 26629: _Pointer __result2 = __buffer; 26629: 26629: 26629: 26629: 26629: *__result2 = std::move(*__first); 26629: ++__result2; 26629: ++__first; 26629: for (; __first != __last; ++__first) 26629: if (__pred(__first)) 26629: { 26629: *__result1 = std::move(*__first); 26629: ++__result1; 26629: } 26629: else 26629: { 26629: *__result2 = std::move(*__first); 26629: ++__result2; 26629: } 26629: 26629: std::move(__buffer, __result2, __result1); 26629: return __result1; 26629: } 26629: 26629: _ForwardIterator __middle = __first; 26629: std::advance(__middle, __len / 2); 26629: _ForwardIterator __left_split = 26629: std::__stable_partition_adaptive(__first, __middle, __pred, 26629: __len / 2, __buffer, 26629: __buffer_size); 26629: 26629: 26629: 26629: _Distance __right_len = __len - __len / 2; 26629: _ForwardIterator __right_split = 26629: std::__find_if_not_n(__middle, __right_len, __pred); 26629: 26629: if (__right_len) 26629: __right_split = 26629: std::__stable_partition_adaptive(__right_split, __last, __pred, 26629: __right_len, 26629: __buffer, __buffer_size); 26629: 26629: return std::rotate(__left_split, __middle, __right_split); 26629: } 26629: 26629: template 26629: _ForwardIterator 26629: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 26629: _Predicate __pred) 26629: { 26629: __first = std::__find_if_not(__first, __last, __pred); 26629: 26629: if (__first == __last) 26629: return __first; 26629: 26629: typedef typename iterator_traits<_ForwardIterator>::value_type 26629: _ValueType; 26629: typedef typename iterator_traits<_ForwardIterator>::difference_type 26629: _DistanceType; 26629: 26629: _Temporary_buffer<_ForwardIterator, _ValueType> 26629: __buf(__first, std::distance(__first, __last)); 26629: return 26629: std::__stable_partition_adaptive(__first, __last, __pred, 26629: _DistanceType(__buf.requested_size()), 26629: __buf.begin(), 26629: _DistanceType(__buf.size())); 26629: } 26629: # 1605 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: inline _ForwardIterator 26629: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 26629: _Predicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__stable_partition(__first, __last, 26629: __gnu_cxx::__ops::__pred_iter(__pred)); 26629: } 26629: 26629: 26629: template 26629: 26629: void 26629: __heap_select(_RandomAccessIterator __first, 26629: _RandomAccessIterator __middle, 26629: _RandomAccessIterator __last, _Compare __comp) 26629: { 26629: std::__make_heap(__first, __middle, __comp); 26629: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 26629: if (__comp(__i, __first)) 26629: std::__pop_heap(__first, __middle, __i, __comp); 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: _RandomAccessIterator 26629: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 26629: _RandomAccessIterator __result_first, 26629: _RandomAccessIterator __result_last, 26629: _Compare __comp) 26629: { 26629: typedef typename iterator_traits<_InputIterator>::value_type 26629: _InputValueType; 26629: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 26629: typedef typename _RItTraits::difference_type _DistanceType; 26629: 26629: if (__result_first == __result_last) 26629: return __result_last; 26629: _RandomAccessIterator __result_real_last = __result_first; 26629: while (__first != __last && __result_real_last != __result_last) 26629: { 26629: *__result_real_last = *__first; 26629: ++__result_real_last; 26629: ++__first; 26629: } 26629: 26629: std::__make_heap(__result_first, __result_real_last, __comp); 26629: while (__first != __last) 26629: { 26629: if (__comp(__first, __result_first)) 26629: std::__adjust_heap(__result_first, _DistanceType(0), 26629: _DistanceType(__result_real_last 26629: - __result_first), 26629: _InputValueType(*__first), __comp); 26629: ++__first; 26629: } 26629: std::__sort_heap(__result_first, __result_real_last, __comp); 26629: return __result_real_last; 26629: } 26629: # 1693 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _RandomAccessIterator 26629: partial_sort_copy(_InputIterator __first, _InputIterator __last, 26629: _RandomAccessIterator __result_first, 26629: _RandomAccessIterator __result_last) 26629: { 26629: # 1708 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__partial_sort_copy(__first, __last, 26629: __result_first, __result_last, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 1743 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _RandomAccessIterator 26629: partial_sort_copy(_InputIterator __first, _InputIterator __last, 26629: _RandomAccessIterator __result_first, 26629: _RandomAccessIterator __result_last, 26629: _Compare __comp) 26629: { 26629: # 1760 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__partial_sort_copy(__first, __last, 26629: __result_first, __result_last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: 26629: template 26629: 26629: void 26629: __unguarded_linear_insert(_RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: typename iterator_traits<_RandomAccessIterator>::value_type 26629: __val = std::move(*__last); 26629: _RandomAccessIterator __next = __last; 26629: --__next; 26629: while (__comp(__val, __next)) 26629: { 26629: *__last = std::move(*__next); 26629: __last = __next; 26629: --__next; 26629: } 26629: *__last = std::move(__val); 26629: } 26629: 26629: 26629: template 26629: 26629: void 26629: __insertion_sort(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, _Compare __comp) 26629: { 26629: if (__first == __last) return; 26629: 26629: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 26629: { 26629: if (__comp(__i, __first)) 26629: { 26629: typename iterator_traits<_RandomAccessIterator>::value_type 26629: __val = std::move(*__i); 26629: std::move_backward(__first, __i, __i + 1); 26629: *__first = std::move(__val); 26629: } 26629: else 26629: std::__unguarded_linear_insert(__i, 26629: __gnu_cxx::__ops::__val_comp_iter(__comp)); 26629: } 26629: } 26629: 26629: 26629: template 26629: 26629: inline void 26629: __unguarded_insertion_sort(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, _Compare __comp) 26629: { 26629: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 26629: std::__unguarded_linear_insert(__i, 26629: __gnu_cxx::__ops::__val_comp_iter(__comp)); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: enum { _S_threshold = 16 }; 26629: 26629: 26629: template 26629: 26629: void 26629: __final_insertion_sort(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, _Compare __comp) 26629: { 26629: if (__last - __first > int(_S_threshold)) 26629: { 26629: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 26629: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 26629: __comp); 26629: } 26629: else 26629: std::__insertion_sort(__first, __last, __comp); 26629: } 26629: 26629: 26629: template 26629: 26629: _RandomAccessIterator 26629: __unguarded_partition(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, 26629: _RandomAccessIterator __pivot, _Compare __comp) 26629: { 26629: while (true) 26629: { 26629: while (__comp(__first, __pivot)) 26629: ++__first; 26629: --__last; 26629: while (__comp(__pivot, __last)) 26629: --__last; 26629: if (!(__first < __last)) 26629: return __first; 26629: std::iter_swap(__first, __last); 26629: ++__first; 26629: } 26629: } 26629: 26629: 26629: template 26629: 26629: inline _RandomAccessIterator 26629: __unguarded_partition_pivot(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, _Compare __comp) 26629: { 26629: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 26629: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 26629: __comp); 26629: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 26629: } 26629: 26629: template 26629: 26629: inline void 26629: __partial_sort(_RandomAccessIterator __first, 26629: _RandomAccessIterator __middle, 26629: _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: std::__heap_select(__first, __middle, __last, __comp); 26629: std::__sort_heap(__first, __middle, __comp); 26629: } 26629: 26629: 26629: template 26629: 26629: void 26629: __introsort_loop(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, 26629: _Size __depth_limit, _Compare __comp) 26629: { 26629: while (__last - __first > int(_S_threshold)) 26629: { 26629: if (__depth_limit == 0) 26629: { 26629: std::__partial_sort(__first, __last, __last, __comp); 26629: return; 26629: } 26629: --__depth_limit; 26629: _RandomAccessIterator __cut = 26629: std::__unguarded_partition_pivot(__first, __last, __comp); 26629: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 26629: __last = __cut; 26629: } 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: inline void 26629: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: if (__first != __last) 26629: { 26629: std::__introsort_loop(__first, __last, 26629: std::__lg(__last - __first) * 2, 26629: __comp); 26629: std::__final_insertion_sort(__first, __last, __comp); 26629: } 26629: } 26629: 26629: template 26629: 26629: void 26629: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 26629: _RandomAccessIterator __last, _Size __depth_limit, 26629: _Compare __comp) 26629: { 26629: while (__last - __first > 3) 26629: { 26629: if (__depth_limit == 0) 26629: { 26629: std::__heap_select(__first, __nth + 1, __last, __comp); 26629: 26629: std::iter_swap(__first, __nth); 26629: return; 26629: } 26629: --__depth_limit; 26629: _RandomAccessIterator __cut = 26629: std::__unguarded_partition_pivot(__first, __last, __comp); 26629: if (__cut <= __nth) 26629: __first = __cut; 26629: else 26629: __last = __cut; 26629: } 26629: std::__insertion_sort(__first, __last, __comp); 26629: } 26629: # 1991 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__lower_bound(__first, __last, __val, 26629: __gnu_cxx::__ops::__iter_comp_val(__comp)); 26629: } 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val, _Compare __comp) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::difference_type 26629: _DistanceType; 26629: 26629: _DistanceType __len = std::distance(__first, __last); 26629: 26629: while (__len > 0) 26629: { 26629: _DistanceType __half = __len >> 1; 26629: _ForwardIterator __middle = __first; 26629: std::advance(__middle, __half); 26629: if (__comp(__val, __middle)) 26629: __len = __half; 26629: else 26629: { 26629: __first = __middle; 26629: ++__first; 26629: __len = __len - __half - 1; 26629: } 26629: } 26629: return __first; 26629: } 26629: # 2047 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__upper_bound(__first, __last, __val, 26629: __gnu_cxx::__ops::__val_less_iter()); 26629: } 26629: # 2078 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__upper_bound(__first, __last, __val, 26629: __gnu_cxx::__ops::__val_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: 26629: pair<_ForwardIterator, _ForwardIterator> 26629: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val, 26629: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 26629: { 26629: typedef typename iterator_traits<_ForwardIterator>::difference_type 26629: _DistanceType; 26629: 26629: _DistanceType __len = std::distance(__first, __last); 26629: 26629: while (__len > 0) 26629: { 26629: _DistanceType __half = __len >> 1; 26629: _ForwardIterator __middle = __first; 26629: std::advance(__middle, __half); 26629: if (__comp_it_val(__middle, __val)) 26629: { 26629: __first = __middle; 26629: ++__first; 26629: __len = __len - __half - 1; 26629: } 26629: else if (__comp_val_it(__val, __middle)) 26629: __len = __half; 26629: else 26629: { 26629: _ForwardIterator __left 26629: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 26629: std::advance(__first, __len); 26629: _ForwardIterator __right 26629: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 26629: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 26629: } 26629: } 26629: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 26629: } 26629: # 2151 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline pair<_ForwardIterator, _ForwardIterator> 26629: equal_range(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__equal_range(__first, __last, __val, 26629: __gnu_cxx::__ops::__iter_less_val(), 26629: __gnu_cxx::__ops::__val_less_iter()); 26629: } 26629: # 2188 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline pair<_ForwardIterator, _ForwardIterator> 26629: equal_range(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: ; 26629: 26629: return std::__equal_range(__first, __last, __val, 26629: __gnu_cxx::__ops::__iter_comp_val(__comp), 26629: __gnu_cxx::__ops::__val_comp_iter(__comp)); 26629: } 26629: # 2222 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: bool 26629: binary_search(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: _ForwardIterator __i 26629: = std::__lower_bound(__first, __last, __val, 26629: __gnu_cxx::__ops::__iter_less_val()); 26629: return __i != __last && !(__val < *__i); 26629: } 26629: # 2256 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: bool 26629: binary_search(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __val, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: ; 26629: 26629: _ForwardIterator __i 26629: = std::__lower_bound(__first, __last, __val, 26629: __gnu_cxx::__ops::__iter_comp_val(__comp)); 26629: return __i != __last && !bool(__comp(__val, *__i)); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: void 26629: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result, _Compare __comp) 26629: { 26629: while (__first1 != __last1 && __first2 != __last2) 26629: { 26629: if (__comp(__first2, __first1)) 26629: { 26629: *__result = std::move(*__first2); 26629: ++__first2; 26629: } 26629: else 26629: { 26629: *__result = std::move(*__first1); 26629: ++__first1; 26629: } 26629: ++__result; 26629: } 26629: if (__first1 != __last1) 26629: std::move(__first1, __last1, __result); 26629: } 26629: 26629: 26629: template 26629: void 26629: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 26629: _BidirectionalIterator1 __last1, 26629: _BidirectionalIterator2 __first2, 26629: _BidirectionalIterator2 __last2, 26629: _BidirectionalIterator3 __result, 26629: _Compare __comp) 26629: { 26629: if (__first1 == __last1) 26629: { 26629: std::move_backward(__first2, __last2, __result); 26629: return; 26629: } 26629: else if (__first2 == __last2) 26629: return; 26629: 26629: --__last1; 26629: --__last2; 26629: while (true) 26629: { 26629: if (__comp(__last2, __last1)) 26629: { 26629: *--__result = std::move(*__last1); 26629: if (__first1 == __last1) 26629: { 26629: std::move_backward(__first2, ++__last2, __result); 26629: return; 26629: } 26629: --__last1; 26629: } 26629: else 26629: { 26629: *--__result = std::move(*__last2); 26629: if (__first2 == __last2) 26629: return; 26629: --__last2; 26629: } 26629: } 26629: } 26629: 26629: 26629: template 26629: _BidirectionalIterator1 26629: __rotate_adaptive(_BidirectionalIterator1 __first, 26629: _BidirectionalIterator1 __middle, 26629: _BidirectionalIterator1 __last, 26629: _Distance __len1, _Distance __len2, 26629: _BidirectionalIterator2 __buffer, 26629: _Distance __buffer_size) 26629: { 26629: _BidirectionalIterator2 __buffer_end; 26629: if (__len1 > __len2 && __len2 <= __buffer_size) 26629: { 26629: if (__len2) 26629: { 26629: __buffer_end = std::move(__middle, __last, __buffer); 26629: std::move_backward(__first, __middle, __last); 26629: return std::move(__buffer, __buffer_end, __first); 26629: } 26629: else 26629: return __first; 26629: } 26629: else if (__len1 <= __buffer_size) 26629: { 26629: if (__len1) 26629: { 26629: __buffer_end = std::move(__first, __middle, __buffer); 26629: std::move(__middle, __last, __first); 26629: return std::move_backward(__buffer, __buffer_end, __last); 26629: } 26629: else 26629: return __last; 26629: } 26629: else 26629: return std::rotate(__first, __middle, __last); 26629: } 26629: 26629: 26629: template 26629: void 26629: __merge_adaptive(_BidirectionalIterator __first, 26629: _BidirectionalIterator __middle, 26629: _BidirectionalIterator __last, 26629: _Distance __len1, _Distance __len2, 26629: _Pointer __buffer, _Distance __buffer_size, 26629: _Compare __comp) 26629: { 26629: if (__len1 <= __len2 && __len1 <= __buffer_size) 26629: { 26629: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 26629: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 26629: __first, __comp); 26629: } 26629: else if (__len2 <= __buffer_size) 26629: { 26629: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 26629: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 26629: __buffer_end, __last, __comp); 26629: } 26629: else 26629: { 26629: _BidirectionalIterator __first_cut = __first; 26629: _BidirectionalIterator __second_cut = __middle; 26629: _Distance __len11 = 0; 26629: _Distance __len22 = 0; 26629: if (__len1 > __len2) 26629: { 26629: __len11 = __len1 / 2; 26629: std::advance(__first_cut, __len11); 26629: __second_cut 26629: = std::__lower_bound(__middle, __last, *__first_cut, 26629: __gnu_cxx::__ops::__iter_comp_val(__comp)); 26629: __len22 = std::distance(__middle, __second_cut); 26629: } 26629: else 26629: { 26629: __len22 = __len2 / 2; 26629: std::advance(__second_cut, __len22); 26629: __first_cut 26629: = std::__upper_bound(__first, __middle, *__second_cut, 26629: __gnu_cxx::__ops::__val_comp_iter(__comp)); 26629: __len11 = std::distance(__first, __first_cut); 26629: } 26629: 26629: _BidirectionalIterator __new_middle 26629: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 26629: __len1 - __len11, __len22, __buffer, 26629: __buffer_size); 26629: std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, 26629: __len22, __buffer, __buffer_size, __comp); 26629: std::__merge_adaptive(__new_middle, __second_cut, __last, 26629: __len1 - __len11, 26629: __len2 - __len22, __buffer, 26629: __buffer_size, __comp); 26629: } 26629: } 26629: 26629: 26629: template 26629: void 26629: __merge_without_buffer(_BidirectionalIterator __first, 26629: _BidirectionalIterator __middle, 26629: _BidirectionalIterator __last, 26629: _Distance __len1, _Distance __len2, 26629: _Compare __comp) 26629: { 26629: if (__len1 == 0 || __len2 == 0) 26629: return; 26629: 26629: if (__len1 + __len2 == 2) 26629: { 26629: if (__comp(__middle, __first)) 26629: std::iter_swap(__first, __middle); 26629: return; 26629: } 26629: 26629: _BidirectionalIterator __first_cut = __first; 26629: _BidirectionalIterator __second_cut = __middle; 26629: _Distance __len11 = 0; 26629: _Distance __len22 = 0; 26629: if (__len1 > __len2) 26629: { 26629: __len11 = __len1 / 2; 26629: std::advance(__first_cut, __len11); 26629: __second_cut 26629: = std::__lower_bound(__middle, __last, *__first_cut, 26629: __gnu_cxx::__ops::__iter_comp_val(__comp)); 26629: __len22 = std::distance(__middle, __second_cut); 26629: } 26629: else 26629: { 26629: __len22 = __len2 / 2; 26629: std::advance(__second_cut, __len22); 26629: __first_cut 26629: = std::__upper_bound(__first, __middle, *__second_cut, 26629: __gnu_cxx::__ops::__val_comp_iter(__comp)); 26629: __len11 = std::distance(__first, __first_cut); 26629: } 26629: 26629: _BidirectionalIterator __new_middle 26629: = std::rotate(__first_cut, __middle, __second_cut); 26629: std::__merge_without_buffer(__first, __first_cut, __new_middle, 26629: __len11, __len22, __comp); 26629: std::__merge_without_buffer(__new_middle, __second_cut, __last, 26629: __len1 - __len11, __len2 - __len22, __comp); 26629: } 26629: 26629: template 26629: void 26629: __inplace_merge(_BidirectionalIterator __first, 26629: _BidirectionalIterator __middle, 26629: _BidirectionalIterator __last, 26629: _Compare __comp) 26629: { 26629: typedef typename iterator_traits<_BidirectionalIterator>::value_type 26629: _ValueType; 26629: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 26629: _DistanceType; 26629: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 26629: 26629: if (__first == __middle || __middle == __last) 26629: return; 26629: 26629: const _DistanceType __len1 = std::distance(__first, __middle); 26629: const _DistanceType __len2 = std::distance(__middle, __last); 26629: 26629: 26629: 26629: _TmpBuf __buf(__first, std::min(__len1, __len2)); 26629: 26629: if (__buf.begin() == 0) 26629: std::__merge_without_buffer 26629: (__first, __middle, __last, __len1, __len2, __comp); 26629: else 26629: std::__merge_adaptive 26629: (__first, __middle, __last, __len1, __len2, __buf.begin(), 26629: _DistanceType(__buf.size()), __comp); 26629: } 26629: # 2548 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: inline void 26629: inplace_merge(_BidirectionalIterator __first, 26629: _BidirectionalIterator __middle, 26629: _BidirectionalIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: std::__inplace_merge(__first, __middle, __last, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 2589 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: inline void 26629: inplace_merge(_BidirectionalIterator __first, 26629: _BidirectionalIterator __middle, 26629: _BidirectionalIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: std::__inplace_merge(__first, __middle, __last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: 26629: 26629: template 26629: _OutputIterator 26629: __move_merge(_InputIterator __first1, _InputIterator __last1, 26629: _InputIterator __first2, _InputIterator __last2, 26629: _OutputIterator __result, _Compare __comp) 26629: { 26629: while (__first1 != __last1 && __first2 != __last2) 26629: { 26629: if (__comp(__first2, __first1)) 26629: { 26629: *__result = std::move(*__first2); 26629: ++__first2; 26629: } 26629: else 26629: { 26629: *__result = std::move(*__first1); 26629: ++__first1; 26629: } 26629: ++__result; 26629: } 26629: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 26629: 26629: ; 26629: } 26629: 26629: template 26629: void 26629: __merge_sort_loop(_RandomAccessIterator1 __first, 26629: _RandomAccessIterator1 __last, 26629: _RandomAccessIterator2 __result, _Distance __step_size, 26629: _Compare __comp) 26629: { 26629: const _Distance __two_step = 2 * __step_size; 26629: 26629: while (__last - __first >= __two_step) 26629: { 26629: __result = std::__move_merge(__first, __first + __step_size, 26629: __first + __step_size, 26629: __first + __two_step, 26629: __result, __comp); 26629: __first += __two_step; 26629: } 26629: __step_size = std::min(_Distance(__last - __first), __step_size); 26629: 26629: std::__move_merge(__first, __first + __step_size, 26629: __first + __step_size, __last, __result, __comp); 26629: } 26629: 26629: template 26629: 26629: void 26629: __chunk_insertion_sort(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, 26629: _Distance __chunk_size, _Compare __comp) 26629: { 26629: while (__last - __first >= __chunk_size) 26629: { 26629: std::__insertion_sort(__first, __first + __chunk_size, __comp); 26629: __first += __chunk_size; 26629: } 26629: std::__insertion_sort(__first, __last, __comp); 26629: } 26629: 26629: enum { _S_chunk_size = 7 }; 26629: 26629: template 26629: void 26629: __merge_sort_with_buffer(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, 26629: _Pointer __buffer, _Compare __comp) 26629: { 26629: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 26629: _Distance; 26629: 26629: const _Distance __len = __last - __first; 26629: const _Pointer __buffer_last = __buffer + __len; 26629: 26629: _Distance __step_size = _S_chunk_size; 26629: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 26629: 26629: while (__step_size < __len) 26629: { 26629: std::__merge_sort_loop(__first, __last, __buffer, 26629: __step_size, __comp); 26629: __step_size *= 2; 26629: std::__merge_sort_loop(__buffer, __buffer_last, __first, 26629: __step_size, __comp); 26629: __step_size *= 2; 26629: } 26629: } 26629: 26629: template 26629: void 26629: __stable_sort_adaptive(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, 26629: _Pointer __buffer, _Distance __buffer_size, 26629: _Compare __comp) 26629: { 26629: const _Distance __len = (__last - __first + 1) / 2; 26629: const _RandomAccessIterator __middle = __first + __len; 26629: if (__len > __buffer_size) 26629: { 26629: std::__stable_sort_adaptive(__first, __middle, __buffer, 26629: __buffer_size, __comp); 26629: std::__stable_sort_adaptive(__middle, __last, __buffer, 26629: __buffer_size, __comp); 26629: } 26629: else 26629: { 26629: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 26629: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 26629: } 26629: 26629: std::__merge_adaptive(__first, __middle, __last, 26629: _Distance(__middle - __first), 26629: _Distance(__last - __middle), 26629: __buffer, __buffer_size, 26629: __comp); 26629: } 26629: 26629: 26629: template 26629: void 26629: __inplace_stable_sort(_RandomAccessIterator __first, 26629: _RandomAccessIterator __last, _Compare __comp) 26629: { 26629: if (__last - __first < 15) 26629: { 26629: std::__insertion_sort(__first, __last, __comp); 26629: return; 26629: } 26629: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 26629: std::__inplace_stable_sort(__first, __middle, __comp); 26629: std::__inplace_stable_sort(__middle, __last, __comp); 26629: std::__merge_without_buffer(__first, __middle, __last, 26629: __middle - __first, 26629: __last - __middle, 26629: __comp); 26629: } 26629: # 2763 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: bool 26629: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _Compare __comp) 26629: { 26629: while (__first1 != __last1 && __first2 != __last2) 26629: { 26629: if (__comp(__first2, __first1)) 26629: return false; 26629: if (!__comp(__first1, __first2)) 26629: ++__first2; 26629: ++__first1; 26629: } 26629: 26629: return __first2 == __last2; 26629: } 26629: # 2801 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: includes(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__includes(__first1, __last1, __first2, __last2, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 2846 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: includes(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__includes(__first1, __last1, __first2, __last2, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: # 2882 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: bool 26629: __next_permutation(_BidirectionalIterator __first, 26629: _BidirectionalIterator __last, _Compare __comp) 26629: { 26629: if (__first == __last) 26629: return false; 26629: _BidirectionalIterator __i = __first; 26629: ++__i; 26629: if (__i == __last) 26629: return false; 26629: __i = __last; 26629: --__i; 26629: 26629: for(;;) 26629: { 26629: _BidirectionalIterator __ii = __i; 26629: --__i; 26629: if (__comp(__i, __ii)) 26629: { 26629: _BidirectionalIterator __j = __last; 26629: while (!__comp(__i, --__j)) 26629: {} 26629: std::iter_swap(__i, __j); 26629: std::__reverse(__ii, __last, 26629: std::__iterator_category(__first)); 26629: return true; 26629: } 26629: if (__i == __first) 26629: { 26629: std::__reverse(__first, __last, 26629: std::__iterator_category(__first)); 26629: return false; 26629: } 26629: } 26629: } 26629: # 2932 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: next_permutation(_BidirectionalIterator __first, 26629: _BidirectionalIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__next_permutation 26629: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 2965 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: next_permutation(_BidirectionalIterator __first, 26629: _BidirectionalIterator __last, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__next_permutation 26629: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: 26629: bool 26629: __prev_permutation(_BidirectionalIterator __first, 26629: _BidirectionalIterator __last, _Compare __comp) 26629: { 26629: if (__first == __last) 26629: return false; 26629: _BidirectionalIterator __i = __first; 26629: ++__i; 26629: if (__i == __last) 26629: return false; 26629: __i = __last; 26629: --__i; 26629: 26629: for(;;) 26629: { 26629: _BidirectionalIterator __ii = __i; 26629: --__i; 26629: if (__comp(__ii, __i)) 26629: { 26629: _BidirectionalIterator __j = __last; 26629: while (!__comp(--__j, __i)) 26629: {} 26629: std::iter_swap(__i, __j); 26629: std::__reverse(__ii, __last, 26629: std::__iterator_category(__first)); 26629: return true; 26629: } 26629: if (__i == __first) 26629: { 26629: std::__reverse(__first, __last, 26629: std::__iterator_category(__first)); 26629: return false; 26629: } 26629: } 26629: } 26629: # 3035 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: prev_permutation(_BidirectionalIterator __first, 26629: _BidirectionalIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__prev_permutation(__first, __last, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 3068 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: prev_permutation(_BidirectionalIterator __first, 26629: _BidirectionalIterator __last, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__prev_permutation(__first, __last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _OutputIterator 26629: __replace_copy_if(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, 26629: _Predicate __pred, const _Tp& __new_value) 26629: { 26629: for (; __first != __last; ++__first, (void)++__result) 26629: if (__pred(__first)) 26629: *__result = __new_value; 26629: else 26629: *__result = *__first; 26629: return __result; 26629: } 26629: # 3120 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: replace_copy(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, 26629: const _Tp& __old_value, const _Tp& __new_value) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__replace_copy_if(__first, __last, __result, 26629: __gnu_cxx::__ops::__iter_equals_val(__old_value), 26629: __new_value); 26629: } 26629: # 3155 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: replace_copy_if(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, 26629: _Predicate __pred, const _Tp& __new_value) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__replace_copy_if(__first, __last, __result, 26629: __gnu_cxx::__ops::__pred_iter(__pred), 26629: __new_value); 26629: } 26629: # 3184 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 26629: { return std::is_sorted_until(__first, __last) == __last; } 26629: # 3199 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 26629: _Compare __comp) 26629: { return std::is_sorted_until(__first, __last, __comp) == __last; } 26629: 26629: template 26629: 26629: _ForwardIterator 26629: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 26629: _Compare __comp) 26629: { 26629: if (__first == __last) 26629: return __last; 26629: 26629: _ForwardIterator __next = __first; 26629: for (++__next; __next != __last; __first = __next, (void)++__next) 26629: if (__comp(__next, __first)) 26629: return __next; 26629: return __next; 26629: } 26629: # 3230 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__is_sorted_until(__first, __last, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 3255 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__is_sorted_until(__first, __last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: # 3281 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: constexpr 26629: inline pair 26629: minmax(const _Tp& __a, const _Tp& __b) 26629: { 26629: 26629: 26629: 26629: return __b < __a ? pair(__b, __a) 26629: : pair(__a, __b); 26629: } 26629: # 3302 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: constexpr 26629: inline pair 26629: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 26629: { 26629: return __comp(__b, __a) ? pair(__b, __a) 26629: : pair(__a, __b); 26629: } 26629: 26629: template 26629: constexpr 26629: pair<_ForwardIterator, _ForwardIterator> 26629: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 26629: _Compare __comp) 26629: { 26629: _ForwardIterator __next = __first; 26629: if (__first == __last 26629: || ++__next == __last) 26629: return std::make_pair(__first, __first); 26629: 26629: _ForwardIterator __min{}, __max{}; 26629: if (__comp(__next, __first)) 26629: { 26629: __min = __next; 26629: __max = __first; 26629: } 26629: else 26629: { 26629: __min = __first; 26629: __max = __next; 26629: } 26629: 26629: __first = __next; 26629: ++__first; 26629: 26629: while (__first != __last) 26629: { 26629: __next = __first; 26629: if (++__next == __last) 26629: { 26629: if (__comp(__first, __min)) 26629: __min = __first; 26629: else if (!__comp(__first, __max)) 26629: __max = __first; 26629: break; 26629: } 26629: 26629: if (__comp(__next, __first)) 26629: { 26629: if (__comp(__next, __min)) 26629: __min = __next; 26629: if (!__comp(__first, __max)) 26629: __max = __first; 26629: } 26629: else 26629: { 26629: if (__comp(__first, __min)) 26629: __min = __first; 26629: if (!__comp(__next, __max)) 26629: __max = __next; 26629: } 26629: 26629: __first = __next; 26629: ++__first; 26629: } 26629: 26629: return std::make_pair(__min, __max); 26629: } 26629: # 3382 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: constexpr 26629: inline pair<_ForwardIterator, _ForwardIterator> 26629: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__minmax_element(__first, __last, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 3410 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: constexpr 26629: inline pair<_ForwardIterator, _ForwardIterator> 26629: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__minmax_element(__first, __last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: constexpr 26629: inline pair<_Tp, _Tp> 26629: minmax(initializer_list<_Tp> __l) 26629: { 26629: ; 26629: pair __p = 26629: std::__minmax_element(__l.begin(), __l.end(), 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: return std::make_pair(*__p.first, *__p.second); 26629: } 26629: 26629: template 26629: constexpr 26629: inline pair<_Tp, _Tp> 26629: minmax(initializer_list<_Tp> __l, _Compare __comp) 26629: { 26629: ; 26629: pair __p = 26629: std::__minmax_element(__l.begin(), __l.end(), 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: return std::make_pair(*__p.first, *__p.second); 26629: } 26629: # 3466 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _BinaryPredicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__is_permutation(__first1, __last1, __first2, 26629: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 26629: } 26629: 26629: 26629: template 26629: 26629: bool 26629: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 26629: _BinaryPredicate __pred) 26629: { 26629: using _Cat1 26629: = typename iterator_traits<_ForwardIterator1>::iterator_category; 26629: using _Cat2 26629: = typename iterator_traits<_ForwardIterator2>::iterator_category; 26629: using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; 26629: using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; 26629: constexpr bool __ra_iters = _It1_is_RA() && _It2_is_RA(); 26629: if (__ra_iters) 26629: { 26629: auto __d1 = std::distance(__first1, __last1); 26629: auto __d2 = std::distance(__first2, __last2); 26629: if (__d1 != __d2) 26629: return false; 26629: } 26629: 26629: 26629: 26629: for (; __first1 != __last1 && __first2 != __last2; 26629: ++__first1, (void)++__first2) 26629: if (!__pred(__first1, __first2)) 26629: break; 26629: 26629: if (__ra_iters) 26629: { 26629: if (__first1 == __last1) 26629: return true; 26629: } 26629: else 26629: { 26629: auto __d1 = std::distance(__first1, __last1); 26629: auto __d2 = std::distance(__first2, __last2); 26629: if (__d1 == 0 && __d2 == 0) 26629: return true; 26629: if (__d1 != __d2) 26629: return false; 26629: } 26629: 26629: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 26629: { 26629: if (__scan != std::__find_if(__first1, __scan, 26629: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 26629: continue; 26629: 26629: auto __matches = std::__count_if(__first2, __last2, 26629: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 26629: if (0 == __matches 26629: || std::__count_if(__scan, __last1, 26629: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 26629: != __matches) 26629: return false; 26629: } 26629: return true; 26629: } 26629: # 3561 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 26629: { 26629: ; 26629: ; 26629: 26629: return 26629: std::__is_permutation(__first1, __last1, __first2, __last2, 26629: __gnu_cxx::__ops::__iter_equal_to_iter()); 26629: } 26629: # 3589 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline bool 26629: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 26629: _BinaryPredicate __pred) 26629: { 26629: ; 26629: ; 26629: 26629: return std::__is_permutation(__first1, __last1, __first2, __last2, 26629: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 26629: } 26629: # 3619 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: constexpr const _Tp& 26629: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!(__hi < __lo))) __builtin_unreachable(); } while (false); 26629: return std::min(std::max(__val, __lo), __hi); 26629: } 26629: # 3639 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: constexpr const _Tp& 26629: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!__comp(__hi, __lo))) __builtin_unreachable(); } while (false); 26629: return std::min(std::max(__val, __lo, __comp), __hi, __comp); 26629: } 26629: # 3671 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: pair<_IntType, _IntType> 26629: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 26629: _UniformRandomBitGenerator&& __g) 26629: { 26629: _IntType __x 26629: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 26629: return std::make_pair(__x / __b1, __x % __b1); 26629: } 26629: # 3693 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: void 26629: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _UniformRandomNumberGenerator&& __g) 26629: { 26629: 26629: 26629: 26629: ; 26629: 26629: if (__first == __last) 26629: return; 26629: 26629: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 26629: _DistanceType; 26629: 26629: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 26629: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 26629: typedef typename __distr_type::param_type __p_type; 26629: 26629: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 26629: _Gen; 26629: typedef typename common_type::type 26629: __uc_type; 26629: 26629: const __uc_type __urngrange = __g.max() - __g.min(); 26629: const __uc_type __urange = __uc_type(__last - __first); 26629: 26629: if (__urngrange / __urange >= __urange) 26629: 26629: { 26629: _RandomAccessIterator __i = __first + 1; 26629: 26629: 26629: 26629: 26629: 26629: if ((__urange % 2) == 0) 26629: { 26629: __distr_type __d{0, 1}; 26629: std::iter_swap(__i++, __first + __d(__g)); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: while (__i != __last) 26629: { 26629: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 26629: 26629: const pair<__uc_type, __uc_type> __pospos = 26629: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 26629: 26629: std::iter_swap(__i++, __first + __pospos.first); 26629: std::iter_swap(__i++, __first + __pospos.second); 26629: } 26629: 26629: return; 26629: } 26629: 26629: __distr_type __d; 26629: 26629: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 26629: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: # 3778 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _Function 26629: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 26629: { 26629: 26629: 26629: ; 26629: for (; __first != __last; ++__first) 26629: __f(*__first); 26629: return __f; 26629: } 26629: # 3804 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _InputIterator 26629: for_each_n(_InputIterator __first, _Size __n, _Function __f) 26629: { 26629: auto __n2 = std::__size_to_integer(__n); 26629: using _Cat = typename iterator_traits<_InputIterator>::iterator_category; 26629: if constexpr (is_base_of_v) 26629: { 26629: if (__n2 <= 0) 26629: return __first; 26629: auto __last = __first + __n2; 26629: std::for_each(__first, __last, std::move(__f)); 26629: return __last; 26629: } 26629: else 26629: { 26629: while (__n2-->0) 26629: { 26629: __f(*__first); 26629: ++__first; 26629: } 26629: return __first; 26629: } 26629: } 26629: # 3840 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _InputIterator 26629: find(_InputIterator __first, _InputIterator __last, 26629: const _Tp& __val) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: return std::__find_if(__first, __last, 26629: __gnu_cxx::__ops::__iter_equals_val(__val)); 26629: } 26629: # 3865 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _InputIterator 26629: find_if(_InputIterator __first, _InputIterator __last, 26629: _Predicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__find_if(__first, __last, 26629: __gnu_cxx::__ops::__pred_iter(__pred)); 26629: } 26629: # 3897 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _InputIterator 26629: find_first_of(_InputIterator __first1, _InputIterator __last1, 26629: _ForwardIterator __first2, _ForwardIterator __last2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: for (; __first1 != __last1; ++__first1) 26629: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 26629: if (*__first1 == *__iter) 26629: return __first1; 26629: return __last1; 26629: } 26629: # 3938 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _InputIterator 26629: find_first_of(_InputIterator __first1, _InputIterator __last1, 26629: _ForwardIterator __first2, _ForwardIterator __last2, 26629: _BinaryPredicate __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: for (; __first1 != __last1; ++__first1) 26629: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 26629: if (__comp(*__first1, *__iter)) 26629: return __first1; 26629: return __last1; 26629: } 26629: # 3971 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__adjacent_find(__first, __last, 26629: __gnu_cxx::__ops::__iter_equal_to_iter()); 26629: } 26629: # 3997 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 26629: _BinaryPredicate __binary_pred) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__adjacent_find(__first, __last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 26629: } 26629: # 4023 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline typename iterator_traits<_InputIterator>::difference_type 26629: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__count_if(__first, __last, 26629: __gnu_cxx::__ops::__iter_equals_val(__value)); 26629: } 26629: # 4047 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline typename iterator_traits<_InputIterator>::difference_type 26629: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__count_if(__first, __last, 26629: __gnu_cxx::__ops::__pred_iter(__pred)); 26629: } 26629: # 4088 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator1 26629: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__search(__first1, __last1, __first2, __last2, 26629: __gnu_cxx::__ops::__iter_equal_to_iter()); 26629: } 26629: # 4128 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator1 26629: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 26629: _BinaryPredicate __predicate) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__search(__first1, __last1, __first2, __last2, 26629: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 26629: } 26629: # 4164 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: search_n(_ForwardIterator __first, _ForwardIterator __last, 26629: _Integer __count, const _Tp& __val) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__search_n(__first, __last, __count, 26629: __gnu_cxx::__ops::__iter_equals_val(__val)); 26629: } 26629: # 4198 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: search_n(_ForwardIterator __first, _ForwardIterator __last, 26629: _Integer __count, const _Tp& __val, 26629: _BinaryPredicate __binary_pred) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__search_n(__first, __last, __count, 26629: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 26629: } 26629: # 4224 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: search(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Searcher& __searcher) 26629: { return __searcher(__first, __last).first; } 26629: # 4248 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _OutputIterator 26629: transform(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _UnaryOperation __unary_op) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first != __last; ++__first, (void)++__result) 26629: *__result = __unary_op(*__first); 26629: return __result; 26629: } 26629: # 4286 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _OutputIterator 26629: transform(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _OutputIterator __result, 26629: _BinaryOperation __binary_op) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 26629: *__result = __binary_op(*__first1, *__first2); 26629: return __result; 26629: } 26629: # 4320 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: void 26629: replace(_ForwardIterator __first, _ForwardIterator __last, 26629: const _Tp& __old_value, const _Tp& __new_value) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first != __last; ++__first) 26629: if (*__first == __old_value) 26629: *__first = __new_value; 26629: } 26629: # 4353 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: void 26629: replace_if(_ForwardIterator __first, _ForwardIterator __last, 26629: _Predicate __pred, const _Tp& __new_value) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first != __last; ++__first) 26629: if (__pred(*__first)) 26629: *__first = __new_value; 26629: } 26629: # 4386 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: void 26629: generate(_ForwardIterator __first, _ForwardIterator __last, 26629: _Generator __gen) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first != __last; ++__first) 26629: *__first = __gen(); 26629: } 26629: # 4420 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: _OutputIterator 26629: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: typedef __decltype(std::__size_to_integer(__n)) _IntSize; 26629: for (_IntSize __niter = std::__size_to_integer(__n); 26629: __niter > 0; --__niter, (void) ++__first) 26629: *__first = __gen(); 26629: return __first; 26629: } 26629: # 4458 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: unique_copy(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: if (__first == __last) 26629: return __result; 26629: return std::__unique_copy(__first, __last, __result, 26629: __gnu_cxx::__ops::__iter_equal_to_iter(), 26629: std::__iterator_category(__first), 26629: std::__iterator_category(__result)); 26629: } 26629: # 4499 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: unique_copy(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, 26629: _BinaryPredicate __binary_pred) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: if (__first == __last) 26629: return __result; 26629: return std::__unique_copy(__first, __last, __result, 26629: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 26629: std::__iterator_category(__first), 26629: std::__iterator_category(__result)); 26629: } 26629: # 4538 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 26629: inline void 26629: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 26629: { 26629: 26629: 26629: 26629: ; 26629: 26629: if (__first != __last) 26629: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 26629: { 26629: 26629: _RandomAccessIterator __j = __first 26629: + std::rand() % ((__i - __first) + 1); 26629: if (__i != __j) 26629: std::iter_swap(__i, __j); 26629: } 26629: } 26629: # 4578 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 26629: void 26629: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: 26629: _RandomNumberGenerator&& __rand) 26629: 26629: 26629: 26629: { 26629: 26629: 26629: 26629: ; 26629: 26629: if (__first == __last) 26629: return; 26629: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 26629: { 26629: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 26629: if (__i != __j) 26629: std::iter_swap(__i, __j); 26629: } 26629: } 26629: # 4619 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _ForwardIterator 26629: partition(_ForwardIterator __first, _ForwardIterator __last, 26629: _Predicate __pred) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: return std::__partition(__first, __last, __pred, 26629: std::__iterator_category(__first)); 26629: } 26629: # 4653 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline void 26629: partial_sort(_RandomAccessIterator __first, 26629: _RandomAccessIterator __middle, 26629: _RandomAccessIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: std::__partial_sort(__first, __middle, __last, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 4692 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline void 26629: partial_sort(_RandomAccessIterator __first, 26629: _RandomAccessIterator __middle, 26629: _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: std::__partial_sort(__first, __middle, __last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: # 4729 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline void 26629: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 26629: _RandomAccessIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: if (__first == __last || __nth == __last) 26629: return; 26629: 26629: std::__introselect(__first, __nth, __last, 26629: std::__lg(__last - __first) * 2, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 4769 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline void 26629: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 26629: _RandomAccessIterator __last, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: 26629: if (__first == __last || __nth == __last) 26629: return; 26629: 26629: std::__introselect(__first, __nth, __last, 26629: std::__lg(__last - __first) * 2, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: # 4807 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline void 26629: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 4838 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline void 26629: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: 26629: _OutputIterator 26629: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result, _Compare __comp) 26629: { 26629: while (__first1 != __last1 && __first2 != __last2) 26629: { 26629: if (__comp(__first2, __first1)) 26629: { 26629: *__result = *__first2; 26629: ++__first2; 26629: } 26629: else 26629: { 26629: *__result = *__first1; 26629: ++__first1; 26629: } 26629: ++__result; 26629: } 26629: return std::copy(__first2, __last2, 26629: std::copy(__first1, __last1, __result)); 26629: } 26629: # 4901 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: merge(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__merge(__first1, __last1, 26629: __first2, __last2, __result, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 4952 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: merge(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__merge(__first1, __last1, 26629: __first2, __last2, __result, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: inline void 26629: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: typedef typename iterator_traits<_RandomAccessIterator>::value_type 26629: _ValueType; 26629: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 26629: _DistanceType; 26629: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 26629: 26629: if (__first == __last) 26629: return; 26629: 26629: 26629: 26629: _TmpBuf __buf(__first, (__last - __first + 1) / 2); 26629: 26629: if (__buf.begin() == 0) 26629: std::__inplace_stable_sort(__first, __last, __comp); 26629: else 26629: std::__stable_sort_adaptive(__first, __last, __buf.begin(), 26629: _DistanceType(__buf.size()), __comp); 26629: } 26629: # 5022 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: inline void 26629: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: std::__stable_sort(__first, __last, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 5056 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: inline void 26629: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: std::__stable_sort(__first, __last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: 26629: _OutputIterator 26629: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result, _Compare __comp) 26629: { 26629: while (__first1 != __last1 && __first2 != __last2) 26629: { 26629: if (__comp(__first1, __first2)) 26629: { 26629: *__result = *__first1; 26629: ++__first1; 26629: } 26629: else if (__comp(__first2, __first1)) 26629: { 26629: *__result = *__first2; 26629: ++__first2; 26629: } 26629: else 26629: { 26629: *__result = *__first1; 26629: ++__first1; 26629: ++__first2; 26629: } 26629: ++__result; 26629: } 26629: return std::copy(__first2, __last2, 26629: std::copy(__first1, __last1, __result)); 26629: } 26629: # 5126 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__set_union(__first1, __last1, 26629: __first2, __last2, __result, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 5177 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__set_union(__first1, __last1, 26629: __first2, __last2, __result, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: 26629: _OutputIterator 26629: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result, _Compare __comp) 26629: { 26629: while (__first1 != __last1 && __first2 != __last2) 26629: if (__comp(__first1, __first2)) 26629: ++__first1; 26629: else if (__comp(__first2, __first1)) 26629: ++__first2; 26629: else 26629: { 26629: *__result = *__first1; 26629: ++__first1; 26629: ++__first2; 26629: ++__result; 26629: } 26629: return __result; 26629: } 26629: # 5250 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__set_intersection(__first1, __last1, 26629: __first2, __last2, __result, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 5300 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__set_intersection(__first1, __last1, 26629: __first2, __last2, __result, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: 26629: _OutputIterator 26629: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result, _Compare __comp) 26629: { 26629: while (__first1 != __last1 && __first2 != __last2) 26629: if (__comp(__first1, __first2)) 26629: { 26629: *__result = *__first1; 26629: ++__first1; 26629: ++__result; 26629: } 26629: else if (__comp(__first2, __first1)) 26629: ++__first2; 26629: else 26629: { 26629: ++__first1; 26629: ++__first2; 26629: } 26629: return std::copy(__first1, __last1, __result); 26629: } 26629: # 5375 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__set_difference(__first1, __last1, 26629: __first2, __last2, __result, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 5427 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result, _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__set_difference(__first1, __last1, 26629: __first2, __last2, __result, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: 26629: _OutputIterator 26629: __set_symmetric_difference(_InputIterator1 __first1, 26629: _InputIterator1 __last1, 26629: _InputIterator2 __first2, 26629: _InputIterator2 __last2, 26629: _OutputIterator __result, 26629: _Compare __comp) 26629: { 26629: while (__first1 != __last1 && __first2 != __last2) 26629: if (__comp(__first1, __first2)) 26629: { 26629: *__result = *__first1; 26629: ++__first1; 26629: ++__result; 26629: } 26629: else if (__comp(__first2, __first1)) 26629: { 26629: *__result = *__first2; 26629: ++__first2; 26629: ++__result; 26629: } 26629: else 26629: { 26629: ++__first1; 26629: ++__first2; 26629: } 26629: return std::copy(__first2, __last2, 26629: std::copy(__first1, __last1, __result)); 26629: } 26629: # 5508 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__set_symmetric_difference(__first1, __last1, 26629: __first2, __last2, __result, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 5560 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: 26629: inline _OutputIterator 26629: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _InputIterator2 __last2, 26629: _OutputIterator __result, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: ; 26629: ; 26629: 26629: return std::__set_symmetric_difference(__first1, __last1, 26629: __first2, __last2, __result, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: constexpr 26629: _ForwardIterator 26629: __min_element(_ForwardIterator __first, _ForwardIterator __last, 26629: _Compare __comp) 26629: { 26629: if (__first == __last) 26629: return __first; 26629: _ForwardIterator __result = __first; 26629: while (++__first != __last) 26629: if (__comp(__first, __result)) 26629: __result = __first; 26629: return __result; 26629: } 26629: # 5614 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: constexpr 26629: _ForwardIterator 26629: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__min_element(__first, __last, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 5639 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: constexpr 26629: inline _ForwardIterator 26629: min_element(_ForwardIterator __first, _ForwardIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__min_element(__first, __last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: constexpr 26629: _ForwardIterator 26629: __max_element(_ForwardIterator __first, _ForwardIterator __last, 26629: _Compare __comp) 26629: { 26629: if (__first == __last) return __first; 26629: _ForwardIterator __result = __first; 26629: while (++__first != __last) 26629: if (__comp(__result, __first)) 26629: __result = __first; 26629: return __result; 26629: } 26629: # 5678 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: constexpr 26629: inline _ForwardIterator 26629: max_element(_ForwardIterator __first, _ForwardIterator __last) 26629: { 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__max_element(__first, __last, 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: # 5703 "/usr/include/c++/12/bits/stl_algo.h" 3 26629: template 26629: constexpr 26629: inline _ForwardIterator 26629: max_element(_ForwardIterator __first, _ForwardIterator __last, 26629: _Compare __comp) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: ; 26629: 26629: return std::__max_element(__first, __last, 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: 26629: 26629: template 26629: constexpr 26629: inline _Tp 26629: min(initializer_list<_Tp> __l) 26629: { 26629: ; 26629: return *std::__min_element(__l.begin(), __l.end(), 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: 26629: template 26629: constexpr 26629: inline _Tp 26629: min(initializer_list<_Tp> __l, _Compare __comp) 26629: { 26629: ; 26629: return *std::__min_element(__l.begin(), __l.end(), 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: template 26629: constexpr 26629: inline _Tp 26629: max(initializer_list<_Tp> __l) 26629: { 26629: ; 26629: return *std::__max_element(__l.begin(), __l.end(), 26629: __gnu_cxx::__ops::__iter_less_iter()); 26629: } 26629: 26629: template 26629: constexpr 26629: inline _Tp 26629: max(initializer_list<_Tp> __l, _Compare __comp) 26629: { 26629: ; 26629: return *std::__max_element(__l.begin(), __l.end(), 26629: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: _RandomAccessIterator 26629: __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, 26629: _RandomAccessIterator __out, random_access_iterator_tag, 26629: _Size __n, _UniformRandomBitGenerator&& __g) 26629: { 26629: using __distrib_type = uniform_int_distribution<_Size>; 26629: using __param_type = typename __distrib_type::param_type; 26629: __distrib_type __d{}; 26629: _Size __sample_sz = 0; 26629: while (__first != __last && __sample_sz != __n) 26629: { 26629: __out[__sample_sz++] = *__first; 26629: ++__first; 26629: } 26629: for (auto __pop_sz = __sample_sz; __first != __last; 26629: ++__first, (void) ++__pop_sz) 26629: { 26629: const auto __k = __d(__g, __param_type{0, __pop_sz}); 26629: if (__k < __n) 26629: __out[__k] = *__first; 26629: } 26629: return __out + __sample_sz; 26629: } 26629: 26629: 26629: template 26629: _OutputIterator 26629: __sample(_ForwardIterator __first, _ForwardIterator __last, 26629: forward_iterator_tag, 26629: _OutputIterator __out, _Cat, 26629: _Size __n, _UniformRandomBitGenerator&& __g) 26629: { 26629: using __distrib_type = uniform_int_distribution<_Size>; 26629: using __param_type = typename __distrib_type::param_type; 26629: using _USize = make_unsigned_t<_Size>; 26629: using _Gen = remove_reference_t<_UniformRandomBitGenerator>; 26629: using __uc_type = common_type_t; 26629: 26629: if (__first == __last) 26629: return __out; 26629: 26629: __distrib_type __d{}; 26629: _Size __unsampled_sz = std::distance(__first, __last); 26629: __n = std::min(__n, __unsampled_sz); 26629: 26629: 26629: 26629: 26629: const __uc_type __urngrange = __g.max() - __g.min(); 26629: if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) 26629: 26629: 26629: { 26629: while (__n != 0 && __unsampled_sz >= 2) 26629: { 26629: const pair<_Size, _Size> __p = 26629: __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); 26629: 26629: --__unsampled_sz; 26629: if (__p.first < __n) 26629: { 26629: *__out++ = *__first; 26629: --__n; 26629: } 26629: 26629: ++__first; 26629: 26629: if (__n == 0) break; 26629: 26629: --__unsampled_sz; 26629: if (__p.second < __n) 26629: { 26629: *__out++ = *__first; 26629: --__n; 26629: } 26629: 26629: ++__first; 26629: } 26629: } 26629: 26629: 26629: 26629: for (; __n != 0; ++__first) 26629: if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) 26629: { 26629: *__out++ = *__first; 26629: --__n; 26629: } 26629: return __out; 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: _SampleIterator 26629: sample(_PopulationIterator __first, _PopulationIterator __last, 26629: _SampleIterator __out, _Distance __n, 26629: _UniformRandomBitGenerator&& __g) 26629: { 26629: using __pop_cat = typename 26629: std::iterator_traits<_PopulationIterator>::iterator_category; 26629: using __samp_cat = typename 26629: std::iterator_traits<_SampleIterator>::iterator_category; 26629: 26629: static_assert( 26629: __or_, 26629: is_convertible<__samp_cat, random_access_iterator_tag>>::value, 26629: "output range must use a RandomAccessIterator when input range" 26629: " does not meet the ForwardIterator requirements"); 26629: 26629: static_assert(is_integral<_Distance>::value, 26629: "sample size must be an integer type"); 26629: 26629: typename iterator_traits<_PopulationIterator>::difference_type __d = __n; 26629: return std:: 26629: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, 26629: std::forward<_UniformRandomBitGenerator>(__g)); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 65 "/usr/include/c++/12/functional" 2 3 26629: # 76 "/usr/include/c++/12/functional" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: template struct _Placeholder { }; 26629: # 105 "/usr/include/c++/12/functional" 3 26629: template 26629: inline invoke_result_t<_Callable, _Args...> 26629: invoke(_Callable&& __fn, _Args&&... __args) 26629: noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 26629: { 26629: return std::__invoke(std::forward<_Callable>(__fn), 26629: std::forward<_Args>(__args)...); 26629: } 26629: # 138 "/usr/include/c++/12/functional" 3 26629: template::value> 26629: class _Mem_fn_base 26629: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 26629: { 26629: using _Traits = _Mem_fn_traits<_MemFunPtr>; 26629: 26629: using _Arity = typename _Traits::__arity; 26629: using _Varargs = typename _Traits::__vararg; 26629: 26629: template 26629: friend struct _Bind_check_arity; 26629: 26629: _MemFunPtr _M_pmf; 26629: 26629: public: 26629: 26629: using result_type = typename _Traits::__result_type; 26629: 26629: explicit constexpr 26629: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 26629: 26629: template 26629: 26629: auto 26629: operator()(_Args&&... __args) const 26629: noexcept(noexcept( 26629: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 26629: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 26629: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 26629: }; 26629: 26629: 26629: template 26629: class _Mem_fn_base<_MemObjPtr, false> 26629: { 26629: using _Arity = integral_constant; 26629: using _Varargs = false_type; 26629: 26629: template 26629: friend struct _Bind_check_arity; 26629: 26629: _MemObjPtr _M_pm; 26629: 26629: public: 26629: explicit constexpr 26629: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 26629: 26629: template 26629: 26629: auto 26629: operator()(_Tp&& __obj) const 26629: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 26629: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 26629: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 26629: }; 26629: 26629: template 26629: struct _Mem_fn; 26629: 26629: template 26629: struct _Mem_fn<_Res _Class::*> 26629: : _Mem_fn_base<_Res _Class::*> 26629: { 26629: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 26629: }; 26629: # 231 "/usr/include/c++/12/functional" 3 26629: template 26629: 26629: inline _Mem_fn<_Tp _Class::*> 26629: mem_fn(_Tp _Class::* __pm) noexcept 26629: { 26629: return _Mem_fn<_Tp _Class::*>(__pm); 26629: } 26629: # 250 "/usr/include/c++/12/functional" 3 26629: template 26629: struct is_bind_expression 26629: : public false_type { }; 26629: # 262 "/usr/include/c++/12/functional" 3 26629: template 26629: struct is_placeholder 26629: : public integral_constant 26629: { }; 26629: 26629: 26629: template inline constexpr bool is_bind_expression_v 26629: = is_bind_expression<_Tp>::value; 26629: template inline constexpr int is_placeholder_v 26629: = is_placeholder<_Tp>::value; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace placeholders 26629: { 26629: 26629: 26629: 26629: 26629: extern const _Placeholder<1> _1; 26629: extern const _Placeholder<2> _2; 26629: extern const _Placeholder<3> _3; 26629: extern const _Placeholder<4> _4; 26629: extern const _Placeholder<5> _5; 26629: extern const _Placeholder<6> _6; 26629: extern const _Placeholder<7> _7; 26629: extern const _Placeholder<8> _8; 26629: extern const _Placeholder<9> _9; 26629: extern const _Placeholder<10> _10; 26629: extern const _Placeholder<11> _11; 26629: extern const _Placeholder<12> _12; 26629: extern const _Placeholder<13> _13; 26629: extern const _Placeholder<14> _14; 26629: extern const _Placeholder<15> _15; 26629: extern const _Placeholder<16> _16; 26629: extern const _Placeholder<17> _17; 26629: extern const _Placeholder<18> _18; 26629: extern const _Placeholder<19> _19; 26629: extern const _Placeholder<20> _20; 26629: extern const _Placeholder<21> _21; 26629: extern const _Placeholder<22> _22; 26629: extern const _Placeholder<23> _23; 26629: extern const _Placeholder<24> _24; 26629: extern const _Placeholder<25> _25; 26629: extern const _Placeholder<26> _26; 26629: extern const _Placeholder<27> _27; 26629: extern const _Placeholder<28> _28; 26629: extern const _Placeholder<29> _29; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_placeholder<_Placeholder<_Num> > 26629: : public integral_constant 26629: { }; 26629: 26629: template 26629: struct is_placeholder > 26629: : public integral_constant 26629: { }; 26629: 26629: 26629: 26629: 26629: template 26629: using _Safe_tuple_element_t 26629: = typename enable_if<(__i < tuple_size<_Tuple>::value), 26629: tuple_element<__i, _Tuple>>::type::type; 26629: # 351 "/usr/include/c++/12/functional" 3 26629: template::value, 26629: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 26629: class _Mu; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class _Mu, false, false> 26629: { 26629: public: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _Tp& 26629: operator()(_CVRef& __arg, _Tuple&) const volatile 26629: { return __arg.get(); } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class _Mu<_Arg, true, false> 26629: { 26629: public: 26629: template 26629: 26629: auto 26629: operator()(_CVArg& __arg, 26629: tuple<_Args...>& __tuple) const volatile 26629: -> decltype(__arg(declval<_Args>()...)) 26629: { 26629: 26629: typedef typename _Build_index_tuple::__type 26629: _Indexes; 26629: return this->__call(__arg, __tuple, _Indexes()); 26629: } 26629: 26629: private: 26629: 26629: 26629: template 26629: 26629: auto 26629: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 26629: const _Index_tuple<_Indexes...>&) const volatile 26629: -> decltype(__arg(declval<_Args>()...)) 26629: { 26629: return __arg(std::get<_Indexes>(std::move(__tuple))...); 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class _Mu<_Arg, false, true> 26629: { 26629: public: 26629: template 26629: 26629: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 26629: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 26629: { 26629: return 26629: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class _Mu<_Arg, false, false> 26629: { 26629: public: 26629: template 26629: 26629: _CVArg&& 26629: operator()(_CVArg&& __arg, _Tuple&) const volatile 26629: { return std::forward<_CVArg>(__arg); } 26629: }; 26629: 26629: 26629: template 26629: inline auto 26629: __volget(volatile tuple<_Tp...>& __tuple) 26629: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 26629: { return std::get<_Ind>(const_cast&>(__tuple)); } 26629: 26629: 26629: template 26629: inline auto 26629: __volget(const volatile tuple<_Tp...>& __tuple) 26629: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 26629: { return std::get<_Ind>(const_cast&>(__tuple)); } 26629: 26629: 26629: 26629: 26629: template 26629: class _Bind; 26629: 26629: template 26629: class _Bind<_Functor(_Bound_args...)> 26629: : public _Weak_result_type<_Functor> 26629: { 26629: typedef typename _Build_index_tuple::__type 26629: _Bound_indexes; 26629: 26629: _Functor _M_f; 26629: tuple<_Bound_args...> _M_bound_args; 26629: 26629: 26629: template 26629: 26629: _Result 26629: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 26629: { 26629: return std::__invoke(_M_f, 26629: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 26629: ); 26629: } 26629: 26629: 26629: template 26629: 26629: _Result 26629: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 26629: { 26629: return std::__invoke(_M_f, 26629: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 26629: ); 26629: } 26629: 26629: 26629: template 26629: _Result 26629: __call_v(tuple<_Args...>&& __args, 26629: _Index_tuple<_Indexes...>) volatile 26629: { 26629: return std::__invoke(_M_f, 26629: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 26629: ); 26629: } 26629: 26629: 26629: template 26629: _Result 26629: __call_c_v(tuple<_Args...>&& __args, 26629: _Index_tuple<_Indexes...>) const volatile 26629: { 26629: return std::__invoke(_M_f, 26629: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 26629: ); 26629: } 26629: 26629: template 26629: using _Mu_type = decltype( 26629: _Mu::type>()( 26629: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 26629: 26629: template 26629: using _Res_type_impl 26629: = typename result_of< _Fn&(_Mu_type<_BArgs, _CallArgs>&&...) >::type; 26629: 26629: template 26629: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 26629: 26629: template 26629: using __dependent = typename 26629: enable_if::value+1), _Functor>::type; 26629: 26629: template class __cv_quals> 26629: using _Res_type_cv = _Res_type_impl< 26629: typename __cv_quals<__dependent<_CallArgs>>::type, 26629: _CallArgs, 26629: typename __cv_quals<_Bound_args>::type...>; 26629: 26629: public: 26629: template 26629: explicit 26629: _Bind(const _Functor& __f, _Args&&... __args) 26629: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 26629: { } 26629: 26629: template 26629: explicit 26629: _Bind(_Functor&& __f, _Args&&... __args) 26629: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 26629: { } 26629: 26629: _Bind(const _Bind&) = default; 26629: _Bind(_Bind&&) = default; 26629: 26629: 26629: template>> 26629: 26629: _Result 26629: operator()(_Args&&... __args) 26629: { 26629: return this->__call<_Result>( 26629: std::forward_as_tuple(std::forward<_Args>(__args)...), 26629: _Bound_indexes()); 26629: } 26629: 26629: 26629: template, add_const>> 26629: 26629: _Result 26629: operator()(_Args&&... __args) const 26629: { 26629: return this->__call_c<_Result>( 26629: std::forward_as_tuple(std::forward<_Args>(__args)...), 26629: _Bound_indexes()); 26629: } 26629: # 591 "/usr/include/c++/12/functional" 3 26629: template, add_volatile>> 26629: [[deprecated("std::bind does not support volatile in C++17")]] 26629: _Result 26629: operator()(_Args&&... __args) volatile 26629: { 26629: return this->__call_v<_Result>( 26629: std::forward_as_tuple(std::forward<_Args>(__args)...), 26629: _Bound_indexes()); 26629: } 26629: 26629: 26629: template, add_cv>> 26629: [[deprecated("std::bind does not support volatile in C++17")]] 26629: _Result 26629: operator()(_Args&&... __args) const volatile 26629: { 26629: return this->__call_c_v<_Result>( 26629: std::forward_as_tuple(std::forward<_Args>(__args)...), 26629: _Bound_indexes()); 26629: } 26629: }; 26629: 26629: 26629: template 26629: class _Bind_result; 26629: 26629: template 26629: class _Bind_result<_Result, _Functor(_Bound_args...)> 26629: { 26629: typedef typename _Build_index_tuple::__type 26629: _Bound_indexes; 26629: 26629: _Functor _M_f; 26629: tuple<_Bound_args...> _M_bound_args; 26629: 26629: 26629: template 26629: 26629: _Res 26629: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 26629: { 26629: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 26629: (std::get<_Indexes>(_M_bound_args), __args)...); 26629: } 26629: 26629: 26629: template 26629: 26629: _Res 26629: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 26629: { 26629: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 26629: (std::get<_Indexes>(_M_bound_args), __args)...); 26629: } 26629: 26629: 26629: template 26629: 26629: _Res 26629: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 26629: { 26629: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 26629: (__volget<_Indexes>(_M_bound_args), __args)...); 26629: } 26629: 26629: 26629: template 26629: 26629: _Res 26629: __call(tuple<_Args...>&& __args, 26629: _Index_tuple<_Indexes...>) const volatile 26629: { 26629: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 26629: (__volget<_Indexes>(_M_bound_args), __args)...); 26629: } 26629: 26629: public: 26629: typedef _Result result_type; 26629: 26629: template 26629: explicit 26629: _Bind_result(const _Functor& __f, _Args&&... __args) 26629: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 26629: { } 26629: 26629: template 26629: explicit 26629: _Bind_result(_Functor&& __f, _Args&&... __args) 26629: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 26629: { } 26629: 26629: _Bind_result(const _Bind_result&) = default; 26629: _Bind_result(_Bind_result&&) = default; 26629: 26629: 26629: template 26629: 26629: result_type 26629: operator()(_Args&&... __args) 26629: { 26629: return this->__call<_Result>( 26629: std::forward_as_tuple(std::forward<_Args>(__args)...), 26629: _Bound_indexes()); 26629: } 26629: 26629: 26629: template 26629: 26629: result_type 26629: operator()(_Args&&... __args) const 26629: { 26629: return this->__call<_Result>( 26629: std::forward_as_tuple(std::forward<_Args>(__args)...), 26629: _Bound_indexes()); 26629: } 26629: 26629: 26629: template 26629: [[deprecated("std::bind does not support volatile in C++17")]] 26629: result_type 26629: operator()(_Args&&... __args) volatile 26629: { 26629: return this->__call<_Result>( 26629: std::forward_as_tuple(std::forward<_Args>(__args)...), 26629: _Bound_indexes()); 26629: } 26629: 26629: 26629: template 26629: [[deprecated("std::bind does not support volatile in C++17")]] 26629: result_type 26629: operator()(_Args&&... __args) const volatile 26629: { 26629: return this->__call<_Result>( 26629: std::forward_as_tuple(std::forward<_Args>(__args)...), 26629: _Bound_indexes()); 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_bind_expression<_Bind<_Signature> > 26629: : public true_type { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_bind_expression > 26629: : public true_type { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_bind_expression > 26629: : public true_type { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_bind_expression> 26629: : public true_type { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_bind_expression<_Bind_result<_Result, _Signature>> 26629: : public true_type { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_bind_expression> 26629: : public true_type { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_bind_expression> 26629: : public true_type { }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct is_bind_expression> 26629: : public true_type { }; 26629: 26629: template 26629: struct _Bind_check_arity { }; 26629: 26629: template 26629: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 26629: { 26629: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 26629: "Wrong number of arguments for function"); 26629: }; 26629: 26629: template 26629: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 26629: { 26629: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 26629: "Wrong number of arguments for function"); 26629: }; 26629: 26629: template 26629: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 26629: { 26629: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 26629: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 26629: static_assert(_Varargs::value 26629: ? sizeof...(_BoundArgs) >= _Arity::value + 1 26629: : sizeof...(_BoundArgs) == _Arity::value + 1, 26629: "Wrong number of arguments for pointer-to-member"); 26629: }; 26629: 26629: 26629: 26629: 26629: template::type> 26629: using __is_socketlike = __or_, is_enum<_Tp2>>; 26629: 26629: template 26629: struct _Bind_helper 26629: : _Bind_check_arity::type, _BoundArgs...> 26629: { 26629: typedef typename decay<_Func>::type __func_type; 26629: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct _Bind_helper 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline typename 26629: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 26629: bind(_Func&& __f, _BoundArgs&&... __args) 26629: { 26629: typedef _Bind_helper __helper_type; 26629: return typename __helper_type::type(std::forward<_Func>(__f), 26629: std::forward<_BoundArgs>(__args)...); 26629: } 26629: 26629: template 26629: struct _Bindres_helper 26629: : _Bind_check_arity::type, _BoundArgs...> 26629: { 26629: typedef typename decay<_Func>::type __functor_type; 26629: typedef _Bind_result<_Result, 26629: __functor_type(typename decay<_BoundArgs>::type...)> 26629: type; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline 26629: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 26629: bind(_Func&& __f, _BoundArgs&&... __args) 26629: { 26629: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 26629: return typename __helper_type::type(std::forward<_Func>(__f), 26629: std::forward<_BoundArgs>(__args)...); 26629: } 26629: # 997 "/usr/include/c++/12/functional" 3 26629: template 26629: class _Not_fn 26629: { 26629: template 26629: using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; 26629: 26629: template 26629: static decltype(!std::declval<_Tp>()) 26629: _S_not() noexcept(noexcept(!std::declval<_Tp>())); 26629: 26629: public: 26629: template 26629: constexpr 26629: _Not_fn(_Fn2&& __fn, int) 26629: : _M_fn(std::forward<_Fn2>(__fn)) { } 26629: 26629: _Not_fn(const _Not_fn& __fn) = default; 26629: _Not_fn(_Not_fn&& __fn) = default; 26629: ~_Not_fn() = default; 26629: # 1031 "/usr/include/c++/12/functional" 3 26629: template 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)...); } 26629: template 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)...); } 26629: template 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)...); } 26629: template 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)...); } 26629: 26629: 26629: private: 26629: _Fn _M_fn; 26629: }; 26629: 26629: template 26629: struct __is_byte_like : false_type { }; 26629: 26629: template 26629: struct __is_byte_like<_Tp, equal_to<_Tp>> 26629: : __bool_constant::value> { }; 26629: 26629: template 26629: struct __is_byte_like<_Tp, equal_to> 26629: : __bool_constant::value> { }; 26629: 26629: 26629: 26629: enum class byte : unsigned char; 26629: 26629: template<> 26629: struct __is_byte_like> 26629: : true_type { }; 26629: 26629: template<> 26629: struct __is_byte_like> 26629: : true_type { }; 26629: # 1078 "/usr/include/c++/12/functional" 3 26629: template 26629: 26629: inline auto 26629: not_fn(_Fn&& __fn) 26629: noexcept(std::is_nothrow_constructible, _Fn&&>::value) 26629: { 26629: return _Not_fn>{std::forward<_Fn>(__fn), 0}; 26629: } 26629: 26629: 26629: 26629: 26629: template> 26629: class default_searcher 26629: { 26629: public: 26629: 26629: default_searcher(_ForwardIterator1 __pat_first, 26629: _ForwardIterator1 __pat_last, 26629: _BinaryPredicate __pred = _BinaryPredicate()) 26629: : _M_m(__pat_first, __pat_last, std::move(__pred)) 26629: { } 26629: 26629: template 26629: 26629: pair<_ForwardIterator2, _ForwardIterator2> 26629: operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const 26629: { 26629: _ForwardIterator2 __first_ret = 26629: std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), 26629: std::get<2>(_M_m)); 26629: auto __ret = std::make_pair(__first_ret, __first_ret); 26629: if (__ret.first != __last) 26629: std::advance(__ret.second, std::distance(std::get<0>(_M_m), 26629: std::get<1>(_M_m))); 26629: return __ret; 26629: } 26629: 26629: private: 26629: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; 26629: }; 26629: 26629: template 26629: struct __boyer_moore_map_base 26629: { 26629: template 26629: __boyer_moore_map_base(_RAIter __pat, size_t __patlen, 26629: _Hash&& __hf, _Pred&& __pred) 26629: : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } 26629: { 26629: if (__patlen > 0) 26629: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 26629: _M_bad_char[__pat[__i]] = __patlen - 1 - __i; 26629: } 26629: 26629: using __diff_type = _Tp; 26629: 26629: __diff_type 26629: _M_lookup(_Key __key, __diff_type __not_found) const 26629: { 26629: auto __iter = _M_bad_char.find(__key); 26629: if (__iter == _M_bad_char.end()) 26629: return __not_found; 26629: return __iter->second; 26629: } 26629: 26629: _Pred 26629: _M_pred() const { return _M_bad_char.key_eq(); } 26629: 26629: std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; 26629: }; 26629: 26629: template 26629: struct __boyer_moore_array_base 26629: { 26629: template 26629: __boyer_moore_array_base(_RAIter __pat, size_t __patlen, 26629: _Unused&&, _Pred&& __pred) 26629: : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } 26629: { 26629: std::get<0>(_M_bad_char).fill(__patlen); 26629: if (__patlen > 0) 26629: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 26629: { 26629: auto __ch = __pat[__i]; 26629: using _UCh = make_unsigned_t; 26629: auto __uch = static_cast<_UCh>(__ch); 26629: std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; 26629: } 26629: } 26629: 26629: using __diff_type = _Tp; 26629: 26629: template 26629: __diff_type 26629: _M_lookup(_Key __key, __diff_type __not_found) const 26629: { 26629: auto __ukey = static_cast>(__key); 26629: if (__ukey >= _Len) 26629: return __not_found; 26629: return std::get<0>(_M_bad_char)[__ukey]; 26629: } 26629: 26629: const _Pred& 26629: _M_pred() const { return std::get<1>(_M_bad_char); } 26629: 26629: tuple, _Pred> _M_bad_char; 26629: }; 26629: 26629: 26629: 26629: template::value_type, 26629: typename _Diff = typename iterator_traits<_RAIter>::difference_type> 26629: using __boyer_moore_base_t 26629: = __conditional_t<__is_byte_like<_Val, _Pred>::value, 26629: __boyer_moore_array_base<_Diff, 256, _Pred>, 26629: __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; 26629: 26629: template::value_type>, 26629: typename _BinaryPredicate = equal_to<>> 26629: class boyer_moore_searcher 26629: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 26629: { 26629: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 26629: using typename _Base::__diff_type; 26629: 26629: public: 26629: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, 26629: _Hash __hf = _Hash(), 26629: _BinaryPredicate __pred = _BinaryPredicate()); 26629: 26629: template 26629: pair<_RandomAccessIterator2, _RandomAccessIterator2> 26629: operator()(_RandomAccessIterator2 __first, 26629: _RandomAccessIterator2 __last) const; 26629: 26629: private: 26629: bool 26629: _M_is_prefix(_RAIter __word, __diff_type __len, 26629: __diff_type __pos) 26629: { 26629: const auto& __pred = this->_M_pred(); 26629: __diff_type __suffixlen = __len - __pos; 26629: for (__diff_type __i = 0; __i < __suffixlen; ++__i) 26629: if (!__pred(__word[__i], __word[__pos + __i])) 26629: return false; 26629: return true; 26629: } 26629: 26629: __diff_type 26629: _M_suffix_length(_RAIter __word, __diff_type __len, 26629: __diff_type __pos) 26629: { 26629: const auto& __pred = this->_M_pred(); 26629: __diff_type __i = 0; 26629: while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) 26629: && __i < __pos) 26629: { 26629: ++__i; 26629: } 26629: return __i; 26629: } 26629: 26629: template 26629: __diff_type 26629: _M_bad_char_shift(_Tp __c) const 26629: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 26629: 26629: _RAIter _M_pat; 26629: _RAIter _M_pat_end; 26629: std::vector<__diff_type> _M_good_suffix; 26629: }; 26629: 26629: template::value_type>, 26629: typename _BinaryPredicate = equal_to<>> 26629: class boyer_moore_horspool_searcher 26629: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 26629: { 26629: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 26629: using typename _Base::__diff_type; 26629: 26629: public: 26629: boyer_moore_horspool_searcher(_RAIter __pat, 26629: _RAIter __pat_end, 26629: _Hash __hf = _Hash(), 26629: _BinaryPredicate __pred 26629: = _BinaryPredicate()) 26629: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 26629: _M_pat(__pat), _M_pat_end(__pat_end) 26629: { } 26629: 26629: template 26629: pair<_RandomAccessIterator2, _RandomAccessIterator2> 26629: operator()(_RandomAccessIterator2 __first, 26629: _RandomAccessIterator2 __last) const 26629: { 26629: const auto& __pred = this->_M_pred(); 26629: auto __patlen = _M_pat_end - _M_pat; 26629: if (__patlen == 0) 26629: return std::make_pair(__first, __first); 26629: auto __len = __last - __first; 26629: while (__len >= __patlen) 26629: { 26629: for (auto __scan = __patlen - 1; 26629: __pred(__first[__scan], _M_pat[__scan]); --__scan) 26629: if (__scan == 0) 26629: return std::make_pair(__first, __first + __patlen); 26629: auto __shift = _M_bad_char_shift(__first[__patlen - 1]); 26629: __len -= __shift; 26629: __first += __shift; 26629: } 26629: return std::make_pair(__last, __last); 26629: } 26629: 26629: private: 26629: template 26629: __diff_type 26629: _M_bad_char_shift(_Tp __c) const 26629: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 26629: 26629: _RAIter _M_pat; 26629: _RAIter _M_pat_end; 26629: }; 26629: 26629: template 26629: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 26629: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, 26629: _Hash __hf, _BinaryPredicate __pred) 26629: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 26629: _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) 26629: { 26629: auto __patlen = __pat_end - __pat; 26629: if (__patlen == 0) 26629: return; 26629: __diff_type __last_prefix = __patlen - 1; 26629: for (__diff_type __p = __patlen - 1; __p >= 0; --__p) 26629: { 26629: if (_M_is_prefix(__pat, __patlen, __p + 1)) 26629: __last_prefix = __p + 1; 26629: _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); 26629: } 26629: for (__diff_type __p = 0; __p < __patlen - 1; ++__p) 26629: { 26629: auto __slen = _M_suffix_length(__pat, __patlen, __p); 26629: auto __pos = __patlen - 1 - __slen; 26629: if (!__pred(__pat[__p - __slen], __pat[__pos])) 26629: _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; 26629: } 26629: } 26629: 26629: template 26629: template 26629: pair<_RandomAccessIterator2, _RandomAccessIterator2> 26629: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 26629: operator()(_RandomAccessIterator2 __first, 26629: _RandomAccessIterator2 __last) const 26629: { 26629: auto __patlen = _M_pat_end - _M_pat; 26629: if (__patlen == 0) 26629: return std::make_pair(__first, __first); 26629: const auto& __pred = this->_M_pred(); 26629: __diff_type __i = __patlen - 1; 26629: auto __stringlen = __last - __first; 26629: while (__i < __stringlen) 26629: { 26629: __diff_type __j = __patlen - 1; 26629: while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) 26629: { 26629: --__i; 26629: --__j; 26629: } 26629: if (__j < 0) 26629: { 26629: const auto __match = __first + __i + 1; 26629: return std::make_pair(__match, __match + __patlen); 26629: } 26629: __i += std::max(_M_bad_char_shift(__first[__i]), 26629: _M_good_suffix[__j]); 26629: } 26629: return std::make_pair(__last, __last); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: # 1 "/usr/include/c++/12/memory" 1 3 26629: # 47 "/usr/include/c++/12/memory" 3 26629: 26629: # 48 "/usr/include/c++/12/memory" 3 26629: # 68 "/usr/include/c++/12/memory" 3 26629: # 1 "/usr/include/c++/12/bits/stl_raw_storage_iter.h" 1 3 26629: # 59 "/usr/include/c++/12/bits/stl_raw_storage_iter.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class [[__deprecated__]] raw_storage_iterator 26629: : public iterator 26629: { 26629: protected: 26629: _OutputIterator _M_iter; 26629: 26629: public: 26629: explicit 26629: raw_storage_iterator(_OutputIterator __x) 26629: : _M_iter(__x) {} 26629: 26629: raw_storage_iterator& 26629: operator*() { return *this; } 26629: 26629: raw_storage_iterator& 26629: operator=(const _Tp& __element) 26629: { 26629: std::_Construct(std::__addressof(*_M_iter), __element); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: raw_storage_iterator& 26629: operator=(_Tp&& __element) 26629: { 26629: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 26629: return *this; 26629: } 26629: 26629: 26629: raw_storage_iterator& 26629: operator++() 26629: { 26629: ++_M_iter; 26629: return *this; 26629: } 26629: 26629: raw_storage_iterator 26629: operator++(int) 26629: { 26629: raw_storage_iterator __tmp = *this; 26629: ++_M_iter; 26629: return __tmp; 26629: } 26629: 26629: 26629: 26629: _OutputIterator base() const { return _M_iter; } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: } 26629: # 69 "/usr/include/c++/12/memory" 2 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/align.h" 1 3 26629: # 35 "/usr/include/c++/12/bits/align.h" 3 26629: # 1 "/usr/include/c++/12/bit" 1 3 26629: # 32 "/usr/include/c++/12/bit" 3 26629: 26629: # 33 "/usr/include/c++/12/bit" 3 26629: # 55 "/usr/include/c++/12/bit" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 149 "/usr/include/c++/12/bit" 3 26629: template 26629: constexpr _Tp 26629: __rotl(_Tp __x, int __s) noexcept 26629: { 26629: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 26629: if constexpr ((_Nd & (_Nd - 1)) == 0) 26629: { 26629: 26629: 26629: constexpr unsigned __uNd = _Nd; 26629: const unsigned __r = __s; 26629: return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); 26629: } 26629: const int __r = __s % _Nd; 26629: if (__r == 0) 26629: return __x; 26629: else if (__r > 0) 26629: return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); 26629: else 26629: return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); 26629: } 26629: 26629: template 26629: constexpr _Tp 26629: __rotr(_Tp __x, int __s) noexcept 26629: { 26629: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 26629: if constexpr ((_Nd & (_Nd - 1)) == 0) 26629: { 26629: 26629: 26629: constexpr unsigned __uNd = _Nd; 26629: const unsigned __r = __s; 26629: return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); 26629: } 26629: const int __r = __s % _Nd; 26629: if (__r == 0) 26629: return __x; 26629: else if (__r > 0) 26629: return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); 26629: else 26629: return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); 26629: } 26629: 26629: template 26629: constexpr int 26629: __countl_zero(_Tp __x) noexcept 26629: { 26629: using __gnu_cxx::__int_traits; 26629: constexpr auto _Nd = __int_traits<_Tp>::__digits; 26629: 26629: if (__x == 0) 26629: return _Nd; 26629: 26629: constexpr auto _Nd_ull = __int_traits::__digits; 26629: constexpr auto _Nd_ul = __int_traits::__digits; 26629: constexpr auto _Nd_u = __int_traits::__digits; 26629: 26629: if constexpr (_Nd <= _Nd_u) 26629: { 26629: constexpr int __diff = _Nd_u - _Nd; 26629: return __builtin_clz(__x) - __diff; 26629: } 26629: else if constexpr (_Nd <= _Nd_ul) 26629: { 26629: constexpr int __diff = _Nd_ul - _Nd; 26629: return __builtin_clzl(__x) - __diff; 26629: } 26629: else if constexpr (_Nd <= _Nd_ull) 26629: { 26629: constexpr int __diff = _Nd_ull - _Nd; 26629: return __builtin_clzll(__x) - __diff; 26629: } 26629: else 26629: { 26629: static_assert(_Nd <= (2 * _Nd_ull), 26629: "Maximum supported integer size is 128-bit"); 26629: 26629: unsigned long long __high = __x >> _Nd_ull; 26629: if (__high != 0) 26629: { 26629: constexpr int __diff = (2 * _Nd_ull) - _Nd; 26629: return __builtin_clzll(__high) - __diff; 26629: } 26629: constexpr auto __max_ull = __int_traits::__max; 26629: unsigned long long __low = __x & __max_ull; 26629: return (_Nd - _Nd_ull) + __builtin_clzll(__low); 26629: } 26629: } 26629: 26629: template 26629: constexpr int 26629: __countl_one(_Tp __x) noexcept 26629: { 26629: return std::__countl_zero<_Tp>((_Tp)~__x); 26629: } 26629: 26629: template 26629: constexpr int 26629: __countr_zero(_Tp __x) noexcept 26629: { 26629: using __gnu_cxx::__int_traits; 26629: constexpr auto _Nd = __int_traits<_Tp>::__digits; 26629: 26629: if (__x == 0) 26629: return _Nd; 26629: 26629: constexpr auto _Nd_ull = __int_traits::__digits; 26629: constexpr auto _Nd_ul = __int_traits::__digits; 26629: constexpr auto _Nd_u = __int_traits::__digits; 26629: 26629: if constexpr (_Nd <= _Nd_u) 26629: return __builtin_ctz(__x); 26629: else if constexpr (_Nd <= _Nd_ul) 26629: return __builtin_ctzl(__x); 26629: else if constexpr (_Nd <= _Nd_ull) 26629: return __builtin_ctzll(__x); 26629: else 26629: { 26629: static_assert(_Nd <= (2 * _Nd_ull), 26629: "Maximum supported integer size is 128-bit"); 26629: 26629: constexpr auto __max_ull = __int_traits::__max; 26629: unsigned long long __low = __x & __max_ull; 26629: if (__low != 0) 26629: return __builtin_ctzll(__low); 26629: unsigned long long __high = __x >> _Nd_ull; 26629: return __builtin_ctzll(__high) + _Nd_ull; 26629: } 26629: } 26629: 26629: template 26629: constexpr int 26629: __countr_one(_Tp __x) noexcept 26629: { 26629: return std::__countr_zero((_Tp)~__x); 26629: } 26629: 26629: template 26629: constexpr int 26629: __popcount(_Tp __x) noexcept 26629: { 26629: using __gnu_cxx::__int_traits; 26629: constexpr auto _Nd = __int_traits<_Tp>::__digits; 26629: 26629: constexpr auto _Nd_ull = __int_traits::__digits; 26629: constexpr auto _Nd_ul = __int_traits::__digits; 26629: constexpr auto _Nd_u = __int_traits::__digits; 26629: 26629: if constexpr (_Nd <= _Nd_u) 26629: return __builtin_popcount(__x); 26629: else if constexpr (_Nd <= _Nd_ul) 26629: return __builtin_popcountl(__x); 26629: else if constexpr (_Nd <= _Nd_ull) 26629: return __builtin_popcountll(__x); 26629: else 26629: { 26629: static_assert(_Nd <= (2 * _Nd_ull), 26629: "Maximum supported integer size is 128-bit"); 26629: 26629: constexpr auto __max_ull = __int_traits::__max; 26629: unsigned long long __low = __x & __max_ull; 26629: unsigned long long __high = __x >> _Nd_ull; 26629: return __builtin_popcountll(__low) + __builtin_popcountll(__high); 26629: } 26629: } 26629: 26629: template 26629: constexpr bool 26629: __has_single_bit(_Tp __x) noexcept 26629: { return std::__popcount(__x) == 1; } 26629: 26629: template 26629: constexpr _Tp 26629: __bit_ceil(_Tp __x) noexcept 26629: { 26629: using __gnu_cxx::__int_traits; 26629: constexpr auto _Nd = __int_traits<_Tp>::__digits; 26629: if (__x == 0 || __x == 1) 26629: return 1; 26629: auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); 26629: 26629: 26629: 26629: 26629: if (!std::__is_constant_evaluated()) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__shift_exponent != __int_traits<_Tp>::__digits)) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: using __promoted_type = decltype(__x << 1); 26629: if constexpr (!is_same<__promoted_type, _Tp>::value) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; 26629: __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; 26629: } 26629: return (_Tp)1u << __shift_exponent; 26629: } 26629: 26629: template 26629: constexpr _Tp 26629: __bit_floor(_Tp __x) noexcept 26629: { 26629: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 26629: if (__x == 0) 26629: return 0; 26629: return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); 26629: } 26629: 26629: template 26629: constexpr _Tp 26629: __bit_width(_Tp __x) noexcept 26629: { 26629: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 26629: return _Nd - std::__countl_zero(__x); 26629: } 26629: # 476 "/usr/include/c++/12/bit" 3 26629: 26629: } 26629: # 36 "/usr/include/c++/12/bits/align.h" 2 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 61 "/usr/include/c++/12/bits/align.h" 3 26629: inline void* 26629: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 26629: { 26629: if (__space < __size) 26629: return nullptr; 26629: const auto __intptr = reinterpret_cast(__ptr); 26629: const auto __aligned = (__intptr - 1u + __align) & -__align; 26629: const auto __diff = __aligned - __intptr; 26629: if (__diff > (__space - __size)) 26629: return nullptr; 26629: else 26629: { 26629: __space -= __diff; 26629: return __ptr = reinterpret_cast(__aligned); 26629: } 26629: } 26629: # 108 "/usr/include/c++/12/bits/align.h" 3 26629: 26629: } 26629: # 73 "/usr/include/c++/12/memory" 2 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/unique_ptr.h" 1 3 26629: # 52 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: template class auto_ptr; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: 26629: template 26629: struct default_delete 26629: { 26629: 26629: constexpr default_delete() noexcept = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template>> 26629: 26629: default_delete(const default_delete<_Up>&) noexcept { } 26629: 26629: 26629: 26629: void 26629: operator()(_Tp* __ptr) const 26629: { 26629: static_assert(!is_void<_Tp>::value, 26629: "can't delete pointer to incomplete type"); 26629: static_assert(sizeof(_Tp)>0, 26629: "can't delete pointer to incomplete type"); 26629: delete __ptr; 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct default_delete<_Tp[]> 26629: { 26629: public: 26629: 26629: constexpr default_delete() noexcept = default; 26629: # 119 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template>> 26629: 26629: default_delete(const default_delete<_Up[]>&) noexcept { } 26629: 26629: 26629: template 26629: 26629: typename enable_if::value>::type 26629: operator()(_Up* __ptr) const 26629: { 26629: static_assert(sizeof(_Tp)>0, 26629: "can't delete pointer to incomplete type"); 26629: delete [] __ptr; 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: class __uniq_ptr_impl 26629: { 26629: template 26629: struct _Ptr 26629: { 26629: using type = _Up*; 26629: }; 26629: 26629: template 26629: struct 26629: _Ptr<_Up, _Ep, __void_t::type::pointer>> 26629: { 26629: using type = typename remove_reference<_Ep>::type::pointer; 26629: }; 26629: 26629: public: 26629: using _DeleterConstraint = enable_if< 26629: __and_<__not_>, 26629: is_default_constructible<_Dp>>::value>; 26629: 26629: using pointer = typename _Ptr<_Tp, _Dp>::type; 26629: 26629: static_assert( !is_rvalue_reference<_Dp>::value, 26629: "unique_ptr's deleter type must be a function object type" 26629: " or an lvalue reference type" ); 26629: 26629: __uniq_ptr_impl() = default; 26629: 26629: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 26629: 26629: template 26629: 26629: __uniq_ptr_impl(pointer __p, _Del&& __d) 26629: : _M_t(__p, std::forward<_Del>(__d)) { } 26629: 26629: 26629: __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept 26629: : _M_t(std::move(__u._M_t)) 26629: { __u._M_ptr() = nullptr; } 26629: 26629: 26629: __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept 26629: { 26629: reset(__u.release()); 26629: _M_deleter() = std::forward<_Dp>(__u._M_deleter()); 26629: return *this; 26629: } 26629: 26629: 26629: pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } 26629: 26629: pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } 26629: 26629: _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } 26629: 26629: const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } 26629: 26629: 26629: void reset(pointer __p) noexcept 26629: { 26629: const pointer __old_p = _M_ptr(); 26629: _M_ptr() = __p; 26629: if (__old_p) 26629: _M_deleter()(__old_p); 26629: } 26629: 26629: 26629: pointer release() noexcept 26629: { 26629: pointer __p = _M_ptr(); 26629: _M_ptr() = nullptr; 26629: return __p; 26629: } 26629: 26629: 26629: void 26629: swap(__uniq_ptr_impl& __rhs) noexcept 26629: { 26629: using std::swap; 26629: swap(this->_M_ptr(), __rhs._M_ptr()); 26629: swap(this->_M_deleter(), __rhs._M_deleter()); 26629: } 26629: 26629: private: 26629: tuple _M_t; 26629: }; 26629: 26629: 26629: template ::value, 26629: bool = is_move_assignable<_Dp>::value> 26629: struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> 26629: { 26629: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 26629: __uniq_ptr_data(__uniq_ptr_data&&) = default; 26629: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 26629: }; 26629: 26629: template 26629: struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> 26629: { 26629: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 26629: __uniq_ptr_data(__uniq_ptr_data&&) = default; 26629: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 26629: }; 26629: 26629: template 26629: struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> 26629: { 26629: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 26629: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 26629: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 26629: }; 26629: 26629: template 26629: struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> 26629: { 26629: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 26629: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 26629: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template > 26629: class unique_ptr 26629: { 26629: template 26629: using _DeleterConstraint = 26629: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 26629: 26629: __uniq_ptr_data<_Tp, _Dp> _M_t; 26629: 26629: public: 26629: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 26629: using element_type = _Tp; 26629: using deleter_type = _Dp; 26629: 26629: private: 26629: 26629: 26629: template 26629: using __safe_conversion_up = __and_< 26629: is_convertible::pointer, pointer>, 26629: __not_> 26629: >; 26629: 26629: public: 26629: 26629: 26629: 26629: template> 26629: constexpr unique_ptr() noexcept 26629: : _M_t() 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: 26629: explicit 26629: unique_ptr(pointer __p) noexcept 26629: : _M_t(__p) 26629: { } 26629: # 320 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template>> 26629: 26629: unique_ptr(pointer __p, const deleter_type& __d) noexcept 26629: : _M_t(__p, __d) { } 26629: # 333 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template>> 26629: 26629: unique_ptr(pointer __p, 26629: __enable_if_t::value, 26629: _Del&&> __d) noexcept 26629: : _M_t(__p, std::move(__d)) 26629: { } 26629: 26629: template::type> 26629: 26629: unique_ptr(pointer, 26629: __enable_if_t::value, 26629: _DelUnref&&>) = delete; 26629: 26629: 26629: template> 26629: constexpr unique_ptr(nullptr_t) noexcept 26629: : _M_t() 26629: { } 26629: 26629: 26629: 26629: 26629: unique_ptr(unique_ptr&&) = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template, 26629: __conditional_t::value, 26629: is_same<_Ep, _Dp>, 26629: is_convertible<_Ep, _Dp>>>> 26629: 26629: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 26629: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 26629: { } 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: template, is_same<_Dp, default_delete<_Tp>>>> 26629: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: 26629: 26629: 26629: ~unique_ptr() noexcept 26629: { 26629: static_assert(__is_invocable::value, 26629: "unique_ptr's deleter must be invocable with a pointer"); 26629: auto& __ptr = _M_t._M_ptr(); 26629: if (__ptr != nullptr) 26629: get_deleter()(std::move(__ptr)); 26629: __ptr = pointer(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: unique_ptr& operator=(unique_ptr&&) = default; 26629: # 415 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template 26629: 26629: typename enable_if< __and_< 26629: __safe_conversion_up<_Up, _Ep>, 26629: is_assignable 26629: >::value, 26629: unique_ptr&>::type 26629: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 26629: { 26629: reset(__u.release()); 26629: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: unique_ptr& 26629: operator=(nullptr_t) noexcept 26629: { 26629: reset(); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: typename add_lvalue_reference::type 26629: operator*() const noexcept(noexcept(*std::declval())) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) __builtin_unreachable(); } while (false); 26629: return *get(); 26629: } 26629: 26629: 26629: 26629: pointer 26629: operator->() const noexcept 26629: { 26629: ; 26629: return get(); 26629: } 26629: 26629: 26629: 26629: pointer 26629: get() const noexcept 26629: { return _M_t._M_ptr(); } 26629: 26629: 26629: 26629: deleter_type& 26629: get_deleter() noexcept 26629: { return _M_t._M_deleter(); } 26629: 26629: 26629: 26629: const deleter_type& 26629: get_deleter() const noexcept 26629: { return _M_t._M_deleter(); } 26629: 26629: 26629: 26629: explicit operator bool() const noexcept 26629: { return get() == pointer() ? false : true; } 26629: 26629: 26629: 26629: 26629: 26629: pointer 26629: release() noexcept 26629: { return _M_t.release(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: reset(pointer __p = pointer()) noexcept 26629: { 26629: static_assert(__is_invocable::value, 26629: "unique_ptr's deleter must be invocable with a pointer"); 26629: _M_t.reset(std::move(__p)); 26629: } 26629: 26629: 26629: 26629: void 26629: swap(unique_ptr& __u) noexcept 26629: { 26629: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 26629: _M_t.swap(__u._M_t); 26629: } 26629: 26629: 26629: unique_ptr(const unique_ptr&) = delete; 26629: unique_ptr& operator=(const unique_ptr&) = delete; 26629: }; 26629: # 526 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template 26629: class unique_ptr<_Tp[], _Dp> 26629: { 26629: template 26629: using _DeleterConstraint = 26629: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 26629: 26629: __uniq_ptr_data<_Tp, _Dp> _M_t; 26629: 26629: template 26629: using __remove_cv = typename remove_cv<_Up>::type; 26629: 26629: 26629: template 26629: using __is_derived_Tp 26629: = __and_< is_base_of<_Tp, _Up>, 26629: __not_, __remove_cv<_Up>>> >; 26629: 26629: public: 26629: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 26629: using element_type = _Tp; 26629: using deleter_type = _Dp; 26629: 26629: 26629: 26629: template, 26629: typename _UP_pointer = typename _UPtr::pointer, 26629: typename _UP_element_type = typename _UPtr::element_type> 26629: using __safe_conversion_up = __and_< 26629: is_array<_Up>, 26629: is_same, 26629: is_same<_UP_pointer, _UP_element_type*>, 26629: is_convertible<_UP_element_type(*)[], element_type(*)[]> 26629: >; 26629: 26629: 26629: template 26629: using __safe_conversion_raw = __and_< 26629: __or_<__or_, 26629: is_same<_Up, nullptr_t>>, 26629: __and_, 26629: is_same, 26629: is_convertible< 26629: typename remove_pointer<_Up>::type(*)[], 26629: element_type(*)[]> 26629: > 26629: > 26629: >; 26629: 26629: 26629: 26629: 26629: template> 26629: constexpr unique_ptr() noexcept 26629: : _M_t() 26629: { } 26629: # 591 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template, 26629: typename = typename enable_if< 26629: __safe_conversion_raw<_Up>::value, bool>::type> 26629: 26629: explicit 26629: unique_ptr(_Up __p) noexcept 26629: : _M_t(__p) 26629: { } 26629: # 610 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template, 26629: is_copy_constructible<_Del>>> 26629: 26629: unique_ptr(_Up __p, const deleter_type& __d) noexcept 26629: : _M_t(__p, __d) { } 26629: # 625 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template, 26629: is_move_constructible<_Del>>> 26629: 26629: unique_ptr(_Up __p, 26629: __enable_if_t::value, 26629: _Del&&> __d) noexcept 26629: : _M_t(std::move(__p), std::move(__d)) 26629: { } 26629: 26629: template::type, 26629: typename = _Require<__safe_conversion_raw<_Up>>> 26629: unique_ptr(_Up, 26629: __enable_if_t::value, 26629: _DelUnref&&>) = delete; 26629: 26629: 26629: unique_ptr(unique_ptr&&) = default; 26629: 26629: 26629: template> 26629: constexpr unique_ptr(nullptr_t) noexcept 26629: : _M_t() 26629: { } 26629: 26629: template, 26629: __conditional_t::value, 26629: is_same<_Ep, _Dp>, 26629: is_convertible<_Ep, _Dp>>>> 26629: 26629: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 26629: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: ~unique_ptr() 26629: { 26629: auto& __ptr = _M_t._M_ptr(); 26629: if (__ptr != nullptr) 26629: get_deleter()(__ptr); 26629: __ptr = pointer(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: unique_ptr& 26629: operator=(unique_ptr&&) = default; 26629: # 689 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template 26629: 26629: typename 26629: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 26629: is_assignable 26629: >::value, 26629: unique_ptr&>::type 26629: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 26629: { 26629: reset(__u.release()); 26629: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: unique_ptr& 26629: operator=(nullptr_t) noexcept 26629: { 26629: reset(); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: typename std::add_lvalue_reference::type 26629: operator[](size_t __i) const 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) __builtin_unreachable(); } while (false); 26629: return get()[__i]; 26629: } 26629: 26629: 26629: 26629: pointer 26629: get() const noexcept 26629: { return _M_t._M_ptr(); } 26629: 26629: 26629: 26629: deleter_type& 26629: get_deleter() noexcept 26629: { return _M_t._M_deleter(); } 26629: 26629: 26629: 26629: const deleter_type& 26629: get_deleter() const noexcept 26629: { return _M_t._M_deleter(); } 26629: 26629: 26629: 26629: explicit operator bool() const noexcept 26629: { return get() == pointer() ? false : true; } 26629: 26629: 26629: 26629: 26629: 26629: pointer 26629: release() noexcept 26629: { return _M_t.release(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template , 26629: __and_, 26629: is_pointer<_Up>, 26629: is_convertible< 26629: typename remove_pointer<_Up>::type(*)[], 26629: element_type(*)[] 26629: > 26629: > 26629: > 26629: >> 26629: 26629: void 26629: reset(_Up __p) noexcept 26629: { _M_t.reset(std::move(__p)); } 26629: 26629: 26629: void reset(nullptr_t = nullptr) noexcept 26629: { reset(pointer()); } 26629: 26629: 26629: 26629: void 26629: swap(unique_ptr& __u) noexcept 26629: { 26629: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 26629: _M_t.swap(__u._M_t); 26629: } 26629: 26629: 26629: unique_ptr(const unique_ptr&) = delete; 26629: unique_ptr& operator=(const unique_ptr&) = delete; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline 26629: 26629: 26629: 26629: typename enable_if<__is_swappable<_Dp>::value>::type 26629: 26629: 26629: 26629: swap(unique_ptr<_Tp, _Dp>& __x, 26629: unique_ptr<_Tp, _Dp>& __y) noexcept 26629: { __x.swap(__y); } 26629: 26629: 26629: template 26629: typename enable_if::value>::type 26629: swap(unique_ptr<_Tp, _Dp>&, 26629: unique_ptr<_Tp, _Dp>&) = delete; 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator==(const unique_ptr<_Tp, _Dp>& __x, 26629: const unique_ptr<_Up, _Ep>& __y) 26629: { return __x.get() == __y.get(); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 26629: { return !__x; } 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 26629: { return !__x; } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator!=(const unique_ptr<_Tp, _Dp>& __x, 26629: const unique_ptr<_Up, _Ep>& __y) 26629: { return __x.get() != __y.get(); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 26629: { return (bool)__x; } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 26629: { return (bool)__x; } 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<(const unique_ptr<_Tp, _Dp>& __x, 26629: const unique_ptr<_Up, _Ep>& __y) 26629: { 26629: typedef typename 26629: std::common_type::pointer, 26629: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 26629: return std::less<_CT>()(__x.get(), __y.get()); 26629: } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 26629: { 26629: return std::less::pointer>()(__x.get(), 26629: nullptr); 26629: } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 26629: { 26629: return std::less::pointer>()(nullptr, 26629: __x.get()); 26629: } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<=(const unique_ptr<_Tp, _Dp>& __x, 26629: const unique_ptr<_Up, _Ep>& __y) 26629: { return !(__y < __x); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 26629: { return !(nullptr < __x); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 26629: { return !(__x < nullptr); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>(const unique_ptr<_Tp, _Dp>& __x, 26629: const unique_ptr<_Up, _Ep>& __y) 26629: { return (__y < __x); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 26629: { 26629: return std::less::pointer>()(nullptr, 26629: __x.get()); 26629: } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 26629: { 26629: return std::less::pointer>()(__x.get(), 26629: nullptr); 26629: } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>=(const unique_ptr<_Tp, _Dp>& __x, 26629: const unique_ptr<_Up, _Ep>& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 26629: { return !(__x < nullptr); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 26629: { return !(nullptr < __x); } 26629: # 1001 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template::__enable_hash_call> 26629: struct __uniq_ptr_hash 26629: 26629: : private __poison_hash<_Ptr> 26629: 26629: { 26629: size_t 26629: operator()(const _Up& __u) const 26629: noexcept(noexcept(std::declval>()(std::declval<_Ptr>()))) 26629: { return hash<_Ptr>()(__u.get()); } 26629: }; 26629: 26629: template 26629: struct __uniq_ptr_hash<_Up, _Ptr, false> 26629: : private __poison_hash<_Ptr> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct hash> 26629: : public __hash_base>, 26629: public __uniq_ptr_hash> 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: namespace __detail 26629: { 26629: template 26629: struct _MakeUniq 26629: { typedef unique_ptr<_Tp> __single_object; }; 26629: 26629: template 26629: struct _MakeUniq<_Tp[]> 26629: { typedef unique_ptr<_Tp[]> __array; }; 26629: 26629: template 26629: struct _MakeUniq<_Tp[_Bound]> 26629: { struct __invalid_type { }; }; 26629: 26629: template 26629: using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; 26629: template 26629: using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; 26629: template 26629: using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; 26629: } 26629: # 1061 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template 26629: 26629: inline __detail::__unique_ptr_t<_Tp> 26629: make_unique(_Args&&... __args) 26629: { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } 26629: # 1076 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: template 26629: 26629: inline __detail::__unique_ptr_array_t<_Tp> 26629: make_unique(size_t __num) 26629: { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: __detail::__invalid_make_unique_t<_Tp> 26629: make_unique(_Args&&...) = delete; 26629: # 1149 "/usr/include/c++/12/bits/unique_ptr.h" 3 26629: namespace __detail::__variant 26629: { 26629: template struct _Never_valueless_alt; 26629: 26629: 26629: 26629: template 26629: struct _Never_valueless_alt> 26629: : std::true_type 26629: { }; 26629: } 26629: 26629: 26629: 26629: } 26629: # 77 "/usr/include/c++/12/memory" 2 3 26629: # 1 "/usr/include/c++/12/bits/shared_ptr.h" 1 3 26629: # 52 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: # 1 "/usr/include/c++/12/iosfwd" 1 3 26629: # 36 "/usr/include/c++/12/iosfwd" 3 26629: 26629: # 37 "/usr/include/c++/12/iosfwd" 3 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/stringfwd.h" 1 3 26629: # 37 "/usr/include/c++/12/bits/stringfwd.h" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/stringfwd.h" 3 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct char_traits; 26629: 26629: template<> struct char_traits; 26629: 26629: template<> struct char_traits; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> struct char_traits; 26629: template<> struct char_traits; 26629: 26629: 26629: namespace __cxx11 { 26629: 26629: template, 26629: typename _Alloc = allocator<_CharT> > 26629: class basic_string; 26629: 26629: } 26629: 26629: 26629: typedef basic_string string; 26629: 26629: 26629: typedef basic_string wstring; 26629: # 89 "/usr/include/c++/12/bits/stringfwd.h" 3 26629: typedef basic_string u16string; 26629: 26629: 26629: typedef basic_string u32string; 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 40 "/usr/include/c++/12/iosfwd" 2 3 26629: # 1 "/usr/include/c++/12/bits/postypes.h" 1 3 26629: # 38 "/usr/include/c++/12/bits/postypes.h" 3 26629: 26629: # 39 "/usr/include/c++/12/bits/postypes.h" 3 26629: 26629: # 1 "/usr/include/c++/12/cwchar" 1 3 26629: # 39 "/usr/include/c++/12/cwchar" 3 26629: 26629: # 40 "/usr/include/c++/12/cwchar" 3 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/wchar.h" 1 3 4 26629: # 27 "/usr/include/wchar.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 26629: # 28 "/usr/include/wchar.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 26629: # 31 "/usr/include/wchar.h" 2 3 4 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 36 "/usr/include/wchar.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdarg.h" 1 3 4 26629: # 40 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdarg.h" 3 4 26629: typedef __builtin_va_list __gnuc_va_list; 26629: # 39 "/usr/include/wchar.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 1 3 4 26629: # 20 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 3 4 26629: typedef unsigned int wint_t; 26629: # 42 "/usr/include/wchar.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 1 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 1 3 4 26629: # 13 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 3 4 26629: typedef struct 26629: { 26629: int __count; 26629: union 26629: { 26629: unsigned int __wch; 26629: char __wchb[4]; 26629: } __value; 26629: } __mbstate_t; 26629: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 2 3 4 26629: 26629: typedef __mbstate_t mbstate_t; 26629: # 43 "/usr/include/wchar.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__FILE.h" 1 3 4 26629: 26629: 26629: 26629: struct _IO_FILE; 26629: typedef struct _IO_FILE __FILE; 26629: # 44 "/usr/include/wchar.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/FILE.h" 1 3 4 26629: 26629: 26629: 26629: struct _IO_FILE; 26629: 26629: 26629: typedef struct _IO_FILE FILE; 26629: # 47 "/usr/include/wchar.h" 2 3 4 26629: # 79 "/usr/include/wchar.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: struct tm; 26629: 26629: 26629: 26629: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern wchar_t *wcscat (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 26629: 26629: 26629: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 26629: size_t __n) noexcept (true); 26629: 26629: 26629: 26629: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 26629: locale_t __loc) noexcept (true); 26629: 26629: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 26629: size_t __n, locale_t __loc) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 26629: 26629: 26629: 26629: extern size_t wcsxfrm (wchar_t *__restrict __s1, 26629: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 26629: locale_t __loc) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 26629: size_t __n, locale_t __loc) noexcept (true); 26629: 26629: 26629: extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) 26629: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 26629: 26629: 26629: 26629: 26629: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 26629: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 26629: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 26629: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 26629: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 26629: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 26629: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 26629: # 182 "/usr/include/wchar.h" 3 4 26629: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 26629: noexcept (true) __attribute__ ((__pure__)); 26629: 26629: 26629: 26629: 26629: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 26629: noexcept (true) __attribute__ ((__pure__)); 26629: 26629: 26629: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 26629: noexcept (true) __attribute__ ((__pure__)); 26629: 26629: 26629: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 26629: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 26629: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 26629: const wchar_t *__accept) 26629: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 26629: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 26629: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 26629: const wchar_t *__needle) 26629: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern wchar_t *wcstok (wchar_t *__restrict __s, 26629: const wchar_t *__restrict __delim, 26629: wchar_t **__restrict __ptr) noexcept (true); 26629: 26629: 26629: extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); 26629: 26629: 26629: 26629: 26629: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 26629: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 26629: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 26629: const wchar_t *__needle) 26629: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 26629: # 241 "/usr/include/wchar.h" 3 4 26629: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 26629: noexcept (true) __attribute__ ((__pure__)); 26629: 26629: 26629: 26629: 26629: 26629: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 26629: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 26629: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 26629: size_t __n) 26629: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 26629: noexcept (true) __attribute__ ((__pure__)); 26629: 26629: 26629: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 26629: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 26629: 26629: 26629: 26629: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 26629: noexcept (true); 26629: 26629: 26629: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 26629: const wchar_t *__restrict __s2, size_t __n) 26629: noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern wint_t btowc (int __c) noexcept (true); 26629: 26629: 26629: 26629: extern int wctob (wint_t __c) noexcept (true); 26629: 26629: 26629: 26629: extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); 26629: 26629: 26629: 26629: extern size_t mbrtowc (wchar_t *__restrict __pwc, 26629: const char *__restrict __s, size_t __n, 26629: mbstate_t *__restrict __p) noexcept (true); 26629: 26629: 26629: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 26629: mbstate_t *__restrict __ps) noexcept (true); 26629: 26629: 26629: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 26629: mbstate_t *__restrict __ps) noexcept (true); 26629: extern size_t mbrlen (const char *__restrict __s, size_t __n, 26629: mbstate_t *__restrict __ps) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 26629: extern __inline __attribute__ ((__gnu_inline__)) wint_t 26629: __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) 26629: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 26629: ? (wint_t) __c : __btowc_alias (__c)); } 26629: 26629: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) 26629: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 26629: ? (int) __wc : __wctob_alias (__wc)); } 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) size_t 26629: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) 26629: 26629: { return (__ps != __null 26629: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 26629: 26629: 26629: 26629: 26629: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 26629: const char **__restrict __src, size_t __len, 26629: mbstate_t *__restrict __ps) noexcept (true); 26629: 26629: 26629: 26629: extern size_t wcsrtombs (char *__restrict __dst, 26629: const wchar_t **__restrict __src, size_t __len, 26629: mbstate_t *__restrict __ps) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 26629: const char **__restrict __src, size_t __nmc, 26629: size_t __len, mbstate_t *__restrict __ps) noexcept (true); 26629: 26629: 26629: 26629: extern size_t wcsnrtombs (char *__restrict __dst, 26629: const wchar_t **__restrict __src, 26629: size_t __nwc, size_t __len, 26629: mbstate_t *__restrict __ps) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int wcwidth (wchar_t __c) noexcept (true); 26629: 26629: 26629: 26629: extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern double wcstod (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr) noexcept (true); 26629: 26629: 26629: 26629: extern float wcstof (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr) noexcept (true); 26629: extern long double wcstold (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr) noexcept (true); 26629: # 397 "/usr/include/wchar.h" 3 4 26629: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr) noexcept (true); 26629: 26629: 26629: 26629: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr) noexcept (true); 26629: # 412 "/usr/include/wchar.h" 3 4 26629: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr) noexcept (true); 26629: # 429 "/usr/include/wchar.h" 3 4 26629: extern long int wcstol (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, int __base) noexcept (true); 26629: 26629: 26629: 26629: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, int __base) 26629: noexcept (true); 26629: 26629: 26629: 26629: 26629: __extension__ 26629: extern long long int wcstoll (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, int __base) 26629: noexcept (true); 26629: 26629: 26629: 26629: __extension__ 26629: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, 26629: int __base) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: __extension__ 26629: extern long long int wcstoq (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, int __base) 26629: noexcept (true); 26629: 26629: 26629: 26629: __extension__ 26629: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, 26629: int __base) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long int wcstol_l (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, int __base, 26629: locale_t __loc) noexcept (true); 26629: 26629: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, 26629: int __base, locale_t __loc) noexcept (true); 26629: 26629: __extension__ 26629: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, 26629: int __base, locale_t __loc) noexcept (true); 26629: 26629: __extension__ 26629: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, 26629: int __base, locale_t __loc) 26629: noexcept (true); 26629: 26629: extern double wcstod_l (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, locale_t __loc) 26629: noexcept (true); 26629: 26629: extern float wcstof_l (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, locale_t __loc) 26629: noexcept (true); 26629: 26629: extern long double wcstold_l (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, 26629: locale_t __loc) noexcept (true); 26629: # 512 "/usr/include/wchar.h" 3 4 26629: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, 26629: locale_t __loc) noexcept (true); 26629: 26629: 26629: 26629: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, 26629: locale_t __loc) noexcept (true); 26629: # 530 "/usr/include/wchar.h" 3 4 26629: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, 26629: locale_t __loc) noexcept (true); 26629: # 552 "/usr/include/wchar.h" 3 4 26629: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src) noexcept (true); 26629: 26629: 26629: 26629: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src, size_t __n) 26629: noexcept (true); 26629: # 581 "/usr/include/wchar.h" 3 4 26629: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 26629: __attribute__ ((__malloc__)) ; 26629: 26629: 26629: 26629: 26629: 26629: extern int fwide (__FILE *__fp, int __mode) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fwprintf (__FILE *__restrict __stream, 26629: const wchar_t *__restrict __format, ...) 26629: ; 26629: 26629: 26629: 26629: 26629: extern int wprintf (const wchar_t *__restrict __format, ...) 26629: ; 26629: 26629: extern int swprintf (wchar_t *__restrict __s, size_t __n, 26629: const wchar_t *__restrict __format, ...) 26629: noexcept (true) ; 26629: 26629: 26629: 26629: 26629: 26629: extern int vfwprintf (__FILE *__restrict __s, 26629: const wchar_t *__restrict __format, 26629: __gnuc_va_list __arg) 26629: ; 26629: 26629: 26629: 26629: 26629: extern int vwprintf (const wchar_t *__restrict __format, 26629: __gnuc_va_list __arg) 26629: ; 26629: 26629: 26629: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 26629: const wchar_t *__restrict __format, 26629: __gnuc_va_list __arg) 26629: noexcept (true) ; 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fwscanf (__FILE *__restrict __stream, 26629: const wchar_t *__restrict __format, ...) 26629: ; 26629: 26629: 26629: 26629: 26629: extern int wscanf (const wchar_t *__restrict __format, ...) 26629: ; 26629: 26629: extern int swscanf (const wchar_t *__restrict __s, 26629: const wchar_t *__restrict __format, ...) 26629: noexcept (true) ; 26629: # 657 "/usr/include/wchar.h" 3 4 26629: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_fwscanf") 26629: 26629: 26629: ; 26629: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_wscanf") 26629: 26629: ; 26629: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc99_swscanf") 26629: 26629: 26629: ; 26629: # 688 "/usr/include/wchar.h" 3 4 26629: extern int vfwscanf (__FILE *__restrict __s, 26629: const wchar_t *__restrict __format, 26629: __gnuc_va_list __arg) 26629: ; 26629: 26629: 26629: 26629: 26629: extern int vwscanf (const wchar_t *__restrict __format, 26629: __gnuc_va_list __arg) 26629: ; 26629: 26629: extern int vswscanf (const wchar_t *__restrict __s, 26629: const wchar_t *__restrict __format, 26629: __gnuc_va_list __arg) 26629: noexcept (true) ; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfwscanf") 26629: 26629: 26629: ; 26629: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vwscanf") 26629: 26629: ; 26629: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc99_vswscanf") 26629: 26629: 26629: ; 26629: # 744 "/usr/include/wchar.h" 3 4 26629: extern wint_t fgetwc (__FILE *__stream); 26629: extern wint_t getwc (__FILE *__stream); 26629: 26629: 26629: 26629: 26629: 26629: extern wint_t getwchar (void); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 26629: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 26629: 26629: 26629: 26629: 26629: 26629: extern wint_t putwchar (wchar_t __wc); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 26629: __FILE *__restrict __stream); 26629: 26629: 26629: 26629: 26629: 26629: extern int fputws (const wchar_t *__restrict __ws, 26629: __FILE *__restrict __stream); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 26629: # 799 "/usr/include/wchar.h" 3 4 26629: extern wint_t getwc_unlocked (__FILE *__stream); 26629: extern wint_t getwchar_unlocked (void); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern wint_t fgetwc_unlocked (__FILE *__stream); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 26629: # 825 "/usr/include/wchar.h" 3 4 26629: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 26629: extern wint_t putwchar_unlocked (wchar_t __wc); 26629: # 835 "/usr/include/wchar.h" 3 4 26629: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 26629: __FILE *__restrict __stream); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fputws_unlocked (const wchar_t *__restrict __ws, 26629: __FILE *__restrict __stream); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 26629: const wchar_t *__restrict __format, 26629: const struct tm *__restrict __tp) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 26629: const wchar_t *__restrict __format, 26629: const struct tm *__restrict __tp, 26629: locale_t __loc) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 1 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 3 4 26629: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 26629: const wchar_t *__restrict __s2, size_t __n, 26629: size_t __ns1) noexcept (true); 26629: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 26629: size_t __n, size_t __ns1) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 26629: const wchar_t *__restrict __s2, size_t __n, 26629: size_t __ns1) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 26629: size_t __ns) noexcept (true); 26629: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src, 26629: size_t __n) noexcept (true); 26629: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src, 26629: size_t __destlen) noexcept (true); 26629: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src, size_t __n, 26629: size_t __destlen) noexcept (true); 26629: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src, size_t __n, 26629: size_t __destlen) noexcept (true); 26629: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src, 26629: size_t __destlen) noexcept (true); 26629: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 26629: const wchar_t *__restrict __src, 26629: size_t __n, size_t __destlen) noexcept (true); 26629: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 26629: int __flag, size_t __s_len, 26629: const wchar_t *__restrict __format, ...) 26629: noexcept (true) ; 26629: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 26629: int __flag, size_t __s_len, 26629: const wchar_t *__restrict __format, 26629: __gnuc_va_list __arg) 26629: noexcept (true) ; 26629: 26629: 26629: 26629: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 26629: const wchar_t *__restrict __format, ...); 26629: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 26629: ...); 26629: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 26629: const wchar_t *__restrict __format, 26629: __gnuc_va_list __ap); 26629: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 26629: __gnuc_va_list __ap); 26629: 26629: 26629: 26629: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 26629: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 26629: int __n, __FILE *__restrict __stream) 26629: __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 26629: mbstate_t *__restrict __p, 26629: size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 26629: const char **__restrict __src, 26629: size_t __len, mbstate_t *__restrict __ps, 26629: size_t __dstlen) noexcept (true); 26629: extern size_t __wcsrtombs_chk (char *__restrict __dst, 26629: const wchar_t **__restrict __src, 26629: size_t __len, mbstate_t *__restrict __ps, 26629: size_t __dstlen) noexcept (true); 26629: 26629: 26629: 26629: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 26629: const char **__restrict __src, size_t __nmc, 26629: size_t __len, mbstate_t *__restrict __ps, 26629: size_t __dstlen) noexcept (true); 26629: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 26629: const wchar_t **__restrict __src, 26629: size_t __nwc, size_t __len, 26629: mbstate_t *__restrict __ps, size_t __dstlen) 26629: noexcept (true); 26629: # 869 "/usr/include/wchar.h" 2 3 4 26629: # 879 "/usr/include/wchar.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 26629: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") 26629: 26629: 26629: ; 26629: 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") 26629: 26629: 26629: 26629: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 26629: __attribute__ ((__leaf__)) wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 26629: 26629: { 26629: 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))))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") 26629: 26629: ; 26629: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") 26629: 26629: 26629: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 26629: __attribute__ ((__leaf__)) wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) 26629: { 26629: 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))))) 26629: 26629: ; 26629: } 26629: 26629: 26629: 26629: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") 26629: 26629: 26629: ; 26629: 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") 26629: 26629: 26629: 26629: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 26629: __attribute__ ((__leaf__)) wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 26629: 26629: { 26629: 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))))) 26629: 26629: ; 26629: } 26629: 26629: 26629: 26629: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") 26629: ; 26629: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") 26629: 26629: 26629: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 26629: __attribute__ ((__leaf__)) wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) 26629: { 26629: 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))))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") 26629: 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 26629: __attribute__ ((__leaf__)) wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 26629: { 26629: size_t sz = __builtin_object_size (__dest, 2 > 1); 26629: if (sz != (size_t) -1) 26629: return __wcscpy_chk (__dest, __src, sz / sizeof (wchar_t)); 26629: return __wcscpy_alias (__dest, __src); 26629: } 26629: 26629: 26629: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") 26629: 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 26629: __attribute__ ((__leaf__)) wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 26629: { 26629: size_t sz = __builtin_object_size (__dest, 2 > 1); 26629: if (sz != (size_t) -1) 26629: return __wcpcpy_chk (__dest, __src, sz / sizeof (wchar_t)); 26629: return __wcpcpy_alias (__dest, __src); 26629: } 26629: 26629: 26629: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") 26629: 26629: 26629: ; 26629: 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") 26629: 26629: 26629: 26629: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 26629: __attribute__ ((__leaf__)) wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 26629: 26629: { 26629: 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))))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") 26629: 26629: 26629: ; 26629: 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") 26629: 26629: 26629: 26629: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 26629: __attribute__ ((__leaf__)) wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 26629: 26629: { 26629: 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))))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") 26629: 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 26629: __attribute__ ((__leaf__)) wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 26629: { 26629: size_t sz = __builtin_object_size (__dest, 2 > 1); 26629: if (sz != (size_t) -1) 26629: return __wcscat_chk (__dest, __src, sz / sizeof (wchar_t)); 26629: return __wcscat_alias (__dest, __src); 26629: } 26629: 26629: 26629: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") 26629: 26629: 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 26629: __attribute__ ((__leaf__)) wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 26629: 26629: { 26629: size_t sz = __builtin_object_size (__dest, 2 > 1); 26629: if (sz != (size_t) -1) 26629: return __wcsncat_chk (__dest, __src, __n, sz / sizeof (wchar_t)); 26629: return __wcsncat_alias (__dest, __src, __n); 26629: } 26629: 26629: 26629: 26629: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") 26629: 26629: 26629: ; 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) 26629: 26629: { 26629: size_t sz = __builtin_object_size (__s, 2 > 1); 26629: if (sz != (size_t) -1 || 2 > 1) 26629: return __swprintf_chk (__s, __n, 2 - 1, 26629: sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); 26629: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 26629: } 26629: # 230 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 26629: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") 26629: 26629: 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 26629: 26629: { 26629: size_t sz = __builtin_object_size (__s, 2 > 1); 26629: if (sz != (size_t) -1 || 2 > 1) 26629: return __vswprintf_chk (__s, __n, 2 - 1, 26629: sz / sizeof (wchar_t), __fmt, __ap); 26629: return __vswprintf_alias (__s, __n, __fmt, __ap); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: wprintf (const wchar_t *__restrict __fmt, ...) 26629: { 26629: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 26629: { 26629: return __fwprintf_chk (__stream, 2 - 1, __fmt, 26629: __builtin_va_arg_pack ()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 26629: { 26629: return __vwprintf_chk (2 - 1, __fmt, __ap); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: vfwprintf (__FILE *__restrict __stream, 26629: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 26629: { 26629: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 26629: } 26629: 26629: 26629: 26629: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 26629: 26629: __attribute__ ((__warn_unused_result__)); 26629: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 26629: fgetws (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) 26629: { 26629: size_t sz = __builtin_object_size (__s, 2 > 1); 26629: 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))))))) 26629: return __fgetws_alias (__s, __n, __stream); 26629: 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))))) 26629: return __fgetws_chk_warn (__s, sz / sizeof (wchar_t), __n, __stream); 26629: return __fgetws_chk (__s, sz / sizeof (wchar_t), __n, __stream); 26629: } 26629: 26629: 26629: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)); 26629: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 26629: 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 26629: fgetws_unlocked (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) 26629: { 26629: size_t sz = __builtin_object_size (__s, 2 > 1); 26629: 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))))))) 26629: return __fgetws_unlocked_alias (__s, __n, __stream); 26629: 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))))) 26629: return __fgetws_unlocked_chk_warn (__s, sz / sizeof (wchar_t), __n, 26629: __stream); 26629: return __fgetws_unlocked_chk (__s, sz / sizeof (wchar_t), __n, __stream); 26629: } 26629: 26629: 26629: 26629: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") 26629: 26629: __attribute__ ((__warn_unused_result__)); 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 26629: __attribute__ ((__leaf__)) wcrtomb (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) 26629: 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 26629: && 16 > __builtin_object_size (__s, 2 > 1)) 26629: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 26629: return __wcrtomb_alias (__s, __wchar, __ps); 26629: } 26629: 26629: 26629: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") 26629: 26629: 26629: 26629: ; 26629: 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") 26629: 26629: 26629: 26629: 26629: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 26629: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 26629: 26629: { 26629: 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))))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") 26629: 26629: 26629: 26629: ; 26629: 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") 26629: 26629: 26629: 26629: 26629: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 26629: __attribute__ ((__leaf__)) wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 26629: 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: 26629: 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") 26629: 26629: 26629: 26629: ; 26629: 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") 26629: 26629: 26629: 26629: 26629: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 26629: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 26629: 26629: { 26629: 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))))) 26629: 26629: ; 26629: } 26629: 26629: 26629: 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") 26629: 26629: 26629: 26629: ; 26629: 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") 26629: 26629: 26629: 26629: 26629: 26629: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 26629: __attribute__ ((__leaf__)) wcsnrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 26629: 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: # 880 "/usr/include/wchar.h" 2 3 4 26629: 26629: 26629: } 26629: # 45 "/usr/include/c++/12/cwchar" 2 3 26629: # 62 "/usr/include/c++/12/cwchar" 3 26629: namespace std 26629: { 26629: using ::mbstate_t; 26629: } 26629: # 135 "/usr/include/c++/12/cwchar" 3 26629: extern "C++" 26629: { 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: using ::wint_t; 26629: 26629: using ::btowc; 26629: using ::fgetwc; 26629: using ::fgetws; 26629: using ::fputwc; 26629: using ::fputws; 26629: using ::fwide; 26629: using ::fwprintf; 26629: using ::fwscanf; 26629: using ::getwc; 26629: using ::getwchar; 26629: using ::mbrlen; 26629: using ::mbrtowc; 26629: using ::mbsinit; 26629: using ::mbsrtowcs; 26629: using ::putwc; 26629: using ::putwchar; 26629: 26629: using ::swprintf; 26629: 26629: using ::swscanf; 26629: using ::ungetwc; 26629: using ::vfwprintf; 26629: 26629: using ::vfwscanf; 26629: 26629: 26629: using ::vswprintf; 26629: 26629: 26629: using ::vswscanf; 26629: 26629: using ::vwprintf; 26629: 26629: using ::vwscanf; 26629: 26629: using ::wcrtomb; 26629: using ::wcscat; 26629: using ::wcscmp; 26629: using ::wcscoll; 26629: using ::wcscpy; 26629: using ::wcscspn; 26629: using ::wcsftime; 26629: using ::wcslen; 26629: using ::wcsncat; 26629: using ::wcsncmp; 26629: using ::wcsncpy; 26629: using ::wcsrtombs; 26629: using ::wcsspn; 26629: using ::wcstod; 26629: 26629: using ::wcstof; 26629: 26629: using ::wcstok; 26629: using ::wcstol; 26629: using ::wcstoul; 26629: using ::wcsxfrm; 26629: using ::wctob; 26629: using ::wmemcmp; 26629: using ::wmemcpy; 26629: using ::wmemmove; 26629: using ::wmemset; 26629: using ::wprintf; 26629: using ::wscanf; 26629: using ::wcschr; 26629: using ::wcspbrk; 26629: using ::wcsrchr; 26629: using ::wcsstr; 26629: using ::wmemchr; 26629: # 234 "/usr/include/c++/12/cwchar" 3 26629: 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace __gnu_cxx 26629: { 26629: 26629: 26629: 26629: 26629: 26629: using ::wcstold; 26629: # 260 "/usr/include/c++/12/cwchar" 3 26629: using ::wcstoll; 26629: using ::wcstoull; 26629: 26629: } 26629: 26629: namespace std 26629: { 26629: using ::__gnu_cxx::wcstold; 26629: using ::__gnu_cxx::wcstoll; 26629: using ::__gnu_cxx::wcstoull; 26629: } 26629: # 280 "/usr/include/c++/12/cwchar" 3 26629: namespace std 26629: { 26629: 26629: using std::wcstof; 26629: 26629: 26629: using std::vfwscanf; 26629: 26629: 26629: using std::vswscanf; 26629: 26629: 26629: using std::vwscanf; 26629: 26629: 26629: 26629: using std::wcstold; 26629: using std::wcstoll; 26629: using std::wcstoull; 26629: 26629: } 26629: # 41 "/usr/include/c++/12/bits/postypes.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 62 "/usr/include/c++/12/bits/postypes.h" 3 26629: typedef long long int streamoff; 26629: 26629: 26629: 26629: 26629: 26629: typedef ptrdiff_t streamsize; 26629: # 81 "/usr/include/c++/12/bits/postypes.h" 3 26629: template 26629: class fpos 26629: { 26629: private: 26629: streamoff _M_off; 26629: _StateT _M_state; 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: fpos() 26629: : _M_off(0), _M_state() { } 26629: # 103 "/usr/include/c++/12/bits/postypes.h" 3 26629: fpos(streamoff __off) 26629: : _M_off(__off), _M_state() { } 26629: 26629: 26629: fpos(const fpos&) = default; 26629: fpos& operator=(const fpos&) = default; 26629: ~fpos() = default; 26629: 26629: 26629: 26629: operator streamoff() const { return _M_off; } 26629: 26629: 26629: void 26629: state(_StateT __st) 26629: { _M_state = __st; } 26629: 26629: 26629: _StateT 26629: state() const 26629: { return _M_state; } 26629: 26629: 26629: 26629: 26629: 26629: fpos& 26629: operator+=(streamoff __off) 26629: { 26629: _M_off += __off; 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: fpos& 26629: operator-=(streamoff __off) 26629: { 26629: _M_off -= __off; 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: fpos 26629: operator+(streamoff __off) const 26629: { 26629: fpos __pos(*this); 26629: __pos += __off; 26629: return __pos; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: fpos 26629: operator-(streamoff __off) const 26629: { 26629: fpos __pos(*this); 26629: __pos -= __off; 26629: return __pos; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: streamoff 26629: operator-(const fpos& __other) const 26629: { return _M_off - __other._M_off; } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 26629: { return streamoff(__lhs) == streamoff(__rhs); } 26629: 26629: template 26629: inline bool 26629: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 26629: { return streamoff(__lhs) != streamoff(__rhs); } 26629: 26629: 26629: 26629: 26629: 26629: typedef fpos streampos; 26629: 26629: typedef fpos wstreampos; 26629: # 215 "/usr/include/c++/12/bits/postypes.h" 3 26629: typedef fpos u16streampos; 26629: 26629: typedef fpos u32streampos; 26629: 26629: 26629: 26629: } 26629: # 41 "/usr/include/c++/12/iosfwd" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 74 "/usr/include/c++/12/iosfwd" 3 26629: class ios_base; 26629: 26629: template > 26629: class basic_ios; 26629: 26629: template > 26629: class basic_streambuf; 26629: 26629: template > 26629: class basic_istream; 26629: 26629: template > 26629: class basic_ostream; 26629: 26629: template > 26629: class basic_iostream; 26629: 26629: 26629: namespace __cxx11 { 26629: 26629: template, 26629: typename _Alloc = allocator<_CharT> > 26629: class basic_stringbuf; 26629: 26629: template, 26629: typename _Alloc = allocator<_CharT> > 26629: class basic_istringstream; 26629: 26629: template, 26629: typename _Alloc = allocator<_CharT> > 26629: class basic_ostringstream; 26629: 26629: template, 26629: typename _Alloc = allocator<_CharT> > 26629: class basic_stringstream; 26629: 26629: } 26629: 26629: template > 26629: class basic_filebuf; 26629: 26629: template > 26629: class basic_ifstream; 26629: 26629: template > 26629: class basic_ofstream; 26629: 26629: template > 26629: class basic_fstream; 26629: 26629: template > 26629: class istreambuf_iterator; 26629: 26629: template > 26629: class ostreambuf_iterator; 26629: 26629: 26629: 26629: typedef basic_ios ios; 26629: 26629: 26629: typedef basic_streambuf streambuf; 26629: 26629: 26629: typedef basic_istream istream; 26629: 26629: 26629: typedef basic_ostream ostream; 26629: 26629: 26629: typedef basic_iostream iostream; 26629: 26629: 26629: typedef basic_stringbuf stringbuf; 26629: 26629: 26629: typedef basic_istringstream istringstream; 26629: 26629: 26629: typedef basic_ostringstream ostringstream; 26629: 26629: 26629: typedef basic_stringstream stringstream; 26629: 26629: 26629: typedef basic_filebuf filebuf; 26629: 26629: 26629: typedef basic_ifstream ifstream; 26629: 26629: 26629: typedef basic_ofstream ofstream; 26629: 26629: 26629: typedef basic_fstream fstream; 26629: 26629: 26629: 26629: typedef basic_ios wios; 26629: 26629: 26629: typedef basic_streambuf wstreambuf; 26629: 26629: 26629: typedef basic_istream wistream; 26629: 26629: 26629: typedef basic_ostream wostream; 26629: 26629: 26629: typedef basic_iostream wiostream; 26629: 26629: 26629: typedef basic_stringbuf wstringbuf; 26629: 26629: 26629: typedef basic_istringstream wistringstream; 26629: 26629: 26629: typedef basic_ostringstream wostringstream; 26629: 26629: 26629: typedef basic_stringstream wstringstream; 26629: 26629: 26629: typedef basic_filebuf wfilebuf; 26629: 26629: 26629: typedef basic_ifstream wifstream; 26629: 26629: 26629: typedef basic_ofstream wofstream; 26629: 26629: 26629: typedef basic_fstream wfstream; 26629: # 253 "/usr/include/c++/12/iosfwd" 3 26629: 26629: } 26629: # 53 "/usr/include/c++/12/bits/shared_ptr.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/shared_ptr_base.h" 1 3 26629: # 53 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 26629: # 1 "/usr/include/c++/12/bits/allocated_ptr.h" 1 3 26629: # 40 "/usr/include/c++/12/bits/allocated_ptr.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: template 26629: struct __allocated_ptr 26629: { 26629: using pointer = typename allocator_traits<_Alloc>::pointer; 26629: using value_type = typename allocator_traits<_Alloc>::value_type; 26629: 26629: 26629: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 26629: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 26629: { } 26629: 26629: 26629: template>> 26629: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 26629: : _M_alloc(std::__addressof(__a)), 26629: _M_ptr(pointer_traits::pointer_to(*__ptr)) 26629: { } 26629: 26629: 26629: __allocated_ptr(__allocated_ptr&& __gd) noexcept 26629: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 26629: { __gd._M_ptr = nullptr; } 26629: 26629: 26629: ~__allocated_ptr() 26629: { 26629: if (_M_ptr != nullptr) 26629: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 26629: } 26629: 26629: 26629: __allocated_ptr& 26629: operator=(std::nullptr_t) noexcept 26629: { 26629: _M_ptr = nullptr; 26629: return *this; 26629: } 26629: 26629: 26629: value_type* get() { return std::__to_address(_M_ptr); } 26629: 26629: private: 26629: _Alloc* _M_alloc; 26629: pointer _M_ptr; 26629: }; 26629: 26629: 26629: template 26629: __allocated_ptr<_Alloc> 26629: __allocate_guarded(_Alloc& __a) 26629: { 26629: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 26629: } 26629: 26629: 26629: 26629: } 26629: # 54 "/usr/include/c++/12/bits/shared_ptr_base.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/ext/atomicity.h" 1 3 26629: # 32 "/usr/include/c++/12/ext/atomicity.h" 3 26629: 26629: # 33 "/usr/include/c++/12/ext/atomicity.h" 3 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr.h" 1 3 26629: # 30 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr.h" 3 26629: #pragma GCC visibility push(default) 26629: # 148 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr.h" 3 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 1 3 26629: # 35 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 26629: # 1 "/usr/include/pthread.h" 1 3 4 26629: # 22 "/usr/include/pthread.h" 3 4 26629: # 1 "/usr/include/sched.h" 1 3 4 26629: # 29 "/usr/include/sched.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 30 "/usr/include/sched.h" 2 3 4 26629: # 43 "/usr/include/sched.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 1 3 4 26629: # 80 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 1 3 4 26629: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 3 4 26629: struct sched_param 26629: { 26629: int sched_priority; 26629: }; 26629: # 81 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 2 3 4 26629: 26629: extern "C" { 26629: 26629: 26629: 26629: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 26629: int __flags, void *__arg, ...) noexcept (true); 26629: 26629: 26629: extern int unshare (int __flags) noexcept (true); 26629: 26629: 26629: extern int sched_getcpu (void) noexcept (true); 26629: 26629: 26629: extern int getcpu (unsigned int *, unsigned int *) noexcept (true); 26629: 26629: 26629: extern int setns (int __fd, int __nstype) noexcept (true); 26629: 26629: 26629: } 26629: # 44 "/usr/include/sched.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 1 3 4 26629: # 32 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 26629: typedef unsigned long int __cpu_mask; 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef struct 26629: { 26629: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 26629: } cpu_set_t; 26629: # 115 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 26629: extern "C" { 26629: 26629: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 26629: noexcept (true); 26629: extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); 26629: 26629: } 26629: # 45 "/usr/include/sched.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern "C" { 26629: 26629: 26629: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 26629: noexcept (true); 26629: 26629: 26629: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); 26629: 26629: 26629: extern int sched_setscheduler (__pid_t __pid, int __policy, 26629: const struct sched_param *__param) noexcept (true); 26629: 26629: 26629: extern int sched_getscheduler (__pid_t __pid) noexcept (true); 26629: 26629: 26629: extern int sched_yield (void) noexcept (true); 26629: 26629: 26629: extern int sched_get_priority_max (int __algorithm) noexcept (true); 26629: 26629: 26629: extern int sched_get_priority_min (int __algorithm) noexcept (true); 26629: 26629: 26629: 26629: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true); 26629: # 130 "/usr/include/sched.h" 3 4 26629: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 26629: const cpu_set_t *__cpuset) noexcept (true); 26629: 26629: 26629: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 26629: cpu_set_t *__cpuset) noexcept (true); 26629: 26629: 26629: } 26629: # 23 "/usr/include/pthread.h" 2 3 4 26629: # 1 "/usr/include/time.h" 1 3 4 26629: # 29 "/usr/include/time.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 30 "/usr/include/time.h" 2 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4 26629: # 73 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 1 3 4 26629: # 26 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 26629: struct timex 26629: { 26629: # 58 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 26629: unsigned int modes; 26629: __syscall_slong_t offset; 26629: __syscall_slong_t freq; 26629: __syscall_slong_t maxerror; 26629: __syscall_slong_t esterror; 26629: int status; 26629: __syscall_slong_t constant; 26629: __syscall_slong_t precision; 26629: __syscall_slong_t tolerance; 26629: struct timeval time; 26629: __syscall_slong_t tick; 26629: __syscall_slong_t ppsfreq; 26629: __syscall_slong_t jitter; 26629: int shift; 26629: __syscall_slong_t stabil; 26629: __syscall_slong_t jitcnt; 26629: __syscall_slong_t calcnt; 26629: __syscall_slong_t errcnt; 26629: __syscall_slong_t stbcnt; 26629: 26629: int tai; 26629: 26629: 26629: int :32; int :32; int :32; int :32; 26629: int :32; int :32; int :32; int :32; 26629: int :32; int :32; int :32; 26629: 26629: }; 26629: # 74 "/usr/include/arm-linux-gnueabihf/bits/time.h" 2 3 4 26629: 26629: extern "C" { 26629: 26629: 26629: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: # 90 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 26629: } 26629: # 34 "/usr/include/time.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_tm.h" 1 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct tm 26629: { 26629: int tm_sec; 26629: int tm_min; 26629: int tm_hour; 26629: int tm_mday; 26629: int tm_mon; 26629: int tm_year; 26629: int tm_wday; 26629: int tm_yday; 26629: int tm_isdst; 26629: 26629: 26629: long int tm_gmtoff; 26629: const char *tm_zone; 26629: 26629: 26629: 26629: 26629: }; 26629: # 40 "/usr/include/time.h" 2 3 4 26629: # 48 "/usr/include/time.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_itimerspec.h" 1 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct itimerspec 26629: { 26629: struct timespec it_interval; 26629: struct timespec it_value; 26629: }; 26629: # 49 "/usr/include/time.h" 2 3 4 26629: struct sigevent; 26629: # 68 "/usr/include/time.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: extern clock_t clock (void) noexcept (true); 26629: 26629: 26629: 26629: extern time_t time (time_t *__timer) noexcept (true); 26629: 26629: 26629: extern double difftime (time_t __time1, time_t __time0) 26629: noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern time_t mktime (struct tm *__tp) noexcept (true); 26629: # 100 "/usr/include/time.h" 3 4 26629: extern size_t strftime (char *__restrict __s, size_t __maxsize, 26629: const char *__restrict __format, 26629: const struct tm *__restrict __tp) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern char *strptime (const char *__restrict __s, 26629: const char *__restrict __fmt, struct tm *__tp) 26629: noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 26629: const char *__restrict __format, 26629: const struct tm *__restrict __tp, 26629: locale_t __loc) noexcept (true); 26629: 26629: 26629: 26629: extern char *strptime_l (const char *__restrict __s, 26629: const char *__restrict __fmt, struct tm *__tp, 26629: locale_t __loc) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern struct tm *gmtime (const time_t *__timer) noexcept (true); 26629: 26629: 26629: 26629: extern struct tm *localtime (const time_t *__timer) noexcept (true); 26629: # 154 "/usr/include/time.h" 3 4 26629: extern struct tm *gmtime_r (const time_t *__restrict __timer, 26629: struct tm *__restrict __tp) noexcept (true); 26629: 26629: 26629: 26629: extern struct tm *localtime_r (const time_t *__restrict __timer, 26629: struct tm *__restrict __tp) noexcept (true); 26629: # 179 "/usr/include/time.h" 3 4 26629: extern char *asctime (const struct tm *__tp) noexcept (true); 26629: 26629: 26629: 26629: extern char *ctime (const time_t *__timer) noexcept (true); 26629: # 197 "/usr/include/time.h" 3 4 26629: extern char *asctime_r (const struct tm *__restrict __tp, 26629: char *__restrict __buf) noexcept (true); 26629: 26629: 26629: 26629: extern char *ctime_r (const time_t *__restrict __timer, 26629: char *__restrict __buf) noexcept (true); 26629: # 217 "/usr/include/time.h" 3 4 26629: extern char *__tzname[2]; 26629: extern int __daylight; 26629: extern long int __timezone; 26629: 26629: 26629: 26629: 26629: extern char *tzname[2]; 26629: 26629: 26629: 26629: extern void tzset (void) noexcept (true); 26629: 26629: 26629: 26629: extern int daylight; 26629: extern long int timezone; 26629: # 246 "/usr/include/time.h" 3 4 26629: extern time_t timegm (struct tm *__tp) noexcept (true); 26629: # 263 "/usr/include/time.h" 3 4 26629: extern time_t timelocal (struct tm *__tp) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); 26629: # 281 "/usr/include/time.h" 3 4 26629: extern int nanosleep (const struct timespec *__requested_time, 26629: struct timespec *__remaining); 26629: 26629: 26629: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true); 26629: 26629: 26629: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: # 323 "/usr/include/time.h" 3 4 26629: extern int clock_nanosleep (clockid_t __clock_id, int __flags, 26629: const struct timespec *__req, 26629: struct timespec *__rem); 26629: # 338 "/usr/include/time.h" 3 4 26629: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int timer_create (clockid_t __clock_id, 26629: struct sigevent *__restrict __evp, 26629: timer_t *__restrict __timerid) noexcept (true); 26629: 26629: 26629: extern int timer_delete (timer_t __timerid) noexcept (true); 26629: 26629: 26629: 26629: extern int timer_settime (timer_t __timerid, int __flags, 26629: const struct itimerspec *__restrict __value, 26629: struct itimerspec *__restrict __ovalue) noexcept (true); 26629: 26629: 26629: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) 26629: noexcept (true); 26629: # 376 "/usr/include/time.h" 3 4 26629: extern int timer_getoverrun (timer_t __timerid) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int timespec_get (struct timespec *__ts, int __base) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: # 399 "/usr/include/time.h" 3 4 26629: extern int timespec_getres (struct timespec *__ts, int __base) 26629: noexcept (true); 26629: # 425 "/usr/include/time.h" 3 4 26629: extern int getdate_err; 26629: # 434 "/usr/include/time.h" 3 4 26629: extern struct tm *getdate (const char *__string); 26629: # 448 "/usr/include/time.h" 3 4 26629: extern int getdate_r (const char *__restrict __string, 26629: struct tm *__restrict __resbufp); 26629: 26629: 26629: } 26629: # 24 "/usr/include/pthread.h" 2 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 1 3 4 26629: # 33 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 3 4 26629: typedef int __jmp_buf[64] __attribute__((__aligned__ (8))); 26629: # 28 "/usr/include/pthread.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 26629: # 29 "/usr/include/pthread.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 1 3 4 26629: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 3 4 26629: struct __jmp_buf_tag 26629: { 26629: 26629: 26629: 26629: 26629: __jmp_buf __jmpbuf; 26629: int __mask_was_saved; 26629: __sigset_t __saved_mask; 26629: }; 26629: # 32 "/usr/include/pthread.h" 2 3 4 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 1 3 4 26629: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 3 4 26629: extern "C" { 26629: extern long int __sysconf (int __name) noexcept (true); 26629: } 26629: # 34 "/usr/include/pthread.h" 2 3 4 26629: 26629: 26629: 26629: enum 26629: { 26629: PTHREAD_CREATE_JOINABLE, 26629: 26629: PTHREAD_CREATE_DETACHED 26629: 26629: }; 26629: 26629: 26629: 26629: enum 26629: { 26629: PTHREAD_MUTEX_TIMED_NP, 26629: PTHREAD_MUTEX_RECURSIVE_NP, 26629: PTHREAD_MUTEX_ERRORCHECK_NP, 26629: PTHREAD_MUTEX_ADAPTIVE_NP 26629: 26629: , 26629: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 26629: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 26629: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 26629: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 26629: 26629: 26629: 26629: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: enum 26629: { 26629: PTHREAD_MUTEX_STALLED, 26629: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 26629: PTHREAD_MUTEX_ROBUST, 26629: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: enum 26629: { 26629: PTHREAD_PRIO_NONE, 26629: PTHREAD_PRIO_INHERIT, 26629: PTHREAD_PRIO_PROTECT 26629: }; 26629: # 104 "/usr/include/pthread.h" 3 4 26629: enum 26629: { 26629: PTHREAD_RWLOCK_PREFER_READER_NP, 26629: PTHREAD_RWLOCK_PREFER_WRITER_NP, 26629: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 26629: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 26629: }; 26629: # 124 "/usr/include/pthread.h" 3 4 26629: enum 26629: { 26629: PTHREAD_INHERIT_SCHED, 26629: 26629: PTHREAD_EXPLICIT_SCHED 26629: 26629: }; 26629: 26629: 26629: 26629: enum 26629: { 26629: PTHREAD_SCOPE_SYSTEM, 26629: 26629: PTHREAD_SCOPE_PROCESS 26629: 26629: }; 26629: 26629: 26629: 26629: enum 26629: { 26629: PTHREAD_PROCESS_PRIVATE, 26629: 26629: PTHREAD_PROCESS_SHARED 26629: 26629: }; 26629: # 159 "/usr/include/pthread.h" 3 4 26629: struct _pthread_cleanup_buffer 26629: { 26629: void (*__routine) (void *); 26629: void *__arg; 26629: int __canceltype; 26629: struct _pthread_cleanup_buffer *__prev; 26629: }; 26629: 26629: 26629: enum 26629: { 26629: PTHREAD_CANCEL_ENABLE, 26629: 26629: PTHREAD_CANCEL_DISABLE 26629: 26629: }; 26629: enum 26629: { 26629: PTHREAD_CANCEL_DEFERRED, 26629: 26629: PTHREAD_CANCEL_ASYNCHRONOUS 26629: 26629: }; 26629: # 197 "/usr/include/pthread.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: extern int pthread_create (pthread_t *__restrict __newthread, 26629: const pthread_attr_t *__restrict __attr, 26629: void *(*__start_routine) (void *), 26629: void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: 26629: 26629: 26629: 26629: 26629: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_join (pthread_t __th, void **__thread_return); 26629: 26629: 26629: 26629: 26629: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); 26629: # 233 "/usr/include/pthread.h" 3 4 26629: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, 26629: const struct timespec *__abstime); 26629: # 243 "/usr/include/pthread.h" 3 4 26629: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, 26629: clockid_t __clockid, 26629: const struct timespec *__abstime); 26629: # 269 "/usr/include/pthread.h" 3 4 26629: extern int pthread_detach (pthread_t __th) noexcept (true); 26629: 26629: 26629: 26629: extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 26629: noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_attr_destroy (pthread_attr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 26629: int *__detachstate) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 26629: int __detachstate) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 26629: size_t *__guardsize) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 26629: size_t __guardsize) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 26629: struct sched_param *__restrict __param) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 26629: const struct sched_param *__restrict 26629: __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 26629: __attr, int *__restrict __policy) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 26629: __attr, int *__restrict __inherit) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 26629: int __inherit) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 26629: int *__restrict __scope) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 26629: __attr, void **__restrict __stackaddr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 26629: void *__stackaddr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 26629: 26629: 26629: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 26629: __attr, size_t *__restrict __stacksize) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 26629: size_t __stacksize) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 26629: void **__restrict __stackaddr, 26629: size_t *__restrict __stacksize) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); 26629: 26629: 26629: 26629: 26629: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 26629: size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 26629: size_t __cpusetsize, 26629: const cpu_set_t *__cpuset) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: 26629: 26629: 26629: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 26629: size_t __cpusetsize, 26629: cpu_set_t *__cpuset) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: 26629: 26629: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, 26629: const __sigset_t *sigmask); 26629: 26629: 26629: 26629: 26629: extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, 26629: __sigset_t *sigmask); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 26629: const struct sched_param *__param) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))); 26629: 26629: 26629: extern int pthread_getschedparam (pthread_t __target_thread, 26629: int *__restrict __policy, 26629: struct sched_param *__restrict __param) 26629: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 26629: 26629: 26629: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 26629: noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 26629: size_t __buflen) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_getconcurrency (void) noexcept (true); 26629: 26629: 26629: extern int pthread_setconcurrency (int __level) noexcept (true); 26629: 26629: 26629: 26629: extern int pthread_yield (void) noexcept (true); 26629: 26629: extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") 26629: __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) 26629: ; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 26629: const cpu_set_t *__cpuset) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))); 26629: 26629: 26629: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 26629: cpu_set_t *__cpuset) 26629: noexcept (true) __attribute__ ((__nonnull__ (3))); 26629: # 509 "/usr/include/pthread.h" 3 4 26629: extern int pthread_once (pthread_once_t *__once_control, 26629: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 26629: # 521 "/usr/include/pthread.h" 3 4 26629: extern int pthread_setcancelstate (int __state, int *__oldstate); 26629: 26629: 26629: 26629: extern int pthread_setcanceltype (int __type, int *__oldtype); 26629: 26629: 26629: extern int pthread_cancel (pthread_t __th); 26629: 26629: 26629: 26629: 26629: extern void pthread_testcancel (void); 26629: 26629: 26629: 26629: 26629: struct __cancel_jmp_buf_tag 26629: { 26629: __jmp_buf __cancel_jmp_buf; 26629: int __mask_was_saved; 26629: }; 26629: 26629: typedef struct 26629: { 26629: struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; 26629: void *__pad[4]; 26629: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 26629: # 557 "/usr/include/pthread.h" 3 4 26629: struct __pthread_cleanup_frame 26629: { 26629: void (*__cancel_routine) (void *); 26629: void *__cancel_arg; 26629: int __do_it; 26629: int __cancel_type; 26629: }; 26629: 26629: 26629: 26629: 26629: class __pthread_cleanup_class 26629: { 26629: void (*__cancel_routine) (void *); 26629: void *__cancel_arg; 26629: int __do_it; 26629: int __cancel_type; 26629: 26629: public: 26629: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 26629: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 26629: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 26629: void __setdoit (int __newval) { __do_it = __newval; } 26629: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 26629: &__cancel_type); } 26629: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 26629: }; 26629: # 766 "/usr/include/pthread.h" 3 4 26629: extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") 26629: 26629: 26629: __attribute__ ((__returns_twice__)); 26629: # 781 "/usr/include/pthread.h" 3 4 26629: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 26629: const pthread_mutexattr_t *__mutexattr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, 26629: const struct timespec *__restrict 26629: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: # 817 "/usr/include/pthread.h" 3 4 26629: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, 26629: clockid_t __clockid, 26629: const struct timespec *__restrict 26629: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: # 835 "/usr/include/pthread.h" 3 4 26629: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 26629: __restrict __mutex, 26629: int *__restrict __prioceiling) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 26629: int __prioceiling, 26629: int *__restrict __old_ceiling) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: 26629: 26629: 26629: 26629: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") 26629: __attribute__ ((__nonnull__ (1))) 26629: __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) 26629: ; 26629: # 874 "/usr/include/pthread.h" 3 4 26629: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 26629: __restrict __attr, 26629: int *__restrict __pshared) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 26629: int __pshared) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 26629: __attr, int *__restrict __kind) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 26629: __restrict __attr, 26629: int *__restrict __protocol) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 26629: int __protocol) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 26629: __restrict __attr, 26629: int *__restrict __prioceiling) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 26629: int __prioceiling) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 26629: int *__robustness) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") 26629: 26629: __attribute__ ((__nonnull__ (1))) 26629: __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) 26629: ; 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 26629: int __robustness) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") 26629: 26629: __attribute__ ((__nonnull__ (1))) 26629: __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) 26629: ; 26629: # 967 "/usr/include/pthread.h" 3 4 26629: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 26629: const pthread_rwlockattr_t *__restrict 26629: __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, 26629: const struct timespec *__restrict 26629: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: # 1004 "/usr/include/pthread.h" 3 4 26629: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, 26629: clockid_t __clockid, 26629: const struct timespec *__restrict 26629: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: # 1023 "/usr/include/pthread.h" 3 4 26629: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, 26629: const struct timespec *__restrict 26629: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: # 1051 "/usr/include/pthread.h" 3 4 26629: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, 26629: clockid_t __clockid, 26629: const struct timespec *__restrict 26629: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 26629: # 1071 "/usr/include/pthread.h" 3 4 26629: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 26629: __restrict __attr, 26629: int *__restrict __pshared) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 26629: int __pshared) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 26629: __restrict __attr, 26629: int *__restrict __pref) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 26629: int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 26629: const pthread_condattr_t *__restrict __cond_attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_cond_destroy (pthread_cond_t *__cond) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_cond_signal (pthread_cond_t *__cond) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 26629: pthread_mutex_t *__restrict __mutex) 26629: __attribute__ ((__nonnull__ (1, 2))); 26629: # 1145 "/usr/include/pthread.h" 3 4 26629: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, 26629: pthread_mutex_t *__restrict __mutex, 26629: const struct timespec *__restrict __abstime) 26629: __attribute__ ((__nonnull__ (1, 2, 3))); 26629: # 1171 "/usr/include/pthread.h" 3 4 26629: extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond, 26629: pthread_mutex_t *__restrict __mutex, 26629: __clockid_t __clock_id, 26629: const struct timespec *__restrict __abstime) 26629: __attribute__ ((__nonnull__ (1, 2, 4))); 26629: # 1194 "/usr/include/pthread.h" 3 4 26629: extern int pthread_condattr_init (pthread_condattr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_condattr_getpshared (const pthread_condattr_t * 26629: __restrict __attr, 26629: int *__restrict __pshared) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 26629: int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int pthread_condattr_getclock (const pthread_condattr_t * 26629: __restrict __attr, 26629: __clockid_t *__restrict __clock_id) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 26629: __clockid_t __clock_id) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: # 1230 "/usr/include/pthread.h" 3 4 26629: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 26629: const pthread_barrierattr_t *__restrict 26629: __attr, unsigned int __count) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 26629: __restrict __attr, 26629: int *__restrict __pshared) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 26629: int __pshared) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: # 1297 "/usr/include/pthread.h" 3 4 26629: extern int pthread_key_create (pthread_key_t *__key, 26629: void (*__destr_function) (void *)) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int pthread_key_delete (pthread_key_t __key) noexcept (true); 26629: 26629: 26629: extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); 26629: 26629: 26629: extern int pthread_setspecific (pthread_key_t __key, 26629: const void *__pointer) 26629: noexcept (true) __attribute__ ((__access__ (__none__, 2))); 26629: 26629: 26629: 26629: 26629: extern int pthread_getcpuclockid (pthread_t __thread_id, 26629: __clockid_t *__clock_id) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: # 1332 "/usr/include/pthread.h" 3 4 26629: extern int pthread_atfork (void (*__prepare) (void), 26629: void (*__parent) (void), 26629: void (*__child) (void)) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) 26629: { 26629: return __thread1 == __thread2; 26629: } 26629: 26629: 26629: } 26629: # 36 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 2 3 26629: # 47 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 26629: typedef pthread_t __gthread_t; 26629: typedef pthread_key_t __gthread_key_t; 26629: typedef pthread_once_t __gthread_once_t; 26629: typedef pthread_mutex_t __gthread_mutex_t; 26629: typedef pthread_mutex_t __gthread_recursive_mutex_t; 26629: typedef pthread_cond_t __gthread_cond_t; 26629: typedef struct timespec __gthread_time_t; 26629: # 102 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 299 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 26629: static inline int 26629: __gthread_active_p (void) 26629: { 26629: return 1; 26629: } 26629: # 659 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 26629: static inline int 26629: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 26629: void *__args) 26629: { 26629: return pthread_create (__threadid, __null, __func, __args); 26629: } 26629: 26629: static inline int 26629: __gthread_join (__gthread_t __threadid, void **__value_ptr) 26629: { 26629: return pthread_join (__threadid, __value_ptr); 26629: } 26629: 26629: static inline int 26629: __gthread_detach (__gthread_t __threadid) 26629: { 26629: return pthread_detach (__threadid); 26629: } 26629: 26629: static inline int 26629: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 26629: { 26629: return pthread_equal (__t1, __t2); 26629: } 26629: 26629: static inline __gthread_t 26629: __gthread_self (void) 26629: { 26629: return pthread_self (); 26629: } 26629: 26629: static inline int 26629: __gthread_yield (void) 26629: { 26629: return sched_yield (); 26629: } 26629: 26629: static inline int 26629: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 26629: { 26629: if (__gthread_active_p ()) 26629: return pthread_once (__once, __func); 26629: else 26629: return -1; 26629: } 26629: 26629: static inline int 26629: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 26629: { 26629: return pthread_key_create (__key, __dtor); 26629: } 26629: 26629: static inline int 26629: __gthread_key_delete (__gthread_key_t __key) 26629: { 26629: return pthread_key_delete (__key); 26629: } 26629: 26629: static inline void * 26629: __gthread_getspecific (__gthread_key_t __key) 26629: { 26629: return pthread_getspecific (__key); 26629: } 26629: 26629: static inline int 26629: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 26629: { 26629: return pthread_setspecific (__key, __ptr); 26629: } 26629: 26629: static inline void 26629: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 26629: { 26629: if (__gthread_active_p ()) 26629: pthread_mutex_init (__mutex, __null); 26629: } 26629: 26629: static inline int 26629: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 26629: { 26629: if (__gthread_active_p ()) 26629: return pthread_mutex_destroy (__mutex); 26629: else 26629: return 0; 26629: } 26629: 26629: static inline int 26629: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 26629: { 26629: if (__gthread_active_p ()) 26629: return pthread_mutex_lock (__mutex); 26629: else 26629: return 0; 26629: } 26629: 26629: static inline int 26629: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 26629: { 26629: if (__gthread_active_p ()) 26629: return pthread_mutex_trylock (__mutex); 26629: else 26629: return 0; 26629: } 26629: 26629: 26629: static inline int 26629: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 26629: const __gthread_time_t *__abs_timeout) 26629: { 26629: if (__gthread_active_p ()) 26629: return pthread_mutex_timedlock (__mutex, __abs_timeout); 26629: else 26629: return 0; 26629: } 26629: 26629: 26629: static inline int 26629: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 26629: { 26629: if (__gthread_active_p ()) 26629: return pthread_mutex_unlock (__mutex); 26629: else 26629: return 0; 26629: } 26629: # 808 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 26629: static inline int 26629: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 26629: { 26629: return __gthread_mutex_lock (__mutex); 26629: } 26629: 26629: static inline int 26629: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 26629: { 26629: return __gthread_mutex_trylock (__mutex); 26629: } 26629: 26629: 26629: static inline int 26629: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 26629: const __gthread_time_t *__abs_timeout) 26629: { 26629: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 26629: } 26629: 26629: 26629: static inline int 26629: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 26629: { 26629: return __gthread_mutex_unlock (__mutex); 26629: } 26629: 26629: static inline int 26629: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 26629: { 26629: return __gthread_mutex_destroy (__mutex); 26629: } 26629: # 850 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 26629: static inline int 26629: __gthread_cond_broadcast (__gthread_cond_t *__cond) 26629: { 26629: return pthread_cond_broadcast (__cond); 26629: } 26629: 26629: static inline int 26629: __gthread_cond_signal (__gthread_cond_t *__cond) 26629: { 26629: return pthread_cond_signal (__cond); 26629: } 26629: 26629: static inline int 26629: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 26629: { 26629: return pthread_cond_wait (__cond, __mutex); 26629: } 26629: 26629: static inline int 26629: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 26629: const __gthread_time_t *__abs_timeout) 26629: { 26629: return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 26629: } 26629: 26629: static inline int 26629: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 26629: __gthread_recursive_mutex_t *__mutex) 26629: { 26629: return __gthread_cond_wait (__cond, __mutex); 26629: } 26629: 26629: static inline int 26629: __gthread_cond_destroy (__gthread_cond_t* __cond) 26629: { 26629: return pthread_cond_destroy (__cond); 26629: } 26629: # 149 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr.h" 2 3 26629: 26629: 26629: #pragma GCC visibility pop 26629: # 36 "/usr/include/c++/12/ext/atomicity.h" 2 3 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/atomic_word.h" 1 3 26629: # 32 "/usr/include/arm-linux-gnueabihf/c++/12/bits/atomic_word.h" 3 26629: typedef int _Atomic_word; 26629: # 37 "/usr/include/c++/12/ext/atomicity.h" 2 3 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: extern char __libc_single_threaded; 26629: 26629: } 26629: # 39 "/usr/include/c++/12/ext/atomicity.h" 2 3 26629: 26629: 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: __attribute__((__always_inline__)) 26629: inline bool 26629: __is_single_threaded() noexcept 26629: { 26629: 26629: 26629: 26629: return ::__libc_single_threaded; 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline _Atomic_word 26629: __attribute__((__always_inline__)) 26629: __exchange_and_add(volatile _Atomic_word* __mem, int __val) 26629: { return __atomic_fetch_add(__mem, __val, 4); } 26629: 26629: inline void 26629: __attribute__((__always_inline__)) 26629: __atomic_add(volatile _Atomic_word* __mem, int __val) 26629: { __atomic_fetch_add(__mem, __val, 4); } 26629: # 80 "/usr/include/c++/12/ext/atomicity.h" 3 26629: inline _Atomic_word 26629: __attribute__((__always_inline__)) 26629: __exchange_and_add_single(_Atomic_word* __mem, int __val) 26629: { 26629: _Atomic_word __result = *__mem; 26629: *__mem += __val; 26629: return __result; 26629: } 26629: 26629: inline void 26629: __attribute__((__always_inline__)) 26629: __atomic_add_single(_Atomic_word* __mem, int __val) 26629: { *__mem += __val; } 26629: 26629: inline _Atomic_word 26629: __attribute__ ((__always_inline__)) 26629: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 26629: { 26629: if (__is_single_threaded()) 26629: return __exchange_and_add_single(__mem, __val); 26629: else 26629: return __exchange_and_add(__mem, __val); 26629: } 26629: 26629: inline void 26629: __attribute__ ((__always_inline__)) 26629: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 26629: { 26629: if (__is_single_threaded()) 26629: __atomic_add_single(__mem, __val); 26629: else 26629: __atomic_add(__mem, __val); 26629: } 26629: 26629: 26629: } 26629: # 62 "/usr/include/c++/12/bits/shared_ptr_base.h" 2 3 26629: # 1 "/usr/include/c++/12/ext/concurrence.h" 1 3 26629: # 32 "/usr/include/c++/12/ext/concurrence.h" 3 26629: 26629: # 33 "/usr/include/c++/12/ext/concurrence.h" 3 26629: 26629: # 1 "/usr/include/c++/12/exception" 1 3 26629: # 33 "/usr/include/c++/12/exception" 3 26629: 26629: # 34 "/usr/include/c++/12/exception" 3 26629: 26629: #pragma GCC visibility push(default) 26629: 26629: 26629: 26629: 26629: extern "C++" { 26629: 26629: namespace std 26629: { 26629: # 53 "/usr/include/c++/12/exception" 3 26629: class bad_exception : public exception 26629: { 26629: public: 26629: bad_exception() noexcept { } 26629: 26629: 26629: 26629: virtual ~bad_exception() noexcept; 26629: 26629: 26629: virtual const char* 26629: what() const noexcept; 26629: }; 26629: 26629: 26629: typedef void (*terminate_handler) (); 26629: 26629: 26629: terminate_handler set_terminate(terminate_handler) noexcept; 26629: 26629: 26629: 26629: terminate_handler get_terminate() noexcept; 26629: 26629: 26629: 26629: 26629: void terminate() noexcept __attribute__ ((__noreturn__)); 26629: 26629: 26629: 26629: typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((__deprecated__)) 26629: unexpected_handler set_unexpected(unexpected_handler) noexcept; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((__deprecated__)) 26629: unexpected_handler get_unexpected() noexcept; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((__deprecated__)) 26629: void unexpected() __attribute__ ((__noreturn__)); 26629: # 123 "/usr/include/c++/12/exception" 3 26629: __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) 26629: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: int uncaught_exceptions() noexcept __attribute__ ((__pure__)); 26629: 26629: 26629: 26629: } 26629: 26629: namespace __gnu_cxx 26629: { 26629: 26629: # 158 "/usr/include/c++/12/exception" 3 26629: void __verbose_terminate_handler(); 26629: 26629: 26629: } 26629: 26629: } 26629: 26629: #pragma GCC visibility pop 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/exception_ptr.h" 1 3 26629: # 34 "/usr/include/c++/12/bits/exception_ptr.h" 3 26629: #pragma GCC visibility push(default) 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/cxxabi_init_exception.h" 1 3 26629: # 34 "/usr/include/c++/12/bits/cxxabi_init_exception.h" 3 26629: 26629: # 35 "/usr/include/c++/12/bits/cxxabi_init_exception.h" 3 26629: 26629: #pragma GCC visibility push(default) 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 145 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 3 4 26629: typedef int ptrdiff_t; 26629: # 424 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 3 4 26629: typedef struct { 26629: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 26629: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 26629: # 435 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 3 4 26629: } max_align_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef decltype(nullptr) nullptr_t; 26629: # 39 "/usr/include/c++/12/bits/cxxabi_init_exception.h" 2 3 26629: # 50 "/usr/include/c++/12/bits/cxxabi_init_exception.h" 3 26629: namespace std 26629: { 26629: class type_info; 26629: } 26629: 26629: namespace __cxxabiv1 26629: { 26629: struct __cxa_refcounted_exception; 26629: 26629: extern "C" 26629: { 26629: 26629: void* 26629: __cxa_allocate_exception(size_t) noexcept; 26629: 26629: void 26629: __cxa_free_exception(void*) noexcept; 26629: 26629: 26629: __cxa_refcounted_exception* 26629: __cxa_init_primary_exception(void *object, std::type_info *tinfo, 26629: void ( *dest) (void *)) noexcept; 26629: 26629: } 26629: } 26629: 26629: 26629: 26629: #pragma GCC visibility pop 26629: # 39 "/usr/include/c++/12/bits/exception_ptr.h" 2 3 26629: # 52 "/usr/include/c++/12/bits/exception_ptr.h" 3 26629: extern "C++" { 26629: 26629: namespace std 26629: { 26629: class type_info; 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace __exception_ptr 26629: { 26629: class exception_ptr; 26629: } 26629: 26629: using __exception_ptr::exception_ptr; 26629: 26629: 26629: 26629: 26629: 26629: exception_ptr current_exception() noexcept; 26629: 26629: template 26629: exception_ptr make_exception_ptr(_Ex) noexcept; 26629: 26629: 26629: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 26629: 26629: namespace __exception_ptr 26629: { 26629: using std::rethrow_exception; 26629: 26629: 26629: 26629: 26629: 26629: class exception_ptr 26629: { 26629: void* _M_exception_object; 26629: 26629: explicit exception_ptr(void* __e) noexcept; 26629: 26629: void _M_addref() noexcept; 26629: void _M_release() noexcept; 26629: 26629: void *_M_get() const noexcept __attribute__ ((__pure__)); 26629: 26629: friend exception_ptr std::current_exception() noexcept; 26629: friend void std::rethrow_exception(exception_ptr); 26629: template 26629: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 26629: 26629: public: 26629: exception_ptr() noexcept; 26629: 26629: exception_ptr(const exception_ptr&) noexcept; 26629: 26629: 26629: exception_ptr(nullptr_t) noexcept 26629: : _M_exception_object(nullptr) 26629: { } 26629: 26629: exception_ptr(exception_ptr&& __o) noexcept 26629: : _M_exception_object(__o._M_exception_object) 26629: { __o._M_exception_object = nullptr; } 26629: # 128 "/usr/include/c++/12/bits/exception_ptr.h" 3 26629: exception_ptr& 26629: operator=(const exception_ptr&) noexcept; 26629: 26629: 26629: exception_ptr& 26629: operator=(exception_ptr&& __o) noexcept 26629: { 26629: exception_ptr(static_cast(__o)).swap(*this); 26629: return *this; 26629: } 26629: 26629: 26629: ~exception_ptr() noexcept; 26629: 26629: void 26629: swap(exception_ptr&) noexcept; 26629: # 155 "/usr/include/c++/12/bits/exception_ptr.h" 3 26629: explicit operator bool() const noexcept 26629: { return _M_exception_object; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const exception_ptr& __x, const exception_ptr& __y) 26629: noexcept 26629: { return __x._M_exception_object == __y._M_exception_object; } 26629: 26629: friend bool 26629: operator!=(const exception_ptr& __x, const exception_ptr& __y) 26629: noexcept 26629: { return __x._M_exception_object != __y._M_exception_object; } 26629: 26629: 26629: const class std::type_info* 26629: __cxa_exception_type() const noexcept 26629: __attribute__ ((__pure__)); 26629: }; 26629: 26629: 26629: inline 26629: exception_ptr::exception_ptr() noexcept 26629: : _M_exception_object(0) 26629: { } 26629: 26629: 26629: inline 26629: exception_ptr::exception_ptr(const exception_ptr& __other) 26629: noexcept 26629: : _M_exception_object(__other._M_exception_object) 26629: { 26629: if (_M_exception_object) 26629: _M_addref(); 26629: } 26629: 26629: 26629: inline 26629: exception_ptr::~exception_ptr() noexcept 26629: { 26629: if (_M_exception_object) 26629: _M_release(); 26629: } 26629: 26629: 26629: inline exception_ptr& 26629: exception_ptr::operator=(const exception_ptr& __other) noexcept 26629: { 26629: exception_ptr(__other).swap(*this); 26629: return *this; 26629: } 26629: 26629: 26629: inline void 26629: exception_ptr::swap(exception_ptr &__other) noexcept 26629: { 26629: void *__tmp = _M_exception_object; 26629: _M_exception_object = __other._M_exception_object; 26629: __other._M_exception_object = __tmp; 26629: } 26629: 26629: 26629: inline void 26629: swap(exception_ptr& __lhs, exception_ptr& __rhs) 26629: { __lhs.swap(__rhs); } 26629: 26629: 26629: template 26629: 26629: inline void 26629: __dest_thunk(void* __x) 26629: { static_cast<_Ex*>(__x)->~_Ex(); } 26629: 26629: 26629: } 26629: 26629: 26629: 26629: template 26629: exception_ptr 26629: make_exception_ptr(_Ex __ex) noexcept 26629: { 26629: 26629: using _Ex2 = typename decay<_Ex>::type; 26629: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 26629: (void) __cxxabiv1::__cxa_init_primary_exception( 26629: __e, const_cast(&typeid(_Ex)), 26629: __exception_ptr::__dest_thunk<_Ex2>); 26629: try 26629: { 26629: ::new (__e) _Ex2(__ex); 26629: return exception_ptr(__e); 26629: } 26629: catch(...) 26629: { 26629: __cxxabiv1::__cxa_free_exception(__e); 26629: return current_exception(); 26629: } 26629: # 268 "/usr/include/c++/12/bits/exception_ptr.h" 3 26629: } 26629: # 282 "/usr/include/c++/12/bits/exception_ptr.h" 3 26629: } 26629: 26629: } 26629: 26629: #pragma GCC visibility pop 26629: # 169 "/usr/include/c++/12/exception" 2 3 26629: # 1 "/usr/include/c++/12/bits/nested_exception.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/nested_exception.h" 3 26629: #pragma GCC visibility push(default) 26629: # 42 "/usr/include/c++/12/bits/nested_exception.h" 3 26629: extern "C++" { 26629: 26629: namespace std 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: class nested_exception 26629: { 26629: exception_ptr _M_ptr; 26629: 26629: public: 26629: nested_exception() noexcept : _M_ptr(current_exception()) { } 26629: 26629: nested_exception(const nested_exception&) noexcept = default; 26629: 26629: nested_exception& operator=(const nested_exception&) noexcept = default; 26629: 26629: virtual ~nested_exception() noexcept; 26629: 26629: [[noreturn]] 26629: void 26629: rethrow_nested() const 26629: { 26629: if (_M_ptr) 26629: rethrow_exception(_M_ptr); 26629: std::terminate(); 26629: } 26629: 26629: exception_ptr 26629: nested_ptr() const noexcept 26629: { return _M_ptr; } 26629: }; 26629: 26629: 26629: 26629: template 26629: struct _Nested_exception : public _Except, public nested_exception 26629: { 26629: explicit _Nested_exception(const _Except& __ex) 26629: : _Except(__ex) 26629: { } 26629: 26629: explicit _Nested_exception(_Except&& __ex) 26629: : _Except(static_cast<_Except&&>(__ex)) 26629: { } 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: [[noreturn]] 26629: inline void 26629: __throw_with_nested_impl(_Tp&& __t, true_type) 26629: { 26629: using _Up = typename remove_reference<_Tp>::type; 26629: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 26629: } 26629: 26629: template 26629: [[noreturn]] 26629: inline void 26629: __throw_with_nested_impl(_Tp&& __t, false_type) 26629: { throw std::forward<_Tp>(__t); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[noreturn]] 26629: inline void 26629: throw_with_nested(_Tp&& __t) 26629: { 26629: using _Up = typename decay<_Tp>::type; 26629: using _CopyConstructible 26629: = __and_, is_move_constructible<_Up>>; 26629: static_assert(_CopyConstructible::value, 26629: "throw_with_nested argument must be CopyConstructible"); 26629: using __nest = __and_, __bool_constant, 26629: __not_>>; 26629: std::__throw_with_nested_impl(std::forward<_Tp>(__t), __nest{}); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: using __rethrow_if_nested_cond = typename enable_if< 26629: __and_, 26629: __or_<__not_>, 26629: is_convertible<_Tp*, nested_exception*>>>::value 26629: >::type; 26629: 26629: 26629: template 26629: inline __rethrow_if_nested_cond<_Ex> 26629: __rethrow_if_nested_impl(const _Ex* __ptr) 26629: { 26629: if (auto __ne_ptr = dynamic_cast(__ptr)) 26629: __ne_ptr->rethrow_nested(); 26629: } 26629: 26629: 26629: inline void 26629: __rethrow_if_nested_impl(const void*) 26629: { } 26629: 26629: 26629: 26629: 26629: template 26629: inline void 26629: rethrow_if_nested(const _Ex& __ex) 26629: { std::__rethrow_if_nested_impl(std::__addressof(__ex)); } 26629: 26629: 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: #pragma GCC visibility pop 26629: # 170 "/usr/include/c++/12/exception" 2 3 26629: # 35 "/usr/include/c++/12/ext/concurrence.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 26629: 26629: 26629: 26629: static const _Lock_policy __default_lock_policy = 26629: 26629: 26629: 26629: _S_atomic; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class __concurrence_lock_error : public std::exception 26629: { 26629: public: 26629: virtual char const* 26629: what() const throw() 26629: { return "__gnu_cxx::__concurrence_lock_error"; } 26629: }; 26629: 26629: class __concurrence_unlock_error : public std::exception 26629: { 26629: public: 26629: virtual char const* 26629: what() const throw() 26629: { return "__gnu_cxx::__concurrence_unlock_error"; } 26629: }; 26629: 26629: class __concurrence_broadcast_error : public std::exception 26629: { 26629: public: 26629: virtual char const* 26629: what() const throw() 26629: { return "__gnu_cxx::__concurrence_broadcast_error"; } 26629: }; 26629: 26629: class __concurrence_wait_error : public std::exception 26629: { 26629: public: 26629: virtual char const* 26629: what() const throw() 26629: { return "__gnu_cxx::__concurrence_wait_error"; } 26629: }; 26629: 26629: 26629: inline void 26629: __throw_concurrence_lock_error() 26629: { (throw (__concurrence_lock_error())); } 26629: 26629: inline void 26629: __throw_concurrence_unlock_error() 26629: { (throw (__concurrence_unlock_error())); } 26629: 26629: 26629: inline void 26629: __throw_concurrence_broadcast_error() 26629: { (throw (__concurrence_broadcast_error())); } 26629: 26629: inline void 26629: __throw_concurrence_wait_error() 26629: { (throw (__concurrence_wait_error())); } 26629: 26629: 26629: class __mutex 26629: { 26629: private: 26629: 26629: __gthread_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 26629: 26629: 26629: 26629: 26629: __mutex(const __mutex&); 26629: __mutex& operator=(const __mutex&); 26629: 26629: public: 26629: __mutex() 26629: { 26629: 26629: 26629: 26629: 26629: } 26629: # 144 "/usr/include/c++/12/ext/concurrence.h" 3 26629: void lock() 26629: { 26629: 26629: if (__gthread_active_p()) 26629: { 26629: if (__gthread_mutex_lock(&_M_mutex) != 0) 26629: __throw_concurrence_lock_error(); 26629: } 26629: 26629: } 26629: 26629: void unlock() 26629: { 26629: 26629: if (__gthread_active_p()) 26629: { 26629: if (__gthread_mutex_unlock(&_M_mutex) != 0) 26629: __throw_concurrence_unlock_error(); 26629: } 26629: 26629: } 26629: 26629: __gthread_mutex_t* gthread_mutex(void) 26629: { return &_M_mutex; } 26629: }; 26629: 26629: class __recursive_mutex 26629: { 26629: private: 26629: 26629: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 26629: 26629: 26629: 26629: 26629: __recursive_mutex(const __recursive_mutex&); 26629: __recursive_mutex& operator=(const __recursive_mutex&); 26629: 26629: public: 26629: __recursive_mutex() 26629: { 26629: 26629: 26629: 26629: 26629: } 26629: # 199 "/usr/include/c++/12/ext/concurrence.h" 3 26629: void lock() 26629: { 26629: 26629: if (__gthread_active_p()) 26629: { 26629: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 26629: __throw_concurrence_lock_error(); 26629: } 26629: 26629: } 26629: 26629: void unlock() 26629: { 26629: 26629: if (__gthread_active_p()) 26629: { 26629: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 26629: __throw_concurrence_unlock_error(); 26629: } 26629: 26629: } 26629: 26629: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 26629: { return &_M_mutex; } 26629: }; 26629: 26629: 26629: 26629: 26629: class __scoped_lock 26629: { 26629: public: 26629: typedef __mutex __mutex_type; 26629: 26629: private: 26629: __mutex_type& _M_device; 26629: 26629: __scoped_lock(const __scoped_lock&); 26629: __scoped_lock& operator=(const __scoped_lock&); 26629: 26629: public: 26629: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 26629: { _M_device.lock(); } 26629: 26629: ~__scoped_lock() throw() 26629: { _M_device.unlock(); } 26629: }; 26629: 26629: 26629: class __cond 26629: { 26629: private: 26629: 26629: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 26629: 26629: 26629: 26629: 26629: __cond(const __cond&); 26629: __cond& operator=(const __cond&); 26629: 26629: public: 26629: __cond() 26629: { 26629: 26629: 26629: 26629: 26629: } 26629: # 277 "/usr/include/c++/12/ext/concurrence.h" 3 26629: void broadcast() 26629: { 26629: 26629: if (__gthread_active_p()) 26629: { 26629: if (__gthread_cond_broadcast(&_M_cond) != 0) 26629: __throw_concurrence_broadcast_error(); 26629: } 26629: 26629: } 26629: 26629: void wait(__mutex *mutex) 26629: { 26629: 26629: { 26629: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 26629: __throw_concurrence_wait_error(); 26629: } 26629: 26629: } 26629: 26629: void wait_recursive(__recursive_mutex *mutex) 26629: { 26629: 26629: { 26629: if (__gthread_cond_wait_recursive(&_M_cond, 26629: mutex->gthread_recursive_mutex()) 26629: != 0) 26629: __throw_concurrence_wait_error(); 26629: } 26629: 26629: } 26629: }; 26629: 26629: 26629: 26629: } 26629: # 63 "/usr/include/c++/12/bits/shared_ptr_base.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: template class auto_ptr; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: 26629: 26629: 26629: class bad_weak_ptr : public std::exception 26629: { 26629: public: 26629: virtual char const* what() const noexcept; 26629: 26629: virtual ~bad_weak_ptr() noexcept; 26629: }; 26629: 26629: 26629: inline void 26629: __throw_bad_weak_ptr() 26629: { (throw (bad_weak_ptr())); } 26629: 26629: using __gnu_cxx::_Lock_policy; 26629: using __gnu_cxx::__default_lock_policy; 26629: using __gnu_cxx::_S_single; 26629: using __gnu_cxx::_S_mutex; 26629: using __gnu_cxx::_S_atomic; 26629: 26629: 26629: template<_Lock_policy _Lp> 26629: class _Mutex_base 26629: { 26629: protected: 26629: 26629: enum { _S_need_barriers = 0 }; 26629: }; 26629: 26629: template<> 26629: class _Mutex_base<_S_mutex> 26629: : public __gnu_cxx::__mutex 26629: { 26629: protected: 26629: 26629: 26629: 26629: enum { _S_need_barriers = 1 }; 26629: }; 26629: 26629: template<_Lock_policy _Lp = __default_lock_policy> 26629: class _Sp_counted_base 26629: : public _Mutex_base<_Lp> 26629: { 26629: public: 26629: _Sp_counted_base() noexcept 26629: : _M_use_count(1), _M_weak_count(1) { } 26629: 26629: virtual 26629: ~_Sp_counted_base() noexcept 26629: { } 26629: 26629: 26629: 26629: virtual void 26629: _M_dispose() noexcept = 0; 26629: 26629: 26629: virtual void 26629: _M_destroy() noexcept 26629: { delete this; } 26629: 26629: virtual void* 26629: _M_get_deleter(const std::type_info&) noexcept = 0; 26629: 26629: 26629: void 26629: _M_add_ref_copy() 26629: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 26629: 26629: 26629: void 26629: _M_add_ref_lock() 26629: { 26629: if (!_M_add_ref_lock_nothrow()) 26629: __throw_bad_weak_ptr(); 26629: } 26629: 26629: 26629: bool 26629: _M_add_ref_lock_nothrow() noexcept; 26629: 26629: 26629: void 26629: _M_release() noexcept; 26629: 26629: 26629: void 26629: _M_release_last_use() noexcept 26629: { 26629: ; 26629: _M_dispose(); 26629: 26629: 26629: 26629: 26629: if (_Mutex_base<_Lp>::_S_need_barriers) 26629: { 26629: __atomic_thread_fence (4); 26629: } 26629: 26629: 26629: ; 26629: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 26629: -1) == 1) 26629: { 26629: ; 26629: _M_destroy(); 26629: } 26629: } 26629: 26629: 26629: __attribute__((__noinline__)) 26629: void 26629: _M_release_last_use_cold() noexcept 26629: { _M_release_last_use(); } 26629: 26629: 26629: void 26629: _M_weak_add_ref() noexcept 26629: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 26629: 26629: 26629: void 26629: _M_weak_release() noexcept 26629: { 26629: 26629: ; 26629: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 26629: { 26629: ; 26629: if (_Mutex_base<_Lp>::_S_need_barriers) 26629: { 26629: 26629: 26629: __atomic_thread_fence (4); 26629: } 26629: _M_destroy(); 26629: } 26629: } 26629: 26629: long 26629: _M_get_use_count() const noexcept 26629: { 26629: 26629: 26629: return __atomic_load_n(&_M_use_count, 0); 26629: } 26629: 26629: private: 26629: _Sp_counted_base(_Sp_counted_base const&) = delete; 26629: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 26629: 26629: _Atomic_word _M_use_count; 26629: _Atomic_word _M_weak_count; 26629: }; 26629: 26629: template<> 26629: inline bool 26629: _Sp_counted_base<_S_single>:: 26629: _M_add_ref_lock_nothrow() noexcept 26629: { 26629: if (_M_use_count == 0) 26629: return false; 26629: ++_M_use_count; 26629: return true; 26629: } 26629: 26629: template<> 26629: inline bool 26629: _Sp_counted_base<_S_mutex>:: 26629: _M_add_ref_lock_nothrow() noexcept 26629: { 26629: __gnu_cxx::__scoped_lock sentry(*this); 26629: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 26629: { 26629: _M_use_count = 0; 26629: return false; 26629: } 26629: return true; 26629: } 26629: 26629: template<> 26629: inline bool 26629: _Sp_counted_base<_S_atomic>:: 26629: _M_add_ref_lock_nothrow() noexcept 26629: { 26629: 26629: _Atomic_word __count = _M_get_use_count(); 26629: do 26629: { 26629: if (__count == 0) 26629: return false; 26629: 26629: 26629: } 26629: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 26629: true, 4, 26629: 0)); 26629: return true; 26629: } 26629: 26629: template<> 26629: inline void 26629: _Sp_counted_base<_S_single>::_M_add_ref_copy() 26629: { ++_M_use_count; } 26629: 26629: template<> 26629: inline void 26629: _Sp_counted_base<_S_single>::_M_release() noexcept 26629: { 26629: if (--_M_use_count == 0) 26629: { 26629: _M_dispose(); 26629: if (--_M_weak_count == 0) 26629: _M_destroy(); 26629: } 26629: } 26629: 26629: template<> 26629: inline void 26629: _Sp_counted_base<_S_mutex>::_M_release() noexcept 26629: { 26629: 26629: ; 26629: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 26629: { 26629: _M_release_last_use(); 26629: } 26629: } 26629: 26629: template<> 26629: inline void 26629: _Sp_counted_base<_S_atomic>::_M_release() noexcept 26629: { 26629: ; 26629: 26629: constexpr bool __lock_free 26629: = __atomic_always_lock_free(sizeof(long long), 0) 26629: && __atomic_always_lock_free(sizeof(_Atomic_word), 0); 26629: constexpr bool __double_word 26629: = sizeof(long long) == 2 * sizeof(_Atomic_word); 26629: 26629: 26629: constexpr bool __aligned = __alignof(long long) <= alignof(void*); 26629: if constexpr (__lock_free && __double_word && __aligned) 26629: { 26629: constexpr int __wordbits = 8 * sizeof(_Atomic_word); 26629: constexpr int __shiftbits = __double_word ? __wordbits : 0; 26629: constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); 26629: auto __both_counts = reinterpret_cast(&_M_use_count); 26629: 26629: ; 26629: if (__atomic_load_n(__both_counts, 2) == __unique_ref) 26629: { 26629: 26629: 26629: 26629: 26629: _M_weak_count = _M_use_count = 0; 26629: ; 26629: ; 26629: _M_dispose(); 26629: _M_destroy(); 26629: return; 26629: } 26629: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 26629: [[__unlikely__]] 26629: { 26629: _M_release_last_use_cold(); 26629: return; 26629: } 26629: } 26629: else 26629: 26629: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 26629: { 26629: _M_release_last_use(); 26629: } 26629: } 26629: 26629: template<> 26629: inline void 26629: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 26629: { ++_M_weak_count; } 26629: 26629: template<> 26629: inline void 26629: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 26629: { 26629: if (--_M_weak_count == 0) 26629: _M_destroy(); 26629: } 26629: 26629: template<> 26629: inline long 26629: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 26629: { return _M_use_count; } 26629: 26629: 26629: 26629: template 26629: class __shared_ptr; 26629: 26629: template 26629: class __weak_ptr; 26629: 26629: template 26629: class __enable_shared_from_this; 26629: 26629: template 26629: class shared_ptr; 26629: 26629: template 26629: class weak_ptr; 26629: 26629: template 26629: struct owner_less; 26629: 26629: template 26629: class enable_shared_from_this; 26629: 26629: template<_Lock_policy _Lp = __default_lock_policy> 26629: class __weak_count; 26629: 26629: template<_Lock_policy _Lp = __default_lock_policy> 26629: class __shared_count; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 26629: { 26629: public: 26629: explicit 26629: _Sp_counted_ptr(_Ptr __p) noexcept 26629: : _M_ptr(__p) { } 26629: 26629: virtual void 26629: _M_dispose() noexcept 26629: { delete _M_ptr; } 26629: 26629: virtual void 26629: _M_destroy() noexcept 26629: { delete this; } 26629: 26629: virtual void* 26629: _M_get_deleter(const std::type_info&) noexcept 26629: { return nullptr; } 26629: 26629: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 26629: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 26629: 26629: private: 26629: _Ptr _M_ptr; 26629: }; 26629: 26629: template<> 26629: inline void 26629: _Sp_counted_ptr::_M_dispose() noexcept { } 26629: 26629: template<> 26629: inline void 26629: _Sp_counted_ptr::_M_dispose() noexcept { } 26629: 26629: template<> 26629: inline void 26629: _Sp_counted_ptr::_M_dispose() noexcept { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Sp_ebo_helper; 26629: 26629: 26629: template 26629: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 26629: { 26629: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 26629: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 26629: 26629: static _Tp& 26629: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 26629: }; 26629: 26629: 26629: template 26629: struct _Sp_ebo_helper<_Nm, _Tp, false> 26629: { 26629: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 26629: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 26629: 26629: static _Tp& 26629: _S_get(_Sp_ebo_helper& __eboh) 26629: { return __eboh._M_tp; } 26629: 26629: private: 26629: _Tp _M_tp; 26629: }; 26629: 26629: 26629: template 26629: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 26629: { 26629: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 26629: { 26629: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 26629: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 26629: 26629: public: 26629: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 26629: : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) 26629: { } 26629: 26629: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 26629: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 26629: 26629: _Ptr _M_ptr; 26629: }; 26629: 26629: public: 26629: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 26629: 26629: 26629: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 26629: : _M_impl(__p, std::move(__d), _Alloc()) { } 26629: 26629: 26629: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 26629: : _M_impl(__p, std::move(__d), __a) { } 26629: 26629: ~_Sp_counted_deleter() noexcept { } 26629: 26629: virtual void 26629: _M_dispose() noexcept 26629: { _M_impl._M_del()(_M_impl._M_ptr); } 26629: 26629: virtual void 26629: _M_destroy() noexcept 26629: { 26629: __allocator_type __a(_M_impl._M_alloc()); 26629: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 26629: this->~_Sp_counted_deleter(); 26629: } 26629: 26629: virtual void* 26629: _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept 26629: { 26629: 26629: 26629: 26629: return __ti == typeid(_Deleter) 26629: ? std::__addressof(_M_impl._M_del()) 26629: : nullptr; 26629: 26629: 26629: 26629: } 26629: 26629: private: 26629: _Impl _M_impl; 26629: }; 26629: 26629: 26629: 26629: struct _Sp_make_shared_tag 26629: { 26629: private: 26629: template 26629: friend class _Sp_counted_ptr_inplace; 26629: 26629: static const type_info& 26629: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 26629: { 26629: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 26629: return reinterpret_cast(__tag); 26629: } 26629: 26629: static bool _S_eq(const type_info&) noexcept; 26629: }; 26629: 26629: template 26629: struct _Sp_alloc_shared_tag 26629: { 26629: const _Alloc& _M_a; 26629: }; 26629: 26629: template 26629: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 26629: { 26629: class _Impl : _Sp_ebo_helper<0, _Alloc> 26629: { 26629: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 26629: 26629: public: 26629: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 26629: 26629: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 26629: 26629: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 26629: }; 26629: 26629: public: 26629: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 26629: 26629: 26629: template 26629: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 26629: : _M_impl(__a) 26629: { 26629: 26629: 26629: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: ~_Sp_counted_ptr_inplace() noexcept { } 26629: 26629: virtual void 26629: _M_dispose() noexcept 26629: { 26629: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 26629: } 26629: 26629: 26629: virtual void 26629: _M_destroy() noexcept 26629: { 26629: __allocator_type __a(_M_impl._M_alloc()); 26629: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 26629: this->~_Sp_counted_ptr_inplace(); 26629: } 26629: 26629: private: 26629: friend class __shared_count<_Lp>; 26629: 26629: 26629: 26629: virtual void* 26629: _M_get_deleter(const std::type_info& __ti) noexcept override 26629: { 26629: auto __ptr = const_cast::type*>(_M_ptr()); 26629: 26629: 26629: 26629: 26629: if (&__ti == &_Sp_make_shared_tag::_S_ti() 26629: || 26629: 26629: __ti == typeid(_Sp_make_shared_tag) 26629: 26629: 26629: 26629: ) 26629: return __ptr; 26629: return nullptr; 26629: } 26629: 26629: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 26629: 26629: _Impl _M_impl; 26629: }; 26629: # 886 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 26629: struct __sp_array_delete 26629: { 26629: template 26629: void operator()(_Yp* __p) const { delete[] __p; } 26629: }; 26629: 26629: template<_Lock_policy _Lp> 26629: class __shared_count 26629: { 26629: 26629: template 26629: struct __not_alloc_shared_tag { using type = void; }; 26629: 26629: template 26629: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: public: 26629: constexpr __shared_count() noexcept : _M_pi(0) 26629: { } 26629: 26629: template 26629: explicit 26629: __shared_count(_Ptr __p) : _M_pi(0) 26629: { 26629: try 26629: { 26629: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 26629: } 26629: catch(...) 26629: { 26629: delete __p; 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: __shared_count(_Ptr __p, false_type) 26629: : __shared_count(__p) 26629: { } 26629: 26629: template 26629: __shared_count(_Ptr __p, true_type) 26629: : __shared_count(__p, __sp_array_delete{}, allocator()) 26629: { } 26629: 26629: template::type> 26629: __shared_count(_Ptr __p, _Deleter __d) 26629: : __shared_count(__p, std::move(__d), allocator()) 26629: { } 26629: 26629: template::type> 26629: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 26629: { 26629: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 26629: try 26629: { 26629: typename _Sp_cd_type::__allocator_type __a2(__a); 26629: auto __guard = std::__allocate_guarded(__a2); 26629: _Sp_cd_type* __mem = __guard.get(); 26629: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 26629: _M_pi = __mem; 26629: __guard = nullptr; 26629: } 26629: catch(...) 26629: { 26629: __d(__p); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 26629: _Args&&... __args) 26629: { 26629: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 26629: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 26629: auto __guard = std::__allocate_guarded(__a2); 26629: _Sp_cp_type* __mem = __guard.get(); 26629: auto __pi = ::new (__mem) 26629: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 26629: __guard = nullptr; 26629: _M_pi = __pi; 26629: __p = __pi->_M_ptr(); 26629: } 26629: # 1024 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: template 26629: explicit 26629: __shared_count(std::auto_ptr<_Tp>&& __r); 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: template 26629: explicit 26629: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 26629: { 26629: 26629: 26629: if (__r.get() == nullptr) 26629: return; 26629: 26629: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 26629: using _Del2 = __conditional_t::value, 26629: reference_wrapper::type>, 26629: _Del>; 26629: using _Sp_cd_type 26629: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 26629: using _Alloc = allocator<_Sp_cd_type>; 26629: using _Alloc_traits = allocator_traits<_Alloc>; 26629: _Alloc __a; 26629: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 26629: 26629: 26629: 26629: _Alloc_traits::construct(__a, __mem, __r.release(), 26629: std::forward<_Del>(__r.get_deleter())); 26629: _M_pi = __mem; 26629: } 26629: 26629: 26629: explicit __shared_count(const __weak_count<_Lp>& __r); 26629: 26629: 26629: explicit 26629: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; 26629: 26629: ~__shared_count() noexcept 26629: { 26629: if (_M_pi != nullptr) 26629: _M_pi->_M_release(); 26629: } 26629: 26629: __shared_count(const __shared_count& __r) noexcept 26629: : _M_pi(__r._M_pi) 26629: { 26629: if (_M_pi != nullptr) 26629: _M_pi->_M_add_ref_copy(); 26629: } 26629: 26629: __shared_count& 26629: operator=(const __shared_count& __r) noexcept 26629: { 26629: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 26629: if (__tmp != _M_pi) 26629: { 26629: if (__tmp != nullptr) 26629: __tmp->_M_add_ref_copy(); 26629: if (_M_pi != nullptr) 26629: _M_pi->_M_release(); 26629: _M_pi = __tmp; 26629: } 26629: return *this; 26629: } 26629: 26629: void 26629: _M_swap(__shared_count& __r) noexcept 26629: { 26629: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 26629: __r._M_pi = _M_pi; 26629: _M_pi = __tmp; 26629: } 26629: 26629: long 26629: _M_get_use_count() const noexcept 26629: { return _M_pi ? _M_pi->_M_get_use_count() : 0; } 26629: 26629: bool 26629: _M_unique() const noexcept 26629: { return this->_M_get_use_count() == 1; } 26629: 26629: void* 26629: _M_get_deleter(const std::type_info& __ti) const noexcept 26629: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 26629: 26629: bool 26629: _M_less(const __shared_count& __rhs) const noexcept 26629: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 26629: 26629: bool 26629: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 26629: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 26629: 26629: 26629: friend inline bool 26629: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 26629: { return __a._M_pi == __b._M_pi; } 26629: 26629: private: 26629: friend class __weak_count<_Lp>; 26629: 26629: 26629: 26629: 26629: _Sp_counted_base<_Lp>* _M_pi; 26629: }; 26629: 26629: 26629: template<_Lock_policy _Lp> 26629: class __weak_count 26629: { 26629: public: 26629: constexpr __weak_count() noexcept : _M_pi(nullptr) 26629: { } 26629: 26629: __weak_count(const __shared_count<_Lp>& __r) noexcept 26629: : _M_pi(__r._M_pi) 26629: { 26629: if (_M_pi != nullptr) 26629: _M_pi->_M_weak_add_ref(); 26629: } 26629: 26629: __weak_count(const __weak_count& __r) noexcept 26629: : _M_pi(__r._M_pi) 26629: { 26629: if (_M_pi != nullptr) 26629: _M_pi->_M_weak_add_ref(); 26629: } 26629: 26629: __weak_count(__weak_count&& __r) noexcept 26629: : _M_pi(__r._M_pi) 26629: { __r._M_pi = nullptr; } 26629: 26629: ~__weak_count() noexcept 26629: { 26629: if (_M_pi != nullptr) 26629: _M_pi->_M_weak_release(); 26629: } 26629: 26629: __weak_count& 26629: operator=(const __shared_count<_Lp>& __r) noexcept 26629: { 26629: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 26629: if (__tmp != nullptr) 26629: __tmp->_M_weak_add_ref(); 26629: if (_M_pi != nullptr) 26629: _M_pi->_M_weak_release(); 26629: _M_pi = __tmp; 26629: return *this; 26629: } 26629: 26629: __weak_count& 26629: operator=(const __weak_count& __r) noexcept 26629: { 26629: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 26629: if (__tmp != nullptr) 26629: __tmp->_M_weak_add_ref(); 26629: if (_M_pi != nullptr) 26629: _M_pi->_M_weak_release(); 26629: _M_pi = __tmp; 26629: return *this; 26629: } 26629: 26629: __weak_count& 26629: operator=(__weak_count&& __r) noexcept 26629: { 26629: if (_M_pi != nullptr) 26629: _M_pi->_M_weak_release(); 26629: _M_pi = __r._M_pi; 26629: __r._M_pi = nullptr; 26629: return *this; 26629: } 26629: 26629: void 26629: _M_swap(__weak_count& __r) noexcept 26629: { 26629: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 26629: __r._M_pi = _M_pi; 26629: _M_pi = __tmp; 26629: } 26629: 26629: long 26629: _M_get_use_count() const noexcept 26629: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 26629: 26629: bool 26629: _M_less(const __weak_count& __rhs) const noexcept 26629: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 26629: 26629: bool 26629: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 26629: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 26629: 26629: 26629: friend inline bool 26629: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 26629: { return __a._M_pi == __b._M_pi; } 26629: 26629: private: 26629: friend class __shared_count<_Lp>; 26629: 26629: 26629: 26629: 26629: _Sp_counted_base<_Lp>* _M_pi; 26629: }; 26629: 26629: 26629: template<_Lock_policy _Lp> 26629: inline 26629: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 26629: : _M_pi(__r._M_pi) 26629: { 26629: if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) 26629: __throw_bad_weak_ptr(); 26629: } 26629: 26629: 26629: template<_Lock_policy _Lp> 26629: inline 26629: __shared_count<_Lp>:: 26629: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept 26629: : _M_pi(__r._M_pi) 26629: { 26629: if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) 26629: _M_pi = nullptr; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __sp_compatible_with 26629: : false_type 26629: { }; 26629: 26629: template 26629: struct __sp_compatible_with<_Yp*, _Tp*> 26629: : is_convertible<_Yp*, _Tp*>::type 26629: { }; 26629: 26629: template 26629: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 26629: : true_type 26629: { }; 26629: 26629: template 26629: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 26629: : true_type 26629: { }; 26629: 26629: template 26629: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 26629: : true_type 26629: { }; 26629: 26629: template 26629: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 26629: : true_type 26629: { }; 26629: 26629: 26629: template 26629: struct __sp_is_constructible_arrN 26629: : false_type 26629: { }; 26629: 26629: template 26629: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 26629: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 26629: { }; 26629: 26629: 26629: template 26629: struct __sp_is_constructible_arr 26629: : false_type 26629: { }; 26629: 26629: template 26629: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 26629: : is_convertible<_Yp(*)[], _Up(*)[]>::type 26629: { }; 26629: 26629: 26629: template 26629: struct __sp_is_constructible; 26629: 26629: 26629: template 26629: struct __sp_is_constructible<_Up[_Nm], _Yp> 26629: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 26629: { }; 26629: 26629: 26629: template 26629: struct __sp_is_constructible<_Up[], _Yp> 26629: : __sp_is_constructible_arr<_Up, _Yp>::type 26629: { }; 26629: 26629: 26629: template 26629: struct __sp_is_constructible 26629: : is_convertible<_Yp*, _Tp*>::type 26629: { }; 26629: 26629: 26629: 26629: template::value, bool = is_void<_Tp>::value> 26629: class __shared_ptr_access 26629: { 26629: public: 26629: using element_type = _Tp; 26629: 26629: element_type& 26629: operator*() const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) __builtin_unreachable(); } while (false); 26629: return *_M_get(); 26629: } 26629: 26629: element_type* 26629: operator->() const noexcept 26629: { 26629: ; 26629: return _M_get(); 26629: } 26629: 26629: private: 26629: element_type* 26629: _M_get() const noexcept 26629: { return static_cast*>(this)->get(); } 26629: }; 26629: 26629: 26629: template 26629: class __shared_ptr_access<_Tp, _Lp, false, true> 26629: { 26629: public: 26629: using element_type = _Tp; 26629: 26629: element_type* 26629: operator->() const noexcept 26629: { 26629: auto __ptr = static_cast*>(this)->get(); 26629: ; 26629: return __ptr; 26629: } 26629: }; 26629: 26629: 26629: template 26629: class __shared_ptr_access<_Tp, _Lp, true, false> 26629: { 26629: public: 26629: using element_type = typename remove_extent<_Tp>::type; 26629: # 1407 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 26629: element_type& 26629: operator[](ptrdiff_t __i) const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) __builtin_unreachable(); } while (false); 26629: do { if (std::__is_constant_evaluated() && !bool(!extent<_Tp>::value || __i < extent<_Tp>::value)) __builtin_unreachable(); } while (false); 26629: return _M_get()[__i]; 26629: } 26629: 26629: private: 26629: element_type* 26629: _M_get() const noexcept 26629: { return static_cast*>(this)->get(); } 26629: }; 26629: 26629: template 26629: class __shared_ptr 26629: : public __shared_ptr_access<_Tp, _Lp> 26629: { 26629: public: 26629: using element_type = typename remove_extent<_Tp>::type; 26629: 26629: private: 26629: 26629: template 26629: using _SafeConv 26629: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 26629: 26629: 26629: template 26629: using _Compatible = typename 26629: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 26629: 26629: 26629: template 26629: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 26629: 26629: 26629: template::pointer> 26629: using _UniqCompatible = __enable_if_t<__and_< 26629: __sp_compatible_with<_Yp*, _Tp*>, 26629: is_convertible<_Ptr, element_type*>, 26629: is_move_constructible<_Del> 26629: >::value, _Res>; 26629: 26629: 26629: template 26629: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 26629: 26629: public: 26629: 26629: 26629: using weak_type = __weak_ptr<_Tp, _Lp>; 26629: 26629: 26629: constexpr __shared_ptr() noexcept 26629: : _M_ptr(0), _M_refcount() 26629: { } 26629: 26629: template> 26629: explicit 26629: __shared_ptr(_Yp* __p) 26629: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 26629: { 26629: static_assert( !is_void<_Yp>::value, "incomplete type" ); 26629: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 26629: _M_enable_shared_from_this_with(__p); 26629: } 26629: 26629: template> 26629: __shared_ptr(_Yp* __p, _Deleter __d) 26629: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 26629: { 26629: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 26629: "deleter expression d(p) is well-formed"); 26629: _M_enable_shared_from_this_with(__p); 26629: } 26629: 26629: template> 26629: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 26629: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 26629: { 26629: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 26629: "deleter expression d(p) is well-formed"); 26629: _M_enable_shared_from_this_with(__p); 26629: } 26629: 26629: template 26629: __shared_ptr(nullptr_t __p, _Deleter __d) 26629: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 26629: { } 26629: 26629: template 26629: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 26629: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 26629: { } 26629: 26629: 26629: template 26629: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 26629: element_type* __p) noexcept 26629: : _M_ptr(__p), _M_refcount(__r._M_refcount) 26629: { } 26629: 26629: 26629: template 26629: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, 26629: element_type* __p) noexcept 26629: : _M_ptr(__p), _M_refcount() 26629: { 26629: _M_refcount._M_swap(__r._M_refcount); 26629: __r._M_ptr = nullptr; 26629: } 26629: 26629: __shared_ptr(const __shared_ptr&) noexcept = default; 26629: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 26629: ~__shared_ptr() = default; 26629: 26629: template> 26629: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 26629: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 26629: { } 26629: 26629: __shared_ptr(__shared_ptr&& __r) noexcept 26629: : _M_ptr(__r._M_ptr), _M_refcount() 26629: { 26629: _M_refcount._M_swap(__r._M_refcount); 26629: __r._M_ptr = nullptr; 26629: } 26629: 26629: template> 26629: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 26629: : _M_ptr(__r._M_ptr), _M_refcount() 26629: { 26629: _M_refcount._M_swap(__r._M_refcount); 26629: __r._M_ptr = nullptr; 26629: } 26629: 26629: template> 26629: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 26629: : _M_refcount(__r._M_refcount) 26629: { 26629: 26629: 26629: _M_ptr = __r._M_ptr; 26629: } 26629: 26629: 26629: template> 26629: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 26629: : _M_ptr(__r.get()), _M_refcount() 26629: { 26629: auto __raw = __to_address(__r.get()); 26629: _M_refcount = __shared_count<_Lp>(std::move(__r)); 26629: _M_enable_shared_from_this_with(__raw); 26629: } 26629: # 1585 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: template> 26629: __shared_ptr(auto_ptr<_Yp>&& __r); 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 26629: 26629: template 26629: _Assignable<_Yp> 26629: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 26629: { 26629: _M_ptr = __r._M_ptr; 26629: _M_refcount = __r._M_refcount; 26629: return *this; 26629: } 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: template 26629: _Assignable<_Yp> 26629: operator=(auto_ptr<_Yp>&& __r) 26629: { 26629: __shared_ptr(std::move(__r)).swap(*this); 26629: return *this; 26629: } 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: __shared_ptr& 26629: operator=(__shared_ptr&& __r) noexcept 26629: { 26629: __shared_ptr(std::move(__r)).swap(*this); 26629: return *this; 26629: } 26629: 26629: template 26629: _Assignable<_Yp> 26629: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 26629: { 26629: __shared_ptr(std::move(__r)).swap(*this); 26629: return *this; 26629: } 26629: 26629: template 26629: _UniqAssignable<_Yp, _Del> 26629: operator=(unique_ptr<_Yp, _Del>&& __r) 26629: { 26629: __shared_ptr(std::move(__r)).swap(*this); 26629: return *this; 26629: } 26629: 26629: void 26629: reset() noexcept 26629: { __shared_ptr().swap(*this); } 26629: 26629: template 26629: _SafeConv<_Yp> 26629: reset(_Yp* __p) 26629: { 26629: 26629: do { if (std::__is_constant_evaluated() && !bool(__p == nullptr || __p != _M_ptr)) __builtin_unreachable(); } while (false); 26629: __shared_ptr(__p).swap(*this); 26629: } 26629: 26629: template 26629: _SafeConv<_Yp> 26629: reset(_Yp* __p, _Deleter __d) 26629: { __shared_ptr(__p, std::move(__d)).swap(*this); } 26629: 26629: template 26629: _SafeConv<_Yp> 26629: reset(_Yp* __p, _Deleter __d, _Alloc __a) 26629: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 26629: 26629: 26629: element_type* 26629: get() const noexcept 26629: { return _M_ptr; } 26629: 26629: 26629: explicit operator bool() const noexcept 26629: { return _M_ptr != nullptr; } 26629: 26629: 26629: bool 26629: unique() const noexcept 26629: { return _M_refcount._M_unique(); } 26629: 26629: 26629: long 26629: use_count() const noexcept 26629: { return _M_refcount._M_get_use_count(); } 26629: 26629: 26629: void 26629: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 26629: { 26629: std::swap(_M_ptr, __other._M_ptr); 26629: _M_refcount._M_swap(__other._M_refcount); 26629: } 26629: # 1697 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 26629: template 26629: bool 26629: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 26629: { return _M_refcount._M_less(__rhs._M_refcount); } 26629: 26629: template 26629: bool 26629: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 26629: { return _M_refcount._M_less(__rhs._M_refcount); } 26629: 26629: 26629: protected: 26629: 26629: template 26629: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 26629: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 26629: { _M_enable_shared_from_this_with(_M_ptr); } 26629: 26629: template 26629: friend __shared_ptr<_Tp1, _Lp1> 26629: __allocate_shared(const _Alloc& __a, _Args&&... __args); 26629: # 1731 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 26629: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept 26629: : _M_refcount(__r._M_refcount, std::nothrow) 26629: { 26629: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 26629: } 26629: 26629: friend class __weak_ptr<_Tp, _Lp>; 26629: 26629: private: 26629: 26629: template 26629: using __esft_base_t = decltype(__enable_shared_from_this_base( 26629: std::declval&>(), 26629: std::declval<_Yp*>())); 26629: 26629: 26629: template 26629: struct __has_esft_base 26629: : false_type { }; 26629: 26629: template 26629: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 26629: : __not_> { }; 26629: 26629: template::type> 26629: typename enable_if<__has_esft_base<_Yp2>::value>::type 26629: _M_enable_shared_from_this_with(_Yp* __p) noexcept 26629: { 26629: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 26629: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 26629: } 26629: 26629: template::type> 26629: typename enable_if::value>::type 26629: _M_enable_shared_from_this_with(_Yp*) noexcept 26629: { } 26629: 26629: void* 26629: _M_get_deleter(const std::type_info& __ti) const noexcept 26629: { return _M_refcount._M_get_deleter(__ti); } 26629: 26629: template friend class __shared_ptr; 26629: template friend class __weak_ptr; 26629: 26629: template 26629: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 26629: 26629: template 26629: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 26629: 26629: 26629: 26629: 26629: 26629: element_type* _M_ptr; 26629: __shared_count<_Lp> _M_refcount; 26629: }; 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 26629: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 26629: { return __a.get() == __b.get(); } 26629: 26629: template 26629: inline bool 26629: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 26629: { return !__a; } 26629: # 1817 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 26629: template 26629: inline bool 26629: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 26629: { return !__a; } 26629: 26629: template 26629: inline bool 26629: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 26629: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 26629: { return __a.get() != __b.get(); } 26629: 26629: template 26629: inline bool 26629: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 26629: { return (bool)__a; } 26629: 26629: template 26629: inline bool 26629: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 26629: { return (bool)__a; } 26629: 26629: template 26629: inline bool 26629: operator<(const __shared_ptr<_Tp, _Lp>& __a, 26629: const __shared_ptr<_Up, _Lp>& __b) noexcept 26629: { 26629: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 26629: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 26629: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 26629: return less<_Vp>()(__a.get(), __b.get()); 26629: } 26629: 26629: template 26629: inline bool 26629: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 26629: { 26629: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 26629: return less<_Tp_elt*>()(__a.get(), nullptr); 26629: } 26629: 26629: template 26629: inline bool 26629: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 26629: { 26629: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 26629: return less<_Tp_elt*>()(nullptr, __a.get()); 26629: } 26629: 26629: template 26629: inline bool 26629: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 26629: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 26629: { return !(__b < __a); } 26629: 26629: template 26629: inline bool 26629: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 26629: { return !(nullptr < __a); } 26629: 26629: template 26629: inline bool 26629: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 26629: { return !(__a < nullptr); } 26629: 26629: template 26629: inline bool 26629: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 26629: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 26629: { return (__b < __a); } 26629: 26629: template 26629: inline bool 26629: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 26629: { return nullptr < __a; } 26629: 26629: template 26629: inline bool 26629: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 26629: { return __a < nullptr; } 26629: 26629: template 26629: inline bool 26629: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 26629: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 26629: { return !(__a < __b); } 26629: 26629: template 26629: inline bool 26629: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 26629: { return !(__a < nullptr); } 26629: 26629: template 26629: inline bool 26629: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 26629: { return !(nullptr < __a); } 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 26629: { __a.swap(__b); } 26629: # 1927 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 26629: template 26629: inline __shared_ptr<_Tp, _Lp> 26629: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 26629: { 26629: using _Sp = __shared_ptr<_Tp, _Lp>; 26629: return _Sp(__r, static_cast(__r.get())); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline __shared_ptr<_Tp, _Lp> 26629: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 26629: { 26629: using _Sp = __shared_ptr<_Tp, _Lp>; 26629: return _Sp(__r, const_cast(__r.get())); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline __shared_ptr<_Tp, _Lp> 26629: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 26629: { 26629: using _Sp = __shared_ptr<_Tp, _Lp>; 26629: if (auto* __p = dynamic_cast(__r.get())) 26629: return _Sp(__r, __p); 26629: return _Sp(); 26629: } 26629: 26629: 26629: template 26629: inline __shared_ptr<_Tp, _Lp> 26629: reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 26629: { 26629: using _Sp = __shared_ptr<_Tp, _Lp>; 26629: return _Sp(__r, reinterpret_cast(__r.get())); 26629: } 26629: 26629: 26629: template 26629: class __weak_ptr 26629: { 26629: template 26629: using _Compatible = typename 26629: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 26629: 26629: 26629: template 26629: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 26629: 26629: public: 26629: using element_type = typename remove_extent<_Tp>::type; 26629: 26629: constexpr __weak_ptr() noexcept 26629: : _M_ptr(nullptr), _M_refcount() 26629: { } 26629: 26629: __weak_ptr(const __weak_ptr&) noexcept = default; 26629: 26629: ~__weak_ptr() = default; 26629: # 2009 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 26629: template> 26629: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 26629: : _M_refcount(__r._M_refcount) 26629: { _M_ptr = __r.lock().get(); } 26629: 26629: template> 26629: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 26629: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 26629: { } 26629: 26629: __weak_ptr(__weak_ptr&& __r) noexcept 26629: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 26629: { __r._M_ptr = nullptr; } 26629: 26629: template> 26629: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 26629: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 26629: { __r._M_ptr = nullptr; } 26629: 26629: __weak_ptr& 26629: operator=(const __weak_ptr& __r) noexcept = default; 26629: 26629: template 26629: _Assignable<_Yp> 26629: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 26629: { 26629: _M_ptr = __r.lock().get(); 26629: _M_refcount = __r._M_refcount; 26629: return *this; 26629: } 26629: 26629: template 26629: _Assignable<_Yp> 26629: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 26629: { 26629: _M_ptr = __r._M_ptr; 26629: _M_refcount = __r._M_refcount; 26629: return *this; 26629: } 26629: 26629: __weak_ptr& 26629: operator=(__weak_ptr&& __r) noexcept 26629: { 26629: _M_ptr = __r._M_ptr; 26629: _M_refcount = std::move(__r._M_refcount); 26629: __r._M_ptr = nullptr; 26629: return *this; 26629: } 26629: 26629: template 26629: _Assignable<_Yp> 26629: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 26629: { 26629: _M_ptr = __r.lock().get(); 26629: _M_refcount = std::move(__r._M_refcount); 26629: __r._M_ptr = nullptr; 26629: return *this; 26629: } 26629: 26629: __shared_ptr<_Tp, _Lp> 26629: lock() const noexcept 26629: { return __shared_ptr(*this, std::nothrow); } 26629: 26629: long 26629: use_count() const noexcept 26629: { return _M_refcount._M_get_use_count(); } 26629: 26629: bool 26629: expired() const noexcept 26629: { return _M_refcount._M_get_use_count() == 0; } 26629: 26629: template 26629: bool 26629: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 26629: { return _M_refcount._M_less(__rhs._M_refcount); } 26629: 26629: template 26629: bool 26629: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 26629: { return _M_refcount._M_less(__rhs._M_refcount); } 26629: 26629: void 26629: reset() noexcept 26629: { __weak_ptr().swap(*this); } 26629: 26629: void 26629: swap(__weak_ptr& __s) noexcept 26629: { 26629: std::swap(_M_ptr, __s._M_ptr); 26629: _M_refcount._M_swap(__s._M_refcount); 26629: } 26629: 26629: private: 26629: 26629: void 26629: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 26629: { 26629: if (use_count() == 0) 26629: { 26629: _M_ptr = __ptr; 26629: _M_refcount = __refcount; 26629: } 26629: } 26629: 26629: template friend class __shared_ptr; 26629: template friend class __weak_ptr; 26629: friend class __enable_shared_from_this<_Tp, _Lp>; 26629: friend class enable_shared_from_this<_Tp>; 26629: 26629: 26629: 26629: 26629: element_type* _M_ptr; 26629: __weak_count<_Lp> _M_refcount; 26629: }; 26629: 26629: 26629: template 26629: inline void 26629: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 26629: { __a.swap(__b); } 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: template 26629: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 26629: { 26629: bool 26629: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 26629: { return __lhs.owner_before(__rhs); } 26629: 26629: bool 26629: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 26629: { return __lhs.owner_before(__rhs); } 26629: 26629: bool 26629: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 26629: { return __lhs.owner_before(__rhs); } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: template<> 26629: struct _Sp_owner_less 26629: { 26629: template 26629: auto 26629: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 26629: -> decltype(__lhs.owner_before(__rhs)) 26629: { return __lhs.owner_before(__rhs); } 26629: 26629: using is_transparent = void; 26629: }; 26629: 26629: template 26629: struct owner_less<__shared_ptr<_Tp, _Lp>> 26629: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 26629: { }; 26629: 26629: template 26629: struct owner_less<__weak_ptr<_Tp, _Lp>> 26629: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 26629: { }; 26629: 26629: 26629: template 26629: class __enable_shared_from_this 26629: { 26629: protected: 26629: constexpr __enable_shared_from_this() noexcept { } 26629: 26629: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 26629: 26629: __enable_shared_from_this& 26629: operator=(const __enable_shared_from_this&) noexcept 26629: { return *this; } 26629: 26629: ~__enable_shared_from_this() { } 26629: 26629: public: 26629: __shared_ptr<_Tp, _Lp> 26629: shared_from_this() 26629: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 26629: 26629: __shared_ptr 26629: shared_from_this() const 26629: { return __shared_ptr(this->_M_weak_this); } 26629: 26629: 26629: __weak_ptr<_Tp, _Lp> 26629: weak_from_this() noexcept 26629: { return this->_M_weak_this; } 26629: 26629: __weak_ptr 26629: weak_from_this() const noexcept 26629: { return this->_M_weak_this; } 26629: 26629: 26629: private: 26629: template 26629: void 26629: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 26629: { _M_weak_this._M_assign(__p, __n); } 26629: 26629: friend const __enable_shared_from_this* 26629: __enable_shared_from_this_base(const __shared_count<_Lp>&, 26629: const __enable_shared_from_this* __p) 26629: { return __p; } 26629: 26629: template 26629: friend class __shared_ptr; 26629: 26629: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 26629: }; 26629: 26629: template 26629: inline __shared_ptr<_Tp, _Lp> 26629: __allocate_shared(const _Alloc& __a, _Args&&... __args) 26629: { 26629: static_assert(!is_array<_Tp>::value, "make_shared not supported"); 26629: 26629: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: template 26629: inline __shared_ptr<_Tp, _Lp> 26629: __make_shared(_Args&&... __args) 26629: { 26629: typedef typename std::remove_const<_Tp>::type _Tp_nc; 26629: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: 26629: template 26629: struct hash<__shared_ptr<_Tp, _Lp>> 26629: : public __hash_base> 26629: { 26629: size_t 26629: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 26629: { 26629: return hash::element_type*>()( 26629: __s.get()); 26629: } 26629: }; 26629: 26629: 26629: } 26629: # 54 "/usr/include/c++/12/bits/shared_ptr.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 68 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: inline std::basic_ostream<_Ch, _Tr>& 26629: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 26629: const __shared_ptr<_Tp, _Lp>& __p) 26629: { 26629: __os << __p.get(); 26629: return __os; 26629: } 26629: 26629: template 26629: inline _Del* 26629: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 26629: { 26629: 26629: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline _Del* 26629: get_deleter(const shared_ptr<_Tp>& __p) noexcept 26629: { 26629: 26629: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 26629: 26629: 26629: 26629: } 26629: # 111 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: using _NonArray = __enable_if_t::value, _Tp>; 26629: # 174 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: class shared_ptr : public __shared_ptr<_Tp> 26629: { 26629: template 26629: using _Constructible = typename enable_if< 26629: is_constructible<__shared_ptr<_Tp>, _Args...>::value 26629: >::type; 26629: 26629: template 26629: using _Assignable = typename enable_if< 26629: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 26629: >::type; 26629: 26629: public: 26629: 26629: 26629: using element_type = typename __shared_ptr<_Tp>::element_type; 26629: 26629: 26629: 26629: 26629: 26629: using weak_type = weak_ptr<_Tp>; 26629: 26629: 26629: 26629: 26629: 26629: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 26629: 26629: shared_ptr(const shared_ptr&) noexcept = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: explicit 26629: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 26629: # 229 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template> 26629: shared_ptr(_Yp* __p, _Deleter __d) 26629: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 26629: # 247 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: shared_ptr(nullptr_t __p, _Deleter __d) 26629: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 26629: # 266 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template> 26629: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 26629: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 26629: # 286 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 26629: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 26629: # 310 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 26629: : __shared_ptr<_Tp>(__r, __p) { } 26629: # 349 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template&>> 26629: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 26629: : __shared_ptr<_Tp>(__r) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: shared_ptr(shared_ptr&& __r) noexcept 26629: : __shared_ptr<_Tp>(std::move(__r)) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template>> 26629: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 26629: : __shared_ptr<_Tp>(std::move(__r)) { } 26629: # 379 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template&>> 26629: explicit shared_ptr(const weak_ptr<_Yp>& __r) 26629: : __shared_ptr<_Tp>(__r) { } 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: template>> 26629: shared_ptr(auto_ptr<_Yp>&& __r); 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: 26629: template>> 26629: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 26629: : __shared_ptr<_Tp>(std::move(__r)) { } 26629: # 412 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 26629: 26629: shared_ptr& operator=(const shared_ptr&) noexcept = default; 26629: 26629: template 26629: _Assignable&> 26629: operator=(const shared_ptr<_Yp>& __r) noexcept 26629: { 26629: this->__shared_ptr<_Tp>::operator=(__r); 26629: return *this; 26629: } 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: template 26629: _Assignable> 26629: operator=(auto_ptr<_Yp>&& __r) 26629: { 26629: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 26629: return *this; 26629: } 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: shared_ptr& 26629: operator=(shared_ptr&& __r) noexcept 26629: { 26629: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 26629: return *this; 26629: } 26629: 26629: template 26629: _Assignable> 26629: operator=(shared_ptr<_Yp>&& __r) noexcept 26629: { 26629: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 26629: return *this; 26629: } 26629: 26629: template 26629: _Assignable> 26629: operator=(unique_ptr<_Yp, _Del>&& __r) 26629: { 26629: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 26629: return *this; 26629: } 26629: 26629: private: 26629: 26629: template 26629: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 26629: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 26629: { } 26629: 26629: template 26629: friend shared_ptr<_NonArray<_Yp>> 26629: allocate_shared(const _Alloc&, _Args&&...); 26629: 26629: template 26629: friend shared_ptr<_NonArray<_Yp>> 26629: make_shared(_Args&&...); 26629: # 535 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept 26629: : __shared_ptr<_Tp>(__r, std::nothrow) { } 26629: 26629: friend class weak_ptr<_Tp>; 26629: }; 26629: 26629: 26629: template 26629: shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; 26629: template 26629: shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 26629: { return __a.get() == __b.get(); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 26629: { return !__a; } 26629: # 580 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 26629: { return !__a; } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 26629: { return __a.get() != __b.get(); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 26629: { return (bool)__a; } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 26629: { return (bool)__a; } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 26629: { 26629: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 26629: using _Up_elt = typename shared_ptr<_Up>::element_type; 26629: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 26629: return less<_Vp>()(__a.get(), __b.get()); 26629: } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 26629: { 26629: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 26629: return less<_Tp_elt*>()(__a.get(), nullptr); 26629: } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 26629: { 26629: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 26629: return less<_Tp_elt*>()(nullptr, __a.get()); 26629: } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 26629: { return !(__b < __a); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 26629: { return !(nullptr < __a); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 26629: { return !(__a < nullptr); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 26629: { return (__b < __a); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 26629: { return nullptr < __a; } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 26629: { return __a < nullptr; } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 26629: { return !(__a < __b); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 26629: { return !(__a < nullptr); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] inline bool 26629: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 26629: { return !(nullptr < __a); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 26629: { __a.swap(__b); } 26629: 26629: 26629: 26629: 26629: template 26629: inline shared_ptr<_Tp> 26629: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 26629: { 26629: using _Sp = shared_ptr<_Tp>; 26629: return _Sp(__r, static_cast(__r.get())); 26629: } 26629: 26629: 26629: template 26629: inline shared_ptr<_Tp> 26629: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 26629: { 26629: using _Sp = shared_ptr<_Tp>; 26629: return _Sp(__r, const_cast(__r.get())); 26629: } 26629: 26629: 26629: template 26629: inline shared_ptr<_Tp> 26629: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 26629: { 26629: using _Sp = shared_ptr<_Tp>; 26629: if (auto* __p = dynamic_cast(__r.get())) 26629: return _Sp(__r, __p); 26629: return _Sp(); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: inline shared_ptr<_Tp> 26629: reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept 26629: { 26629: using _Sp = shared_ptr<_Tp>; 26629: return _Sp(__r, reinterpret_cast(__r.get())); 26629: } 26629: # 810 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: class weak_ptr : public __weak_ptr<_Tp> 26629: { 26629: template 26629: using _Constructible = typename enable_if< 26629: is_constructible<__weak_ptr<_Tp>, _Arg>::value 26629: >::type; 26629: 26629: template 26629: using _Assignable = typename enable_if< 26629: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 26629: >::type; 26629: 26629: public: 26629: constexpr weak_ptr() noexcept = default; 26629: 26629: template&>> 26629: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 26629: : __weak_ptr<_Tp>(__r) { } 26629: 26629: weak_ptr(const weak_ptr&) noexcept = default; 26629: 26629: template&>> 26629: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 26629: : __weak_ptr<_Tp>(__r) { } 26629: 26629: weak_ptr(weak_ptr&&) noexcept = default; 26629: 26629: template>> 26629: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 26629: : __weak_ptr<_Tp>(std::move(__r)) { } 26629: 26629: weak_ptr& 26629: operator=(const weak_ptr& __r) noexcept = default; 26629: 26629: template 26629: _Assignable&> 26629: operator=(const weak_ptr<_Yp>& __r) noexcept 26629: { 26629: this->__weak_ptr<_Tp>::operator=(__r); 26629: return *this; 26629: } 26629: 26629: template 26629: _Assignable&> 26629: operator=(const shared_ptr<_Yp>& __r) noexcept 26629: { 26629: this->__weak_ptr<_Tp>::operator=(__r); 26629: return *this; 26629: } 26629: 26629: weak_ptr& 26629: operator=(weak_ptr&& __r) noexcept = default; 26629: 26629: template 26629: _Assignable> 26629: operator=(weak_ptr<_Yp>&& __r) noexcept 26629: { 26629: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 26629: return *this; 26629: } 26629: 26629: shared_ptr<_Tp> 26629: lock() const noexcept 26629: { return shared_ptr<_Tp>(*this, std::nothrow); } 26629: }; 26629: 26629: 26629: template 26629: weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 26629: { __a.swap(__b); } 26629: 26629: 26629: 26629: template 26629: struct owner_less; 26629: 26629: 26629: template<> 26629: struct owner_less : _Sp_owner_less 26629: { }; 26629: 26629: 26629: template 26629: struct owner_less> 26629: : public _Sp_owner_less, weak_ptr<_Tp>> 26629: { }; 26629: 26629: 26629: template 26629: struct owner_less> 26629: : public _Sp_owner_less, shared_ptr<_Tp>> 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class enable_shared_from_this 26629: { 26629: protected: 26629: constexpr enable_shared_from_this() noexcept { } 26629: 26629: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 26629: 26629: enable_shared_from_this& 26629: operator=(const enable_shared_from_this&) noexcept 26629: { return *this; } 26629: 26629: ~enable_shared_from_this() { } 26629: 26629: public: 26629: shared_ptr<_Tp> 26629: shared_from_this() 26629: { return shared_ptr<_Tp>(this->_M_weak_this); } 26629: 26629: shared_ptr 26629: shared_from_this() const 26629: { return shared_ptr(this->_M_weak_this); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: weak_ptr<_Tp> 26629: weak_from_this() noexcept 26629: { return this->_M_weak_this; } 26629: 26629: weak_ptr 26629: weak_from_this() const noexcept 26629: { return this->_M_weak_this; } 26629: 26629: 26629: 26629: private: 26629: template 26629: void 26629: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 26629: { _M_weak_this._M_assign(__p, __n); } 26629: 26629: 26629: friend const enable_shared_from_this* 26629: __enable_shared_from_this_base(const __shared_count<>&, 26629: const enable_shared_from_this* __p) 26629: { return __p; } 26629: 26629: template 26629: friend class __shared_ptr; 26629: 26629: mutable weak_ptr<_Tp> _M_weak_this; 26629: }; 26629: # 988 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: inline shared_ptr<_NonArray<_Tp>> 26629: allocate_shared(const _Alloc& __a, _Args&&... __args) 26629: { 26629: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 26629: std::forward<_Args>(__args)...); 26629: } 26629: # 1003 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: inline shared_ptr<_NonArray<_Tp>> 26629: make_shared(_Args&&... __args) 26629: { 26629: using _Alloc = allocator; 26629: _Alloc __a; 26629: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 26629: std::forward<_Args>(__args)...); 26629: } 26629: # 1152 "/usr/include/c++/12/bits/shared_ptr.h" 3 26629: template 26629: struct hash> 26629: : public __hash_base> 26629: { 26629: size_t 26629: operator()(const shared_ptr<_Tp>& __s) const noexcept 26629: { 26629: return std::hash::element_type*>()(__s.get()); 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: namespace __detail::__variant 26629: { 26629: template struct _Never_valueless_alt; 26629: 26629: 26629: 26629: template 26629: struct _Never_valueless_alt> 26629: : std::true_type 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct _Never_valueless_alt> 26629: : std::true_type 26629: { }; 26629: } 26629: 26629: 26629: 26629: } 26629: # 78 "/usr/include/c++/12/memory" 2 3 26629: # 1 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 1 3 26629: # 35 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 47 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 26629: struct _Sp_locker 26629: { 26629: _Sp_locker(const _Sp_locker&) = delete; 26629: _Sp_locker& operator=(const _Sp_locker&) = delete; 26629: 26629: 26629: explicit 26629: _Sp_locker(const void*) noexcept; 26629: _Sp_locker(const void*, const void*) noexcept; 26629: ~_Sp_locker(); 26629: 26629: private: 26629: unsigned char _M_key1; 26629: unsigned char _M_key2; 26629: 26629: 26629: 26629: }; 26629: # 74 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 26629: template 26629: inline bool 26629: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>* __p) 26629: { 26629: 26629: return __gthread_active_p() == 0; 26629: 26629: 26629: 26629: } 26629: 26629: template 26629: inline bool 26629: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 26629: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 26629: # 101 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 26629: template 26629: inline shared_ptr<_Tp> 26629: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 26629: { 26629: _Sp_locker __lock{__p}; 26629: return *__p; 26629: } 26629: 26629: template 26629: inline shared_ptr<_Tp> 26629: atomic_load(const shared_ptr<_Tp>* __p) 26629: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 26629: 26629: template 26629: inline __shared_ptr<_Tp, _Lp> 26629: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 26629: { 26629: _Sp_locker __lock{__p}; 26629: return *__p; 26629: } 26629: 26629: template 26629: inline __shared_ptr<_Tp, _Lp> 26629: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 26629: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 26629: # 137 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 26629: template 26629: inline void 26629: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 26629: memory_order) 26629: { 26629: _Sp_locker __lock{__p}; 26629: __p->swap(__r); 26629: } 26629: 26629: template 26629: inline void 26629: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 26629: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 26629: 26629: template 26629: inline void 26629: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 26629: __shared_ptr<_Tp, _Lp> __r, 26629: memory_order) 26629: { 26629: _Sp_locker __lock{__p}; 26629: __p->swap(__r); 26629: } 26629: 26629: template 26629: inline void 26629: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 26629: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 26629: # 174 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 26629: template 26629: inline shared_ptr<_Tp> 26629: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 26629: memory_order) 26629: { 26629: _Sp_locker __lock{__p}; 26629: __p->swap(__r); 26629: return __r; 26629: } 26629: 26629: template 26629: inline shared_ptr<_Tp> 26629: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 26629: { 26629: return std::atomic_exchange_explicit(__p, std::move(__r), 26629: memory_order_seq_cst); 26629: } 26629: 26629: template 26629: inline __shared_ptr<_Tp, _Lp> 26629: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 26629: __shared_ptr<_Tp, _Lp> __r, 26629: memory_order) 26629: { 26629: _Sp_locker __lock{__p}; 26629: __p->swap(__r); 26629: return __r; 26629: } 26629: 26629: template 26629: inline __shared_ptr<_Tp, _Lp> 26629: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 26629: { 26629: return std::atomic_exchange_explicit(__p, std::move(__r), 26629: memory_order_seq_cst); 26629: } 26629: # 223 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 26629: template 26629: bool 26629: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 26629: shared_ptr<_Tp>* __v, 26629: shared_ptr<_Tp> __w, 26629: memory_order, 26629: memory_order) 26629: { 26629: shared_ptr<_Tp> __x; 26629: _Sp_locker __lock{__p, __v}; 26629: owner_less> __less; 26629: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 26629: { 26629: __x = std::move(*__p); 26629: *__p = std::move(__w); 26629: return true; 26629: } 26629: __x = std::move(*__v); 26629: *__v = *__p; 26629: return false; 26629: } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 26629: shared_ptr<_Tp> __w) 26629: { 26629: return std::atomic_compare_exchange_strong_explicit(__p, __v, 26629: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 26629: } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 26629: shared_ptr<_Tp>* __v, 26629: shared_ptr<_Tp> __w, 26629: memory_order __success, 26629: memory_order __failure) 26629: { 26629: return std::atomic_compare_exchange_strong_explicit(__p, __v, 26629: std::move(__w), __success, __failure); 26629: } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 26629: shared_ptr<_Tp> __w) 26629: { 26629: return std::atomic_compare_exchange_weak_explicit(__p, __v, 26629: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 26629: } 26629: 26629: template 26629: bool 26629: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 26629: __shared_ptr<_Tp, _Lp>* __v, 26629: __shared_ptr<_Tp, _Lp> __w, 26629: memory_order, 26629: memory_order) 26629: { 26629: __shared_ptr<_Tp, _Lp> __x; 26629: _Sp_locker __lock{__p, __v}; 26629: owner_less<__shared_ptr<_Tp, _Lp>> __less; 26629: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 26629: { 26629: __x = std::move(*__p); 26629: *__p = std::move(__w); 26629: return true; 26629: } 26629: __x = std::move(*__v); 26629: *__v = *__p; 26629: return false; 26629: } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 26629: __shared_ptr<_Tp, _Lp>* __v, 26629: __shared_ptr<_Tp, _Lp> __w) 26629: { 26629: return std::atomic_compare_exchange_strong_explicit(__p, __v, 26629: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 26629: } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 26629: __shared_ptr<_Tp, _Lp>* __v, 26629: __shared_ptr<_Tp, _Lp> __w, 26629: memory_order __success, 26629: memory_order __failure) 26629: { 26629: return std::atomic_compare_exchange_strong_explicit(__p, __v, 26629: std::move(__w), __success, __failure); 26629: } 26629: 26629: template 26629: inline bool 26629: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 26629: __shared_ptr<_Tp, _Lp>* __v, 26629: __shared_ptr<_Tp, _Lp> __w) 26629: { 26629: return std::atomic_compare_exchange_weak_explicit(__p, __v, 26629: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 26629: } 26629: # 796 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 26629: 26629: } 26629: # 79 "/usr/include/c++/12/memory" 2 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/backward/auto_ptr.h" 1 3 26629: # 36 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 47 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: template 26629: struct auto_ptr_ref 26629: { 26629: _Tp1* _M_ptr; 26629: 26629: explicit 26629: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 26629: } __attribute__ ((__deprecated__)); 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: # 88 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: template 26629: class auto_ptr 26629: { 26629: private: 26629: _Tp* _M_ptr; 26629: 26629: public: 26629: 26629: typedef _Tp element_type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 26629: # 114 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 26629: # 126 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: template 26629: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 26629: # 137 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: auto_ptr& 26629: operator=(auto_ptr& __a) throw() 26629: { 26629: reset(__a.release()); 26629: return *this; 26629: } 26629: # 154 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: template 26629: auto_ptr& 26629: operator=(auto_ptr<_Tp1>& __a) throw() 26629: { 26629: reset(__a.release()); 26629: return *this; 26629: } 26629: # 172 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: ~auto_ptr() { delete _M_ptr; } 26629: # 182 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: element_type& 26629: operator*() const throw() 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) __builtin_unreachable(); } while (false); 26629: return *_M_ptr; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: element_type* 26629: operator->() const throw() 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) __builtin_unreachable(); } while (false); 26629: return _M_ptr; 26629: } 26629: # 212 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: element_type* 26629: get() const throw() { return _M_ptr; } 26629: # 226 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: element_type* 26629: release() throw() 26629: { 26629: element_type* __tmp = _M_ptr; 26629: _M_ptr = 0; 26629: return __tmp; 26629: } 26629: # 241 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: void 26629: reset(element_type* __p = 0) throw() 26629: { 26629: if (__p != _M_ptr) 26629: { 26629: delete _M_ptr; 26629: _M_ptr = __p; 26629: } 26629: } 26629: # 266 "/usr/include/c++/12/backward/auto_ptr.h" 3 26629: auto_ptr(auto_ptr_ref __ref) throw() 26629: : _M_ptr(__ref._M_ptr) { } 26629: 26629: auto_ptr& 26629: operator=(auto_ptr_ref __ref) throw() 26629: { 26629: if (__ref._M_ptr != this->get()) 26629: { 26629: delete _M_ptr; 26629: _M_ptr = __ref._M_ptr; 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: operator auto_ptr_ref<_Tp1>() throw() 26629: { return auto_ptr_ref<_Tp1>(this->release()); } 26629: 26629: template 26629: operator auto_ptr<_Tp1>() throw() 26629: { return auto_ptr<_Tp1>(this->release()); } 26629: } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); 26629: 26629: 26629: 26629: template<> 26629: class auto_ptr 26629: { 26629: public: 26629: typedef void element_type; 26629: } __attribute__ ((__deprecated__)); 26629: 26629: 26629: template<_Lock_policy _Lp> 26629: template 26629: inline 26629: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 26629: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 26629: { __r.release(); } 26629: 26629: template 26629: template 26629: inline 26629: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 26629: : _M_ptr(__r.get()), _M_refcount() 26629: { 26629: 26629: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 26629: _Tp1* __tmp = __r.get(); 26629: _M_refcount = __shared_count<_Lp>(std::move(__r)); 26629: _M_enable_shared_from_this_with(__tmp); 26629: } 26629: 26629: template 26629: template 26629: inline 26629: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 26629: : __shared_ptr<_Tp>(std::move(__r)) { } 26629: 26629: template 26629: template 26629: inline 26629: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 26629: : _M_t(__u.release(), deleter_type()) { } 26629: 26629: 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: } 26629: # 83 "/usr/include/c++/12/memory" 2 3 26629: # 91 "/usr/include/c++/12/memory" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 109 "/usr/include/c++/12/memory" 3 26629: enum class pointer_safety { relaxed, preferred, strict }; 26629: 26629: 26629: inline void 26629: declare_reachable(void*) { } 26629: 26629: 26629: template 26629: inline _Tp* 26629: undeclare_reachable(_Tp* __p) { return __p; } 26629: 26629: 26629: inline void 26629: declare_no_pointers(char*, size_t) { } 26629: 26629: 26629: inline void 26629: undeclare_no_pointers(char*, size_t) { } 26629: 26629: 26629: inline pointer_safety 26629: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 26629: 26629: 26629: 26629: } 26629: # 144 "/usr/include/c++/12/memory" 3 26629: # 1 "/usr/include/c++/12/pstl/glue_memory_defs.h" 1 3 26629: # 13 "/usr/include/c++/12/pstl/glue_memory_defs.h" 3 26629: # 1 "/usr/include/c++/12/pstl/execution_defs.h" 1 3 26629: # 15 "/usr/include/c++/12/pstl/execution_defs.h" 3 26629: namespace __pstl 26629: { 26629: namespace execution 26629: { 26629: inline namespace v1 26629: { 26629: 26629: 26629: class sequenced_policy 26629: { 26629: public: 26629: 26629: static constexpr std::false_type 26629: __allow_unsequenced() 26629: { 26629: return std::false_type{}; 26629: } 26629: static constexpr std::false_type 26629: __allow_vector() 26629: { 26629: return std::false_type{}; 26629: } 26629: static constexpr std::false_type 26629: __allow_parallel() 26629: { 26629: return std::false_type{}; 26629: } 26629: }; 26629: 26629: 26629: class parallel_policy 26629: { 26629: public: 26629: 26629: static constexpr std::false_type 26629: __allow_unsequenced() 26629: { 26629: return std::false_type{}; 26629: } 26629: static constexpr std::false_type 26629: __allow_vector() 26629: { 26629: return std::false_type{}; 26629: } 26629: static constexpr std::true_type 26629: __allow_parallel() 26629: { 26629: return std::true_type{}; 26629: } 26629: }; 26629: 26629: 26629: class parallel_unsequenced_policy 26629: { 26629: public: 26629: 26629: static constexpr std::true_type 26629: __allow_unsequenced() 26629: { 26629: return std::true_type{}; 26629: } 26629: static constexpr std::true_type 26629: __allow_vector() 26629: { 26629: return std::true_type{}; 26629: } 26629: static constexpr std::true_type 26629: __allow_parallel() 26629: { 26629: return std::true_type{}; 26629: } 26629: }; 26629: 26629: class unsequenced_policy 26629: { 26629: public: 26629: 26629: static constexpr std::true_type 26629: __allow_unsequenced() 26629: { 26629: return std::true_type{}; 26629: } 26629: static constexpr std::true_type 26629: __allow_vector() 26629: { 26629: return std::true_type{}; 26629: } 26629: static constexpr std::false_type 26629: __allow_parallel() 26629: { 26629: return std::false_type{}; 26629: } 26629: }; 26629: 26629: 26629: constexpr sequenced_policy seq{}; 26629: constexpr parallel_policy par{}; 26629: constexpr parallel_unsequenced_policy par_unseq{}; 26629: constexpr unsequenced_policy unseq{}; 26629: 26629: 26629: template 26629: struct is_execution_policy : std::false_type 26629: { 26629: }; 26629: 26629: template <> 26629: struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 26629: { 26629: }; 26629: template <> 26629: struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 26629: { 26629: }; 26629: template <> 26629: struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 26629: { 26629: }; 26629: template <> 26629: struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type 26629: { 26629: }; 26629: 26629: 26629: template 26629: constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; 26629: 26629: 26629: } 26629: } 26629: 26629: namespace __internal 26629: { 26629: template 26629: 26629: using __enable_if_execution_policy = 26629: typename std::enable_if<__pstl::execution::is_execution_policy>::value, 26629: _Tp>::type; 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: } 26629: # 14 "/usr/include/c++/12/pstl/glue_memory_defs.h" 2 3 26629: 26629: namespace std 26629: { 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 26629: 26629: } 26629: # 145 "/usr/include/c++/12/memory" 2 3 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: # 1 "/usr/include/c++/12/string" 1 3 26629: # 36 "/usr/include/c++/12/string" 3 26629: 26629: # 37 "/usr/include/c++/12/string" 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/char_traits.h" 1 3 26629: # 37 "/usr/include/c++/12/bits/char_traits.h" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/char_traits.h" 3 26629: 26629: 26629: # 1 "/usr/include/c++/12/cwchar" 1 3 26629: # 39 "/usr/include/c++/12/cwchar" 3 26629: 26629: # 40 "/usr/include/c++/12/cwchar" 3 26629: # 41 "/usr/include/c++/12/bits/char_traits.h" 2 3 26629: # 53 "/usr/include/c++/12/bits/char_traits.h" 3 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wstringop-overflow" 26629: #pragma GCC diagnostic ignored "-Wstringop-overread" 26629: #pragma GCC diagnostic ignored "-Warray-bounds" 26629: # 72 "/usr/include/c++/12/bits/char_traits.h" 3 26629: template 26629: struct _Char_types 26629: { 26629: typedef unsigned long int_type; 26629: typedef std::streampos pos_type; 26629: typedef std::streamoff off_type; 26629: typedef std::mbstate_t state_type; 26629: }; 26629: # 97 "/usr/include/c++/12/bits/char_traits.h" 3 26629: template 26629: struct char_traits 26629: { 26629: typedef _CharT char_type; 26629: typedef typename _Char_types<_CharT>::int_type int_type; 26629: typedef typename _Char_types<_CharT>::pos_type pos_type; 26629: typedef typename _Char_types<_CharT>::off_type off_type; 26629: typedef typename _Char_types<_CharT>::state_type state_type; 26629: 26629: 26629: 26629: 26629: static constexpr void 26629: assign(char_type& __c1, const char_type& __c2) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: __c1 = __c2; 26629: } 26629: 26629: static constexpr bool 26629: eq(const char_type& __c1, const char_type& __c2) 26629: { return __c1 == __c2; } 26629: 26629: static constexpr bool 26629: lt(const char_type& __c1, const char_type& __c2) 26629: { return __c1 < __c2; } 26629: 26629: static constexpr int 26629: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 26629: 26629: static constexpr std::size_t 26629: length(const char_type* __s); 26629: 26629: static constexpr const char_type* 26629: find(const char_type* __s, std::size_t __n, const char_type& __a); 26629: 26629: static char_type* 26629: move(char_type* __s1, const char_type* __s2, std::size_t __n); 26629: 26629: static char_type* 26629: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 26629: 26629: static char_type* 26629: assign(char_type* __s, std::size_t __n, char_type __a); 26629: 26629: static constexpr char_type 26629: to_char_type(const int_type& __c) 26629: { return static_cast(__c); } 26629: 26629: static constexpr int_type 26629: to_int_type(const char_type& __c) 26629: { return static_cast(__c); } 26629: 26629: static constexpr bool 26629: eq_int_type(const int_type& __c1, const int_type& __c2) 26629: { return __c1 == __c2; } 26629: 26629: static constexpr int_type 26629: eof() 26629: { return static_cast(-1); } 26629: 26629: static constexpr int_type 26629: not_eof(const int_type& __c) 26629: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 26629: }; 26629: 26629: template 26629: constexpr int 26629: char_traits<_CharT>:: 26629: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 26629: { 26629: for (std::size_t __i = 0; __i < __n; ++__i) 26629: if (lt(__s1[__i], __s2[__i])) 26629: return -1; 26629: else if (lt(__s2[__i], __s1[__i])) 26629: return 1; 26629: return 0; 26629: } 26629: 26629: template 26629: constexpr std::size_t 26629: char_traits<_CharT>:: 26629: length(const char_type* __p) 26629: { 26629: std::size_t __i = 0; 26629: while (!eq(__p[__i], char_type())) 26629: ++__i; 26629: return __i; 26629: } 26629: 26629: template 26629: constexpr const typename char_traits<_CharT>::char_type* 26629: char_traits<_CharT>:: 26629: find(const char_type* __s, std::size_t __n, const char_type& __a) 26629: { 26629: for (std::size_t __i = 0; __i < __n; ++__i) 26629: if (eq(__s[__i], __a)) 26629: return __s + __i; 26629: return 0; 26629: } 26629: 26629: template 26629: 26629: typename char_traits<_CharT>::char_type* 26629: char_traits<_CharT>:: 26629: move(char_type* __s1, const char_type* __s2, std::size_t __n) 26629: { 26629: if (__n == 0) 26629: return __s1; 26629: # 248 "/usr/include/c++/12/bits/char_traits.h" 3 26629: __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); 26629: return __s1; 26629: } 26629: 26629: template 26629: 26629: typename char_traits<_CharT>::char_type* 26629: char_traits<_CharT>:: 26629: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 26629: { 26629: # 267 "/usr/include/c++/12/bits/char_traits.h" 3 26629: __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); 26629: return __s1; 26629: } 26629: 26629: template 26629: 26629: typename char_traits<_CharT>::char_type* 26629: char_traits<_CharT>:: 26629: assign(char_type* __s, std::size_t __n, char_type __a) 26629: { 26629: # 286 "/usr/include/c++/12/bits/char_traits.h" 3 26629: if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) 26629: { 26629: unsigned char __c; 26629: __builtin_memcpy(&__c, __builtin_addressof(__a), 1); 26629: __builtin_memset(__s, __c, __n); 26629: } 26629: else 26629: { 26629: for (std::size_t __i = 0; __i < __n; ++__i) 26629: __s[__i] = __a; 26629: } 26629: return __s; 26629: } 26629: 26629: 26629: } 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 328 "/usr/include/c++/12/bits/char_traits.h" 3 26629: template 26629: struct char_traits : public __gnu_cxx::char_traits<_CharT> 26629: { }; 26629: 26629: 26629: 26629: template<> 26629: struct char_traits 26629: { 26629: typedef char char_type; 26629: typedef int int_type; 26629: typedef streampos pos_type; 26629: typedef streamoff off_type; 26629: typedef mbstate_t state_type; 26629: 26629: 26629: 26629: 26629: static constexpr void 26629: assign(char_type& __c1, const char_type& __c2) noexcept 26629: { 26629: 26629: 26629: 26629: 26629: 26629: __c1 = __c2; 26629: } 26629: 26629: static constexpr bool 26629: eq(const char_type& __c1, const char_type& __c2) noexcept 26629: { return __c1 == __c2; } 26629: 26629: static constexpr bool 26629: lt(const char_type& __c1, const char_type& __c2) noexcept 26629: { 26629: 26629: return (static_cast(__c1) 26629: < static_cast(__c2)); 26629: } 26629: 26629: static constexpr int 26629: compare(const char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: if (__n == 0) 26629: return 0; 26629: 26629: if (std::__is_constant_evaluated()) 26629: { 26629: for (size_t __i = 0; __i < __n; ++__i) 26629: if (lt(__s1[__i], __s2[__i])) 26629: return -1; 26629: else if (lt(__s2[__i], __s1[__i])) 26629: return 1; 26629: return 0; 26629: } 26629: 26629: return __builtin_memcmp(__s1, __s2, __n); 26629: } 26629: 26629: static constexpr size_t 26629: length(const char_type* __s) 26629: { 26629: 26629: if (std::__is_constant_evaluated()) 26629: return __gnu_cxx::char_traits::length(__s); 26629: 26629: return __builtin_strlen(__s); 26629: } 26629: 26629: static constexpr const char_type* 26629: find(const char_type* __s, size_t __n, const char_type& __a) 26629: { 26629: if (__n == 0) 26629: return 0; 26629: 26629: if (std::__is_constant_evaluated()) 26629: return __gnu_cxx::char_traits::find(__s, __n, __a); 26629: 26629: return static_cast(__builtin_memchr(__s, __a, __n)); 26629: } 26629: 26629: static char_type* 26629: move(char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: if (__n == 0) 26629: return __s1; 26629: 26629: 26629: 26629: 26629: return static_cast(__builtin_memmove(__s1, __s2, __n)); 26629: } 26629: 26629: static char_type* 26629: copy(char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: if (__n == 0) 26629: return __s1; 26629: 26629: 26629: 26629: 26629: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 26629: } 26629: 26629: static char_type* 26629: assign(char_type* __s, size_t __n, char_type __a) 26629: { 26629: if (__n == 0) 26629: return __s; 26629: 26629: 26629: 26629: 26629: return static_cast(__builtin_memset(__s, __a, __n)); 26629: } 26629: 26629: static constexpr char_type 26629: to_char_type(const int_type& __c) noexcept 26629: { return static_cast(__c); } 26629: 26629: 26629: 26629: static constexpr int_type 26629: to_int_type(const char_type& __c) noexcept 26629: { return static_cast(static_cast(__c)); } 26629: 26629: static constexpr bool 26629: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 26629: { return __c1 == __c2; } 26629: 26629: static constexpr int_type 26629: eof() noexcept 26629: { return static_cast(-1); } 26629: 26629: static constexpr int_type 26629: not_eof(const int_type& __c) noexcept 26629: { return (__c == eof()) ? 0 : __c; } 26629: }; 26629: 26629: 26629: 26629: 26629: template<> 26629: struct char_traits 26629: { 26629: typedef wchar_t char_type; 26629: typedef wint_t int_type; 26629: typedef streamoff off_type; 26629: typedef wstreampos pos_type; 26629: typedef mbstate_t state_type; 26629: 26629: 26629: 26629: 26629: static constexpr void 26629: assign(char_type& __c1, const char_type& __c2) noexcept 26629: { 26629: 26629: 26629: 26629: 26629: 26629: __c1 = __c2; 26629: } 26629: 26629: static constexpr bool 26629: eq(const char_type& __c1, const char_type& __c2) noexcept 26629: { return __c1 == __c2; } 26629: 26629: static constexpr bool 26629: lt(const char_type& __c1, const char_type& __c2) noexcept 26629: { return __c1 < __c2; } 26629: 26629: static constexpr int 26629: compare(const char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: if (__n == 0) 26629: return 0; 26629: 26629: if (std::__is_constant_evaluated()) 26629: return __gnu_cxx::char_traits::compare(__s1, __s2, __n); 26629: 26629: return wmemcmp(__s1, __s2, __n); 26629: } 26629: 26629: static constexpr size_t 26629: length(const char_type* __s) 26629: { 26629: 26629: if (std::__is_constant_evaluated()) 26629: return __gnu_cxx::char_traits::length(__s); 26629: 26629: return wcslen(__s); 26629: } 26629: 26629: static constexpr const char_type* 26629: find(const char_type* __s, size_t __n, const char_type& __a) 26629: { 26629: if (__n == 0) 26629: return 0; 26629: 26629: if (std::__is_constant_evaluated()) 26629: return __gnu_cxx::char_traits::find(__s, __n, __a); 26629: 26629: return wmemchr(__s, __a, __n); 26629: } 26629: 26629: static char_type* 26629: move(char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: if (__n == 0) 26629: return __s1; 26629: 26629: 26629: 26629: 26629: return wmemmove(__s1, __s2, __n); 26629: } 26629: 26629: static char_type* 26629: copy(char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: if (__n == 0) 26629: return __s1; 26629: 26629: 26629: 26629: 26629: return wmemcpy(__s1, __s2, __n); 26629: } 26629: 26629: static char_type* 26629: assign(char_type* __s, size_t __n, char_type __a) 26629: { 26629: if (__n == 0) 26629: return __s; 26629: 26629: 26629: 26629: 26629: return wmemset(__s, __a, __n); 26629: } 26629: 26629: static constexpr char_type 26629: to_char_type(const int_type& __c) noexcept 26629: { return char_type(__c); } 26629: 26629: static constexpr int_type 26629: to_int_type(const char_type& __c) noexcept 26629: { return int_type(__c); } 26629: 26629: static constexpr bool 26629: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 26629: { return __c1 == __c2; } 26629: 26629: static constexpr int_type 26629: eof() noexcept 26629: { return static_cast((0xffffffffu)); } 26629: 26629: static constexpr int_type 26629: not_eof(const int_type& __c) noexcept 26629: { return eq_int_type(__c, eof()) ? 0 : __c; } 26629: }; 26629: # 726 "/usr/include/c++/12/bits/char_traits.h" 3 26629: 26629: } 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cstdint" 1 3 26629: # 32 "/usr/include/c++/12/cstdint" 3 26629: 26629: # 33 "/usr/include/c++/12/cstdint" 3 26629: # 44 "/usr/include/c++/12/cstdint" 3 26629: namespace std 26629: { 26629: 26629: using ::int8_t; 26629: using ::int16_t; 26629: using ::int32_t; 26629: using ::int64_t; 26629: 26629: using ::int_fast8_t; 26629: using ::int_fast16_t; 26629: using ::int_fast32_t; 26629: using ::int_fast64_t; 26629: 26629: using ::int_least8_t; 26629: using ::int_least16_t; 26629: using ::int_least32_t; 26629: using ::int_least64_t; 26629: 26629: using ::intmax_t; 26629: using ::intptr_t; 26629: 26629: using ::uint8_t; 26629: using ::uint16_t; 26629: using ::uint32_t; 26629: using ::uint64_t; 26629: 26629: using ::uint_fast8_t; 26629: using ::uint_fast16_t; 26629: using ::uint_fast32_t; 26629: using ::uint_fast64_t; 26629: 26629: using ::uint_least8_t; 26629: using ::uint_least16_t; 26629: using ::uint_least32_t; 26629: using ::uint_least64_t; 26629: 26629: using ::uintmax_t; 26629: using ::uintptr_t; 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 732 "/usr/include/c++/12/bits/char_traits.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template<> 26629: struct char_traits 26629: { 26629: typedef char16_t char_type; 26629: 26629: typedef uint_least16_t int_type; 26629: 26629: 26629: 26629: 26629: 26629: typedef streamoff off_type; 26629: typedef u16streampos pos_type; 26629: typedef mbstate_t state_type; 26629: 26629: 26629: 26629: 26629: static constexpr void 26629: assign(char_type& __c1, const char_type& __c2) noexcept 26629: { 26629: 26629: 26629: 26629: 26629: 26629: __c1 = __c2; 26629: } 26629: 26629: static constexpr bool 26629: eq(const char_type& __c1, const char_type& __c2) noexcept 26629: { return __c1 == __c2; } 26629: 26629: static constexpr bool 26629: lt(const char_type& __c1, const char_type& __c2) noexcept 26629: { return __c1 < __c2; } 26629: 26629: static constexpr int 26629: compare(const char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: for (size_t __i = 0; __i < __n; ++__i) 26629: if (lt(__s1[__i], __s2[__i])) 26629: return -1; 26629: else if (lt(__s2[__i], __s1[__i])) 26629: return 1; 26629: return 0; 26629: } 26629: 26629: static constexpr size_t 26629: length(const char_type* __s) 26629: { 26629: size_t __i = 0; 26629: while (!eq(__s[__i], char_type())) 26629: ++__i; 26629: return __i; 26629: } 26629: 26629: static constexpr const char_type* 26629: find(const char_type* __s, size_t __n, const char_type& __a) 26629: { 26629: for (size_t __i = 0; __i < __n; ++__i) 26629: if (eq(__s[__i], __a)) 26629: return __s + __i; 26629: return 0; 26629: } 26629: 26629: static char_type* 26629: move(char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: if (__n == 0) 26629: return __s1; 26629: 26629: 26629: 26629: 26629: return (static_cast 26629: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 26629: } 26629: 26629: static char_type* 26629: copy(char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: if (__n == 0) 26629: return __s1; 26629: 26629: 26629: 26629: 26629: return (static_cast 26629: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 26629: } 26629: 26629: static char_type* 26629: assign(char_type* __s, size_t __n, char_type __a) 26629: { 26629: for (size_t __i = 0; __i < __n; ++__i) 26629: assign(__s[__i], __a); 26629: return __s; 26629: } 26629: 26629: static constexpr char_type 26629: to_char_type(const int_type& __c) noexcept 26629: { return char_type(__c); } 26629: 26629: static constexpr int_type 26629: to_int_type(const char_type& __c) noexcept 26629: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 26629: 26629: static constexpr bool 26629: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 26629: { return __c1 == __c2; } 26629: 26629: static constexpr int_type 26629: eof() noexcept 26629: { return static_cast(-1); } 26629: 26629: static constexpr int_type 26629: not_eof(const int_type& __c) noexcept 26629: { return eq_int_type(__c, eof()) ? 0 : __c; } 26629: }; 26629: 26629: template<> 26629: struct char_traits 26629: { 26629: typedef char32_t char_type; 26629: 26629: typedef uint_least32_t int_type; 26629: 26629: 26629: 26629: 26629: 26629: typedef streamoff off_type; 26629: typedef u32streampos pos_type; 26629: typedef mbstate_t state_type; 26629: 26629: 26629: 26629: 26629: static constexpr void 26629: assign(char_type& __c1, const char_type& __c2) noexcept 26629: { 26629: 26629: 26629: 26629: 26629: 26629: __c1 = __c2; 26629: } 26629: 26629: static constexpr bool 26629: eq(const char_type& __c1, const char_type& __c2) noexcept 26629: { return __c1 == __c2; } 26629: 26629: static constexpr bool 26629: lt(const char_type& __c1, const char_type& __c2) noexcept 26629: { return __c1 < __c2; } 26629: 26629: static constexpr int 26629: compare(const char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: for (size_t __i = 0; __i < __n; ++__i) 26629: if (lt(__s1[__i], __s2[__i])) 26629: return -1; 26629: else if (lt(__s2[__i], __s1[__i])) 26629: return 1; 26629: return 0; 26629: } 26629: 26629: static constexpr size_t 26629: length(const char_type* __s) 26629: { 26629: size_t __i = 0; 26629: while (!eq(__s[__i], char_type())) 26629: ++__i; 26629: return __i; 26629: } 26629: 26629: static constexpr const char_type* 26629: find(const char_type* __s, size_t __n, const char_type& __a) 26629: { 26629: for (size_t __i = 0; __i < __n; ++__i) 26629: if (eq(__s[__i], __a)) 26629: return __s + __i; 26629: return 0; 26629: } 26629: 26629: static char_type* 26629: move(char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: if (__n == 0) 26629: return __s1; 26629: 26629: 26629: 26629: 26629: return (static_cast 26629: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 26629: } 26629: 26629: static char_type* 26629: copy(char_type* __s1, const char_type* __s2, size_t __n) 26629: { 26629: if (__n == 0) 26629: return __s1; 26629: 26629: 26629: 26629: 26629: return (static_cast 26629: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 26629: } 26629: 26629: static char_type* 26629: assign(char_type* __s, size_t __n, char_type __a) 26629: { 26629: for (size_t __i = 0; __i < __n; ++__i) 26629: assign(__s[__i], __a); 26629: return __s; 26629: } 26629: 26629: static constexpr char_type 26629: to_char_type(const int_type& __c) noexcept 26629: { return char_type(__c); } 26629: 26629: static constexpr int_type 26629: to_int_type(const char_type& __c) noexcept 26629: { return int_type(__c); } 26629: 26629: static constexpr bool 26629: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 26629: { return __c1 == __c2; } 26629: 26629: static constexpr int_type 26629: eof() noexcept 26629: { return static_cast(-1); } 26629: 26629: static constexpr int_type 26629: not_eof(const int_type& __c) noexcept 26629: { return eq_int_type(__c, eof()) ? 0 : __c; } 26629: }; 26629: # 998 "/usr/include/c++/12/bits/char_traits.h" 3 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: } 26629: # 41 "/usr/include/c++/12/string" 2 3 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/localefwd.h" 1 3 26629: # 37 "/usr/include/c++/12/bits/localefwd.h" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/localefwd.h" 3 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 1 3 26629: # 39 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 3 26629: 26629: # 40 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 3 26629: 26629: # 1 "/usr/include/c++/12/clocale" 1 3 26629: # 39 "/usr/include/c++/12/clocale" 3 26629: 26629: # 40 "/usr/include/c++/12/clocale" 3 26629: 26629: 26629: # 1 "/usr/include/locale.h" 1 3 4 26629: # 28 "/usr/include/locale.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 29 "/usr/include/locale.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/locale.h" 1 3 4 26629: # 30 "/usr/include/locale.h" 2 3 4 26629: 26629: extern "C" { 26629: # 51 "/usr/include/locale.h" 3 4 26629: struct lconv 26629: { 26629: 26629: 26629: char *decimal_point; 26629: char *thousands_sep; 26629: 26629: 26629: 26629: 26629: 26629: char *grouping; 26629: 26629: 26629: 26629: 26629: 26629: char *int_curr_symbol; 26629: char *currency_symbol; 26629: char *mon_decimal_point; 26629: char *mon_thousands_sep; 26629: char *mon_grouping; 26629: char *positive_sign; 26629: char *negative_sign; 26629: char int_frac_digits; 26629: char frac_digits; 26629: 26629: char p_cs_precedes; 26629: 26629: char p_sep_by_space; 26629: 26629: char n_cs_precedes; 26629: 26629: char n_sep_by_space; 26629: 26629: 26629: 26629: 26629: 26629: 26629: char p_sign_posn; 26629: char n_sign_posn; 26629: 26629: 26629: char int_p_cs_precedes; 26629: 26629: char int_p_sep_by_space; 26629: 26629: char int_n_cs_precedes; 26629: 26629: char int_n_sep_by_space; 26629: 26629: 26629: 26629: 26629: 26629: 26629: char int_p_sign_posn; 26629: char int_n_sign_posn; 26629: # 118 "/usr/include/locale.h" 3 4 26629: }; 26629: 26629: 26629: 26629: extern char *setlocale (int __category, const char *__locale) noexcept (true); 26629: 26629: 26629: extern struct lconv *localeconv (void) noexcept (true); 26629: # 141 "/usr/include/locale.h" 3 4 26629: extern locale_t newlocale (int __category_mask, const char *__locale, 26629: locale_t __base) noexcept (true); 26629: # 176 "/usr/include/locale.h" 3 4 26629: extern locale_t duplocale (locale_t __dataset) noexcept (true); 26629: 26629: 26629: 26629: extern void freelocale (locale_t __dataset) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern locale_t uselocale (locale_t __dataset) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 43 "/usr/include/c++/12/clocale" 2 3 26629: # 51 "/usr/include/c++/12/clocale" 3 26629: namespace std 26629: { 26629: using ::lconv; 26629: using ::setlocale; 26629: using ::localeconv; 26629: } 26629: # 42 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: extern "C" __typeof(uselocale) __uselocale; 26629: 26629: 26629: } 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: typedef __locale_t __c_locale; 26629: # 73 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 3 26629: inline int 26629: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 26629: char* __out, 26629: const int __size __attribute__ ((__unused__)), 26629: const char* __fmt, ...) 26629: { 26629: 26629: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 26629: # 93 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 3 26629: __builtin_va_list __args; 26629: __builtin_va_start(__args, __fmt); 26629: 26629: 26629: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 26629: 26629: 26629: 26629: 26629: __builtin_va_end(__args); 26629: 26629: 26629: __gnu_cxx::__uselocale(__old); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: return __ret; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 41 "/usr/include/c++/12/bits/localefwd.h" 2 3 26629: 26629: # 1 "/usr/include/c++/12/cctype" 1 3 26629: # 39 "/usr/include/c++/12/cctype" 3 26629: 26629: # 40 "/usr/include/c++/12/cctype" 3 26629: 26629: 26629: # 1 "/usr/include/ctype.h" 1 3 4 26629: # 28 "/usr/include/ctype.h" 3 4 26629: extern "C" { 26629: # 46 "/usr/include/ctype.h" 3 4 26629: enum 26629: { 26629: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 26629: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 26629: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 26629: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 26629: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 26629: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 26629: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 26629: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 26629: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 26629: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 26629: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 26629: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 26629: }; 26629: # 79 "/usr/include/ctype.h" 3 4 26629: extern const unsigned short int **__ctype_b_loc (void) 26629: noexcept (true) __attribute__ ((__const__)); 26629: extern const __int32_t **__ctype_tolower_loc (void) 26629: noexcept (true) __attribute__ ((__const__)); 26629: extern const __int32_t **__ctype_toupper_loc (void) 26629: noexcept (true) __attribute__ ((__const__)); 26629: # 108 "/usr/include/ctype.h" 3 4 26629: extern int isalnum (int) noexcept (true); 26629: extern int isalpha (int) noexcept (true); 26629: extern int iscntrl (int) noexcept (true); 26629: extern int isdigit (int) noexcept (true); 26629: extern int islower (int) noexcept (true); 26629: extern int isgraph (int) noexcept (true); 26629: extern int isprint (int) noexcept (true); 26629: extern int ispunct (int) noexcept (true); 26629: extern int isspace (int) noexcept (true); 26629: extern int isupper (int) noexcept (true); 26629: extern int isxdigit (int) noexcept (true); 26629: 26629: 26629: 26629: extern int tolower (int __c) noexcept (true); 26629: 26629: 26629: extern int toupper (int __c) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int isblank (int) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int isctype (int __c, int __mask) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int isascii (int __c) noexcept (true); 26629: 26629: 26629: 26629: extern int toascii (int __c) noexcept (true); 26629: 26629: 26629: 26629: extern int _toupper (int) noexcept (true); 26629: extern int _tolower (int) noexcept (true); 26629: # 251 "/usr/include/ctype.h" 3 4 26629: extern int isalnum_l (int, locale_t) noexcept (true); 26629: extern int isalpha_l (int, locale_t) noexcept (true); 26629: extern int iscntrl_l (int, locale_t) noexcept (true); 26629: extern int isdigit_l (int, locale_t) noexcept (true); 26629: extern int islower_l (int, locale_t) noexcept (true); 26629: extern int isgraph_l (int, locale_t) noexcept (true); 26629: extern int isprint_l (int, locale_t) noexcept (true); 26629: extern int ispunct_l (int, locale_t) noexcept (true); 26629: extern int isspace_l (int, locale_t) noexcept (true); 26629: extern int isupper_l (int, locale_t) noexcept (true); 26629: extern int isxdigit_l (int, locale_t) noexcept (true); 26629: 26629: extern int isblank_l (int, locale_t) noexcept (true); 26629: 26629: 26629: 26629: extern int __tolower_l (int __c, locale_t __l) noexcept (true); 26629: extern int tolower_l (int __c, locale_t __l) noexcept (true); 26629: 26629: 26629: extern int __toupper_l (int __c, locale_t __l) noexcept (true); 26629: extern int toupper_l (int __c, locale_t __l) noexcept (true); 26629: # 327 "/usr/include/ctype.h" 3 4 26629: } 26629: # 43 "/usr/include/c++/12/cctype" 2 3 26629: # 62 "/usr/include/c++/12/cctype" 3 26629: namespace std 26629: { 26629: using ::isalnum; 26629: using ::isalpha; 26629: using ::iscntrl; 26629: using ::isdigit; 26629: using ::isgraph; 26629: using ::islower; 26629: using ::isprint; 26629: using ::ispunct; 26629: using ::isspace; 26629: using ::isupper; 26629: using ::isxdigit; 26629: using ::tolower; 26629: using ::toupper; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std 26629: { 26629: using ::isblank; 26629: } 26629: # 43 "/usr/include/c++/12/bits/localefwd.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 55 "/usr/include/c++/12/bits/localefwd.h" 3 26629: class locale; 26629: 26629: template 26629: bool 26629: has_facet(const locale&) throw(); 26629: 26629: template 26629: const _Facet& 26629: use_facet(const locale&); 26629: 26629: 26629: template 26629: bool 26629: isspace(_CharT, const locale&); 26629: 26629: template 26629: bool 26629: isprint(_CharT, const locale&); 26629: 26629: template 26629: bool 26629: iscntrl(_CharT, const locale&); 26629: 26629: template 26629: bool 26629: isupper(_CharT, const locale&); 26629: 26629: template 26629: bool 26629: islower(_CharT, const locale&); 26629: 26629: template 26629: bool 26629: isalpha(_CharT, const locale&); 26629: 26629: template 26629: bool 26629: isdigit(_CharT, const locale&); 26629: 26629: template 26629: bool 26629: ispunct(_CharT, const locale&); 26629: 26629: template 26629: bool 26629: isxdigit(_CharT, const locale&); 26629: 26629: template 26629: bool 26629: isalnum(_CharT, const locale&); 26629: 26629: template 26629: bool 26629: isgraph(_CharT, const locale&); 26629: 26629: 26629: template 26629: bool 26629: isblank(_CharT, const locale&); 26629: 26629: 26629: template 26629: _CharT 26629: toupper(_CharT, const locale&); 26629: 26629: template 26629: _CharT 26629: tolower(_CharT, const locale&); 26629: 26629: 26629: struct ctype_base; 26629: template 26629: class ctype; 26629: template<> class ctype; 26629: 26629: template<> class ctype; 26629: 26629: template 26629: class ctype_byname; 26629: 26629: 26629: class codecvt_base; 26629: template 26629: class codecvt; 26629: template<> class codecvt; 26629: 26629: template<> class codecvt; 26629: 26629: 26629: template<> class codecvt; 26629: template<> class codecvt; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class codecvt_byname; 26629: 26629: 26629: 26629: template > 26629: class num_get; 26629: template > 26629: class num_put; 26629: 26629: namespace __cxx11 { 26629: template class numpunct; 26629: template class numpunct_byname; 26629: } 26629: 26629: namespace __cxx11 { 26629: 26629: template 26629: class collate; 26629: template 26629: class collate_byname; 26629: } 26629: 26629: 26629: class time_base; 26629: namespace __cxx11 { 26629: template > 26629: class time_get; 26629: template > 26629: class time_get_byname; 26629: } 26629: template > 26629: class time_put; 26629: template > 26629: class time_put_byname; 26629: 26629: 26629: class money_base; 26629: namespace __cxx11 { 26629: template > 26629: class money_get; 26629: template > 26629: class money_put; 26629: } 26629: namespace __cxx11 { 26629: template 26629: class moneypunct; 26629: template 26629: class moneypunct_byname; 26629: } 26629: 26629: 26629: struct messages_base; 26629: namespace __cxx11 { 26629: template 26629: class messages; 26629: template 26629: class messages_byname; 26629: } 26629: 26629: 26629: } 26629: # 44 "/usr/include/c++/12/string" 2 3 26629: # 1 "/usr/include/c++/12/bits/ostream_insert.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/ostream_insert.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/ostream_insert.h" 3 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/cxxabi_forced.h" 1 3 26629: # 34 "/usr/include/c++/12/bits/cxxabi_forced.h" 3 26629: 26629: # 35 "/usr/include/c++/12/bits/cxxabi_forced.h" 3 26629: 26629: #pragma GCC visibility push(default) 26629: 26629: 26629: namespace __cxxabiv1 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class __forced_unwind 26629: { 26629: virtual ~__forced_unwind() throw(); 26629: 26629: 26629: virtual void __pure_dummy() = 0; 26629: }; 26629: } 26629: 26629: 26629: #pragma GCC visibility pop 26629: # 37 "/usr/include/c++/12/bits/ostream_insert.h" 2 3 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: inline void 26629: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 26629: const _CharT* __s, streamsize __n) 26629: { 26629: typedef basic_ostream<_CharT, _Traits> __ostream_type; 26629: typedef typename __ostream_type::ios_base __ios_base; 26629: 26629: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 26629: if (__put != __n) 26629: __out.setstate(__ios_base::badbit); 26629: } 26629: 26629: template 26629: inline void 26629: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 26629: { 26629: typedef basic_ostream<_CharT, _Traits> __ostream_type; 26629: typedef typename __ostream_type::ios_base __ios_base; 26629: 26629: const _CharT __c = __out.fill(); 26629: for (; __n > 0; --__n) 26629: { 26629: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 26629: if (_Traits::eq_int_type(__put, _Traits::eof())) 26629: { 26629: __out.setstate(__ios_base::badbit); 26629: break; 26629: } 26629: } 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 26629: const _CharT* __s, streamsize __n) 26629: { 26629: typedef basic_ostream<_CharT, _Traits> __ostream_type; 26629: typedef typename __ostream_type::ios_base __ios_base; 26629: 26629: typename __ostream_type::sentry __cerb(__out); 26629: if (__cerb) 26629: { 26629: try 26629: { 26629: const streamsize __w = __out.width(); 26629: if (__w > __n) 26629: { 26629: const bool __left = ((__out.flags() 26629: & __ios_base::adjustfield) 26629: == __ios_base::left); 26629: if (!__left) 26629: __ostream_fill(__out, __w - __n); 26629: if (__out.good()) 26629: __ostream_write(__out, __s, __n); 26629: if (__left && __out.good()) 26629: __ostream_fill(__out, __w - __n); 26629: } 26629: else 26629: __ostream_write(__out, __s, __n); 26629: __out.width(0); 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: __out._M_setstate(__ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { __out._M_setstate(__ios_base::badbit); } 26629: } 26629: return __out; 26629: } 26629: 26629: 26629: 26629: 26629: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 26629: 26629: 26629: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 26629: streamsize); 26629: 26629: 26629: 26629: 26629: } 26629: # 45 "/usr/include/c++/12/string" 2 3 26629: # 53 "/usr/include/c++/12/string" 3 26629: # 1 "/usr/include/c++/12/bits/basic_string.h" 1 3 26629: # 37 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/basic_string.h" 3 26629: # 47 "/usr/include/c++/12/bits/basic_string.h" 3 26629: # 1 "/usr/include/c++/12/string_view" 1 3 26629: # 36 "/usr/include/c++/12/string_view" 3 26629: 26629: # 37 "/usr/include/c++/12/string_view" 3 26629: # 53 "/usr/include/c++/12/string_view" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: constexpr size_t 26629: __sv_check(size_t __size, size_t __pos, const char* __s) 26629: { 26629: if (__pos > __size) 26629: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") 26629: , __s, __pos, __size); 26629: return __pos; 26629: } 26629: 26629: 26629: 26629: constexpr size_t 26629: __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept 26629: { 26629: const bool __testoff = __off < __size - __pos; 26629: return __testoff ? __off : __size - __pos; 26629: } 26629: # 99 "/usr/include/c++/12/string_view" 3 26629: template> 26629: class basic_string_view 26629: { 26629: static_assert(!is_array_v<_CharT>); 26629: static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); 26629: static_assert(is_same_v<_CharT, typename _Traits::char_type>); 26629: 26629: public: 26629: 26629: 26629: using traits_type = _Traits; 26629: using value_type = _CharT; 26629: using pointer = value_type*; 26629: using const_pointer = const value_type*; 26629: using reference = value_type&; 26629: using const_reference = const value_type&; 26629: using const_iterator = const value_type*; 26629: using iterator = const_iterator; 26629: using const_reverse_iterator = std::reverse_iterator; 26629: using reverse_iterator = const_reverse_iterator; 26629: using size_type = size_t; 26629: using difference_type = ptrdiff_t; 26629: static constexpr size_type npos = size_type(-1); 26629: 26629: 26629: 26629: constexpr 26629: basic_string_view() noexcept 26629: : _M_len{0}, _M_str{nullptr} 26629: { } 26629: 26629: constexpr basic_string_view(const basic_string_view&) noexcept = default; 26629: 26629: __attribute__((__nonnull__)) constexpr 26629: basic_string_view(const _CharT* __str) noexcept 26629: : _M_len{traits_type::length(__str)}, 26629: _M_str{__str} 26629: { } 26629: 26629: constexpr 26629: basic_string_view(const _CharT* __str, size_type __len) noexcept 26629: : _M_len{__len}, _M_str{__str} 26629: { } 26629: # 176 "/usr/include/c++/12/string_view" 3 26629: constexpr basic_string_view& 26629: operator=(const basic_string_view&) noexcept = default; 26629: 26629: 26629: 26629: constexpr const_iterator 26629: begin() const noexcept 26629: { return this->_M_str; } 26629: 26629: constexpr const_iterator 26629: end() const noexcept 26629: { return this->_M_str + this->_M_len; } 26629: 26629: constexpr const_iterator 26629: cbegin() const noexcept 26629: { return this->_M_str; } 26629: 26629: constexpr const_iterator 26629: cend() const noexcept 26629: { return this->_M_str + this->_M_len; } 26629: 26629: constexpr const_reverse_iterator 26629: rbegin() const noexcept 26629: { return const_reverse_iterator(this->end()); } 26629: 26629: constexpr const_reverse_iterator 26629: rend() const noexcept 26629: { return const_reverse_iterator(this->begin()); } 26629: 26629: constexpr const_reverse_iterator 26629: crbegin() const noexcept 26629: { return const_reverse_iterator(this->end()); } 26629: 26629: constexpr const_reverse_iterator 26629: crend() const noexcept 26629: { return const_reverse_iterator(this->begin()); } 26629: 26629: 26629: 26629: constexpr size_type 26629: size() const noexcept 26629: { return this->_M_len; } 26629: 26629: constexpr size_type 26629: length() const noexcept 26629: { return _M_len; } 26629: 26629: constexpr size_type 26629: max_size() const noexcept 26629: { 26629: return (npos - sizeof(size_type) - sizeof(void*)) 26629: / sizeof(value_type) / 4; 26629: } 26629: 26629: [[nodiscard]] constexpr bool 26629: empty() const noexcept 26629: { return this->_M_len == 0; } 26629: 26629: 26629: 26629: constexpr const_reference 26629: operator[](size_type __pos) const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__pos < this->_M_len)) __builtin_unreachable(); } while (false); 26629: return *(this->_M_str + __pos); 26629: } 26629: 26629: constexpr const_reference 26629: at(size_type __pos) const 26629: { 26629: if (__pos >= _M_len) 26629: __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") 26629: 26629: , __pos, this->size()); 26629: return *(this->_M_str + __pos); 26629: } 26629: 26629: constexpr const_reference 26629: front() const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) __builtin_unreachable(); } while (false); 26629: return *this->_M_str; 26629: } 26629: 26629: constexpr const_reference 26629: back() const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) __builtin_unreachable(); } while (false); 26629: return *(this->_M_str + this->_M_len - 1); 26629: } 26629: 26629: constexpr const_pointer 26629: data() const noexcept 26629: { return this->_M_str; } 26629: 26629: 26629: 26629: constexpr void 26629: remove_prefix(size_type __n) noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) __builtin_unreachable(); } while (false); 26629: this->_M_str += __n; 26629: this->_M_len -= __n; 26629: } 26629: 26629: constexpr void 26629: remove_suffix(size_type __n) noexcept 26629: { this->_M_len -= __n; } 26629: 26629: constexpr void 26629: swap(basic_string_view& __sv) noexcept 26629: { 26629: auto __tmp = *this; 26629: *this = __sv; 26629: __sv = __tmp; 26629: } 26629: 26629: 26629: 26629: 26629: size_type 26629: copy(_CharT* __str, size_type __n, size_type __pos = 0) const 26629: { 26629: ; 26629: __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); 26629: const size_type __rlen = std::min(__n, _M_len - __pos); 26629: 26629: 26629: traits_type::copy(__str, data() + __pos, __rlen); 26629: return __rlen; 26629: } 26629: 26629: constexpr basic_string_view 26629: substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) 26629: { 26629: __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); 26629: const size_type __rlen = std::min(__n, _M_len - __pos); 26629: return basic_string_view{_M_str + __pos, __rlen}; 26629: } 26629: 26629: constexpr int 26629: compare(basic_string_view __str) const noexcept 26629: { 26629: const size_type __rlen = std::min(this->_M_len, __str._M_len); 26629: int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); 26629: if (__ret == 0) 26629: __ret = _S_compare(this->_M_len, __str._M_len); 26629: return __ret; 26629: } 26629: 26629: constexpr int 26629: compare(size_type __pos1, size_type __n1, basic_string_view __str) const 26629: { return this->substr(__pos1, __n1).compare(__str); } 26629: 26629: constexpr int 26629: compare(size_type __pos1, size_type __n1, 26629: basic_string_view __str, size_type __pos2, size_type __n2) const 26629: { 26629: return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); 26629: } 26629: 26629: __attribute__((__nonnull__)) constexpr int 26629: compare(const _CharT* __str) const noexcept 26629: { return this->compare(basic_string_view{__str}); } 26629: 26629: __attribute__((__nonnull__)) constexpr int 26629: compare(size_type __pos1, size_type __n1, const _CharT* __str) const 26629: { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } 26629: 26629: constexpr int 26629: compare(size_type __pos1, size_type __n1, 26629: const _CharT* __str, size_type __n2) const noexcept(false) 26629: { 26629: return this->substr(__pos1, __n1) 26629: .compare(basic_string_view(__str, __n2)); 26629: } 26629: # 402 "/usr/include/c++/12/string_view" 3 26629: constexpr size_type 26629: find(basic_string_view __str, size_type __pos = 0) const noexcept 26629: { return this->find(__str._M_str, __pos, __str._M_len); } 26629: 26629: constexpr size_type 26629: find(_CharT __c, size_type __pos = 0) const noexcept; 26629: 26629: constexpr size_type 26629: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 26629: 26629: __attribute__((__nonnull__)) constexpr size_type 26629: find(const _CharT* __str, size_type __pos = 0) const noexcept 26629: { return this->find(__str, __pos, traits_type::length(__str)); } 26629: 26629: constexpr size_type 26629: rfind(basic_string_view __str, size_type __pos = npos) const noexcept 26629: { return this->rfind(__str._M_str, __pos, __str._M_len); } 26629: 26629: constexpr size_type 26629: rfind(_CharT __c, size_type __pos = npos) const noexcept; 26629: 26629: constexpr size_type 26629: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 26629: 26629: __attribute__((__nonnull__)) constexpr size_type 26629: rfind(const _CharT* __str, size_type __pos = npos) const noexcept 26629: { return this->rfind(__str, __pos, traits_type::length(__str)); } 26629: 26629: constexpr size_type 26629: find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept 26629: { return this->find_first_of(__str._M_str, __pos, __str._M_len); } 26629: 26629: constexpr size_type 26629: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 26629: { return this->find(__c, __pos); } 26629: 26629: constexpr size_type 26629: find_first_of(const _CharT* __str, size_type __pos, 26629: size_type __n) const noexcept; 26629: 26629: __attribute__((__nonnull__)) constexpr size_type 26629: find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept 26629: { return this->find_first_of(__str, __pos, traits_type::length(__str)); } 26629: 26629: constexpr size_type 26629: find_last_of(basic_string_view __str, 26629: size_type __pos = npos) const noexcept 26629: { return this->find_last_of(__str._M_str, __pos, __str._M_len); } 26629: 26629: constexpr size_type 26629: find_last_of(_CharT __c, size_type __pos=npos) const noexcept 26629: { return this->rfind(__c, __pos); } 26629: 26629: constexpr size_type 26629: find_last_of(const _CharT* __str, size_type __pos, 26629: size_type __n) const noexcept; 26629: 26629: __attribute__((__nonnull__)) constexpr size_type 26629: find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept 26629: { return this->find_last_of(__str, __pos, traits_type::length(__str)); } 26629: 26629: constexpr size_type 26629: find_first_not_of(basic_string_view __str, 26629: size_type __pos = 0) const noexcept 26629: { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } 26629: 26629: constexpr size_type 26629: find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; 26629: 26629: constexpr size_type 26629: find_first_not_of(const _CharT* __str, 26629: size_type __pos, size_type __n) const noexcept; 26629: 26629: __attribute__((__nonnull__)) constexpr size_type 26629: find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept 26629: { 26629: return this->find_first_not_of(__str, __pos, 26629: traits_type::length(__str)); 26629: } 26629: 26629: constexpr size_type 26629: find_last_not_of(basic_string_view __str, 26629: size_type __pos = npos) const noexcept 26629: { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } 26629: 26629: constexpr size_type 26629: find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; 26629: 26629: constexpr size_type 26629: find_last_not_of(const _CharT* __str, 26629: size_type __pos, size_type __n) const noexcept; 26629: 26629: __attribute__((__nonnull__)) constexpr size_type 26629: find_last_not_of(const _CharT* __str, 26629: size_type __pos = npos) const noexcept 26629: { 26629: return this->find_last_not_of(__str, __pos, 26629: traits_type::length(__str)); 26629: } 26629: 26629: private: 26629: 26629: static constexpr int 26629: _S_compare(size_type __n1, size_type __n2) noexcept 26629: { 26629: using __limits = __gnu_cxx::__int_traits; 26629: const difference_type __diff = __n1 - __n2; 26629: if (__diff > __limits::__max) 26629: return __limits::__max; 26629: if (__diff < __limits::__min) 26629: return __limits::__min; 26629: return static_cast(__diff); 26629: } 26629: 26629: size_t _M_len; 26629: const _CharT* _M_str; 26629: }; 26629: # 538 "/usr/include/c++/12/string_view" 3 26629: template 26629: constexpr bool 26629: operator==(basic_string_view<_CharT, _Traits> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 26629: 26629: template 26629: constexpr bool 26629: operator==(basic_string_view<_CharT, _Traits> __x, 26629: __type_identity_t> __y) 26629: noexcept 26629: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 26629: # 567 "/usr/include/c++/12/string_view" 3 26629: template 26629: constexpr bool 26629: operator==(__type_identity_t> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 26629: 26629: template 26629: constexpr bool 26629: operator!=(basic_string_view<_CharT, _Traits> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return !(__x == __y); } 26629: 26629: template 26629: constexpr bool 26629: operator!=(basic_string_view<_CharT, _Traits> __x, 26629: __type_identity_t> __y) 26629: noexcept 26629: { return !(__x == __y); } 26629: 26629: template 26629: constexpr bool 26629: operator!=(__type_identity_t> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return !(__x == __y); } 26629: 26629: template 26629: constexpr bool 26629: operator< (basic_string_view<_CharT, _Traits> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return __x.compare(__y) < 0; } 26629: 26629: template 26629: constexpr bool 26629: operator< (basic_string_view<_CharT, _Traits> __x, 26629: __type_identity_t> __y) 26629: noexcept 26629: { return __x.compare(__y) < 0; } 26629: 26629: template 26629: constexpr bool 26629: operator< (__type_identity_t> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return __x.compare(__y) < 0; } 26629: 26629: template 26629: constexpr bool 26629: operator> (basic_string_view<_CharT, _Traits> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return __x.compare(__y) > 0; } 26629: 26629: template 26629: constexpr bool 26629: operator> (basic_string_view<_CharT, _Traits> __x, 26629: __type_identity_t> __y) 26629: noexcept 26629: { return __x.compare(__y) > 0; } 26629: 26629: template 26629: constexpr bool 26629: operator> (__type_identity_t> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return __x.compare(__y) > 0; } 26629: 26629: template 26629: constexpr bool 26629: operator<=(basic_string_view<_CharT, _Traits> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return __x.compare(__y) <= 0; } 26629: 26629: template 26629: constexpr bool 26629: operator<=(basic_string_view<_CharT, _Traits> __x, 26629: __type_identity_t> __y) 26629: noexcept 26629: { return __x.compare(__y) <= 0; } 26629: 26629: template 26629: constexpr bool 26629: operator<=(__type_identity_t> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return __x.compare(__y) <= 0; } 26629: 26629: template 26629: constexpr bool 26629: operator>=(basic_string_view<_CharT, _Traits> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return __x.compare(__y) >= 0; } 26629: 26629: template 26629: constexpr bool 26629: operator>=(basic_string_view<_CharT, _Traits> __x, 26629: __type_identity_t> __y) 26629: noexcept 26629: { return __x.compare(__y) >= 0; } 26629: 26629: template 26629: constexpr bool 26629: operator>=(__type_identity_t> __x, 26629: basic_string_view<_CharT, _Traits> __y) noexcept 26629: { return __x.compare(__y) >= 0; } 26629: 26629: 26629: 26629: template 26629: inline basic_ostream<_CharT, _Traits>& 26629: operator<<(basic_ostream<_CharT, _Traits>& __os, 26629: basic_string_view<_CharT,_Traits> __str) 26629: { return __ostream_insert(__os, __str.data(), __str.size()); } 26629: 26629: 26629: 26629: 26629: using string_view = basic_string_view; 26629: using wstring_view = basic_string_view; 26629: 26629: 26629: 26629: using u16string_view = basic_string_view; 26629: using u32string_view = basic_string_view; 26629: 26629: 26629: 26629: template 26629: struct hash; 26629: 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const string_view& __str) const noexcept 26629: { return std::_Hash_impl::hash(__str.data(), __str.length()); } 26629: }; 26629: 26629: template<> 26629: struct __is_fast_hash> : std::false_type 26629: { }; 26629: 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const wstring_view& __s) const noexcept 26629: { return std::_Hash_impl::hash(__s.data(), 26629: __s.length() * sizeof(wchar_t)); } 26629: }; 26629: 26629: template<> 26629: struct __is_fast_hash> : std::false_type 26629: { }; 26629: # 734 "/usr/include/c++/12/string_view" 3 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const u16string_view& __s) const noexcept 26629: { return std::_Hash_impl::hash(__s.data(), 26629: __s.length() * sizeof(char16_t)); } 26629: }; 26629: 26629: template<> 26629: struct __is_fast_hash> : std::false_type 26629: { }; 26629: 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const u32string_view& __s) const noexcept 26629: { return std::_Hash_impl::hash(__s.data(), 26629: __s.length() * sizeof(char32_t)); } 26629: }; 26629: 26629: template<> 26629: struct __is_fast_hash> : std::false_type 26629: { }; 26629: 26629: inline namespace literals 26629: { 26629: inline namespace string_view_literals 26629: { 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wliteral-suffix" 26629: inline constexpr basic_string_view 26629: operator""sv(const char* __str, size_t __len) noexcept 26629: { return basic_string_view{__str, __len}; } 26629: 26629: inline constexpr basic_string_view 26629: operator""sv(const wchar_t* __str, size_t __len) noexcept 26629: { return basic_string_view{__str, __len}; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline constexpr basic_string_view 26629: operator""sv(const char16_t* __str, size_t __len) noexcept 26629: { return basic_string_view{__str, __len}; } 26629: 26629: inline constexpr basic_string_view 26629: operator""sv(const char32_t* __str, size_t __len) noexcept 26629: { return basic_string_view{__str, __len}; } 26629: 26629: #pragma GCC diagnostic pop 26629: } 26629: } 26629: # 808 "/usr/include/c++/12/string_view" 3 26629: 26629: } 26629: 26629: # 1 "/usr/include/c++/12/bits/string_view.tcc" 1 3 26629: # 37 "/usr/include/c++/12/bits/string_view.tcc" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/string_view.tcc" 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: constexpr typename basic_string_view<_CharT, _Traits>::size_type 26629: basic_string_view<_CharT, _Traits>:: 26629: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept 26629: { 26629: ; 26629: 26629: if (__n == 0) 26629: return __pos <= _M_len ? __pos : npos; 26629: if (__pos >= _M_len) 26629: return npos; 26629: 26629: const _CharT __elem0 = __str[0]; 26629: const _CharT* __first = _M_str + __pos; 26629: const _CharT* const __last = _M_str + _M_len; 26629: size_type __len = _M_len - __pos; 26629: 26629: while (__len >= __n) 26629: { 26629: 26629: __first = traits_type::find(__first, __len - __n + 1, __elem0); 26629: if (!__first) 26629: return npos; 26629: 26629: 26629: 26629: if (traits_type::compare(__first, __str, __n) == 0) 26629: return __first - _M_str; 26629: __len = __last - ++__first; 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: constexpr typename basic_string_view<_CharT, _Traits>::size_type 26629: basic_string_view<_CharT, _Traits>:: 26629: find(_CharT __c, size_type __pos) const noexcept 26629: { 26629: size_type __ret = npos; 26629: if (__pos < this->_M_len) 26629: { 26629: const size_type __n = this->_M_len - __pos; 26629: const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); 26629: if (__p) 26629: __ret = __p - this->_M_str; 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: constexpr typename basic_string_view<_CharT, _Traits>::size_type 26629: basic_string_view<_CharT, _Traits>:: 26629: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept 26629: { 26629: ; 26629: 26629: if (__n <= this->_M_len) 26629: { 26629: __pos = std::min(size_type(this->_M_len - __n), __pos); 26629: do 26629: { 26629: if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) 26629: return __pos; 26629: } 26629: while (__pos-- > 0); 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: constexpr typename basic_string_view<_CharT, _Traits>::size_type 26629: basic_string_view<_CharT, _Traits>:: 26629: rfind(_CharT __c, size_type __pos) const noexcept 26629: { 26629: size_type __size = this->_M_len; 26629: if (__size > 0) 26629: { 26629: if (--__size > __pos) 26629: __size = __pos; 26629: for (++__size; __size-- > 0; ) 26629: if (traits_type::eq(this->_M_str[__size], __c)) 26629: return __size; 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: constexpr typename basic_string_view<_CharT, _Traits>::size_type 26629: basic_string_view<_CharT, _Traits>:: 26629: find_first_of(const _CharT* __str, size_type __pos, 26629: size_type __n) const noexcept 26629: { 26629: ; 26629: for (; __n && __pos < this->_M_len; ++__pos) 26629: { 26629: const _CharT* __p = traits_type::find(__str, __n, 26629: this->_M_str[__pos]); 26629: if (__p) 26629: return __pos; 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: constexpr typename basic_string_view<_CharT, _Traits>::size_type 26629: basic_string_view<_CharT, _Traits>:: 26629: find_last_of(const _CharT* __str, size_type __pos, 26629: size_type __n) const noexcept 26629: { 26629: ; 26629: size_type __size = this->size(); 26629: if (__size && __n) 26629: { 26629: if (--__size > __pos) 26629: __size = __pos; 26629: do 26629: { 26629: if (traits_type::find(__str, __n, this->_M_str[__size])) 26629: return __size; 26629: } 26629: while (__size-- != 0); 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: constexpr typename basic_string_view<_CharT, _Traits>::size_type 26629: basic_string_view<_CharT, _Traits>:: 26629: find_first_not_of(const _CharT* __str, size_type __pos, 26629: size_type __n) const noexcept 26629: { 26629: ; 26629: for (; __pos < this->_M_len; ++__pos) 26629: if (!traits_type::find(__str, __n, this->_M_str[__pos])) 26629: return __pos; 26629: return npos; 26629: } 26629: 26629: template 26629: constexpr typename basic_string_view<_CharT, _Traits>::size_type 26629: basic_string_view<_CharT, _Traits>:: 26629: find_first_not_of(_CharT __c, size_type __pos) const noexcept 26629: { 26629: for (; __pos < this->_M_len; ++__pos) 26629: if (!traits_type::eq(this->_M_str[__pos], __c)) 26629: return __pos; 26629: return npos; 26629: } 26629: 26629: template 26629: constexpr typename basic_string_view<_CharT, _Traits>::size_type 26629: basic_string_view<_CharT, _Traits>:: 26629: find_last_not_of(const _CharT* __str, size_type __pos, 26629: size_type __n) const noexcept 26629: { 26629: ; 26629: size_type __size = this->_M_len; 26629: if (__size) 26629: { 26629: if (--__size > __pos) 26629: __size = __pos; 26629: do 26629: { 26629: if (!traits_type::find(__str, __n, this->_M_str[__size])) 26629: return __size; 26629: } 26629: while (__size--); 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: constexpr typename basic_string_view<_CharT, _Traits>::size_type 26629: basic_string_view<_CharT, _Traits>:: 26629: find_last_not_of(_CharT __c, size_type __pos) const noexcept 26629: { 26629: size_type __size = this->_M_len; 26629: if (__size) 26629: { 26629: if (--__size > __pos) 26629: __size = __pos; 26629: do 26629: { 26629: if (!traits_type::eq(this->_M_str[__size], __c)) 26629: return __size; 26629: } 26629: while (__size--); 26629: } 26629: return npos; 26629: } 26629: 26629: 26629: } 26629: # 812 "/usr/include/c++/12/string_view" 2 3 26629: # 48 "/usr/include/c++/12/bits/basic_string.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace __cxx11 { 26629: # 84 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: class basic_string 26629: { 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind<_CharT>::other _Char_alloc_type; 26629: 26629: 26629: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 26629: # 122 "/usr/include/c++/12/bits/basic_string.h" 3 26629: public: 26629: typedef _Traits traits_type; 26629: typedef typename _Traits::char_type value_type; 26629: typedef _Char_alloc_type allocator_type; 26629: typedef typename _Alloc_traits::size_type size_type; 26629: typedef typename _Alloc_traits::difference_type difference_type; 26629: typedef typename _Alloc_traits::reference reference; 26629: typedef typename _Alloc_traits::const_reference const_reference; 26629: typedef typename _Alloc_traits::pointer pointer; 26629: typedef typename _Alloc_traits::const_pointer const_pointer; 26629: typedef __gnu_cxx::__normal_iterator iterator; 26629: typedef __gnu_cxx::__normal_iterator 26629: const_iterator; 26629: typedef std::reverse_iterator const_reverse_iterator; 26629: typedef std::reverse_iterator reverse_iterator; 26629: 26629: 26629: static const size_type npos = static_cast(-1); 26629: 26629: protected: 26629: 26629: 26629: 26629: 26629: typedef const_iterator __const_iterator; 26629: 26629: 26629: private: 26629: 26629: 26629: typedef basic_string_view<_CharT, _Traits> __sv_type; 26629: 26629: template 26629: using _If_sv = enable_if_t< 26629: __and_, 26629: __not_>, 26629: __not_>>::value, 26629: _Res>; 26629: 26629: 26629: 26629: static __sv_type 26629: _S_to_string_view(__sv_type __svt) noexcept 26629: { return __svt; } 26629: 26629: 26629: 26629: 26629: 26629: struct __sv_wrapper 26629: { 26629: explicit 26629: __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } 26629: 26629: __sv_type _M_sv; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: basic_string(__sv_wrapper __svw, const _Alloc& __a) 26629: : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } 26629: 26629: 26629: 26629: struct _Alloc_hider : allocator_type 26629: { 26629: 26629: 26629: 26629: 26629: 26629: _Alloc_hider(pointer __dat, const _Alloc& __a) 26629: : allocator_type(__a), _M_p(__dat) { } 26629: 26629: 26629: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 26629: : allocator_type(std::move(__a)), _M_p(__dat) { } 26629: 26629: 26629: pointer _M_p; 26629: }; 26629: 26629: _Alloc_hider _M_dataplus; 26629: size_type _M_string_length; 26629: 26629: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 26629: 26629: union 26629: { 26629: _CharT _M_local_buf[_S_local_capacity + 1]; 26629: size_type _M_allocated_capacity; 26629: }; 26629: 26629: 26629: void 26629: _M_data(pointer __p) 26629: { _M_dataplus._M_p = __p; } 26629: 26629: 26629: void 26629: _M_length(size_type __length) 26629: { _M_string_length = __length; } 26629: 26629: 26629: pointer 26629: _M_data() const 26629: { return _M_dataplus._M_p; } 26629: 26629: 26629: pointer 26629: _M_local_data() 26629: { 26629: 26629: return std::pointer_traits::pointer_to(*_M_local_buf); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: const_pointer 26629: _M_local_data() const 26629: { 26629: 26629: return std::pointer_traits::pointer_to(*_M_local_buf); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: void 26629: _M_capacity(size_type __capacity) 26629: { _M_allocated_capacity = __capacity; } 26629: 26629: 26629: void 26629: _M_set_length(size_type __n) 26629: { 26629: _M_length(__n); 26629: traits_type::assign(_M_data()[__n], _CharT()); 26629: } 26629: 26629: 26629: bool 26629: _M_is_local() const 26629: { return _M_data() == _M_local_data(); } 26629: 26629: 26629: 26629: pointer 26629: _M_create(size_type&, size_type); 26629: 26629: 26629: void 26629: _M_dispose() 26629: { 26629: if (!_M_is_local()) 26629: _M_destroy(_M_allocated_capacity); 26629: } 26629: 26629: 26629: void 26629: _M_destroy(size_type __size) throw() 26629: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 26629: # 319 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: void 26629: _M_construct(_InIterator __beg, _InIterator __end, 26629: std::input_iterator_tag); 26629: 26629: 26629: 26629: template 26629: 26629: void 26629: _M_construct(_FwdIterator __beg, _FwdIterator __end, 26629: std::forward_iterator_tag); 26629: 26629: 26629: void 26629: _M_construct(size_type __req, _CharT __c); 26629: 26629: 26629: allocator_type& 26629: _M_get_allocator() 26629: { return _M_dataplus; } 26629: 26629: 26629: const allocator_type& 26629: _M_get_allocator() const 26629: { return _M_dataplus; } 26629: 26629: 26629: __attribute__((__always_inline__)) 26629: constexpr 26629: pointer 26629: _M_use_local_data() noexcept 26629: { 26629: 26629: 26629: 26629: 26629: 26629: return _M_local_data(); 26629: } 26629: 26629: private: 26629: # 377 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: _M_check(size_type __pos, const char* __s) const 26629: { 26629: if (__pos > this->size()) 26629: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 26629: , 26629: __s, __pos, this->size()); 26629: return __pos; 26629: } 26629: 26629: 26629: void 26629: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 26629: { 26629: if (this->max_size() - (this->size() - __n1) < __n2) 26629: __throw_length_error((__s)); 26629: } 26629: 26629: 26629: 26629: 26629: size_type 26629: _M_limit(size_type __pos, size_type __off) const noexcept 26629: { 26629: const bool __testoff = __off < this->size() - __pos; 26629: return __testoff ? __off : this->size() - __pos; 26629: } 26629: 26629: 26629: bool 26629: _M_disjunct(const _CharT* __s) const noexcept 26629: { 26629: return (less()(__s, _M_data()) 26629: || less()(_M_data() + this->size(), __s)); 26629: } 26629: 26629: 26629: 26629: 26629: static void 26629: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 26629: { 26629: if (__n == 1) 26629: traits_type::assign(*__d, *__s); 26629: else 26629: traits_type::copy(__d, __s, __n); 26629: } 26629: 26629: 26629: static void 26629: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 26629: { 26629: if (__n == 1) 26629: traits_type::assign(*__d, *__s); 26629: else 26629: traits_type::move(__d, __s, __n); 26629: } 26629: 26629: 26629: static void 26629: _S_assign(_CharT* __d, size_type __n, _CharT __c) 26629: { 26629: if (__n == 1) 26629: traits_type::assign(*__d, __c); 26629: else 26629: traits_type::assign(__d, __n, __c); 26629: } 26629: 26629: 26629: 26629: template 26629: 26629: static void 26629: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 26629: { 26629: for (; __k1 != __k2; ++__k1, (void)++__p) 26629: traits_type::assign(*__p, *__k1); 26629: } 26629: 26629: 26629: static void 26629: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 26629: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 26629: 26629: 26629: static void 26629: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 26629: noexcept 26629: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 26629: 26629: 26629: static void 26629: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 26629: { _S_copy(__p, __k1, __k2 - __k1); } 26629: 26629: 26629: static void 26629: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 26629: noexcept 26629: { _S_copy(__p, __k1, __k2 - __k1); } 26629: 26629: 26629: static int 26629: _S_compare(size_type __n1, size_type __n2) noexcept 26629: { 26629: const difference_type __d = difference_type(__n1 - __n2); 26629: 26629: if (__d > __gnu_cxx::__numeric_traits::__max) 26629: return __gnu_cxx::__numeric_traits::__max; 26629: else if (__d < __gnu_cxx::__numeric_traits::__min) 26629: return __gnu_cxx::__numeric_traits::__min; 26629: else 26629: return int(__d); 26629: } 26629: 26629: 26629: void 26629: _M_assign(const basic_string&); 26629: 26629: 26629: void 26629: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 26629: size_type __len2); 26629: 26629: 26629: void 26629: _M_erase(size_type __pos, size_type __n); 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string() 26629: noexcept(is_nothrow_default_constructible<_Alloc>::value) 26629: : _M_dataplus(_M_local_data()) 26629: { 26629: _M_use_local_data(); 26629: _M_set_length(0); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: basic_string(const _Alloc& __a) noexcept 26629: : _M_dataplus(_M_local_data(), __a) 26629: { 26629: _M_use_local_data(); 26629: _M_set_length(0); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string(const basic_string& __str) 26629: : _M_dataplus(_M_local_data(), 26629: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 26629: { 26629: _M_construct(__str._M_data(), __str._M_data() + __str.length(), 26629: std::forward_iterator_tag()); 26629: } 26629: # 556 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string(const basic_string& __str, size_type __pos, 26629: const _Alloc& __a = _Alloc()) 26629: : _M_dataplus(_M_local_data(), __a) 26629: { 26629: const _CharT* __start = __str._M_data() 26629: + __str._M_check(__pos, "basic_string::basic_string"); 26629: _M_construct(__start, __start + __str._M_limit(__pos, npos), 26629: std::forward_iterator_tag()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string(const basic_string& __str, size_type __pos, 26629: size_type __n) 26629: : _M_dataplus(_M_local_data()) 26629: { 26629: const _CharT* __start = __str._M_data() 26629: + __str._M_check(__pos, "basic_string::basic_string"); 26629: _M_construct(__start, __start + __str._M_limit(__pos, __n), 26629: std::forward_iterator_tag()); 26629: } 26629: # 591 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string(const basic_string& __str, size_type __pos, 26629: size_type __n, const _Alloc& __a) 26629: : _M_dataplus(_M_local_data(), __a) 26629: { 26629: const _CharT* __start 26629: = __str._M_data() + __str._M_check(__pos, "string::string"); 26629: _M_construct(__start, __start + __str._M_limit(__pos, __n), 26629: std::forward_iterator_tag()); 26629: } 26629: # 611 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string(const _CharT* __s, size_type __n, 26629: const _Alloc& __a = _Alloc()) 26629: : _M_dataplus(_M_local_data(), __a) 26629: { 26629: 26629: if (__s == 0 && __n > 0) 26629: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 26629: ); 26629: _M_construct(__s, __s + __n, std::forward_iterator_tag()); 26629: } 26629: # 631 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template> 26629: 26629: 26629: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 26629: : _M_dataplus(_M_local_data(), __a) 26629: { 26629: 26629: if (__s == 0) 26629: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 26629: ); 26629: const _CharT* __end = __s + traits_type::length(__s); 26629: _M_construct(__s, __end, forward_iterator_tag()); 26629: } 26629: # 654 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template> 26629: 26629: 26629: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 26629: : _M_dataplus(_M_local_data(), __a) 26629: { _M_construct(__n, __c); } 26629: # 669 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string(basic_string&& __str) noexcept 26629: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 26629: { 26629: if (__str._M_is_local()) 26629: { 26629: traits_type::copy(_M_local_buf, __str._M_local_buf, 26629: __str.length() + 1); 26629: } 26629: else 26629: { 26629: _M_data(__str._M_data()); 26629: _M_capacity(__str._M_allocated_capacity); 26629: } 26629: 26629: 26629: 26629: 26629: _M_length(__str.length()); 26629: __str._M_data(__str._M_local_data()); 26629: __str._M_set_length(0); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 26629: : _M_dataplus(_M_local_data(), __a) 26629: { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } 26629: 26629: 26629: basic_string(const basic_string& __str, const _Alloc& __a) 26629: : _M_dataplus(_M_local_data(), __a) 26629: { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } 26629: 26629: 26629: basic_string(basic_string&& __str, const _Alloc& __a) 26629: noexcept(_Alloc_traits::_S_always_equal()) 26629: : _M_dataplus(_M_local_data(), __a) 26629: { 26629: if (__str._M_is_local()) 26629: { 26629: traits_type::copy(_M_local_buf, __str._M_local_buf, 26629: __str.length() + 1); 26629: _M_length(__str.length()); 26629: __str._M_set_length(0); 26629: } 26629: else if (_Alloc_traits::_S_always_equal() 26629: || __str.get_allocator() == __a) 26629: { 26629: _M_data(__str._M_data()); 26629: _M_length(__str.length()); 26629: _M_capacity(__str._M_allocated_capacity); 26629: __str._M_data(__str._M_local_buf); 26629: __str._M_set_length(0); 26629: } 26629: else 26629: _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); 26629: } 26629: # 745 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template> 26629: 26629: 26629: 26629: 26629: basic_string(_InputIterator __beg, _InputIterator __end, 26629: const _Alloc& __a = _Alloc()) 26629: : _M_dataplus(_M_local_data(), __a) 26629: { 26629: 26629: _M_construct(__beg, __end, std::__iterator_category(__beg)); 26629: 26629: 26629: 26629: 26629: } 26629: # 771 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template>> 26629: 26629: basic_string(const _Tp& __t, size_type __pos, size_type __n, 26629: const _Alloc& __a = _Alloc()) 26629: : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: 26629: explicit 26629: basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) 26629: : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: ~basic_string() 26629: { _M_dispose(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: operator=(const basic_string& __str) 26629: { 26629: return this->assign(__str); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: operator=(const _CharT* __s) 26629: { return this->assign(__s); } 26629: # 824 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: operator=(_CharT __c) 26629: { 26629: this->assign(1, __c); 26629: return *this; 26629: } 26629: # 842 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: operator=(basic_string&& __str) 26629: noexcept(_Alloc_traits::_S_nothrow_move()) 26629: { 26629: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 26629: && !_Alloc_traits::_S_always_equal() 26629: && _M_get_allocator() != __str._M_get_allocator()) 26629: { 26629: 26629: _M_destroy(_M_allocated_capacity); 26629: _M_data(_M_local_data()); 26629: _M_set_length(0); 26629: } 26629: 26629: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 26629: 26629: if (__str._M_is_local()) 26629: { 26629: 26629: 26629: 26629: if (__builtin_expect(std::__addressof(__str) != this, true)) 26629: { 26629: if (__str.size()) 26629: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 26629: _M_set_length(__str.size()); 26629: } 26629: } 26629: else if (_Alloc_traits::_S_propagate_on_move_assign() 26629: || _Alloc_traits::_S_always_equal() 26629: || _M_get_allocator() == __str._M_get_allocator()) 26629: { 26629: 26629: pointer __data = nullptr; 26629: size_type __capacity; 26629: if (!_M_is_local()) 26629: { 26629: if (_Alloc_traits::_S_always_equal()) 26629: { 26629: 26629: __data = _M_data(); 26629: __capacity = _M_allocated_capacity; 26629: } 26629: else 26629: _M_destroy(_M_allocated_capacity); 26629: } 26629: 26629: _M_data(__str._M_data()); 26629: _M_length(__str.length()); 26629: _M_capacity(__str._M_allocated_capacity); 26629: if (__data) 26629: { 26629: __str._M_data(__data); 26629: __str._M_capacity(__capacity); 26629: } 26629: else 26629: __str._M_data(__str._M_local_buf); 26629: } 26629: else 26629: assign(__str); 26629: __str.clear(); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: operator=(initializer_list<_CharT> __l) 26629: { 26629: this->assign(__l.begin(), __l.size()); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: operator=(const _Tp& __svt) 26629: { return this->assign(__svt); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: operator __sv_type() const noexcept 26629: { return __sv_type(data(), size()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: begin() noexcept 26629: { return iterator(_M_data()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: begin() const noexcept 26629: { return const_iterator(_M_data()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: end() noexcept 26629: { return iterator(_M_data() + this->size()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: end() const noexcept 26629: { return const_iterator(_M_data() + this->size()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: rbegin() noexcept 26629: { return reverse_iterator(this->end()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: rbegin() const noexcept 26629: { return const_reverse_iterator(this->end()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: rend() noexcept 26629: { return reverse_iterator(this->begin()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: rend() const noexcept 26629: { return const_reverse_iterator(this->begin()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: cbegin() const noexcept 26629: { return const_iterator(this->_M_data()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: cend() const noexcept 26629: { return const_iterator(this->_M_data() + this->size()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: crbegin() const noexcept 26629: { return const_reverse_iterator(this->end()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: crend() const noexcept 26629: { return const_reverse_iterator(this->begin()); } 26629: 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_string_length; } 26629: 26629: 26629: 26629: 26629: size_type 26629: length() const noexcept 26629: { return _M_string_length; } 26629: 26629: 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 26629: # 1089 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: void 26629: resize(size_type __n, _CharT __c); 26629: # 1103 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: void 26629: resize(size_type __n) 26629: { this->resize(__n, _CharT()); } 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: void 26629: shrink_to_fit() noexcept 26629: { reserve(); } 26629: #pragma GCC diagnostic pop 26629: # 1130 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: capacity() const noexcept 26629: { 26629: return _M_is_local() ? size_type(_S_local_capacity) 26629: : _M_allocated_capacity; 26629: } 26629: # 1155 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: void 26629: reserve(size_type __res_arg); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: reserve(); 26629: 26629: 26629: 26629: 26629: 26629: void 26629: clear() noexcept 26629: { _M_set_length(0); } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: bool 26629: empty() const noexcept 26629: { return this->size() == 0; } 26629: # 1197 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: const_reference 26629: operator[] (size_type __pos) const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) __builtin_unreachable(); } while (false); 26629: return _M_data()[__pos]; 26629: } 26629: # 1215 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: reference 26629: operator[](size_type __pos) 26629: { 26629: 26629: 26629: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) __builtin_unreachable(); } while (false); 26629: 26629: ; 26629: return _M_data()[__pos]; 26629: } 26629: # 1237 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: const_reference 26629: at(size_type __n) const 26629: { 26629: if (__n >= this->size()) 26629: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 26629: 26629: , 26629: __n, this->size()); 26629: return _M_data()[__n]; 26629: } 26629: # 1259 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: reference 26629: at(size_type __n) 26629: { 26629: if (__n >= size()) 26629: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 26629: 26629: , 26629: __n, this->size()); 26629: return _M_data()[__n]; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: reference 26629: front() noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 26629: return operator[](0); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reference 26629: front() const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 26629: return operator[](0); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reference 26629: back() noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 26629: return operator[](this->size() - 1); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reference 26629: back() const noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 26629: return operator[](this->size() - 1); 26629: } 26629: # 1327 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: operator+=(const basic_string& __str) 26629: { return this->append(__str); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: operator+=(const _CharT* __s) 26629: { return this->append(__s); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: operator+=(_CharT __c) 26629: { 26629: this->push_back(__c); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: operator+=(initializer_list<_CharT> __l) 26629: { return this->append(__l.begin(), __l.size()); } 26629: # 1373 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: operator+=(const _Tp& __svt) 26629: { return this->append(__svt); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: append(const basic_string& __str) 26629: { return this->append(__str._M_data(), __str.size()); } 26629: # 1403 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: append(const basic_string& __str, size_type __pos, size_type __n = npos) 26629: { return this->append(__str._M_data() 26629: + __str._M_check(__pos, "basic_string::append"), 26629: __str._M_limit(__pos, __n)); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: append(const _CharT* __s, size_type __n) 26629: { 26629: ; 26629: _M_check_length(size_type(0), __n, "basic_string::append"); 26629: return _M_append(__s, __n); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: append(const _CharT* __s) 26629: { 26629: ; 26629: const size_type __n = traits_type::length(__s); 26629: _M_check_length(size_type(0), __n, "basic_string::append"); 26629: return _M_append(__s, __n); 26629: } 26629: # 1448 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: append(size_type __n, _CharT __c) 26629: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: append(initializer_list<_CharT> __l) 26629: { return this->append(__l.begin(), __l.size()); } 26629: # 1474 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template> 26629: 26629: 26629: 26629: 26629: basic_string& 26629: append(_InputIterator __first, _InputIterator __last) 26629: { return this->replace(end(), end(), __first, __last); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: append(const _Tp& __svt) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->append(__sv.data(), __sv.size()); 26629: } 26629: # 1506 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: append(const _Tp& __svt, size_type __pos, size_type __n = npos) 26629: { 26629: __sv_type __sv = __svt; 26629: return _M_append(__sv.data() 26629: + std::__sv_check(__sv.size(), __pos, "basic_string::append"), 26629: std::__sv_limit(__sv.size(), __pos, __n)); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: push_back(_CharT __c) 26629: { 26629: const size_type __size = this->size(); 26629: if (__size + 1 > this->capacity()) 26629: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 26629: traits_type::assign(this->_M_data()[__size], __c); 26629: this->_M_set_length(__size + 1); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: assign(const basic_string& __str) 26629: { 26629: 26629: if (_Alloc_traits::_S_propagate_on_copy_assign()) 26629: { 26629: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 26629: && _M_get_allocator() != __str._M_get_allocator()) 26629: { 26629: 26629: 26629: if (__str.size() <= _S_local_capacity) 26629: { 26629: _M_destroy(_M_allocated_capacity); 26629: _M_data(_M_use_local_data()); 26629: _M_set_length(0); 26629: } 26629: else 26629: { 26629: const auto __len = __str.size(); 26629: auto __alloc = __str._M_get_allocator(); 26629: 26629: auto __ptr = _Alloc_traits::allocate(__alloc, __len + 1); 26629: _M_destroy(_M_allocated_capacity); 26629: _M_data(__ptr); 26629: _M_capacity(__len); 26629: _M_set_length(__len); 26629: } 26629: } 26629: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 26629: } 26629: 26629: this->_M_assign(__str); 26629: return *this; 26629: } 26629: # 1584 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: assign(basic_string&& __str) 26629: noexcept(_Alloc_traits::_S_nothrow_move()) 26629: { 26629: 26629: 26629: return *this = std::move(__str); 26629: } 26629: # 1608 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 26629: { return _M_replace(size_type(0), this->size(), __str._M_data() 26629: + __str._M_check(__pos, "basic_string::assign"), 26629: __str._M_limit(__pos, __n)); } 26629: # 1625 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: assign(const _CharT* __s, size_type __n) 26629: { 26629: ; 26629: return _M_replace(size_type(0), this->size(), __s, __n); 26629: } 26629: # 1642 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: assign(const _CharT* __s) 26629: { 26629: ; 26629: return _M_replace(size_type(0), this->size(), __s, 26629: traits_type::length(__s)); 26629: } 26629: # 1660 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: assign(size_type __n, _CharT __c) 26629: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 26629: # 1674 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template> 26629: 26629: 26629: 26629: 26629: basic_string& 26629: assign(_InputIterator __first, _InputIterator __last) 26629: { return this->replace(begin(), end(), __first, __last); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_string& 26629: assign(initializer_list<_CharT> __l) 26629: { return this->assign(__l.begin(), __l.size()); } 26629: # 1702 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: assign(const _Tp& __svt) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->assign(__sv.data(), __sv.size()); 26629: } 26629: # 1718 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: assign(const _Tp& __svt, size_type __pos, size_type __n = npos) 26629: { 26629: __sv_type __sv = __svt; 26629: return _M_replace(size_type(0), this->size(), 26629: __sv.data() 26629: + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), 26629: std::__sv_limit(__sv.size(), __pos, __n)); 26629: } 26629: # 1747 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: iterator 26629: insert(const_iterator __p, size_type __n, _CharT __c) 26629: { 26629: ; 26629: const size_type __pos = __p - begin(); 26629: this->replace(__p, __p, __n, __c); 26629: return iterator(this->_M_data() + __pos); 26629: } 26629: # 1790 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template> 26629: 26629: iterator 26629: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 26629: { 26629: ; 26629: const size_type __pos = __p - begin(); 26629: this->replace(__p, __p, __beg, __end); 26629: return iterator(this->_M_data() + __pos); 26629: } 26629: # 1827 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: iterator 26629: insert(const_iterator __p, initializer_list<_CharT> __l) 26629: { return this->insert(__p, __l.begin(), __l.end()); } 26629: # 1855 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: insert(size_type __pos1, const basic_string& __str) 26629: { return this->replace(__pos1, size_type(0), 26629: __str._M_data(), __str.size()); } 26629: # 1879 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: insert(size_type __pos1, const basic_string& __str, 26629: size_type __pos2, size_type __n = npos) 26629: { return this->replace(__pos1, size_type(0), __str._M_data() 26629: + __str._M_check(__pos2, "basic_string::insert"), 26629: __str._M_limit(__pos2, __n)); } 26629: # 1903 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: insert(size_type __pos, const _CharT* __s, size_type __n) 26629: { return this->replace(__pos, size_type(0), __s, __n); } 26629: # 1923 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: insert(size_type __pos, const _CharT* __s) 26629: { 26629: ; 26629: return this->replace(__pos, size_type(0), __s, 26629: traits_type::length(__s)); 26629: } 26629: # 1948 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: insert(size_type __pos, size_type __n, _CharT __c) 26629: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 26629: size_type(0), __n, __c); } 26629: # 1967 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: iterator 26629: insert(__const_iterator __p, _CharT __c) 26629: { 26629: ; 26629: const size_type __pos = __p - begin(); 26629: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 26629: return iterator(_M_data() + __pos); 26629: } 26629: # 1984 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: insert(size_type __pos, const _Tp& __svt) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->insert(__pos, __sv.data(), __sv.size()); 26629: } 26629: # 2001 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: insert(size_type __pos1, const _Tp& __svt, 26629: size_type __pos2, size_type __n = npos) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->replace(__pos1, size_type(0), 26629: __sv.data() 26629: + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), 26629: std::__sv_limit(__sv.size(), __pos2, __n)); 26629: } 26629: # 2030 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: erase(size_type __pos = 0, size_type __n = npos) 26629: { 26629: _M_check(__pos, "basic_string::erase"); 26629: if (__n == npos) 26629: this->_M_set_length(__pos); 26629: else if (__n != 0) 26629: this->_M_erase(__pos, _M_limit(__pos, __n)); 26629: return *this; 26629: } 26629: # 2050 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: iterator 26629: erase(__const_iterator __position) 26629: { 26629: 26629: ; 26629: const size_type __pos = __position - begin(); 26629: this->_M_erase(__pos, size_type(1)); 26629: return iterator(_M_data() + __pos); 26629: } 26629: # 2070 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: iterator 26629: erase(__const_iterator __first, __const_iterator __last) 26629: { 26629: 26629: ; 26629: const size_type __pos = __first - begin(); 26629: if (__last == end()) 26629: this->_M_set_length(__pos); 26629: else 26629: this->_M_erase(__pos, __last - __first); 26629: return iterator(this->_M_data() + __pos); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: pop_back() noexcept 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 26629: _M_erase(size() - 1, 1); 26629: } 26629: # 2116 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: replace(size_type __pos, size_type __n, const basic_string& __str) 26629: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 26629: # 2139 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: replace(size_type __pos1, size_type __n1, const basic_string& __str, 26629: size_type __pos2, size_type __n2 = npos) 26629: { return this->replace(__pos1, __n1, __str._M_data() 26629: + __str._M_check(__pos2, "basic_string::replace"), 26629: __str._M_limit(__pos2, __n2)); } 26629: # 2165 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: replace(size_type __pos, size_type __n1, const _CharT* __s, 26629: size_type __n2) 26629: { 26629: ; 26629: return _M_replace(_M_check(__pos, "basic_string::replace"), 26629: _M_limit(__pos, __n1), __s, __n2); 26629: } 26629: # 2191 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: replace(size_type __pos, size_type __n1, const _CharT* __s) 26629: { 26629: ; 26629: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 26629: } 26629: # 2216 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 26629: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 26629: _M_limit(__pos, __n1), __n2, __c); } 26629: # 2235 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: replace(__const_iterator __i1, __const_iterator __i2, 26629: const basic_string& __str) 26629: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 26629: # 2256 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: replace(__const_iterator __i1, __const_iterator __i2, 26629: const _CharT* __s, size_type __n) 26629: { 26629: 26629: ; 26629: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 26629: } 26629: # 2279 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 26629: { 26629: ; 26629: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 26629: } 26629: # 2301 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 26629: _CharT __c) 26629: { 26629: 26629: ; 26629: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 26629: } 26629: # 2327 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template> 26629: 26629: basic_string& 26629: replace(const_iterator __i1, const_iterator __i2, 26629: _InputIterator __k1, _InputIterator __k2) 26629: { 26629: 26629: ; 26629: ; 26629: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 26629: std::__false_type()); 26629: } 26629: # 2360 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& 26629: replace(__const_iterator __i1, __const_iterator __i2, 26629: _CharT* __k1, _CharT* __k2) 26629: { 26629: 26629: ; 26629: ; 26629: return this->replace(__i1 - begin(), __i2 - __i1, 26629: __k1, __k2 - __k1); 26629: } 26629: 26629: 26629: basic_string& 26629: replace(__const_iterator __i1, __const_iterator __i2, 26629: const _CharT* __k1, const _CharT* __k2) 26629: { 26629: 26629: ; 26629: ; 26629: return this->replace(__i1 - begin(), __i2 - __i1, 26629: __k1, __k2 - __k1); 26629: } 26629: 26629: 26629: basic_string& 26629: replace(__const_iterator __i1, __const_iterator __i2, 26629: iterator __k1, iterator __k2) 26629: { 26629: 26629: ; 26629: ; 26629: return this->replace(__i1 - begin(), __i2 - __i1, 26629: __k1.base(), __k2 - __k1); 26629: } 26629: 26629: 26629: basic_string& 26629: replace(__const_iterator __i1, __const_iterator __i2, 26629: const_iterator __k1, const_iterator __k2) 26629: { 26629: 26629: ; 26629: ; 26629: return this->replace(__i1 - begin(), __i2 - __i1, 26629: __k1.base(), __k2 - __k1); 26629: } 26629: # 2423 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string& replace(const_iterator __i1, const_iterator __i2, 26629: initializer_list<_CharT> __l) 26629: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 26629: # 2437 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: replace(size_type __pos, size_type __n, const _Tp& __svt) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->replace(__pos, __n, __sv.data(), __sv.size()); 26629: } 26629: # 2455 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: replace(size_type __pos1, size_type __n1, const _Tp& __svt, 26629: size_type __pos2, size_type __n2 = npos) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->replace(__pos1, __n1, 26629: __sv.data() 26629: + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), 26629: std::__sv_limit(__sv.size(), __pos2, __n2)); 26629: } 26629: # 2477 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, basic_string&> 26629: replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->replace(__i1 - begin(), __i2 - __i1, __sv); 26629: } 26629: 26629: 26629: private: 26629: template 26629: 26629: basic_string& 26629: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 26629: _Integer __n, _Integer __val, __true_type) 26629: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 26629: 26629: template 26629: 26629: basic_string& 26629: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 26629: _InputIterator __k1, _InputIterator __k2, 26629: __false_type); 26629: 26629: 26629: basic_string& 26629: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 26629: _CharT __c); 26629: 26629: 26629: basic_string& 26629: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 26629: const size_type __len2); 26629: 26629: 26629: basic_string& 26629: _M_append(const _CharT* __s, size_type __n); 26629: 26629: public: 26629: # 2530 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 26629: # 2541 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: void 26629: swap(basic_string& __s) noexcept; 26629: # 2552 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: const _CharT* 26629: c_str() const noexcept 26629: { return _M_data(); } 26629: # 2565 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: const _CharT* 26629: data() const noexcept 26629: { return _M_data(); } 26629: # 2577 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: _CharT* 26629: data() noexcept 26629: { return _M_data(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return _M_get_allocator(); } 26629: # 2603 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find(const _CharT* __s, size_type __pos, size_type __n) const 26629: noexcept; 26629: # 2618 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find(const basic_string& __str, size_type __pos = 0) const 26629: noexcept 26629: { return this->find(__str.data(), __pos, __str.size()); } 26629: # 2631 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, size_type> 26629: find(const _Tp& __svt, size_type __pos = 0) const 26629: noexcept(is_same<_Tp, __sv_type>::value) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->find(__sv.data(), __pos, __sv.size()); 26629: } 26629: # 2652 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find(const _CharT* __s, size_type __pos = 0) const noexcept 26629: { 26629: ; 26629: return this->find(__s, __pos, traits_type::length(__s)); 26629: } 26629: # 2670 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find(_CharT __c, size_type __pos = 0) const noexcept; 26629: # 2684 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: rfind(const basic_string& __str, size_type __pos = npos) const 26629: noexcept 26629: { return this->rfind(__str.data(), __pos, __str.size()); } 26629: # 2697 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, size_type> 26629: rfind(const _Tp& __svt, size_type __pos = npos) const 26629: noexcept(is_same<_Tp, __sv_type>::value) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->rfind(__sv.data(), __pos, __sv.size()); 26629: } 26629: # 2720 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: rfind(const _CharT* __s, size_type __pos, size_type __n) const 26629: noexcept; 26629: # 2735 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: rfind(const _CharT* __s, size_type __pos = npos) const 26629: { 26629: ; 26629: return this->rfind(__s, __pos, traits_type::length(__s)); 26629: } 26629: # 2753 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: rfind(_CharT __c, size_type __pos = npos) const noexcept; 26629: # 2768 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_first_of(const basic_string& __str, size_type __pos = 0) const 26629: noexcept 26629: { return this->find_first_of(__str.data(), __pos, __str.size()); } 26629: # 2782 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, size_type> 26629: find_first_of(const _Tp& __svt, size_type __pos = 0) const 26629: noexcept(is_same<_Tp, __sv_type>::value) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->find_first_of(__sv.data(), __pos, __sv.size()); 26629: } 26629: # 2805 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 26629: noexcept; 26629: # 2820 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_first_of(const _CharT* __s, size_type __pos = 0) const 26629: noexcept 26629: { 26629: ; 26629: return this->find_first_of(__s, __pos, traits_type::length(__s)); 26629: } 26629: # 2841 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 26629: { return this->find(__c, __pos); } 26629: # 2857 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_last_of(const basic_string& __str, size_type __pos = npos) const 26629: noexcept 26629: { return this->find_last_of(__str.data(), __pos, __str.size()); } 26629: # 2871 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, size_type> 26629: find_last_of(const _Tp& __svt, size_type __pos = npos) const 26629: noexcept(is_same<_Tp, __sv_type>::value) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->find_last_of(__sv.data(), __pos, __sv.size()); 26629: } 26629: # 2894 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 26629: noexcept; 26629: # 2909 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_last_of(const _CharT* __s, size_type __pos = npos) const 26629: noexcept 26629: { 26629: ; 26629: return this->find_last_of(__s, __pos, traits_type::length(__s)); 26629: } 26629: # 2930 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 26629: { return this->rfind(__c, __pos); } 26629: # 2945 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 26629: noexcept 26629: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 26629: # 2959 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: _If_sv<_Tp, size_type> 26629: 26629: find_first_not_of(const _Tp& __svt, size_type __pos = 0) const 26629: noexcept(is_same<_Tp, __sv_type>::value) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->find_first_not_of(__sv.data(), __pos, __sv.size()); 26629: } 26629: # 2982 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_first_not_of(const _CharT* __s, size_type __pos, 26629: size_type __n) const noexcept; 26629: # 2997 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 26629: noexcept 26629: { 26629: ; 26629: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 26629: } 26629: # 3016 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_first_not_of(_CharT __c, size_type __pos = 0) const 26629: noexcept; 26629: # 3032 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 26629: noexcept 26629: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 26629: # 3046 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, size_type> 26629: find_last_not_of(const _Tp& __svt, size_type __pos = npos) const 26629: noexcept(is_same<_Tp, __sv_type>::value) 26629: { 26629: __sv_type __sv = __svt; 26629: return this->find_last_not_of(__sv.data(), __pos, __sv.size()); 26629: } 26629: # 3069 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_last_not_of(const _CharT* __s, size_type __pos, 26629: size_type __n) const noexcept; 26629: # 3084 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 26629: noexcept 26629: { 26629: ; 26629: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 26629: } 26629: # 3103 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: size_type 26629: find_last_not_of(_CharT __c, size_type __pos = npos) const 26629: noexcept; 26629: # 3120 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: basic_string 26629: substr(size_type __pos = 0, size_type __n = npos) const 26629: { return basic_string(*this, 26629: _M_check(__pos, "basic_string::substr"), __n); } 26629: # 3140 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: int 26629: compare(const basic_string& __str) const 26629: { 26629: const size_type __size = this->size(); 26629: const size_type __osize = __str.size(); 26629: const size_type __len = std::min(__size, __osize); 26629: 26629: int __r = traits_type::compare(_M_data(), __str.data(), __len); 26629: if (!__r) 26629: __r = _S_compare(__size, __osize); 26629: return __r; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: _If_sv<_Tp, int> 26629: compare(const _Tp& __svt) const 26629: noexcept(is_same<_Tp, __sv_type>::value) 26629: { 26629: __sv_type __sv = __svt; 26629: const size_type __size = this->size(); 26629: const size_type __osize = __sv.size(); 26629: const size_type __len = std::min(__size, __osize); 26629: 26629: int __r = traits_type::compare(_M_data(), __sv.data(), __len); 26629: if (!__r) 26629: __r = _S_compare(__size, __osize); 26629: return __r; 26629: } 26629: # 3185 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, int> 26629: compare(size_type __pos, size_type __n, const _Tp& __svt) const 26629: noexcept(is_same<_Tp, __sv_type>::value) 26629: { 26629: __sv_type __sv = __svt; 26629: return __sv_type(*this).substr(__pos, __n).compare(__sv); 26629: } 26629: # 3205 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: _If_sv<_Tp, int> 26629: compare(size_type __pos1, size_type __n1, const _Tp& __svt, 26629: size_type __pos2, size_type __n2 = npos) const 26629: noexcept(is_same<_Tp, __sv_type>::value) 26629: { 26629: __sv_type __sv = __svt; 26629: return __sv_type(*this) 26629: .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); 26629: } 26629: # 3237 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: int 26629: compare(size_type __pos, size_type __n, const basic_string& __str) const; 26629: # 3264 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: int 26629: compare(size_type __pos1, size_type __n1, const basic_string& __str, 26629: size_type __pos2, size_type __n2 = npos) const; 26629: # 3283 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: int 26629: compare(const _CharT* __s) const noexcept; 26629: # 3308 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: int 26629: compare(size_type __pos, size_type __n1, const _CharT* __s) const; 26629: # 3336 "/usr/include/c++/12/bits/basic_string.h" 3 26629: 26629: int 26629: compare(size_type __pos, size_type __n1, const _CharT* __s, 26629: size_type __n2) const; 26629: # 3382 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template friend class basic_stringbuf; 26629: }; 26629: } 26629: 26629: } 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: namespace __cxx11 { 26629: template::value_type, 26629: typename _Allocator = allocator<_CharT>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireAllocator<_Allocator>> 26629: basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) 26629: -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; 26629: 26629: 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) 26629: -> basic_string<_CharT, _Traits, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: basic_string(basic_string_view<_CharT, _Traits>, 26629: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 26629: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 26629: const _Allocator& = _Allocator()) 26629: -> basic_string<_CharT, _Traits, _Allocator>; 26629: } 26629: # 3429 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: basic_string<_CharT, _Traits, _Alloc> 26629: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: { 26629: basic_string<_CharT, _Traits, _Alloc> __str(__lhs); 26629: __str.append(__rhs); 26629: return __str; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: basic_string<_CharT,_Traits,_Alloc> 26629: operator+(const _CharT* __lhs, 26629: const basic_string<_CharT,_Traits,_Alloc>& __rhs); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: basic_string<_CharT,_Traits,_Alloc> 26629: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline basic_string<_CharT, _Traits, _Alloc> 26629: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const _CharT* __rhs) 26629: { 26629: basic_string<_CharT, _Traits, _Alloc> __str(__lhs); 26629: __str.append(__rhs); 26629: return __str; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline basic_string<_CharT, _Traits, _Alloc> 26629: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 26629: { 26629: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 26629: typedef typename __string_type::size_type __size_type; 26629: __string_type __str(__lhs); 26629: __str.append(__size_type(1), __rhs); 26629: return __str; 26629: } 26629: 26629: 26629: template 26629: 26629: inline basic_string<_CharT, _Traits, _Alloc> 26629: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: { return std::move(__lhs.append(__rhs)); } 26629: 26629: template 26629: 26629: inline basic_string<_CharT, _Traits, _Alloc> 26629: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 26629: { return std::move(__rhs.insert(0, __lhs)); } 26629: 26629: template 26629: 26629: inline basic_string<_CharT, _Traits, _Alloc> 26629: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 26629: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 26629: { 26629: 26629: using _Alloc_traits = allocator_traits<_Alloc>; 26629: bool __use_rhs = false; 26629: if constexpr (typename _Alloc_traits::is_always_equal{}) 26629: __use_rhs = true; 26629: else if (__lhs.get_allocator() == __rhs.get_allocator()) 26629: __use_rhs = true; 26629: if (__use_rhs) 26629: 26629: { 26629: const auto __size = __lhs.size() + __rhs.size(); 26629: if (__size > __lhs.capacity() && __size <= __rhs.capacity()) 26629: return std::move(__rhs.insert(0, __lhs)); 26629: } 26629: return std::move(__lhs.append(__rhs)); 26629: } 26629: 26629: template 26629: 26629: inline basic_string<_CharT, _Traits, _Alloc> 26629: operator+(const _CharT* __lhs, 26629: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 26629: { return std::move(__rhs.insert(0, __lhs)); } 26629: 26629: template 26629: 26629: inline basic_string<_CharT, _Traits, _Alloc> 26629: operator+(_CharT __lhs, 26629: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 26629: { return std::move(__rhs.insert(0, 1, __lhs)); } 26629: 26629: template 26629: 26629: inline basic_string<_CharT, _Traits, _Alloc> 26629: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 26629: const _CharT* __rhs) 26629: { return std::move(__lhs.append(__rhs)); } 26629: 26629: template 26629: 26629: inline basic_string<_CharT, _Traits, _Alloc> 26629: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 26629: _CharT __rhs) 26629: { return std::move(__lhs.append(1, __rhs)); } 26629: # 3572 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: inline bool 26629: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: noexcept 26629: { return __lhs.compare(__rhs) == 0; } 26629: 26629: template 26629: 26629: inline 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, bool>::__type 26629: operator==(const basic_string<_CharT>& __lhs, 26629: const basic_string<_CharT>& __rhs) noexcept 26629: { return (__lhs.size() == __rhs.size() 26629: && !std::char_traits<_CharT>::compare(__lhs.data(), __rhs.data(), 26629: __lhs.size())); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline bool 26629: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const _CharT* __rhs) 26629: { return __lhs.compare(__rhs) == 0; } 26629: # 3638 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: inline bool 26629: operator==(const _CharT* __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: { return __rhs.compare(__lhs) == 0; } 26629: # 3651 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: inline bool 26629: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: noexcept 26629: { return !(__lhs == __rhs); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const _CharT* __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: { return !(__lhs == __rhs); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const _CharT* __rhs) 26629: { return !(__lhs == __rhs); } 26629: # 3689 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: inline bool 26629: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: noexcept 26629: { return __lhs.compare(__rhs) < 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const _CharT* __rhs) 26629: { return __lhs.compare(__rhs) < 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator<(const _CharT* __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: { return __rhs.compare(__lhs) > 0; } 26629: # 3727 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: inline bool 26629: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: noexcept 26629: { return __lhs.compare(__rhs) > 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const _CharT* __rhs) 26629: { return __lhs.compare(__rhs) > 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator>(const _CharT* __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: { return __rhs.compare(__lhs) < 0; } 26629: # 3765 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: inline bool 26629: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: noexcept 26629: { return __lhs.compare(__rhs) <= 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const _CharT* __rhs) 26629: { return __lhs.compare(__rhs) <= 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator<=(const _CharT* __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: { return __rhs.compare(__lhs) >= 0; } 26629: # 3803 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: inline bool 26629: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: noexcept 26629: { return __lhs.compare(__rhs) >= 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: const _CharT* __rhs) 26629: { return __lhs.compare(__rhs) >= 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator>=(const _CharT* __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: { return __rhs.compare(__lhs) <= 0; } 26629: # 3842 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: 26629: inline void 26629: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 26629: basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: noexcept(noexcept(__lhs.swap(__rhs))) 26629: { __lhs.swap(__rhs); } 26629: # 3863 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: operator>>(basic_istream<_CharT, _Traits>& __is, 26629: basic_string<_CharT, _Traits, _Alloc>& __str); 26629: 26629: template<> 26629: basic_istream& 26629: operator>>(basic_istream& __is, basic_string& __str); 26629: # 3881 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: inline basic_ostream<_CharT, _Traits>& 26629: operator<<(basic_ostream<_CharT, _Traits>& __os, 26629: const basic_string<_CharT, _Traits, _Alloc>& __str) 26629: { 26629: 26629: 26629: return __ostream_insert(__os, __str.data(), __str.size()); 26629: } 26629: # 3904 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: getline(basic_istream<_CharT, _Traits>& __is, 26629: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 26629: # 3921 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template 26629: inline basic_istream<_CharT, _Traits>& 26629: getline(basic_istream<_CharT, _Traits>& __is, 26629: basic_string<_CharT, _Traits, _Alloc>& __str) 26629: { return std::getline(__is, __str, __is.widen('\n')); } 26629: 26629: 26629: 26629: template 26629: inline basic_istream<_CharT, _Traits>& 26629: getline(basic_istream<_CharT, _Traits>&& __is, 26629: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 26629: { return std::getline(__is, __str, __delim); } 26629: 26629: 26629: template 26629: inline basic_istream<_CharT, _Traits>& 26629: getline(basic_istream<_CharT, _Traits>&& __is, 26629: basic_string<_CharT, _Traits, _Alloc>& __str) 26629: { return std::getline(__is, __str); } 26629: 26629: 26629: template<> 26629: basic_istream& 26629: getline(basic_istream& __in, basic_string& __str, 26629: char __delim); 26629: 26629: 26629: template<> 26629: basic_istream& 26629: getline(basic_istream& __in, basic_string& __str, 26629: wchar_t __delim); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/ext/string_conversions.h" 1 3 26629: # 32 "/usr/include/c++/12/ext/string_conversions.h" 3 26629: 26629: # 33 "/usr/include/c++/12/ext/string_conversions.h" 3 26629: # 41 "/usr/include/c++/12/ext/string_conversions.h" 3 26629: # 1 "/usr/include/c++/12/cstdlib" 1 3 26629: # 39 "/usr/include/c++/12/cstdlib" 3 26629: 26629: # 40 "/usr/include/c++/12/cstdlib" 3 26629: # 42 "/usr/include/c++/12/ext/string_conversions.h" 2 3 26629: # 1 "/usr/include/c++/12/cwchar" 1 3 26629: # 39 "/usr/include/c++/12/cwchar" 3 26629: 26629: # 40 "/usr/include/c++/12/cwchar" 3 26629: # 43 "/usr/include/c++/12/ext/string_conversions.h" 2 3 26629: # 1 "/usr/include/c++/12/cstdio" 1 3 26629: # 39 "/usr/include/c++/12/cstdio" 3 26629: 26629: # 40 "/usr/include/c++/12/cstdio" 3 26629: 26629: 26629: # 1 "/usr/include/stdio.h" 1 3 4 26629: # 27 "/usr/include/stdio.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 26629: # 28 "/usr/include/stdio.h" 2 3 4 26629: 26629: extern "C" { 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 34 "/usr/include/stdio.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdarg.h" 1 3 4 26629: # 37 "/usr/include/stdio.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 1 3 4 26629: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 3 4 26629: typedef struct _G_fpos_t 26629: { 26629: __off_t __pos; 26629: __mbstate_t __state; 26629: } __fpos_t; 26629: # 40 "/usr/include/stdio.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 1 3 4 26629: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 3 4 26629: typedef struct _G_fpos64_t 26629: { 26629: __off64_t __pos; 26629: __mbstate_t __state; 26629: } __fpos64_t; 26629: # 41 "/usr/include/stdio.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 1 3 4 26629: # 35 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 3 4 26629: struct _IO_FILE; 26629: struct _IO_marker; 26629: struct _IO_codecvt; 26629: struct _IO_wide_data; 26629: 26629: 26629: 26629: 26629: typedef void _IO_lock_t; 26629: 26629: 26629: 26629: 26629: 26629: struct _IO_FILE 26629: { 26629: int _flags; 26629: 26629: 26629: char *_IO_read_ptr; 26629: char *_IO_read_end; 26629: char *_IO_read_base; 26629: char *_IO_write_base; 26629: char *_IO_write_ptr; 26629: char *_IO_write_end; 26629: char *_IO_buf_base; 26629: char *_IO_buf_end; 26629: 26629: 26629: char *_IO_save_base; 26629: char *_IO_backup_base; 26629: char *_IO_save_end; 26629: 26629: struct _IO_marker *_markers; 26629: 26629: struct _IO_FILE *_chain; 26629: 26629: int _fileno; 26629: int _flags2; 26629: __off_t _old_offset; 26629: 26629: 26629: unsigned short _cur_column; 26629: signed char _vtable_offset; 26629: char _shortbuf[1]; 26629: 26629: _IO_lock_t *_lock; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __off64_t _offset; 26629: 26629: struct _IO_codecvt *_codecvt; 26629: struct _IO_wide_data *_wide_data; 26629: struct _IO_FILE *_freeres_list; 26629: void *_freeres_buf; 26629: size_t __pad5; 26629: int _mode; 26629: 26629: char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; 26629: }; 26629: # 44 "/usr/include/stdio.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 1 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 3 4 26629: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 26629: size_t __nbytes); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 26629: size_t __nbytes); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 26629: 26629: 26629: typedef int cookie_close_function_t (void *__cookie); 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef struct _IO_cookie_io_functions_t 26629: { 26629: cookie_read_function_t *read; 26629: cookie_write_function_t *write; 26629: cookie_seek_function_t *seek; 26629: cookie_close_function_t *close; 26629: } cookie_io_functions_t; 26629: # 47 "/usr/include/stdio.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: typedef __gnuc_va_list va_list; 26629: # 84 "/usr/include/stdio.h" 3 4 26629: typedef __fpos_t fpos_t; 26629: 26629: 26629: 26629: 26629: typedef __fpos64_t fpos64_t; 26629: # 133 "/usr/include/stdio.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4 26629: # 134 "/usr/include/stdio.h" 2 3 4 26629: # 143 "/usr/include/stdio.h" 3 4 26629: extern FILE *stdin; 26629: extern FILE *stdout; 26629: extern FILE *stderr; 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int remove (const char *__filename) noexcept (true); 26629: 26629: extern int rename (const char *__old, const char *__new) noexcept (true); 26629: 26629: 26629: 26629: extern int renameat (int __oldfd, const char *__old, int __newfd, 26629: const char *__new) noexcept (true); 26629: # 170 "/usr/include/stdio.h" 3 4 26629: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 26629: const char *__new, unsigned int __flags) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fclose (FILE *__stream); 26629: # 188 "/usr/include/stdio.h" 3 4 26629: extern FILE *tmpfile (void) 26629: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 26629: # 200 "/usr/include/stdio.h" 3 4 26629: extern FILE *tmpfile64 (void) 26629: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: # 222 "/usr/include/stdio.h" 3 4 26629: extern char *tempnam (const char *__dir, const char *__pfx) 26629: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fflush (FILE *__stream); 26629: # 239 "/usr/include/stdio.h" 3 4 26629: extern int fflush_unlocked (FILE *__stream); 26629: # 249 "/usr/include/stdio.h" 3 4 26629: extern int fcloseall (void); 26629: # 258 "/usr/include/stdio.h" 3 4 26629: extern FILE *fopen (const char *__restrict __filename, 26629: const char *__restrict __modes) 26629: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern FILE *freopen (const char *__restrict __filename, 26629: const char *__restrict __modes, 26629: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 26629: # 283 "/usr/include/stdio.h" 3 4 26629: extern FILE *fopen64 (const char *__restrict __filename, 26629: const char *__restrict __modes) 26629: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 26629: extern FILE *freopen64 (const char *__restrict __filename, 26629: const char *__restrict __modes, 26629: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) 26629: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: extern FILE *fopencookie (void *__restrict __magic_cookie, 26629: const char *__restrict __modes, 26629: cookie_io_functions_t __io_funcs) noexcept (true) 26629: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 26629: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) 26629: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 26629: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); 26629: 26629: 26629: 26629: 26629: 26629: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true); 26629: 26629: 26629: 26629: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 26629: int __modes, size_t __n) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 26629: size_t __size) noexcept (true); 26629: 26629: 26629: extern void setlinebuf (FILE *__stream) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fprintf (FILE *__restrict __stream, 26629: const char *__restrict __format, ...); 26629: 26629: 26629: 26629: 26629: extern int printf (const char *__restrict __format, ...); 26629: 26629: extern int sprintf (char *__restrict __s, 26629: const char *__restrict __format, ...) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 26629: __gnuc_va_list __arg); 26629: 26629: 26629: 26629: 26629: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 26629: 26629: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 26629: __gnuc_va_list __arg) noexcept (true); 26629: 26629: 26629: 26629: extern int snprintf (char *__restrict __s, size_t __maxlen, 26629: const char *__restrict __format, ...) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 26629: 26629: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 26629: const char *__restrict __format, __gnuc_va_list __arg) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 26629: 26629: 26629: 26629: 26629: 26629: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 26629: __gnuc_va_list __arg) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 26629: extern int __asprintf (char **__restrict __ptr, 26629: const char *__restrict __fmt, ...) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 26629: extern int asprintf (char **__restrict __ptr, 26629: const char *__restrict __fmt, ...) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int vdprintf (int __fd, const char *__restrict __fmt, 26629: __gnuc_va_list __arg) 26629: __attribute__ ((__format__ (__printf__, 2, 0))); 26629: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 26629: __attribute__ ((__format__ (__printf__, 2, 3))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fscanf (FILE *__restrict __stream, 26629: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 26629: 26629: extern int sscanf (const char *__restrict __s, 26629: const char *__restrict __format, ...) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 26629: # 431 "/usr/include/stdio.h" 2 3 4 26629: 26629: 26629: 26629: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf") 26629: 26629: __attribute__ ((__warn_unused_result__)); 26629: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf") 26629: __attribute__ ((__warn_unused_result__)); 26629: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc99_sscanf") 26629: 26629: ; 26629: # 459 "/usr/include/stdio.h" 3 4 26629: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 26629: __gnuc_va_list __arg) 26629: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 26629: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: extern int vsscanf (const char *__restrict __s, 26629: const char *__restrict __format, __gnuc_va_list __arg) 26629: noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); 26629: 26629: 26629: 26629: 26629: 26629: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf") 26629: 26629: 26629: 26629: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 26629: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf") 26629: 26629: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 26629: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc99_vsscanf") 26629: 26629: 26629: 26629: __attribute__ ((__format__ (__scanf__, 2, 0))); 26629: # 513 "/usr/include/stdio.h" 3 4 26629: extern int fgetc (FILE *__stream); 26629: extern int getc (FILE *__stream); 26629: 26629: 26629: 26629: 26629: 26629: extern int getchar (void); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int getc_unlocked (FILE *__stream); 26629: extern int getchar_unlocked (void); 26629: # 538 "/usr/include/stdio.h" 3 4 26629: extern int fgetc_unlocked (FILE *__stream); 26629: # 549 "/usr/include/stdio.h" 3 4 26629: extern int fputc (int __c, FILE *__stream); 26629: extern int putc (int __c, FILE *__stream); 26629: 26629: 26629: 26629: 26629: 26629: extern int putchar (int __c); 26629: # 565 "/usr/include/stdio.h" 3 4 26629: extern int fputc_unlocked (int __c, FILE *__stream); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int putc_unlocked (int __c, FILE *__stream); 26629: extern int putchar_unlocked (int __c); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int getw (FILE *__stream); 26629: 26629: 26629: extern int putw (int __w, FILE *__stream); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: # 615 "/usr/include/stdio.h" 3 4 26629: extern char *fgets_unlocked (char *__restrict __s, int __n, 26629: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: # 632 "/usr/include/stdio.h" 3 4 26629: extern __ssize_t __getdelim (char **__restrict __lineptr, 26629: size_t *__restrict __n, int __delimiter, 26629: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 26629: extern __ssize_t getdelim (char **__restrict __lineptr, 26629: size_t *__restrict __n, int __delimiter, 26629: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern __ssize_t getline (char **__restrict __lineptr, 26629: size_t *__restrict __n, 26629: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fputs (const char *__restrict __s, FILE *__restrict __stream); 26629: 26629: 26629: 26629: 26629: 26629: extern int puts (const char *__s); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int ungetc (int __c, FILE *__stream); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern size_t fread (void *__restrict __ptr, size_t __size, 26629: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 26629: size_t __n, FILE *__restrict __s); 26629: # 691 "/usr/include/stdio.h" 3 4 26629: extern int fputs_unlocked (const char *__restrict __s, 26629: FILE *__restrict __stream); 26629: # 702 "/usr/include/stdio.h" 3 4 26629: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 26629: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 26629: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 26629: size_t __n, FILE *__restrict __stream); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fseek (FILE *__stream, long int __off, int __whence); 26629: 26629: 26629: 26629: 26629: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern void rewind (FILE *__stream); 26629: # 736 "/usr/include/stdio.h" 3 4 26629: extern int fseeko (FILE *__stream, __off_t __off, int __whence); 26629: 26629: 26629: 26629: 26629: extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__)); 26629: # 760 "/usr/include/stdio.h" 3 4 26629: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); 26629: 26629: 26629: 26629: 26629: extern int fsetpos (FILE *__stream, const fpos_t *__pos); 26629: # 779 "/usr/include/stdio.h" 3 4 26629: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); 26629: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)); 26629: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); 26629: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); 26629: 26629: 26629: 26629: extern void clearerr (FILE *__stream) noexcept (true); 26629: 26629: extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern void clearerr_unlocked (FILE *__stream) noexcept (true); 26629: extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern void perror (const char *__s); 26629: 26629: 26629: 26629: 26629: extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: # 823 "/usr/include/stdio.h" 3 4 26629: extern int pclose (FILE *__stream); 26629: 26629: 26629: 26629: 26629: 26629: extern FILE *popen (const char *__command, const char *__modes) 26629: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern char *ctermid (char *__s) noexcept (true) 26629: __attribute__ ((__access__ (__write_only__, 1))); 26629: 26629: 26629: 26629: 26629: 26629: extern char *cuserid (char *__s) 26629: __attribute__ ((__access__ (__write_only__, 1))); 26629: 26629: 26629: 26629: 26629: struct obstack; 26629: 26629: 26629: extern int obstack_printf (struct obstack *__restrict __obstack, 26629: const char *__restrict __format, ...) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); 26629: extern int obstack_vprintf (struct obstack *__restrict __obstack, 26629: const char *__restrict __format, 26629: __gnuc_va_list __args) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern void flockfile (FILE *__stream) noexcept (true); 26629: 26629: 26629: 26629: extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: extern void funlockfile (FILE *__stream) noexcept (true); 26629: # 885 "/usr/include/stdio.h" 3 4 26629: extern int __uflow (FILE *); 26629: extern int __overflow (FILE *, int); 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 1 3 4 26629: # 26 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 26629: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 26629: const char *__restrict __format, ...) noexcept (true) 26629: __attribute__ ((__access__ (__write_only__, 1, 3))); 26629: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 26629: const char *__restrict __format, 26629: __gnuc_va_list __ap) noexcept (true) 26629: __attribute__ ((__access__ (__write_only__, 1, 3))); 26629: 26629: 26629: 26629: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 26629: size_t __slen, const char *__restrict __format, 26629: ...) noexcept (true) 26629: __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 26629: size_t __slen, const char *__restrict __format, 26629: __gnuc_va_list __ap) noexcept (true) 26629: __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: 26629: 26629: 26629: 26629: 26629: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 26629: const char *__restrict __format, ...); 26629: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 26629: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 26629: const char *__restrict __format, __gnuc_va_list __ap); 26629: extern int __vprintf_chk (int __flag, const char *__restrict __format, 26629: __gnuc_va_list __ap); 26629: 26629: 26629: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 26629: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 26629: extern int __vdprintf_chk (int __fd, int __flag, 26629: const char *__restrict __fmt, __gnuc_va_list __arg) 26629: __attribute__ ((__format__ (__printf__, 3, 0))); 26629: 26629: 26629: 26629: 26629: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 26629: const char *__restrict __fmt, ...) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 26629: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 26629: const char *__restrict __fmt, __gnuc_va_list __arg) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 26629: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 26629: int __flag, const char *__restrict __format, 26629: ...) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 26629: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 26629: int __flag, 26629: const char *__restrict __format, 26629: __gnuc_va_list __args) 26629: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 26629: # 90 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 26629: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 26629: FILE *__restrict __stream) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))); 26629: 26629: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 26629: size_t __size, size_t __n, 26629: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 26629: int __n, FILE *__restrict __stream) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))); 26629: 26629: 26629: 26629: 26629: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 26629: size_t __size, size_t __n, 26629: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 26629: # 891 "/usr/include/stdio.h" 2 3 4 26629: # 902 "/usr/include/stdio.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4 26629: # 46 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: getchar (void) 26629: { 26629: return getc (stdin); 26629: } 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: fgetc_unlocked (FILE *__fp) 26629: { 26629: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: getc_unlocked (FILE *__fp) 26629: { 26629: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 26629: } 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: getchar_unlocked (void) 26629: { 26629: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 26629: } 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: putchar (int __c) 26629: { 26629: return putc (__c, stdout); 26629: } 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: fputc_unlocked (int __c, FILE *__stream) 26629: { 26629: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: putc_unlocked (int __c, FILE *__stream) 26629: { 26629: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 26629: } 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: putchar_unlocked (int __c) 26629: { 26629: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 26629: getline (char **__lineptr, size_t *__n, FILE *__stream) 26629: { 26629: return __getdelim (__lineptr, __n, '\n', __stream); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) 26629: { 26629: return (((__stream)->_flags & 0x0010) != 0); 26629: } 26629: 26629: 26629: extern __inline __attribute__ ((__gnu_inline__)) int 26629: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) 26629: { 26629: return (((__stream)->_flags & 0x0020) != 0); 26629: } 26629: # 903 "/usr/include/stdio.h" 2 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 1 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) 26629: { 26629: return __builtin___sprintf_chk (__s, 2 - 1, 26629: __builtin_object_size (__s, 2 > 1), __fmt, 26629: __builtin_va_arg_pack ()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) vsprintf (char *__restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 26629: 26629: { 26629: return __builtin___vsprintf_chk (__s, 2 - 1, 26629: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 26629: } 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) 26629: 26629: { 26629: return __builtin___snprintf_chk (__s, __n, 2 - 1, 26629: __builtin_object_size (__s, 2 > 1), __fmt, 26629: __builtin_va_arg_pack ()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) vsnprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 26629: 26629: { 26629: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 26629: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 26629: { 26629: return __fprintf_chk (__stream, 2 - 1, __fmt, 26629: __builtin_va_arg_pack ()); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: printf (const char *__restrict __fmt, ...) 26629: { 26629: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: vprintf (const char *__restrict __fmt, __gnuc_va_list __ap) 26629: { 26629: 26629: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 26629: 26629: 26629: 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: vfprintf (FILE *__restrict __stream, 26629: const char *__restrict __fmt, __gnuc_va_list __ap) 26629: { 26629: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 26629: } 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: dprintf (int __fd, const char *__restrict __fmt, ...) 26629: { 26629: return __dprintf_chk (__fd, 2 - 1, __fmt, 26629: __builtin_va_arg_pack ()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 26629: { 26629: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 26629: } 26629: 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 26629: { 26629: return __asprintf_chk (__ptr, 2 - 1, __fmt, 26629: __builtin_va_arg_pack ()); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 26629: 26629: { 26629: return __asprintf_chk (__ptr, 2 - 1, __fmt, 26629: __builtin_va_arg_pack ()); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) 26629: 26629: { 26629: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 26629: __builtin_va_arg_pack ()); 26629: } 26629: # 165 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 26629: 26629: { 26629: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 26629: 26629: { 26629: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 26629: __ap); 26629: } 26629: # 198 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 26629: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) char * 26629: fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 26629: { 26629: size_t sz = __builtin_object_size (__s, 2 > 1); 26629: 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))))))) 26629: return __fgets_alias (__s, __n, __stream); 26629: 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))))) 26629: return __fgets_chk_warn (__s, sz, __n, __stream); 26629: return __fgets_chk (__s, sz, __n, __stream); 26629: } 26629: 26629: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)); 26629: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 26629: 26629: 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 26629: fread (void *__restrict __ptr, size_t __size, size_t __n, 26629: FILE *__restrict __stream) 26629: { 26629: size_t sz = __builtin_object_size (__ptr, 0); 26629: 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)))))) 26629: return __fread_alias (__ptr, __size, __n, __stream); 26629: 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)))) 26629: return __fread_chk_warn (__ptr, sz, __size, __n, __stream); 26629: return __fread_chk (__ptr, sz, __size, __n, __stream); 26629: } 26629: 26629: 26629: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) char * 26629: fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) 26629: { 26629: size_t sz = __builtin_object_size (__s, 2 > 1); 26629: 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))))))) 26629: return __fgets_unlocked_alias (__s, __n, __stream); 26629: 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))))) 26629: return __fgets_unlocked_chk_warn (__s, sz, __n, __stream); 26629: return __fgets_unlocked_chk (__s, sz, __n, __stream); 26629: } 26629: 26629: 26629: 26629: 26629: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)); 26629: 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") 26629: 26629: 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 26629: fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, 26629: FILE *__restrict __stream) 26629: { 26629: size_t sz = __builtin_object_size (__ptr, 0); 26629: 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)))))) 26629: { 26629: 26629: if (__builtin_constant_p (__size) 26629: && __builtin_constant_p (__n) 26629: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 26629: && __size * __n <= 8) 26629: { 26629: size_t __cnt = __size * __n; 26629: char *__cptr = (char *) __ptr; 26629: if (__cnt == 0) 26629: return 0; 26629: 26629: for (; __cnt > 0; --__cnt) 26629: { 26629: int __c = getc_unlocked (__stream); 26629: if (__c == (-1)) 26629: break; 26629: *__cptr++ = __c; 26629: } 26629: return (__cptr - (char *) __ptr) / __size; 26629: } 26629: 26629: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 26629: } 26629: 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)))) 26629: return __fread_unlocked_chk_warn (__ptr, sz, __size, __n, __stream); 26629: return __fread_unlocked_chk (__ptr, sz, __size, __n, __stream); 26629: 26629: } 26629: # 907 "/usr/include/stdio.h" 2 3 4 26629: 26629: 26629: } 26629: # 43 "/usr/include/c++/12/cstdio" 2 3 26629: # 96 "/usr/include/c++/12/cstdio" 3 26629: namespace std 26629: { 26629: using ::FILE; 26629: using ::fpos_t; 26629: 26629: using ::clearerr; 26629: using ::fclose; 26629: using ::feof; 26629: using ::ferror; 26629: using ::fflush; 26629: using ::fgetc; 26629: using ::fgetpos; 26629: using ::fgets; 26629: using ::fopen; 26629: using ::fprintf; 26629: using ::fputc; 26629: using ::fputs; 26629: using ::fread; 26629: using ::freopen; 26629: using ::fscanf; 26629: using ::fseek; 26629: using ::fsetpos; 26629: using ::ftell; 26629: using ::fwrite; 26629: using ::getc; 26629: using ::getchar; 26629: 26629: 26629: 26629: 26629: using ::perror; 26629: using ::printf; 26629: using ::putc; 26629: using ::putchar; 26629: using ::puts; 26629: using ::remove; 26629: using ::rename; 26629: using ::rewind; 26629: using ::scanf; 26629: using ::setbuf; 26629: using ::setvbuf; 26629: using ::sprintf; 26629: using ::sscanf; 26629: using ::tmpfile; 26629: 26629: using ::tmpnam; 26629: 26629: using ::ungetc; 26629: using ::vfprintf; 26629: using ::vprintf; 26629: using ::vsprintf; 26629: } 26629: # 157 "/usr/include/c++/12/cstdio" 3 26629: namespace __gnu_cxx 26629: { 26629: # 175 "/usr/include/c++/12/cstdio" 3 26629: using ::snprintf; 26629: using ::vfscanf; 26629: using ::vscanf; 26629: using ::vsnprintf; 26629: using ::vsscanf; 26629: 26629: } 26629: 26629: namespace std 26629: { 26629: using ::__gnu_cxx::snprintf; 26629: using ::__gnu_cxx::vfscanf; 26629: using ::__gnu_cxx::vscanf; 26629: using ::__gnu_cxx::vsnprintf; 26629: using ::__gnu_cxx::vsscanf; 26629: } 26629: # 44 "/usr/include/c++/12/ext/string_conversions.h" 2 3 26629: # 1 "/usr/include/c++/12/cerrno" 1 3 26629: # 39 "/usr/include/c++/12/cerrno" 3 26629: 26629: # 40 "/usr/include/c++/12/cerrno" 3 26629: 26629: 26629: # 1 "/usr/include/errno.h" 1 3 4 26629: # 28 "/usr/include/errno.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 1 3 4 26629: # 26 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 3 4 26629: # 1 "/usr/include/linux/errno.h" 1 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/asm/errno.h" 1 3 4 26629: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 26629: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 26629: # 2 "/usr/include/arm-linux-gnueabihf/asm/errno.h" 2 3 4 26629: # 2 "/usr/include/linux/errno.h" 2 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 2 3 4 26629: # 29 "/usr/include/errno.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: extern "C" { 26629: 26629: 26629: extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern char *program_invocation_name; 26629: extern char *program_invocation_short_name; 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 1 3 4 26629: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 3 4 26629: typedef int error_t; 26629: # 49 "/usr/include/errno.h" 2 3 4 26629: 26629: 26629: 26629: } 26629: # 43 "/usr/include/c++/12/cerrno" 2 3 26629: # 45 "/usr/include/c++/12/ext/string_conversions.h" 2 3 26629: 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: _Ret 26629: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 26629: const char* __name, const _CharT* __str, std::size_t* __idx, 26629: _Base... __base) 26629: { 26629: _Ret __ret; 26629: 26629: _CharT* __endptr; 26629: 26629: struct _Save_errno { 26629: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 26629: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 26629: int _M_errno; 26629: } const __save_errno; 26629: 26629: struct _Range_chk { 26629: static bool 26629: _S_chk(_TRet, std::false_type) { return false; } 26629: 26629: static bool 26629: _S_chk(_TRet __val, std::true_type) 26629: { 26629: return __val < _TRet(__numeric_traits::__min) 26629: || __val > _TRet(__numeric_traits::__max); 26629: } 26629: }; 26629: 26629: const _TRet __tmp = __convf(__str, &__endptr, __base...); 26629: 26629: if (__endptr == __str) 26629: std::__throw_invalid_argument(__name); 26629: else if ((*__errno_location ()) == 34 26629: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 26629: std::__throw_out_of_range(__name); 26629: else 26629: __ret = __tmp; 26629: 26629: if (__idx) 26629: *__idx = __endptr - __str; 26629: 26629: return __ret; 26629: } 26629: 26629: 26629: template 26629: _String 26629: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 26629: __builtin_va_list), std::size_t __n, 26629: const _CharT* __fmt, ...) 26629: { 26629: 26629: 26629: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 26629: * __n)); 26629: 26629: __builtin_va_list __args; 26629: __builtin_va_start(__args, __fmt); 26629: 26629: const int __len = __convf(__s, __n, __fmt, __args); 26629: 26629: __builtin_va_end(__args); 26629: 26629: return _String(__s, __s + __len); 26629: } 26629: 26629: 26629: } 26629: # 3961 "/usr/include/c++/12/bits/basic_string.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/charconv.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/charconv.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/charconv.h" 3 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace __detail 26629: { 26629: 26629: template 26629: constexpr unsigned 26629: __to_chars_len(_Tp __value, int __base = 10) noexcept 26629: { 26629: static_assert(is_integral<_Tp>::value, "implementation bug"); 26629: static_assert(is_unsigned<_Tp>::value, "implementation bug"); 26629: 26629: unsigned __n = 1; 26629: const unsigned __b2 = __base * __base; 26629: const unsigned __b3 = __b2 * __base; 26629: const unsigned long __b4 = __b3 * __base; 26629: for (;;) 26629: { 26629: if (__value < (unsigned)__base) return __n; 26629: if (__value < __b2) return __n + 1; 26629: if (__value < __b3) return __n + 2; 26629: if (__value < __b4) return __n + 3; 26629: __value /= __b4; 26629: __n += 4; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: void 26629: __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept 26629: { 26629: static_assert(is_integral<_Tp>::value, "implementation bug"); 26629: static_assert(is_unsigned<_Tp>::value, "implementation bug"); 26629: 26629: static constexpr char __digits[201] = 26629: "0001020304050607080910111213141516171819" 26629: "2021222324252627282930313233343536373839" 26629: "4041424344454647484950515253545556575859" 26629: "6061626364656667686970717273747576777879" 26629: "8081828384858687888990919293949596979899"; 26629: unsigned __pos = __len - 1; 26629: while (__val >= 100) 26629: { 26629: auto const __num = (__val % 100) * 2; 26629: __val /= 100; 26629: __first[__pos] = __digits[__num + 1]; 26629: __first[__pos - 1] = __digits[__num]; 26629: __pos -= 2; 26629: } 26629: if (__val >= 10) 26629: { 26629: auto const __num = __val * 2; 26629: __first[1] = __digits[__num + 1]; 26629: __first[0] = __digits[__num]; 26629: } 26629: else 26629: __first[0] = '0' + __val; 26629: } 26629: 26629: } 26629: 26629: } 26629: # 3962 "/usr/include/c++/12/bits/basic_string.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace __cxx11 { 26629: 26629: 26629: 26629: inline int 26629: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 26629: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 26629: __idx, __base); } 26629: 26629: inline long 26629: stol(const string& __str, size_t* __idx = 0, int __base = 10) 26629: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 26629: __idx, __base); } 26629: 26629: inline unsigned long 26629: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 26629: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 26629: __idx, __base); } 26629: 26629: inline long long 26629: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 26629: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 26629: __idx, __base); } 26629: 26629: inline unsigned long long 26629: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 26629: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 26629: __idx, __base); } 26629: 26629: 26629: inline float 26629: stof(const string& __str, size_t* __idx = 0) 26629: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 26629: 26629: inline double 26629: stod(const string& __str, size_t* __idx = 0) 26629: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 26629: 26629: inline long double 26629: stold(const string& __str, size_t* __idx = 0) 26629: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 26629: 26629: 26629: 26629: 26629: inline string 26629: to_string(int __val) 26629: 26629: noexcept 26629: 26629: { 26629: const bool __neg = __val < 0; 26629: const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; 26629: const auto __len = __detail::__to_chars_len(__uval); 26629: string __str(__neg + __len, '-'); 26629: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 26629: return __str; 26629: } 26629: 26629: inline string 26629: to_string(unsigned __val) 26629: 26629: noexcept 26629: 26629: { 26629: string __str(__detail::__to_chars_len(__val), '\0'); 26629: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 26629: return __str; 26629: } 26629: 26629: inline string 26629: to_string(long __val) 26629: 26629: noexcept 26629: 26629: { 26629: const bool __neg = __val < 0; 26629: const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; 26629: const auto __len = __detail::__to_chars_len(__uval); 26629: string __str(__neg + __len, '-'); 26629: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 26629: return __str; 26629: } 26629: 26629: inline string 26629: to_string(unsigned long __val) 26629: 26629: noexcept 26629: 26629: { 26629: string __str(__detail::__to_chars_len(__val), '\0'); 26629: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 26629: return __str; 26629: } 26629: 26629: inline string 26629: to_string(long long __val) 26629: { 26629: const bool __neg = __val < 0; 26629: const unsigned long long __uval 26629: = __neg ? (unsigned long long)~__val + 1ull : __val; 26629: const auto __len = __detail::__to_chars_len(__uval); 26629: string __str(__neg + __len, '-'); 26629: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 26629: return __str; 26629: } 26629: 26629: inline string 26629: to_string(unsigned long long __val) 26629: { 26629: string __str(__detail::__to_chars_len(__val), '\0'); 26629: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 26629: return __str; 26629: } 26629: 26629: 26629: 26629: 26629: inline string 26629: to_string(float __val) 26629: { 26629: const int __n = 26629: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 26629: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 26629: "%f", __val); 26629: } 26629: 26629: inline string 26629: to_string(double __val) 26629: { 26629: const int __n = 26629: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 26629: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 26629: "%f", __val); 26629: } 26629: 26629: inline string 26629: to_string(long double __val) 26629: { 26629: const int __n = 26629: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 26629: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 26629: "%Lf", __val); 26629: } 26629: 26629: 26629: 26629: inline int 26629: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 26629: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 26629: __idx, __base); } 26629: 26629: inline long 26629: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 26629: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 26629: __idx, __base); } 26629: 26629: inline unsigned long 26629: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 26629: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 26629: __idx, __base); } 26629: 26629: inline long long 26629: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 26629: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 26629: __idx, __base); } 26629: 26629: inline unsigned long long 26629: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 26629: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 26629: __idx, __base); } 26629: 26629: 26629: inline float 26629: stof(const wstring& __str, size_t* __idx = 0) 26629: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 26629: 26629: inline double 26629: stod(const wstring& __str, size_t* __idx = 0) 26629: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 26629: 26629: inline long double 26629: stold(const wstring& __str, size_t* __idx = 0) 26629: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 26629: 26629: 26629: 26629: inline wstring 26629: to_wstring(int __val) 26629: { return __gnu_cxx::__to_xstring(&std::vswprintf, 4 * sizeof(int), 26629: L"%d", __val); } 26629: 26629: inline wstring 26629: to_wstring(unsigned __val) 26629: { return __gnu_cxx::__to_xstring(&std::vswprintf, 26629: 4 * sizeof(unsigned), 26629: L"%u", __val); } 26629: 26629: inline wstring 26629: to_wstring(long __val) 26629: { return __gnu_cxx::__to_xstring(&std::vswprintf, 4 * sizeof(long), 26629: L"%ld", __val); } 26629: 26629: inline wstring 26629: to_wstring(unsigned long __val) 26629: { return __gnu_cxx::__to_xstring(&std::vswprintf, 26629: 4 * sizeof(unsigned long), 26629: L"%lu", __val); } 26629: 26629: inline wstring 26629: to_wstring(long long __val) 26629: { return __gnu_cxx::__to_xstring(&std::vswprintf, 26629: 4 * sizeof(long long), 26629: L"%lld", __val); } 26629: 26629: inline wstring 26629: to_wstring(unsigned long long __val) 26629: { return __gnu_cxx::__to_xstring(&std::vswprintf, 26629: 4 * sizeof(unsigned long long), 26629: L"%llu", __val); } 26629: 26629: inline wstring 26629: to_wstring(float __val) 26629: { 26629: const int __n = 26629: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 26629: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 26629: L"%f", __val); 26629: } 26629: 26629: inline wstring 26629: to_wstring(double __val) 26629: { 26629: const int __n = 26629: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 26629: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 26629: L"%f", __val); 26629: } 26629: 26629: inline wstring 26629: to_wstring(long double __val) 26629: { 26629: const int __n = 26629: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 26629: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 26629: L"%Lf", __val); 26629: } 26629: 26629: 26629: 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const string& __s) const noexcept 26629: { return std::_Hash_impl::hash(__s.data(), __s.length()); } 26629: }; 26629: 26629: template<> 26629: struct __is_fast_hash> : std::false_type 26629: { }; 26629: 26629: 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const wstring& __s) const noexcept 26629: { return std::_Hash_impl::hash(__s.data(), 26629: __s.length() * sizeof(wchar_t)); } 26629: }; 26629: 26629: template<> 26629: struct __is_fast_hash> : std::false_type 26629: { }; 26629: # 4281 "/usr/include/c++/12/bits/basic_string.h" 3 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const u16string& __s) const noexcept 26629: { return std::_Hash_impl::hash(__s.data(), 26629: __s.length() * sizeof(char16_t)); } 26629: }; 26629: 26629: template<> 26629: struct __is_fast_hash> : std::false_type 26629: { }; 26629: 26629: 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const u32string& __s) const noexcept 26629: { return std::_Hash_impl::hash(__s.data(), 26629: __s.length() * sizeof(char32_t)); } 26629: }; 26629: 26629: template<> 26629: struct __is_fast_hash> : std::false_type 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: inline namespace literals 26629: { 26629: inline namespace string_literals 26629: { 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wliteral-suffix" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: inline basic_string 26629: operator""s(const char* __str, size_t __len) 26629: { return basic_string{__str, __len}; } 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: inline basic_string 26629: operator""s(const wchar_t* __str, size_t __len) 26629: { return basic_string{__str, __len}; } 26629: # 4344 "/usr/include/c++/12/bits/basic_string.h" 3 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: inline basic_string 26629: operator""s(const char16_t* __str, size_t __len) 26629: { return basic_string{__str, __len}; } 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: inline basic_string 26629: operator""s(const char32_t* __str, size_t __len) 26629: { return basic_string{__str, __len}; } 26629: 26629: 26629: #pragma GCC diagnostic pop 26629: } 26629: } 26629: 26629: 26629: namespace __detail::__variant 26629: { 26629: template struct _Never_valueless_alt; 26629: 26629: 26629: 26629: template 26629: struct _Never_valueless_alt> 26629: : __and_< 26629: is_nothrow_move_constructible>, 26629: is_nothrow_move_assignable> 26629: >::type 26629: { }; 26629: } 26629: 26629: 26629: 26629: 26629: } 26629: # 54 "/usr/include/c++/12/string" 2 3 26629: # 1 "/usr/include/c++/12/bits/basic_string.tcc" 1 3 26629: # 42 "/usr/include/c++/12/bits/basic_string.tcc" 3 26629: 26629: # 43 "/usr/include/c++/12/bits/basic_string.tcc" 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: template 26629: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>::npos; 26629: 26629: template 26629: 26629: void 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: swap(basic_string& __s) noexcept 26629: { 26629: if (this == std::__addressof(__s)) 26629: return; 26629: 26629: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 26629: 26629: if (_M_is_local()) 26629: if (__s._M_is_local()) 26629: { 26629: if (length() && __s.length()) 26629: { 26629: _CharT __tmp_data[_S_local_capacity + 1]; 26629: traits_type::copy(__tmp_data, __s._M_local_buf, 26629: __s.length() + 1); 26629: traits_type::copy(__s._M_local_buf, _M_local_buf, 26629: length() + 1); 26629: traits_type::copy(_M_local_buf, __tmp_data, 26629: __s.length() + 1); 26629: } 26629: else if (__s.length()) 26629: { 26629: traits_type::copy(_M_local_buf, __s._M_local_buf, 26629: __s.length() + 1); 26629: _M_length(__s.length()); 26629: __s._M_set_length(0); 26629: return; 26629: } 26629: else if (length()) 26629: { 26629: traits_type::copy(__s._M_local_buf, _M_local_buf, 26629: length() + 1); 26629: __s._M_length(length()); 26629: _M_set_length(0); 26629: return; 26629: } 26629: } 26629: else 26629: { 26629: const size_type __tmp_capacity = __s._M_allocated_capacity; 26629: traits_type::copy(__s._M_local_buf, _M_local_buf, 26629: length() + 1); 26629: _M_data(__s._M_data()); 26629: __s._M_data(__s._M_local_buf); 26629: _M_capacity(__tmp_capacity); 26629: } 26629: else 26629: { 26629: const size_type __tmp_capacity = _M_allocated_capacity; 26629: if (__s._M_is_local()) 26629: { 26629: traits_type::copy(_M_local_buf, __s._M_local_buf, 26629: __s.length() + 1); 26629: __s._M_data(_M_data()); 26629: _M_data(_M_local_buf); 26629: } 26629: else 26629: { 26629: pointer __tmp_ptr = _M_data(); 26629: _M_data(__s._M_data()); 26629: __s._M_data(__tmp_ptr); 26629: _M_capacity(__s._M_allocated_capacity); 26629: } 26629: __s._M_capacity(__tmp_capacity); 26629: } 26629: 26629: const size_type __tmp_length = length(); 26629: _M_length(__s.length()); 26629: __s._M_length(__tmp_length); 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::pointer 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_create(size_type& __capacity, size_type __old_capacity) 26629: { 26629: 26629: 26629: if (__capacity > max_size()) 26629: std::__throw_length_error(("basic_string::_M_create")); 26629: 26629: 26629: 26629: 26629: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 26629: { 26629: __capacity = 2 * __old_capacity; 26629: 26629: if (__capacity > max_size()) 26629: __capacity = max_size(); 26629: } 26629: 26629: 26629: 26629: return _Alloc_traits::allocate(_M_get_allocator(), __capacity + 1); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: template 26629: 26629: void 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_construct(_InIterator __beg, _InIterator __end, 26629: std::input_iterator_tag) 26629: { 26629: size_type __len = 0; 26629: size_type __capacity = size_type(_S_local_capacity); 26629: 26629: pointer __p = _M_use_local_data(); 26629: 26629: while (__beg != __end && __len < __capacity) 26629: { 26629: __p[__len++] = *__beg; 26629: ++__beg; 26629: } 26629: 26629: struct _Guard 26629: { 26629: 26629: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 26629: 26629: 26629: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 26629: 26629: basic_string* _M_guarded; 26629: } __guard(this); 26629: 26629: while (__beg != __end) 26629: { 26629: if (__len == __capacity) 26629: { 26629: 26629: __capacity = __len + 1; 26629: pointer __another = _M_create(__capacity, __len); 26629: this->_S_copy(__another, _M_data(), __len); 26629: _M_dispose(); 26629: _M_data(__another); 26629: _M_capacity(__capacity); 26629: } 26629: traits_type::assign(_M_data()[__len++], *__beg); 26629: ++__beg; 26629: } 26629: 26629: __guard._M_guarded = 0; 26629: 26629: _M_set_length(__len); 26629: } 26629: 26629: template 26629: template 26629: 26629: void 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_construct(_InIterator __beg, _InIterator __end, 26629: std::forward_iterator_tag) 26629: { 26629: size_type __dnew = static_cast(std::distance(__beg, __end)); 26629: 26629: if (__dnew > size_type(_S_local_capacity)) 26629: { 26629: _M_data(_M_create(__dnew, size_type(0))); 26629: _M_capacity(__dnew); 26629: } 26629: else 26629: _M_use_local_data(); 26629: 26629: 26629: struct _Guard 26629: { 26629: 26629: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 26629: 26629: 26629: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 26629: 26629: basic_string* _M_guarded; 26629: } __guard(this); 26629: 26629: this->_S_copy_chars(_M_data(), __beg, __end); 26629: 26629: __guard._M_guarded = 0; 26629: 26629: _M_set_length(__dnew); 26629: } 26629: 26629: template 26629: 26629: void 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_construct(size_type __n, _CharT __c) 26629: { 26629: if (__n > size_type(_S_local_capacity)) 26629: { 26629: _M_data(_M_create(__n, size_type(0))); 26629: _M_capacity(__n); 26629: } 26629: else 26629: _M_use_local_data(); 26629: 26629: if (__n) 26629: this->_S_assign(_M_data(), __n, __c); 26629: 26629: _M_set_length(__n); 26629: } 26629: 26629: template 26629: 26629: void 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_assign(const basic_string& __str) 26629: { 26629: if (this != std::__addressof(__str)) 26629: { 26629: const size_type __rsize = __str.length(); 26629: const size_type __capacity = capacity(); 26629: 26629: if (__rsize > __capacity) 26629: { 26629: size_type __new_capacity = __rsize; 26629: pointer __tmp = _M_create(__new_capacity, __capacity); 26629: _M_dispose(); 26629: _M_data(__tmp); 26629: _M_capacity(__new_capacity); 26629: } 26629: 26629: if (__rsize) 26629: this->_S_copy(_M_data(), __str._M_data(), __rsize); 26629: 26629: _M_set_length(__rsize); 26629: } 26629: } 26629: 26629: template 26629: 26629: void 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: reserve(size_type __res) 26629: { 26629: const size_type __capacity = capacity(); 26629: 26629: 26629: 26629: 26629: if (__res <= __capacity) 26629: return; 26629: 26629: pointer __tmp = _M_create(__res, __capacity); 26629: this->_S_copy(__tmp, _M_data(), length() + 1); 26629: _M_dispose(); 26629: _M_data(__tmp); 26629: _M_capacity(__res); 26629: } 26629: 26629: template 26629: 26629: void 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 26629: size_type __len2) 26629: { 26629: const size_type __how_much = length() - __pos - __len1; 26629: 26629: size_type __new_capacity = length() + __len2 - __len1; 26629: pointer __r = _M_create(__new_capacity, capacity()); 26629: 26629: if (__pos) 26629: this->_S_copy(__r, _M_data(), __pos); 26629: if (__s && __len2) 26629: this->_S_copy(__r + __pos, __s, __len2); 26629: if (__how_much) 26629: this->_S_copy(__r + __pos + __len2, 26629: _M_data() + __pos + __len1, __how_much); 26629: 26629: _M_dispose(); 26629: _M_data(__r); 26629: _M_capacity(__new_capacity); 26629: } 26629: 26629: template 26629: 26629: void 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_erase(size_type __pos, size_type __n) 26629: { 26629: const size_type __how_much = length() - __pos - __n; 26629: 26629: if (__how_much && __n) 26629: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 26629: 26629: _M_set_length(length() - __n); 26629: } 26629: 26629: template 26629: 26629: void 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: reserve() 26629: { 26629: if (_M_is_local()) 26629: return; 26629: 26629: const size_type __length = length(); 26629: const size_type __capacity = _M_allocated_capacity; 26629: 26629: if (__length <= size_type(_S_local_capacity)) 26629: { 26629: this->_S_copy(_M_use_local_data(), _M_data(), __length + 1); 26629: _M_destroy(__capacity); 26629: _M_data(_M_local_data()); 26629: } 26629: 26629: else if (__length < __capacity) 26629: try 26629: { 26629: pointer __tmp 26629: = _Alloc_traits::allocate(_M_get_allocator(), __length + 1); 26629: this->_S_copy(__tmp, _M_data(), __length + 1); 26629: _M_dispose(); 26629: _M_data(__tmp); 26629: _M_capacity(__length); 26629: } 26629: catch (const __cxxabiv1::__forced_unwind&) 26629: { throw; } 26629: catch (...) 26629: { } 26629: 26629: } 26629: 26629: template 26629: 26629: void 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: resize(size_type __n, _CharT __c) 26629: { 26629: const size_type __size = this->size(); 26629: if (__size < __n) 26629: this->append(__n - __size, __c); 26629: else if (__n < __size) 26629: this->_M_set_length(__n); 26629: } 26629: 26629: template 26629: 26629: basic_string<_CharT, _Traits, _Alloc>& 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_append(const _CharT* __s, size_type __n) 26629: { 26629: const size_type __len = __n + this->size(); 26629: 26629: if (__len <= this->capacity()) 26629: { 26629: if (__n) 26629: this->_S_copy(this->_M_data() + this->size(), __s, __n); 26629: } 26629: else 26629: this->_M_mutate(this->size(), size_type(0), __s, __n); 26629: 26629: this->_M_set_length(__len); 26629: return *this; 26629: } 26629: 26629: template 26629: template 26629: 26629: basic_string<_CharT, _Traits, _Alloc>& 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 26629: _InputIterator __k1, _InputIterator __k2, 26629: std::__false_type) 26629: { 26629: 26629: 26629: const basic_string __s(__k1, __k2, this->get_allocator()); 26629: const size_type __n1 = __i2 - __i1; 26629: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 26629: __s.size()); 26629: } 26629: 26629: template 26629: 26629: basic_string<_CharT, _Traits, _Alloc>& 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 26629: _CharT __c) 26629: { 26629: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 26629: 26629: const size_type __old_size = this->size(); 26629: const size_type __new_size = __old_size + __n2 - __n1; 26629: 26629: if (__new_size <= this->capacity()) 26629: { 26629: pointer __p = this->_M_data() + __pos1; 26629: 26629: const size_type __how_much = __old_size - __pos1 - __n1; 26629: if (__how_much && __n1 != __n2) 26629: this->_S_move(__p + __n2, __p + __n1, __how_much); 26629: } 26629: else 26629: this->_M_mutate(__pos1, __n1, 0, __n2); 26629: 26629: if (__n2) 26629: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 26629: 26629: this->_M_set_length(__new_size); 26629: return *this; 26629: } 26629: 26629: template 26629: 26629: basic_string<_CharT, _Traits, _Alloc>& 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 26629: const size_type __len2) 26629: { 26629: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 26629: 26629: const size_type __old_size = this->size(); 26629: const size_type __new_size = __old_size + __len2 - __len1; 26629: 26629: if (__new_size <= this->capacity()) 26629: { 26629: pointer __p = this->_M_data() + __pos; 26629: 26629: const size_type __how_much = __old_size - __pos - __len1; 26629: # 503 "/usr/include/c++/12/bits/basic_string.tcc" 3 26629: if (_M_disjunct(__s)) 26629: { 26629: if (__how_much && __len1 != __len2) 26629: this->_S_move(__p + __len2, __p + __len1, __how_much); 26629: if (__len2) 26629: this->_S_copy(__p, __s, __len2); 26629: } 26629: else 26629: { 26629: 26629: if (__len2 && __len2 <= __len1) 26629: this->_S_move(__p, __s, __len2); 26629: if (__how_much && __len1 != __len2) 26629: this->_S_move(__p + __len2, __p + __len1, __how_much); 26629: if (__len2 > __len1) 26629: { 26629: if (__s + __len2 <= __p + __len1) 26629: this->_S_move(__p, __s, __len2); 26629: else if (__s >= __p + __len1) 26629: { 26629: 26629: 26629: const size_type __poff = (__s - __p) + (__len2 - __len1); 26629: this->_S_copy(__p, __p + __poff, __len2); 26629: } 26629: else 26629: { 26629: const size_type __nleft = (__p + __len1) - __s; 26629: this->_S_move(__p, __s, __nleft); 26629: this->_S_copy(__p + __nleft, __p + __len2, 26629: __len2 - __nleft); 26629: } 26629: } 26629: } 26629: } 26629: else 26629: this->_M_mutate(__pos, __len1, __s, __len2); 26629: 26629: this->_M_set_length(__new_size); 26629: return *this; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: copy(_CharT* __s, size_type __n, size_type __pos) const 26629: { 26629: _M_check(__pos, "basic_string::copy"); 26629: __n = _M_limit(__pos, __n); 26629: ; 26629: if (__n) 26629: _S_copy(__s, _M_data() + __pos, __n); 26629: 26629: return __n; 26629: } 26629: # 603 "/usr/include/c++/12/bits/basic_string.tcc" 3 26629: template 26629: 26629: basic_string<_CharT, _Traits, _Alloc> 26629: operator+(const _CharT* __lhs, 26629: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: { 26629: ; 26629: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 26629: typedef typename __string_type::size_type __size_type; 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind<_CharT>::other _Char_alloc_type; 26629: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 26629: const __size_type __len = _Traits::length(__lhs); 26629: __string_type __str(_Alloc_traits::_S_select_on_copy( 26629: __rhs.get_allocator())); 26629: __str.reserve(__len + __rhs.size()); 26629: __str.append(__lhs, __len); 26629: __str.append(__rhs); 26629: return __str; 26629: } 26629: 26629: template 26629: 26629: basic_string<_CharT, _Traits, _Alloc> 26629: operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) 26629: { 26629: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 26629: typedef typename __string_type::size_type __size_type; 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind<_CharT>::other _Char_alloc_type; 26629: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 26629: __string_type __str(_Alloc_traits::_S_select_on_copy( 26629: __rhs.get_allocator())); 26629: const __size_type __len = __rhs.size(); 26629: __str.reserve(__len + 1); 26629: __str.append(__size_type(1), __lhs); 26629: __str.append(__rhs); 26629: return __str; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: find(const _CharT* __s, size_type __pos, size_type __n) const 26629: noexcept 26629: { 26629: ; 26629: const size_type __size = this->size(); 26629: 26629: if (__n == 0) 26629: return __pos <= __size ? __pos : npos; 26629: if (__pos >= __size) 26629: return npos; 26629: 26629: const _CharT __elem0 = __s[0]; 26629: const _CharT* const __data = data(); 26629: const _CharT* __first = __data + __pos; 26629: const _CharT* const __last = __data + __size; 26629: size_type __len = __size - __pos; 26629: 26629: while (__len >= __n) 26629: { 26629: 26629: __first = traits_type::find(__first, __len - __n + 1, __elem0); 26629: if (!__first) 26629: return npos; 26629: 26629: 26629: 26629: if (traits_type::compare(__first, __s, __n) == 0) 26629: return __first - __data; 26629: __len = __last - ++__first; 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: find(_CharT __c, size_type __pos) const noexcept 26629: { 26629: size_type __ret = npos; 26629: const size_type __size = this->size(); 26629: if (__pos < __size) 26629: { 26629: const _CharT* __data = _M_data(); 26629: const size_type __n = __size - __pos; 26629: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 26629: if (__p) 26629: __ret = __p - __data; 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: rfind(const _CharT* __s, size_type __pos, size_type __n) const 26629: noexcept 26629: { 26629: ; 26629: const size_type __size = this->size(); 26629: if (__n <= __size) 26629: { 26629: __pos = std::min(size_type(__size - __n), __pos); 26629: const _CharT* __data = _M_data(); 26629: do 26629: { 26629: if (traits_type::compare(__data + __pos, __s, __n) == 0) 26629: return __pos; 26629: } 26629: while (__pos-- > 0); 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: rfind(_CharT __c, size_type __pos) const noexcept 26629: { 26629: size_type __size = this->size(); 26629: if (__size) 26629: { 26629: if (--__size > __pos) 26629: __size = __pos; 26629: for (++__size; __size-- > 0; ) 26629: if (traits_type::eq(_M_data()[__size], __c)) 26629: return __size; 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 26629: noexcept 26629: { 26629: ; 26629: for (; __n && __pos < this->size(); ++__pos) 26629: { 26629: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 26629: if (__p) 26629: return __pos; 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 26629: noexcept 26629: { 26629: ; 26629: size_type __size = this->size(); 26629: if (__size && __n) 26629: { 26629: if (--__size > __pos) 26629: __size = __pos; 26629: do 26629: { 26629: if (traits_type::find(__s, __n, _M_data()[__size])) 26629: return __size; 26629: } 26629: while (__size-- != 0); 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 26629: noexcept 26629: { 26629: ; 26629: for (; __pos < this->size(); ++__pos) 26629: if (!traits_type::find(__s, __n, _M_data()[__pos])) 26629: return __pos; 26629: return npos; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: find_first_not_of(_CharT __c, size_type __pos) const noexcept 26629: { 26629: for (; __pos < this->size(); ++__pos) 26629: if (!traits_type::eq(_M_data()[__pos], __c)) 26629: return __pos; 26629: return npos; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 26629: noexcept 26629: { 26629: ; 26629: size_type __size = this->size(); 26629: if (__size) 26629: { 26629: if (--__size > __pos) 26629: __size = __pos; 26629: do 26629: { 26629: if (!traits_type::find(__s, __n, _M_data()[__size])) 26629: return __size; 26629: } 26629: while (__size--); 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: 26629: typename basic_string<_CharT, _Traits, _Alloc>::size_type 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: find_last_not_of(_CharT __c, size_type __pos) const noexcept 26629: { 26629: size_type __size = this->size(); 26629: if (__size) 26629: { 26629: if (--__size > __pos) 26629: __size = __pos; 26629: do 26629: { 26629: if (!traits_type::eq(_M_data()[__size], __c)) 26629: return __size; 26629: } 26629: while (__size--); 26629: } 26629: return npos; 26629: } 26629: 26629: template 26629: 26629: int 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: compare(size_type __pos, size_type __n, const basic_string& __str) const 26629: { 26629: _M_check(__pos, "basic_string::compare"); 26629: __n = _M_limit(__pos, __n); 26629: const size_type __osize = __str.size(); 26629: const size_type __len = std::min(__n, __osize); 26629: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 26629: if (!__r) 26629: __r = _S_compare(__n, __osize); 26629: return __r; 26629: } 26629: 26629: template 26629: 26629: int 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: compare(size_type __pos1, size_type __n1, const basic_string& __str, 26629: size_type __pos2, size_type __n2) const 26629: { 26629: _M_check(__pos1, "basic_string::compare"); 26629: __str._M_check(__pos2, "basic_string::compare"); 26629: __n1 = _M_limit(__pos1, __n1); 26629: __n2 = __str._M_limit(__pos2, __n2); 26629: const size_type __len = std::min(__n1, __n2); 26629: int __r = traits_type::compare(_M_data() + __pos1, 26629: __str.data() + __pos2, __len); 26629: if (!__r) 26629: __r = _S_compare(__n1, __n2); 26629: return __r; 26629: } 26629: 26629: template 26629: 26629: int 26629: basic_string<_CharT, _Traits, _Alloc>:: 26629: compare(const _CharT* __s) const noexcept 26629: { 26629: ; 26629: const size_type __size = this->size(); 26629: const size_type __osize = traits_type::length(__s); 26629: const size_type __len = std::min(__size, __osize); 26629: int __r = traits_type::compare(_M_data(), __s, __len); 26629: if (!__r) 26629: __r = _S_compare(__size, __osize); 26629: return __r; 26629: } 26629: 26629: template 26629: 26629: int 26629: basic_string <_CharT, _Traits, _Alloc>:: 26629: compare(size_type __pos, size_type __n1, const _CharT* __s) const 26629: { 26629: ; 26629: _M_check(__pos, "basic_string::compare"); 26629: __n1 = _M_limit(__pos, __n1); 26629: const size_type __osize = traits_type::length(__s); 26629: const size_type __len = std::min(__n1, __osize); 26629: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 26629: if (!__r) 26629: __r = _S_compare(__n1, __osize); 26629: return __r; 26629: } 26629: 26629: template 26629: 26629: int 26629: basic_string <_CharT, _Traits, _Alloc>:: 26629: compare(size_type __pos, size_type __n1, const _CharT* __s, 26629: size_type __n2) const 26629: { 26629: ; 26629: _M_check(__pos, "basic_string::compare"); 26629: __n1 = _M_limit(__pos, __n1); 26629: const size_type __len = std::min(__n1, __n2); 26629: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 26629: if (!__r) 26629: __r = _S_compare(__n1, __n2); 26629: return __r; 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: operator>>(basic_istream<_CharT, _Traits>& __in, 26629: basic_string<_CharT, _Traits, _Alloc>& __str) 26629: { 26629: typedef basic_istream<_CharT, _Traits> __istream_type; 26629: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 26629: typedef typename __istream_type::ios_base __ios_base; 26629: typedef typename __istream_type::int_type __int_type; 26629: typedef typename __string_type::size_type __size_type; 26629: typedef ctype<_CharT> __ctype_type; 26629: typedef typename __ctype_type::ctype_base __ctype_base; 26629: 26629: __size_type __extracted = 0; 26629: typename __ios_base::iostate __err = __ios_base::goodbit; 26629: typename __istream_type::sentry __cerb(__in, false); 26629: if (__cerb) 26629: { 26629: try 26629: { 26629: 26629: __str.erase(); 26629: _CharT __buf[128]; 26629: __size_type __len = 0; 26629: const streamsize __w = __in.width(); 26629: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 26629: : __str.max_size(); 26629: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 26629: const __int_type __eof = _Traits::eof(); 26629: __int_type __c = __in.rdbuf()->sgetc(); 26629: 26629: while (__extracted < __n 26629: && !_Traits::eq_int_type(__c, __eof) 26629: && !__ct.is(__ctype_base::space, 26629: _Traits::to_char_type(__c))) 26629: { 26629: if (__len == sizeof(__buf) / sizeof(_CharT)) 26629: { 26629: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 26629: __len = 0; 26629: } 26629: __buf[__len++] = _Traits::to_char_type(__c); 26629: ++__extracted; 26629: __c = __in.rdbuf()->snextc(); 26629: } 26629: __str.append(__buf, __len); 26629: 26629: if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) 26629: __err |= __ios_base::eofbit; 26629: __in.width(0); 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: __in._M_setstate(__ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { 26629: 26629: 26629: 26629: __in._M_setstate(__ios_base::badbit); 26629: } 26629: } 26629: 26629: if (!__extracted) 26629: __err |= __ios_base::failbit; 26629: if (__err) 26629: __in.setstate(__err); 26629: return __in; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: getline(basic_istream<_CharT, _Traits>& __in, 26629: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 26629: { 26629: typedef basic_istream<_CharT, _Traits> __istream_type; 26629: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 26629: typedef typename __istream_type::ios_base __ios_base; 26629: typedef typename __istream_type::int_type __int_type; 26629: typedef typename __string_type::size_type __size_type; 26629: 26629: __size_type __extracted = 0; 26629: const __size_type __n = __str.max_size(); 26629: typename __ios_base::iostate __err = __ios_base::goodbit; 26629: typename __istream_type::sentry __cerb(__in, true); 26629: if (__cerb) 26629: { 26629: try 26629: { 26629: __str.erase(); 26629: const __int_type __idelim = _Traits::to_int_type(__delim); 26629: const __int_type __eof = _Traits::eof(); 26629: __int_type __c = __in.rdbuf()->sgetc(); 26629: 26629: while (__extracted < __n 26629: && !_Traits::eq_int_type(__c, __eof) 26629: && !_Traits::eq_int_type(__c, __idelim)) 26629: { 26629: __str += _Traits::to_char_type(__c); 26629: ++__extracted; 26629: __c = __in.rdbuf()->snextc(); 26629: } 26629: 26629: if (_Traits::eq_int_type(__c, __eof)) 26629: __err |= __ios_base::eofbit; 26629: else if (_Traits::eq_int_type(__c, __idelim)) 26629: { 26629: ++__extracted; 26629: __in.rdbuf()->sbumpc(); 26629: } 26629: else 26629: __err |= __ios_base::failbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: __in._M_setstate(__ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { 26629: 26629: 26629: 26629: __in._M_setstate(__ios_base::badbit); 26629: } 26629: } 26629: if (!__extracted) 26629: __err |= __ios_base::failbit; 26629: if (__err) 26629: __in.setstate(__err); 26629: return __in; 26629: } 26629: # 1082 "/usr/include/c++/12/bits/basic_string.tcc" 3 26629: extern template class basic_string; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern template 26629: basic_istream& 26629: operator>>(basic_istream&, string&); 26629: extern template 26629: basic_ostream& 26629: operator<<(basic_ostream&, const string&); 26629: extern template 26629: basic_istream& 26629: getline(basic_istream&, string&, char); 26629: extern template 26629: basic_istream& 26629: getline(basic_istream&, string&); 26629: 26629: 26629: 26629: extern template class basic_string; 26629: 26629: 26629: 26629: 26629: 26629: extern template 26629: basic_istream& 26629: operator>>(basic_istream&, wstring&); 26629: extern template 26629: basic_ostream& 26629: operator<<(basic_ostream&, const wstring&); 26629: extern template 26629: basic_istream& 26629: getline(basic_istream&, wstring&, wchar_t); 26629: extern template 26629: basic_istream& 26629: getline(basic_istream&, wstring&); 26629: 26629: 26629: 26629: 26629: } 26629: # 55 "/usr/include/c++/12/string" 2 3 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace pmr { 26629: template class polymorphic_allocator; 26629: template> 26629: using basic_string = std::basic_string<_CharT, _Traits, 26629: polymorphic_allocator<_CharT>>; 26629: using string = basic_string; 26629: 26629: 26629: 26629: using u16string = basic_string; 26629: using u32string = basic_string; 26629: using wstring = basic_string; 26629: } 26629: 26629: template 26629: struct __hash_string_base 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const _Str& __s) const noexcept 26629: { return hash>{}(__s); } 26629: }; 26629: 26629: template<> 26629: struct hash 26629: : public __hash_string_base 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct hash 26629: : public __hash_string_base 26629: { }; 26629: template<> 26629: struct hash 26629: : public __hash_string_base 26629: { }; 26629: template<> 26629: struct hash 26629: : public __hash_string_base 26629: { }; 26629: 26629: 26629: } 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: # 1 "/usr/include/c++/12/unordered_set" 1 3 26629: # 32 "/usr/include/c++/12/unordered_set" 3 26629: 26629: # 33 "/usr/include/c++/12/unordered_set" 3 26629: # 47 "/usr/include/c++/12/unordered_set" 3 26629: # 1 "/usr/include/c++/12/bits/unordered_set.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: template 26629: using __uset_traits = __detail::_Hashtable_traits<_Cache, true, true>; 26629: 26629: template, 26629: typename _Pred = std::equal_to<_Value>, 26629: typename _Alloc = std::allocator<_Value>, 26629: typename _Tr = __uset_traits<__cache_default<_Value, _Hash>::value>> 26629: using __uset_hashtable = _Hashtable<_Value, _Value, _Alloc, 26629: __detail::_Identity, _Pred, _Hash, 26629: __detail::_Mod_range_hashing, 26629: __detail::_Default_ranged_hash, 26629: __detail::_Prime_rehash_policy, _Tr>; 26629: 26629: 26629: template 26629: using __umset_traits = __detail::_Hashtable_traits<_Cache, true, false>; 26629: 26629: template, 26629: typename _Pred = std::equal_to<_Value>, 26629: typename _Alloc = std::allocator<_Value>, 26629: typename _Tr = __umset_traits<__cache_default<_Value, _Hash>::value>> 26629: using __umset_hashtable = _Hashtable<_Value, _Value, _Alloc, 26629: __detail::_Identity, 26629: _Pred, _Hash, 26629: __detail::_Mod_range_hashing, 26629: __detail::_Default_ranged_hash, 26629: __detail::_Prime_rehash_policy, _Tr>; 26629: 26629: template 26629: class unordered_multiset; 26629: # 93 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: template, 26629: typename _Pred = equal_to<_Value>, 26629: typename _Alloc = allocator<_Value>> 26629: class unordered_set 26629: { 26629: typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 26629: _Hashtable _M_h; 26629: 26629: public: 26629: 26629: 26629: 26629: typedef typename _Hashtable::key_type key_type; 26629: typedef typename _Hashtable::value_type value_type; 26629: typedef typename _Hashtable::hasher hasher; 26629: typedef typename _Hashtable::key_equal key_equal; 26629: typedef typename _Hashtable::allocator_type allocator_type; 26629: 26629: 26629: 26629: 26629: typedef typename _Hashtable::pointer pointer; 26629: typedef typename _Hashtable::const_pointer const_pointer; 26629: typedef typename _Hashtable::reference reference; 26629: typedef typename _Hashtable::const_reference const_reference; 26629: typedef typename _Hashtable::iterator iterator; 26629: typedef typename _Hashtable::const_iterator const_iterator; 26629: typedef typename _Hashtable::local_iterator local_iterator; 26629: typedef typename _Hashtable::const_local_iterator const_local_iterator; 26629: typedef typename _Hashtable::size_type size_type; 26629: typedef typename _Hashtable::difference_type difference_type; 26629: 26629: 26629: 26629: using node_type = typename _Hashtable::node_type; 26629: using insert_return_type = typename _Hashtable::insert_return_type; 26629: 26629: 26629: 26629: 26629: 26629: unordered_set() = default; 26629: # 144 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: explicit 26629: unordered_set(size_type __n, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__n, __hf, __eql, __a) 26629: { } 26629: # 165 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: template 26629: unordered_set(_InputIterator __first, _InputIterator __last, 26629: size_type __n = 0, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__first, __last, __n, __hf, __eql, __a) 26629: { } 26629: 26629: 26629: unordered_set(const unordered_set&) = default; 26629: 26629: 26629: unordered_set(unordered_set&&) = default; 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: unordered_set(const allocator_type& __a) 26629: : _M_h(__a) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: unordered_set(const unordered_set& __uset, 26629: const allocator_type& __a) 26629: : _M_h(__uset._M_h, __a) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: unordered_set(unordered_set&& __uset, 26629: const allocator_type& __a) 26629: noexcept( noexcept(_Hashtable(std::move(__uset._M_h), __a)) ) 26629: : _M_h(std::move(__uset._M_h), __a) 26629: { } 26629: # 221 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: unordered_set(initializer_list __l, 26629: size_type __n = 0, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__l, __n, __hf, __eql, __a) 26629: { } 26629: 26629: unordered_set(size_type __n, const allocator_type& __a) 26629: : unordered_set(__n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: unordered_set(size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_set(__n, __hf, key_equal(), __a) 26629: { } 26629: 26629: template 26629: unordered_set(_InputIterator __first, _InputIterator __last, 26629: size_type __n, 26629: const allocator_type& __a) 26629: : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: template 26629: unordered_set(_InputIterator __first, _InputIterator __last, 26629: size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_set(__first, __last, __n, __hf, key_equal(), __a) 26629: { } 26629: 26629: unordered_set(initializer_list __l, 26629: size_type __n, 26629: const allocator_type& __a) 26629: : unordered_set(__l, __n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: unordered_set(initializer_list __l, 26629: size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_set(__l, __n, __hf, key_equal(), __a) 26629: { } 26629: 26629: 26629: unordered_set& 26629: operator=(const unordered_set&) = default; 26629: 26629: 26629: unordered_set& 26629: operator=(unordered_set&&) = default; 26629: # 283 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: unordered_set& 26629: operator=(initializer_list __l) 26629: { 26629: _M_h = __l; 26629: return *this; 26629: } 26629: 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return _M_h.get_allocator(); } 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return _M_h.empty(); } 26629: 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_h.size(); } 26629: 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return _M_h.max_size(); } 26629: # 319 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: begin() noexcept 26629: { return _M_h.begin(); } 26629: 26629: const_iterator 26629: begin() const noexcept 26629: { return _M_h.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: end() noexcept 26629: { return _M_h.end(); } 26629: 26629: const_iterator 26629: end() const noexcept 26629: { return _M_h.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: cbegin() const noexcept 26629: { return _M_h.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: cend() const noexcept 26629: { return _M_h.end(); } 26629: # 375 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: template 26629: std::pair 26629: emplace(_Args&&... __args) 26629: { return _M_h.emplace(std::forward<_Args>(__args)...); } 26629: # 401 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: template 26629: iterator 26629: emplace_hint(const_iterator __pos, _Args&&... __args) 26629: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 26629: # 420 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: std::pair 26629: insert(const value_type& __x) 26629: { return _M_h.insert(__x); } 26629: 26629: std::pair 26629: insert(value_type&& __x) 26629: { return _M_h.insert(std::move(__x)); } 26629: # 449 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: insert(const_iterator __hint, const value_type& __x) 26629: { return _M_h.insert(__hint, __x); } 26629: 26629: iterator 26629: insert(const_iterator __hint, value_type&& __x) 26629: { return _M_h.insert(__hint, std::move(__x)); } 26629: # 467 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: template 26629: void 26629: insert(_InputIterator __first, _InputIterator __last) 26629: { _M_h.insert(__first, __last); } 26629: # 479 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: void 26629: insert(initializer_list __l) 26629: { _M_h.insert(__l); } 26629: 26629: 26629: 26629: node_type 26629: extract(const_iterator __pos) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 26629: return _M_h.extract(__pos); 26629: } 26629: 26629: 26629: node_type 26629: extract(const key_type& __key) 26629: { return _M_h.extract(__key); } 26629: 26629: 26629: insert_return_type 26629: insert(node_type&& __nh) 26629: { return _M_h._M_reinsert_node(std::move(__nh)); } 26629: 26629: 26629: iterator 26629: insert(const_iterator, node_type&& __nh) 26629: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 26629: # 522 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: erase(const_iterator __position) 26629: { return _M_h.erase(__position); } 26629: 26629: 26629: iterator 26629: erase(iterator __position) 26629: { return _M_h.erase(__position); } 26629: # 544 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: size_type 26629: erase(const key_type& __x) 26629: { return _M_h.erase(__x); } 26629: # 562 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: erase(const_iterator __first, const_iterator __last) 26629: { return _M_h.erase(__first, __last); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: clear() noexcept 26629: { _M_h.clear(); } 26629: # 585 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: void 26629: swap(unordered_set& __x) 26629: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 26629: { _M_h.swap(__x._M_h); } 26629: 26629: 26629: template 26629: friend class std::_Hash_merge_helper; 26629: 26629: template 26629: void 26629: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Hash_merge_helper; 26629: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: template 26629: void 26629: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Hash_merge_helper; 26629: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: hasher 26629: hash_function() const 26629: { return _M_h.hash_function(); } 26629: 26629: 26629: 26629: key_equal 26629: key_eq() const 26629: { return _M_h.key_eq(); } 26629: # 649 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: find(const key_type& __x) 26629: { return _M_h.find(__x); } 26629: # 661 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: const_iterator 26629: find(const key_type& __x) const 26629: { return _M_h.find(__x); } 26629: # 684 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: size_type 26629: count(const key_type& __x) const 26629: { return _M_h.count(__x); } 26629: # 725 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) 26629: { return _M_h.equal_range(__x); } 26629: # 737 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) const 26629: { return _M_h.equal_range(__x); } 26629: # 753 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: size_type 26629: bucket_count() const noexcept 26629: { return _M_h.bucket_count(); } 26629: 26629: 26629: size_type 26629: max_bucket_count() const noexcept 26629: { return _M_h.max_bucket_count(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_type 26629: bucket_size(size_type __n) const 26629: { return _M_h.bucket_size(__n); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_type 26629: bucket(const key_type& __key) const 26629: { return _M_h.bucket(__key); } 26629: # 787 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: local_iterator 26629: begin(size_type __n) 26629: { return _M_h.begin(__n); } 26629: 26629: const_local_iterator 26629: begin(size_type __n) const 26629: { return _M_h.begin(__n); } 26629: 26629: const_local_iterator 26629: cbegin(size_type __n) const 26629: { return _M_h.cbegin(__n); } 26629: # 807 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: local_iterator 26629: end(size_type __n) 26629: { return _M_h.end(__n); } 26629: 26629: const_local_iterator 26629: end(size_type __n) const 26629: { return _M_h.end(__n); } 26629: 26629: const_local_iterator 26629: cend(size_type __n) const 26629: { return _M_h.cend(__n); } 26629: 26629: 26629: 26629: 26629: 26629: float 26629: load_factor() const noexcept 26629: { return _M_h.load_factor(); } 26629: 26629: 26629: 26629: float 26629: max_load_factor() const noexcept 26629: { return _M_h.max_load_factor(); } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: max_load_factor(float __z) 26629: { _M_h.max_load_factor(__z); } 26629: # 848 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: void 26629: rehash(size_type __n) 26629: { _M_h.rehash(__n); } 26629: # 859 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: void 26629: reserve(size_type __n) 26629: { _M_h.reserve(__n); } 26629: 26629: template 26629: friend bool 26629: operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, 26629: const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&); 26629: }; 26629: 26629: 26629: 26629: template::value_type>, 26629: typename _Pred = 26629: equal_to::value_type>, 26629: typename _Allocator = 26629: allocator::value_type>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireNotAllocator<_Pred>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_set(_InputIterator, _InputIterator, 26629: unordered_set::size_type = {}, 26629: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 26629: -> unordered_set::value_type, 26629: _Hash, _Pred, _Allocator>; 26629: 26629: template, 26629: typename _Pred = equal_to<_Tp>, 26629: typename _Allocator = allocator<_Tp>, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireNotAllocator<_Pred>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_set(initializer_list<_Tp>, 26629: unordered_set::size_type = {}, 26629: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 26629: -> unordered_set<_Tp, _Hash, _Pred, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_set(_InputIterator, _InputIterator, 26629: unordered_set::size_type, _Allocator) 26629: -> unordered_set::value_type, 26629: hash< 26629: typename iterator_traits<_InputIterator>::value_type>, 26629: equal_to< 26629: typename iterator_traits<_InputIterator>::value_type>, 26629: _Allocator>; 26629: 26629: template, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_set(_InputIterator, _InputIterator, 26629: unordered_set::size_type, 26629: _Hash, _Allocator) 26629: -> unordered_set::value_type, 26629: _Hash, 26629: equal_to< 26629: typename iterator_traits<_InputIterator>::value_type>, 26629: _Allocator>; 26629: 26629: template> 26629: unordered_set(initializer_list<_Tp>, 26629: unordered_set::size_type, _Allocator) 26629: -> unordered_set<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_set(initializer_list<_Tp>, 26629: unordered_set::size_type, _Hash, _Allocator) 26629: -> unordered_set<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 26629: # 959 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: template, 26629: typename _Pred = equal_to<_Value>, 26629: typename _Alloc = allocator<_Value>> 26629: class unordered_multiset 26629: { 26629: typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 26629: _Hashtable _M_h; 26629: 26629: public: 26629: 26629: 26629: 26629: typedef typename _Hashtable::key_type key_type; 26629: typedef typename _Hashtable::value_type value_type; 26629: typedef typename _Hashtable::hasher hasher; 26629: typedef typename _Hashtable::key_equal key_equal; 26629: typedef typename _Hashtable::allocator_type allocator_type; 26629: 26629: 26629: 26629: 26629: typedef typename _Hashtable::pointer pointer; 26629: typedef typename _Hashtable::const_pointer const_pointer; 26629: typedef typename _Hashtable::reference reference; 26629: typedef typename _Hashtable::const_reference const_reference; 26629: typedef typename _Hashtable::iterator iterator; 26629: typedef typename _Hashtable::const_iterator const_iterator; 26629: typedef typename _Hashtable::local_iterator local_iterator; 26629: typedef typename _Hashtable::const_local_iterator const_local_iterator; 26629: typedef typename _Hashtable::size_type size_type; 26629: typedef typename _Hashtable::difference_type difference_type; 26629: 26629: 26629: 26629: using node_type = typename _Hashtable::node_type; 26629: 26629: 26629: 26629: 26629: 26629: unordered_multiset() = default; 26629: # 1009 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: explicit 26629: unordered_multiset(size_type __n, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__n, __hf, __eql, __a) 26629: { } 26629: # 1030 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: template 26629: unordered_multiset(_InputIterator __first, _InputIterator __last, 26629: size_type __n = 0, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__first, __last, __n, __hf, __eql, __a) 26629: { } 26629: 26629: 26629: unordered_multiset(const unordered_multiset&) = default; 26629: 26629: 26629: unordered_multiset(unordered_multiset&&) = default; 26629: # 1056 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: unordered_multiset(initializer_list __l, 26629: size_type __n = 0, 26629: const hasher& __hf = hasher(), 26629: const key_equal& __eql = key_equal(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_h(__l, __n, __hf, __eql, __a) 26629: { } 26629: 26629: 26629: unordered_multiset& 26629: operator=(const unordered_multiset&) = default; 26629: 26629: 26629: unordered_multiset& 26629: operator=(unordered_multiset&&) = default; 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: unordered_multiset(const allocator_type& __a) 26629: : _M_h(__a) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: unordered_multiset(const unordered_multiset& __umset, 26629: const allocator_type& __a) 26629: : _M_h(__umset._M_h, __a) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: unordered_multiset(unordered_multiset&& __umset, 26629: const allocator_type& __a) 26629: noexcept( noexcept(_Hashtable(std::move(__umset._M_h), __a)) ) 26629: : _M_h(std::move(__umset._M_h), __a) 26629: { } 26629: 26629: unordered_multiset(size_type __n, const allocator_type& __a) 26629: : unordered_multiset(__n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: unordered_multiset(size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_multiset(__n, __hf, key_equal(), __a) 26629: { } 26629: 26629: template 26629: unordered_multiset(_InputIterator __first, _InputIterator __last, 26629: size_type __n, 26629: const allocator_type& __a) 26629: : unordered_multiset(__first, __last, __n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: template 26629: unordered_multiset(_InputIterator __first, _InputIterator __last, 26629: size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_multiset(__first, __last, __n, __hf, key_equal(), __a) 26629: { } 26629: 26629: unordered_multiset(initializer_list __l, 26629: size_type __n, 26629: const allocator_type& __a) 26629: : unordered_multiset(__l, __n, hasher(), key_equal(), __a) 26629: { } 26629: 26629: unordered_multiset(initializer_list __l, 26629: size_type __n, const hasher& __hf, 26629: const allocator_type& __a) 26629: : unordered_multiset(__l, __n, __hf, key_equal(), __a) 26629: { } 26629: # 1148 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: unordered_multiset& 26629: operator=(initializer_list __l) 26629: { 26629: _M_h = __l; 26629: return *this; 26629: } 26629: 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return _M_h.get_allocator(); } 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return _M_h.empty(); } 26629: 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_h.size(); } 26629: 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return _M_h.max_size(); } 26629: # 1184 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: begin() noexcept 26629: { return _M_h.begin(); } 26629: 26629: const_iterator 26629: begin() const noexcept 26629: { return _M_h.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: end() noexcept 26629: { return _M_h.end(); } 26629: 26629: const_iterator 26629: end() const noexcept 26629: { return _M_h.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: cbegin() const noexcept 26629: { return _M_h.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: cend() const noexcept 26629: { return _M_h.end(); } 26629: # 1232 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: template 26629: iterator 26629: emplace(_Args&&... __args) 26629: { return _M_h.emplace(std::forward<_Args>(__args)...); } 26629: # 1254 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: template 26629: iterator 26629: emplace_hint(const_iterator __pos, _Args&&... __args) 26629: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 26629: # 1267 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: insert(const value_type& __x) 26629: { return _M_h.insert(__x); } 26629: 26629: iterator 26629: insert(value_type&& __x) 26629: { return _M_h.insert(std::move(__x)); } 26629: # 1293 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: insert(const_iterator __hint, const value_type& __x) 26629: { return _M_h.insert(__hint, __x); } 26629: 26629: iterator 26629: insert(const_iterator __hint, value_type&& __x) 26629: { return _M_h.insert(__hint, std::move(__x)); } 26629: # 1310 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: template 26629: void 26629: insert(_InputIterator __first, _InputIterator __last) 26629: { _M_h.insert(__first, __last); } 26629: # 1322 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: void 26629: insert(initializer_list __l) 26629: { _M_h.insert(__l); } 26629: 26629: 26629: 26629: node_type 26629: extract(const_iterator __pos) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 26629: return _M_h.extract(__pos); 26629: } 26629: 26629: 26629: node_type 26629: extract(const key_type& __key) 26629: { return _M_h.extract(__key); } 26629: 26629: 26629: iterator 26629: insert(node_type&& __nh) 26629: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 26629: 26629: 26629: iterator 26629: insert(const_iterator __hint, node_type&& __nh) 26629: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 26629: # 1366 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: erase(const_iterator __position) 26629: { return _M_h.erase(__position); } 26629: 26629: 26629: iterator 26629: erase(iterator __position) 26629: { return _M_h.erase(__position); } 26629: # 1389 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: size_type 26629: erase(const key_type& __x) 26629: { return _M_h.erase(__x); } 26629: # 1409 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: erase(const_iterator __first, const_iterator __last) 26629: { return _M_h.erase(__first, __last); } 26629: # 1420 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: void 26629: clear() noexcept 26629: { _M_h.clear(); } 26629: # 1433 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: void 26629: swap(unordered_multiset& __x) 26629: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 26629: { _M_h.swap(__x._M_h); } 26629: 26629: 26629: template 26629: friend class std::_Hash_merge_helper; 26629: 26629: template 26629: void 26629: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 26629: { 26629: using _Merge_helper 26629: = _Hash_merge_helper; 26629: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: template 26629: void 26629: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 26629: { 26629: using _Merge_helper 26629: = _Hash_merge_helper; 26629: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: hasher 26629: hash_function() const 26629: { return _M_h.hash_function(); } 26629: 26629: 26629: 26629: key_equal 26629: key_eq() const 26629: { return _M_h.key_eq(); } 26629: # 1499 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: iterator 26629: find(const key_type& __x) 26629: { return _M_h.find(__x); } 26629: # 1511 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: const_iterator 26629: find(const key_type& __x) const 26629: { return _M_h.find(__x); } 26629: # 1530 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: size_type 26629: count(const key_type& __x) const 26629: { return _M_h.count(__x); } 26629: # 1568 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) 26629: { return _M_h.equal_range(__x); } 26629: # 1580 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) const 26629: { return _M_h.equal_range(__x); } 26629: # 1596 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: size_type 26629: bucket_count() const noexcept 26629: { return _M_h.bucket_count(); } 26629: 26629: 26629: size_type 26629: max_bucket_count() const noexcept 26629: { return _M_h.max_bucket_count(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_type 26629: bucket_size(size_type __n) const 26629: { return _M_h.bucket_size(__n); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_type 26629: bucket(const key_type& __key) const 26629: { return _M_h.bucket(__key); } 26629: # 1630 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: local_iterator 26629: begin(size_type __n) 26629: { return _M_h.begin(__n); } 26629: 26629: const_local_iterator 26629: begin(size_type __n) const 26629: { return _M_h.begin(__n); } 26629: 26629: const_local_iterator 26629: cbegin(size_type __n) const 26629: { return _M_h.cbegin(__n); } 26629: # 1650 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: local_iterator 26629: end(size_type __n) 26629: { return _M_h.end(__n); } 26629: 26629: const_local_iterator 26629: end(size_type __n) const 26629: { return _M_h.end(__n); } 26629: 26629: const_local_iterator 26629: cend(size_type __n) const 26629: { return _M_h.cend(__n); } 26629: 26629: 26629: 26629: 26629: 26629: float 26629: load_factor() const noexcept 26629: { return _M_h.load_factor(); } 26629: 26629: 26629: 26629: float 26629: max_load_factor() const noexcept 26629: { return _M_h.max_load_factor(); } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: max_load_factor(float __z) 26629: { _M_h.max_load_factor(__z); } 26629: # 1691 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: void 26629: rehash(size_type __n) 26629: { _M_h.rehash(__n); } 26629: # 1702 "/usr/include/c++/12/bits/unordered_set.h" 3 26629: void 26629: reserve(size_type __n) 26629: { _M_h.reserve(__n); } 26629: 26629: template 26629: friend bool 26629: operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, 26629: const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&); 26629: }; 26629: 26629: 26629: 26629: 26629: template::value_type>, 26629: typename _Pred = 26629: equal_to::value_type>, 26629: typename _Allocator = 26629: allocator::value_type>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireNotAllocator<_Pred>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multiset(_InputIterator, _InputIterator, 26629: unordered_multiset::size_type = {}, 26629: _Hash = _Hash(), _Pred = _Pred(), 26629: _Allocator = _Allocator()) 26629: -> unordered_multiset::value_type, 26629: _Hash, _Pred, _Allocator>; 26629: 26629: template, 26629: typename _Pred = equal_to<_Tp>, 26629: typename _Allocator = allocator<_Tp>, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireNotAllocator<_Pred>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multiset(initializer_list<_Tp>, 26629: unordered_multiset::size_type = {}, 26629: _Hash = _Hash(), _Pred = _Pred(), 26629: _Allocator = _Allocator()) 26629: -> unordered_multiset<_Tp, _Hash, _Pred, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multiset(_InputIterator, _InputIterator, 26629: unordered_multiset::size_type, _Allocator) 26629: -> unordered_multiset::value_type, 26629: hash::value_type>, 26629: equal_to::value_type>, 26629: _Allocator>; 26629: 26629: template, 26629: typename = _RequireNotAllocatorOrIntegral<_Hash>, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multiset(_InputIterator, _InputIterator, 26629: unordered_multiset::size_type, 26629: _Hash, _Allocator) 26629: -> unordered_multiset::value_type, 26629: _Hash, 26629: equal_to< 26629: typename 26629: iterator_traits<_InputIterator>::value_type>, 26629: _Allocator>; 26629: 26629: template> 26629: unordered_multiset(initializer_list<_Tp>, 26629: unordered_multiset::size_type, _Allocator) 26629: -> unordered_multiset<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: unordered_multiset(initializer_list<_Tp>, 26629: unordered_multiset::size_type, _Hash, _Allocator) 26629: -> unordered_multiset<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 26629: unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: template 26629: inline void 26629: swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 26629: unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: template 26629: inline bool 26629: operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 26629: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 26629: { return __x._M_h._M_equal(__y._M_h); } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 26629: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: inline bool 26629: operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 26629: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 26629: { return __x._M_h._M_equal(__y._M_h); } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 26629: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Hash_merge_helper< 26629: std::unordered_set<_Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> 26629: { 26629: private: 26629: template 26629: using unordered_set = std::unordered_set<_Tp...>; 26629: template 26629: using unordered_multiset = std::unordered_multiset<_Tp...>; 26629: 26629: friend unordered_set<_Val, _Hash1, _Eq1, _Alloc>; 26629: 26629: static auto& 26629: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 26629: { return __set._M_h; } 26629: 26629: static auto& 26629: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 26629: { return __set._M_h; } 26629: }; 26629: 26629: 26629: template 26629: struct _Hash_merge_helper< 26629: std::unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>, 26629: _Hash2, _Eq2> 26629: { 26629: private: 26629: template 26629: using unordered_set = std::unordered_set<_Tp...>; 26629: template 26629: using unordered_multiset = std::unordered_multiset<_Tp...>; 26629: 26629: friend unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>; 26629: 26629: static auto& 26629: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 26629: { return __set._M_h; } 26629: 26629: static auto& 26629: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 26629: { return __set._M_h; } 26629: }; 26629: 26629: 26629: 26629: } 26629: # 48 "/usr/include/c++/12/unordered_set" 2 3 26629: # 56 "/usr/include/c++/12/unordered_set" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace pmr 26629: { 26629: template class polymorphic_allocator; 26629: template, 26629: typename _Pred = std::equal_to<_Key>> 26629: using unordered_set 26629: = std::unordered_set<_Key, _Hash, _Pred, 26629: polymorphic_allocator<_Key>>; 26629: template, 26629: typename _Pred = std::equal_to<_Key>> 26629: using unordered_multiset 26629: = std::unordered_multiset<_Key, _Hash, _Pred, 26629: polymorphic_allocator<_Key>>; 26629: } 26629: 26629: } 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/utility" 1 3 26629: # 58 "/usr/include/c++/12/utility" 3 26629: 26629: # 59 "/usr/include/c++/12/utility" 3 26629: # 68 "/usr/include/c++/12/utility" 3 26629: # 1 "/usr/include/c++/12/bits/stl_relops.h" 1 3 26629: # 62 "/usr/include/c++/12/bits/stl_relops.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: namespace rel_ops 26629: { 26629: # 86 "/usr/include/c++/12/bits/stl_relops.h" 3 26629: template 26629: inline bool 26629: operator!=(const _Tp& __x, const _Tp& __y) 26629: { return !(__x == __y); } 26629: # 99 "/usr/include/c++/12/bits/stl_relops.h" 3 26629: template 26629: inline bool 26629: operator>(const _Tp& __x, const _Tp& __y) 26629: { return __y < __x; } 26629: # 112 "/usr/include/c++/12/bits/stl_relops.h" 3 26629: template 26629: inline bool 26629: operator<=(const _Tp& __x, const _Tp& __y) 26629: { return !(__y < __x); } 26629: # 125 "/usr/include/c++/12/bits/stl_relops.h" 3 26629: template 26629: inline bool 26629: operator>=(const _Tp& __x, const _Tp& __y) 26629: { return !(__x < __y); } 26629: } 26629: 26629: 26629: } 26629: # 69 "/usr/include/c++/12/utility" 2 3 26629: # 82 "/usr/include/c++/12/utility" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: inline _Tp 26629: exchange(_Tp& __obj, _Up&& __new_val) 26629: noexcept(__and_, 26629: is_nothrow_assignable<_Tp&, _Up>>::value) 26629: { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } 26629: 26629: 26629: 26629: 26629: template 26629: [[nodiscard]] 26629: constexpr add_const_t<_Tp>& 26629: as_const(_Tp& __t) noexcept 26629: { return __t; } 26629: 26629: template 26629: void as_const(const _Tp&&) = delete; 26629: # 220 "/usr/include/c++/12/utility" 3 26629: 26629: } 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rocksdb_namespace.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/status.h" 1 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/status.h" 26629: 26629: # 31 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/status.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 1 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: 26629: 26629: # 1 "/usr/include/c++/12/cassert" 1 3 26629: # 41 "/usr/include/c++/12/cassert" 3 26629: 26629: # 42 "/usr/include/c++/12/cassert" 3 26629: 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 66 "/usr/include/assert.h" 3 4 26629: extern "C" { 26629: 26629: 26629: extern void __assert_fail (const char *__assertion, const char *__file, 26629: unsigned int __line, const char *__function) 26629: noexcept (true) __attribute__ ((__noreturn__)); 26629: 26629: 26629: extern void __assert_perror_fail (int __errnum, const char *__file, 26629: unsigned int __line, const char *__function) 26629: noexcept (true) __attribute__ ((__noreturn__)); 26629: 26629: 26629: 26629: 26629: extern void __assert (const char *__assertion, const char *__file, int __line) 26629: noexcept (true) __attribute__ ((__noreturn__)); 26629: 26629: 26629: } 26629: # 45 "/usr/include/c++/12/cassert" 2 3 26629: # 22 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 2 26629: # 1 "/usr/include/c++/12/cstddef" 1 3 26629: # 42 "/usr/include/c++/12/cstddef" 3 26629: 26629: # 43 "/usr/include/c++/12/cstddef" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 51 "/usr/include/c++/12/cstddef" 2 3 26629: 26629: extern "C++" 26629: { 26629: 26629: namespace std 26629: { 26629: 26629: using ::max_align_t; 26629: } 26629: 26629: 26629: 26629: namespace std 26629: { 26629: 26629: 26629: 26629: 26629: enum class byte : unsigned char {}; 26629: 26629: template struct __byte_operand { }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: 26629: 26629: 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: template<> struct __byte_operand { using __type = byte; }; 26629: # 108 "/usr/include/c++/12/cstddef" 3 26629: template 26629: struct __byte_operand 26629: : __byte_operand<_IntegerType> { }; 26629: template 26629: struct __byte_operand 26629: : __byte_operand<_IntegerType> { }; 26629: template 26629: struct __byte_operand 26629: : __byte_operand<_IntegerType> { }; 26629: 26629: template 26629: using __byte_op_t = typename __byte_operand<_IntegerType>::__type; 26629: 26629: template 26629: constexpr __byte_op_t<_IntegerType> 26629: operator<<(byte __b, _IntegerType __shift) noexcept 26629: { return (byte)(unsigned char)((unsigned)__b << __shift); } 26629: 26629: template 26629: constexpr __byte_op_t<_IntegerType> 26629: operator>>(byte __b, _IntegerType __shift) noexcept 26629: { return (byte)(unsigned char)((unsigned)__b >> __shift); } 26629: 26629: constexpr byte 26629: operator|(byte __l, byte __r) noexcept 26629: { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } 26629: 26629: constexpr byte 26629: operator&(byte __l, byte __r) noexcept 26629: { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } 26629: 26629: constexpr byte 26629: operator^(byte __l, byte __r) noexcept 26629: { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } 26629: 26629: constexpr byte 26629: operator~(byte __b) noexcept 26629: { return (byte)(unsigned char)~(unsigned)__b; } 26629: 26629: template 26629: constexpr __byte_op_t<_IntegerType>& 26629: operator<<=(byte& __b, _IntegerType __shift) noexcept 26629: { return __b = __b << __shift; } 26629: 26629: template 26629: constexpr __byte_op_t<_IntegerType>& 26629: operator>>=(byte& __b, _IntegerType __shift) noexcept 26629: { return __b = __b >> __shift; } 26629: 26629: constexpr byte& 26629: operator|=(byte& __l, byte __r) noexcept 26629: { return __l = __l | __r; } 26629: 26629: constexpr byte& 26629: operator&=(byte& __l, byte __r) noexcept 26629: { return __l = __l & __r; } 26629: 26629: constexpr byte& 26629: operator^=(byte& __l, byte __r) noexcept 26629: { return __l = __l ^ __r; } 26629: 26629: template 26629: [[nodiscard]] 26629: constexpr _IntegerType 26629: to_integer(__byte_op_t<_IntegerType> __b) noexcept 26629: { return _IntegerType(__b); } 26629: 26629: 26629: } 26629: 26629: } 26629: # 23 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 2 26629: # 1 "/usr/include/c++/12/cstdio" 1 3 26629: # 39 "/usr/include/c++/12/cstdio" 3 26629: 26629: # 40 "/usr/include/c++/12/cstdio" 3 26629: # 24 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 2 26629: # 1 "/usr/include/c++/12/cstring" 1 3 26629: # 39 "/usr/include/c++/12/cstring" 3 26629: 26629: # 40 "/usr/include/c++/12/cstring" 3 26629: 26629: 26629: # 1 "/usr/include/string.h" 1 3 4 26629: # 26 "/usr/include/string.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 26629: # 27 "/usr/include/string.h" 2 3 4 26629: 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 34 "/usr/include/string.h" 2 3 4 26629: # 43 "/usr/include/string.h" 3 4 26629: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 26629: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern void *memmove (void *__dest, const void *__src, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: 26629: extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 26629: int __c, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); 26629: 26629: 26629: 26629: 26629: extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int memcmp (const void *__s1, const void *__s2, size_t __n) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: # 80 "/usr/include/string.h" 3 4 26629: extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: extern "C++" 26629: { 26629: extern void *memchr (void *__s, int __c, size_t __n) 26629: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: extern const void *memchr (const void *__s, int __c, size_t __n) 26629: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * 26629: memchr (void *__s, int __c, size_t __n) noexcept (true) 26629: { 26629: return __builtin_memchr (__s, __c, __n); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * 26629: memchr (const void *__s, int __c, size_t __n) noexcept (true) 26629: { 26629: return __builtin_memchr (__s, __c, __n); 26629: } 26629: 26629: } 26629: # 115 "/usr/include/string.h" 3 4 26629: extern "C++" void *rawmemchr (void *__s, int __c) 26629: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: extern "C++" const void *rawmemchr (const void *__s, int __c) 26629: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern "C++" void *memrchr (void *__s, int __c, size_t __n) 26629: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 26629: __attribute__ ((__access__ (__read_only__, 1, 3))); 26629: extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) 26629: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 26629: __attribute__ ((__access__ (__read_only__, 1, 3))); 26629: # 141 "/usr/include/string.h" 3 4 26629: extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: extern char *strncpy (char *__restrict __dest, 26629: const char *__restrict __src, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern char *strcat (char *__restrict __dest, const char *__restrict __src) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: extern char *strncat (char *__restrict __dest, const char *__restrict __src, 26629: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int strcmp (const char *__s1, const char *__s2) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: extern int strncmp (const char *__s1, const char *__s2, size_t __n) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int strcoll (const char *__s1, const char *__s2) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: extern size_t strxfrm (char *__restrict __dest, 26629: const char *__restrict __src, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 26629: 26629: 26629: extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 26629: locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) 26629: __attribute__ ((__access__ (__write_only__, 1, 3))); 26629: 26629: 26629: 26629: 26629: 26629: extern char *strdup (const char *__s) 26629: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern char *strndup (const char *__string, size_t __n) 26629: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 26629: # 224 "/usr/include/string.h" 3 4 26629: extern "C++" 26629: { 26629: extern char *strchr (char *__s, int __c) 26629: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: extern const char *strchr (const char *__s, int __c) 26629: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 26629: strchr (char *__s, int __c) noexcept (true) 26629: { 26629: return __builtin_strchr (__s, __c); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 26629: strchr (const char *__s, int __c) noexcept (true) 26629: { 26629: return __builtin_strchr (__s, __c); 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern "C++" 26629: { 26629: extern char *strrchr (char *__s, int __c) 26629: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: extern const char *strrchr (const char *__s, int __c) 26629: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 26629: strrchr (char *__s, int __c) noexcept (true) 26629: { 26629: return __builtin_strrchr (__s, __c); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 26629: strrchr (const char *__s, int __c) noexcept (true) 26629: { 26629: return __builtin_strrchr (__s, __c); 26629: } 26629: 26629: } 26629: # 281 "/usr/include/string.h" 3 4 26629: extern "C++" char *strchrnul (char *__s, int __c) 26629: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: extern "C++" const char *strchrnul (const char *__s, int __c) 26629: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: # 293 "/usr/include/string.h" 3 4 26629: extern size_t strcspn (const char *__s, const char *__reject) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern size_t strspn (const char *__s, const char *__accept) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern "C++" 26629: { 26629: extern char *strpbrk (char *__s, const char *__accept) 26629: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: extern const char *strpbrk (const char *__s, const char *__accept) 26629: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 26629: strpbrk (char *__s, const char *__accept) noexcept (true) 26629: { 26629: return __builtin_strpbrk (__s, __accept); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 26629: strpbrk (const char *__s, const char *__accept) noexcept (true) 26629: { 26629: return __builtin_strpbrk (__s, __accept); 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern "C++" 26629: { 26629: extern char *strstr (char *__haystack, const char *__needle) 26629: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: extern const char *strstr (const char *__haystack, const char *__needle) 26629: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 26629: strstr (char *__haystack, const char *__needle) noexcept (true) 26629: { 26629: return __builtin_strstr (__haystack, __needle); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 26629: strstr (const char *__haystack, const char *__needle) noexcept (true) 26629: { 26629: return __builtin_strstr (__haystack, __needle); 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern char *strtok (char *__restrict __s, const char *__restrict __delim) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: extern char *__strtok_r (char *__restrict __s, 26629: const char *__restrict __delim, 26629: char **__restrict __save_ptr) 26629: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 26629: 26629: extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 26629: char **__restrict __save_ptr) 26629: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 26629: 26629: 26629: 26629: 26629: 26629: extern "C++" char *strcasestr (char *__haystack, const char *__needle) 26629: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: extern "C++" const char *strcasestr (const char *__haystack, 26629: const char *__needle) 26629: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: # 389 "/usr/include/string.h" 3 4 26629: extern void *memmem (const void *__haystack, size_t __haystacklen, 26629: const void *__needle, size_t __needlelen) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) 26629: __attribute__ ((__access__ (__read_only__, 1, 2))) 26629: __attribute__ ((__access__ (__read_only__, 3, 4))); 26629: 26629: 26629: 26629: extern void *__mempcpy (void *__restrict __dest, 26629: const void *__restrict __src, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: extern void *mempcpy (void *__restrict __dest, 26629: const void *__restrict __src, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: extern size_t strlen (const char *__s) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: extern size_t strnlen (const char *__string, size_t __maxlen) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: extern char *strerror (int __errnum) noexcept (true); 26629: # 444 "/usr/include/string.h" 3 4 26629: extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: 26629: 26629: 26629: 26629: extern const char *strerrordesc_np (int __err) noexcept (true); 26629: 26629: extern const char *strerrorname_np (int __err) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); 26629: 26629: 26629: 26629: # 1 "/usr/include/strings.h" 1 3 4 26629: # 23 "/usr/include/strings.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 24 "/usr/include/strings.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern "C" { 26629: 26629: 26629: 26629: extern int bcmp (const void *__s1, const void *__s2, size_t __n) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern void bcopy (const void *__src, void *__dest, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern "C++" 26629: { 26629: extern char *index (char *__s, int __c) 26629: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: extern const char *index (const char *__s, int __c) 26629: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 26629: index (char *__s, int __c) noexcept (true) 26629: { 26629: return __builtin_index (__s, __c); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 26629: index (const char *__s, int __c) noexcept (true) 26629: { 26629: return __builtin_index (__s, __c); 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern "C++" 26629: { 26629: extern char *rindex (char *__s, int __c) 26629: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: extern const char *rindex (const char *__s, int __c) 26629: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 26629: rindex (char *__s, int __c) noexcept (true) 26629: { 26629: return __builtin_rindex (__s, __c); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 26629: rindex (const char *__s, int __c) noexcept (true) 26629: { 26629: return __builtin_rindex (__s, __c); 26629: } 26629: 26629: } 26629: # 104 "/usr/include/strings.h" 3 4 26629: extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: 26629: extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); 26629: __extension__ extern int ffsll (long long int __ll) 26629: noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern int strcasecmp (const char *__s1, const char *__s2) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 26629: 26629: 26629: 26629: extern int strncasecmp_l (const char *__s1, const char *__s2, 26629: size_t __n, locale_t __loc) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 1 3 4 26629: # 22 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 3 4 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 26629: __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) 26629: { 26629: (void) __builtin___memmove_chk (__dest, __src, __len, 26629: __builtin_object_size (__dest, 0)); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 26629: __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) 26629: { 26629: (void) __builtin___memset_chk (__dest, '\0', __len, 26629: __builtin_object_size (__dest, 0)); 26629: } 26629: # 145 "/usr/include/strings.h" 2 3 4 26629: # 463 "/usr/include/string.h" 2 3 4 26629: 26629: 26629: 26629: extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 26629: __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: 26629: 26629: 26629: extern char *strsep (char **__restrict __stringp, 26629: const char *__restrict __delim) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: extern char *strsignal (int __sig) noexcept (true); 26629: 26629: 26629: 26629: extern const char *sigabbrev_np (int __sig) noexcept (true); 26629: 26629: 26629: extern const char *sigdescr_np (int __sig) noexcept (true); 26629: 26629: 26629: 26629: extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: extern char *__stpncpy (char *__restrict __dest, 26629: const char *__restrict __src, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: extern char *stpncpy (char *__restrict __dest, 26629: const char *__restrict __src, size_t __n) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: extern int strverscmp (const char *__s1, const char *__s2) 26629: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 26629: __attribute__ ((__access__ (__read_write__, 1, 2))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern "C++" char *basename (char *__filename) 26629: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 26629: extern "C++" const char *basename (const char *__filename) 26629: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 26629: # 535 "/usr/include/string.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 1 3 4 26629: # 25 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 26629: __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 26629: 26629: { 26629: return __builtin___memcpy_chk (__dest, __src, __len, 26629: __builtin_object_size (__dest, 0)); 26629: } 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 26629: __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) 26629: { 26629: return __builtin___memmove_chk (__dest, __src, __len, 26629: __builtin_object_size (__dest, 0)); 26629: } 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 26629: __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 26629: 26629: { 26629: return __builtin___mempcpy_chk (__dest, __src, __len, 26629: __builtin_object_size (__dest, 0)); 26629: } 26629: # 56 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 26629: __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) 26629: { 26629: return __builtin___memset_chk (__dest, __ch, __len, 26629: __builtin_object_size (__dest, 0)); 26629: } 26629: 26629: 26629: 26629: 26629: void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 26629: __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) 26629: { 26629: __explicit_bzero_chk (__dest, __len, __builtin_object_size (__dest, 0)); 26629: } 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 26629: __attribute__ ((__leaf__)) strcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) 26629: { 26629: return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 26629: } 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 26629: __attribute__ ((__leaf__)) stpcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) 26629: { 26629: return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 26629: } 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 26629: __attribute__ ((__leaf__)) strncpy (char *__restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 26629: 26629: { 26629: return __builtin___strncpy_chk (__dest, __src, __len, 26629: __builtin_object_size (__dest, 2 > 1)); 26629: } 26629: 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 26629: __attribute__ ((__leaf__)) stpncpy (char *__dest, const char *__src, size_t __n) noexcept (true) 26629: { 26629: return __builtin___stpncpy_chk (__dest, __src, __n, 26629: __builtin_object_size (__dest, 2 > 1)); 26629: } 26629: # 127 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 26629: __attribute__ ((__leaf__)) strcat (char *__restrict __dest, const char *__restrict __src) noexcept (true) 26629: { 26629: return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 26629: } 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 26629: __attribute__ ((__leaf__)) strncat (char *__restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 26629: 26629: { 26629: return __builtin___strncat_chk (__dest, __src, __len, 26629: __builtin_object_size (__dest, 2 > 1)); 26629: } 26629: # 536 "/usr/include/string.h" 2 3 4 26629: 26629: 26629: 26629: } 26629: # 43 "/usr/include/c++/12/cstring" 2 3 26629: # 71 "/usr/include/c++/12/cstring" 3 26629: extern "C++" 26629: { 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: using ::memchr; 26629: using ::memcmp; 26629: using ::memcpy; 26629: using ::memmove; 26629: using ::memset; 26629: using ::strcat; 26629: using ::strcmp; 26629: using ::strcoll; 26629: using ::strcpy; 26629: using ::strcspn; 26629: using ::strerror; 26629: using ::strlen; 26629: using ::strncat; 26629: using ::strncmp; 26629: using ::strncpy; 26629: using ::strspn; 26629: using ::strtok; 26629: using ::strxfrm; 26629: using ::strchr; 26629: using ::strpbrk; 26629: using ::strrchr; 26629: using ::strstr; 26629: # 122 "/usr/include/c++/12/cstring" 3 26629: 26629: } 26629: } 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 2 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cleanable.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cleanable.h" 26629: 26629: 26629: 26629: 26629: 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cleanable.h" 26629: namespace rocksdb { 26629: 26629: class Cleanable { 26629: public: 26629: Cleanable(); 26629: 26629: Cleanable(Cleanable&) = delete; 26629: Cleanable& operator=(Cleanable&) = delete; 26629: 26629: 26629: ~Cleanable(); 26629: 26629: 26629: Cleanable(Cleanable&&) noexcept; 26629: Cleanable& operator=(Cleanable&&) noexcept; 26629: 26629: 26629: 26629: 26629: 26629: 26629: using CleanupFunction = void (*)(void* arg1, void* arg2); 26629: 26629: 26629: void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2); 26629: 26629: 26629: 26629: void DelegateCleanupsTo(Cleanable* other); 26629: 26629: 26629: inline void Reset() { 26629: DoCleanup(); 26629: cleanup_.function = nullptr; 26629: cleanup_.next = nullptr; 26629: } 26629: 26629: inline bool HasCleanups() { return cleanup_.function != nullptr; } 26629: 26629: protected: 26629: struct Cleanup { 26629: CleanupFunction function; 26629: void* arg1; 26629: void* arg2; 26629: Cleanup* next; 26629: }; 26629: Cleanup cleanup_; 26629: 26629: void RegisterCleanup(Cleanup* c); 26629: 26629: private: 26629: 26629: 26629: 26629: inline void DoCleanup() { 26629: if (cleanup_.function != nullptr) { 26629: (*cleanup_.function)(cleanup_.arg1, cleanup_.arg2); 26629: for (Cleanup* c = cleanup_.next; c != nullptr;) { 26629: (*c->function)(c->arg1, c->arg2); 26629: Cleanup* next = c->next; 26629: delete c; 26629: c = next; 26629: } 26629: } 26629: } 26629: }; 26629: # 89 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cleanable.h" 26629: class SharedCleanablePtr { 26629: public: 26629: 26629: SharedCleanablePtr() {} 26629: 26629: SharedCleanablePtr(const SharedCleanablePtr& from); 26629: SharedCleanablePtr(SharedCleanablePtr&& from) noexcept; 26629: SharedCleanablePtr& operator=(const SharedCleanablePtr& from); 26629: SharedCleanablePtr& operator=(SharedCleanablePtr&& from) noexcept; 26629: 26629: ~SharedCleanablePtr(); 26629: 26629: 26629: void Allocate(); 26629: 26629: void Reset(); 26629: 26629: Cleanable& operator*(); 26629: Cleanable* operator->(); 26629: 26629: Cleanable* get(); 26629: 26629: 26629: 26629: 26629: 26629: 26629: void RegisterCopyWith(Cleanable* target); 26629: 26629: 26629: 26629: 26629: void MoveAsCleanupTo(Cleanable* target); 26629: 26629: private: 26629: struct Impl; 26629: Impl* ptr_ = nullptr; 26629: }; 26629: 26629: } 26629: # 29 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class Slice { 26629: public: 26629: 26629: Slice() : data_(""), size_(0) {} 26629: 26629: 26629: Slice(const char* d, size_t n) : data_(d), size_(n) {} 26629: 26629: 26629: 26629: Slice(const std::string& s) : data_(s.data()), size_(s.size()) {} 26629: 26629: 26629: 26629: Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size()) {} 26629: 26629: 26629: 26629: Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } 26629: 26629: 26629: 26629: Slice(const struct SliceParts& parts, std::string* buf); 26629: 26629: 26629: const char* data() const { return data_; } 26629: 26629: 26629: size_t size() const { return size_; } 26629: 26629: 26629: bool empty() const { return size_ == 0; } 26629: 26629: 26629: 26629: char operator[](size_t n) const { 26629: 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: n < size() 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "n < size()" 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 68, __extension__ __PRETTY_FUNCTION__)) 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: return data_[n]; 26629: } 26629: 26629: 26629: void clear() { 26629: data_ = ""; 26629: size_ = 0; 26629: } 26629: 26629: 26629: void remove_prefix(size_t n) { 26629: 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: n <= size() 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "n <= size()" 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 80, __extension__ __PRETTY_FUNCTION__)) 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: data_ += n; 26629: size_ -= n; 26629: } 26629: 26629: void remove_suffix(size_t n) { 26629: 26629: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: n <= size() 26629: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "n <= size()" 26629: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 86, __extension__ __PRETTY_FUNCTION__)) 26629: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: size_ -= n; 26629: } 26629: 26629: 26629: 26629: std::string ToString(bool hex = false) const; 26629: 26629: 26629: std::string_view ToStringView() const { 26629: return std::string_view(data_, size_); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool DecodeHex(std::string* result) const; 26629: 26629: 26629: 26629: 26629: 26629: int compare(const Slice& b) const; 26629: 26629: 26629: bool starts_with(const Slice& x) const { 26629: return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0)); 26629: } 26629: 26629: bool ends_with(const Slice& x) const { 26629: return ((size_ >= x.size_) && 26629: (memcmp(data_ + size_ - x.size_, x.data_, x.size_) == 0)); 26629: } 26629: 26629: 26629: size_t difference_offset(const Slice& b) const; 26629: 26629: 26629: const char* data_; 26629: size_t size_; 26629: 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class PinnableSlice : public Slice, public Cleanable { 26629: public: 26629: PinnableSlice() { buf_ = &self_space_; } 26629: explicit PinnableSlice(std::string* buf) { buf_ = buf; } 26629: 26629: PinnableSlice(PinnableSlice&& other); 26629: PinnableSlice& operator=(PinnableSlice&& other); 26629: 26629: 26629: PinnableSlice(PinnableSlice&) = delete; 26629: PinnableSlice& operator=(PinnableSlice&) = delete; 26629: 26629: inline void PinSlice(const Slice& s, CleanupFunction f, void* arg1, 26629: void* arg2) { 26629: 26629: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: !pinned_ 26629: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "!pinned_" 26629: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 152, __extension__ __PRETTY_FUNCTION__)) 26629: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: pinned_ = true; 26629: data_ = s.data(); 26629: size_ = s.size(); 26629: RegisterCleanup(f, arg1, arg2); 26629: 26629: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: pinned_ 26629: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "pinned_" 26629: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 157, __extension__ __PRETTY_FUNCTION__)) 26629: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: } 26629: 26629: inline void PinSlice(const Slice& s, Cleanable* cleanable) { 26629: 26629: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: !pinned_ 26629: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "!pinned_" 26629: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 161, __extension__ __PRETTY_FUNCTION__)) 26629: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: pinned_ = true; 26629: data_ = s.data(); 26629: size_ = s.size(); 26629: if (cleanable != nullptr) { 26629: cleanable->DelegateCleanupsTo(this); 26629: } 26629: 26629: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: pinned_ 26629: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "pinned_" 26629: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 168, __extension__ __PRETTY_FUNCTION__)) 26629: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: } 26629: 26629: inline void PinSelf(const Slice& slice) { 26629: 26629: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: !pinned_ 26629: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "!pinned_" 26629: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 172, __extension__ __PRETTY_FUNCTION__)) 26629: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: buf_->assign(slice.data(), slice.size()); 26629: data_ = buf_->data(); 26629: size_ = buf_->size(); 26629: 26629: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: !pinned_ 26629: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "!pinned_" 26629: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 176, __extension__ __PRETTY_FUNCTION__)) 26629: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: } 26629: 26629: inline void PinSelf() { 26629: 26629: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: !pinned_ 26629: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "!pinned_" 26629: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 180, __extension__ __PRETTY_FUNCTION__)) 26629: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: data_ = buf_->data(); 26629: size_ = buf_->size(); 26629: 26629: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: !pinned_ 26629: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "!pinned_" 26629: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 183, __extension__ __PRETTY_FUNCTION__)) 26629: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: } 26629: 26629: void remove_suffix(size_t n) { 26629: 26629: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: n <= size() 26629: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "n <= size()" 26629: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 187, __extension__ __PRETTY_FUNCTION__)) 26629: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: if (pinned_) { 26629: size_ -= n; 26629: } else { 26629: buf_->erase(size() - n, n); 26629: PinSelf(); 26629: } 26629: } 26629: 26629: void remove_prefix(size_t n) { 26629: 26629: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: n <= size() 26629: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "n <= size()" 26629: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 197, __extension__ __PRETTY_FUNCTION__)) 26629: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: if (pinned_) { 26629: data_ += n; 26629: size_ -= n; 26629: } else { 26629: buf_->erase(0, n); 26629: PinSelf(); 26629: } 26629: } 26629: 26629: void Reset() { 26629: Cleanable::Reset(); 26629: pinned_ = false; 26629: size_ = 0; 26629: } 26629: 26629: inline std::string* GetSelf() { return buf_; } 26629: 26629: inline bool IsPinned() const { return pinned_; } 26629: 26629: private: 26629: friend class PinnableSlice4Test; 26629: std::string self_space_; 26629: std::string* buf_; 26629: bool pinned_ = false; 26629: }; 26629: 26629: 26629: 26629: struct SliceParts { 26629: SliceParts(const Slice* _parts, int _num_parts) 26629: : parts(_parts), num_parts(_num_parts) {} 26629: SliceParts() : parts(nullptr), num_parts(0) {} 26629: 26629: const Slice* parts; 26629: int num_parts; 26629: }; 26629: 26629: inline bool operator==(const Slice& x, const Slice& y) { 26629: return ((x.size() == y.size()) && 26629: (memcmp(x.data(), y.data(), x.size()) == 0)); 26629: } 26629: 26629: inline bool operator!=(const Slice& x, const Slice& y) { return !(x == y); } 26629: 26629: inline int Slice::compare(const Slice& b) const { 26629: 26629: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: (static_cast ( 26629: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: data_ != nullptr && b.data_ != nullptr 26629: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: "data_ != nullptr && b.data_ != nullptr" 26629: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 26629: , "./include/rocksdb/slice.h", 243, __extension__ __PRETTY_FUNCTION__)) 26629: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 26629: ; 26629: const size_t min_len = (size_ < b.size_) ? size_ : b.size_; 26629: int r = memcmp(data_, b.data_, min_len); 26629: if (r == 0) { 26629: if (size_ < b.size_) 26629: r = -1; 26629: else if (size_ > b.size_) 26629: r = +1; 26629: } 26629: return r; 26629: } 26629: 26629: inline size_t Slice::difference_offset(const Slice& b) const { 26629: size_t off = 0; 26629: const size_t len = (size_ < b.size_) ? size_ : b.size_; 26629: for (; off < len; off++) { 26629: if (data_[off] != b.data_[off]) break; 26629: } 26629: return off; 26629: } 26629: 26629: } 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/status.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class Status { 26629: public: 26629: 26629: Status() 26629: : code_(kOk), 26629: subcode_(kNone), 26629: sev_(kNoError), 26629: retryable_(false), 26629: data_loss_(false), 26629: scope_(0), 26629: state_(nullptr) {} 26629: ~Status() { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: 26629: Status(const Status& s); 26629: Status& operator=(const Status& s); 26629: Status(Status&& s) noexcept; 26629: Status& operator=(Status&& s) noexcept; 26629: bool operator==(const Status& rhs) const; 26629: bool operator!=(const Status& rhs) const; 26629: 26629: 26629: 26629: 26629: inline void PermitUncheckedError() const { MarkChecked(); } 26629: 26629: inline void MustCheck() const { 26629: 26629: 26629: 26629: } 26629: 26629: enum Code : unsigned char { 26629: kOk = 0, 26629: kNotFound = 1, 26629: kCorruption = 2, 26629: kNotSupported = 3, 26629: kInvalidArgument = 4, 26629: kIOError = 5, 26629: kMergeInProgress = 6, 26629: kIncomplete = 7, 26629: kShutdownInProgress = 8, 26629: kTimedOut = 9, 26629: kAborted = 10, 26629: kBusy = 11, 26629: kExpired = 12, 26629: kTryAgain = 13, 26629: kCompactionTooLarge = 14, 26629: kColumnFamilyDropped = 15, 26629: kMaxCode 26629: }; 26629: 26629: Code code() const { 26629: MarkChecked(); 26629: return code_; 26629: } 26629: 26629: enum SubCode : unsigned char { 26629: kNone = 0, 26629: kMutexTimeout = 1, 26629: kLockTimeout = 2, 26629: kLockLimit = 3, 26629: kNoSpace = 4, 26629: kDeadlock = 5, 26629: kStaleFile = 6, 26629: kMemoryLimit = 7, 26629: kSpaceLimit = 8, 26629: kPathNotFound = 9, 26629: KMergeOperandsInsufficientCapacity = 10, 26629: kManualCompactionPaused = 11, 26629: kOverwritten = 12, 26629: kTxnNotPrepared = 13, 26629: kIOFenced = 14, 26629: kMaxSubCode 26629: }; 26629: 26629: SubCode subcode() const { 26629: MarkChecked(); 26629: return subcode_; 26629: } 26629: 26629: enum Severity : unsigned char { 26629: kNoError = 0, 26629: kSoftError = 1, 26629: kHardError = 2, 26629: kFatalError = 3, 26629: kUnrecoverableError = 4, 26629: kMaxSeverity 26629: }; 26629: 26629: Status(const Status& s, Severity sev); 26629: 26629: Status(Code _code, SubCode _subcode, Severity _sev, const Slice& msg) 26629: : Status(_code, _subcode, msg, "", _sev) {} 26629: 26629: Severity severity() const { 26629: MarkChecked(); 26629: return sev_; 26629: } 26629: 26629: 26629: const char* getState() const { 26629: MarkChecked(); 26629: return state_.get(); 26629: } 26629: 26629: 26629: static Status OK() { return Status(); } 26629: 26629: 26629: 26629: 26629: 26629: static Status OkOverwritten() { return Status(kOk, kOverwritten); } 26629: 26629: 26629: static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kNotFound, msg, msg2); 26629: } 26629: 26629: 26629: static Status NotFound(SubCode msg = kNone) { return Status(kNotFound, msg); } 26629: 26629: static Status NotFound(SubCode sc, const Slice& msg, 26629: const Slice& msg2 = Slice()) { 26629: return Status(kNotFound, sc, msg, msg2); 26629: } 26629: 26629: static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kCorruption, msg, msg2); 26629: } 26629: static Status Corruption(SubCode msg = kNone) { 26629: return Status(kCorruption, msg); 26629: } 26629: 26629: static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kNotSupported, msg, msg2); 26629: } 26629: static Status NotSupported(SubCode msg = kNone) { 26629: return Status(kNotSupported, msg); 26629: } 26629: 26629: static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kInvalidArgument, msg, msg2); 26629: } 26629: static Status InvalidArgument(SubCode msg = kNone) { 26629: return Status(kInvalidArgument, msg); 26629: } 26629: 26629: static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kIOError, msg, msg2); 26629: } 26629: static Status IOError(SubCode msg = kNone) { return Status(kIOError, msg); } 26629: 26629: static Status MergeInProgress(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kMergeInProgress, msg, msg2); 26629: } 26629: static Status MergeInProgress(SubCode msg = kNone) { 26629: return Status(kMergeInProgress, msg); 26629: } 26629: 26629: static Status Incomplete(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kIncomplete, msg, msg2); 26629: } 26629: static Status Incomplete(SubCode msg = kNone) { 26629: return Status(kIncomplete, msg); 26629: } 26629: 26629: static Status ShutdownInProgress(SubCode msg = kNone) { 26629: return Status(kShutdownInProgress, msg); 26629: } 26629: static Status ShutdownInProgress(const Slice& msg, 26629: const Slice& msg2 = Slice()) { 26629: return Status(kShutdownInProgress, msg, msg2); 26629: } 26629: static Status Aborted(SubCode msg = kNone) { return Status(kAborted, msg); } 26629: static Status Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kAborted, msg, msg2); 26629: } 26629: 26629: static Status Busy(SubCode msg = kNone) { return Status(kBusy, msg); } 26629: static Status Busy(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kBusy, msg, msg2); 26629: } 26629: 26629: static Status TimedOut(SubCode msg = kNone) { return Status(kTimedOut, msg); } 26629: static Status TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kTimedOut, msg, msg2); 26629: } 26629: 26629: static Status Expired(SubCode msg = kNone) { return Status(kExpired, msg); } 26629: static Status Expired(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kExpired, msg, msg2); 26629: } 26629: 26629: static Status TryAgain(SubCode msg = kNone) { return Status(kTryAgain, msg); } 26629: static Status TryAgain(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kTryAgain, msg, msg2); 26629: } 26629: 26629: static Status CompactionTooLarge(SubCode msg = kNone) { 26629: return Status(kCompactionTooLarge, msg); 26629: } 26629: static Status CompactionTooLarge(const Slice& msg, 26629: const Slice& msg2 = Slice()) { 26629: return Status(kCompactionTooLarge, msg, msg2); 26629: } 26629: 26629: static Status ColumnFamilyDropped(SubCode msg = kNone) { 26629: return Status(kColumnFamilyDropped, msg); 26629: } 26629: 26629: static Status ColumnFamilyDropped(const Slice& msg, 26629: const Slice& msg2 = Slice()) { 26629: return Status(kColumnFamilyDropped, msg, msg2); 26629: } 26629: 26629: static Status NoSpace() { return Status(kIOError, kNoSpace); } 26629: static Status NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kIOError, kNoSpace, msg, msg2); 26629: } 26629: 26629: static Status MemoryLimit() { return Status(kAborted, kMemoryLimit); } 26629: static Status MemoryLimit(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kAborted, kMemoryLimit, msg, msg2); 26629: } 26629: 26629: static Status SpaceLimit() { return Status(kIOError, kSpaceLimit); } 26629: static Status SpaceLimit(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kIOError, kSpaceLimit, msg, msg2); 26629: } 26629: 26629: static Status PathNotFound() { return Status(kIOError, kPathNotFound); } 26629: static Status PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kIOError, kPathNotFound, msg, msg2); 26629: } 26629: 26629: static Status TxnNotPrepared() { 26629: return Status(kInvalidArgument, kTxnNotPrepared); 26629: } 26629: static Status TxnNotPrepared(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return Status(kInvalidArgument, kTxnNotPrepared, msg, msg2); 26629: } 26629: 26629: 26629: bool ok() const { 26629: MarkChecked(); 26629: return code() == kOk; 26629: } 26629: 26629: 26629: 26629: bool IsOkOverwritten() const { 26629: MarkChecked(); 26629: return code() == kOk && subcode() == kOverwritten; 26629: } 26629: 26629: 26629: bool IsNotFound() const { 26629: MarkChecked(); 26629: return code() == kNotFound; 26629: } 26629: 26629: 26629: bool IsCorruption() const { 26629: MarkChecked(); 26629: return code() == kCorruption; 26629: } 26629: 26629: 26629: bool IsNotSupported() const { 26629: MarkChecked(); 26629: return code() == kNotSupported; 26629: } 26629: 26629: 26629: bool IsInvalidArgument() const { 26629: MarkChecked(); 26629: return code() == kInvalidArgument; 26629: } 26629: 26629: 26629: bool IsIOError() const { 26629: MarkChecked(); 26629: return code() == kIOError; 26629: } 26629: 26629: 26629: bool IsMergeInProgress() const { 26629: MarkChecked(); 26629: return code() == kMergeInProgress; 26629: } 26629: 26629: 26629: bool IsIncomplete() const { 26629: MarkChecked(); 26629: return code() == kIncomplete; 26629: } 26629: 26629: 26629: bool IsShutdownInProgress() const { 26629: MarkChecked(); 26629: return code() == kShutdownInProgress; 26629: } 26629: 26629: bool IsTimedOut() const { 26629: MarkChecked(); 26629: return code() == kTimedOut; 26629: } 26629: 26629: bool IsAborted() const { 26629: MarkChecked(); 26629: return code() == kAborted; 26629: } 26629: 26629: bool IsLockLimit() const { 26629: MarkChecked(); 26629: return code() == kAborted && subcode() == kLockLimit; 26629: } 26629: 26629: 26629: 26629: bool IsBusy() const { 26629: MarkChecked(); 26629: return code() == kBusy; 26629: } 26629: 26629: bool IsDeadlock() const { 26629: MarkChecked(); 26629: return code() == kBusy && subcode() == kDeadlock; 26629: } 26629: 26629: 26629: bool IsExpired() const { 26629: MarkChecked(); 26629: return code() == kExpired; 26629: } 26629: 26629: 26629: 26629: 26629: bool IsTryAgain() const { 26629: MarkChecked(); 26629: return code() == kTryAgain; 26629: } 26629: 26629: 26629: bool IsCompactionTooLarge() const { 26629: MarkChecked(); 26629: return code() == kCompactionTooLarge; 26629: } 26629: 26629: 26629: bool IsColumnFamilyDropped() const { 26629: MarkChecked(); 26629: return code() == kColumnFamilyDropped; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool IsNoSpace() const { 26629: MarkChecked(); 26629: return (code() == kIOError) && (subcode() == kNoSpace); 26629: } 26629: 26629: 26629: 26629: 26629: bool IsMemoryLimit() const { 26629: MarkChecked(); 26629: return (code() == kAborted) && (subcode() == kMemoryLimit); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: bool IsPathNotFound() const { 26629: MarkChecked(); 26629: return (code() == kIOError || code() == kNotFound) && 26629: (subcode() == kPathNotFound); 26629: } 26629: 26629: 26629: 26629: bool IsManualCompactionPaused() const { 26629: MarkChecked(); 26629: return (code() == kIncomplete) && (subcode() == kManualCompactionPaused); 26629: } 26629: 26629: 26629: bool IsTxnNotPrepared() const { 26629: MarkChecked(); 26629: return (code() == kInvalidArgument) && (subcode() == kTxnNotPrepared); 26629: } 26629: 26629: 26629: bool IsIOFenced() const { 26629: MarkChecked(); 26629: return (code() == kIOError) && (subcode() == kIOFenced); 26629: } 26629: 26629: 26629: 26629: std::string ToString() const; 26629: 26629: protected: 26629: Code code_; 26629: SubCode subcode_; 26629: Severity sev_; 26629: bool retryable_; 26629: bool data_loss_; 26629: unsigned char scope_; 26629: 26629: 26629: std::unique_ptr state_; 26629: 26629: 26629: 26629: 26629: explicit Status(Code _code, SubCode _subcode = kNone) 26629: : code_(_code), 26629: subcode_(_subcode), 26629: sev_(kNoError), 26629: retryable_(false), 26629: data_loss_(false), 26629: scope_(0) {} 26629: 26629: explicit Status(Code _code, SubCode _subcode, bool retryable, bool data_loss, 26629: unsigned char scope) 26629: : code_(_code), 26629: subcode_(_subcode), 26629: sev_(kNoError), 26629: retryable_(retryable), 26629: data_loss_(data_loss), 26629: scope_(scope) {} 26629: 26629: Status(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2, 26629: Severity sev = kNoError); 26629: Status(Code _code, const Slice& msg, const Slice& msg2) 26629: : Status(_code, kNone, msg, msg2) {} 26629: 26629: static std::unique_ptr CopyState(const char* s); 26629: 26629: inline void MarkChecked() const { 26629: 26629: 26629: 26629: } 26629: }; 26629: 26629: inline Status::Status(const Status& s) 26629: : code_(s.code_), 26629: subcode_(s.subcode_), 26629: sev_(s.sev_), 26629: retryable_(s.retryable_), 26629: data_loss_(s.data_loss_), 26629: scope_(s.scope_) { 26629: s.MarkChecked(); 26629: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 26629: } 26629: inline Status::Status(const Status& s, Severity sev) 26629: : code_(s.code_), 26629: subcode_(s.subcode_), 26629: sev_(sev), 26629: retryable_(s.retryable_), 26629: data_loss_(s.data_loss_), 26629: scope_(s.scope_) { 26629: s.MarkChecked(); 26629: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 26629: } 26629: inline Status& Status::operator=(const Status& s) { 26629: if (this != &s) { 26629: s.MarkChecked(); 26629: MustCheck(); 26629: code_ = s.code_; 26629: subcode_ = s.subcode_; 26629: sev_ = s.sev_; 26629: retryable_ = s.retryable_; 26629: data_loss_ = s.data_loss_; 26629: scope_ = s.scope_; 26629: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 26629: } 26629: return *this; 26629: } 26629: 26629: inline Status::Status(Status&& s) noexcept : Status() { 26629: s.MarkChecked(); 26629: *this = std::move(s); 26629: } 26629: 26629: inline Status& Status::operator=(Status&& s) noexcept { 26629: if (this != &s) { 26629: s.MarkChecked(); 26629: MustCheck(); 26629: code_ = std::move(s.code_); 26629: s.code_ = kOk; 26629: subcode_ = std::move(s.subcode_); 26629: s.subcode_ = kNone; 26629: sev_ = std::move(s.sev_); 26629: s.sev_ = kNoError; 26629: retryable_ = std::move(s.retryable_); 26629: s.retryable_ = false; 26629: data_loss_ = std::move(s.data_loss_); 26629: s.data_loss_ = false; 26629: scope_ = std::move(s.scope_); 26629: s.scope_ = 0; 26629: state_ = std::move(s.state_); 26629: } 26629: return *this; 26629: } 26629: 26629: inline bool Status::operator==(const Status& rhs) const { 26629: MarkChecked(); 26629: rhs.MarkChecked(); 26629: return (code_ == rhs.code_); 26629: } 26629: 26629: inline bool Status::operator!=(const Status& rhs) const { 26629: MarkChecked(); 26629: rhs.MarkChecked(); 26629: return !(*this == rhs); 26629: } 26629: 26629: } 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 2 26629: 26629: namespace rocksdb { 26629: class Logger; 26629: class ObjectRegistry; 26629: class OptionTypeInfo; 26629: struct ColumnFamilyOptions; 26629: struct ConfigOptions; 26629: struct DBOptions; 26629: # 44 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: class Configurable { 26629: protected: 26629: friend class ConfigurableHelper; 26629: struct RegisteredOptions { 26629: 26629: std::string name; 26629: 26629: void* opt_ptr; 26629: 26629: 26629: const std::unordered_map* type_map; 26629: 26629: }; 26629: 26629: public: 26629: virtual ~Configurable() {} 26629: # 70 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: template 26629: const T* GetOptions() const { 26629: return GetOptions(T::kName()); 26629: } 26629: template 26629: T* GetOptions() { 26629: return GetOptions(T::kName()); 26629: } 26629: template 26629: const T* GetOptions(const std::string& name) const { 26629: return reinterpret_cast(GetOptionsPtr(name)); 26629: } 26629: template 26629: T* GetOptions(const std::string& name) { 26629: return reinterpret_cast(const_cast(GetOptionsPtr(name))); 26629: } 26629: # 116 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: Status ConfigureFromMap( 26629: const ConfigOptions& config_options, 26629: const std::unordered_map& opt_map); 26629: Status ConfigureFromMap( 26629: const ConfigOptions& config_options, 26629: const std::unordered_map& opt_map, 26629: std::unordered_map* unused); 26629: # 136 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: Status ConfigureOption(const ConfigOptions& config_options, 26629: const std::string& name, const std::string& value); 26629: # 162 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: Status ConfigureFromString(const ConfigOptions& config_options, 26629: const std::string& opts); 26629: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: Status GetOptionString(const ConfigOptions& config_options, 26629: std::string* result) const; 26629: 26629: 26629: 26629: 26629: 26629: 26629: std::string ToString(const ConfigOptions& config_options) const { 26629: return ToString(config_options, ""); 26629: } 26629: std::string ToString(const ConfigOptions& config_options, 26629: const std::string& prefix) const; 26629: 26629: 26629: 26629: 26629: 26629: 26629: Status GetOptionNames(const ConfigOptions& config_options, 26629: std::unordered_set* result) const; 26629: # 203 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: virtual Status GetOption(const ConfigOptions& config_options, 26629: const std::string& name, std::string* value) const; 26629: # 214 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: virtual bool AreEquivalent(const ConfigOptions& config_options, 26629: const Configurable* other, 26629: std::string* name) const; 26629: 26629: 26629: 26629: 26629: virtual std::string GetPrintableOptions() const { return ""; } 26629: # 245 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: virtual Status PrepareOptions(const ConfigOptions& config_options); 26629: # 261 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: virtual Status ValidateOptions(const DBOptions& db_opts, 26629: const ColumnFamilyOptions& cf_opts) const; 26629: # 278 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: static Status GetOptionsMap( 26629: const std::string& opt_value, const std::string& default_id, 26629: std::string* id, std::unordered_map* options); 26629: 26629: protected: 26629: # 293 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: virtual const void* GetOptionsPtr(const std::string& name) const; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status ParseStringOptions(const ConfigOptions& config_options, 26629: const std::string& opts_str); 26629: # 315 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: virtual Status ConfigureOptions( 26629: const ConfigOptions& config_options, 26629: const std::unordered_map& opts_map, 26629: std::unordered_map* unused); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status ParseOption(const ConfigOptions& config_options, 26629: const OptionTypeInfo& opt_info, 26629: const std::string& opt_name, 26629: const std::string& opt_value, void* opt_ptr); 26629: # 345 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: virtual bool OptionsAreEqual(const ConfigOptions& config_options, 26629: const OptionTypeInfo& opt_info, 26629: const std::string& name, 26629: const void* const this_ptr, 26629: const void* const that_ptr, 26629: std::string* bad_name) const; 26629: 26629: 26629: 26629: 26629: virtual std::string SerializeOptions(const ConfigOptions& config_options, 26629: const std::string& header) const; 26629: 26629: 26629: 26629: virtual std::string GetOptionName(const std::string& long_name) const; 26629: # 381 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 26629: template 26629: void RegisterOptions( 26629: T* opt_ptr, 26629: const std::unordered_map* opt_map) { 26629: RegisterOptions(T::kName(), opt_ptr, opt_map); 26629: } 26629: void RegisterOptions( 26629: const std::string& name, void* opt_ptr, 26629: const std::unordered_map* opt_map); 26629: 26629: 26629: inline bool HasRegisteredOptions() const { return !options_.empty(); } 26629: 26629: private: 26629: 26629: 26629: 26629: std::vector options_; 26629: }; 26629: } 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: # 56 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 26629: class Customizable : public Configurable { 26629: public: 26629: ~Customizable() override {} 26629: 26629: 26629: virtual const char* Name() const = 0; 26629: 26629: 26629: 26629: 26629: virtual std::string GetId() const { 26629: std::string id = Name(); 26629: return id; 26629: } 26629: # 89 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 26629: virtual bool IsInstanceOf(const std::string& name) const { 26629: if (name.empty()) { 26629: return false; 26629: } else if (name == Name()) { 26629: return true; 26629: } else { 26629: const char* nickname = NickName(); 26629: if (nickname != nullptr && name == nickname) { 26629: return true; 26629: } else { 26629: return false; 26629: } 26629: } 26629: } 26629: 26629: const void* GetOptionsPtr(const std::string& name) const override { 26629: const void* ptr = Configurable::GetOptionsPtr(name); 26629: if (ptr != nullptr) { 26629: return ptr; 26629: } else { 26629: const auto inner = Inner(); 26629: if (inner != nullptr) { 26629: return inner->GetOptionsPtr(name); 26629: } else { 26629: return nullptr; 26629: } 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: const T* CheckedCast() const { 26629: if (IsInstanceOf(T::kClassName())) { 26629: return static_cast(this); 26629: } else { 26629: const auto inner = Inner(); 26629: if (inner != nullptr) { 26629: return inner->CheckedCast(); 26629: } else { 26629: return nullptr; 26629: } 26629: } 26629: } 26629: 26629: template 26629: T* CheckedCast() { 26629: if (IsInstanceOf(T::kClassName())) { 26629: return static_cast(this); 26629: } else { 26629: auto inner = const_cast(Inner()); 26629: if (inner != nullptr) { 26629: return inner->CheckedCast(); 26629: } else { 26629: return nullptr; 26629: } 26629: } 26629: } 26629: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 26629: bool AreEquivalent(const ConfigOptions& config_options, 26629: const Configurable* other, 26629: std::string* mismatch) const override; 26629: 26629: 26629: 26629: Status GetOption(const ConfigOptions& config_options, const std::string& name, 26629: std::string* value) const override; 26629: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 26629: static Status GetOptionsMap( 26629: const ConfigOptions& config_options, const Customizable* custom, 26629: const std::string& opt_value, std::string* id, 26629: std::unordered_map* options); 26629: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 26629: static Status ConfigureNewObject( 26629: const ConfigOptions& config_options, Customizable* object, 26629: const std::unordered_map& options); 26629: 26629: 26629: 26629: 26629: virtual const Customizable* Inner() const { return nullptr; } 26629: 26629: protected: 26629: # 219 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 26629: std::string GenerateIndividualId() const; 26629: 26629: 26629: 26629: 26629: virtual const char* NickName() const { return ""; } 26629: 26629: std::string GetOptionName(const std::string& long_name) const override; 26629: 26629: std::string SerializeOptions(const ConfigOptions& options, 26629: const std::string& prefix) const override; 26629: 26629: }; 26629: 26629: } 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: 26629: 26629: 26629: class CompareInterface { 26629: public: 26629: virtual ~CompareInterface() {} 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 26629: virtual int Compare(const Slice& a, const Slice& b) const = 0; 26629: }; 26629: # 44 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 26629: class Comparator : public Customizable, public CompareInterface { 26629: public: 26629: Comparator() : timestamp_size_(0) {} 26629: 26629: Comparator(size_t ts_sz) : timestamp_size_(ts_sz) {} 26629: 26629: Comparator(const Comparator& orig) : timestamp_size_(orig.timestamp_size_) {} 26629: 26629: Comparator& operator=(const Comparator& rhs) { 26629: if (this != &rhs) { 26629: timestamp_size_ = rhs.timestamp_size_; 26629: } 26629: return *this; 26629: } 26629: 26629: ~Comparator() override {} 26629: 26629: static Status CreateFromString(const ConfigOptions& opts, 26629: const std::string& id, 26629: const Comparator** comp); 26629: static const char* Type() { return "Comparator"; } 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 26629: const char* Name() const override = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual bool Equal(const Slice& a, const Slice& b) const { 26629: return Compare(a, b) == 0; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void FindShortestSeparator(std::string* start, 26629: const Slice& limit) const = 0; 26629: 26629: 26629: 26629: 26629: virtual void FindShortSuccessor(std::string* key) const = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual bool IsSameLengthImmediateSuccessor(const Slice& , 26629: const Slice& ) const { 26629: return false; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual bool CanKeysWithDifferentByteContentsBeEqual() const { return true; } 26629: 26629: 26629: 26629: virtual const Comparator* GetRootComparator() const { return this; } 26629: 26629: inline size_t timestamp_size() const { return timestamp_size_; } 26629: 26629: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 26629: return CompareWithoutTimestamp(a, true, b, true); 26629: } 26629: # 136 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 26629: virtual int CompareTimestamp(const Slice& , 26629: const Slice& ) const { 26629: return 0; 26629: } 26629: 26629: virtual int CompareWithoutTimestamp(const Slice& a, bool , 26629: const Slice& b, bool ) const { 26629: return Compare(a, b); 26629: } 26629: 26629: virtual bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 26629: return 0 == 26629: CompareWithoutTimestamp(a, true, b, true); 26629: } 26629: 26629: private: 26629: size_t timestamp_size_; 26629: }; 26629: 26629: 26629: 26629: 26629: extern const Comparator* BytewiseComparator(); 26629: 26629: 26629: 26629: extern const Comparator* ReverseBytewiseComparator(); 26629: 26629: } 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 1 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: struct ConfigOptions; 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 26629: class SliceTransform : public Customizable { 26629: public: 26629: virtual ~SliceTransform(){}; 26629: 26629: 26629: virtual const char* Name() const override = 0; 26629: static const char* Type() { return "SliceTransform"; } 26629: 26629: 26629: static Status CreateFromString(const ConfigOptions& config_options, 26629: const std::string& id, 26629: std::shared_ptr* result); 26629: 26629: 26629: 26629: std::string AsString() const; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Slice Transform(const Slice& key) const = 0; 26629: # 71 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 26629: virtual bool InDomain(const Slice& key) const = 0; 26629: 26629: 26629: 26629: virtual bool InRange(const Slice& ) const { return false; } 26629: # 92 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 26629: virtual bool FullLengthEnabled(size_t* ) const { return false; } 26629: # 119 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 26629: virtual bool SameResultWhenAppended(const Slice& ) const { 26629: return false; 26629: } 26629: }; 26629: 26629: 26629: 26629: extern const SliceTransform* NewFixedPrefixTransform(size_t prefix_len); 26629: 26629: 26629: 26629: extern const SliceTransform* NewCappedPrefixTransform(size_t cap_len); 26629: 26629: 26629: extern const SliceTransform* NewNoopTransform(); 26629: 26629: } 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/types.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: using ColumnFamilyId = uint32_t; 26629: 26629: 26629: using SequenceNumber = uint64_t; 26629: 26629: const SequenceNumber kMinUnCommittedSeq = 1; 26629: 26629: enum class TableFileCreationReason { 26629: kFlush, 26629: kCompaction, 26629: kRecovery, 26629: kMisc, 26629: }; 26629: 26629: enum class BlobFileCreationReason { 26629: kFlush, 26629: kCompaction, 26629: kRecovery, 26629: }; 26629: 26629: 26629: 26629: enum FileType { 26629: kWalFile, 26629: kDBLockFile, 26629: kTableFile, 26629: kDescriptorFile, 26629: kCurrentFile, 26629: kTempFile, 26629: kInfoLogFile, 26629: kMetaDatabase, 26629: kIdentityFile, 26629: kOptionsFile, 26629: kBlobFile 26629: }; 26629: 26629: 26629: 26629: enum EntryType { 26629: kEntryPut, 26629: kEntryDelete, 26629: kEntrySingleDelete, 26629: kEntryMerge, 26629: kEntryRangeDeletion, 26629: kEntryBlobIndex, 26629: kEntryDeleteWithTimestamp, 26629: kEntryWideColumnEntity, 26629: kEntryOther, 26629: }; 26629: 26629: } 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/coding.h" 1 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/util/coding.h" 26629: 26629: # 1 "/usr/include/c++/12/algorithm" 1 3 26629: # 58 "/usr/include/c++/12/algorithm" 3 26629: 26629: # 59 "/usr/include/c++/12/algorithm" 3 26629: # 73 "/usr/include/c++/12/algorithm" 3 26629: # 1 "/usr/include/c++/12/pstl/glue_algorithm_defs.h" 1 3 26629: # 17 "/usr/include/c++/12/pstl/glue_algorithm_defs.h" 3 26629: 26629: # 17 "/usr/include/c++/12/pstl/glue_algorithm_defs.h" 3 26629: namespace std 26629: { 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 26629: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 26629: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 26629: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 26629: _ForwardIterator2 __s_last); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 26629: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 26629: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 26629: typename iterator_traits<_ForwardIterator>::difference_type> 26629: count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 26629: typename iterator_traits<_ForwardIterator>::difference_type> 26629: count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 26629: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 26629: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 26629: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 26629: _ForwardIterator2 __s_last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 26629: const _Tp& __value, _BinaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 26629: const _Tp& __value); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, 26629: _Predicate __pred); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 26629: _UnaryOperation __op); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator __result, _BinaryOperation __op); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, 26629: const _Tp& __new_value); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, 26629: const _Tp& __new_value); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 26629: const _Tp& __old_value, const _Tp& __new_value); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result, _Predicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 26629: const _Tp& __value); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 26629: _BinaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 26629: _ForwardIterator __d_first); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> 26629: stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 26629: _UnaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 26629: partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 26629: _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 26629: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator2 __last2, _BinaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 26629: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _BinaryPredicate __pred); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 26629: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator2 __last2); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 26629: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _BinaryPredicate __p); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator2 __last2, _BinaryPredicate __p); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator2 __last2); 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 26629: _RandomAccessIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 26629: _RandomAccessIterator __last); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 26629: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 26629: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 26629: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 26629: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 26629: _RandomAccessIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 26629: _RandomAccessIterator __last); 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator2 __last2, _ForwardIterator __d_first); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 26629: _BidirectionalIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 26629: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 26629: _BidirectionalIterator __last); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator2 __last2, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator2 __last2); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 26629: _ForwardIterator2 __last2, _ForwardIterator __result); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, 26629: _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 26629: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 26629: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 26629: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 26629: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 26629: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 26629: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _ForwardIterator2 __last2); 26629: 26629: } 26629: # 74 "/usr/include/c++/12/algorithm" 2 3 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/util/coding.h" 2 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/port.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/port/port.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 1 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 26629: 26629: 26629: # 1 "/usr/include/c++/12/thread" 1 3 26629: # 32 "/usr/include/c++/12/thread" 3 26629: 26629: # 33 "/usr/include/c++/12/thread" 3 26629: # 43 "/usr/include/c++/12/thread" 3 26629: # 1 "/usr/include/c++/12/bits/std_thread.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/std_thread.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/std_thread.h" 3 26629: # 52 "/usr/include/c++/12/bits/std_thread.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class thread 26629: { 26629: public: 26629: 26629: 26629: 26629: struct _State 26629: { 26629: virtual ~_State(); 26629: virtual void _M_run() = 0; 26629: }; 26629: using _State_ptr = unique_ptr<_State>; 26629: 26629: using native_handle_type = __gthread_t; 26629: 26629: 26629: 26629: 26629: 26629: class id 26629: { 26629: native_handle_type _M_thread; 26629: 26629: public: 26629: id() noexcept : _M_thread() { } 26629: 26629: explicit 26629: id(native_handle_type __id) : _M_thread(__id) { } 26629: 26629: private: 26629: friend class thread; 26629: friend struct hash; 26629: 26629: friend bool 26629: operator==(id __x, id __y) noexcept; 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator<(id __x, id __y) noexcept; 26629: 26629: 26629: template 26629: friend basic_ostream<_CharT, _Traits>& 26629: operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); 26629: }; 26629: 26629: private: 26629: id _M_id; 26629: 26629: 26629: 26629: 26629: template 26629: using __not_same = __not_, thread>>; 26629: 26629: public: 26629: thread() noexcept = default; 26629: 26629: 26629: template>> 26629: explicit 26629: thread(_Callable&& __f, _Args&&... __args) 26629: { 26629: static_assert( __is_invocable::type, 26629: typename decay<_Args>::type...>::value, 26629: "std::thread arguments must be invocable after conversion to rvalues" 26629: ); 26629: 26629: 26629: 26629: 26629: 26629: auto __depend = nullptr; 26629: 26629: using _Wrapper = _Call_wrapper<_Callable, _Args...>; 26629: 26629: 26629: _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( 26629: std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), 26629: __depend); 26629: } 26629: 26629: 26629: ~thread() 26629: { 26629: if (joinable()) 26629: std::__terminate(); 26629: } 26629: 26629: thread(const thread&) = delete; 26629: 26629: thread(thread&& __t) noexcept 26629: { swap(__t); } 26629: 26629: thread& operator=(const thread&) = delete; 26629: 26629: thread& operator=(thread&& __t) noexcept 26629: { 26629: if (joinable()) 26629: std::__terminate(); 26629: swap(__t); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(thread& __t) noexcept 26629: { std::swap(_M_id, __t._M_id); } 26629: 26629: bool 26629: joinable() const noexcept 26629: { return !(_M_id == id()); } 26629: 26629: void 26629: join(); 26629: 26629: void 26629: detach(); 26629: 26629: id 26629: get_id() const noexcept 26629: { return _M_id; } 26629: 26629: 26629: 26629: native_handle_type 26629: native_handle() 26629: { return _M_id._M_thread; } 26629: 26629: 26629: static unsigned int 26629: hardware_concurrency() noexcept; 26629: 26629: 26629: private: 26629: template 26629: struct _State_impl : public _State 26629: { 26629: _Callable _M_func; 26629: 26629: template 26629: _State_impl(_Args&&... __args) 26629: : _M_func{{std::forward<_Args>(__args)...}} 26629: { } 26629: 26629: void 26629: _M_run() { _M_func(); } 26629: }; 26629: 26629: void 26629: _M_start_thread(_State_ptr, void (*)()); 26629: # 235 "/usr/include/c++/12/bits/std_thread.h" 3 26629: private: 26629: 26629: template 26629: struct _Invoker 26629: { 26629: _Tuple _M_t; 26629: 26629: template 26629: struct __result; 26629: template 26629: struct __result> 26629: : __invoke_result<_Fn, _Args...> 26629: { }; 26629: 26629: template 26629: typename __result<_Tuple>::type 26629: _M_invoke(_Index_tuple<_Ind...>) 26629: { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } 26629: 26629: typename __result<_Tuple>::type 26629: operator()() 26629: { 26629: using _Indices 26629: = typename _Build_index_tuple::value>::__type; 26629: return _M_invoke(_Indices()); 26629: } 26629: }; 26629: 26629: public: 26629: template 26629: using _Call_wrapper = _Invoker::type...>>; 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline void 26629: swap(thread& __x, thread& __y) noexcept 26629: { __x.swap(__y); } 26629: 26629: inline bool 26629: operator==(thread::id __x, thread::id __y) noexcept 26629: { 26629: 26629: 26629: 26629: 26629: return __x._M_thread == __y._M_thread; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const thread::id& __id) const noexcept 26629: { return std::_Hash_impl::hash(__id._M_thread); } 26629: }; 26629: 26629: namespace this_thread 26629: { 26629: 26629: inline thread::id 26629: get_id() noexcept 26629: { 26629: 26629: 26629: 26629: return thread::id(pthread_self()); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: inline void 26629: yield() noexcept 26629: { 26629: 26629: __gthread_yield(); 26629: 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: 26629: } 26629: # 44 "/usr/include/c++/12/thread" 2 3 26629: # 1 "/usr/include/c++/12/bits/this_thread_sleep.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/this_thread_sleep.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/this_thread_sleep.h" 3 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/chrono.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/chrono.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/chrono.h" 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/ratio" 1 3 26629: # 33 "/usr/include/c++/12/ratio" 3 26629: 26629: # 34 "/usr/include/c++/12/ratio" 3 26629: # 42 "/usr/include/c++/12/ratio" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 56 "/usr/include/c++/12/ratio" 3 26629: template 26629: struct __static_sign 26629: : integral_constant 26629: { }; 26629: 26629: template 26629: struct __static_abs 26629: : integral_constant::value> 26629: { }; 26629: 26629: template 26629: struct __static_gcd 26629: : __static_gcd<_Qn, (_Pn % _Qn)> 26629: { }; 26629: 26629: template 26629: struct __static_gcd<_Pn, 0> 26629: : integral_constant::value> 26629: { }; 26629: 26629: template 26629: struct __static_gcd<0, _Qn> 26629: : integral_constant::value> 26629: { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __safe_multiply 26629: { 26629: private: 26629: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 26629: 26629: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 26629: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 26629: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 26629: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 26629: 26629: static_assert(__a1 == 0 || __b1 == 0, 26629: "overflow in multiplication"); 26629: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 26629: "overflow in multiplication"); 26629: static_assert(__b0 * __a0 <= 0x7fffffffffffffffLL, 26629: "overflow in multiplication"); 26629: static_assert((__a0 * __b1 + __b0 * __a1) * __c 26629: <= 0x7fffffffffffffffLL - __b0 * __a0, 26629: "overflow in multiplication"); 26629: 26629: public: 26629: static const intmax_t value = _Pn * _Qn; 26629: }; 26629: 26629: 26629: 26629: template 26629: struct __big_less 26629: : integral_constant 26629: { }; 26629: 26629: template 26629: struct __big_add 26629: { 26629: static constexpr uintmax_t __lo = __lo1 + __lo2; 26629: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 26629: (__lo1 + __lo2 < __lo1)); 26629: }; 26629: 26629: 26629: template 26629: struct __big_sub 26629: { 26629: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 26629: "Internal library error"); 26629: static constexpr uintmax_t __lo = __lo1 - __lo2; 26629: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 26629: (__lo1 < __lo2)); 26629: }; 26629: 26629: 26629: template 26629: struct __big_mul 26629: { 26629: private: 26629: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 26629: static constexpr uintmax_t __x0 = __x % __c; 26629: static constexpr uintmax_t __x1 = __x / __c; 26629: static constexpr uintmax_t __y0 = __y % __c; 26629: static constexpr uintmax_t __y1 = __y / __c; 26629: static constexpr uintmax_t __x0y0 = __x0 * __y0; 26629: static constexpr uintmax_t __x0y1 = __x0 * __y1; 26629: static constexpr uintmax_t __x1y0 = __x1 * __y0; 26629: static constexpr uintmax_t __x1y1 = __x1 * __y1; 26629: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 26629: static constexpr uintmax_t __mix_lo = __mix * __c; 26629: static constexpr uintmax_t __mix_hi 26629: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 26629: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 26629: public: 26629: static constexpr uintmax_t __hi = _Res::__hi; 26629: static constexpr uintmax_t __lo = _Res::__lo; 26629: }; 26629: 26629: 26629: 26629: template 26629: struct __big_div_impl 26629: { 26629: private: 26629: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 26629: "Internal library error"); 26629: static_assert(__n1 < __d, "Internal library error"); 26629: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 26629: static constexpr uintmax_t __d1 = __d / __c; 26629: static constexpr uintmax_t __d0 = __d % __c; 26629: 26629: static constexpr uintmax_t __q1x = __n1 / __d1; 26629: static constexpr uintmax_t __r1x = __n1 % __d1; 26629: static constexpr uintmax_t __m = __q1x * __d0; 26629: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 26629: static constexpr uintmax_t __r1z = __r1y + __d; 26629: static constexpr uintmax_t __r1 26629: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 26629: ? (__r1z + __d) : __r1z : __r1y) - __m; 26629: static constexpr uintmax_t __q1 26629: = __q1x - ((__r1y < __m) 26629: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 26629: static constexpr uintmax_t __q0x = __r1 / __d1; 26629: static constexpr uintmax_t __r0x = __r1 % __d1; 26629: static constexpr uintmax_t __n = __q0x * __d0; 26629: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 26629: static constexpr uintmax_t __r0z = __r0y + __d; 26629: static constexpr uintmax_t __r0 26629: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 26629: ? (__r0z + __d) : __r0z : __r0y) - __n; 26629: static constexpr uintmax_t __q0 26629: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 26629: && (__r0z < __n)) ? 2 : 1 : 0); 26629: 26629: public: 26629: static constexpr uintmax_t __quot = __q1 * __c + __q0; 26629: static constexpr uintmax_t __rem = __r0; 26629: 26629: private: 26629: typedef __big_mul<__quot, __d> _Prod; 26629: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 26629: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 26629: "Internal library error"); 26629: }; 26629: 26629: template 26629: struct __big_div 26629: { 26629: private: 26629: static_assert(__d != 0, "Internal library error"); 26629: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 26629: "This library calls __builtin_clzll on uintmax_t, which " 26629: "is unsafe on your platform. Please complain to " 26629: "http://gcc.gnu.org/bugzilla/"); 26629: static constexpr int __shift = __builtin_clzll(__d); 26629: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 26629: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 26629: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 26629: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 26629: static constexpr uintmax_t __new_d = __d * __c1; 26629: static constexpr uintmax_t __new_n0 = __n0 * __c1; 26629: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 26629: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 26629: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 26629: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 26629: 26629: public: 26629: static constexpr uintmax_t __quot_hi = __n1 / __d; 26629: static constexpr uintmax_t __quot_lo = _Res::__quot; 26629: static constexpr uintmax_t __rem = _Res::__rem / __c1; 26629: 26629: private: 26629: typedef __big_mul<__quot_lo, __d> _P0; 26629: typedef __big_mul<__quot_hi, __d> _P1; 26629: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 26629: 26629: static_assert(_P1::__hi == 0, "Internal library error"); 26629: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 26629: 26629: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 26629: "Internal library error"); 26629: static_assert(__rem < __d, "Internal library error"); 26629: }; 26629: # 265 "/usr/include/c++/12/ratio" 3 26629: template 26629: struct ratio 26629: { 26629: static_assert(_Den != 0, "denominator cannot be zero"); 26629: static_assert(_Num >= -0x7fffffffffffffffLL && _Den >= -0x7fffffffffffffffLL, 26629: "out of range"); 26629: 26629: 26629: static constexpr intmax_t num = 26629: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 26629: 26629: static constexpr intmax_t den = 26629: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 26629: 26629: typedef ratio type; 26629: }; 26629: # 292 "/usr/include/c++/12/ratio" 3 26629: template 26629: struct __ratio_multiply 26629: { 26629: private: 26629: static const intmax_t __gcd1 = 26629: __static_gcd<_R1::num, _R2::den>::value; 26629: static const intmax_t __gcd2 = 26629: __static_gcd<_R2::num, _R1::den>::value; 26629: 26629: public: 26629: typedef ratio< 26629: __safe_multiply<(_R1::num / __gcd1), 26629: (_R2::num / __gcd2)>::value, 26629: __safe_multiply<(_R1::den / __gcd2), 26629: (_R2::den / __gcd1)>::value> type; 26629: 26629: static constexpr intmax_t num = type::num; 26629: static constexpr intmax_t den = type::den; 26629: }; 26629: # 323 "/usr/include/c++/12/ratio" 3 26629: template 26629: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 26629: 26629: 26629: 26629: template 26629: struct __ratio_divide 26629: { 26629: static_assert(_R2::num != 0, "division by 0"); 26629: 26629: typedef typename __ratio_multiply< 26629: _R1, 26629: ratio<_R2::den, _R2::num>>::type type; 26629: 26629: static constexpr intmax_t num = type::num; 26629: static constexpr intmax_t den = type::den; 26629: }; 26629: # 352 "/usr/include/c++/12/ratio" 3 26629: template 26629: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 26629: 26629: 26629: template 26629: struct ratio_equal 26629: : integral_constant 26629: { }; 26629: 26629: 26629: template 26629: struct ratio_not_equal 26629: : integral_constant::value> 26629: { }; 26629: 26629: 26629: 26629: 26629: template, 26629: typename _Right = __big_mul<_R2::num,_R1::den> > 26629: struct __ratio_less_impl_1 26629: : integral_constant::value> 26629: { }; 26629: 26629: template::value 26629: != __static_sign<_R2::num>::value)), 26629: bool = (__static_sign<_R1::num>::value == -1 26629: && __static_sign<_R2::num>::value == -1)> 26629: struct __ratio_less_impl 26629: : __ratio_less_impl_1<_R1, _R2>::type 26629: { }; 26629: 26629: template 26629: struct __ratio_less_impl<_R1, _R2, true, false> 26629: : integral_constant 26629: { }; 26629: 26629: template 26629: struct __ratio_less_impl<_R1, _R2, false, true> 26629: : __ratio_less_impl_1, 26629: ratio<-_R1::num, _R1::den> >::type 26629: { }; 26629: 26629: 26629: 26629: 26629: template 26629: struct ratio_less 26629: : __ratio_less_impl<_R1, _R2>::type 26629: { }; 26629: 26629: 26629: template 26629: struct ratio_less_equal 26629: : integral_constant::value> 26629: { }; 26629: 26629: 26629: template 26629: struct ratio_greater 26629: : integral_constant::value> 26629: { }; 26629: 26629: 26629: template 26629: struct ratio_greater_equal 26629: : integral_constant::value> 26629: { }; 26629: 26629: 26629: template 26629: inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; 26629: template 26629: inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; 26629: template 26629: inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; 26629: template 26629: inline constexpr bool ratio_less_equal_v = 26629: ratio_less_equal<_R1, _R2>::value; 26629: template 26629: inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; 26629: template 26629: inline constexpr bool ratio_greater_equal_v 26629: = ratio_greater_equal<_R1, _R2>::value; 26629: 26629: 26629: 26629: 26629: template= 0), 26629: bool = (_R2::num >= 0), 26629: bool = ratio_less::value, _R1::den>, 26629: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 26629: struct __ratio_add_impl 26629: { 26629: private: 26629: typedef typename __ratio_add_impl< 26629: ratio<-_R1::num, _R1::den>, 26629: ratio<-_R2::num, _R2::den> >::type __t; 26629: public: 26629: typedef ratio<-__t::num, __t::den> type; 26629: }; 26629: 26629: 26629: template 26629: struct __ratio_add_impl<_R1, _R2, true, true, __b> 26629: { 26629: private: 26629: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 26629: static constexpr uintmax_t __d2 = _R2::den / __g; 26629: typedef __big_mul<_R1::den, __d2> __d; 26629: typedef __big_mul<_R1::num, _R2::den / __g> __x; 26629: typedef __big_mul<_R2::num, _R1::den / __g> __y; 26629: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 26629: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 26629: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 26629: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 26629: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 26629: static_assert(__n_final::__rem == 0, "Internal library error"); 26629: static_assert(__n_final::__quot_hi == 0 && 26629: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 26629: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 26629: static_assert(__d_final::__hi == 0 && 26629: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 26629: public: 26629: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 26629: }; 26629: 26629: template 26629: struct __ratio_add_impl<_R1, _R2, false, true, true> 26629: : __ratio_add_impl<_R2, _R1> 26629: { }; 26629: 26629: 26629: template 26629: struct __ratio_add_impl<_R1, _R2, true, false, false> 26629: { 26629: private: 26629: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 26629: static constexpr uintmax_t __d2 = _R2::den / __g; 26629: typedef __big_mul<_R1::den, __d2> __d; 26629: typedef __big_mul<_R1::num, _R2::den / __g> __x; 26629: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 26629: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 26629: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 26629: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 26629: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 26629: static_assert(__n_final::__rem == 0, "Internal library error"); 26629: static_assert(__n_final::__quot_hi == 0 && 26629: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 26629: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 26629: static_assert(__d_final::__hi == 0 && 26629: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 26629: public: 26629: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 26629: }; 26629: 26629: template 26629: struct __ratio_add 26629: { 26629: typedef typename __ratio_add_impl<_R1, _R2>::type type; 26629: static constexpr intmax_t num = type::num; 26629: static constexpr intmax_t den = type::den; 26629: }; 26629: # 532 "/usr/include/c++/12/ratio" 3 26629: template 26629: using ratio_add = typename __ratio_add<_R1, _R2>::type; 26629: 26629: 26629: 26629: template 26629: struct __ratio_subtract 26629: { 26629: typedef typename __ratio_add< 26629: _R1, 26629: ratio<-_R2::num, _R2::den>>::type type; 26629: 26629: static constexpr intmax_t num = type::num; 26629: static constexpr intmax_t den = type::den; 26629: }; 26629: # 559 "/usr/include/c++/12/ratio" 3 26629: template 26629: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 26629: 26629: 26629: typedef ratio<1, 1000000000000000000> atto; 26629: typedef ratio<1, 1000000000000000> femto; 26629: typedef ratio<1, 1000000000000> pico; 26629: typedef ratio<1, 1000000000> nano; 26629: typedef ratio<1, 1000000> micro; 26629: typedef ratio<1, 1000> milli; 26629: typedef ratio<1, 100> centi; 26629: typedef ratio<1, 10> deci; 26629: typedef ratio< 10, 1> deca; 26629: typedef ratio< 100, 1> hecto; 26629: typedef ratio< 1000, 1> kilo; 26629: typedef ratio< 1000000, 1> mega; 26629: typedef ratio< 1000000000, 1> giga; 26629: typedef ratio< 1000000000000, 1> tera; 26629: typedef ratio< 1000000000000000, 1> peta; 26629: typedef ratio< 1000000000000000000, 1> exa; 26629: 26629: 26629: 26629: } 26629: # 38 "/usr/include/c++/12/bits/chrono.h" 2 3 26629: 26629: # 1 "/usr/include/c++/12/limits" 1 3 26629: # 40 "/usr/include/c++/12/limits" 3 26629: 26629: # 41 "/usr/include/c++/12/limits" 3 26629: # 158 "/usr/include/c++/12/limits" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: enum float_round_style 26629: { 26629: round_indeterminate = -1, 26629: round_toward_zero = 0, 26629: round_to_nearest = 1, 26629: round_toward_infinity = 2, 26629: round_toward_neg_infinity = 3 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: enum float_denorm_style 26629: { 26629: 26629: denorm_indeterminate = -1, 26629: 26629: denorm_absent = 0, 26629: 26629: denorm_present = 1 26629: }; 26629: # 202 "/usr/include/c++/12/limits" 3 26629: struct __numeric_limits_base 26629: { 26629: 26629: 26629: static constexpr bool is_specialized = false; 26629: 26629: 26629: 26629: 26629: static constexpr int digits = 0; 26629: 26629: 26629: static constexpr int digits10 = 0; 26629: 26629: 26629: 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: 26629: 26629: static constexpr bool is_signed = false; 26629: 26629: 26629: static constexpr bool is_integer = false; 26629: 26629: 26629: 26629: 26629: static constexpr bool is_exact = false; 26629: 26629: 26629: 26629: static constexpr int radix = 0; 26629: 26629: 26629: 26629: static constexpr int min_exponent = 0; 26629: 26629: 26629: 26629: static constexpr int min_exponent10 = 0; 26629: 26629: 26629: 26629: 26629: static constexpr int max_exponent = 0; 26629: 26629: 26629: 26629: static constexpr int max_exponent10 = 0; 26629: 26629: 26629: static constexpr bool has_infinity = false; 26629: 26629: 26629: 26629: static constexpr bool has_quiet_NaN = false; 26629: 26629: 26629: 26629: static constexpr bool has_signaling_NaN = false; 26629: 26629: 26629: static constexpr float_denorm_style has_denorm = denorm_absent; 26629: 26629: 26629: 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: 26629: 26629: static constexpr bool is_iec559 = false; 26629: 26629: 26629: 26629: 26629: static constexpr bool is_bounded = false; 26629: # 288 "/usr/include/c++/12/limits" 3 26629: static constexpr bool is_modulo = false; 26629: 26629: 26629: static constexpr bool traps = false; 26629: 26629: 26629: static constexpr bool tinyness_before = false; 26629: 26629: 26629: 26629: 26629: static constexpr float_round_style round_style = 26629: round_toward_zero; 26629: }; 26629: # 311 "/usr/include/c++/12/limits" 3 26629: template 26629: struct numeric_limits : public __numeric_limits_base 26629: { 26629: 26629: 26629: static constexpr _Tp 26629: min() noexcept { return _Tp(); } 26629: 26629: 26629: static constexpr _Tp 26629: max() noexcept { return _Tp(); } 26629: 26629: 26629: 26629: 26629: static constexpr _Tp 26629: lowest() noexcept { return _Tp(); } 26629: 26629: 26629: 26629: 26629: static constexpr _Tp 26629: epsilon() noexcept { return _Tp(); } 26629: 26629: 26629: static constexpr _Tp 26629: round_error() noexcept { return _Tp(); } 26629: 26629: 26629: static constexpr _Tp 26629: infinity() noexcept { return _Tp(); } 26629: 26629: 26629: 26629: static constexpr _Tp 26629: quiet_NaN() noexcept { return _Tp(); } 26629: 26629: 26629: 26629: static constexpr _Tp 26629: signaling_NaN() noexcept { return _Tp(); } 26629: 26629: 26629: 26629: 26629: static constexpr _Tp 26629: denorm_min() noexcept { return _Tp(); } 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct numeric_limits 26629: : public numeric_limits<_Tp> { }; 26629: 26629: template 26629: struct numeric_limits 26629: : public numeric_limits<_Tp> { }; 26629: 26629: template 26629: struct numeric_limits 26629: : public numeric_limits<_Tp> { }; 26629: # 383 "/usr/include/c++/12/limits" 3 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr bool 26629: min() noexcept { return false; } 26629: 26629: static constexpr bool 26629: max() noexcept { return true; } 26629: 26629: 26629: static constexpr bool 26629: lowest() noexcept { return min(); } 26629: 26629: static constexpr int digits = 1; 26629: static constexpr int digits10 = 0; 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = false; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr bool 26629: epsilon() noexcept { return false; } 26629: 26629: static constexpr bool 26629: round_error() noexcept { return false; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr bool 26629: infinity() noexcept { return false; } 26629: 26629: static constexpr bool 26629: quiet_NaN() noexcept { return false; } 26629: 26629: static constexpr bool 26629: signaling_NaN() noexcept { return false; } 26629: 26629: static constexpr bool 26629: denorm_min() noexcept { return false; } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = false; 26629: 26629: 26629: 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr char 26629: 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); } 26629: 26629: static constexpr char 26629: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 26629: 26629: 26629: static constexpr char 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 26629: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = ((char)(-1) < 0); 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr char 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr char 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr 26629: char infinity() noexcept { return char(); } 26629: 26629: static constexpr char 26629: quiet_NaN() noexcept { return char(); } 26629: 26629: static constexpr char 26629: signaling_NaN() noexcept { return char(); } 26629: 26629: static constexpr char 26629: denorm_min() noexcept { return static_cast(0); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = !is_signed; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr signed char 26629: min() noexcept { return -0x7f - 1; } 26629: 26629: static constexpr signed char 26629: max() noexcept { return 0x7f; } 26629: 26629: 26629: static constexpr signed char 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 26629: static constexpr int digits10 26629: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = true; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr signed char 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr signed char 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr signed char 26629: infinity() noexcept { return static_cast(0); } 26629: 26629: static constexpr signed char 26629: quiet_NaN() noexcept { return static_cast(0); } 26629: 26629: static constexpr signed char 26629: signaling_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr signed char 26629: denorm_min() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = false; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr unsigned char 26629: min() noexcept { return 0; } 26629: 26629: static constexpr unsigned char 26629: max() noexcept { return 0x7f * 2U + 1; } 26629: 26629: 26629: static constexpr unsigned char 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits 26629: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 26629: static constexpr int digits10 26629: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = false; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr unsigned char 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr unsigned char 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr unsigned char 26629: infinity() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned char 26629: quiet_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned char 26629: signaling_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned char 26629: denorm_min() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = true; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr wchar_t 26629: 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); } 26629: 26629: static constexpr wchar_t 26629: 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); } 26629: 26629: 26629: static constexpr wchar_t 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 26629: static constexpr int digits10 26629: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr wchar_t 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr wchar_t 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr wchar_t 26629: infinity() noexcept { return wchar_t(); } 26629: 26629: static constexpr wchar_t 26629: quiet_NaN() noexcept { return wchar_t(); } 26629: 26629: static constexpr wchar_t 26629: signaling_NaN() noexcept { return wchar_t(); } 26629: 26629: static constexpr wchar_t 26629: denorm_min() noexcept { return wchar_t(); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = !is_signed; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: # 796 "/usr/include/c++/12/limits" 3 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr char16_t 26629: 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); } 26629: 26629: static constexpr char16_t 26629: 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); } 26629: 26629: static constexpr char16_t 26629: lowest() noexcept { return min(); } 26629: 26629: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 26629: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 26629: static constexpr int max_digits10 = 0; 26629: static constexpr bool is_signed = ((char16_t)(-1) < 0); 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr char16_t 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr char16_t 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr char16_t 26629: infinity() noexcept { return char16_t(); } 26629: 26629: static constexpr char16_t 26629: quiet_NaN() noexcept { return char16_t(); } 26629: 26629: static constexpr char16_t 26629: signaling_NaN() noexcept { return char16_t(); } 26629: 26629: static constexpr char16_t 26629: denorm_min() noexcept { return char16_t(); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = !is_signed; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr char32_t 26629: 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); } 26629: 26629: static constexpr char32_t 26629: 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); } 26629: 26629: static constexpr char32_t 26629: lowest() noexcept { return min(); } 26629: 26629: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 26629: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 26629: static constexpr int max_digits10 = 0; 26629: static constexpr bool is_signed = ((char32_t)(-1) < 0); 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr char32_t 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr char32_t 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr char32_t 26629: infinity() noexcept { return char32_t(); } 26629: 26629: static constexpr char32_t 26629: quiet_NaN() noexcept { return char32_t(); } 26629: 26629: static constexpr char32_t 26629: signaling_NaN() noexcept { return char32_t(); } 26629: 26629: static constexpr char32_t 26629: denorm_min() noexcept { return char32_t(); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = !is_signed; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style = round_toward_zero; 26629: }; 26629: 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr short 26629: min() noexcept { return -0x7fff - 1; } 26629: 26629: static constexpr short 26629: max() noexcept { return 0x7fff; } 26629: 26629: 26629: static constexpr short 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 26629: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = true; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr short 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr short 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr short 26629: infinity() noexcept { return short(); } 26629: 26629: static constexpr short 26629: quiet_NaN() noexcept { return short(); } 26629: 26629: static constexpr short 26629: signaling_NaN() noexcept { return short(); } 26629: 26629: static constexpr short 26629: denorm_min() noexcept { return short(); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = false; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr unsigned short 26629: min() noexcept { return 0; } 26629: 26629: static constexpr unsigned short 26629: max() noexcept { return 0x7fff * 2U + 1; } 26629: 26629: 26629: static constexpr unsigned short 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits 26629: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 26629: static constexpr int digits10 26629: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = false; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr unsigned short 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr unsigned short 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr unsigned short 26629: infinity() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned short 26629: quiet_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned short 26629: signaling_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned short 26629: denorm_min() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = true; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr int 26629: min() noexcept { return -0x7fffffff - 1; } 26629: 26629: static constexpr int 26629: max() noexcept { return 0x7fffffff; } 26629: 26629: 26629: static constexpr int 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 26629: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = true; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr int 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr int 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr int 26629: infinity() noexcept { return static_cast(0); } 26629: 26629: static constexpr int 26629: quiet_NaN() noexcept { return static_cast(0); } 26629: 26629: static constexpr int 26629: signaling_NaN() noexcept { return static_cast(0); } 26629: 26629: static constexpr int 26629: denorm_min() noexcept { return static_cast(0); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = false; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr unsigned int 26629: min() noexcept { return 0; } 26629: 26629: static constexpr unsigned int 26629: max() noexcept { return 0x7fffffff * 2U + 1; } 26629: 26629: 26629: static constexpr unsigned int 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits 26629: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 26629: static constexpr int digits10 26629: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = false; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr unsigned int 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr unsigned int 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr unsigned int 26629: infinity() noexcept { return static_cast(0); } 26629: 26629: static constexpr unsigned int 26629: quiet_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned int 26629: signaling_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned int 26629: denorm_min() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = true; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr long 26629: min() noexcept { return -0x7fffffffL - 1; } 26629: 26629: static constexpr long 26629: max() noexcept { return 0x7fffffffL; } 26629: 26629: 26629: static constexpr long 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 26629: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = true; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr long 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr long 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr long 26629: infinity() noexcept { return static_cast(0); } 26629: 26629: static constexpr long 26629: quiet_NaN() noexcept { return static_cast(0); } 26629: 26629: static constexpr long 26629: signaling_NaN() noexcept { return static_cast(0); } 26629: 26629: static constexpr long 26629: denorm_min() noexcept { return static_cast(0); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = false; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr unsigned long 26629: min() noexcept { return 0; } 26629: 26629: static constexpr unsigned long 26629: max() noexcept { return 0x7fffffffL * 2UL + 1; } 26629: 26629: 26629: static constexpr unsigned long 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits 26629: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 26629: static constexpr int digits10 26629: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = false; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr unsigned long 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr unsigned long 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr unsigned long 26629: infinity() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned long 26629: quiet_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned long 26629: signaling_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned long 26629: denorm_min() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = true; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr long long 26629: min() noexcept { return -0x7fffffffffffffffLL - 1; } 26629: 26629: static constexpr long long 26629: max() noexcept { return 0x7fffffffffffffffLL; } 26629: 26629: 26629: static constexpr long long 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits 26629: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 26629: static constexpr int digits10 26629: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = true; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr long long 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr long long 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr long long 26629: infinity() noexcept { return static_cast(0); } 26629: 26629: static constexpr long long 26629: quiet_NaN() noexcept { return static_cast(0); } 26629: 26629: static constexpr long long 26629: signaling_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr long long 26629: denorm_min() noexcept { return static_cast(0); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = false; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr unsigned long long 26629: min() noexcept { return 0; } 26629: 26629: static constexpr unsigned long long 26629: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 26629: 26629: 26629: static constexpr unsigned long long 26629: lowest() noexcept { return min(); } 26629: 26629: 26629: static constexpr int digits 26629: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 26629: static constexpr int digits10 26629: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 26629: 26629: static constexpr int max_digits10 = 0; 26629: 26629: static constexpr bool is_signed = false; 26629: static constexpr bool is_integer = true; 26629: static constexpr bool is_exact = true; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr unsigned long long 26629: epsilon() noexcept { return 0; } 26629: 26629: static constexpr unsigned long long 26629: round_error() noexcept { return 0; } 26629: 26629: static constexpr int min_exponent = 0; 26629: static constexpr int min_exponent10 = 0; 26629: static constexpr int max_exponent = 0; 26629: static constexpr int max_exponent10 = 0; 26629: 26629: static constexpr bool has_infinity = false; 26629: static constexpr bool has_quiet_NaN = false; 26629: static constexpr bool has_signaling_NaN = false; 26629: static constexpr float_denorm_style has_denorm 26629: = denorm_absent; 26629: static constexpr bool has_denorm_loss = false; 26629: 26629: static constexpr unsigned long long 26629: infinity() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned long long 26629: quiet_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned long long 26629: signaling_NaN() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr unsigned long long 26629: denorm_min() noexcept 26629: { return static_cast(0); } 26629: 26629: static constexpr bool is_iec559 = false; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = true; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = false; 26629: static constexpr float_round_style round_style 26629: = round_toward_zero; 26629: }; 26629: # 1669 "/usr/include/c++/12/limits" 3 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr float 26629: min() noexcept { return 1.1754943508222875e-38F; } 26629: 26629: static constexpr float 26629: max() noexcept { return 3.4028234663852886e+38F; } 26629: 26629: 26629: static constexpr float 26629: lowest() noexcept { return -3.4028234663852886e+38F; } 26629: 26629: 26629: static constexpr int digits = 24; 26629: static constexpr int digits10 = 6; 26629: 26629: static constexpr int max_digits10 26629: = (2 + (24) * 643L / 2136); 26629: 26629: static constexpr bool is_signed = true; 26629: static constexpr bool is_integer = false; 26629: static constexpr bool is_exact = false; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr float 26629: epsilon() noexcept { return 1.1920928955078125e-7F; } 26629: 26629: static constexpr float 26629: round_error() noexcept { return 0.5F; } 26629: 26629: static constexpr int min_exponent = (-125); 26629: static constexpr int min_exponent10 = (-37); 26629: static constexpr int max_exponent = 128; 26629: static constexpr int max_exponent10 = 38; 26629: 26629: static constexpr bool has_infinity = 1; 26629: static constexpr bool has_quiet_NaN = 1; 26629: static constexpr bool has_signaling_NaN = has_quiet_NaN; 26629: static constexpr float_denorm_style has_denorm 26629: = bool(1) ? denorm_present : denorm_absent; 26629: static constexpr bool has_denorm_loss 26629: = false; 26629: 26629: static constexpr float 26629: infinity() noexcept { return __builtin_huge_valf(); } 26629: 26629: static constexpr float 26629: quiet_NaN() noexcept { return __builtin_nanf(""); } 26629: 26629: static constexpr float 26629: signaling_NaN() noexcept { return __builtin_nansf(""); } 26629: 26629: static constexpr float 26629: denorm_min() noexcept { return 1.4012984643248171e-45F; } 26629: 26629: static constexpr bool is_iec559 26629: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = false; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before 26629: = false; 26629: static constexpr float_round_style round_style 26629: = round_to_nearest; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr double 26629: min() noexcept { return double(2.2250738585072014e-308L); } 26629: 26629: static constexpr double 26629: max() noexcept { return double(1.7976931348623157e+308L); } 26629: 26629: 26629: static constexpr double 26629: lowest() noexcept { return -double(1.7976931348623157e+308L); } 26629: 26629: 26629: static constexpr int digits = 53; 26629: static constexpr int digits10 = 15; 26629: 26629: static constexpr int max_digits10 26629: = (2 + (53) * 643L / 2136); 26629: 26629: static constexpr bool is_signed = true; 26629: static constexpr bool is_integer = false; 26629: static constexpr bool is_exact = false; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr double 26629: epsilon() noexcept { return double(2.2204460492503131e-16L); } 26629: 26629: static constexpr double 26629: round_error() noexcept { return 0.5; } 26629: 26629: static constexpr int min_exponent = (-1021); 26629: static constexpr int min_exponent10 = (-307); 26629: static constexpr int max_exponent = 1024; 26629: static constexpr int max_exponent10 = 308; 26629: 26629: static constexpr bool has_infinity = 1; 26629: static constexpr bool has_quiet_NaN = 1; 26629: static constexpr bool has_signaling_NaN = has_quiet_NaN; 26629: static constexpr float_denorm_style has_denorm 26629: = bool(1) ? denorm_present : denorm_absent; 26629: static constexpr bool has_denorm_loss 26629: = false; 26629: 26629: static constexpr double 26629: infinity() noexcept { return __builtin_huge_val(); } 26629: 26629: static constexpr double 26629: quiet_NaN() noexcept { return __builtin_nan(""); } 26629: 26629: static constexpr double 26629: signaling_NaN() noexcept { return __builtin_nans(""); } 26629: 26629: static constexpr double 26629: denorm_min() noexcept { return double(4.9406564584124654e-324L); } 26629: 26629: static constexpr bool is_iec559 26629: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = false; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before 26629: = false; 26629: static constexpr float_round_style round_style 26629: = round_to_nearest; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct numeric_limits 26629: { 26629: static constexpr bool is_specialized = true; 26629: 26629: static constexpr long double 26629: min() noexcept { return 2.2250738585072014e-308L; } 26629: 26629: static constexpr long double 26629: max() noexcept { return 1.7976931348623157e+308L; } 26629: 26629: 26629: static constexpr long double 26629: lowest() noexcept { return -1.7976931348623157e+308L; } 26629: 26629: 26629: static constexpr int digits = 53; 26629: static constexpr int digits10 = 15; 26629: 26629: static constexpr int max_digits10 26629: = (2 + (53) * 643L / 2136); 26629: 26629: static constexpr bool is_signed = true; 26629: static constexpr bool is_integer = false; 26629: static constexpr bool is_exact = false; 26629: static constexpr int radix = 2; 26629: 26629: static constexpr long double 26629: epsilon() noexcept { return 2.2204460492503131e-16L; } 26629: 26629: static constexpr long double 26629: round_error() noexcept { return 0.5L; } 26629: 26629: static constexpr int min_exponent = (-1021); 26629: static constexpr int min_exponent10 = (-307); 26629: static constexpr int max_exponent = 1024; 26629: static constexpr int max_exponent10 = 308; 26629: 26629: static constexpr bool has_infinity = 1; 26629: static constexpr bool has_quiet_NaN = 1; 26629: static constexpr bool has_signaling_NaN = has_quiet_NaN; 26629: static constexpr float_denorm_style has_denorm 26629: = bool(1) ? denorm_present : denorm_absent; 26629: static constexpr bool has_denorm_loss 26629: = false; 26629: 26629: static constexpr long double 26629: infinity() noexcept { return __builtin_huge_vall(); } 26629: 26629: static constexpr long double 26629: quiet_NaN() noexcept { return __builtin_nanl(""); } 26629: 26629: static constexpr long double 26629: signaling_NaN() noexcept { return __builtin_nansl(""); } 26629: 26629: static constexpr long double 26629: denorm_min() noexcept { return 4.9406564584124654e-324L; } 26629: 26629: static constexpr bool is_iec559 26629: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 26629: static constexpr bool is_bounded = true; 26629: static constexpr bool is_modulo = false; 26629: 26629: static constexpr bool traps = false; 26629: static constexpr bool tinyness_before = 26629: false; 26629: static constexpr float_round_style round_style = 26629: round_to_nearest; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 40 "/usr/include/c++/12/bits/chrono.h" 2 3 26629: # 1 "/usr/include/c++/12/ctime" 1 3 26629: # 39 "/usr/include/c++/12/ctime" 3 26629: 26629: # 40 "/usr/include/c++/12/ctime" 3 26629: # 58 "/usr/include/c++/12/ctime" 3 26629: namespace std 26629: { 26629: using ::clock_t; 26629: using ::time_t; 26629: using ::tm; 26629: 26629: using ::clock; 26629: using ::difftime; 26629: using ::mktime; 26629: using ::time; 26629: using ::asctime; 26629: using ::ctime; 26629: using ::gmtime; 26629: using ::localtime; 26629: using ::strftime; 26629: } 26629: 26629: 26629: 26629: namespace std 26629: { 26629: using ::timespec; 26629: using ::timespec_get; 26629: } 26629: # 41 "/usr/include/c++/12/bits/chrono.h" 2 3 26629: # 1 "/usr/include/c++/12/bits/parse_numbers.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/parse_numbers.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/parse_numbers.h" 3 26629: # 42 "/usr/include/c++/12/bits/parse_numbers.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: namespace __parse_int 26629: { 26629: template 26629: struct _Digit; 26629: 26629: template 26629: struct _Digit<_Base, '0'> : integral_constant 26629: { 26629: using __valid = true_type; 26629: }; 26629: 26629: template 26629: struct _Digit<_Base, '1'> : integral_constant 26629: { 26629: using __valid = true_type; 26629: }; 26629: 26629: template 26629: struct _Digit_impl : integral_constant 26629: { 26629: static_assert(_Base > _Val, "invalid digit"); 26629: using __valid = true_type; 26629: }; 26629: 26629: template 26629: struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> 26629: { }; 26629: 26629: template 26629: struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> 26629: { }; 26629: 26629: 26629: template 26629: struct _Digit<_Base, '\''> : integral_constant 26629: { 26629: using __valid = false_type; 26629: }; 26629: 26629: 26629: 26629: template 26629: using __ull_constant = integral_constant; 26629: 26629: template 26629: struct _Power_help 26629: { 26629: using __next = typename _Power_help<_Base, _Digs...>::type; 26629: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 26629: using type 26629: = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; 26629: }; 26629: 26629: template 26629: struct _Power_help<_Base, _Dig> 26629: { 26629: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 26629: using type = __ull_constant<__valid_digit::value>; 26629: }; 26629: 26629: template 26629: struct _Power : _Power_help<_Base, _Digs...>::type 26629: { }; 26629: 26629: template 26629: struct _Power<_Base> : __ull_constant<0> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct _Number_help 26629: { 26629: using __digit = _Digit<_Base, _Dig>; 26629: using __valid_digit = typename __digit::__valid; 26629: using __next = _Number_help<_Base, 26629: __valid_digit::value ? _Pow / _Base : _Pow, 26629: _Digs...>; 26629: using type = __ull_constant<_Pow * __digit::value + __next::type::value>; 26629: static_assert((type::value / _Pow) == __digit::value, 26629: "integer literal does not fit in unsigned long long"); 26629: }; 26629: 26629: 26629: template 26629: struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> 26629: : _Number_help<_Base, _Pow, _Dig, _Digs...> 26629: { }; 26629: 26629: 26629: template 26629: struct _Number_help<_Base, 1ULL, _Dig> 26629: { 26629: using type = __ull_constant<_Digit<_Base, _Dig>::value>; 26629: }; 26629: 26629: template 26629: struct _Number 26629: : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type 26629: { }; 26629: 26629: template 26629: struct _Number<_Base> 26629: : __ull_constant<0> 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct _Parse_int; 26629: 26629: template 26629: struct _Parse_int<'0', 'b', _Digs...> 26629: : _Number<2U, _Digs...>::type 26629: { }; 26629: 26629: template 26629: struct _Parse_int<'0', 'B', _Digs...> 26629: : _Number<2U, _Digs...>::type 26629: { }; 26629: 26629: template 26629: struct _Parse_int<'0', 'x', _Digs...> 26629: : _Number<16U, _Digs...>::type 26629: { }; 26629: 26629: template 26629: struct _Parse_int<'0', 'X', _Digs...> 26629: : _Number<16U, _Digs...>::type 26629: { }; 26629: 26629: template 26629: struct _Parse_int<'0', _Digs...> 26629: : _Number<8U, _Digs...>::type 26629: { }; 26629: 26629: template 26629: struct _Parse_int 26629: : _Number<10U, _Digs...>::type 26629: { }; 26629: 26629: } 26629: 26629: 26629: namespace __select_int 26629: { 26629: template 26629: struct _Select_int_base; 26629: 26629: template 26629: struct _Select_int_base<_Val, _IntType, _Ints...> 26629: : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), 26629: integral_constant<_IntType, (_IntType)_Val>, 26629: _Select_int_base<_Val, _Ints...>> 26629: { }; 26629: 26629: template 26629: struct _Select_int_base<_Val> 26629: { }; 26629: 26629: template 26629: using _Select_int = typename _Select_int_base< 26629: __parse_int::_Parse_int<_Digs...>::value, 26629: unsigned char, 26629: unsigned short, 26629: unsigned int, 26629: unsigned long, 26629: unsigned long long 26629: >::type; 26629: 26629: } 26629: 26629: 26629: } 26629: # 42 "/usr/include/c++/12/bits/chrono.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: namespace filesystem { struct __file_clock; }; 26629: 26629: 26629: namespace chrono 26629: { 26629: 26629: 26629: 26629: 26629: template> 26629: struct duration; 26629: 26629: 26629: template 26629: struct time_point; 26629: 26629: } 26629: # 77 "/usr/include/c++/12/bits/chrono.h" 3 26629: template 26629: struct __duration_common_type 26629: { }; 26629: 26629: template 26629: struct __duration_common_type<_CT, _Period1, _Period2, 26629: __void_t> 26629: { 26629: private: 26629: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; 26629: using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; 26629: using __cr = typename _CT::type; 26629: using __r = ratio<__gcd_num::value, 26629: (_Period1::den / __gcd_den::value) * _Period2::den>; 26629: 26629: public: 26629: using type = chrono::duration<__cr, typename __r::type>; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct common_type, 26629: chrono::duration<_Rep2, _Period2>> 26629: : __duration_common_type, 26629: typename _Period1::type, 26629: typename _Period2::type> 26629: { }; 26629: 26629: 26629: template 26629: struct common_type, 26629: chrono::duration<_Rep, _Period>> 26629: { 26629: using type = chrono::duration::type, 26629: typename _Period::type>; 26629: }; 26629: 26629: 26629: template 26629: struct common_type> 26629: { 26629: using type = chrono::duration::type, 26629: typename _Period::type>; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __timepoint_common_type 26629: { }; 26629: 26629: template 26629: struct __timepoint_common_type<_CT, _Clock, __void_t> 26629: { 26629: using type = chrono::time_point<_Clock, typename _CT::type>; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct common_type, 26629: chrono::time_point<_Clock, _Duration2>> 26629: : __timepoint_common_type, _Clock> 26629: { }; 26629: 26629: 26629: template 26629: struct common_type, 26629: chrono::time_point<_Clock, _Duration>> 26629: { using type = chrono::time_point<_Clock, _Duration>; }; 26629: 26629: 26629: template 26629: struct common_type> 26629: { using type = chrono::time_point<_Clock, _Duration>; }; 26629: 26629: 26629: 26629: 26629: namespace chrono 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct __duration_cast_impl 26629: { 26629: template 26629: static constexpr _ToDur 26629: __cast(const duration<_Rep, _Period>& __d) 26629: { 26629: typedef typename _ToDur::rep __to_rep; 26629: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 26629: * static_cast<_CR>(_CF::num) 26629: / static_cast<_CR>(_CF::den))); 26629: } 26629: }; 26629: 26629: template 26629: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 26629: { 26629: template 26629: static constexpr _ToDur 26629: __cast(const duration<_Rep, _Period>& __d) 26629: { 26629: typedef typename _ToDur::rep __to_rep; 26629: return _ToDur(static_cast<__to_rep>(__d.count())); 26629: } 26629: }; 26629: 26629: template 26629: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 26629: { 26629: template 26629: static constexpr _ToDur 26629: __cast(const duration<_Rep, _Period>& __d) 26629: { 26629: typedef typename _ToDur::rep __to_rep; 26629: return _ToDur(static_cast<__to_rep>( 26629: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 26629: } 26629: }; 26629: 26629: template 26629: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 26629: { 26629: template 26629: static constexpr _ToDur 26629: __cast(const duration<_Rep, _Period>& __d) 26629: { 26629: typedef typename _ToDur::rep __to_rep; 26629: return _ToDur(static_cast<__to_rep>( 26629: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 26629: } 26629: }; 26629: 26629: template 26629: struct __is_duration 26629: : std::false_type 26629: { }; 26629: 26629: template 26629: struct __is_duration> 26629: : std::true_type 26629: { }; 26629: 26629: template 26629: using __enable_if_is_duration 26629: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 26629: 26629: template 26629: using __disable_if_is_duration 26629: = typename enable_if::value, _Tp>::type; 26629: 26629: 26629: 26629: 26629: template 26629: constexpr __enable_if_is_duration<_ToDur> 26629: duration_cast(const duration<_Rep, _Period>& __d) 26629: { 26629: typedef typename _ToDur::period __to_period; 26629: typedef typename _ToDur::rep __to_rep; 26629: typedef ratio_divide<_Period, __to_period> __cf; 26629: typedef typename common_type<__to_rep, _Rep, intmax_t>::type __cr; 26629: typedef __duration_cast_impl<_ToDur, __cf, __cr, 26629: __cf::num == 1, __cf::den == 1> __dc; 26629: return __dc::__cast(__d); 26629: } 26629: 26629: 26629: template 26629: struct treat_as_floating_point 26629: : is_floating_point<_Rep> 26629: { }; 26629: 26629: 26629: template 26629: inline constexpr bool treat_as_floating_point_v = 26629: treat_as_floating_point<_Rep>::value; 26629: # 332 "/usr/include/c++/12/bits/chrono.h" 3 26629: template 26629: constexpr __enable_if_is_duration<_ToDur> 26629: floor(const duration<_Rep, _Period>& __d) 26629: { 26629: auto __to = chrono::duration_cast<_ToDur>(__d); 26629: if (__to > __d) 26629: return __to - _ToDur{1}; 26629: return __to; 26629: } 26629: 26629: template 26629: constexpr __enable_if_is_duration<_ToDur> 26629: ceil(const duration<_Rep, _Period>& __d) 26629: { 26629: auto __to = chrono::duration_cast<_ToDur>(__d); 26629: if (__to < __d) 26629: return __to + _ToDur{1}; 26629: return __to; 26629: } 26629: 26629: template 26629: constexpr enable_if_t< 26629: __and_<__is_duration<_ToDur>, 26629: __not_>>::value, 26629: _ToDur> 26629: round(const duration<_Rep, _Period>& __d) 26629: { 26629: _ToDur __t0 = chrono::floor<_ToDur>(__d); 26629: _ToDur __t1 = __t0 + _ToDur{1}; 26629: auto __diff0 = __d - __t0; 26629: auto __diff1 = __t1 - __d; 26629: if (__diff0 == __diff1) 26629: { 26629: if (__t0.count() & 1) 26629: return __t1; 26629: return __t0; 26629: } 26629: else if (__diff0 < __diff1) 26629: return __t0; 26629: return __t1; 26629: } 26629: 26629: template 26629: constexpr 26629: enable_if_t::is_signed, duration<_Rep, _Period>> 26629: abs(duration<_Rep, _Period> __d) 26629: { 26629: if (__d >= __d.zero()) 26629: return __d; 26629: return -__d; 26629: } 26629: 26629: 26629: namespace __detail { using chrono::ceil; } 26629: # 412 "/usr/include/c++/12/bits/chrono.h" 3 26629: template 26629: struct duration_values 26629: { 26629: static constexpr _Rep 26629: zero() noexcept 26629: { return _Rep(0); } 26629: 26629: static constexpr _Rep 26629: max() noexcept 26629: { return numeric_limits<_Rep>::max(); } 26629: 26629: static constexpr _Rep 26629: min() noexcept 26629: { return numeric_limits<_Rep>::lowest(); } 26629: }; 26629: 26629: 26629: 26629: template 26629: struct __is_ratio 26629: : std::false_type 26629: { }; 26629: 26629: template 26629: struct __is_ratio> 26629: : std::true_type 26629: { }; 26629: 26629: 26629: 26629: template 26629: struct duration 26629: { 26629: private: 26629: template 26629: using __is_float = treat_as_floating_point<_Rep2>; 26629: 26629: static constexpr intmax_t 26629: _S_gcd(intmax_t __m, intmax_t __n) noexcept 26629: { 26629: 26629: 26629: 26629: do 26629: { 26629: intmax_t __rem = __m % __n; 26629: __m = __n; 26629: __n = __rem; 26629: } 26629: while (__n != 0); 26629: return __m; 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), 26629: (_R1::den / __gcd2) * (_R2::num / __gcd1)>; 26629: 26629: 26629: template 26629: using __is_harmonic 26629: = __bool_constant<__divide<_Period2, _Period>::den == 1>; 26629: 26629: public: 26629: 26629: using rep = _Rep; 26629: using period = typename _Period::type; 26629: 26629: static_assert(!__is_duration<_Rep>::value, "rep cannot be a duration"); 26629: static_assert(__is_ratio<_Period>::value, 26629: "period must be a specialization of ratio"); 26629: static_assert(_Period::num > 0, "period must be positive"); 26629: 26629: 26629: constexpr duration() = default; 26629: 26629: duration(const duration&) = default; 26629: 26629: 26629: 26629: template, 26629: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 26629: constexpr explicit duration(const _Rep2& __rep) 26629: : __r(static_cast(__rep)) { } 26629: 26629: template, 26629: __or_<__is_float, 26629: __and_<__is_harmonic<_Period2>, 26629: __not_<__is_float<_Rep2>>>>>> 26629: constexpr duration(const duration<_Rep2, _Period2>& __d) 26629: : __r(duration_cast(__d).count()) { } 26629: 26629: ~duration() = default; 26629: duration& operator=(const duration&) = default; 26629: 26629: 26629: constexpr rep 26629: count() const 26629: { return __r; } 26629: 26629: 26629: 26629: constexpr duration::type, period> 26629: operator+() const 26629: { return duration::type, period>(__r); } 26629: 26629: constexpr duration::type, period> 26629: operator-() const 26629: { return duration::type, period>(-__r); } 26629: 26629: constexpr duration& 26629: operator++() 26629: { 26629: ++__r; 26629: return *this; 26629: } 26629: 26629: constexpr duration 26629: operator++(int) 26629: { return duration(__r++); } 26629: 26629: constexpr duration& 26629: operator--() 26629: { 26629: --__r; 26629: return *this; 26629: } 26629: 26629: constexpr duration 26629: operator--(int) 26629: { return duration(__r--); } 26629: 26629: constexpr duration& 26629: operator+=(const duration& __d) 26629: { 26629: __r += __d.count(); 26629: return *this; 26629: } 26629: 26629: constexpr duration& 26629: operator-=(const duration& __d) 26629: { 26629: __r -= __d.count(); 26629: return *this; 26629: } 26629: 26629: constexpr duration& 26629: operator*=(const rep& __rhs) 26629: { 26629: __r *= __rhs; 26629: return *this; 26629: } 26629: 26629: constexpr duration& 26629: operator/=(const rep& __rhs) 26629: { 26629: __r /= __rhs; 26629: return *this; 26629: } 26629: 26629: 26629: template 26629: constexpr 26629: typename enable_if::value, 26629: duration&>::type 26629: operator%=(const rep& __rhs) 26629: { 26629: __r %= __rhs; 26629: return *this; 26629: } 26629: 26629: template 26629: constexpr 26629: typename enable_if::value, 26629: duration&>::type 26629: operator%=(const duration& __d) 26629: { 26629: __r %= __d.count(); 26629: return *this; 26629: } 26629: 26629: 26629: static constexpr duration 26629: zero() noexcept 26629: { return duration(duration_values::zero()); } 26629: 26629: static constexpr duration 26629: min() noexcept 26629: { return duration(duration_values::min()); } 26629: 26629: static constexpr duration 26629: max() noexcept 26629: { return duration(duration_values::max()); } 26629: 26629: private: 26629: rep __r; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr typename common_type, 26629: duration<_Rep2, _Period2>>::type 26629: operator+(const duration<_Rep1, _Period1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { 26629: typedef duration<_Rep1, _Period1> __dur1; 26629: typedef duration<_Rep2, _Period2> __dur2; 26629: typedef typename common_type<__dur1,__dur2>::type __cd; 26629: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 26629: } 26629: 26629: 26629: template 26629: constexpr typename common_type, 26629: duration<_Rep2, _Period2>>::type 26629: operator-(const duration<_Rep1, _Period1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { 26629: typedef duration<_Rep1, _Period1> __dur1; 26629: typedef duration<_Rep2, _Period2> __dur2; 26629: typedef typename common_type<__dur1,__dur2>::type __cd; 26629: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 26629: } 26629: # 661 "/usr/include/c++/12/bits/chrono.h" 3 26629: template::type> 26629: using __common_rep_t = typename 26629: enable_if::value, _CRep>::type; 26629: # 673 "/usr/include/c++/12/bits/chrono.h" 3 26629: template 26629: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 26629: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 26629: { 26629: typedef duration::type, _Period> 26629: __cd; 26629: return __cd(__cd(__d).count() * __s); 26629: } 26629: 26629: template 26629: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 26629: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 26629: { return __d * __s; } 26629: 26629: template 26629: constexpr 26629: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 26629: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 26629: { 26629: typedef duration::type, _Period> 26629: __cd; 26629: return __cd(__cd(__d).count() / __s); 26629: } 26629: 26629: template 26629: constexpr typename common_type<_Rep1, _Rep2>::type 26629: operator/(const duration<_Rep1, _Period1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { 26629: typedef duration<_Rep1, _Period1> __dur1; 26629: typedef duration<_Rep2, _Period2> __dur2; 26629: typedef typename common_type<__dur1,__dur2>::type __cd; 26629: return __cd(__lhs).count() / __cd(__rhs).count(); 26629: } 26629: 26629: 26629: template 26629: constexpr 26629: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 26629: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 26629: { 26629: typedef duration::type, _Period> 26629: __cd; 26629: return __cd(__cd(__d).count() % __s); 26629: } 26629: 26629: template 26629: constexpr typename common_type, 26629: duration<_Rep2, _Period2>>::type 26629: operator%(const duration<_Rep1, _Period1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { 26629: typedef duration<_Rep1, _Period1> __dur1; 26629: typedef duration<_Rep2, _Period2> __dur2; 26629: typedef typename common_type<__dur1,__dur2>::type __cd; 26629: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 26629: } 26629: # 741 "/usr/include/c++/12/bits/chrono.h" 3 26629: template 26629: constexpr bool 26629: operator==(const duration<_Rep1, _Period1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { 26629: typedef duration<_Rep1, _Period1> __dur1; 26629: typedef duration<_Rep2, _Period2> __dur2; 26629: typedef typename common_type<__dur1,__dur2>::type __ct; 26629: return __ct(__lhs).count() == __ct(__rhs).count(); 26629: } 26629: 26629: template 26629: constexpr bool 26629: operator<(const duration<_Rep1, _Period1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { 26629: typedef duration<_Rep1, _Period1> __dur1; 26629: typedef duration<_Rep2, _Period2> __dur2; 26629: typedef typename common_type<__dur1,__dur2>::type __ct; 26629: return __ct(__lhs).count() < __ct(__rhs).count(); 26629: } 26629: # 778 "/usr/include/c++/12/bits/chrono.h" 3 26629: template 26629: constexpr bool 26629: operator!=(const duration<_Rep1, _Period1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { return !(__lhs == __rhs); } 26629: 26629: 26629: template 26629: constexpr bool 26629: operator<=(const duration<_Rep1, _Period1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { return !(__rhs < __lhs); } 26629: 26629: template 26629: constexpr bool 26629: operator>(const duration<_Rep1, _Period1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { return __rhs < __lhs; } 26629: 26629: template 26629: constexpr bool 26629: operator>=(const duration<_Rep1, _Period1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { return !(__lhs < __rhs); } 26629: # 822 "/usr/include/c++/12/bits/chrono.h" 3 26629: using nanoseconds = duration; 26629: 26629: 26629: using microseconds = duration; 26629: 26629: 26629: using milliseconds = duration; 26629: 26629: 26629: using seconds = duration; 26629: 26629: 26629: using minutes = duration>; 26629: 26629: 26629: using hours = duration>; 26629: # 855 "/usr/include/c++/12/bits/chrono.h" 3 26629: template 26629: struct time_point 26629: { 26629: static_assert(__is_duration<_Dur>::value, 26629: "duration must be a specialization of std::chrono::duration"); 26629: 26629: typedef _Clock clock; 26629: typedef _Dur duration; 26629: typedef typename duration::rep rep; 26629: typedef typename duration::period period; 26629: 26629: constexpr time_point() : __d(duration::zero()) 26629: { } 26629: 26629: constexpr explicit time_point(const duration& __dur) 26629: : __d(__dur) 26629: { } 26629: 26629: 26629: template>> 26629: constexpr time_point(const time_point& __t) 26629: : __d(__t.time_since_epoch()) 26629: { } 26629: 26629: 26629: constexpr duration 26629: time_since_epoch() const 26629: { return __d; } 26629: # 910 "/usr/include/c++/12/bits/chrono.h" 3 26629: constexpr time_point& 26629: operator+=(const duration& __dur) 26629: { 26629: __d += __dur; 26629: return *this; 26629: } 26629: 26629: constexpr time_point& 26629: operator-=(const duration& __dur) 26629: { 26629: __d -= __dur; 26629: return *this; 26629: } 26629: 26629: 26629: static constexpr time_point 26629: min() noexcept 26629: { return time_point(duration::min()); } 26629: 26629: static constexpr time_point 26629: max() noexcept 26629: { return time_point(duration::max()); } 26629: 26629: private: 26629: duration __d; 26629: }; 26629: 26629: 26629: template 26629: constexpr typename enable_if<__is_duration<_ToDur>::value, 26629: time_point<_Clock, _ToDur>>::type 26629: time_point_cast(const time_point<_Clock, _Dur>& __t) 26629: { 26629: typedef time_point<_Clock, _ToDur> __time_point; 26629: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 26629: } 26629: 26629: 26629: template 26629: constexpr 26629: enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 26629: floor(const time_point<_Clock, _Dur>& __tp) 26629: { 26629: return time_point<_Clock, _ToDur>{ 26629: chrono::floor<_ToDur>(__tp.time_since_epoch())}; 26629: } 26629: 26629: template 26629: constexpr 26629: enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 26629: ceil(const time_point<_Clock, _Dur>& __tp) 26629: { 26629: return time_point<_Clock, _ToDur>{ 26629: chrono::ceil<_ToDur>(__tp.time_since_epoch())}; 26629: } 26629: 26629: template 26629: constexpr enable_if_t< 26629: __and_<__is_duration<_ToDur>, 26629: __not_>>::value, 26629: time_point<_Clock, _ToDur>> 26629: round(const time_point<_Clock, _Dur>& __tp) 26629: { 26629: return time_point<_Clock, _ToDur>{ 26629: chrono::round<_ToDur>(__tp.time_since_epoch())}; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr time_point<_Clock, 26629: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 26629: operator+(const time_point<_Clock, _Dur1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { 26629: typedef duration<_Rep2, _Period2> __dur2; 26629: typedef typename common_type<_Dur1,__dur2>::type __ct; 26629: typedef time_point<_Clock, __ct> __time_point; 26629: return __time_point(__lhs.time_since_epoch() + __rhs); 26629: } 26629: 26629: 26629: template 26629: constexpr time_point<_Clock, 26629: typename common_type, _Dur2>::type> 26629: operator+(const duration<_Rep1, _Period1>& __lhs, 26629: const time_point<_Clock, _Dur2>& __rhs) 26629: { 26629: typedef duration<_Rep1, _Period1> __dur1; 26629: typedef typename common_type<__dur1,_Dur2>::type __ct; 26629: typedef time_point<_Clock, __ct> __time_point; 26629: return __time_point(__rhs.time_since_epoch() + __lhs); 26629: } 26629: 26629: 26629: template 26629: constexpr time_point<_Clock, 26629: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 26629: operator-(const time_point<_Clock, _Dur1>& __lhs, 26629: const duration<_Rep2, _Period2>& __rhs) 26629: { 26629: typedef duration<_Rep2, _Period2> __dur2; 26629: typedef typename common_type<_Dur1,__dur2>::type __ct; 26629: typedef time_point<_Clock, __ct> __time_point; 26629: return __time_point(__lhs.time_since_epoch() -__rhs); 26629: } 26629: 26629: 26629: template 26629: constexpr typename common_type<_Dur1, _Dur2>::type 26629: operator-(const time_point<_Clock, _Dur1>& __lhs, 26629: const time_point<_Clock, _Dur2>& __rhs) 26629: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: constexpr bool 26629: operator==(const time_point<_Clock, _Dur1>& __lhs, 26629: const time_point<_Clock, _Dur2>& __rhs) 26629: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 26629: # 1050 "/usr/include/c++/12/bits/chrono.h" 3 26629: template 26629: constexpr bool 26629: operator!=(const time_point<_Clock, _Dur1>& __lhs, 26629: const time_point<_Clock, _Dur2>& __rhs) 26629: { return !(__lhs == __rhs); } 26629: 26629: 26629: template 26629: constexpr bool 26629: operator<(const time_point<_Clock, _Dur1>& __lhs, 26629: const time_point<_Clock, _Dur2>& __rhs) 26629: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 26629: 26629: template 26629: constexpr bool 26629: operator<=(const time_point<_Clock, _Dur1>& __lhs, 26629: const time_point<_Clock, _Dur2>& __rhs) 26629: { return !(__rhs < __lhs); } 26629: 26629: template 26629: constexpr bool 26629: operator>(const time_point<_Clock, _Dur1>& __lhs, 26629: const time_point<_Clock, _Dur2>& __rhs) 26629: { return __rhs < __lhs; } 26629: 26629: template 26629: constexpr bool 26629: operator>=(const time_point<_Clock, _Dur1>& __lhs, 26629: const time_point<_Clock, _Dur2>& __rhs) 26629: { return !(__lhs < __rhs); } 26629: # 1102 "/usr/include/c++/12/bits/chrono.h" 3 26629: inline namespace _V2 { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct system_clock 26629: { 26629: typedef chrono::nanoseconds duration; 26629: typedef duration::rep rep; 26629: typedef duration::period period; 26629: typedef chrono::time_point time_point; 26629: 26629: static_assert(system_clock::duration::min() 26629: < system_clock::duration::zero(), 26629: "a clock's minimum duration cannot be less than its epoch"); 26629: 26629: static constexpr bool is_steady = false; 26629: 26629: static time_point 26629: now() noexcept; 26629: 26629: 26629: static std::time_t 26629: to_time_t(const time_point& __t) noexcept 26629: { 26629: return std::time_t(duration_cast 26629: (__t.time_since_epoch()).count()); 26629: } 26629: 26629: static time_point 26629: from_time_t(std::time_t __t) noexcept 26629: { 26629: typedef chrono::time_point __from; 26629: return time_point_cast 26629: (__from(chrono::seconds(__t))); 26629: } 26629: }; 26629: # 1150 "/usr/include/c++/12/bits/chrono.h" 3 26629: struct steady_clock 26629: { 26629: typedef chrono::nanoseconds duration; 26629: typedef duration::rep rep; 26629: typedef duration::period period; 26629: typedef chrono::time_point time_point; 26629: 26629: static constexpr bool is_steady = true; 26629: 26629: static time_point 26629: now() noexcept; 26629: }; 26629: # 1172 "/usr/include/c++/12/bits/chrono.h" 3 26629: using high_resolution_clock = system_clock; 26629: 26629: } 26629: # 1198 "/usr/include/c++/12/bits/chrono.h" 3 26629: } 26629: 26629: 26629: 26629: 26629: inline namespace literals 26629: { 26629: # 1229 "/usr/include/c++/12/bits/chrono.h" 3 26629: inline namespace chrono_literals 26629: { 26629: 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wliteral-suffix" 26629: 26629: template 26629: constexpr _Dur __check_overflow() 26629: { 26629: using _Val = __parse_int::_Parse_int<_Digits...>; 26629: constexpr typename _Dur::rep __repval = _Val::value; 26629: static_assert(__repval >= 0 && __repval == _Val::value, 26629: "literal value cannot be represented by duration type"); 26629: return _Dur(__repval); 26629: } 26629: 26629: 26629: 26629: constexpr chrono::duration> 26629: operator""h(long double __hours) 26629: { return chrono::duration>{__hours}; } 26629: 26629: 26629: template 26629: constexpr chrono::hours 26629: operator""h() 26629: { return __check_overflow(); } 26629: 26629: 26629: constexpr chrono::duration> 26629: operator""min(long double __mins) 26629: { return chrono::duration>{__mins}; } 26629: 26629: 26629: template 26629: constexpr chrono::minutes 26629: operator""min() 26629: { return __check_overflow(); } 26629: 26629: 26629: constexpr chrono::duration 26629: operator""s(long double __secs) 26629: { return chrono::duration{__secs}; } 26629: 26629: 26629: template 26629: constexpr chrono::seconds 26629: operator""s() 26629: { return __check_overflow(); } 26629: 26629: 26629: constexpr chrono::duration 26629: operator""ms(long double __msecs) 26629: { return chrono::duration{__msecs}; } 26629: 26629: 26629: template 26629: constexpr chrono::milliseconds 26629: operator""ms() 26629: { return __check_overflow(); } 26629: 26629: 26629: constexpr chrono::duration 26629: operator""us(long double __usecs) 26629: { return chrono::duration{__usecs}; } 26629: 26629: 26629: template 26629: constexpr chrono::microseconds 26629: operator""us() 26629: { return __check_overflow(); } 26629: 26629: 26629: constexpr chrono::duration 26629: operator""ns(long double __nsecs) 26629: { return chrono::duration{__nsecs}; } 26629: 26629: 26629: template 26629: constexpr chrono::nanoseconds 26629: operator""ns() 26629: { return __check_overflow(); } 26629: 26629: #pragma GCC diagnostic pop 26629: 26629: } 26629: } 26629: 26629: namespace chrono 26629: { 26629: using namespace literals::chrono_literals; 26629: } 26629: 26629: 26629: 26629: namespace filesystem 26629: { 26629: struct __file_clock 26629: { 26629: using duration = chrono::nanoseconds; 26629: using rep = duration::rep; 26629: using period = duration::period; 26629: using time_point = chrono::time_point<__file_clock>; 26629: static constexpr bool is_steady = false; 26629: 26629: static time_point 26629: now() noexcept 26629: { return _S_from_sys(chrono::system_clock::now()); } 26629: # 1355 "/usr/include/c++/12/bits/chrono.h" 3 26629: private: 26629: using __sys_clock = chrono::system_clock; 26629: 26629: 26629: 26629: 26629: static constexpr chrono::seconds _S_epoch_diff{6437664000}; 26629: 26629: protected: 26629: 26629: template 26629: static 26629: chrono::time_point<__file_clock, _Dur> 26629: _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept 26629: { 26629: using __file_time = chrono::time_point<__file_clock, _Dur>; 26629: return __file_time{__t.time_since_epoch()} - _S_epoch_diff; 26629: } 26629: 26629: 26629: template 26629: static 26629: chrono::time_point<__sys_clock, _Dur> 26629: _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept 26629: { 26629: using __sys_time = chrono::time_point<__sys_clock, _Dur>; 26629: return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; 26629: } 26629: }; 26629: } 26629: 26629: 26629: 26629: } 26629: # 37 "/usr/include/c++/12/bits/this_thread_sleep.h" 2 3 26629: 26629: 26629: # 1 "/usr/include/c++/12/cerrno" 1 3 26629: # 39 "/usr/include/c++/12/cerrno" 3 26629: 26629: # 40 "/usr/include/c++/12/cerrno" 3 26629: # 40 "/usr/include/c++/12/bits/this_thread_sleep.h" 2 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 56 "/usr/include/c++/12/bits/this_thread_sleep.h" 3 26629: namespace this_thread 26629: { 26629: # 66 "/usr/include/c++/12/bits/this_thread_sleep.h" 3 26629: template 26629: inline void 26629: sleep_for(const chrono::duration<_Rep, _Period>& __rtime) 26629: { 26629: if (__rtime <= __rtime.zero()) 26629: return; 26629: auto __s = chrono::duration_cast(__rtime); 26629: auto __ns = chrono::duration_cast(__rtime - __s); 26629: 26629: struct ::timespec __ts = 26629: { 26629: static_cast(__s.count()), 26629: static_cast(__ns.count()) 26629: }; 26629: while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) 26629: { } 26629: 26629: 26629: 26629: } 26629: 26629: 26629: template 26629: inline void 26629: sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) 26629: { 26629: 26629: 26629: 26629: auto __now = _Clock::now(); 26629: if (_Clock::is_steady) 26629: { 26629: if (__now < __atime) 26629: sleep_for(__atime - __now); 26629: return; 26629: } 26629: while (__now < __atime) 26629: { 26629: sleep_for(__atime - __now); 26629: __now = _Clock::now(); 26629: } 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: 26629: } 26629: # 45 "/usr/include/c++/12/thread" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 65 "/usr/include/c++/12/thread" 3 26629: inline bool 26629: operator!=(thread::id __x, thread::id __y) noexcept 26629: { return !(__x == __y); } 26629: 26629: inline bool 26629: operator<(thread::id __x, thread::id __y) noexcept 26629: { 26629: 26629: 26629: return __x._M_thread < __y._M_thread; 26629: } 26629: 26629: inline bool 26629: operator<=(thread::id __x, thread::id __y) noexcept 26629: { return !(__y < __x); } 26629: 26629: inline bool 26629: operator>(thread::id __x, thread::id __y) noexcept 26629: { return __y < __x; } 26629: 26629: inline bool 26629: operator>=(thread::id __x, thread::id __y) noexcept 26629: { return !(__x < __y); } 26629: 26629: 26629: template 26629: inline basic_ostream<_CharT, _Traits>& 26629: operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) 26629: { 26629: if (__id == thread::id()) 26629: return __out << "thread::id of a non-executing thread"; 26629: else 26629: return __out << __id._M_thread; 26629: } 26629: # 262 "/usr/include/c++/12/thread" 3 26629: 26629: } 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 1 26629: # 23 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compression_type.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compression_type.h" 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: 26629: enum CompressionType : unsigned char { 26629: 26629: 26629: kNoCompression = 0x0, 26629: kSnappyCompression = 0x1, 26629: kZlibCompression = 0x2, 26629: kBZip2Compression = 0x3, 26629: kLZ4Compression = 0x4, 26629: kLZ4HCCompression = 0x5, 26629: kXpressCompression = 0x6, 26629: kZSTD = 0x7, 26629: 26629: 26629: 26629: 26629: 26629: 26629: kZSTDNotFinalCompression = 0x40, 26629: 26629: 26629: kDisableCompressionOption = 0xff, 26629: }; 26629: 26629: } 26629: # 31 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memory_allocator.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: class MemoryAllocator : public Customizable { 26629: public: 26629: static const char* Type() { return "MemoryAllocator"; } 26629: static Status CreateFromString(const ConfigOptions& options, 26629: const std::string& value, 26629: std::shared_ptr* result); 26629: 26629: 26629: virtual void* Allocate(size_t size) = 0; 26629: 26629: 26629: virtual void Deallocate(void* p) = 0; 26629: 26629: 26629: 26629: virtual size_t UsableSize(void* , size_t allocation_size) const { 26629: 26629: return allocation_size; 26629: } 26629: 26629: std::string GetId() const override { return GenerateIndividualId(); } 26629: }; 26629: 26629: struct JemallocAllocatorOptions { 26629: static const char* kName() { return "JemallocAllocatorOptions"; } 26629: 26629: 26629: 26629: 26629: 26629: bool limit_tcache_size = false; 26629: 26629: 26629: 26629: size_t tcache_size_lower_bound = 1024; 26629: 26629: 26629: 26629: size_t tcache_size_upper_bound = 16 * 1024; 26629: }; 26629: # 77 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memory_allocator.h" 26629: extern Status NewJemallocNodumpAllocator( 26629: JemallocAllocatorOptions& options, 26629: std::shared_ptr* memory_allocator); 26629: 26629: } 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/map" 1 3 26629: # 58 "/usr/include/c++/12/map" 3 26629: 26629: # 59 "/usr/include/c++/12/map" 3 26629: 26629: # 1 "/usr/include/c++/12/bits/stl_tree.h" 1 3 26629: # 61 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: 26629: # 62 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: # 75 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: 26629: # 75 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 99 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: enum _Rb_tree_color { _S_red = false, _S_black = true }; 26629: 26629: struct _Rb_tree_node_base 26629: { 26629: typedef _Rb_tree_node_base* _Base_ptr; 26629: typedef const _Rb_tree_node_base* _Const_Base_ptr; 26629: 26629: _Rb_tree_color _M_color; 26629: _Base_ptr _M_parent; 26629: _Base_ptr _M_left; 26629: _Base_ptr _M_right; 26629: 26629: static _Base_ptr 26629: _S_minimum(_Base_ptr __x) noexcept 26629: { 26629: while (__x->_M_left != 0) __x = __x->_M_left; 26629: return __x; 26629: } 26629: 26629: static _Const_Base_ptr 26629: _S_minimum(_Const_Base_ptr __x) noexcept 26629: { 26629: while (__x->_M_left != 0) __x = __x->_M_left; 26629: return __x; 26629: } 26629: 26629: static _Base_ptr 26629: _S_maximum(_Base_ptr __x) noexcept 26629: { 26629: while (__x->_M_right != 0) __x = __x->_M_right; 26629: return __x; 26629: } 26629: 26629: static _Const_Base_ptr 26629: _S_maximum(_Const_Base_ptr __x) noexcept 26629: { 26629: while (__x->_M_right != 0) __x = __x->_M_right; 26629: return __x; 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct _Rb_tree_key_compare 26629: { 26629: _Key_compare _M_key_compare; 26629: 26629: _Rb_tree_key_compare() 26629: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 26629: 26629: : _M_key_compare() 26629: { } 26629: 26629: _Rb_tree_key_compare(const _Key_compare& __comp) 26629: : _M_key_compare(__comp) 26629: { } 26629: 26629: 26629: 26629: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 26629: 26629: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 26629: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 26629: : _M_key_compare(__x._M_key_compare) 26629: { } 26629: 26629: }; 26629: 26629: 26629: struct _Rb_tree_header 26629: { 26629: _Rb_tree_node_base _M_header; 26629: size_t _M_node_count; 26629: 26629: _Rb_tree_header() noexcept 26629: { 26629: _M_header._M_color = _S_red; 26629: _M_reset(); 26629: } 26629: 26629: 26629: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 26629: { 26629: if (__x._M_header._M_parent != nullptr) 26629: _M_move_data(__x); 26629: else 26629: { 26629: _M_header._M_color = _S_red; 26629: _M_reset(); 26629: } 26629: } 26629: 26629: 26629: void 26629: _M_move_data(_Rb_tree_header& __from) 26629: { 26629: _M_header._M_color = __from._M_header._M_color; 26629: _M_header._M_parent = __from._M_header._M_parent; 26629: _M_header._M_left = __from._M_header._M_left; 26629: _M_header._M_right = __from._M_header._M_right; 26629: _M_header._M_parent->_M_parent = &_M_header; 26629: _M_node_count = __from._M_node_count; 26629: 26629: __from._M_reset(); 26629: } 26629: 26629: void 26629: _M_reset() 26629: { 26629: _M_header._M_parent = 0; 26629: _M_header._M_left = &_M_header; 26629: _M_header._M_right = &_M_header; 26629: _M_node_count = 0; 26629: } 26629: }; 26629: 26629: template 26629: struct _Rb_tree_node : public _Rb_tree_node_base 26629: { 26629: typedef _Rb_tree_node<_Val>* _Link_type; 26629: # 231 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 26629: 26629: _Val* 26629: _M_valptr() 26629: { return _M_storage._M_ptr(); } 26629: 26629: const _Val* 26629: _M_valptr() const 26629: { return _M_storage._M_ptr(); } 26629: 26629: }; 26629: 26629: __attribute__ ((__pure__)) _Rb_tree_node_base* 26629: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 26629: 26629: __attribute__ ((__pure__)) const _Rb_tree_node_base* 26629: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 26629: 26629: __attribute__ ((__pure__)) _Rb_tree_node_base* 26629: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 26629: 26629: __attribute__ ((__pure__)) const _Rb_tree_node_base* 26629: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 26629: 26629: template 26629: struct _Rb_tree_iterator 26629: { 26629: typedef _Tp value_type; 26629: typedef _Tp& reference; 26629: typedef _Tp* pointer; 26629: 26629: typedef bidirectional_iterator_tag iterator_category; 26629: typedef ptrdiff_t difference_type; 26629: 26629: typedef _Rb_tree_iterator<_Tp> _Self; 26629: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 26629: typedef _Rb_tree_node<_Tp>* _Link_type; 26629: 26629: _Rb_tree_iterator() noexcept 26629: : _M_node() { } 26629: 26629: explicit 26629: _Rb_tree_iterator(_Base_ptr __x) noexcept 26629: : _M_node(__x) { } 26629: 26629: reference 26629: operator*() const noexcept 26629: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 26629: 26629: pointer 26629: operator->() const noexcept 26629: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 26629: 26629: _Self& 26629: operator++() noexcept 26629: { 26629: _M_node = _Rb_tree_increment(_M_node); 26629: return *this; 26629: } 26629: 26629: _Self 26629: operator++(int) noexcept 26629: { 26629: _Self __tmp = *this; 26629: _M_node = _Rb_tree_increment(_M_node); 26629: return __tmp; 26629: } 26629: 26629: _Self& 26629: operator--() noexcept 26629: { 26629: _M_node = _Rb_tree_decrement(_M_node); 26629: return *this; 26629: } 26629: 26629: _Self 26629: operator--(int) noexcept 26629: { 26629: _Self __tmp = *this; 26629: _M_node = _Rb_tree_decrement(_M_node); 26629: return __tmp; 26629: } 26629: 26629: friend bool 26629: operator==(const _Self& __x, const _Self& __y) noexcept 26629: { return __x._M_node == __y._M_node; } 26629: 26629: 26629: friend bool 26629: operator!=(const _Self& __x, const _Self& __y) noexcept 26629: { return __x._M_node != __y._M_node; } 26629: 26629: 26629: _Base_ptr _M_node; 26629: }; 26629: 26629: template 26629: struct _Rb_tree_const_iterator 26629: { 26629: typedef _Tp value_type; 26629: typedef const _Tp& reference; 26629: typedef const _Tp* pointer; 26629: 26629: typedef _Rb_tree_iterator<_Tp> iterator; 26629: 26629: typedef bidirectional_iterator_tag iterator_category; 26629: typedef ptrdiff_t difference_type; 26629: 26629: typedef _Rb_tree_const_iterator<_Tp> _Self; 26629: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 26629: typedef const _Rb_tree_node<_Tp>* _Link_type; 26629: 26629: _Rb_tree_const_iterator() noexcept 26629: : _M_node() { } 26629: 26629: explicit 26629: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 26629: : _M_node(__x) { } 26629: 26629: _Rb_tree_const_iterator(const iterator& __it) noexcept 26629: : _M_node(__it._M_node) { } 26629: 26629: iterator 26629: _M_const_cast() const noexcept 26629: { return iterator(const_cast(_M_node)); } 26629: 26629: reference 26629: operator*() const noexcept 26629: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 26629: 26629: pointer 26629: operator->() const noexcept 26629: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 26629: 26629: _Self& 26629: operator++() noexcept 26629: { 26629: _M_node = _Rb_tree_increment(_M_node); 26629: return *this; 26629: } 26629: 26629: _Self 26629: operator++(int) noexcept 26629: { 26629: _Self __tmp = *this; 26629: _M_node = _Rb_tree_increment(_M_node); 26629: return __tmp; 26629: } 26629: 26629: _Self& 26629: operator--() noexcept 26629: { 26629: _M_node = _Rb_tree_decrement(_M_node); 26629: return *this; 26629: } 26629: 26629: _Self 26629: operator--(int) noexcept 26629: { 26629: _Self __tmp = *this; 26629: _M_node = _Rb_tree_decrement(_M_node); 26629: return __tmp; 26629: } 26629: 26629: friend bool 26629: operator==(const _Self& __x, const _Self& __y) noexcept 26629: { return __x._M_node == __y._M_node; } 26629: 26629: 26629: friend bool 26629: operator!=(const _Self& __x, const _Self& __y) noexcept 26629: { return __x._M_node != __y._M_node; } 26629: 26629: 26629: _Base_ptr _M_node; 26629: }; 26629: 26629: void 26629: _Rb_tree_insert_and_rebalance(const bool __insert_left, 26629: _Rb_tree_node_base* __x, 26629: _Rb_tree_node_base* __p, 26629: _Rb_tree_node_base& __header) throw (); 26629: 26629: _Rb_tree_node_base* 26629: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 26629: _Rb_tree_node_base& __header) throw (); 26629: 26629: 26629: template 26629: struct _Rb_tree_merge_helper { }; 26629: 26629: 26629: template > 26629: class _Rb_tree 26629: { 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 26629: 26629: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 26629: 26629: protected: 26629: typedef _Rb_tree_node_base* _Base_ptr; 26629: typedef const _Rb_tree_node_base* _Const_Base_ptr; 26629: typedef _Rb_tree_node<_Val>* _Link_type; 26629: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 26629: 26629: private: 26629: 26629: 26629: struct _Reuse_or_alloc_node 26629: { 26629: _Reuse_or_alloc_node(_Rb_tree& __t) 26629: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 26629: { 26629: if (_M_root) 26629: { 26629: _M_root->_M_parent = 0; 26629: 26629: if (_M_nodes->_M_left) 26629: _M_nodes = _M_nodes->_M_left; 26629: } 26629: else 26629: _M_nodes = 0; 26629: } 26629: 26629: 26629: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 26629: 26629: 26629: ~_Reuse_or_alloc_node() 26629: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 26629: 26629: template 26629: _Link_type 26629: operator()(_Arg&& __arg) 26629: { 26629: _Link_type __node = static_cast<_Link_type>(_M_extract()); 26629: if (__node) 26629: { 26629: _M_t._M_destroy_node(__node); 26629: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 26629: return __node; 26629: } 26629: 26629: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 26629: } 26629: 26629: private: 26629: _Base_ptr 26629: _M_extract() 26629: { 26629: if (!_M_nodes) 26629: return _M_nodes; 26629: 26629: _Base_ptr __node = _M_nodes; 26629: _M_nodes = _M_nodes->_M_parent; 26629: if (_M_nodes) 26629: { 26629: if (_M_nodes->_M_right == __node) 26629: { 26629: _M_nodes->_M_right = 0; 26629: 26629: if (_M_nodes->_M_left) 26629: { 26629: _M_nodes = _M_nodes->_M_left; 26629: 26629: while (_M_nodes->_M_right) 26629: _M_nodes = _M_nodes->_M_right; 26629: 26629: if (_M_nodes->_M_left) 26629: _M_nodes = _M_nodes->_M_left; 26629: } 26629: } 26629: else 26629: _M_nodes->_M_left = 0; 26629: } 26629: else 26629: _M_root = 0; 26629: 26629: return __node; 26629: } 26629: 26629: _Base_ptr _M_root; 26629: _Base_ptr _M_nodes; 26629: _Rb_tree& _M_t; 26629: }; 26629: 26629: 26629: 26629: struct _Alloc_node 26629: { 26629: _Alloc_node(_Rb_tree& __t) 26629: : _M_t(__t) { } 26629: 26629: template 26629: _Link_type 26629: operator()(_Arg&& __arg) const 26629: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 26629: 26629: private: 26629: _Rb_tree& _M_t; 26629: }; 26629: 26629: public: 26629: typedef _Key key_type; 26629: typedef _Val value_type; 26629: typedef value_type* pointer; 26629: typedef const value_type* const_pointer; 26629: typedef value_type& reference; 26629: typedef const value_type& const_reference; 26629: typedef size_t size_type; 26629: typedef ptrdiff_t difference_type; 26629: typedef _Alloc allocator_type; 26629: 26629: _Node_allocator& 26629: _M_get_Node_allocator() noexcept 26629: { return this->_M_impl; } 26629: 26629: const _Node_allocator& 26629: _M_get_Node_allocator() const noexcept 26629: { return this->_M_impl; } 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return allocator_type(_M_get_Node_allocator()); } 26629: 26629: protected: 26629: _Link_type 26629: _M_get_node() 26629: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 26629: 26629: void 26629: _M_put_node(_Link_type __p) noexcept 26629: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 26629: # 588 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: template 26629: void 26629: _M_construct_node(_Link_type __node, _Args&&... __args) 26629: { 26629: try 26629: { 26629: ::new(__node) _Rb_tree_node<_Val>; 26629: _Alloc_traits::construct(_M_get_Node_allocator(), 26629: __node->_M_valptr(), 26629: std::forward<_Args>(__args)...); 26629: } 26629: catch(...) 26629: { 26629: __node->~_Rb_tree_node<_Val>(); 26629: _M_put_node(__node); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: _Link_type 26629: _M_create_node(_Args&&... __args) 26629: { 26629: _Link_type __tmp = _M_get_node(); 26629: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 26629: return __tmp; 26629: } 26629: 26629: 26629: void 26629: _M_destroy_node(_Link_type __p) noexcept 26629: { 26629: 26629: 26629: 26629: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 26629: __p->~_Rb_tree_node<_Val>(); 26629: 26629: } 26629: 26629: void 26629: _M_drop_node(_Link_type __p) noexcept 26629: { 26629: _M_destroy_node(__p); 26629: _M_put_node(__p); 26629: } 26629: 26629: template 26629: _Link_type 26629: _M_clone_node(_Link_type __x, _NodeGen& __node_gen) 26629: { 26629: 26629: using _Vp = __conditional_t<_MoveValue, 26629: value_type&&, 26629: const value_type&>; 26629: 26629: _Link_type __tmp 26629: = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); 26629: __tmp->_M_color = __x->_M_color; 26629: __tmp->_M_left = 0; 26629: __tmp->_M_right = 0; 26629: return __tmp; 26629: } 26629: 26629: protected: 26629: 26629: 26629: 26629: 26629: template 26629: 26629: struct _Rb_tree_impl 26629: : public _Node_allocator 26629: , public _Rb_tree_key_compare<_Key_compare> 26629: , public _Rb_tree_header 26629: { 26629: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 26629: 26629: _Rb_tree_impl() 26629: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 26629: 26629: 26629: : _Node_allocator() 26629: { } 26629: 26629: _Rb_tree_impl(const _Rb_tree_impl& __x) 26629: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 26629: , _Base_key_compare(__x._M_key_compare) 26629: , _Rb_tree_header() 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: _Rb_tree_impl(_Rb_tree_impl&&) 26629: noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) 26629: = default; 26629: 26629: explicit 26629: _Rb_tree_impl(_Node_allocator&& __a) 26629: : _Node_allocator(std::move(__a)) 26629: { } 26629: 26629: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 26629: : _Node_allocator(std::move(__a)), 26629: _Base_key_compare(std::move(__x)), 26629: _Rb_tree_header(std::move(__x)) 26629: { } 26629: 26629: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 26629: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 26629: { } 26629: 26629: }; 26629: 26629: _Rb_tree_impl<_Compare> _M_impl; 26629: 26629: protected: 26629: _Base_ptr& 26629: _M_root() noexcept 26629: { return this->_M_impl._M_header._M_parent; } 26629: 26629: _Const_Base_ptr 26629: _M_root() const noexcept 26629: { return this->_M_impl._M_header._M_parent; } 26629: 26629: _Base_ptr& 26629: _M_leftmost() noexcept 26629: { return this->_M_impl._M_header._M_left; } 26629: 26629: _Const_Base_ptr 26629: _M_leftmost() const noexcept 26629: { return this->_M_impl._M_header._M_left; } 26629: 26629: _Base_ptr& 26629: _M_rightmost() noexcept 26629: { return this->_M_impl._M_header._M_right; } 26629: 26629: _Const_Base_ptr 26629: _M_rightmost() const noexcept 26629: { return this->_M_impl._M_header._M_right; } 26629: 26629: _Link_type 26629: _M_mbegin() const noexcept 26629: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 26629: 26629: _Link_type 26629: _M_begin() noexcept 26629: { return _M_mbegin(); } 26629: 26629: _Const_Link_type 26629: _M_begin() const noexcept 26629: { 26629: return static_cast<_Const_Link_type> 26629: (this->_M_impl._M_header._M_parent); 26629: } 26629: 26629: _Base_ptr 26629: _M_end() noexcept 26629: { return &this->_M_impl._M_header; } 26629: 26629: _Const_Base_ptr 26629: _M_end() const noexcept 26629: { return &this->_M_impl._M_header; } 26629: 26629: static const _Key& 26629: _S_key(_Const_Link_type __x) 26629: { 26629: 26629: 26629: 26629: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 26629: "comparison object must be invocable " 26629: "with two arguments of key type"); 26629: 26629: 26629: 26629: if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) 26629: static_assert( 26629: is_invocable_v, 26629: "comparison object must be invocable as const"); 26629: 26629: 26629: 26629: return _KeyOfValue()(*__x->_M_valptr()); 26629: } 26629: 26629: static _Link_type 26629: _S_left(_Base_ptr __x) noexcept 26629: { return static_cast<_Link_type>(__x->_M_left); } 26629: 26629: static _Const_Link_type 26629: _S_left(_Const_Base_ptr __x) noexcept 26629: { return static_cast<_Const_Link_type>(__x->_M_left); } 26629: 26629: static _Link_type 26629: _S_right(_Base_ptr __x) noexcept 26629: { return static_cast<_Link_type>(__x->_M_right); } 26629: 26629: static _Const_Link_type 26629: _S_right(_Const_Base_ptr __x) noexcept 26629: { return static_cast<_Const_Link_type>(__x->_M_right); } 26629: 26629: static const _Key& 26629: _S_key(_Const_Base_ptr __x) 26629: { return _S_key(static_cast<_Const_Link_type>(__x)); } 26629: 26629: static _Base_ptr 26629: _S_minimum(_Base_ptr __x) noexcept 26629: { return _Rb_tree_node_base::_S_minimum(__x); } 26629: 26629: static _Const_Base_ptr 26629: _S_minimum(_Const_Base_ptr __x) noexcept 26629: { return _Rb_tree_node_base::_S_minimum(__x); } 26629: 26629: static _Base_ptr 26629: _S_maximum(_Base_ptr __x) noexcept 26629: { return _Rb_tree_node_base::_S_maximum(__x); } 26629: 26629: static _Const_Base_ptr 26629: _S_maximum(_Const_Base_ptr __x) noexcept 26629: { return _Rb_tree_node_base::_S_maximum(__x); } 26629: 26629: public: 26629: typedef _Rb_tree_iterator iterator; 26629: typedef _Rb_tree_const_iterator const_iterator; 26629: 26629: typedef std::reverse_iterator reverse_iterator; 26629: typedef std::reverse_iterator const_reverse_iterator; 26629: 26629: 26629: using node_type = _Node_handle<_Key, _Val, _Node_allocator>; 26629: using insert_return_type = _Node_insert_return< 26629: __conditional_t, const_iterator, iterator>, 26629: node_type>; 26629: 26629: 26629: pair<_Base_ptr, _Base_ptr> 26629: _M_get_insert_unique_pos(const key_type& __k); 26629: 26629: pair<_Base_ptr, _Base_ptr> 26629: _M_get_insert_equal_pos(const key_type& __k); 26629: 26629: pair<_Base_ptr, _Base_ptr> 26629: _M_get_insert_hint_unique_pos(const_iterator __pos, 26629: const key_type& __k); 26629: 26629: pair<_Base_ptr, _Base_ptr> 26629: _M_get_insert_hint_equal_pos(const_iterator __pos, 26629: const key_type& __k); 26629: 26629: private: 26629: 26629: template 26629: iterator 26629: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 26629: 26629: iterator 26629: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 26629: 26629: template 26629: iterator 26629: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 26629: 26629: template 26629: iterator 26629: _M_insert_equal_lower(_Arg&& __x); 26629: 26629: iterator 26629: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 26629: 26629: iterator 26629: _M_insert_equal_lower_node(_Link_type __z); 26629: # 879 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: enum { __as_lvalue, __as_rvalue }; 26629: 26629: template 26629: _Link_type 26629: _M_copy(_Link_type, _Base_ptr, _NodeGen&); 26629: 26629: template 26629: _Link_type 26629: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 26629: { 26629: _Link_type __root = 26629: _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); 26629: _M_leftmost() = _S_minimum(__root); 26629: _M_rightmost() = _S_maximum(__root); 26629: _M_impl._M_node_count = __x._M_impl._M_node_count; 26629: return __root; 26629: } 26629: 26629: _Link_type 26629: _M_copy(const _Rb_tree& __x) 26629: { 26629: _Alloc_node __an(*this); 26629: return _M_copy<__as_lvalue>(__x, __an); 26629: } 26629: 26629: void 26629: _M_erase(_Link_type __x); 26629: 26629: iterator 26629: _M_lower_bound(_Link_type __x, _Base_ptr __y, 26629: const _Key& __k); 26629: 26629: const_iterator 26629: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 26629: const _Key& __k) const; 26629: 26629: iterator 26629: _M_upper_bound(_Link_type __x, _Base_ptr __y, 26629: const _Key& __k); 26629: 26629: const_iterator 26629: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 26629: const _Key& __k) const; 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: _Rb_tree() = default; 26629: 26629: 26629: _Rb_tree(const _Compare& __comp, 26629: const allocator_type& __a = allocator_type()) 26629: : _M_impl(__comp, _Node_allocator(__a)) { } 26629: 26629: _Rb_tree(const _Rb_tree& __x) 26629: : _M_impl(__x._M_impl) 26629: { 26629: if (__x._M_root() != 0) 26629: _M_root() = _M_copy(__x); 26629: } 26629: 26629: 26629: _Rb_tree(const allocator_type& __a) 26629: : _M_impl(_Node_allocator(__a)) 26629: { } 26629: 26629: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 26629: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 26629: { 26629: if (__x._M_root() != nullptr) 26629: _M_root() = _M_copy(__x); 26629: } 26629: 26629: _Rb_tree(_Rb_tree&&) = default; 26629: 26629: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 26629: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 26629: { } 26629: 26629: private: 26629: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 26629: noexcept(is_nothrow_default_constructible<_Compare>::value) 26629: : _M_impl(std::move(__x._M_impl), std::move(__a)) 26629: { } 26629: 26629: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 26629: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 26629: { 26629: if (__x._M_root() != nullptr) 26629: _M_move_data(__x, false_type{}); 26629: } 26629: 26629: public: 26629: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 26629: noexcept( noexcept( 26629: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 26629: std::declval())) ) 26629: : _Rb_tree(std::move(__x), std::move(__a), 26629: typename _Alloc_traits::is_always_equal{}) 26629: { } 26629: 26629: 26629: ~_Rb_tree() noexcept 26629: { _M_erase(_M_begin()); } 26629: 26629: _Rb_tree& 26629: operator=(const _Rb_tree& __x); 26629: 26629: 26629: _Compare 26629: key_comp() const 26629: { return _M_impl._M_key_compare; } 26629: 26629: iterator 26629: begin() noexcept 26629: { return iterator(this->_M_impl._M_header._M_left); } 26629: 26629: const_iterator 26629: begin() const noexcept 26629: { return const_iterator(this->_M_impl._M_header._M_left); } 26629: 26629: iterator 26629: end() noexcept 26629: { return iterator(&this->_M_impl._M_header); } 26629: 26629: const_iterator 26629: end() const noexcept 26629: { return const_iterator(&this->_M_impl._M_header); } 26629: 26629: reverse_iterator 26629: rbegin() noexcept 26629: { return reverse_iterator(end()); } 26629: 26629: const_reverse_iterator 26629: rbegin() const noexcept 26629: { return const_reverse_iterator(end()); } 26629: 26629: reverse_iterator 26629: rend() noexcept 26629: { return reverse_iterator(begin()); } 26629: 26629: const_reverse_iterator 26629: rend() const noexcept 26629: { return const_reverse_iterator(begin()); } 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return _M_impl._M_node_count == 0; } 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_impl._M_node_count; } 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 26629: 26629: void 26629: swap(_Rb_tree& __t) 26629: noexcept(__is_nothrow_swappable<_Compare>::value); 26629: 26629: 26629: 26629: template 26629: pair 26629: _M_insert_unique(_Arg&& __x); 26629: 26629: template 26629: iterator 26629: _M_insert_equal(_Arg&& __x); 26629: 26629: template 26629: iterator 26629: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 26629: 26629: template 26629: iterator 26629: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 26629: { 26629: _Alloc_node __an(*this); 26629: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 26629: } 26629: 26629: template 26629: iterator 26629: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 26629: 26629: template 26629: iterator 26629: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 26629: { 26629: _Alloc_node __an(*this); 26629: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 26629: } 26629: 26629: template 26629: pair 26629: _M_emplace_unique(_Args&&... __args); 26629: 26629: template 26629: iterator 26629: _M_emplace_equal(_Args&&... __args); 26629: 26629: template 26629: iterator 26629: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 26629: 26629: template 26629: iterator 26629: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 26629: 26629: template 26629: using __same_value_type 26629: = is_same::value_type>; 26629: 26629: template 26629: __enable_if_t<__same_value_type<_InputIterator>::value> 26629: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 26629: { 26629: _Alloc_node __an(*this); 26629: for (; __first != __last; ++__first) 26629: _M_insert_unique_(end(), *__first, __an); 26629: } 26629: 26629: template 26629: __enable_if_t::value> 26629: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 26629: { 26629: for (; __first != __last; ++__first) 26629: _M_emplace_unique(*__first); 26629: } 26629: 26629: template 26629: __enable_if_t<__same_value_type<_InputIterator>::value> 26629: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 26629: { 26629: _Alloc_node __an(*this); 26629: for (; __first != __last; ++__first) 26629: _M_insert_equal_(end(), *__first, __an); 26629: } 26629: 26629: template 26629: __enable_if_t::value> 26629: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 26629: { 26629: _Alloc_node __an(*this); 26629: for (; __first != __last; ++__first) 26629: _M_emplace_equal(*__first); 26629: } 26629: # 1179 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: private: 26629: void 26629: _M_erase_aux(const_iterator __position); 26629: 26629: void 26629: _M_erase_aux(const_iterator __first, const_iterator __last); 26629: 26629: public: 26629: 26629: 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iterator 26629: erase(const_iterator __position) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__position != end())) __builtin_unreachable(); } while (false); 26629: const_iterator __result = __position; 26629: ++__result; 26629: _M_erase_aux(__position); 26629: return __result._M_const_cast(); 26629: } 26629: 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iterator 26629: erase(iterator __position) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__position != end())) __builtin_unreachable(); } while (false); 26629: iterator __result = __position; 26629: ++__result; 26629: _M_erase_aux(__position); 26629: return __result; 26629: } 26629: # 1228 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: size_type 26629: erase(const key_type& __x); 26629: 26629: 26629: 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iterator 26629: erase(const_iterator __first, const_iterator __last) 26629: { 26629: _M_erase_aux(__first, __last); 26629: return __last._M_const_cast(); 26629: } 26629: # 1251 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: void 26629: clear() noexcept 26629: { 26629: _M_erase(_M_begin()); 26629: _M_impl._M_reset(); 26629: } 26629: 26629: 26629: iterator 26629: find(const key_type& __k); 26629: 26629: const_iterator 26629: find(const key_type& __k) const; 26629: 26629: size_type 26629: count(const key_type& __k) const; 26629: 26629: iterator 26629: lower_bound(const key_type& __k) 26629: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 26629: 26629: const_iterator 26629: lower_bound(const key_type& __k) const 26629: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 26629: 26629: iterator 26629: upper_bound(const key_type& __k) 26629: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 26629: 26629: const_iterator 26629: upper_bound(const key_type& __k) const 26629: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 26629: 26629: pair 26629: equal_range(const key_type& __k); 26629: 26629: pair 26629: equal_range(const key_type& __k) const; 26629: 26629: 26629: template> 26629: iterator 26629: _M_find_tr(const _Kt& __k) 26629: { 26629: const _Rb_tree* __const_this = this; 26629: return __const_this->_M_find_tr(__k)._M_const_cast(); 26629: } 26629: 26629: template> 26629: const_iterator 26629: _M_find_tr(const _Kt& __k) const 26629: { 26629: auto __j = _M_lower_bound_tr(__k); 26629: if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) 26629: __j = end(); 26629: return __j; 26629: } 26629: 26629: template> 26629: size_type 26629: _M_count_tr(const _Kt& __k) const 26629: { 26629: auto __p = _M_equal_range_tr(__k); 26629: return std::distance(__p.first, __p.second); 26629: } 26629: 26629: template> 26629: iterator 26629: _M_lower_bound_tr(const _Kt& __k) 26629: { 26629: const _Rb_tree* __const_this = this; 26629: return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); 26629: } 26629: 26629: template> 26629: const_iterator 26629: _M_lower_bound_tr(const _Kt& __k) const 26629: { 26629: auto __x = _M_begin(); 26629: auto __y = _M_end(); 26629: while (__x != 0) 26629: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 26629: { 26629: __y = __x; 26629: __x = _S_left(__x); 26629: } 26629: else 26629: __x = _S_right(__x); 26629: return const_iterator(__y); 26629: } 26629: 26629: template> 26629: iterator 26629: _M_upper_bound_tr(const _Kt& __k) 26629: { 26629: const _Rb_tree* __const_this = this; 26629: return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); 26629: } 26629: 26629: template> 26629: const_iterator 26629: _M_upper_bound_tr(const _Kt& __k) const 26629: { 26629: auto __x = _M_begin(); 26629: auto __y = _M_end(); 26629: while (__x != 0) 26629: if (_M_impl._M_key_compare(__k, _S_key(__x))) 26629: { 26629: __y = __x; 26629: __x = _S_left(__x); 26629: } 26629: else 26629: __x = _S_right(__x); 26629: return const_iterator(__y); 26629: } 26629: 26629: template> 26629: pair 26629: _M_equal_range_tr(const _Kt& __k) 26629: { 26629: const _Rb_tree* __const_this = this; 26629: auto __ret = __const_this->_M_equal_range_tr(__k); 26629: return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; 26629: } 26629: 26629: template> 26629: pair 26629: _M_equal_range_tr(const _Kt& __k) const 26629: { 26629: auto __low = _M_lower_bound_tr(__k); 26629: auto __high = __low; 26629: auto& __cmp = _M_impl._M_key_compare; 26629: while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) 26629: ++__high; 26629: return { __low, __high }; 26629: } 26629: 26629: 26629: 26629: bool 26629: __rb_verify() const; 26629: 26629: 26629: _Rb_tree& 26629: operator=(_Rb_tree&&) 26629: noexcept(_Alloc_traits::_S_nothrow_move() 26629: && is_nothrow_move_assignable<_Compare>::value); 26629: 26629: template 26629: void 26629: _M_assign_unique(_Iterator, _Iterator); 26629: 26629: template 26629: void 26629: _M_assign_equal(_Iterator, _Iterator); 26629: 26629: private: 26629: 26629: void 26629: _M_move_data(_Rb_tree& __x, true_type) 26629: { _M_impl._M_move_data(__x._M_impl); } 26629: 26629: 26629: 26629: void 26629: _M_move_data(_Rb_tree&, false_type); 26629: 26629: 26629: void 26629: _M_move_assign(_Rb_tree&, true_type); 26629: 26629: 26629: 26629: void 26629: _M_move_assign(_Rb_tree&, false_type); 26629: 26629: 26629: 26629: public: 26629: 26629: insert_return_type 26629: _M_reinsert_node_unique(node_type&& __nh) 26629: { 26629: insert_return_type __ret; 26629: if (__nh.empty()) 26629: __ret.position = end(); 26629: else 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 26629: 26629: auto __res = _M_get_insert_unique_pos(__nh._M_key()); 26629: if (__res.second) 26629: { 26629: __ret.position 26629: = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 26629: __nh._M_ptr = nullptr; 26629: __ret.inserted = true; 26629: } 26629: else 26629: { 26629: __ret.node = std::move(__nh); 26629: __ret.position = iterator(__res.first); 26629: __ret.inserted = false; 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: 26629: iterator 26629: _M_reinsert_node_equal(node_type&& __nh) 26629: { 26629: iterator __ret; 26629: if (__nh.empty()) 26629: __ret = end(); 26629: else 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 26629: auto __res = _M_get_insert_equal_pos(__nh._M_key()); 26629: if (__res.second) 26629: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 26629: else 26629: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 26629: __nh._M_ptr = nullptr; 26629: } 26629: return __ret; 26629: } 26629: 26629: 26629: iterator 26629: _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) 26629: { 26629: iterator __ret; 26629: if (__nh.empty()) 26629: __ret = end(); 26629: else 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 26629: auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); 26629: if (__res.second) 26629: { 26629: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 26629: __nh._M_ptr = nullptr; 26629: } 26629: else 26629: __ret = iterator(__res.first); 26629: } 26629: return __ret; 26629: } 26629: 26629: 26629: iterator 26629: _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) 26629: { 26629: iterator __ret; 26629: if (__nh.empty()) 26629: __ret = end(); 26629: else 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 26629: auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); 26629: if (__res.second) 26629: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 26629: else 26629: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 26629: __nh._M_ptr = nullptr; 26629: } 26629: return __ret; 26629: } 26629: 26629: 26629: node_type 26629: extract(const_iterator __pos) 26629: { 26629: auto __ptr = _Rb_tree_rebalance_for_erase( 26629: __pos._M_const_cast()._M_node, _M_impl._M_header); 26629: --_M_impl._M_node_count; 26629: return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; 26629: } 26629: 26629: 26629: node_type 26629: extract(const key_type& __k) 26629: { 26629: node_type __nh; 26629: auto __pos = find(__k); 26629: if (__pos != end()) 26629: __nh = extract(const_iterator(__pos)); 26629: return __nh; 26629: } 26629: 26629: template 26629: using _Compatible_tree 26629: = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; 26629: 26629: template 26629: friend class _Rb_tree_merge_helper; 26629: 26629: 26629: template 26629: void 26629: _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept 26629: { 26629: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 26629: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 26629: { 26629: auto __pos = __i++; 26629: auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); 26629: if (__res.second) 26629: { 26629: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 26629: auto __ptr = _Rb_tree_rebalance_for_erase( 26629: __pos._M_node, __src_impl._M_header); 26629: --__src_impl._M_node_count; 26629: _M_insert_node(__res.first, __res.second, 26629: static_cast<_Link_type>(__ptr)); 26629: } 26629: } 26629: } 26629: 26629: 26629: template 26629: void 26629: _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept 26629: { 26629: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 26629: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 26629: { 26629: auto __pos = __i++; 26629: auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); 26629: if (__res.second) 26629: { 26629: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 26629: auto __ptr = _Rb_tree_rebalance_for_erase( 26629: __pos._M_node, __src_impl._M_header); 26629: --__src_impl._M_node_count; 26629: _M_insert_node(__res.first, __res.second, 26629: static_cast<_Link_type>(__ptr)); 26629: } 26629: } 26629: } 26629: 26629: 26629: friend bool 26629: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 26629: { 26629: return __x.size() == __y.size() 26629: && std::equal(__x.begin(), __x.end(), __y.begin()); 26629: } 26629: # 1620 "/usr/include/c++/12/bits/stl_tree.h" 3 26629: friend bool 26629: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 26629: { 26629: return std::lexicographical_compare(__x.begin(), __x.end(), 26629: __y.begin(), __y.end()); 26629: } 26629: 26629: 26629: private: 26629: 26629: 26629: struct _Auto_node 26629: { 26629: template 26629: _Auto_node(_Rb_tree& __t, _Args&&... __args) 26629: : _M_t(__t), 26629: _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) 26629: { } 26629: 26629: ~_Auto_node() 26629: { 26629: if (_M_node) 26629: _M_t._M_drop_node(_M_node); 26629: } 26629: 26629: _Auto_node(_Auto_node&& __n) 26629: : _M_t(__n._M_t), _M_node(__n._M_node) 26629: { __n._M_node = nullptr; } 26629: 26629: const _Key& 26629: _M_key() const 26629: { return _S_key(_M_node); } 26629: 26629: iterator 26629: _M_insert(pair<_Base_ptr, _Base_ptr> __p) 26629: { 26629: auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); 26629: _M_node = nullptr; 26629: return __it; 26629: } 26629: 26629: iterator 26629: _M_insert_equal_lower() 26629: { 26629: auto __it = _M_t._M_insert_equal_lower_node(_M_node); 26629: _M_node = nullptr; 26629: return __it; 26629: } 26629: 26629: _Rb_tree& _M_t; 26629: _Link_type _M_node; 26629: }; 26629: 26629: }; 26629: 26629: template 26629: inline void 26629: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 26629: { __x.swap(__y); } 26629: 26629: 26629: template 26629: void 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_move_data(_Rb_tree& __x, false_type) 26629: { 26629: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 26629: _M_move_data(__x, true_type()); 26629: else 26629: { 26629: constexpr bool __move = !__move_if_noexcept_cond::value; 26629: _Alloc_node __an(*this); 26629: _M_root() = _M_copy<__move>(__x, __an); 26629: if constexpr (__move) 26629: __x.clear(); 26629: } 26629: } 26629: 26629: template 26629: inline void 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_move_assign(_Rb_tree& __x, true_type) 26629: { 26629: clear(); 26629: if (__x._M_root() != nullptr) 26629: _M_move_data(__x, true_type()); 26629: std::__alloc_on_move(_M_get_Node_allocator(), 26629: __x._M_get_Node_allocator()); 26629: } 26629: 26629: template 26629: void 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_move_assign(_Rb_tree& __x, false_type) 26629: { 26629: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 26629: return _M_move_assign(__x, true_type{}); 26629: 26629: 26629: 26629: _Reuse_or_alloc_node __roan(*this); 26629: _M_impl._M_reset(); 26629: if (__x._M_root() != nullptr) 26629: { 26629: _M_root() = _M_copy<__as_rvalue>(__x, __roan); 26629: __x.clear(); 26629: } 26629: } 26629: 26629: template 26629: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: operator=(_Rb_tree&& __x) 26629: noexcept(_Alloc_traits::_S_nothrow_move() 26629: && is_nothrow_move_assignable<_Compare>::value) 26629: { 26629: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 26629: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 26629: return *this; 26629: } 26629: 26629: template 26629: template 26629: void 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_assign_unique(_Iterator __first, _Iterator __last) 26629: { 26629: _Reuse_or_alloc_node __roan(*this); 26629: _M_impl._M_reset(); 26629: for (; __first != __last; ++__first) 26629: _M_insert_unique_(end(), *__first, __roan); 26629: } 26629: 26629: template 26629: template 26629: void 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_assign_equal(_Iterator __first, _Iterator __last) 26629: { 26629: _Reuse_or_alloc_node __roan(*this); 26629: _M_impl._M_reset(); 26629: for (; __first != __last; ++__first) 26629: _M_insert_equal_(end(), *__first, __roan); 26629: } 26629: 26629: 26629: template 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: operator=(const _Rb_tree& __x) 26629: { 26629: if (this != std::__addressof(__x)) 26629: { 26629: 26629: 26629: if (_Alloc_traits::_S_propagate_on_copy_assign()) 26629: { 26629: auto& __this_alloc = this->_M_get_Node_allocator(); 26629: auto& __that_alloc = __x._M_get_Node_allocator(); 26629: if (!_Alloc_traits::_S_always_equal() 26629: && __this_alloc != __that_alloc) 26629: { 26629: 26629: 26629: clear(); 26629: std::__alloc_on_copy(__this_alloc, __that_alloc); 26629: } 26629: } 26629: 26629: 26629: _Reuse_or_alloc_node __roan(*this); 26629: _M_impl._M_reset(); 26629: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 26629: if (__x._M_root() != 0) 26629: _M_root() = _M_copy<__as_lvalue>(__x, __roan); 26629: } 26629: 26629: return *this; 26629: } 26629: 26629: template 26629: 26629: template 26629: 26629: 26629: 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_insert_(_Base_ptr __x, _Base_ptr __p, 26629: 26629: _Arg&& __v, 26629: 26629: 26629: 26629: _NodeGen& __node_gen) 26629: { 26629: bool __insert_left = (__x != 0 || __p == _M_end() 26629: || _M_impl._M_key_compare(_KeyOfValue()(__v), 26629: _S_key(__p))); 26629: 26629: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 26629: 26629: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 26629: this->_M_impl._M_header); 26629: ++_M_impl._M_node_count; 26629: return iterator(__z); 26629: } 26629: 26629: template 26629: 26629: template 26629: 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: 26629: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 26629: 26629: 26629: 26629: { 26629: bool __insert_left = (__p == _M_end() 26629: || !_M_impl._M_key_compare(_S_key(__p), 26629: _KeyOfValue()(__v))); 26629: 26629: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 26629: 26629: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 26629: this->_M_impl._M_header); 26629: ++_M_impl._M_node_count; 26629: return iterator(__z); 26629: } 26629: 26629: template 26629: 26629: template 26629: 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: 26629: _M_insert_equal_lower(_Arg&& __v) 26629: 26629: 26629: 26629: { 26629: _Link_type __x = _M_begin(); 26629: _Base_ptr __y = _M_end(); 26629: while (__x != 0) 26629: { 26629: __y = __x; 26629: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 26629: _S_left(__x) : _S_right(__x); 26629: } 26629: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 26629: } 26629: 26629: template 26629: template 26629: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 26629: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 26629: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 26629: { 26629: 26629: _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); 26629: __top->_M_parent = __p; 26629: 26629: try 26629: { 26629: if (__x->_M_right) 26629: __top->_M_right = 26629: _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); 26629: __p = __top; 26629: __x = _S_left(__x); 26629: 26629: while (__x != 0) 26629: { 26629: _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); 26629: __p->_M_left = __y; 26629: __y->_M_parent = __p; 26629: if (__x->_M_right) 26629: __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), 26629: __y, __node_gen); 26629: __p = __y; 26629: __x = _S_left(__x); 26629: } 26629: } 26629: catch(...) 26629: { 26629: _M_erase(__top); 26629: throw; 26629: } 26629: return __top; 26629: } 26629: 26629: template 26629: void 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_erase(_Link_type __x) 26629: { 26629: 26629: while (__x != 0) 26629: { 26629: _M_erase(_S_right(__x)); 26629: _Link_type __y = _S_left(__x); 26629: _M_drop_node(__x); 26629: __x = __y; 26629: } 26629: } 26629: 26629: template 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_lower_bound(_Link_type __x, _Base_ptr __y, 26629: const _Key& __k) 26629: { 26629: while (__x != 0) 26629: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 26629: __y = __x, __x = _S_left(__x); 26629: else 26629: __x = _S_right(__x); 26629: return iterator(__y); 26629: } 26629: 26629: template 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::const_iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 26629: const _Key& __k) const 26629: { 26629: while (__x != 0) 26629: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 26629: __y = __x, __x = _S_left(__x); 26629: else 26629: __x = _S_right(__x); 26629: return const_iterator(__y); 26629: } 26629: 26629: template 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_upper_bound(_Link_type __x, _Base_ptr __y, 26629: const _Key& __k) 26629: { 26629: while (__x != 0) 26629: if (_M_impl._M_key_compare(__k, _S_key(__x))) 26629: __y = __x, __x = _S_left(__x); 26629: else 26629: __x = _S_right(__x); 26629: return iterator(__y); 26629: } 26629: 26629: template 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::const_iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 26629: const _Key& __k) const 26629: { 26629: while (__x != 0) 26629: if (_M_impl._M_key_compare(__k, _S_key(__x))) 26629: __y = __x, __x = _S_left(__x); 26629: else 26629: __x = _S_right(__x); 26629: return const_iterator(__y); 26629: } 26629: 26629: template 26629: pair::iterator, 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::iterator> 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: equal_range(const _Key& __k) 26629: { 26629: _Link_type __x = _M_begin(); 26629: _Base_ptr __y = _M_end(); 26629: while (__x != 0) 26629: { 26629: if (_M_impl._M_key_compare(_S_key(__x), __k)) 26629: __x = _S_right(__x); 26629: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 26629: __y = __x, __x = _S_left(__x); 26629: else 26629: { 26629: _Link_type __xu(__x); 26629: _Base_ptr __yu(__y); 26629: __y = __x, __x = _S_left(__x); 26629: __xu = _S_right(__xu); 26629: return pair(_M_lower_bound(__x, __y, __k), 26629: _M_upper_bound(__xu, __yu, __k)); 26629: } 26629: } 26629: return pair(iterator(__y), 26629: iterator(__y)); 26629: } 26629: 26629: template 26629: pair::const_iterator, 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::const_iterator> 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: equal_range(const _Key& __k) const 26629: { 26629: _Const_Link_type __x = _M_begin(); 26629: _Const_Base_ptr __y = _M_end(); 26629: while (__x != 0) 26629: { 26629: if (_M_impl._M_key_compare(_S_key(__x), __k)) 26629: __x = _S_right(__x); 26629: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 26629: __y = __x, __x = _S_left(__x); 26629: else 26629: { 26629: _Const_Link_type __xu(__x); 26629: _Const_Base_ptr __yu(__y); 26629: __y = __x, __x = _S_left(__x); 26629: __xu = _S_right(__xu); 26629: return pair(_M_lower_bound(__x, __y, __k), 26629: _M_upper_bound(__xu, __yu, __k)); 26629: } 26629: } 26629: return pair(const_iterator(__y), 26629: const_iterator(__y)); 26629: } 26629: 26629: template 26629: void 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: swap(_Rb_tree& __t) 26629: noexcept(__is_nothrow_swappable<_Compare>::value) 26629: { 26629: if (_M_root() == 0) 26629: { 26629: if (__t._M_root() != 0) 26629: _M_impl._M_move_data(__t._M_impl); 26629: } 26629: else if (__t._M_root() == 0) 26629: __t._M_impl._M_move_data(_M_impl); 26629: else 26629: { 26629: std::swap(_M_root(),__t._M_root()); 26629: std::swap(_M_leftmost(),__t._M_leftmost()); 26629: std::swap(_M_rightmost(),__t._M_rightmost()); 26629: 26629: _M_root()->_M_parent = _M_end(); 26629: __t._M_root()->_M_parent = __t._M_end(); 26629: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 26629: } 26629: 26629: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 26629: 26629: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 26629: __t._M_get_Node_allocator()); 26629: } 26629: 26629: template 26629: pair::_Base_ptr, 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::_Base_ptr> 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_get_insert_unique_pos(const key_type& __k) 26629: { 26629: typedef pair<_Base_ptr, _Base_ptr> _Res; 26629: _Link_type __x = _M_begin(); 26629: _Base_ptr __y = _M_end(); 26629: bool __comp = true; 26629: while (__x != 0) 26629: { 26629: __y = __x; 26629: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 26629: __x = __comp ? _S_left(__x) : _S_right(__x); 26629: } 26629: iterator __j = iterator(__y); 26629: if (__comp) 26629: { 26629: if (__j == begin()) 26629: return _Res(__x, __y); 26629: else 26629: --__j; 26629: } 26629: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 26629: return _Res(__x, __y); 26629: return _Res(__j._M_node, 0); 26629: } 26629: 26629: template 26629: pair::_Base_ptr, 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::_Base_ptr> 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_get_insert_equal_pos(const key_type& __k) 26629: { 26629: typedef pair<_Base_ptr, _Base_ptr> _Res; 26629: _Link_type __x = _M_begin(); 26629: _Base_ptr __y = _M_end(); 26629: while (__x != 0) 26629: { 26629: __y = __x; 26629: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 26629: _S_left(__x) : _S_right(__x); 26629: } 26629: return _Res(__x, __y); 26629: } 26629: 26629: template 26629: 26629: template 26629: 26629: pair::iterator, bool> 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: 26629: _M_insert_unique(_Arg&& __v) 26629: 26629: 26629: 26629: { 26629: typedef pair _Res; 26629: pair<_Base_ptr, _Base_ptr> __res 26629: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 26629: 26629: if (__res.second) 26629: { 26629: _Alloc_node __an(*this); 26629: return _Res(_M_insert_(__res.first, __res.second, 26629: std::forward<_Arg>(__v), __an), 26629: true); 26629: } 26629: 26629: return _Res(iterator(__res.first), false); 26629: } 26629: 26629: template 26629: 26629: template 26629: 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: 26629: _M_insert_equal(_Arg&& __v) 26629: 26629: 26629: 26629: { 26629: pair<_Base_ptr, _Base_ptr> __res 26629: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 26629: _Alloc_node __an(*this); 26629: return _M_insert_(__res.first, __res.second, 26629: std::forward<_Arg>(__v), __an); 26629: } 26629: 26629: template 26629: pair::_Base_ptr, 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::_Base_ptr> 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_get_insert_hint_unique_pos(const_iterator __position, 26629: const key_type& __k) 26629: { 26629: iterator __pos = __position._M_const_cast(); 26629: typedef pair<_Base_ptr, _Base_ptr> _Res; 26629: 26629: 26629: if (__pos._M_node == _M_end()) 26629: { 26629: if (size() > 0 26629: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 26629: return _Res(0, _M_rightmost()); 26629: else 26629: return _M_get_insert_unique_pos(__k); 26629: } 26629: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 26629: { 26629: 26629: iterator __before = __pos; 26629: if (__pos._M_node == _M_leftmost()) 26629: return _Res(_M_leftmost(), _M_leftmost()); 26629: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 26629: { 26629: if (_S_right(__before._M_node) == 0) 26629: return _Res(0, __before._M_node); 26629: else 26629: return _Res(__pos._M_node, __pos._M_node); 26629: } 26629: else 26629: return _M_get_insert_unique_pos(__k); 26629: } 26629: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 26629: { 26629: 26629: iterator __after = __pos; 26629: if (__pos._M_node == _M_rightmost()) 26629: return _Res(0, _M_rightmost()); 26629: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 26629: { 26629: if (_S_right(__pos._M_node) == 0) 26629: return _Res(0, __pos._M_node); 26629: else 26629: return _Res(__after._M_node, __after._M_node); 26629: } 26629: else 26629: return _M_get_insert_unique_pos(__k); 26629: } 26629: else 26629: 26629: return _Res(__pos._M_node, 0); 26629: } 26629: 26629: template 26629: 26629: template 26629: 26629: 26629: 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_insert_unique_(const_iterator __position, 26629: 26629: _Arg&& __v, 26629: 26629: 26629: 26629: _NodeGen& __node_gen) 26629: { 26629: pair<_Base_ptr, _Base_ptr> __res 26629: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 26629: 26629: if (__res.second) 26629: return _M_insert_(__res.first, __res.second, 26629: std::forward<_Arg>(__v), 26629: __node_gen); 26629: return iterator(__res.first); 26629: } 26629: 26629: template 26629: pair::_Base_ptr, 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::_Base_ptr> 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 26629: { 26629: iterator __pos = __position._M_const_cast(); 26629: typedef pair<_Base_ptr, _Base_ptr> _Res; 26629: 26629: 26629: if (__pos._M_node == _M_end()) 26629: { 26629: if (size() > 0 26629: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 26629: return _Res(0, _M_rightmost()); 26629: else 26629: return _M_get_insert_equal_pos(__k); 26629: } 26629: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 26629: { 26629: 26629: iterator __before = __pos; 26629: if (__pos._M_node == _M_leftmost()) 26629: return _Res(_M_leftmost(), _M_leftmost()); 26629: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 26629: { 26629: if (_S_right(__before._M_node) == 0) 26629: return _Res(0, __before._M_node); 26629: else 26629: return _Res(__pos._M_node, __pos._M_node); 26629: } 26629: else 26629: return _M_get_insert_equal_pos(__k); 26629: } 26629: else 26629: { 26629: 26629: iterator __after = __pos; 26629: if (__pos._M_node == _M_rightmost()) 26629: return _Res(0, _M_rightmost()); 26629: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 26629: { 26629: if (_S_right(__pos._M_node) == 0) 26629: return _Res(0, __pos._M_node); 26629: else 26629: return _Res(__after._M_node, __after._M_node); 26629: } 26629: else 26629: return _Res(0, 0); 26629: } 26629: } 26629: 26629: template 26629: 26629: template 26629: 26629: 26629: 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_insert_equal_(const_iterator __position, 26629: 26629: _Arg&& __v, 26629: 26629: 26629: 26629: _NodeGen& __node_gen) 26629: { 26629: pair<_Base_ptr, _Base_ptr> __res 26629: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 26629: 26629: if (__res.second) 26629: return _M_insert_(__res.first, __res.second, 26629: std::forward<_Arg>(__v), 26629: __node_gen); 26629: 26629: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 26629: } 26629: 26629: 26629: template 26629: auto 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 26629: -> iterator 26629: { 26629: bool __insert_left = (__x != 0 || __p == _M_end() 26629: || _M_impl._M_key_compare(_S_key(__z), 26629: _S_key(__p))); 26629: 26629: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 26629: this->_M_impl._M_header); 26629: ++_M_impl._M_node_count; 26629: return iterator(__z); 26629: } 26629: 26629: template 26629: auto 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 26629: -> iterator 26629: { 26629: bool __insert_left = (__p == _M_end() 26629: || !_M_impl._M_key_compare(_S_key(__p), 26629: _S_key(__z))); 26629: 26629: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 26629: this->_M_impl._M_header); 26629: ++_M_impl._M_node_count; 26629: return iterator(__z); 26629: } 26629: 26629: template 26629: auto 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_insert_equal_lower_node(_Link_type __z) 26629: -> iterator 26629: { 26629: _Link_type __x = _M_begin(); 26629: _Base_ptr __y = _M_end(); 26629: while (__x != 0) 26629: { 26629: __y = __x; 26629: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 26629: _S_left(__x) : _S_right(__x); 26629: } 26629: return _M_insert_lower_node(__y, __z); 26629: } 26629: 26629: template 26629: template 26629: auto 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_emplace_unique(_Args&&... __args) 26629: -> pair 26629: { 26629: _Auto_node __z(*this, std::forward<_Args>(__args)...); 26629: auto __res = _M_get_insert_unique_pos(__z._M_key()); 26629: if (__res.second) 26629: return {__z._M_insert(__res), true}; 26629: return {iterator(__res.first), false}; 26629: } 26629: 26629: template 26629: template 26629: auto 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_emplace_equal(_Args&&... __args) 26629: -> iterator 26629: { 26629: _Auto_node __z(*this, std::forward<_Args>(__args)...); 26629: auto __res = _M_get_insert_equal_pos(__z._M_key()); 26629: return __z._M_insert(__res); 26629: } 26629: 26629: template 26629: template 26629: auto 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 26629: -> iterator 26629: { 26629: _Auto_node __z(*this, std::forward<_Args>(__args)...); 26629: auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); 26629: if (__res.second) 26629: return __z._M_insert(__res); 26629: return iterator(__res.first); 26629: } 26629: 26629: template 26629: template 26629: auto 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 26629: -> iterator 26629: { 26629: _Auto_node __z(*this, std::forward<_Args>(__args)...); 26629: auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); 26629: if (__res.second) 26629: return __z._M_insert(__res); 26629: return __z._M_insert_equal_lower(); 26629: } 26629: 26629: 26629: 26629: template 26629: void 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_erase_aux(const_iterator __position) 26629: { 26629: _Link_type __y = 26629: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 26629: (const_cast<_Base_ptr>(__position._M_node), 26629: this->_M_impl._M_header)); 26629: _M_drop_node(__y); 26629: --_M_impl._M_node_count; 26629: } 26629: 26629: template 26629: void 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: _M_erase_aux(const_iterator __first, const_iterator __last) 26629: { 26629: if (__first == begin() && __last == end()) 26629: clear(); 26629: else 26629: while (__first != __last) 26629: _M_erase_aux(__first++); 26629: } 26629: 26629: template 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: erase(const _Key& __x) 26629: { 26629: pair __p = equal_range(__x); 26629: const size_type __old_size = size(); 26629: _M_erase_aux(__p.first, __p.second); 26629: return __old_size - size(); 26629: } 26629: 26629: template 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: find(const _Key& __k) 26629: { 26629: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 26629: return (__j == end() 26629: || _M_impl._M_key_compare(__k, 26629: _S_key(__j._M_node))) ? end() : __j; 26629: } 26629: 26629: template 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, 26629: _Compare, _Alloc>::const_iterator 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: find(const _Key& __k) const 26629: { 26629: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 26629: return (__j == end() 26629: || _M_impl._M_key_compare(__k, 26629: _S_key(__j._M_node))) ? end() : __j; 26629: } 26629: 26629: template 26629: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 26629: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 26629: count(const _Key& __k) const 26629: { 26629: pair __p = equal_range(__k); 26629: const size_type __n = std::distance(__p.first, __p.second); 26629: return __n; 26629: } 26629: 26629: __attribute__ ((__pure__)) unsigned int 26629: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 26629: const _Rb_tree_node_base* __root) throw (); 26629: 26629: template 26629: bool 26629: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 26629: { 26629: if (_M_impl._M_node_count == 0 || begin() == end()) 26629: return _M_impl._M_node_count == 0 && begin() == end() 26629: && this->_M_impl._M_header._M_left == _M_end() 26629: && this->_M_impl._M_header._M_right == _M_end(); 26629: 26629: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 26629: for (const_iterator __it = begin(); __it != end(); ++__it) 26629: { 26629: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 26629: _Const_Link_type __L = _S_left(__x); 26629: _Const_Link_type __R = _S_right(__x); 26629: 26629: if (__x->_M_color == _S_red) 26629: if ((__L && __L->_M_color == _S_red) 26629: || (__R && __R->_M_color == _S_red)) 26629: return false; 26629: 26629: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 26629: return false; 26629: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 26629: return false; 26629: 26629: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 26629: return false; 26629: } 26629: 26629: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 26629: return false; 26629: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 26629: return false; 26629: return true; 26629: } 26629: 26629: 26629: 26629: template 26629: struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, 26629: _Cmp2> 26629: { 26629: private: 26629: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; 26629: 26629: static auto& 26629: _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) 26629: { return __tree._M_impl; } 26629: }; 26629: 26629: 26629: 26629: } 26629: # 61 "/usr/include/c++/12/map" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_map.h" 1 3 26629: # 66 "/usr/include/c++/12/bits/stl_map.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: class multimap; 26629: # 98 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template , 26629: typename _Alloc = std::allocator > > 26629: class map 26629: { 26629: public: 26629: typedef _Key key_type; 26629: typedef _Tp mapped_type; 26629: typedef std::pair value_type; 26629: typedef _Compare key_compare; 26629: typedef _Alloc allocator_type; 26629: 26629: private: 26629: # 128 "/usr/include/c++/12/bits/stl_map.h" 3 26629: public: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: class value_compare 26629: : public std::binary_function 26629: { 26629: friend class map<_Key, _Tp, _Compare, _Alloc>; 26629: protected: 26629: _Compare comp; 26629: 26629: value_compare(_Compare __c) 26629: : comp(__c) { } 26629: 26629: public: 26629: bool operator()(const value_type& __x, const value_type& __y) const 26629: { return comp(__x.first, __y.first); } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: private: 26629: 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind::other _Pair_alloc_type; 26629: 26629: typedef _Rb_tree, 26629: key_compare, _Pair_alloc_type> _Rep_type; 26629: 26629: 26629: _Rep_type _M_t; 26629: 26629: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 26629: 26629: 26629: template> 26629: static constexpr bool __usable_key 26629: = __or_v, 26629: __and_, is_scalar<_Key>>>; 26629: 26629: 26629: public: 26629: 26629: 26629: typedef typename _Alloc_traits::pointer pointer; 26629: typedef typename _Alloc_traits::const_pointer const_pointer; 26629: typedef typename _Alloc_traits::reference reference; 26629: typedef typename _Alloc_traits::const_reference const_reference; 26629: typedef typename _Rep_type::iterator iterator; 26629: typedef typename _Rep_type::const_iterator const_iterator; 26629: typedef typename _Rep_type::size_type size_type; 26629: typedef typename _Rep_type::difference_type difference_type; 26629: typedef typename _Rep_type::reverse_iterator reverse_iterator; 26629: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 26629: 26629: 26629: using node_type = typename _Rep_type::node_type; 26629: using insert_return_type = typename _Rep_type::insert_return_type; 26629: # 195 "/usr/include/c++/12/bits/stl_map.h" 3 26629: map() = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: map(const _Compare& __comp, 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Pair_alloc_type(__a)) { } 26629: # 217 "/usr/include/c++/12/bits/stl_map.h" 3 26629: map(const map&) = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: map(map&&) = default; 26629: # 238 "/usr/include/c++/12/bits/stl_map.h" 3 26629: map(initializer_list __l, 26629: const _Compare& __comp = _Compare(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Pair_alloc_type(__a)) 26629: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 26629: 26629: 26629: explicit 26629: map(const allocator_type& __a) 26629: : _M_t(_Pair_alloc_type(__a)) { } 26629: 26629: 26629: map(const map& __m, const __type_identity_t& __a) 26629: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 26629: 26629: 26629: map(map&& __m, const __type_identity_t& __a) 26629: noexcept(is_nothrow_copy_constructible<_Compare>::value 26629: && _Alloc_traits::_S_always_equal()) 26629: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 26629: 26629: 26629: map(initializer_list __l, const allocator_type& __a) 26629: : _M_t(_Pair_alloc_type(__a)) 26629: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 26629: 26629: 26629: template 26629: map(_InputIterator __first, _InputIterator __last, 26629: const allocator_type& __a) 26629: : _M_t(_Pair_alloc_type(__a)) 26629: { _M_t._M_insert_range_unique(__first, __last); } 26629: # 282 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: map(_InputIterator __first, _InputIterator __last) 26629: : _M_t() 26629: { _M_t._M_insert_range_unique(__first, __last); } 26629: # 299 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: map(_InputIterator __first, _InputIterator __last, 26629: const _Compare& __comp, 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Pair_alloc_type(__a)) 26629: { _M_t._M_insert_range_unique(__first, __last); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ~map() = default; 26629: # 328 "/usr/include/c++/12/bits/stl_map.h" 3 26629: map& 26629: operator=(const map&) = default; 26629: 26629: 26629: map& 26629: operator=(map&&) = default; 26629: # 346 "/usr/include/c++/12/bits/stl_map.h" 3 26629: map& 26629: operator=(initializer_list __l) 26629: { 26629: _M_t._M_assign_unique(__l.begin(), __l.end()); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return allocator_type(_M_t.get_allocator()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: begin() noexcept 26629: { return _M_t.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: begin() const noexcept 26629: { return _M_t.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: end() noexcept 26629: { return _M_t.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: end() const noexcept 26629: { return _M_t.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: rbegin() noexcept 26629: { return _M_t.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: rbegin() const noexcept 26629: { return _M_t.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: rend() noexcept 26629: { return _M_t.rend(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: rend() const noexcept 26629: { return _M_t.rend(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: cbegin() const noexcept 26629: { return _M_t.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: cend() const noexcept 26629: { return _M_t.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: crbegin() const noexcept 26629: { return _M_t.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: crend() const noexcept 26629: { return _M_t.rend(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return _M_t.empty(); } 26629: 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_t.size(); } 26629: 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return _M_t.max_size(); } 26629: # 501 "/usr/include/c++/12/bits/stl_map.h" 3 26629: mapped_type& 26629: operator[](const key_type& __k) 26629: { 26629: 26629: 26629: 26629: iterator __i = lower_bound(__k); 26629: 26629: if (__i == end() || key_comp()(__k, (*__i).first)) 26629: 26629: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 26629: std::tuple(__k), 26629: std::tuple<>()); 26629: 26629: 26629: 26629: return (*__i).second; 26629: } 26629: 26629: 26629: mapped_type& 26629: operator[](key_type&& __k) 26629: { 26629: 26629: 26629: 26629: iterator __i = lower_bound(__k); 26629: 26629: if (__i == end() || key_comp()(__k, (*__i).first)) 26629: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 26629: std::forward_as_tuple(std::move(__k)), 26629: std::tuple<>()); 26629: return (*__i).second; 26629: } 26629: # 546 "/usr/include/c++/12/bits/stl_map.h" 3 26629: mapped_type& 26629: at(const key_type& __k) 26629: { 26629: iterator __i = lower_bound(__k); 26629: if (__i == end() || key_comp()(__k, (*__i).first)) 26629: __throw_out_of_range(("map::at")); 26629: return (*__i).second; 26629: } 26629: 26629: const mapped_type& 26629: at(const key_type& __k) const 26629: { 26629: const_iterator __i = lower_bound(__k); 26629: if (__i == end() || key_comp()(__k, (*__i).first)) 26629: __throw_out_of_range(("map::at")); 26629: return (*__i).second; 26629: } 26629: # 584 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: std::pair 26629: emplace(_Args&&... __args) 26629: { 26629: 26629: if constexpr (sizeof...(_Args) == 2) 26629: if constexpr (is_same_v>) 26629: { 26629: auto&& [__a, __v] = pair<_Args&...>(__args...); 26629: if constexpr (__usable_key) 26629: { 26629: const key_type& __k = __a; 26629: iterator __i = lower_bound(__k); 26629: if (__i == end() || key_comp()(__k, (*__i).first)) 26629: { 26629: __i = emplace_hint(__i, std::forward<_Args>(__args)...); 26629: return {__i, true}; 26629: } 26629: return {__i, false}; 26629: } 26629: } 26629: 26629: return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); 26629: } 26629: # 634 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: iterator 26629: emplace_hint(const_iterator __pos, _Args&&... __args) 26629: { 26629: return _M_t._M_emplace_hint_unique(__pos, 26629: std::forward<_Args>(__args)...); 26629: } 26629: 26629: 26629: 26629: 26629: node_type 26629: extract(const_iterator __pos) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 26629: return _M_t.extract(__pos); 26629: } 26629: 26629: 26629: node_type 26629: extract(const key_type& __x) 26629: { return _M_t.extract(__x); } 26629: 26629: 26629: insert_return_type 26629: insert(node_type&& __nh) 26629: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 26629: 26629: 26629: iterator 26629: insert(const_iterator __hint, node_type&& __nh) 26629: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 26629: 26629: template 26629: friend struct std::_Rb_tree_merge_helper; 26629: 26629: template 26629: void 26629: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Rb_tree_merge_helper; 26629: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: template 26629: void 26629: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Rb_tree_merge_helper; 26629: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 26629: { merge(__source); } 26629: # 719 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: pair 26629: try_emplace(const key_type& __k, _Args&&... __args) 26629: { 26629: iterator __i = lower_bound(__k); 26629: if (__i == end() || key_comp()(__k, (*__i).first)) 26629: { 26629: __i = emplace_hint(__i, std::piecewise_construct, 26629: std::forward_as_tuple(__k), 26629: std::forward_as_tuple( 26629: std::forward<_Args>(__args)...)); 26629: return {__i, true}; 26629: } 26629: return {__i, false}; 26629: } 26629: 26629: 26629: template 26629: pair 26629: try_emplace(key_type&& __k, _Args&&... __args) 26629: { 26629: iterator __i = lower_bound(__k); 26629: if (__i == end() || key_comp()(__k, (*__i).first)) 26629: { 26629: __i = emplace_hint(__i, std::piecewise_construct, 26629: std::forward_as_tuple(std::move(__k)), 26629: std::forward_as_tuple( 26629: std::forward<_Args>(__args)...)); 26629: return {__i, true}; 26629: } 26629: return {__i, false}; 26629: } 26629: # 779 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: iterator 26629: try_emplace(const_iterator __hint, const key_type& __k, 26629: _Args&&... __args) 26629: { 26629: iterator __i; 26629: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 26629: if (__true_hint.second) 26629: __i = emplace_hint(iterator(__true_hint.second), 26629: std::piecewise_construct, 26629: std::forward_as_tuple(__k), 26629: std::forward_as_tuple( 26629: std::forward<_Args>(__args)...)); 26629: else 26629: __i = iterator(__true_hint.first); 26629: return __i; 26629: } 26629: 26629: 26629: template 26629: iterator 26629: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 26629: { 26629: iterator __i; 26629: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 26629: if (__true_hint.second) 26629: __i = emplace_hint(iterator(__true_hint.second), 26629: std::piecewise_construct, 26629: std::forward_as_tuple(std::move(__k)), 26629: std::forward_as_tuple( 26629: std::forward<_Args>(__args)...)); 26629: else 26629: __i = iterator(__true_hint.first); 26629: return __i; 26629: } 26629: # 832 "/usr/include/c++/12/bits/stl_map.h" 3 26629: std::pair 26629: insert(const value_type& __x) 26629: { return _M_t._M_insert_unique(__x); } 26629: 26629: 26629: 26629: 26629: std::pair 26629: insert(value_type&& __x) 26629: { return _M_t._M_insert_unique(std::move(__x)); } 26629: 26629: template 26629: __enable_if_t::value, 26629: pair> 26629: insert(_Pair&& __x) 26629: { 26629: 26629: using _P2 = remove_reference_t<_Pair>; 26629: if constexpr (__is_pair<_P2>) 26629: if constexpr (is_same_v>) 26629: if constexpr (__usable_key) 26629: { 26629: const key_type& __k = __x.first; 26629: iterator __i = lower_bound(__k); 26629: if (__i == end() || key_comp()(__k, (*__i).first)) 26629: { 26629: __i = emplace_hint(__i, std::forward<_Pair>(__x)); 26629: return {__i, true}; 26629: } 26629: return {__i, false}; 26629: } 26629: 26629: return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); 26629: } 26629: # 877 "/usr/include/c++/12/bits/stl_map.h" 3 26629: void 26629: insert(std::initializer_list __list) 26629: { insert(__list.begin(), __list.end()); } 26629: # 906 "/usr/include/c++/12/bits/stl_map.h" 3 26629: iterator 26629: 26629: insert(const_iterator __position, const value_type& __x) 26629: 26629: 26629: 26629: { return _M_t._M_insert_unique_(__position, __x); } 26629: 26629: 26629: 26629: 26629: iterator 26629: insert(const_iterator __position, value_type&& __x) 26629: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 26629: 26629: template 26629: __enable_if_t::value, iterator> 26629: insert(const_iterator __position, _Pair&& __x) 26629: { 26629: return _M_t._M_emplace_hint_unique(__position, 26629: std::forward<_Pair>(__x)); 26629: } 26629: # 939 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: void 26629: insert(_InputIterator __first, _InputIterator __last) 26629: { _M_t._M_insert_range_unique(__first, __last); } 26629: # 964 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: pair 26629: insert_or_assign(const key_type& __k, _Obj&& __obj) 26629: { 26629: iterator __i = lower_bound(__k); 26629: if (__i == end() || key_comp()(__k, (*__i).first)) 26629: { 26629: __i = emplace_hint(__i, std::piecewise_construct, 26629: std::forward_as_tuple(__k), 26629: std::forward_as_tuple( 26629: std::forward<_Obj>(__obj))); 26629: return {__i, true}; 26629: } 26629: (*__i).second = std::forward<_Obj>(__obj); 26629: return {__i, false}; 26629: } 26629: 26629: 26629: template 26629: pair 26629: insert_or_assign(key_type&& __k, _Obj&& __obj) 26629: { 26629: iterator __i = lower_bound(__k); 26629: if (__i == end() || key_comp()(__k, (*__i).first)) 26629: { 26629: __i = emplace_hint(__i, std::piecewise_construct, 26629: std::forward_as_tuple(std::move(__k)), 26629: std::forward_as_tuple( 26629: std::forward<_Obj>(__obj))); 26629: return {__i, true}; 26629: } 26629: (*__i).second = std::forward<_Obj>(__obj); 26629: return {__i, false}; 26629: } 26629: # 1019 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: iterator 26629: insert_or_assign(const_iterator __hint, 26629: const key_type& __k, _Obj&& __obj) 26629: { 26629: iterator __i; 26629: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 26629: if (__true_hint.second) 26629: { 26629: return emplace_hint(iterator(__true_hint.second), 26629: std::piecewise_construct, 26629: std::forward_as_tuple(__k), 26629: std::forward_as_tuple( 26629: std::forward<_Obj>(__obj))); 26629: } 26629: __i = iterator(__true_hint.first); 26629: (*__i).second = std::forward<_Obj>(__obj); 26629: return __i; 26629: } 26629: 26629: 26629: template 26629: iterator 26629: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 26629: { 26629: iterator __i; 26629: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 26629: if (__true_hint.second) 26629: { 26629: return emplace_hint(iterator(__true_hint.second), 26629: std::piecewise_construct, 26629: std::forward_as_tuple(std::move(__k)), 26629: std::forward_as_tuple( 26629: std::forward<_Obj>(__obj))); 26629: } 26629: __i = iterator(__true_hint.first); 26629: (*__i).second = std::forward<_Obj>(__obj); 26629: return __i; 26629: } 26629: # 1078 "/usr/include/c++/12/bits/stl_map.h" 3 26629: iterator 26629: erase(const_iterator __position) 26629: { return _M_t.erase(__position); } 26629: 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iterator 26629: erase(iterator __position) 26629: { return _M_t.erase(__position); } 26629: # 1115 "/usr/include/c++/12/bits/stl_map.h" 3 26629: size_type 26629: erase(const key_type& __x) 26629: { return _M_t.erase(__x); } 26629: # 1135 "/usr/include/c++/12/bits/stl_map.h" 3 26629: iterator 26629: erase(const_iterator __first, const_iterator __last) 26629: { return _M_t.erase(__first, __last); } 26629: # 1169 "/usr/include/c++/12/bits/stl_map.h" 3 26629: void 26629: swap(map& __x) 26629: noexcept(__is_nothrow_swappable<_Compare>::value) 26629: { _M_t.swap(__x._M_t); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: clear() noexcept 26629: { _M_t.clear(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: key_compare 26629: key_comp() const 26629: { return _M_t.key_comp(); } 26629: 26629: 26629: 26629: 26629: 26629: value_compare 26629: value_comp() const 26629: { return value_compare(_M_t.key_comp()); } 26629: # 1216 "/usr/include/c++/12/bits/stl_map.h" 3 26629: iterator 26629: find(const key_type& __x) 26629: { return _M_t.find(__x); } 26629: 26629: 26629: template 26629: auto 26629: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 26629: { return _M_t._M_find_tr(__x); } 26629: # 1241 "/usr/include/c++/12/bits/stl_map.h" 3 26629: const_iterator 26629: find(const key_type& __x) const 26629: { return _M_t.find(__x); } 26629: 26629: 26629: template 26629: auto 26629: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 26629: { return _M_t._M_find_tr(__x); } 26629: # 1262 "/usr/include/c++/12/bits/stl_map.h" 3 26629: size_type 26629: count(const key_type& __x) const 26629: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 26629: 26629: 26629: template 26629: auto 26629: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 26629: { return _M_t._M_count_tr(__x); } 26629: # 1305 "/usr/include/c++/12/bits/stl_map.h" 3 26629: iterator 26629: lower_bound(const key_type& __x) 26629: { return _M_t.lower_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: lower_bound(const _Kt& __x) 26629: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 26629: { return iterator(_M_t._M_lower_bound_tr(__x)); } 26629: # 1330 "/usr/include/c++/12/bits/stl_map.h" 3 26629: const_iterator 26629: lower_bound(const key_type& __x) const 26629: { return _M_t.lower_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: lower_bound(const _Kt& __x) const 26629: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 26629: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 26629: # 1350 "/usr/include/c++/12/bits/stl_map.h" 3 26629: iterator 26629: upper_bound(const key_type& __x) 26629: { return _M_t.upper_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: upper_bound(const _Kt& __x) 26629: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 26629: { return iterator(_M_t._M_upper_bound_tr(__x)); } 26629: # 1370 "/usr/include/c++/12/bits/stl_map.h" 3 26629: const_iterator 26629: upper_bound(const key_type& __x) const 26629: { return _M_t.upper_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: upper_bound(const _Kt& __x) const 26629: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 26629: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 26629: # 1399 "/usr/include/c++/12/bits/stl_map.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) 26629: { return _M_t.equal_range(__x); } 26629: 26629: 26629: template 26629: auto 26629: equal_range(const _Kt& __x) 26629: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 26629: { return pair(_M_t._M_equal_range_tr(__x)); } 26629: # 1428 "/usr/include/c++/12/bits/stl_map.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) const 26629: { return _M_t.equal_range(__x); } 26629: 26629: 26629: template 26629: auto 26629: equal_range(const _Kt& __x) const 26629: -> decltype(pair( 26629: _M_t._M_equal_range_tr(__x))) 26629: { 26629: return pair( 26629: _M_t._M_equal_range_tr(__x)); 26629: } 26629: 26629: 26629: 26629: template 26629: friend bool 26629: operator==(const map<_K1, _T1, _C1, _A1>&, 26629: const map<_K1, _T1, _C1, _A1>&); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: friend bool 26629: operator<(const map<_K1, _T1, _C1, _A1>&, 26629: const map<_K1, _T1, _C1, _A1>&); 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: template>, 26629: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireNotAllocator<_Compare>, 26629: typename = _RequireAllocator<_Allocator>> 26629: map(_InputIterator, _InputIterator, 26629: _Compare = _Compare(), _Allocator = _Allocator()) 26629: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 26629: _Compare, _Allocator>; 26629: 26629: template, 26629: typename _Allocator = allocator>, 26629: typename = _RequireNotAllocator<_Compare>, 26629: typename = _RequireAllocator<_Allocator>> 26629: map(initializer_list>, 26629: _Compare = _Compare(), _Allocator = _Allocator()) 26629: -> map<_Key, _Tp, _Compare, _Allocator>; 26629: 26629: template , 26629: typename = _RequireAllocator<_Allocator>> 26629: map(_InputIterator, _InputIterator, _Allocator) 26629: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 26629: less<__iter_key_t<_InputIterator>>, _Allocator>; 26629: 26629: template> 26629: map(initializer_list>, _Allocator) 26629: -> map<_Key, _Tp, less<_Key>, _Allocator>; 26629: # 1509 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: inline bool 26629: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const map<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return __x._M_t == __y._M_t; } 26629: # 1547 "/usr/include/c++/12/bits/stl_map.h" 3 26629: template 26629: inline bool 26629: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const map<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return __x._M_t < __y._M_t; } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const map<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: inline bool 26629: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const map<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return __y < __x; } 26629: 26629: 26629: template 26629: inline bool 26629: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const map<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return !(__y < __x); } 26629: 26629: 26629: template 26629: inline bool 26629: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const map<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 26629: map<_Key, _Tp, _Compare, _Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct 26629: _Rb_tree_merge_helper, 26629: _Cmp2> 26629: { 26629: private: 26629: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; 26629: 26629: static auto& 26629: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 26629: { return __map._M_t; } 26629: 26629: static auto& 26629: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 26629: { return __map._M_t; } 26629: }; 26629: 26629: 26629: 26629: } 26629: # 62 "/usr/include/c++/12/map" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_multimap.h" 1 3 26629: # 64 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: class map; 26629: # 96 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: template , 26629: typename _Alloc = std::allocator > > 26629: class multimap 26629: { 26629: public: 26629: typedef _Key key_type; 26629: typedef _Tp mapped_type; 26629: typedef std::pair value_type; 26629: typedef _Compare key_compare; 26629: typedef _Alloc allocator_type; 26629: 26629: private: 26629: # 127 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: public: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: class value_compare 26629: : public std::binary_function 26629: { 26629: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 26629: protected: 26629: _Compare comp; 26629: 26629: value_compare(_Compare __c) 26629: : comp(__c) { } 26629: 26629: public: 26629: bool operator()(const value_type& __x, const value_type& __y) const 26629: { return comp(__x.first, __y.first); } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: private: 26629: 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind::other _Pair_alloc_type; 26629: 26629: typedef _Rb_tree, 26629: key_compare, _Pair_alloc_type> _Rep_type; 26629: 26629: _Rep_type _M_t; 26629: 26629: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 26629: 26629: public: 26629: 26629: 26629: typedef typename _Alloc_traits::pointer pointer; 26629: typedef typename _Alloc_traits::const_pointer const_pointer; 26629: typedef typename _Alloc_traits::reference reference; 26629: typedef typename _Alloc_traits::const_reference const_reference; 26629: typedef typename _Rep_type::iterator iterator; 26629: typedef typename _Rep_type::const_iterator const_iterator; 26629: typedef typename _Rep_type::size_type size_type; 26629: typedef typename _Rep_type::difference_type difference_type; 26629: typedef typename _Rep_type::reverse_iterator reverse_iterator; 26629: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 26629: 26629: 26629: using node_type = typename _Rep_type::node_type; 26629: # 185 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: multimap() = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: multimap(const _Compare& __comp, 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Pair_alloc_type(__a)) { } 26629: # 207 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: multimap(const multimap&) = default; 26629: # 216 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: multimap(multimap&&) = default; 26629: # 228 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: multimap(initializer_list __l, 26629: const _Compare& __comp = _Compare(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Pair_alloc_type(__a)) 26629: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 26629: 26629: 26629: explicit 26629: multimap(const allocator_type& __a) 26629: : _M_t(_Pair_alloc_type(__a)) { } 26629: 26629: 26629: multimap(const multimap& __m, 26629: const __type_identity_t& __a) 26629: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 26629: 26629: 26629: multimap(multimap&& __m, const __type_identity_t& __a) 26629: noexcept(is_nothrow_copy_constructible<_Compare>::value 26629: && _Alloc_traits::_S_always_equal()) 26629: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 26629: 26629: 26629: multimap(initializer_list __l, const allocator_type& __a) 26629: : _M_t(_Pair_alloc_type(__a)) 26629: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 26629: 26629: 26629: template 26629: multimap(_InputIterator __first, _InputIterator __last, 26629: const allocator_type& __a) 26629: : _M_t(_Pair_alloc_type(__a)) 26629: { _M_t._M_insert_range_equal(__first, __last); } 26629: # 272 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: template 26629: multimap(_InputIterator __first, _InputIterator __last) 26629: : _M_t() 26629: { _M_t._M_insert_range_equal(__first, __last); } 26629: # 288 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: template 26629: multimap(_InputIterator __first, _InputIterator __last, 26629: const _Compare& __comp, 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Pair_alloc_type(__a)) 26629: { _M_t._M_insert_range_equal(__first, __last); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ~multimap() = default; 26629: # 317 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: multimap& 26629: operator=(const multimap&) = default; 26629: 26629: 26629: multimap& 26629: operator=(multimap&&) = default; 26629: # 335 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: multimap& 26629: operator=(initializer_list __l) 26629: { 26629: _M_t._M_assign_equal(__l.begin(), __l.end()); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return allocator_type(_M_t.get_allocator()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: begin() noexcept 26629: { return _M_t.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: begin() const noexcept 26629: { return _M_t.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: end() noexcept 26629: { return _M_t.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: end() const noexcept 26629: { return _M_t.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: rbegin() noexcept 26629: { return _M_t.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: rbegin() const noexcept 26629: { return _M_t.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: rend() noexcept 26629: { return _M_t.rend(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: rend() const noexcept 26629: { return _M_t.rend(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: cbegin() const noexcept 26629: { return _M_t.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_iterator 26629: cend() const noexcept 26629: { return _M_t.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: crbegin() const noexcept 26629: { return _M_t.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const_reverse_iterator 26629: crend() const noexcept 26629: { return _M_t.rend(); } 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return _M_t.empty(); } 26629: 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_t.size(); } 26629: 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return _M_t.max_size(); } 26629: # 493 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: template 26629: iterator 26629: emplace(_Args&&... __args) 26629: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 26629: # 520 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: template 26629: iterator 26629: emplace_hint(const_iterator __pos, _Args&&... __args) 26629: { 26629: return _M_t._M_emplace_hint_equal(__pos, 26629: std::forward<_Args>(__args)...); 26629: } 26629: # 542 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: iterator 26629: insert(const value_type& __x) 26629: { return _M_t._M_insert_equal(__x); } 26629: 26629: 26629: 26629: 26629: iterator 26629: insert(value_type&& __x) 26629: { return _M_t._M_insert_equal(std::move(__x)); } 26629: 26629: template 26629: __enable_if_t::value, iterator> 26629: insert(_Pair&& __x) 26629: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 26629: # 581 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: iterator 26629: 26629: insert(const_iterator __position, const value_type& __x) 26629: 26629: 26629: 26629: { return _M_t._M_insert_equal_(__position, __x); } 26629: 26629: 26629: 26629: 26629: iterator 26629: insert(const_iterator __position, value_type&& __x) 26629: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 26629: 26629: template 26629: __enable_if_t::value, iterator> 26629: insert(const_iterator __position, _Pair&& __x) 26629: { 26629: return _M_t._M_emplace_hint_equal(__position, 26629: std::forward<_Pair>(__x)); 26629: } 26629: # 615 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: template 26629: void 26629: insert(_InputIterator __first, _InputIterator __last) 26629: { _M_t._M_insert_range_equal(__first, __last); } 26629: # 628 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: void 26629: insert(initializer_list __l) 26629: { this->insert(__l.begin(), __l.end()); } 26629: 26629: 26629: 26629: 26629: node_type 26629: extract(const_iterator __pos) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 26629: return _M_t.extract(__pos); 26629: } 26629: 26629: 26629: node_type 26629: extract(const key_type& __x) 26629: { return _M_t.extract(__x); } 26629: 26629: 26629: iterator 26629: insert(node_type&& __nh) 26629: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 26629: 26629: 26629: iterator 26629: insert(const_iterator __hint, node_type&& __nh) 26629: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 26629: 26629: template 26629: friend struct std::_Rb_tree_merge_helper; 26629: 26629: template 26629: void 26629: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Rb_tree_merge_helper; 26629: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: template 26629: void 26629: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Rb_tree_merge_helper; 26629: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 26629: { merge(__source); } 26629: # 705 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: iterator 26629: erase(const_iterator __position) 26629: { return _M_t.erase(__position); } 26629: 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iterator 26629: erase(iterator __position) 26629: { return _M_t.erase(__position); } 26629: # 742 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: size_type 26629: erase(const key_type& __x) 26629: { return _M_t.erase(__x); } 26629: # 763 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: iterator 26629: erase(const_iterator __first, const_iterator __last) 26629: { return _M_t.erase(__first, __last); } 26629: # 800 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: void 26629: swap(multimap& __x) 26629: noexcept(__is_nothrow_swappable<_Compare>::value) 26629: { _M_t.swap(__x._M_t); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: clear() noexcept 26629: { _M_t.clear(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: key_compare 26629: key_comp() const 26629: { return _M_t.key_comp(); } 26629: 26629: 26629: 26629: 26629: 26629: value_compare 26629: value_comp() const 26629: { return value_compare(_M_t.key_comp()); } 26629: # 846 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: iterator 26629: find(const key_type& __x) 26629: { return _M_t.find(__x); } 26629: 26629: 26629: template 26629: auto 26629: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 26629: { return _M_t._M_find_tr(__x); } 26629: # 870 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: const_iterator 26629: find(const key_type& __x) const 26629: { return _M_t.find(__x); } 26629: 26629: 26629: template 26629: auto 26629: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 26629: { return _M_t._M_find_tr(__x); } 26629: # 888 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: size_type 26629: count(const key_type& __x) const 26629: { return _M_t.count(__x); } 26629: 26629: 26629: template 26629: auto 26629: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 26629: { return _M_t._M_count_tr(__x); } 26629: # 931 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: iterator 26629: lower_bound(const key_type& __x) 26629: { return _M_t.lower_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: lower_bound(const _Kt& __x) 26629: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 26629: { return iterator(_M_t._M_lower_bound_tr(__x)); } 26629: # 956 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: const_iterator 26629: lower_bound(const key_type& __x) const 26629: { return _M_t.lower_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: lower_bound(const _Kt& __x) const 26629: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 26629: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 26629: # 976 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: iterator 26629: upper_bound(const key_type& __x) 26629: { return _M_t.upper_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: upper_bound(const _Kt& __x) 26629: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 26629: { return iterator(_M_t._M_upper_bound_tr(__x)); } 26629: # 996 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: const_iterator 26629: upper_bound(const key_type& __x) const 26629: { return _M_t.upper_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: upper_bound(const _Kt& __x) const 26629: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 26629: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 26629: # 1023 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) 26629: { return _M_t.equal_range(__x); } 26629: 26629: 26629: template 26629: auto 26629: equal_range(const _Kt& __x) 26629: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 26629: { return pair(_M_t._M_equal_range_tr(__x)); } 26629: # 1050 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) const 26629: { return _M_t.equal_range(__x); } 26629: 26629: 26629: template 26629: auto 26629: equal_range(const _Kt& __x) const 26629: -> decltype(pair( 26629: _M_t._M_equal_range_tr(__x))) 26629: { 26629: return pair( 26629: _M_t._M_equal_range_tr(__x)); 26629: } 26629: 26629: 26629: 26629: template 26629: friend bool 26629: operator==(const multimap<_K1, _T1, _C1, _A1>&, 26629: const multimap<_K1, _T1, _C1, _A1>&); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: friend bool 26629: operator<(const multimap<_K1, _T1, _C1, _A1>&, 26629: const multimap<_K1, _T1, _C1, _A1>&); 26629: 26629: }; 26629: 26629: 26629: 26629: template>, 26629: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireNotAllocator<_Compare>, 26629: typename = _RequireAllocator<_Allocator>> 26629: multimap(_InputIterator, _InputIterator, 26629: _Compare = _Compare(), _Allocator = _Allocator()) 26629: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 26629: _Compare, _Allocator>; 26629: 26629: template, 26629: typename _Allocator = allocator>, 26629: typename = _RequireNotAllocator<_Compare>, 26629: typename = _RequireAllocator<_Allocator>> 26629: multimap(initializer_list>, 26629: _Compare = _Compare(), _Allocator = _Allocator()) 26629: -> multimap<_Key, _Tp, _Compare, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: multimap(_InputIterator, _InputIterator, _Allocator) 26629: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 26629: less<__iter_key_t<_InputIterator>>, _Allocator>; 26629: 26629: template> 26629: multimap(initializer_list>, _Allocator) 26629: -> multimap<_Key, _Tp, less<_Key>, _Allocator>; 26629: # 1130 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: template 26629: inline bool 26629: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return __x._M_t == __y._M_t; } 26629: # 1168 "/usr/include/c++/12/bits/stl_multimap.h" 3 26629: template 26629: inline bool 26629: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return __x._M_t < __y._M_t; } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: inline bool 26629: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return __y < __x; } 26629: 26629: 26629: template 26629: inline bool 26629: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return !(__y < __x); } 26629: 26629: 26629: template 26629: inline bool 26629: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 26629: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 26629: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct 26629: _Rb_tree_merge_helper, 26629: _Cmp2> 26629: { 26629: private: 26629: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; 26629: 26629: static auto& 26629: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 26629: { return __map._M_t; } 26629: 26629: static auto& 26629: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 26629: { return __map._M_t; } 26629: }; 26629: 26629: 26629: 26629: } 26629: # 63 "/usr/include/c++/12/map" 2 3 26629: # 71 "/usr/include/c++/12/map" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace pmr 26629: { 26629: template class polymorphic_allocator; 26629: template> 26629: using map 26629: = std::map<_Key, _Tp, _Cmp, 26629: polymorphic_allocator>>; 26629: template> 26629: using multimap 26629: = std::multimap<_Key, _Tp, _Cmp, 26629: polymorphic_allocator>>; 26629: } 26629: 26629: } 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 2 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 26629: namespace rocksdb { 26629: # 30 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 26629: enum Tickers : uint32_t { 26629: 26629: 26629: 26629: 26629: BLOCK_CACHE_MISS = 0, 26629: 26629: 26629: 26629: 26629: BLOCK_CACHE_HIT, 26629: 26629: BLOCK_CACHE_ADD, 26629: 26629: BLOCK_CACHE_ADD_FAILURES, 26629: 26629: BLOCK_CACHE_INDEX_MISS, 26629: 26629: BLOCK_CACHE_INDEX_HIT, 26629: 26629: BLOCK_CACHE_INDEX_ADD, 26629: 26629: BLOCK_CACHE_INDEX_BYTES_INSERT, 26629: 26629: BLOCK_CACHE_INDEX_BYTES_EVICT, 26629: 26629: BLOCK_CACHE_FILTER_MISS, 26629: 26629: BLOCK_CACHE_FILTER_HIT, 26629: 26629: BLOCK_CACHE_FILTER_ADD, 26629: 26629: BLOCK_CACHE_FILTER_BYTES_INSERT, 26629: 26629: BLOCK_CACHE_FILTER_BYTES_EVICT, 26629: 26629: BLOCK_CACHE_DATA_MISS, 26629: 26629: BLOCK_CACHE_DATA_HIT, 26629: 26629: BLOCK_CACHE_DATA_ADD, 26629: 26629: BLOCK_CACHE_DATA_BYTES_INSERT, 26629: 26629: BLOCK_CACHE_BYTES_READ, 26629: 26629: BLOCK_CACHE_BYTES_WRITE, 26629: 26629: 26629: BLOOM_FILTER_USEFUL, 26629: 26629: BLOOM_FILTER_FULL_POSITIVE, 26629: 26629: 26629: BLOOM_FILTER_FULL_TRUE_POSITIVE, 26629: 26629: BLOOM_FILTER_MICROS, 26629: 26629: 26629: PERSISTENT_CACHE_HIT, 26629: 26629: PERSISTENT_CACHE_MISS, 26629: 26629: 26629: SIM_BLOCK_CACHE_HIT, 26629: 26629: SIM_BLOCK_CACHE_MISS, 26629: 26629: 26629: MEMTABLE_HIT, 26629: 26629: MEMTABLE_MISS, 26629: 26629: 26629: GET_HIT_L0, 26629: 26629: GET_HIT_L1, 26629: 26629: GET_HIT_L2_AND_UP, 26629: 26629: 26629: 26629: 26629: 26629: COMPACTION_KEY_DROP_NEWER_ENTRY, 26629: 26629: COMPACTION_KEY_DROP_OBSOLETE, 26629: COMPACTION_KEY_DROP_RANGE_DEL, 26629: COMPACTION_KEY_DROP_USER, 26629: COMPACTION_RANGE_DEL_DROP_OBSOLETE, 26629: 26629: COMPACTION_OPTIMIZED_DEL_DROP_OBSOLETE, 26629: 26629: COMPACTION_CANCELLED, 26629: 26629: 26629: NUMBER_KEYS_WRITTEN, 26629: 26629: NUMBER_KEYS_READ, 26629: 26629: NUMBER_KEYS_UPDATED, 26629: 26629: 26629: BYTES_WRITTEN, 26629: 26629: 26629: 26629: 26629: BYTES_READ, 26629: 26629: NUMBER_DB_SEEK, 26629: NUMBER_DB_NEXT, 26629: NUMBER_DB_PREV, 26629: 26629: NUMBER_DB_SEEK_FOUND, 26629: NUMBER_DB_NEXT_FOUND, 26629: NUMBER_DB_PREV_FOUND, 26629: 26629: 26629: ITER_BYTES_READ, 26629: NO_FILE_CLOSES, 26629: NO_FILE_OPENS, 26629: NO_FILE_ERRORS, 26629: 26629: STALL_L0_SLOWDOWN_MICROS, 26629: 26629: STALL_MEMTABLE_COMPACTION_MICROS, 26629: 26629: STALL_L0_NUM_FILES_MICROS, 26629: 26629: STALL_MICROS, 26629: 26629: 26629: DB_MUTEX_WAIT_MICROS, 26629: RATE_LIMIT_DELAY_MILLIS, 26629: 26629: NO_ITERATORS, 26629: 26629: 26629: NUMBER_MULTIGET_CALLS, 26629: NUMBER_MULTIGET_KEYS_READ, 26629: NUMBER_MULTIGET_BYTES_READ, 26629: 26629: 26629: 26629: NUMBER_FILTERED_DELETES, 26629: NUMBER_MERGE_FAILURES, 26629: 26629: 26629: 26629: 26629: BLOOM_FILTER_PREFIX_CHECKED, 26629: BLOOM_FILTER_PREFIX_USEFUL, 26629: 26629: 26629: 26629: NUMBER_OF_RESEEKS_IN_ITERATION, 26629: 26629: 26629: 26629: GET_UPDATES_SINCE_CALLS, 26629: BLOCK_CACHE_COMPRESSED_MISS, 26629: BLOCK_CACHE_COMPRESSED_HIT, 26629: 26629: BLOCK_CACHE_COMPRESSED_ADD, 26629: 26629: BLOCK_CACHE_COMPRESSED_ADD_FAILURES, 26629: WAL_FILE_SYNCED, 26629: WAL_FILE_BYTES, 26629: 26629: 26629: 26629: WRITE_DONE_BY_SELF, 26629: WRITE_DONE_BY_OTHER, 26629: WRITE_TIMEDOUT, 26629: WRITE_WITH_WAL, 26629: COMPACT_READ_BYTES, 26629: COMPACT_WRITE_BYTES, 26629: FLUSH_WRITE_BYTES, 26629: 26629: 26629: COMPACT_READ_BYTES_MARKED, 26629: COMPACT_READ_BYTES_PERIODIC, 26629: COMPACT_READ_BYTES_TTL, 26629: COMPACT_WRITE_BYTES_MARKED, 26629: COMPACT_WRITE_BYTES_PERIODIC, 26629: COMPACT_WRITE_BYTES_TTL, 26629: 26629: 26629: 26629: NUMBER_DIRECT_LOAD_TABLE_PROPERTIES, 26629: NUMBER_SUPERVERSION_ACQUIRES, 26629: NUMBER_SUPERVERSION_RELEASES, 26629: NUMBER_SUPERVERSION_CLEANUPS, 26629: 26629: 26629: NUMBER_BLOCK_COMPRESSED, 26629: NUMBER_BLOCK_DECOMPRESSED, 26629: 26629: NUMBER_BLOCK_NOT_COMPRESSED, 26629: MERGE_OPERATION_TOTAL_TIME, 26629: FILTER_OPERATION_TOTAL_TIME, 26629: 26629: 26629: ROW_CACHE_HIT, 26629: ROW_CACHE_MISS, 26629: 26629: 26629: 26629: 26629: 26629: 26629: READ_AMP_ESTIMATE_USEFUL_BYTES, 26629: READ_AMP_TOTAL_READ_BYTES, 26629: 26629: 26629: NUMBER_RATE_LIMITER_DRAINS, 26629: 26629: 26629: NUMBER_ITER_SKIP, 26629: 26629: 26629: 26629: BLOB_DB_NUM_PUT, 26629: 26629: BLOB_DB_NUM_WRITE, 26629: 26629: BLOB_DB_NUM_GET, 26629: 26629: BLOB_DB_NUM_MULTIGET, 26629: 26629: 26629: BLOB_DB_NUM_SEEK, 26629: 26629: BLOB_DB_NUM_NEXT, 26629: 26629: BLOB_DB_NUM_PREV, 26629: 26629: BLOB_DB_NUM_KEYS_WRITTEN, 26629: 26629: BLOB_DB_NUM_KEYS_READ, 26629: 26629: 26629: BLOB_DB_BYTES_WRITTEN, 26629: 26629: 26629: BLOB_DB_BYTES_READ, 26629: 26629: 26629: BLOB_DB_WRITE_INLINED, 26629: 26629: 26629: BLOB_DB_WRITE_INLINED_TTL, 26629: 26629: 26629: BLOB_DB_WRITE_BLOB, 26629: 26629: 26629: BLOB_DB_WRITE_BLOB_TTL, 26629: 26629: BLOB_DB_BLOB_FILE_BYTES_WRITTEN, 26629: 26629: BLOB_DB_BLOB_FILE_BYTES_READ, 26629: 26629: BLOB_DB_BLOB_FILE_SYNCED, 26629: 26629: 26629: BLOB_DB_BLOB_INDEX_EXPIRED_COUNT, 26629: 26629: 26629: BLOB_DB_BLOB_INDEX_EXPIRED_SIZE, 26629: 26629: 26629: BLOB_DB_BLOB_INDEX_EVICTED_COUNT, 26629: 26629: 26629: BLOB_DB_BLOB_INDEX_EVICTED_SIZE, 26629: 26629: 26629: BLOB_DB_GC_NUM_FILES, 26629: 26629: 26629: BLOB_DB_GC_NUM_NEW_FILES, 26629: 26629: BLOB_DB_GC_FAILURES, 26629: 26629: 26629: BLOB_DB_GC_NUM_KEYS_OVERWRITTEN, 26629: 26629: 26629: BLOB_DB_GC_NUM_KEYS_EXPIRED, 26629: 26629: BLOB_DB_GC_NUM_KEYS_RELOCATED, 26629: 26629: 26629: BLOB_DB_GC_BYTES_OVERWRITTEN, 26629: 26629: 26629: BLOB_DB_GC_BYTES_EXPIRED, 26629: 26629: BLOB_DB_GC_BYTES_RELOCATED, 26629: 26629: 26629: BLOB_DB_FIFO_NUM_FILES_EVICTED, 26629: 26629: 26629: BLOB_DB_FIFO_NUM_KEYS_EVICTED, 26629: 26629: 26629: BLOB_DB_FIFO_BYTES_EVICTED, 26629: 26629: 26629: 26629: 26629: TXN_PREPARE_MUTEX_OVERHEAD, 26629: 26629: TXN_OLD_COMMIT_MAP_MUTEX_OVERHEAD, 26629: 26629: TXN_DUPLICATE_KEY_OVERHEAD, 26629: 26629: TXN_SNAPSHOT_MUTEX_OVERHEAD, 26629: 26629: TXN_GET_TRY_AGAIN, 26629: 26629: 26629: 26629: 26629: NUMBER_MULTIGET_KEYS_FOUND, 26629: 26629: NO_ITERATOR_CREATED, 26629: NO_ITERATOR_DELETED, 26629: 26629: BLOCK_CACHE_COMPRESSION_DICT_MISS, 26629: BLOCK_CACHE_COMPRESSION_DICT_HIT, 26629: BLOCK_CACHE_COMPRESSION_DICT_ADD, 26629: BLOCK_CACHE_COMPRESSION_DICT_BYTES_INSERT, 26629: BLOCK_CACHE_COMPRESSION_DICT_BYTES_EVICT, 26629: 26629: 26629: 26629: BLOCK_CACHE_ADD_REDUNDANT, 26629: 26629: 26629: BLOCK_CACHE_INDEX_ADD_REDUNDANT, 26629: 26629: 26629: BLOCK_CACHE_FILTER_ADD_REDUNDANT, 26629: 26629: 26629: BLOCK_CACHE_DATA_ADD_REDUNDANT, 26629: 26629: 26629: 26629: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT, 26629: 26629: 26629: 26629: FILES_MARKED_TRASH, 26629: 26629: FILES_DELETED_IMMEDIATELY, 26629: 26629: 26629: 26629: ERROR_HANDLER_BG_ERROR_COUNT, 26629: ERROR_HANDLER_BG_IO_ERROR_COUNT, 26629: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT, 26629: ERROR_HANDLER_AUTORESUME_COUNT, 26629: ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT, 26629: ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT, 26629: 26629: 26629: 26629: MEMTABLE_PAYLOAD_BYTES_AT_FLUSH, 26629: 26629: MEMTABLE_GARBAGE_BYTES_AT_FLUSH, 26629: 26629: 26629: SECONDARY_CACHE_HITS, 26629: 26629: 26629: VERIFY_CHECKSUM_READ_BYTES, 26629: 26629: 26629: BACKUP_READ_BYTES, 26629: BACKUP_WRITE_BYTES, 26629: 26629: 26629: REMOTE_COMPACT_READ_BYTES, 26629: REMOTE_COMPACT_WRITE_BYTES, 26629: 26629: 26629: HOT_FILE_READ_BYTES, 26629: WARM_FILE_READ_BYTES, 26629: COLD_FILE_READ_BYTES, 26629: HOT_FILE_READ_COUNT, 26629: WARM_FILE_READ_COUNT, 26629: COLD_FILE_READ_COUNT, 26629: 26629: 26629: LAST_LEVEL_READ_BYTES, 26629: LAST_LEVEL_READ_COUNT, 26629: NON_LAST_LEVEL_READ_BYTES, 26629: NON_LAST_LEVEL_READ_COUNT, 26629: 26629: BLOCK_CHECKSUM_COMPUTE_COUNT, 26629: MULTIGET_COROUTINE_COUNT, 26629: 26629: 26629: 26629: BLOB_DB_CACHE_MISS, 26629: 26629: BLOB_DB_CACHE_HIT, 26629: 26629: BLOB_DB_CACHE_ADD, 26629: 26629: BLOB_DB_CACHE_ADD_FAILURES, 26629: 26629: BLOB_DB_CACHE_BYTES_READ, 26629: 26629: BLOB_DB_CACHE_BYTES_WRITE, 26629: 26629: 26629: READ_ASYNC_MICROS, 26629: 26629: ASYNC_READ_ERROR_COUNT, 26629: 26629: TICKER_ENUM_MAX 26629: }; 26629: 26629: 26629: 26629: extern const std::vector> TickersNameMap; 26629: # 471 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 26629: enum Histograms : uint32_t { 26629: DB_GET = 0, 26629: DB_WRITE, 26629: COMPACTION_TIME, 26629: COMPACTION_CPU_TIME, 26629: SUBCOMPACTION_SETUP_TIME, 26629: TABLE_SYNC_MICROS, 26629: COMPACTION_OUTFILE_SYNC_MICROS, 26629: WAL_FILE_SYNC_MICROS, 26629: MANIFEST_FILE_SYNC_MICROS, 26629: 26629: TABLE_OPEN_IO_MICROS, 26629: DB_MULTIGET, 26629: READ_BLOCK_COMPACTION_MICROS, 26629: READ_BLOCK_GET_MICROS, 26629: WRITE_RAW_BLOCK_MICROS, 26629: STALL_L0_SLOWDOWN_COUNT, 26629: STALL_MEMTABLE_COMPACTION_COUNT, 26629: STALL_L0_NUM_FILES_COUNT, 26629: HARD_RATE_LIMIT_DELAY_COUNT, 26629: SOFT_RATE_LIMIT_DELAY_COUNT, 26629: NUM_FILES_IN_SINGLE_COMPACTION, 26629: DB_SEEK, 26629: WRITE_STALL, 26629: SST_READ_MICROS, 26629: 26629: NUM_SUBCOMPACTIONS_SCHEDULED, 26629: 26629: BYTES_PER_READ, 26629: BYTES_PER_WRITE, 26629: BYTES_PER_MULTIGET, 26629: 26629: 26629: 26629: BYTES_COMPRESSED, 26629: BYTES_DECOMPRESSED, 26629: COMPRESSION_TIMES_NANOS, 26629: DECOMPRESSION_TIMES_NANOS, 26629: 26629: 26629: READ_NUM_MERGE_OPERANDS, 26629: 26629: 26629: 26629: BLOB_DB_KEY_SIZE, 26629: 26629: BLOB_DB_VALUE_SIZE, 26629: 26629: 26629: BLOB_DB_WRITE_MICROS, 26629: 26629: BLOB_DB_GET_MICROS, 26629: 26629: BLOB_DB_MULTIGET_MICROS, 26629: 26629: 26629: BLOB_DB_SEEK_MICROS, 26629: 26629: BLOB_DB_NEXT_MICROS, 26629: 26629: BLOB_DB_PREV_MICROS, 26629: 26629: BLOB_DB_BLOB_FILE_WRITE_MICROS, 26629: 26629: BLOB_DB_BLOB_FILE_READ_MICROS, 26629: 26629: BLOB_DB_BLOB_FILE_SYNC_MICROS, 26629: 26629: BLOB_DB_GC_MICROS, 26629: 26629: BLOB_DB_COMPRESSION_MICROS, 26629: 26629: BLOB_DB_DECOMPRESSION_MICROS, 26629: 26629: FLUSH_TIME, 26629: SST_BATCH_SIZE, 26629: 26629: 26629: 26629: NUM_INDEX_AND_FILTER_BLOCKS_READ_PER_LEVEL, 26629: 26629: 26629: NUM_DATA_BLOCKS_READ_PER_LEVEL, 26629: 26629: NUM_SST_READ_PER_LEVEL, 26629: 26629: 26629: ERROR_HANDLER_AUTORESUME_RETRY_COUNT, 26629: 26629: 26629: ASYNC_READ_BYTES, 26629: POLL_WAIT_MICROS, 26629: 26629: 26629: PREFETCHED_BYTES_DISCARDED, 26629: 26629: 26629: MULTIGET_IO_BATCH_SIZE, 26629: 26629: 26629: NUM_LEVEL_READ_PER_MULTIGET, 26629: 26629: 26629: ASYNC_PREFETCH_ABORT_MICROS, 26629: 26629: HISTOGRAM_ENUM_MAX, 26629: }; 26629: 26629: extern const std::vector> HistogramsNameMap; 26629: 26629: struct HistogramData { 26629: double median; 26629: double percentile95; 26629: double percentile99; 26629: double average; 26629: double standard_deviation; 26629: 26629: 26629: double max = 0.0; 26629: uint64_t count = 0; 26629: uint64_t sum = 0; 26629: double min = 0.0; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: enum StatsLevel : uint8_t { 26629: 26629: kDisableAll, 26629: 26629: kExceptTickers = kDisableAll, 26629: 26629: kExceptHistogramOrTimers, 26629: 26629: kExceptTimers, 26629: 26629: 26629: kExceptDetailedTimers, 26629: 26629: 26629: kExceptTimeForMutex, 26629: 26629: 26629: 26629: kAll, 26629: }; 26629: # 633 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 26629: class Statistics : public Customizable { 26629: public: 26629: ~Statistics() override {} 26629: static const char* Type() { return "Statistics"; } 26629: static Status CreateFromString(const ConfigOptions& opts, 26629: const std::string& value, 26629: std::shared_ptr* result); 26629: 26629: 26629: 26629: const char* Name() const override { return ""; } 26629: virtual uint64_t getTickerCount(uint32_t tickerType) const = 0; 26629: virtual void histogramData(uint32_t type, 26629: HistogramData* const data) const = 0; 26629: virtual std::string getHistogramString(uint32_t ) const { return ""; } 26629: virtual void recordTick(uint32_t tickerType, uint64_t count = 0) = 0; 26629: virtual void setTickerCount(uint32_t tickerType, uint64_t count) = 0; 26629: virtual uint64_t getAndResetTickerCount(uint32_t tickerType) = 0; 26629: virtual void reportTimeToHistogram(uint32_t histogramType, uint64_t time) { 26629: if (get_stats_level() <= StatsLevel::kExceptTimers) { 26629: return; 26629: } 26629: recordInHistogram(histogramType, time); 26629: } 26629: 26629: 26629: 26629: virtual void measureTime(uint32_t , uint64_t ) { 26629: 26629: 26629: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 3 4 26629: (static_cast ( 26629: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 26629: false 26629: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 26629: "false" 26629: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 3 4 26629: , "./include/rocksdb/statistics.h", 662, __extension__ __PRETTY_FUNCTION__)) 26629: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 26629: ; 26629: } 26629: virtual void recordInHistogram(uint32_t histogramType, uint64_t time) { 26629: 26629: 26629: 26629: 26629: measureTime(histogramType, time); 26629: } 26629: 26629: 26629: virtual Status Reset() { return Status::NotSupported("Not implemented"); } 26629: 26629: 26629: using Customizable::ToString; 26629: 26629: 26629: virtual std::string ToString() const { 26629: 26629: return std::string("ToString(): not implemented"); 26629: } 26629: 26629: virtual bool getTickerMap(std::map*) const { 26629: 26629: return false; 26629: } 26629: 26629: 26629: virtual bool HistEnabledForType(uint32_t type) const { 26629: return type < HISTOGRAM_ENUM_MAX; 26629: } 26629: void set_stats_level(StatsLevel sl) { 26629: stats_level_.store(sl, std::memory_order_relaxed); 26629: } 26629: StatsLevel get_stats_level() const { 26629: return stats_level_.load(std::memory_order_relaxed); 26629: } 26629: 26629: private: 26629: std::atomic stats_level_{kExceptDetailedTimers}; 26629: }; 26629: 26629: 26629: std::shared_ptr CreateDBStatistics(); 26629: 26629: } 26629: # 34 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class Cache; 26629: struct ConfigOptions; 26629: class SecondaryCache; 26629: 26629: extern const bool kDefaultToAdaptiveMutex; 26629: 26629: enum CacheMetadataChargePolicy { 26629: 26629: 26629: kDontChargeCacheMetadata, 26629: 26629: 26629: 26629: kFullChargeCacheMetadata 26629: }; 26629: const CacheMetadataChargePolicy kDefaultCacheMetadataChargePolicy = 26629: kFullChargeCacheMetadata; 26629: 26629: 26629: 26629: struct ShardedCacheOptions { 26629: 26629: 26629: 26629: size_t capacity = 0; 26629: 26629: 26629: 26629: 26629: 26629: int num_shard_bits = -1; 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool strict_capacity_limit = false; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: std::shared_ptr memory_allocator; 26629: 26629: 26629: CacheMetadataChargePolicy metadata_charge_policy = 26629: kDefaultCacheMetadataChargePolicy; 26629: 26629: ShardedCacheOptions() {} 26629: ShardedCacheOptions( 26629: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 26629: std::shared_ptr _memory_allocator = nullptr, 26629: CacheMetadataChargePolicy _metadata_charge_policy = 26629: kDefaultCacheMetadataChargePolicy) 26629: : capacity(_capacity), 26629: num_shard_bits(_num_shard_bits), 26629: strict_capacity_limit(_strict_capacity_limit), 26629: memory_allocator(std::move(_memory_allocator)), 26629: metadata_charge_policy(_metadata_charge_policy) {} 26629: }; 26629: 26629: struct LRUCacheOptions : public ShardedCacheOptions { 26629: # 127 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: double high_pri_pool_ratio = 0.5; 26629: double low_pri_pool_ratio = 0.0; 26629: 26629: 26629: 26629: 26629: 26629: bool use_adaptive_mutex = kDefaultToAdaptiveMutex; 26629: 26629: 26629: std::shared_ptr secondary_cache; 26629: 26629: LRUCacheOptions() {} 26629: LRUCacheOptions(size_t _capacity, int _num_shard_bits, 26629: bool _strict_capacity_limit, double _high_pri_pool_ratio, 26629: std::shared_ptr _memory_allocator = nullptr, 26629: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 26629: CacheMetadataChargePolicy _metadata_charge_policy = 26629: kDefaultCacheMetadataChargePolicy, 26629: double _low_pri_pool_ratio = 0.0) 26629: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 26629: std::move(_memory_allocator), 26629: _metadata_charge_policy), 26629: high_pri_pool_ratio(_high_pri_pool_ratio), 26629: low_pri_pool_ratio(_low_pri_pool_ratio), 26629: use_adaptive_mutex(_use_adaptive_mutex) {} 26629: }; 26629: # 163 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: extern std::shared_ptr NewLRUCache( 26629: size_t capacity, int num_shard_bits = -1, 26629: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 26629: std::shared_ptr memory_allocator = nullptr, 26629: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 26629: CacheMetadataChargePolicy metadata_charge_policy = 26629: kDefaultCacheMetadataChargePolicy, 26629: double low_pri_pool_ratio = 0.0); 26629: 26629: extern std::shared_ptr NewLRUCache(const LRUCacheOptions& cache_opts); 26629: 26629: 26629: 26629: 26629: 26629: struct CompressedSecondaryCacheOptions : LRUCacheOptions { 26629: 26629: CompressionType compression_type = CompressionType::kLZ4Compression; 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint32_t compress_format_version = 2; 26629: 26629: 26629: 26629: bool enable_custom_split_merge = false; 26629: 26629: CompressedSecondaryCacheOptions() {} 26629: CompressedSecondaryCacheOptions( 26629: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 26629: double _high_pri_pool_ratio, double _low_pri_pool_ratio = 0.0, 26629: std::shared_ptr _memory_allocator = nullptr, 26629: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 26629: CacheMetadataChargePolicy _metadata_charge_policy = 26629: kDefaultCacheMetadataChargePolicy, 26629: CompressionType _compression_type = CompressionType::kLZ4Compression, 26629: uint32_t _compress_format_version = 2, 26629: bool _enable_custom_split_merge = false) 26629: : LRUCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 26629: _high_pri_pool_ratio, std::move(_memory_allocator), 26629: _use_adaptive_mutex, _metadata_charge_policy, 26629: _low_pri_pool_ratio), 26629: compression_type(_compression_type), 26629: compress_format_version(_compress_format_version), 26629: enable_custom_split_merge(_enable_custom_split_merge) {} 26629: }; 26629: 26629: 26629: 26629: extern std::shared_ptr NewCompressedSecondaryCache( 26629: size_t capacity, int num_shard_bits = -1, 26629: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 26629: double low_pri_pool_ratio = 0.0, 26629: std::shared_ptr memory_allocator = nullptr, 26629: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 26629: CacheMetadataChargePolicy metadata_charge_policy = 26629: kDefaultCacheMetadataChargePolicy, 26629: CompressionType compression_type = CompressionType::kLZ4Compression, 26629: uint32_t compress_format_version = 2, 26629: bool enable_custom_split_merge = false); 26629: 26629: extern std::shared_ptr NewCompressedSecondaryCache( 26629: const CompressedSecondaryCacheOptions& opts); 26629: # 237 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: struct HyperClockCacheOptions : public ShardedCacheOptions { 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: size_t estimated_entry_charge; 26629: 26629: HyperClockCacheOptions( 26629: size_t _capacity, size_t _estimated_entry_charge, 26629: int _num_shard_bits = -1, bool _strict_capacity_limit = false, 26629: std::shared_ptr _memory_allocator = nullptr, 26629: CacheMetadataChargePolicy _metadata_charge_policy = 26629: kDefaultCacheMetadataChargePolicy) 26629: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 26629: std::move(_memory_allocator), 26629: _metadata_charge_policy), 26629: estimated_entry_charge(_estimated_entry_charge) {} 26629: 26629: 26629: std::shared_ptr MakeSharedCache() const; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: extern std::shared_ptr NewClockCache( 26629: size_t capacity, int num_shard_bits = -1, 26629: bool strict_capacity_limit = false, 26629: CacheMetadataChargePolicy metadata_charge_policy = 26629: kDefaultCacheMetadataChargePolicy); 26629: 26629: class Cache { 26629: public: 26629: # 306 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: enum class Priority { HIGH, LOW, BOTTOM }; 26629: # 335 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: using SizeCallback = size_t (*)(void* obj); 26629: 26629: 26629: 26629: 26629: 26629: using SaveToCallback = Status (*)(void* from_obj, size_t from_offset, 26629: size_t length, void* out); 26629: 26629: 26629: 26629: 26629: using DeleterFn = void (*)(const Slice& key, void* value); 26629: 26629: 26629: 26629: 26629: struct CacheItemHelper { 26629: SizeCallback size_cb; 26629: SaveToCallback saveto_cb; 26629: DeleterFn del_cb; 26629: 26629: CacheItemHelper() : size_cb(nullptr), saveto_cb(nullptr), del_cb(nullptr) {} 26629: CacheItemHelper(SizeCallback _size_cb, SaveToCallback _saveto_cb, 26629: DeleterFn _del_cb) 26629: : size_cb(_size_cb), saveto_cb(_saveto_cb), del_cb(_del_cb) {} 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: using CreateCallback = std::function; 26629: 26629: Cache(std::shared_ptr allocator = nullptr) 26629: : memory_allocator_(std::move(allocator)) {} 26629: 26629: Cache(const Cache&) = delete; 26629: Cache& operator=(const Cache&) = delete; 26629: # 387 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: static Status CreateFromString(const ConfigOptions& config_options, 26629: const std::string& value, 26629: std::shared_ptr* result); 26629: 26629: 26629: 26629: 26629: 26629: virtual ~Cache() {} 26629: 26629: 26629: struct Handle {}; 26629: 26629: 26629: virtual const char* Name() const = 0; 26629: # 420 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: virtual Status Insert(const Slice& key, void* value, size_t charge, 26629: DeleterFn deleter, Handle** handle = nullptr, 26629: Priority priority = Priority::LOW) = 0; 26629: # 431 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: virtual Handle* Lookup(const Slice& key, Statistics* stats = nullptr) = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual bool Ref(Handle* handle) = 0; 26629: # 450 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: virtual bool Release(Handle* handle, bool erase_if_last_ref = false) = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual void* Value(Handle* handle) = 0; 26629: 26629: 26629: 26629: 26629: virtual void Erase(const Slice& key) = 0; 26629: 26629: 26629: 26629: 26629: virtual uint64_t NewId() = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual void SetCapacity(size_t capacity) = 0; 26629: 26629: 26629: 26629: virtual void SetStrictCapacityLimit(bool strict_capacity_limit) = 0; 26629: 26629: 26629: 26629: virtual bool HasStrictCapacityLimit() const = 0; 26629: 26629: 26629: virtual size_t GetCapacity() const = 0; 26629: 26629: 26629: virtual size_t GetUsage() const = 0; 26629: 26629: 26629: 26629: 26629: virtual size_t GetOccupancyCount() const { return 26629: # 491 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 3 4 26629: (4294967295U) 26629: # 491 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: ; } 26629: 26629: 26629: 26629: 26629: virtual size_t GetTableAddressCount() const { return 0; } 26629: 26629: 26629: virtual size_t GetUsage(Handle* handle) const = 0; 26629: 26629: 26629: virtual size_t GetPinnedUsage() const = 0; 26629: 26629: 26629: virtual size_t GetCharge(Handle* handle) const = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual DeleterFn GetDeleter(Handle* handle) const = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void DisownData() { 26629: 26629: } 26629: 26629: struct ApplyToAllEntriesOptions { 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t average_entries_per_lock = 256; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: virtual void ApplyToAllEntries( 26629: const std::function& callback, 26629: const ApplyToAllEntriesOptions& opts) = 0; 26629: 26629: 26629: virtual void ApplyToAllCacheEntries(void (*callback)(void* value, 26629: size_t charge), 26629: bool ) { 26629: ApplyToAllEntries([callback](const Slice&, void* value, size_t charge, 26629: DeleterFn) { callback(value, charge); }, 26629: {}); 26629: } 26629: 26629: 26629: 26629: virtual void EraseUnRefEntries() = 0; 26629: 26629: virtual std::string GetPrintableOptions() const { return ""; } 26629: 26629: MemoryAllocator* memory_allocator() const { return memory_allocator_.get(); } 26629: # 599 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: virtual Status Insert(const Slice& key, void* value, 26629: const CacheItemHelper* helper, size_t charge, 26629: Handle** handle = nullptr, 26629: Priority priority = Priority::LOW) { 26629: if (!helper) { 26629: return Status::InvalidArgument(); 26629: } 26629: return Insert(key, value, charge, helper->del_cb, handle, priority); 26629: } 26629: # 649 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: virtual Handle* Lookup(const Slice& key, const CacheItemHelper* , 26629: const CreateCallback& , 26629: Priority , bool , 26629: Statistics* stats = nullptr) { 26629: return Lookup(key, stats); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual bool Release(Handle* handle, bool , 26629: bool erase_if_last_ref) { 26629: return Release(handle, erase_if_last_ref); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual bool IsReady(Handle* ) { return true; } 26629: # 679 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 26629: virtual void Wait(Handle* ) {} 26629: 26629: 26629: 26629: 26629: virtual void WaitAll(std::vector& ) {} 26629: 26629: private: 26629: std::shared_ptr memory_allocator_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: enum class CacheEntryRole { 26629: 26629: kDataBlock, 26629: 26629: kFilterBlock, 26629: 26629: kFilterMetaBlock, 26629: 26629: kDeprecatedFilterBlock, 26629: 26629: kIndexBlock, 26629: 26629: kOtherBlock, 26629: 26629: kWriteBuffer, 26629: 26629: 26629: kCompressionDictionaryBuildingBuffer, 26629: 26629: 26629: kFilterConstruction, 26629: 26629: kBlockBasedTableReader, 26629: 26629: kFileMetadata, 26629: 26629: kBlobValue, 26629: 26629: 26629: kBlobCache, 26629: 26629: 26629: kMisc, 26629: }; 26629: constexpr uint32_t kNumCacheEntryRoles = 26629: static_cast(CacheEntryRole::kMisc) + 1; 26629: 26629: 26629: const std::string& GetCacheEntryRoleName(CacheEntryRole); 26629: 26629: 26629: 26629: 26629: struct BlockCacheEntryStatsMapKeys { 26629: static const std::string& CacheId(); 26629: static const std::string& CacheCapacityBytes(); 26629: static const std::string& LastCollectionDurationSeconds(); 26629: static const std::string& LastCollectionAgeSeconds(); 26629: 26629: static std::string EntryCount(CacheEntryRole); 26629: static std::string UsedBytes(CacheEntryRole); 26629: static std::string UsedPercent(CacheEntryRole); 26629: }; 26629: 26629: } 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 1 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/stdlib.h" 1 3 26629: # 36 "/usr/include/c++/12/stdlib.h" 3 26629: # 1 "/usr/include/c++/12/cstdlib" 1 3 26629: # 39 "/usr/include/c++/12/cstdlib" 3 26629: 26629: # 40 "/usr/include/c++/12/cstdlib" 3 26629: # 37 "/usr/include/c++/12/stdlib.h" 2 3 26629: 26629: 26629: # 38 "/usr/include/c++/12/stdlib.h" 3 26629: using std::abort; 26629: using std::atexit; 26629: using std::exit; 26629: 26629: 26629: using std::at_quick_exit; 26629: 26629: 26629: using std::quick_exit; 26629: 26629: 26629: 26629: 26629: using std::div_t; 26629: using std::ldiv_t; 26629: 26629: using std::abs; 26629: using std::atof; 26629: using std::atoi; 26629: using std::atol; 26629: using std::bsearch; 26629: using std::calloc; 26629: using std::div; 26629: using std::free; 26629: using std::getenv; 26629: using std::labs; 26629: using std::ldiv; 26629: using std::malloc; 26629: 26629: using std::mblen; 26629: using std::mbstowcs; 26629: using std::mbtowc; 26629: 26629: using std::qsort; 26629: using std::rand; 26629: using std::realloc; 26629: using std::srand; 26629: using std::strtod; 26629: using std::strtol; 26629: using std::strtoul; 26629: using std::system; 26629: 26629: using std::wcstombs; 26629: using std::wctomb; 26629: # 40 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 2 26629: 26629: 26629: # 1 "/usr/include/c++/12/stdexcept" 1 3 26629: # 36 "/usr/include/c++/12/stdexcept" 3 26629: 26629: # 37 "/usr/include/c++/12/stdexcept" 3 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: struct __cow_string 26629: { 26629: union { 26629: const char* _M_p; 26629: char _M_bytes[sizeof(const char*)]; 26629: }; 26629: 26629: __cow_string(); 26629: __cow_string(const std::string&); 26629: __cow_string(const char*, size_t); 26629: __cow_string(const __cow_string&) noexcept; 26629: __cow_string& operator=(const __cow_string&) noexcept; 26629: ~__cow_string(); 26629: 26629: __cow_string(__cow_string&&) noexcept; 26629: __cow_string& operator=(__cow_string&&) noexcept; 26629: 26629: }; 26629: 26629: typedef basic_string __sso_string; 26629: # 113 "/usr/include/c++/12/stdexcept" 3 26629: class logic_error : public exception 26629: { 26629: __cow_string _M_msg; 26629: 26629: public: 26629: 26629: explicit 26629: logic_error(const string& __arg) ; 26629: 26629: 26629: explicit 26629: logic_error(const char*) ; 26629: 26629: logic_error(logic_error&&) noexcept; 26629: logic_error& operator=(logic_error&&) noexcept; 26629: 26629: 26629: 26629: logic_error(const logic_error&) noexcept; 26629: logic_error& operator=(const logic_error&) noexcept; 26629: 26629: 26629: 26629: 26629: 26629: virtual ~logic_error() noexcept; 26629: 26629: 26629: 26629: virtual const char* 26629: what() const noexcept; 26629: 26629: 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: 26629: class domain_error : public logic_error 26629: { 26629: public: 26629: explicit domain_error(const string& __arg) ; 26629: 26629: explicit domain_error(const char*) ; 26629: domain_error(const domain_error&) = default; 26629: domain_error& operator=(const domain_error&) = default; 26629: domain_error(domain_error&&) = default; 26629: domain_error& operator=(domain_error&&) = default; 26629: 26629: virtual ~domain_error() noexcept; 26629: }; 26629: 26629: 26629: class invalid_argument : public logic_error 26629: { 26629: public: 26629: explicit invalid_argument(const string& __arg) ; 26629: 26629: explicit invalid_argument(const char*) ; 26629: invalid_argument(const invalid_argument&) = default; 26629: invalid_argument& operator=(const invalid_argument&) = default; 26629: invalid_argument(invalid_argument&&) = default; 26629: invalid_argument& operator=(invalid_argument&&) = default; 26629: 26629: virtual ~invalid_argument() noexcept; 26629: }; 26629: 26629: 26629: 26629: class length_error : public logic_error 26629: { 26629: public: 26629: explicit length_error(const string& __arg) ; 26629: 26629: explicit length_error(const char*) ; 26629: length_error(const length_error&) = default; 26629: length_error& operator=(const length_error&) = default; 26629: length_error(length_error&&) = default; 26629: length_error& operator=(length_error&&) = default; 26629: 26629: virtual ~length_error() noexcept; 26629: }; 26629: 26629: 26629: 26629: class out_of_range : public logic_error 26629: { 26629: public: 26629: explicit out_of_range(const string& __arg) ; 26629: 26629: explicit out_of_range(const char*) ; 26629: out_of_range(const out_of_range&) = default; 26629: out_of_range& operator=(const out_of_range&) = default; 26629: out_of_range(out_of_range&&) = default; 26629: out_of_range& operator=(out_of_range&&) = default; 26629: 26629: virtual ~out_of_range() noexcept; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class runtime_error : public exception 26629: { 26629: __cow_string _M_msg; 26629: 26629: public: 26629: 26629: explicit 26629: runtime_error(const string& __arg) ; 26629: 26629: 26629: explicit 26629: runtime_error(const char*) ; 26629: 26629: runtime_error(runtime_error&&) noexcept; 26629: runtime_error& operator=(runtime_error&&) noexcept; 26629: 26629: 26629: 26629: runtime_error(const runtime_error&) noexcept; 26629: runtime_error& operator=(const runtime_error&) noexcept; 26629: 26629: 26629: 26629: 26629: 26629: virtual ~runtime_error() noexcept; 26629: 26629: 26629: 26629: virtual const char* 26629: what() const noexcept; 26629: 26629: 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: class range_error : public runtime_error 26629: { 26629: public: 26629: explicit range_error(const string& __arg) ; 26629: 26629: explicit range_error(const char*) ; 26629: range_error(const range_error&) = default; 26629: range_error& operator=(const range_error&) = default; 26629: range_error(range_error&&) = default; 26629: range_error& operator=(range_error&&) = default; 26629: 26629: virtual ~range_error() noexcept; 26629: }; 26629: 26629: 26629: class overflow_error : public runtime_error 26629: { 26629: public: 26629: explicit overflow_error(const string& __arg) ; 26629: 26629: explicit overflow_error(const char*) ; 26629: overflow_error(const overflow_error&) = default; 26629: overflow_error& operator=(const overflow_error&) = default; 26629: overflow_error(overflow_error&&) = default; 26629: overflow_error& operator=(overflow_error&&) = default; 26629: 26629: virtual ~overflow_error() noexcept; 26629: }; 26629: 26629: 26629: class underflow_error : public runtime_error 26629: { 26629: public: 26629: explicit underflow_error(const string& __arg) ; 26629: 26629: explicit underflow_error(const char*) ; 26629: underflow_error(const underflow_error&) = default; 26629: underflow_error& operator=(const underflow_error&) = default; 26629: underflow_error(underflow_error&&) = default; 26629: underflow_error& operator=(underflow_error&&) = default; 26629: 26629: virtual ~underflow_error() noexcept; 26629: }; 26629: 26629: 26629: 26629: 26629: } 26629: # 43 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 2 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 48 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 26629: namespace rocksdb { 26629: 26629: class Arena; 26629: class Allocator; 26629: class LookupKey; 26629: class SliceTransform; 26629: class Logger; 26629: struct DBOptions; 26629: 26629: using KeyHandle = void*; 26629: 26629: extern Slice GetLengthPrefixedSlice(const char* data); 26629: 26629: class MemTableRep { 26629: public: 26629: 26629: 26629: class KeyComparator { 26629: public: 26629: using DecodedType = rocksdb::Slice; 26629: 26629: virtual DecodedType decode_key(const char* key) const { 26629: 26629: 26629: return GetLengthPrefixedSlice(key); 26629: } 26629: 26629: 26629: 26629: virtual int operator()(const char* prefix_len_key1, 26629: const char* prefix_len_key2) const = 0; 26629: 26629: virtual int operator()(const char* prefix_len_key, 26629: const Slice& key) const = 0; 26629: 26629: virtual ~KeyComparator() {} 26629: }; 26629: 26629: explicit MemTableRep(Allocator* allocator) : allocator_(allocator) {} 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual KeyHandle Allocate(const size_t len, char** buf); 26629: 26629: 26629: 26629: 26629: 26629: virtual void Insert(KeyHandle handle) = 0; 26629: 26629: 26629: 26629: 26629: virtual bool InsertKey(KeyHandle handle) { 26629: Insert(handle); 26629: return true; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void InsertWithHint(KeyHandle handle, void** ) { 26629: 26629: Insert(handle); 26629: } 26629: 26629: 26629: 26629: 26629: virtual bool InsertKeyWithHint(KeyHandle handle, void** hint) { 26629: InsertWithHint(handle, hint); 26629: return true; 26629: } 26629: # 137 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 26629: virtual void InsertWithHintConcurrently(KeyHandle handle, void** ) { 26629: 26629: InsertConcurrently(handle); 26629: } 26629: 26629: 26629: 26629: 26629: virtual bool InsertKeyWithHintConcurrently(KeyHandle handle, void** hint) { 26629: InsertWithHintConcurrently(handle, hint); 26629: return true; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void InsertConcurrently(KeyHandle handle); 26629: 26629: 26629: 26629: 26629: virtual bool InsertKeyConcurrently(KeyHandle handle) { 26629: InsertConcurrently(handle); 26629: return true; 26629: } 26629: 26629: 26629: virtual bool Contains(const char* key) const = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual void MarkReadOnly() {} 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void MarkFlushed() {} 26629: # 194 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 26629: virtual void Get(const LookupKey& k, void* callback_args, 26629: bool (*callback_func)(void* arg, const char* entry)); 26629: 26629: virtual uint64_t ApproximateNumEntries(const Slice& , 26629: const Slice& ) { 26629: return 0; 26629: } 26629: 26629: 26629: 26629: virtual void UniqueRandomSample(const uint64_t num_entries, 26629: const uint64_t target_sample_size, 26629: std::unordered_set* entries) { 26629: (void)num_entries; 26629: (void)target_sample_size; 26629: (void)entries; 26629: 26629: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 3 4 26629: (static_cast ( 26629: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 26629: false 26629: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 26629: "false" 26629: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 3 4 26629: , "./include/rocksdb/memtablerep.h", 210, __extension__ __PRETTY_FUNCTION__)) 26629: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 26629: ; 26629: } 26629: 26629: 26629: 26629: virtual size_t ApproximateMemoryUsage() = 0; 26629: 26629: virtual ~MemTableRep() {} 26629: 26629: 26629: class Iterator { 26629: public: 26629: 26629: 26629: 26629: virtual ~Iterator() {} 26629: 26629: 26629: virtual bool Valid() const = 0; 26629: 26629: 26629: 26629: virtual const char* key() const = 0; 26629: 26629: 26629: 26629: virtual void Next() = 0; 26629: 26629: 26629: 26629: virtual void Prev() = 0; 26629: 26629: 26629: virtual void Seek(const Slice& internal_key, const char* memtable_key) = 0; 26629: 26629: 26629: virtual void SeekForPrev(const Slice& internal_key, 26629: const char* memtable_key) = 0; 26629: 26629: virtual void RandomSeek() {} 26629: 26629: 26629: 26629: virtual void SeekToFirst() = 0; 26629: 26629: 26629: 26629: virtual void SeekToLast() = 0; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Iterator* GetIterator(Arena* arena = nullptr) = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Iterator* GetDynamicPrefixIterator(Arena* arena = nullptr) { 26629: return GetIterator(arena); 26629: } 26629: 26629: 26629: 26629: virtual bool IsMergeOperatorSupported() const { return true; } 26629: 26629: 26629: 26629: virtual bool IsSnapshotSupported() const { return true; } 26629: 26629: protected: 26629: 26629: 26629: virtual Slice UserKey(const char* key) const; 26629: 26629: Allocator* allocator_; 26629: }; 26629: 26629: 26629: 26629: class MemTableRepFactory : public Customizable { 26629: public: 26629: ~MemTableRepFactory() override {} 26629: 26629: static const char* Type() { return "MemTableRepFactory"; } 26629: static Status CreateFromString(const ConfigOptions& config_options, 26629: const std::string& id, 26629: std::unique_ptr* factory); 26629: static Status CreateFromString(const ConfigOptions& config_options, 26629: const std::string& id, 26629: std::shared_ptr* factory); 26629: 26629: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 26629: Allocator*, const SliceTransform*, 26629: Logger* logger) = 0; 26629: virtual MemTableRep* CreateMemTableRep( 26629: const MemTableRep::KeyComparator& key_cmp, Allocator* allocator, 26629: const SliceTransform* slice_transform, Logger* logger, 26629: uint32_t ) { 26629: return CreateMemTableRep(key_cmp, allocator, slice_transform, logger); 26629: } 26629: 26629: const char* Name() const override = 0; 26629: 26629: 26629: 26629: virtual bool IsInsertConcurrentlySupported() const { return false; } 26629: 26629: 26629: 26629: 26629: 26629: virtual bool CanHandleDuplicatedKey() const { return false; } 26629: }; 26629: # 337 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 26629: class SkipListFactory : public MemTableRepFactory { 26629: public: 26629: explicit SkipListFactory(size_t lookahead = 0); 26629: 26629: 26629: static const char* kClassName() { return "SkipListFactory"; } 26629: static const char* kNickName() { return "skip_list"; } 26629: virtual const char* Name() const override { return kClassName(); } 26629: virtual const char* NickName() const override { return kNickName(); } 26629: std::string GetId() const override; 26629: 26629: 26629: using MemTableRepFactory::CreateMemTableRep; 26629: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 26629: Allocator*, const SliceTransform*, 26629: Logger* logger) override; 26629: 26629: bool IsInsertConcurrentlySupported() const override { return true; } 26629: 26629: bool CanHandleDuplicatedKey() const override { return true; } 26629: 26629: private: 26629: size_t lookahead_; 26629: }; 26629: # 371 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 26629: class VectorRepFactory : public MemTableRepFactory { 26629: size_t count_; 26629: 26629: public: 26629: explicit VectorRepFactory(size_t count = 0); 26629: 26629: 26629: static const char* kClassName() { return "VectorRepFactory"; } 26629: static const char* kNickName() { return "vector"; } 26629: const char* Name() const override { return kClassName(); } 26629: const char* NickName() const override { return kNickName(); } 26629: 26629: 26629: using MemTableRepFactory::CreateMemTableRep; 26629: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 26629: Allocator*, const SliceTransform*, 26629: Logger* logger) override; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern MemTableRepFactory* NewHashSkipListRepFactory( 26629: size_t bucket_count = 1000000, int32_t skiplist_height = 4, 26629: int32_t skiplist_branching_factor = 4); 26629: # 416 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 26629: extern MemTableRepFactory* NewHashLinkListRepFactory( 26629: size_t bucket_count = 50000, size_t huge_page_tlb_size = 0, 26629: int bucket_entries_logging_threshold = 4096, 26629: bool if_log_bucket_dist_when_flash = true, 26629: uint32_t threshold_use_skiplist = 256); 26629: 26629: 26629: } 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/climits" 1 3 26629: # 39 "/usr/include/c++/12/climits" 3 26629: 26629: # 40 "/usr/include/c++/12/climits" 3 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 1 3 4 26629: # 34 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/syslimits.h" 1 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 1 3 4 26629: # 203 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 3 4 26629: # 1 "/usr/include/limits.h" 1 3 4 26629: # 26 "/usr/include/limits.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 26629: # 27 "/usr/include/limits.h" 2 3 4 26629: # 195 "/usr/include/limits.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 1 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 26629: # 28 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 26629: # 161 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 1 3 4 26629: # 38 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 3 4 26629: # 1 "/usr/include/linux/limits.h" 1 3 4 26629: # 39 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 2 3 4 26629: # 162 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 26629: # 196 "/usr/include/limits.h" 2 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix2_lim.h" 1 3 4 26629: # 200 "/usr/include/limits.h" 2 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 1 3 4 26629: # 64 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio_lim.h" 1 3 4 26629: # 65 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 2 3 4 26629: # 204 "/usr/include/limits.h" 2 3 4 26629: # 204 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 2 3 4 26629: # 8 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/syslimits.h" 2 3 4 26629: # 35 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 2 3 4 26629: # 43 "/usr/include/c++/12/climits" 2 3 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 2 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: enum CompactionStopStyle { 26629: kCompactionStopStyleSimilarSize, 26629: kCompactionStopStyleTotalSize 26629: }; 26629: 26629: class CompactionOptionsUniversal { 26629: public: 26629: 26629: 26629: 26629: unsigned int size_ratio; 26629: 26629: 26629: unsigned int min_merge_width; 26629: 26629: 26629: unsigned int max_merge_width; 26629: # 48 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 26629: unsigned int max_size_amplification_percent; 26629: # 66 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 26629: int compression_size_percent; 26629: 26629: 26629: 26629: CompactionStopStyle stop_style; 26629: 26629: 26629: 26629: 26629: bool allow_trivial_move; 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool incremental; 26629: 26629: 26629: CompactionOptionsUniversal() 26629: : size_ratio(1), 26629: min_merge_width(2), 26629: max_merge_width( 26629: # 88 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 3 4 26629: (0x7fffffff * 2U + 1U) 26629: # 88 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 26629: ), 26629: max_size_amplification_percent(200), 26629: compression_size_percent(-1), 26629: stop_style(kCompactionStopStyleTotalSize), 26629: allow_trivial_move(false), 26629: incremental(false) {} 26629: }; 26629: 26629: } 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: class SliceTransform; 26629: class TablePropertiesCollectorFactory; 26629: class TableFactory; 26629: struct Options; 26629: 26629: enum CompactionStyle : char { 26629: 26629: kCompactionStyleLevel = 0x0, 26629: 26629: 26629: kCompactionStyleUniversal = 0x1, 26629: 26629: 26629: kCompactionStyleFIFO = 0x2, 26629: 26629: 26629: 26629: kCompactionStyleNone = 0x3, 26629: }; 26629: 26629: 26629: 26629: 26629: enum CompactionPri : char { 26629: 26629: kByCompensatedSize = 0x0, 26629: 26629: 26629: kOldestLargestSeqFirst = 0x1, 26629: 26629: 26629: 26629: kOldestSmallestSeqFirst = 0x2, 26629: 26629: 26629: 26629: kMinOverlappingRatio = 0x3, 26629: 26629: 26629: 26629: 26629: kRoundRobin = 0x4, 26629: }; 26629: 26629: struct CompactionOptionsFIFO { 26629: 26629: 26629: 26629: uint64_t max_table_files_size; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool allow_compaction = false; 26629: 26629: 26629: 26629: uint64_t age_for_warm = 0; 26629: 26629: CompactionOptionsFIFO() : max_table_files_size(1 * 1024 * 1024 * 1024) {} 26629: CompactionOptionsFIFO(uint64_t _max_table_files_size, bool _allow_compaction) 26629: : max_table_files_size(_max_table_files_size), 26629: allow_compaction(_allow_compaction) {} 26629: }; 26629: 26629: 26629: struct CompressionOptions { 26629: 26629: 26629: 26629: 26629: 26629: 26629: const static int kDefaultCompressionLevel = 32767; 26629: 26629: int window_bits; 26629: int level; 26629: int strategy; 26629: # 125 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint32_t max_dict_bytes; 26629: # 134 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint32_t zstd_max_train_bytes; 26629: # 149 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint32_t parallel_threads; 26629: # 160 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool enabled; 26629: # 181 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint64_t max_dict_buffer_bytes; 26629: # 195 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool use_zstd_dict_trainer; 26629: 26629: CompressionOptions() 26629: : window_bits(-14), 26629: level(kDefaultCompressionLevel), 26629: strategy(0), 26629: max_dict_bytes(0), 26629: zstd_max_train_bytes(0), 26629: parallel_threads(1), 26629: enabled(false), 26629: max_dict_buffer_bytes(0), 26629: use_zstd_dict_trainer(true) {} 26629: CompressionOptions(int wbits, int _lev, int _strategy, 26629: uint32_t _max_dict_bytes, uint32_t _zstd_max_train_bytes, 26629: uint32_t _parallel_threads, bool _enabled, 26629: uint64_t _max_dict_buffer_bytes, 26629: bool _use_zstd_dict_trainer) 26629: : window_bits(wbits), 26629: level(_lev), 26629: strategy(_strategy), 26629: max_dict_bytes(_max_dict_bytes), 26629: zstd_max_train_bytes(_zstd_max_train_bytes), 26629: parallel_threads(_parallel_threads), 26629: enabled(_enabled), 26629: max_dict_buffer_bytes(_max_dict_buffer_bytes), 26629: use_zstd_dict_trainer(_use_zstd_dict_trainer) {} 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: enum class Temperature : uint8_t { 26629: kUnknown = 0, 26629: kHot = 0x04, 26629: kWarm = 0x08, 26629: kCold = 0x0C, 26629: kLastTemperature, 26629: }; 26629: 26629: 26629: 26629: 26629: enum class CacheTier : uint8_t { 26629: kVolatileTier = 0, 26629: kNonVolatileBlockTier = 0x01, 26629: }; 26629: 26629: enum UpdateStatus { 26629: UPDATE_FAILED = 0, 26629: UPDATED_INPLACE = 1, 26629: UPDATED = 2, 26629: }; 26629: 26629: enum class PrepopulateBlobCache : uint8_t { 26629: kDisable = 0x0, 26629: kFlushOnly = 0x1, 26629: }; 26629: 26629: struct AdvancedColumnFamilyOptions { 26629: # 266 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: int max_write_buffer_number = 2; 26629: # 278 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: int min_write_buffer_number_to_merge = 1; 26629: # 287 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: int max_write_buffer_number_to_maintain = 0; 26629: # 334 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: int64_t max_write_buffer_size_to_maintain = 0; 26629: # 348 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool inplace_update_support = false; 26629: 26629: 26629: 26629: 26629: 26629: size_t inplace_update_num_locks = 10000; 26629: # 371 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: double experimental_mempurge_threshold = 0.0; 26629: # 414 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: UpdateStatus (*inplace_callback)(char* existing_value, 26629: uint32_t* existing_value_size, 26629: Slice delta_value, 26629: std::string* merged_value) = nullptr; 26629: # 433 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: double memtable_prefix_bloom_size_ratio = 0.0; 26629: # 442 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool memtable_whole_key_filtering = false; 26629: # 454 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: size_t memtable_huge_page_size = 0; 26629: # 475 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: std::shared_ptr 26629: memtable_insert_with_hint_prefix_extractor = nullptr; 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint32_t bloom_locality = 0; 26629: # 501 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: size_t arena_block_size = 0; 26629: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: std::vector compression_per_level; 26629: 26629: 26629: int num_levels = 7; 26629: # 544 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: int level0_slowdown_writes_trigger = 20; 26629: 26629: 26629: 26629: 26629: 26629: 26629: int level0_stop_writes_trigger = 36; 26629: # 565 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint64_t target_file_size_base = 64 * 1048576; 26629: 26629: 26629: 26629: 26629: 26629: int target_file_size_multiplier = 1; 26629: # 652 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool level_compaction_dynamic_level_bytes = false; 26629: # 661 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool level_compaction_dynamic_file_size = true; 26629: 26629: 26629: 26629: 26629: double max_bytes_for_level_multiplier = 10; 26629: # 675 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: std::vector max_bytes_for_level_multiplier_additional = 26629: std::vector(num_levels, 1); 26629: # 685 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint64_t max_compaction_bytes = 0; 26629: # 696 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool ignore_max_compaction_bytes_for_input = true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t soft_pending_compaction_bytes_limit = 64 * 1073741824ull; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t hard_pending_compaction_bytes_limit = 256 * 1073741824ull; 26629: 26629: 26629: CompactionStyle compaction_style = kCompactionStyleLevel; 26629: 26629: 26629: 26629: 26629: CompactionPri compaction_pri = kMinOverlappingRatio; 26629: 26629: 26629: 26629: 26629: 26629: 26629: CompactionOptionsUniversal compaction_options_universal; 26629: 26629: 26629: 26629: 26629: 26629: 26629: CompactionOptionsFIFO compaction_options_fifo; 26629: # 744 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint64_t max_sequential_skip_in_iterations = 8; 26629: 26629: 26629: 26629: 26629: std::shared_ptr memtable_factory = 26629: std::shared_ptr(new SkipListFactory); 26629: # 769 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: using TablePropertiesCollectorFactories = 26629: std::vector>; 26629: TablePropertiesCollectorFactories table_properties_collector_factories; 26629: # 784 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: size_t max_successive_merges = 0; 26629: # 800 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool optimize_filters_for_hits = false; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool check_flush_compaction_key_order = true; 26629: # 817 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool paranoid_file_checks = false; 26629: # 827 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool force_consistency_checks = true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool report_bg_io_stats = false; 26629: # 856 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint64_t ttl = 0xfffffffffffffffe; 26629: # 888 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint64_t periodic_compaction_seconds = 0xfffffffffffffffe; 26629: 26629: 26629: 26629: 26629: 26629: uint64_t sample_for_compression = 0; 26629: # 909 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: Temperature bottommost_temperature = Temperature::kUnknown; 26629: Temperature last_level_temperature = Temperature::kUnknown; 26629: # 927 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint64_t preclude_last_level_data_seconds = 0; 26629: # 950 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint64_t preserve_internal_time_seconds = 0; 26629: # 964 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool enable_blob_files = false; 26629: # 976 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint64_t min_blob_size = 0; 26629: # 985 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint64_t blob_file_size = 1ULL << 28; 26629: # 994 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: CompressionType blob_compression_type = kNoCompression; 26629: # 1006 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: bool enable_blob_garbage_collection = false; 26629: # 1017 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: double blob_garbage_collection_age_cutoff = 0.25; 26629: # 1030 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: double blob_garbage_collection_force_threshold = 1.0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t blob_compaction_readahead_size = 0; 26629: # 1052 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: int blob_file_starting_level = 0; 26629: # 1062 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: std::shared_ptr blob_cache = nullptr; 26629: # 1073 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: PrepopulateBlobCache prepopulate_blob_cache = PrepopulateBlobCache::kDisable; 26629: # 1088 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 26629: uint32_t memtable_protection_bytes_per_key = 0; 26629: 26629: 26629: AdvancedColumnFamilyOptions(); 26629: 26629: explicit AdvancedColumnFamilyOptions(const Options& options); 26629: 26629: 26629: }; 26629: 26629: } 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 2 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: template 26629: class SmallEnumSet { 26629: public: 26629: SmallEnumSet() : state_(0) {} 26629: 26629: ~SmallEnumSet() {} 26629: 26629: 26629: 26629: bool Add(const ENUM_TYPE value) { 26629: static_assert(MAX_VALUE <= 63, "Size currently limited to 64"); 26629: 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 26629: (static_cast ( 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 26629: value >= 0 && value <= MAX_VALUE 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 26629: "value >= 0 && value <= MAX_VALUE" 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 26629: , "./include/rocksdb/data_structure.h", 32, __extension__ __PRETTY_FUNCTION__)) 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 26629: ; 26629: uint64_t old_state = state_; 26629: uint64_t tmp = 1; 26629: state_ |= (tmp << value); 26629: return old_state != state_; 26629: } 26629: 26629: 26629: bool Contains(const ENUM_TYPE value) { 26629: static_assert(MAX_VALUE <= 63, "Size currently limited to 64"); 26629: 26629: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 26629: (static_cast ( 26629: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 26629: value >= 0 && value <= MAX_VALUE 26629: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 26629: "value >= 0 && value <= MAX_VALUE" 26629: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 26629: , "./include/rocksdb/data_structure.h", 42, __extension__ __PRETTY_FUNCTION__)) 26629: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 26629: ; 26629: uint64_t tmp = 1; 26629: return state_ & (tmp << value); 26629: } 26629: 26629: private: 26629: uint64_t state_; 26629: }; 26629: 26629: } 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 1 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cstdarg" 1 3 26629: # 39 "/usr/include/c++/12/cstdarg" 3 26629: 26629: # 40 "/usr/include/c++/12/cstdarg" 3 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdarg.h" 1 3 4 26629: # 44 "/usr/include/c++/12/cstdarg" 2 3 26629: # 53 "/usr/include/c++/12/cstdarg" 3 26629: 26629: # 53 "/usr/include/c++/12/cstdarg" 3 26629: namespace std 26629: { 26629: using ::va_list; 26629: } 26629: # 22 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 2 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/functor_wrapper.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/functor_wrapper.h" 26629: namespace rocksdb { 26629: 26629: namespace detail { 26629: template 26629: struct IndexSequence {}; 26629: 26629: template 26629: struct IndexSequenceHelper 26629: : public IndexSequenceHelper {}; 26629: 26629: template 26629: struct IndexSequenceHelper<0U, Next...> { 26629: using type = IndexSequence; 26629: }; 26629: 26629: template 26629: using make_index_sequence = typename IndexSequenceHelper::type; 26629: 26629: template 26629: void call(Function f, Tuple t, IndexSequence) { 26629: f(std::get(t)...); 26629: } 26629: 26629: template 26629: void call(Function f, Tuple t) { 26629: static constexpr auto size = std::tuple_size::value; 26629: call(f, t, make_index_sequence{}); 26629: } 26629: } 26629: 26629: template 26629: class FunctorWrapper { 26629: public: 26629: explicit FunctorWrapper(std::function functor, Args &&...args) 26629: : functor_(std::move(functor)), args_(std::forward(args)...) {} 26629: 26629: void invoke() { detail::call(functor_, args_); } 26629: 26629: private: 26629: std::function functor_; 26629: std::tuple args_; 26629: }; 26629: } 26629: # 30 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/thread_status.h" 1 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/thread_status.h" 26629: 26629: # 29 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/thread_status.h" 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: template 26629: struct constexpr_max { 26629: static const int result = (A > B) ? A : B; 26629: }; 26629: 26629: 26629: 26629: 26629: struct ThreadStatus { 26629: 26629: enum ThreadType : int { 26629: HIGH_PRIORITY = 0, 26629: LOW_PRIORITY, 26629: USER, 26629: BOTTOM_PRIORITY, 26629: NUM_THREAD_TYPES 26629: }; 26629: 26629: 26629: 26629: 26629: enum OperationType : int { 26629: OP_UNKNOWN = 0, 26629: OP_COMPACTION, 26629: OP_FLUSH, 26629: NUM_OP_TYPES 26629: }; 26629: 26629: enum OperationStage : int { 26629: STAGE_UNKNOWN = 0, 26629: STAGE_FLUSH_RUN, 26629: STAGE_FLUSH_WRITE_L0, 26629: STAGE_COMPACTION_PREPARE, 26629: STAGE_COMPACTION_RUN, 26629: STAGE_COMPACTION_PROCESS_KV, 26629: STAGE_COMPACTION_INSTALL, 26629: STAGE_COMPACTION_SYNC_FILE, 26629: STAGE_PICK_MEMTABLES_TO_FLUSH, 26629: STAGE_MEMTABLE_ROLLBACK, 26629: STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 26629: NUM_OP_STAGES 26629: }; 26629: 26629: enum CompactionPropertyType : int { 26629: COMPACTION_JOB_ID = 0, 26629: COMPACTION_INPUT_OUTPUT_LEVEL, 26629: COMPACTION_PROP_FLAGS, 26629: COMPACTION_TOTAL_INPUT_BYTES, 26629: COMPACTION_BYTES_READ, 26629: COMPACTION_BYTES_WRITTEN, 26629: NUM_COMPACTION_PROPERTIES 26629: }; 26629: 26629: enum FlushPropertyType : int { 26629: FLUSH_JOB_ID = 0, 26629: FLUSH_BYTES_MEMTABLES, 26629: FLUSH_BYTES_WRITTEN, 26629: NUM_FLUSH_PROPERTIES 26629: }; 26629: 26629: 26629: 26629: static const int kNumOperationProperties = 26629: constexpr_max::result; 26629: 26629: 26629: 26629: 26629: enum StateType : int { 26629: STATE_UNKNOWN = 0, 26629: STATE_MUTEX_WAIT = 1, 26629: NUM_STATE_TYPES 26629: }; 26629: 26629: ThreadStatus(const uint64_t _id, const ThreadType _thread_type, 26629: const std::string& _db_name, const std::string& _cf_name, 26629: const OperationType _operation_type, 26629: const uint64_t _op_elapsed_micros, 26629: const OperationStage _operation_stage, 26629: const uint64_t _op_props[], const StateType _state_type) 26629: : thread_id(_id), 26629: thread_type(_thread_type), 26629: db_name(_db_name), 26629: cf_name(_cf_name), 26629: operation_type(_operation_type), 26629: op_elapsed_micros(_op_elapsed_micros), 26629: operation_stage(_operation_stage), 26629: state_type(_state_type) { 26629: for (int i = 0; i < kNumOperationProperties; ++i) { 26629: op_properties[i] = _op_props[i]; 26629: } 26629: } 26629: 26629: 26629: const uint64_t thread_id; 26629: 26629: 26629: 26629: const ThreadType thread_type; 26629: 26629: 26629: 26629: 26629: const std::string db_name; 26629: 26629: 26629: 26629: 26629: const std::string cf_name; 26629: 26629: 26629: const OperationType operation_type; 26629: 26629: 26629: const uint64_t op_elapsed_micros; 26629: 26629: 26629: 26629: const OperationStage operation_stage; 26629: 26629: 26629: 26629: 26629: uint64_t op_properties[kNumOperationProperties]; 26629: 26629: 26629: const StateType state_type; 26629: 26629: 26629: 26629: 26629: static std::string GetThreadTypeName(ThreadType thread_type); 26629: 26629: 26629: static const std::string& GetOperationName(OperationType op_type); 26629: 26629: static const std::string MicrosToString(uint64_t op_elapsed_time); 26629: 26629: 26629: static const std::string& GetOperationStageName(OperationStage stage); 26629: 26629: 26629: 26629: static const std::string& GetOperationPropertyName(OperationType op_type, 26629: int i); 26629: 26629: 26629: 26629: static std::map InterpretOperationProperties( 26629: OperationType op_type, const uint64_t* op_properties); 26629: 26629: 26629: static const std::string& GetStateName(StateType state_type); 26629: }; 26629: 26629: } 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 2 26629: # 47 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: namespace rocksdb { 26629: 26629: class DynamicLibrary; 26629: class FileLock; 26629: class Logger; 26629: class RandomAccessFile; 26629: class SequentialFile; 26629: class Slice; 26629: struct DataVerificationInfo; 26629: class WritableFile; 26629: class RandomRWFile; 26629: class MemoryMappedFileBuffer; 26629: class Directory; 26629: struct DBOptions; 26629: struct ImmutableDBOptions; 26629: struct MutableDBOptions; 26629: class RateLimiter; 26629: class ThreadStatusUpdater; 26629: struct ThreadStatus; 26629: class FileSystem; 26629: class SystemClock; 26629: struct ConfigOptions; 26629: 26629: const size_t kDefaultPageSize = 4 * 1024; 26629: 26629: enum class CpuPriority { 26629: kIdle = 0, 26629: kLow = 1, 26629: kNormal = 2, 26629: kHigh = 3, 26629: }; 26629: 26629: 26629: struct EnvOptions { 26629: 26629: EnvOptions(); 26629: 26629: 26629: explicit EnvOptions(const DBOptions& options); 26629: 26629: 26629: 26629: bool use_mmap_reads = false; 26629: 26629: 26629: bool use_mmap_writes = true; 26629: 26629: 26629: bool use_direct_reads = false; 26629: 26629: 26629: bool use_direct_writes = false; 26629: 26629: 26629: bool allow_fallocate = true; 26629: 26629: 26629: bool set_fd_cloexec = true; 26629: 26629: 26629: 26629: 26629: 26629: uint64_t bytes_per_sync = 0; 26629: # 127 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: bool strict_bytes_per_sync = false; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool fallocate_with_keep_size = true; 26629: 26629: 26629: size_t compaction_readahead_size = 0; 26629: 26629: 26629: size_t random_access_max_buffer_size = 0; 26629: 26629: 26629: size_t writable_file_max_buffer_size = 1024 * 1024; 26629: 26629: 26629: RateLimiter* rate_limiter = nullptr; 26629: }; 26629: 26629: 26629: 26629: 26629: class Env : public Customizable { 26629: public: 26629: static const char* kDefaultName() { return "DefaultEnv"; } 26629: struct FileAttributes { 26629: 26629: std::string name; 26629: 26629: 26629: uint64_t size_bytes; 26629: }; 26629: 26629: Env(); 26629: 26629: 26629: explicit Env(const std::shared_ptr& fs); 26629: Env(const std::shared_ptr& fs, 26629: const std::shared_ptr& clock); 26629: 26629: Env(const Env&) = delete; 26629: void operator=(const Env&) = delete; 26629: 26629: ~Env() override; 26629: 26629: static const char* Type() { return "Environment"; } 26629: 26629: 26629: 26629: const char* Name() const override { return ""; } 26629: 26629: 26629: 26629: 26629: static Status LoadEnv(const std::string& value, Env** result); 26629: 26629: 26629: 26629: 26629: static Status LoadEnv(const std::string& value, Env** result, 26629: std::shared_ptr* guard); 26629: # 206 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: static Status CreateFromString(const ConfigOptions& config_options, 26629: const std::string& value, Env** result); 26629: static Status CreateFromString(const ConfigOptions& config_options, 26629: const std::string& value, Env** result, 26629: std::shared_ptr* guard); 26629: 26629: 26629: 26629: 26629: 26629: static Status CreateFromUri(const ConfigOptions& options, 26629: const std::string& env_uri, 26629: const std::string& fs_uri, Env** result, 26629: std::shared_ptr* guard); 26629: 26629: 26629: 26629: 26629: 26629: 26629: static Env* Default(); 26629: 26629: 26629: virtual Status RegisterDbPaths(const std::vector& ) { 26629: return Status::OK(); 26629: } 26629: 26629: virtual Status UnregisterDbPaths(const std::vector& ) { 26629: return Status::OK(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status NewSequentialFile(const std::string& fname, 26629: std::unique_ptr* result, 26629: const EnvOptions& options) = 0; 26629: # 254 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status NewRandomAccessFile(const std::string& fname, 26629: std::unique_ptr* result, 26629: const EnvOptions& options) = 0; 26629: 26629: 26629: enum WriteLifeTimeHint { 26629: WLTH_NOT_SET = 0, 26629: WLTH_NONE, 26629: WLTH_SHORT, 26629: WLTH_MEDIUM, 26629: WLTH_LONG, 26629: WLTH_EXTREME, 26629: }; 26629: # 275 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status NewWritableFile(const std::string& fname, 26629: std::unique_ptr* result, 26629: const EnvOptions& options) = 0; 26629: # 287 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status ReopenWritableFile(const std::string& , 26629: std::unique_ptr* , 26629: const EnvOptions& ) { 26629: return Status::NotSupported("Env::ReopenWritableFile() not supported."); 26629: } 26629: 26629: 26629: virtual Status ReuseWritableFile(const std::string& fname, 26629: const std::string& old_fname, 26629: std::unique_ptr* result, 26629: const EnvOptions& options); 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status NewRandomRWFile(const std::string& , 26629: std::unique_ptr* , 26629: const EnvOptions& ) { 26629: return Status::NotSupported("RandomRWFile is not implemented in this Env"); 26629: } 26629: 26629: 26629: 26629: 26629: virtual Status NewMemoryMappedFileBuffer( 26629: const std::string& , 26629: std::unique_ptr* ) { 26629: return Status::NotSupported( 26629: "MemoryMappedFileBuffer is not implemented in this Env"); 26629: } 26629: # 327 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status NewDirectory(const std::string& name, 26629: std::unique_ptr* result) = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status FileExists(const std::string& fname) = 0; 26629: # 345 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status GetChildren(const std::string& dir, 26629: std::vector* result) = 0; 26629: # 359 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status GetChildrenFileAttributes(const std::string& dir, 26629: std::vector* result); 26629: 26629: 26629: virtual Status DeleteFile(const std::string& fname) = 0; 26629: 26629: 26629: virtual Status Truncate(const std::string& , size_t ) { 26629: return Status::NotSupported("Truncate is not supported for this Env"); 26629: } 26629: 26629: 26629: virtual Status CreateDir(const std::string& dirname) = 0; 26629: 26629: 26629: 26629: virtual Status CreateDirIfMissing(const std::string& dirname) = 0; 26629: 26629: 26629: 26629: 26629: virtual Status DeleteDir(const std::string& dirname) = 0; 26629: 26629: 26629: virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0; 26629: 26629: 26629: virtual Status GetFileModificationTime(const std::string& fname, 26629: uint64_t* file_mtime) = 0; 26629: 26629: virtual Status RenameFile(const std::string& src, 26629: const std::string& target) = 0; 26629: 26629: 26629: virtual Status LinkFile(const std::string& , 26629: const std::string& ) { 26629: return Status::NotSupported("LinkFile is not supported for this Env"); 26629: } 26629: 26629: virtual Status NumFileLinks(const std::string& , 26629: uint64_t* ) { 26629: return Status::NotSupported( 26629: "Getting number of file links is not supported for this Env"); 26629: } 26629: 26629: virtual Status AreFilesSame(const std::string& , 26629: const std::string& , bool* ) { 26629: return Status::NotSupported("AreFilesSame is not supported for this Env"); 26629: } 26629: # 423 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status LockFile(const std::string& fname, FileLock** lock) = 0; 26629: 26629: 26629: 26629: 26629: virtual Status UnlockFile(FileLock* lock) = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status LoadLibrary(const std::string& , 26629: const std::string& , 26629: std::shared_ptr* ) { 26629: return Status::NotSupported("LoadLibrary is not implemented in this Env"); 26629: } 26629: 26629: 26629: enum Priority { BOTTOM, LOW, HIGH, USER, TOTAL }; 26629: 26629: static std::string PriorityToString(Priority priority); 26629: 26629: 26629: enum IOPriority { 26629: IO_LOW = 0, 26629: IO_MID = 1, 26629: IO_HIGH = 2, 26629: IO_USER = 3, 26629: IO_TOTAL = 4 26629: }; 26629: # 466 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual void Schedule(void (*function)(void* arg), void* arg, 26629: Priority pri = LOW, void* tag = nullptr, 26629: void (*unschedFunction)(void* arg) = nullptr) = 0; 26629: 26629: 26629: 26629: virtual int UnSchedule(void* , Priority ) { return 0; } 26629: 26629: 26629: 26629: virtual void StartThread(void (*function)(void* arg), void* arg) = 0; 26629: 26629: 26629: 26629: template 26629: void StartThreadTyped(FunctionT function, Args&&... args) { 26629: using FWType = FunctorWrapper; 26629: StartThread( 26629: [](void* arg) { 26629: auto* functor = static_cast(arg); 26629: functor->invoke(); 26629: delete functor; 26629: }, 26629: new FWType(std::function(function), 26629: std::forward(args)...)); 26629: } 26629: 26629: 26629: virtual void WaitForJoin() {} 26629: 26629: 26629: virtual int ReserveThreads(int , Priority ) { 26629: return 0; 26629: } 26629: 26629: 26629: 26629: virtual int ReleaseThreads(int , Priority ) { 26629: return 0; 26629: } 26629: 26629: 26629: virtual unsigned int GetThreadPoolQueueLen(Priority = LOW) const { 26629: return 0; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual Status GetTestDirectory(std::string* path) = 0; 26629: 26629: 26629: 26629: 26629: virtual Status NewLogger(const std::string& fname, 26629: std::shared_ptr* result); 26629: 26629: 26629: 26629: 26629: virtual uint64_t NowMicros() = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 26629: 26629: 26629: virtual uint64_t NowCPUNanos() { return 0; } 26629: 26629: 26629: virtual void SleepForMicroseconds(int micros) = 0; 26629: 26629: 26629: 26629: virtual Status GetHostName(char* name, uint64_t len) = 0; 26629: 26629: 26629: 26629: 26629: virtual Status GetHostNameString(std::string* result); 26629: 26629: 26629: 26629: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 26629: 26629: 26629: virtual Status GetAbsolutePath(const std::string& db_path, 26629: std::string* output_path) = 0; 26629: 26629: 26629: 26629: 26629: virtual void SetBackgroundThreads(int number, Priority pri = LOW) = 0; 26629: virtual int GetBackgroundThreads(Priority pri = LOW) = 0; 26629: 26629: virtual Status SetAllowNonOwnerAccess(bool ) { 26629: return Status::NotSupported("Env::SetAllowNonOwnerAccess() not supported."); 26629: } 26629: 26629: 26629: 26629: 26629: virtual void IncBackgroundThreadsIfNeeded(int number, Priority pri) = 0; 26629: 26629: 26629: virtual void LowerThreadPoolIOPriority(Priority = LOW) {} 26629: 26629: 26629: virtual Status LowerThreadPoolCPUPriority(Priority , 26629: CpuPriority ) { 26629: return Status::NotSupported( 26629: "Env::LowerThreadPoolCPUPriority(Priority, CpuPriority) not supported"); 26629: } 26629: 26629: 26629: virtual void LowerThreadPoolCPUPriority(Priority = LOW) {} 26629: 26629: 26629: virtual std::string TimeToString(uint64_t time) = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual std::string GenerateUniqueId(); 26629: 26629: 26629: 26629: virtual EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const; 26629: 26629: 26629: 26629: 26629: virtual EnvOptions OptimizeForManifestRead( 26629: const EnvOptions& env_options) const; 26629: 26629: 26629: 26629: 26629: virtual EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 26629: const DBOptions& db_options) const; 26629: 26629: 26629: 26629: virtual EnvOptions OptimizeForManifestWrite( 26629: const EnvOptions& env_options) const; 26629: 26629: 26629: 26629: 26629: virtual EnvOptions OptimizeForCompactionTableWrite( 26629: const EnvOptions& env_options, 26629: const ImmutableDBOptions& immutable_ops) const; 26629: 26629: 26629: 26629: 26629: virtual EnvOptions OptimizeForCompactionTableRead( 26629: const EnvOptions& env_options, 26629: const ImmutableDBOptions& db_options) const; 26629: 26629: 26629: 26629: 26629: virtual EnvOptions OptimizeForBlobFileRead( 26629: const EnvOptions& env_options, 26629: const ImmutableDBOptions& db_options) const; 26629: 26629: 26629: virtual Status GetThreadList(std::vector* ) { 26629: return Status::NotSupported("Env::GetThreadList() not supported."); 26629: } 26629: 26629: 26629: 26629: 26629: virtual ThreadStatusUpdater* GetThreadStatusUpdater() const { 26629: return thread_status_updater_; 26629: } 26629: 26629: 26629: virtual uint64_t GetThreadID() const; 26629: 26629: 26629: 26629: 26629: 26629: virtual Status GetFreeSpace(const std::string& , 26629: uint64_t* ) { 26629: return Status::NotSupported("Env::GetFreeSpace() not supported."); 26629: } 26629: 26629: 26629: virtual Status IsDirectory(const std::string& , bool* ) { 26629: return Status::NotSupported("Env::IsDirectory() not supported."); 26629: } 26629: 26629: virtual void SanitizeEnvOptions(EnvOptions* ) const {} 26629: 26629: 26629: 26629: const std::shared_ptr& GetFileSystem() const; 26629: 26629: 26629: 26629: const std::shared_ptr& GetSystemClock() const; 26629: 26629: 26629: 26629: protected: 26629: 26629: 26629: ThreadStatusUpdater* thread_status_updater_; 26629: 26629: 26629: std::shared_ptr file_system_; 26629: 26629: 26629: std::shared_ptr system_clock_; 26629: 26629: private: 26629: static const size_t kMaxHostNameLen = 256; 26629: }; 26629: 26629: 26629: 26629: 26629: ThreadStatusUpdater* CreateThreadStatusUpdater(); 26629: 26629: 26629: class SequentialFile { 26629: public: 26629: SequentialFile() {} 26629: virtual ~SequentialFile(); 26629: # 717 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status Read(size_t n, Slice* result, char* scratch) = 0; 26629: # 726 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status Skip(uint64_t n) = 0; 26629: 26629: 26629: 26629: virtual bool use_direct_io() const { return false; } 26629: 26629: 26629: 26629: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 26629: 26629: 26629: 26629: 26629: virtual Status InvalidateCache(size_t , size_t ) { 26629: return Status::NotSupported( 26629: "SequentialFile::InvalidateCache not supported."); 26629: } 26629: 26629: 26629: 26629: virtual Status PositionedRead(uint64_t , size_t , 26629: Slice* , char* ) { 26629: return Status::NotSupported( 26629: "SequentialFile::PositionedRead() not supported."); 26629: } 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: struct ReadRequest { 26629: 26629: uint64_t offset; 26629: 26629: 26629: 26629: size_t len; 26629: 26629: 26629: 26629: char* scratch; 26629: 26629: 26629: 26629: Slice result; 26629: 26629: 26629: Status status; 26629: }; 26629: 26629: 26629: class RandomAccessFile { 26629: public: 26629: RandomAccessFile() {} 26629: virtual ~RandomAccessFile(); 26629: # 797 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status Read(uint64_t offset, size_t n, Slice* result, 26629: char* scratch) const = 0; 26629: 26629: 26629: virtual Status Prefetch(uint64_t , size_t ) { 26629: return Status::OK(); 26629: } 26629: # 812 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status MultiRead(ReadRequest* reqs, size_t num_reqs) { 26629: 26629: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 26629: (static_cast ( 26629: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: reqs != nullptr 26629: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: "reqs != nullptr" 26629: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 26629: , "./include/rocksdb/env.h", 813, __extension__ __PRETTY_FUNCTION__)) 26629: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: ; 26629: for (size_t i = 0; i < num_reqs; ++i) { 26629: ReadRequest& req = reqs[i]; 26629: req.status = Read(req.offset, req.len, &req.result, req.scratch); 26629: } 26629: return Status::OK(); 26629: } 26629: # 836 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual size_t GetUniqueId(char* , size_t ) const { 26629: return 0; 26629: 26629: } 26629: 26629: enum AccessPattern { NORMAL, RANDOM, SEQUENTIAL, WILLNEED, DONTNEED }; 26629: 26629: virtual void Hint(AccessPattern ) {} 26629: 26629: 26629: 26629: virtual bool use_direct_io() const { return false; } 26629: 26629: 26629: 26629: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 26629: 26629: 26629: 26629: 26629: virtual Status InvalidateCache(size_t , size_t ) { 26629: return Status::NotSupported( 26629: "RandomAccessFile::InvalidateCache not supported."); 26629: } 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: class WritableFile { 26629: public: 26629: WritableFile() 26629: : last_preallocated_block_(0), 26629: preallocation_block_size_(0), 26629: io_priority_(Env::IO_TOTAL), 26629: write_hint_(Env::WLTH_NOT_SET), 26629: strict_bytes_per_sync_(false) {} 26629: 26629: explicit WritableFile(const EnvOptions& options) 26629: : last_preallocated_block_(0), 26629: preallocation_block_size_(0), 26629: io_priority_(Env::IO_TOTAL), 26629: write_hint_(Env::WLTH_NOT_SET), 26629: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 26629: 26629: WritableFile(const WritableFile&) = delete; 26629: void operator=(const WritableFile&) = delete; 26629: 26629: virtual ~WritableFile(); 26629: 26629: 26629: 26629: 26629: virtual Status Append(const Slice& data) = 0; 26629: # 901 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status Append(const Slice& data, 26629: const DataVerificationInfo& ) { 26629: return Append(data); 26629: } 26629: # 926 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status PositionedAppend(const Slice& , 26629: uint64_t ) { 26629: return Status::NotSupported( 26629: "WritableFile::PositionedAppend() not supported."); 26629: } 26629: # 939 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status PositionedAppend( 26629: const Slice& , uint64_t , 26629: const DataVerificationInfo& ) { 26629: return Status::NotSupported("PositionedAppend"); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual Status Truncate(uint64_t ) { return Status::OK(); } 26629: virtual Status Close() = 0; 26629: virtual Status Flush() = 0; 26629: virtual Status Sync() = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status Fsync() { return Sync(); } 26629: 26629: 26629: 26629: virtual bool IsSyncThreadSafe() const { return false; } 26629: 26629: 26629: 26629: virtual bool use_direct_io() const { return false; } 26629: 26629: 26629: 26629: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 26629: # 985 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 26629: 26629: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 26629: 26629: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 26629: write_hint_ = hint; 26629: } 26629: 26629: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 26629: 26629: 26629: 26629: virtual uint64_t GetFileSize() { return 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void SetPreallocationBlockSize(size_t size) { 26629: preallocation_block_size_ = size; 26629: } 26629: 26629: virtual void GetPreallocationStatus(size_t* block_size, 26629: size_t* last_allocated_block) { 26629: *last_allocated_block = last_preallocated_block_; 26629: *block_size = preallocation_block_size_; 26629: } 26629: 26629: 26629: virtual size_t GetUniqueId(char* , size_t ) const { 26629: return 0; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual Status InvalidateCache(size_t , size_t ) { 26629: return Status::NotSupported("WritableFile::InvalidateCache not supported."); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status RangeSync(uint64_t , uint64_t ) { 26629: if (strict_bytes_per_sync_) { 26629: return Sync(); 26629: } 26629: return Status::OK(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void PrepareWrite(size_t offset, size_t len) { 26629: if (preallocation_block_size_ == 0) { 26629: return; 26629: } 26629: 26629: 26629: 26629: const auto block_size = preallocation_block_size_; 26629: size_t new_last_preallocated_block = 26629: (offset + len + block_size - 1) / block_size; 26629: if (new_last_preallocated_block > last_preallocated_block_) { 26629: size_t num_spanned_blocks = 26629: new_last_preallocated_block - last_preallocated_block_; 26629: 26629: Allocate(block_size * last_preallocated_block_, 26629: block_size * num_spanned_blocks) 26629: .PermitUncheckedError(); 26629: last_preallocated_block_ = new_last_preallocated_block; 26629: } 26629: } 26629: 26629: 26629: virtual Status Allocate(uint64_t , uint64_t ) { 26629: return Status::OK(); 26629: } 26629: 26629: 26629: 26629: 26629: protected: 26629: size_t preallocation_block_size() { return preallocation_block_size_; } 26629: 26629: private: 26629: size_t last_preallocated_block_; 26629: size_t preallocation_block_size_; 26629: 26629: protected: 26629: Env::IOPriority io_priority_; 26629: Env::WriteLifeTimeHint write_hint_; 26629: const bool strict_bytes_per_sync_; 26629: }; 26629: 26629: 26629: class RandomRWFile { 26629: public: 26629: RandomRWFile() {} 26629: 26629: RandomRWFile(const RandomRWFile&) = delete; 26629: RandomRWFile& operator=(const RandomRWFile&) = delete; 26629: 26629: virtual ~RandomRWFile() {} 26629: 26629: 26629: 26629: virtual bool use_direct_io() const { return false; } 26629: 26629: 26629: 26629: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 26629: 26629: 26629: 26629: virtual Status Write(uint64_t offset, const Slice& data) = 0; 26629: # 1118 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: virtual Status Read(uint64_t offset, size_t n, Slice* result, 26629: char* scratch) const = 0; 26629: 26629: virtual Status Flush() = 0; 26629: 26629: virtual Status Sync() = 0; 26629: 26629: virtual Status Fsync() { return Sync(); } 26629: 26629: virtual Status Close() = 0; 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: 26629: class MemoryMappedFileBuffer { 26629: public: 26629: MemoryMappedFileBuffer(void* _base, size_t _length) 26629: : base_(_base), length_(_length) {} 26629: 26629: virtual ~MemoryMappedFileBuffer() = 0; 26629: 26629: 26629: 26629: MemoryMappedFileBuffer(const MemoryMappedFileBuffer&) = delete; 26629: MemoryMappedFileBuffer& operator=(const MemoryMappedFileBuffer&) = delete; 26629: 26629: void* GetBase() const { return base_; } 26629: size_t GetLen() const { return length_; } 26629: 26629: protected: 26629: void* base_; 26629: const size_t length_; 26629: }; 26629: 26629: 26629: 26629: class Directory { 26629: public: 26629: virtual ~Directory() {} 26629: 26629: virtual Status Fsync() = 0; 26629: 26629: virtual Status Close() { return Status::NotSupported("Close"); } 26629: 26629: virtual size_t GetUniqueId(char* , size_t ) const { 26629: return 0; 26629: } 26629: 26629: 26629: 26629: }; 26629: 26629: enum InfoLogLevel : unsigned char { 26629: DEBUG_LEVEL = 0, 26629: INFO_LEVEL, 26629: WARN_LEVEL, 26629: ERROR_LEVEL, 26629: FATAL_LEVEL, 26629: HEADER_LEVEL, 26629: NUM_INFO_LOG_LEVELS, 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class Logger { 26629: public: 26629: size_t kDoNotSupportGetLogFileSize = (std::numeric_limits::max)(); 26629: 26629: explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) 26629: : closed_(false), log_level_(log_level) {} 26629: 26629: Logger(const Logger&) = delete; 26629: void operator=(const Logger&) = delete; 26629: 26629: virtual ~Logger(); 26629: 26629: 26629: 26629: 26629: virtual Status Close(); 26629: 26629: 26629: 26629: 26629: virtual void LogHeader(const char* format, va_list ap) { 26629: 26629: 26629: Logv(InfoLogLevel::INFO_LEVEL, format, ap); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void Logv(const char* , va_list ) { 26629: 26629: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 26629: (static_cast ( 26629: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: false 26629: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: "false" 26629: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 26629: , "./include/rocksdb/env.h", 1220, __extension__ __PRETTY_FUNCTION__)) 26629: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: ; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual void Logv(const InfoLogLevel log_level, const char* format, 26629: va_list ap); 26629: 26629: virtual size_t GetLogFileSize() const { return kDoNotSupportGetLogFileSize; } 26629: 26629: virtual void Flush() {} 26629: virtual InfoLogLevel GetInfoLogLevel() const { return log_level_; } 26629: virtual void SetInfoLogLevel(const InfoLogLevel log_level) { 26629: log_level_ = log_level; 26629: } 26629: 26629: 26629: 26629: protected: 26629: virtual Status CloseImpl(); 26629: bool closed_; 26629: 26629: private: 26629: InfoLogLevel log_level_; 26629: }; 26629: 26629: 26629: 26629: 26629: class FileLock { 26629: public: 26629: FileLock() {} 26629: virtual ~FileLock(); 26629: 26629: private: 26629: 26629: FileLock(const FileLock&) = delete; 26629: void operator=(const FileLock&) = delete; 26629: }; 26629: 26629: class DynamicLibrary { 26629: public: 26629: virtual ~DynamicLibrary() {} 26629: 26629: 26629: virtual const char* Name() const = 0; 26629: 26629: 26629: 26629: template 26629: Status LoadFunction(const std::string& sym_name, std::function* function) { 26629: 26629: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 26629: (static_cast ( 26629: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: nullptr != function 26629: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: "nullptr != function" 26629: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 26629: , "./include/rocksdb/env.h", 1273, __extension__ __PRETTY_FUNCTION__)) 26629: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: ; 26629: void* ptr = nullptr; 26629: Status s = LoadSymbol(sym_name, &ptr); 26629: *function = reinterpret_cast(ptr); 26629: return s; 26629: } 26629: 26629: virtual Status LoadSymbol(const std::string& sym_name, void** func) = 0; 26629: }; 26629: 26629: extern void LogFlush(const std::shared_ptr& info_log); 26629: 26629: extern void Log(const InfoLogLevel log_level, 26629: const std::shared_ptr& info_log, const char* format, 26629: ...) __attribute__((__format__(__printf__, 3, 4))); 26629: 26629: 26629: extern void Header(const std::shared_ptr& info_log, const char* format, 26629: ...) __attribute__((__format__(__printf__, 2, 3))); 26629: extern void Debug(const std::shared_ptr& info_log, const char* format, 26629: ...) __attribute__((__format__(__printf__, 2, 3))); 26629: extern void Info(const std::shared_ptr& info_log, const char* format, 26629: ...) __attribute__((__format__(__printf__, 2, 3))); 26629: extern void Warn(const std::shared_ptr& info_log, const char* format, 26629: ...) __attribute__((__format__(__printf__, 2, 3))); 26629: extern void Error(const std::shared_ptr& info_log, const char* format, 26629: ...) __attribute__((__format__(__printf__, 2, 3))); 26629: extern void Fatal(const std::shared_ptr& info_log, const char* format, 26629: ...) __attribute__((__format__(__printf__, 2, 3))); 26629: 26629: 26629: 26629: extern void Log(const std::shared_ptr& info_log, const char* format, 26629: ...) __attribute__((__format__(__printf__, 2, 3))); 26629: 26629: extern void LogFlush(Logger* info_log); 26629: 26629: extern void Log(const InfoLogLevel log_level, Logger* info_log, 26629: const char* format, ...) __attribute__((__format__(__printf__, 3, 4))); 26629: 26629: 26629: extern void Log(Logger* info_log, const char* format, ...) 26629: __attribute__((__format__(__printf__, 2, 3))); 26629: 26629: 26629: extern void Header(Logger* info_log, const char* format, ...) 26629: __attribute__((__format__(__printf__, 2, 3))); 26629: extern void Debug(Logger* info_log, const char* format, ...) 26629: __attribute__((__format__(__printf__, 2, 3))); 26629: extern void Info(Logger* info_log, const char* format, ...) 26629: __attribute__((__format__(__printf__, 2, 3))); 26629: extern void Warn(Logger* info_log, const char* format, ...) 26629: __attribute__((__format__(__printf__, 2, 3))); 26629: extern void Error(Logger* info_log, const char* format, ...) 26629: __attribute__((__format__(__printf__, 2, 3))); 26629: extern void Fatal(Logger* info_log, const char* format, ...) 26629: __attribute__((__format__(__printf__, 2, 3))); 26629: 26629: 26629: extern Status WriteStringToFile(Env* env, const Slice& data, 26629: const std::string& fname, 26629: bool should_sync = false); 26629: 26629: 26629: extern Status ReadFileToString(Env* env, const std::string& fname, 26629: std::string* data); 26629: # 1368 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 26629: class EnvWrapper : public Env { 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: struct Target { 26629: Env* env; 26629: std::shared_ptr guard; 26629: 26629: 26629: explicit Target(Env* t) : env(t) {} 26629: 26629: 26629: explicit Target(std::unique_ptr&& t) : guard(t.release()) { 26629: env = guard.get(); 26629: } 26629: 26629: 26629: explicit Target(const std::shared_ptr& t) : guard(t) { 26629: env = guard.get(); 26629: } 26629: 26629: 26629: void Prepare() { 26629: if (guard.get() != nullptr) { 26629: env = guard.get(); 26629: } else if (env == nullptr) { 26629: env = Env::Default(); 26629: } 26629: } 26629: }; 26629: 26629: 26629: explicit EnvWrapper(Env* t); 26629: explicit EnvWrapper(std::unique_ptr&& t); 26629: explicit EnvWrapper(const std::shared_ptr& t); 26629: ~EnvWrapper() override; 26629: 26629: 26629: Env* target() const { return target_.env; } 26629: 26629: 26629: 26629: const char* Name() const override { return target_.env->Name(); } 26629: 26629: 26629: Status RegisterDbPaths(const std::vector& paths) override { 26629: return target_.env->RegisterDbPaths(paths); 26629: } 26629: 26629: Status UnregisterDbPaths(const std::vector& paths) override { 26629: return target_.env->UnregisterDbPaths(paths); 26629: } 26629: 26629: Status NewSequentialFile(const std::string& f, 26629: std::unique_ptr* r, 26629: const EnvOptions& options) override { 26629: return target_.env->NewSequentialFile(f, r, options); 26629: } 26629: Status NewRandomAccessFile(const std::string& f, 26629: std::unique_ptr* r, 26629: const EnvOptions& options) override { 26629: return target_.env->NewRandomAccessFile(f, r, options); 26629: } 26629: Status NewWritableFile(const std::string& f, std::unique_ptr* r, 26629: const EnvOptions& options) override { 26629: return target_.env->NewWritableFile(f, r, options); 26629: } 26629: Status ReopenWritableFile(const std::string& fname, 26629: std::unique_ptr* result, 26629: const EnvOptions& options) override { 26629: return target_.env->ReopenWritableFile(fname, result, options); 26629: } 26629: Status ReuseWritableFile(const std::string& fname, 26629: const std::string& old_fname, 26629: std::unique_ptr* r, 26629: const EnvOptions& options) override { 26629: return target_.env->ReuseWritableFile(fname, old_fname, r, options); 26629: } 26629: Status NewRandomRWFile(const std::string& fname, 26629: std::unique_ptr* result, 26629: const EnvOptions& options) override { 26629: return target_.env->NewRandomRWFile(fname, result, options); 26629: } 26629: Status NewMemoryMappedFileBuffer( 26629: const std::string& fname, 26629: std::unique_ptr* result) override { 26629: return target_.env->NewMemoryMappedFileBuffer(fname, result); 26629: } 26629: Status NewDirectory(const std::string& name, 26629: std::unique_ptr* result) override { 26629: return target_.env->NewDirectory(name, result); 26629: } 26629: Status FileExists(const std::string& f) override { 26629: return target_.env->FileExists(f); 26629: } 26629: Status GetChildren(const std::string& dir, 26629: std::vector* r) override { 26629: return target_.env->GetChildren(dir, r); 26629: } 26629: Status GetChildrenFileAttributes( 26629: const std::string& dir, std::vector* result) override { 26629: return target_.env->GetChildrenFileAttributes(dir, result); 26629: } 26629: Status DeleteFile(const std::string& f) override { 26629: return target_.env->DeleteFile(f); 26629: } 26629: Status Truncate(const std::string& fname, size_t size) override { 26629: return target_.env->Truncate(fname, size); 26629: } 26629: Status CreateDir(const std::string& d) override { 26629: return target_.env->CreateDir(d); 26629: } 26629: Status CreateDirIfMissing(const std::string& d) override { 26629: return target_.env->CreateDirIfMissing(d); 26629: } 26629: Status DeleteDir(const std::string& d) override { 26629: return target_.env->DeleteDir(d); 26629: } 26629: Status GetFileSize(const std::string& f, uint64_t* s) override { 26629: return target_.env->GetFileSize(f, s); 26629: } 26629: 26629: Status GetFileModificationTime(const std::string& fname, 26629: uint64_t* file_mtime) override { 26629: return target_.env->GetFileModificationTime(fname, file_mtime); 26629: } 26629: 26629: Status RenameFile(const std::string& s, const std::string& t) override { 26629: return target_.env->RenameFile(s, t); 26629: } 26629: 26629: Status LinkFile(const std::string& s, const std::string& t) override { 26629: return target_.env->LinkFile(s, t); 26629: } 26629: 26629: Status NumFileLinks(const std::string& fname, uint64_t* count) override { 26629: return target_.env->NumFileLinks(fname, count); 26629: } 26629: 26629: Status AreFilesSame(const std::string& first, const std::string& second, 26629: bool* res) override { 26629: return target_.env->AreFilesSame(first, second, res); 26629: } 26629: 26629: Status LockFile(const std::string& f, FileLock** l) override { 26629: return target_.env->LockFile(f, l); 26629: } 26629: 26629: Status UnlockFile(FileLock* l) override { return target_.env->UnlockFile(l); } 26629: 26629: Status IsDirectory(const std::string& path, bool* is_dir) override { 26629: return target_.env->IsDirectory(path, is_dir); 26629: } 26629: 26629: Status LoadLibrary(const std::string& lib_name, 26629: const std::string& search_path, 26629: std::shared_ptr* result) override { 26629: return target_.env->LoadLibrary(lib_name, search_path, result); 26629: } 26629: 26629: void Schedule(void (*f)(void* arg), void* a, Priority pri, 26629: void* tag = nullptr, void (*u)(void* arg) = nullptr) override { 26629: return target_.env->Schedule(f, a, pri, tag, u); 26629: } 26629: 26629: int UnSchedule(void* tag, Priority pri) override { 26629: return target_.env->UnSchedule(tag, pri); 26629: } 26629: 26629: void StartThread(void (*f)(void*), void* a) override { 26629: return target_.env->StartThread(f, a); 26629: } 26629: void WaitForJoin() override { return target_.env->WaitForJoin(); } 26629: unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { 26629: return target_.env->GetThreadPoolQueueLen(pri); 26629: } 26629: 26629: int ReserveThreads(int threads_to_be_reserved, Priority pri) override { 26629: return target_.env->ReserveThreads(threads_to_be_reserved, pri); 26629: } 26629: 26629: int ReleaseThreads(int threads_to_be_released, Priority pri) override { 26629: return target_.env->ReleaseThreads(threads_to_be_released, pri); 26629: } 26629: 26629: Status GetTestDirectory(std::string* path) override { 26629: return target_.env->GetTestDirectory(path); 26629: } 26629: Status NewLogger(const std::string& fname, 26629: std::shared_ptr* result) override { 26629: return target_.env->NewLogger(fname, result); 26629: } 26629: uint64_t NowMicros() override { return target_.env->NowMicros(); } 26629: uint64_t NowNanos() override { return target_.env->NowNanos(); } 26629: uint64_t NowCPUNanos() override { return target_.env->NowCPUNanos(); } 26629: 26629: void SleepForMicroseconds(int micros) override { 26629: target_.env->SleepForMicroseconds(micros); 26629: } 26629: Status GetHostName(char* name, uint64_t len) override { 26629: return target_.env->GetHostName(name, len); 26629: } 26629: Status GetCurrentTime(int64_t* unix_time) override { 26629: return target_.env->GetCurrentTime(unix_time); 26629: } 26629: Status GetAbsolutePath(const std::string& db_path, 26629: std::string* output_path) override { 26629: return target_.env->GetAbsolutePath(db_path, output_path); 26629: } 26629: void SetBackgroundThreads(int num, Priority pri) override { 26629: return target_.env->SetBackgroundThreads(num, pri); 26629: } 26629: int GetBackgroundThreads(Priority pri) override { 26629: return target_.env->GetBackgroundThreads(pri); 26629: } 26629: 26629: Status SetAllowNonOwnerAccess(bool allow_non_owner_access) override { 26629: return target_.env->SetAllowNonOwnerAccess(allow_non_owner_access); 26629: } 26629: 26629: void IncBackgroundThreadsIfNeeded(int num, Priority pri) override { 26629: return target_.env->IncBackgroundThreadsIfNeeded(num, pri); 26629: } 26629: 26629: void LowerThreadPoolIOPriority(Priority pool) override { 26629: target_.env->LowerThreadPoolIOPriority(pool); 26629: } 26629: 26629: void LowerThreadPoolCPUPriority(Priority pool) override { 26629: target_.env->LowerThreadPoolCPUPriority(pool); 26629: } 26629: 26629: Status LowerThreadPoolCPUPriority(Priority pool, CpuPriority pri) override { 26629: return target_.env->LowerThreadPoolCPUPriority(pool, pri); 26629: } 26629: 26629: std::string TimeToString(uint64_t time) override { 26629: return target_.env->TimeToString(time); 26629: } 26629: 26629: Status GetThreadList(std::vector* thread_list) override { 26629: return target_.env->GetThreadList(thread_list); 26629: } 26629: 26629: ThreadStatusUpdater* GetThreadStatusUpdater() const override { 26629: return target_.env->GetThreadStatusUpdater(); 26629: } 26629: 26629: uint64_t GetThreadID() const override { return target_.env->GetThreadID(); } 26629: 26629: std::string GenerateUniqueId() override { 26629: return target_.env->GenerateUniqueId(); 26629: } 26629: 26629: EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const override { 26629: return target_.env->OptimizeForLogRead(env_options); 26629: } 26629: EnvOptions OptimizeForManifestRead( 26629: const EnvOptions& env_options) const override { 26629: return target_.env->OptimizeForManifestRead(env_options); 26629: } 26629: EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 26629: const DBOptions& db_options) const override { 26629: return target_.env->OptimizeForLogWrite(env_options, db_options); 26629: } 26629: EnvOptions OptimizeForManifestWrite( 26629: const EnvOptions& env_options) const override { 26629: return target_.env->OptimizeForManifestWrite(env_options); 26629: } 26629: EnvOptions OptimizeForCompactionTableWrite( 26629: const EnvOptions& env_options, 26629: const ImmutableDBOptions& immutable_ops) const override { 26629: return target_.env->OptimizeForCompactionTableWrite(env_options, 26629: immutable_ops); 26629: } 26629: EnvOptions OptimizeForCompactionTableRead( 26629: const EnvOptions& env_options, 26629: const ImmutableDBOptions& db_options) const override { 26629: return target_.env->OptimizeForCompactionTableRead(env_options, db_options); 26629: } 26629: EnvOptions OptimizeForBlobFileRead( 26629: const EnvOptions& env_options, 26629: const ImmutableDBOptions& db_options) const override { 26629: return target_.env->OptimizeForBlobFileRead(env_options, db_options); 26629: } 26629: Status GetFreeSpace(const std::string& path, uint64_t* diskfree) override { 26629: return target_.env->GetFreeSpace(path, diskfree); 26629: } 26629: void SanitizeEnvOptions(EnvOptions* env_opts) const override { 26629: target_.env->SanitizeEnvOptions(env_opts); 26629: } 26629: Status PrepareOptions(const ConfigOptions& options) override; 26629: 26629: std::string SerializeOptions(const ConfigOptions& config_options, 26629: const std::string& header) const override; 26629: 26629: 26629: private: 26629: Target target_; 26629: }; 26629: 26629: class SequentialFileWrapper : public SequentialFile { 26629: public: 26629: explicit SequentialFileWrapper(SequentialFile* target) : target_(target) {} 26629: 26629: Status Read(size_t n, Slice* result, char* scratch) override { 26629: return target_->Read(n, result, scratch); 26629: } 26629: Status Skip(uint64_t n) override { return target_->Skip(n); } 26629: bool use_direct_io() const override { return target_->use_direct_io(); } 26629: size_t GetRequiredBufferAlignment() const override { 26629: return target_->GetRequiredBufferAlignment(); 26629: } 26629: Status InvalidateCache(size_t offset, size_t length) override { 26629: return target_->InvalidateCache(offset, length); 26629: } 26629: Status PositionedRead(uint64_t offset, size_t n, Slice* result, 26629: char* scratch) override { 26629: return target_->PositionedRead(offset, n, result, scratch); 26629: } 26629: 26629: private: 26629: SequentialFile* target_; 26629: }; 26629: 26629: class RandomAccessFileWrapper : public RandomAccessFile { 26629: public: 26629: explicit RandomAccessFileWrapper(RandomAccessFile* target) 26629: : target_(target) {} 26629: 26629: Status Read(uint64_t offset, size_t n, Slice* result, 26629: char* scratch) const override { 26629: return target_->Read(offset, n, result, scratch); 26629: } 26629: Status MultiRead(ReadRequest* reqs, size_t num_reqs) override { 26629: return target_->MultiRead(reqs, num_reqs); 26629: } 26629: Status Prefetch(uint64_t offset, size_t n) override { 26629: return target_->Prefetch(offset, n); 26629: } 26629: size_t GetUniqueId(char* id, size_t max_size) const override { 26629: return target_->GetUniqueId(id, max_size); 26629: } 26629: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 26629: bool use_direct_io() const override { return target_->use_direct_io(); } 26629: size_t GetRequiredBufferAlignment() const override { 26629: return target_->GetRequiredBufferAlignment(); 26629: } 26629: Status InvalidateCache(size_t offset, size_t length) override { 26629: return target_->InvalidateCache(offset, length); 26629: } 26629: 26629: private: 26629: RandomAccessFile* target_; 26629: }; 26629: 26629: class WritableFileWrapper : public WritableFile { 26629: public: 26629: explicit WritableFileWrapper(WritableFile* t) : target_(t) {} 26629: 26629: Status Append(const Slice& data) override { return target_->Append(data); } 26629: Status Append(const Slice& data, 26629: const DataVerificationInfo& verification_info) override { 26629: return target_->Append(data, verification_info); 26629: } 26629: Status PositionedAppend(const Slice& data, uint64_t offset) override { 26629: return target_->PositionedAppend(data, offset); 26629: } 26629: Status PositionedAppend( 26629: const Slice& data, uint64_t offset, 26629: const DataVerificationInfo& verification_info) override { 26629: return target_->PositionedAppend(data, offset, verification_info); 26629: } 26629: Status Truncate(uint64_t size) override { return target_->Truncate(size); } 26629: Status Close() override { return target_->Close(); } 26629: Status Flush() override { return target_->Flush(); } 26629: Status Sync() override { return target_->Sync(); } 26629: Status Fsync() override { return target_->Fsync(); } 26629: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 26629: 26629: bool use_direct_io() const override { return target_->use_direct_io(); } 26629: 26629: size_t GetRequiredBufferAlignment() const override { 26629: return target_->GetRequiredBufferAlignment(); 26629: } 26629: 26629: void SetIOPriority(Env::IOPriority pri) override { 26629: target_->SetIOPriority(pri); 26629: } 26629: 26629: Env::IOPriority GetIOPriority() override { return target_->GetIOPriority(); } 26629: 26629: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 26629: target_->SetWriteLifeTimeHint(hint); 26629: } 26629: 26629: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 26629: return target_->GetWriteLifeTimeHint(); 26629: } 26629: 26629: uint64_t GetFileSize() override { return target_->GetFileSize(); } 26629: 26629: void SetPreallocationBlockSize(size_t size) override { 26629: target_->SetPreallocationBlockSize(size); 26629: } 26629: 26629: void GetPreallocationStatus(size_t* block_size, 26629: size_t* last_allocated_block) override { 26629: target_->GetPreallocationStatus(block_size, last_allocated_block); 26629: } 26629: 26629: size_t GetUniqueId(char* id, size_t max_size) const override { 26629: return target_->GetUniqueId(id, max_size); 26629: } 26629: 26629: Status InvalidateCache(size_t offset, size_t length) override { 26629: return target_->InvalidateCache(offset, length); 26629: } 26629: 26629: Status RangeSync(uint64_t offset, uint64_t nbytes) override { 26629: return target_->RangeSync(offset, nbytes); 26629: } 26629: 26629: void PrepareWrite(size_t offset, size_t len) override { 26629: target_->PrepareWrite(offset, len); 26629: } 26629: 26629: Status Allocate(uint64_t offset, uint64_t len) override { 26629: return target_->Allocate(offset, len); 26629: } 26629: 26629: private: 26629: WritableFile* target_; 26629: }; 26629: 26629: class RandomRWFileWrapper : public RandomRWFile { 26629: public: 26629: explicit RandomRWFileWrapper(RandomRWFile* target) : target_(target) {} 26629: 26629: bool use_direct_io() const override { return target_->use_direct_io(); } 26629: size_t GetRequiredBufferAlignment() const override { 26629: return target_->GetRequiredBufferAlignment(); 26629: } 26629: Status Write(uint64_t offset, const Slice& data) override { 26629: return target_->Write(offset, data); 26629: } 26629: Status Read(uint64_t offset, size_t n, Slice* result, 26629: char* scratch) const override { 26629: return target_->Read(offset, n, result, scratch); 26629: } 26629: Status Flush() override { return target_->Flush(); } 26629: Status Sync() override { return target_->Sync(); } 26629: Status Fsync() override { return target_->Fsync(); } 26629: Status Close() override { return target_->Close(); } 26629: 26629: private: 26629: RandomRWFile* target_; 26629: }; 26629: 26629: class DirectoryWrapper : public Directory { 26629: public: 26629: explicit DirectoryWrapper(Directory* target) : target_(target) {} 26629: 26629: Status Fsync() override { return target_->Fsync(); } 26629: Status Close() override { return target_->Close(); } 26629: size_t GetUniqueId(char* id, size_t max_size) const override { 26629: return target_->GetUniqueId(id, max_size); 26629: } 26629: 26629: private: 26629: Directory* target_; 26629: }; 26629: 26629: class LoggerWrapper : public Logger { 26629: public: 26629: explicit LoggerWrapper(Logger* target) : target_(target) {} 26629: 26629: Status Close() override { return target_->Close(); } 26629: void LogHeader(const char* format, va_list ap) override { 26629: return target_->LogHeader(format, ap); 26629: } 26629: void Logv(const char* format, va_list ap) override { 26629: return target_->Logv(format, ap); 26629: } 26629: void Logv(const InfoLogLevel log_level, const char* format, 26629: va_list ap) override { 26629: return target_->Logv(log_level, format, ap); 26629: } 26629: size_t GetLogFileSize() const override { return target_->GetLogFileSize(); } 26629: void Flush() override { return target_->Flush(); } 26629: InfoLogLevel GetInfoLogLevel() const override { 26629: return target_->GetInfoLogLevel(); 26629: } 26629: void SetInfoLogLevel(const InfoLogLevel log_level) override { 26629: return target_->SetInfoLogLevel(log_level); 26629: } 26629: 26629: private: 26629: Logger* target_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: Env* NewMemEnv(Env* base_env); 26629: 26629: 26629: 26629: 26629: Env* NewTimedEnv(Env* base_env); 26629: 26629: 26629: 26629: 26629: Status NewEnvLogger(const std::string& fname, Env* env, 26629: std::shared_ptr* result); 26629: 26629: 26629: 26629: std::unique_ptr NewCompositeEnv(const std::shared_ptr& fs); 26629: 26629: } 26629: # 26 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 26629: 26629: 26629: # 1 "/usr/include/c++/12/cassert" 1 3 26629: # 41 "/usr/include/c++/12/cassert" 3 26629: 26629: # 42 "/usr/include/c++/12/cassert" 3 26629: 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 45 "/usr/include/c++/12/cassert" 2 3 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 2 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 26629: namespace rocksdb { 26629: 26629: 26629: constexpr char kUnknownFileChecksum[] = ""; 26629: 26629: constexpr char kUnknownFileChecksumFuncName[] = "Unknown"; 26629: 26629: 26629: 26629: constexpr char kStandardDbFileChecksumFuncName[] = "FileChecksumCrc32c"; 26629: 26629: struct FileChecksumGenContext { 26629: std::string file_name; 26629: 26629: 26629: 26629: 26629: std::string requested_checksum_func_name; 26629: }; 26629: # 50 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 26629: class FileChecksumGenerator { 26629: public: 26629: virtual ~FileChecksumGenerator() {} 26629: 26629: 26629: 26629: 26629: virtual void Update(const char* data, size_t n) = 0; 26629: 26629: 26629: virtual void Finalize() = 0; 26629: 26629: 26629: 26629: virtual std::string GetChecksum() const = 0; 26629: 26629: 26629: virtual const char* Name() const = 0; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FileChecksumGenFactory : public Customizable { 26629: public: 26629: ~FileChecksumGenFactory() override {} 26629: static const char* Type() { return "FileChecksumGenFactory"; } 26629: static Status CreateFromString( 26629: const ConfigOptions& options, const std::string& value, 26629: std::shared_ptr* result); 26629: 26629: 26629: virtual std::unique_ptr CreateFileChecksumGenerator( 26629: const FileChecksumGenContext& context) = 0; 26629: 26629: 26629: const char* Name() const override = 0; 26629: }; 26629: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 26629: class FileChecksumList { 26629: public: 26629: virtual ~FileChecksumList() {} 26629: 26629: 26629: virtual void reset() = 0; 26629: 26629: 26629: virtual size_t size() const = 0; 26629: 26629: 26629: 26629: 26629: virtual Status GetAllFileChecksums( 26629: std::vector* file_numbers, std::vector* checksums, 26629: std::vector* checksum_func_names) = 0; 26629: 26629: 26629: 26629: virtual Status SearchOneFileChecksum(uint64_t file_number, 26629: std::string* checksum, 26629: std::string* checksum_func_name) = 0; 26629: 26629: 26629: virtual Status InsertOneFileChecksum( 26629: uint64_t file_number, const std::string& checksum, 26629: const std::string& checksum_func_name) = 0; 26629: 26629: 26629: virtual Status RemoveOneFileChecksum(uint64_t file_number) = 0; 26629: }; 26629: 26629: 26629: extern FileChecksumList* NewFileChecksumList(); 26629: # 143 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 26629: extern std::shared_ptr 26629: GetFileChecksumGenCrc32cFactory(); 26629: 26629: } 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/chrono" 1 3 26629: # 33 "/usr/include/c++/12/chrono" 3 26629: 26629: # 34 "/usr/include/c++/12/chrono" 3 26629: # 45 "/usr/include/c++/12/chrono" 3 26629: 26629: # 45 "/usr/include/c++/12/chrono" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 62 "/usr/include/c++/12/chrono" 3 26629: namespace chrono 26629: { 26629: # 2058 "/usr/include/c++/12/chrono" 3 26629: } 26629: # 2181 "/usr/include/c++/12/chrono" 3 26629: 26629: } 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 2 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_job_stats.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 8 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_job_stats.h" 2 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_job_stats.h" 26629: namespace rocksdb { 26629: struct CompactionJobStats { 26629: CompactionJobStats() { Reset(); } 26629: void Reset(); 26629: 26629: void Add(const CompactionJobStats& stats); 26629: 26629: 26629: uint64_t elapsed_micros; 26629: 26629: 26629: uint64_t cpu_micros; 26629: 26629: 26629: uint64_t num_input_records; 26629: 26629: uint64_t num_blobs_read; 26629: 26629: size_t num_input_files; 26629: 26629: size_t num_input_files_at_output_level; 26629: 26629: 26629: uint64_t num_output_records; 26629: 26629: size_t num_output_files; 26629: 26629: size_t num_output_files_blob; 26629: 26629: 26629: bool is_full_compaction; 26629: 26629: bool is_manual_compaction; 26629: 26629: 26629: uint64_t total_input_bytes; 26629: 26629: uint64_t total_blob_bytes_read; 26629: 26629: uint64_t total_output_bytes; 26629: 26629: uint64_t total_output_bytes_blob; 26629: 26629: 26629: 26629: 26629: uint64_t num_records_replaced; 26629: 26629: 26629: uint64_t total_input_raw_key_bytes; 26629: 26629: uint64_t total_input_raw_value_bytes; 26629: 26629: 26629: 26629: uint64_t num_input_deletion_records; 26629: 26629: 26629: 26629: uint64_t num_expired_deletion_records; 26629: 26629: 26629: 26629: uint64_t num_corrupt_keys; 26629: 26629: 26629: 26629: 26629: 26629: uint64_t file_write_nanos; 26629: 26629: 26629: uint64_t file_range_sync_nanos; 26629: 26629: 26629: uint64_t file_fsync_nanos; 26629: 26629: 26629: uint64_t file_prepare_write_nanos; 26629: 26629: 26629: 26629: static const size_t kMaxPrefixLength = 8; 26629: 26629: std::string smallest_output_key_prefix; 26629: std::string largest_output_key_prefix; 26629: 26629: 26629: uint64_t num_single_del_fallthru; 26629: 26629: 26629: uint64_t num_single_del_mismatch; 26629: 26629: 26629: }; 26629: } 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 2 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 1 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cstring" 1 3 26629: # 39 "/usr/include/c++/12/cstring" 3 26629: 26629: # 40 "/usr/include/c++/12/cstring" 3 26629: # 22 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class IOStatus : public Status { 26629: public: 26629: using Code = Status::Code; 26629: using SubCode = Status::SubCode; 26629: 26629: enum IOErrorScope : unsigned char { 26629: kIOErrorScopeFileSystem, 26629: kIOErrorScopeFile, 26629: kIOErrorScopeRange, 26629: kIOErrorScopeMax, 26629: }; 26629: 26629: 26629: IOStatus() : IOStatus(kOk, kNone) {} 26629: ~IOStatus() {} 26629: 26629: 26629: IOStatus(const IOStatus& s); 26629: IOStatus& operator=(const IOStatus& s); 26629: IOStatus(IOStatus&& s) noexcept; 26629: IOStatus& operator=(IOStatus&& s) noexcept; 26629: bool operator==(const IOStatus& rhs) const; 26629: bool operator!=(const IOStatus& rhs) const; 26629: 26629: void SetRetryable(bool retryable) { retryable_ = retryable; } 26629: void SetDataLoss(bool data_loss) { data_loss_ = data_loss; } 26629: void SetScope(IOErrorScope scope) { 26629: scope_ = static_cast(scope); 26629: } 26629: 26629: bool GetRetryable() const { return retryable_; } 26629: bool GetDataLoss() const { return data_loss_; } 26629: IOErrorScope GetScope() const { return static_cast(scope_); } 26629: 26629: 26629: static IOStatus OK() { return IOStatus(); } 26629: 26629: static IOStatus NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return IOStatus(kNotSupported, msg, msg2); 26629: } 26629: static IOStatus NotSupported(SubCode msg = kNone) { 26629: return IOStatus(kNotSupported, msg); 26629: } 26629: 26629: 26629: static IOStatus NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return IOStatus(kNotFound, msg, msg2); 26629: } 26629: 26629: static IOStatus NotFound(SubCode msg = kNone) { 26629: return IOStatus(kNotFound, msg); 26629: } 26629: 26629: static IOStatus Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return IOStatus(kCorruption, msg, msg2); 26629: } 26629: static IOStatus Corruption(SubCode msg = kNone) { 26629: return IOStatus(kCorruption, msg); 26629: } 26629: 26629: static IOStatus InvalidArgument(const Slice& msg, 26629: const Slice& msg2 = Slice()) { 26629: return IOStatus(kInvalidArgument, msg, msg2); 26629: } 26629: static IOStatus InvalidArgument(SubCode msg = kNone) { 26629: return IOStatus(kInvalidArgument, msg); 26629: } 26629: 26629: static IOStatus IOError(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return IOStatus(kIOError, msg, msg2); 26629: } 26629: static IOStatus IOError(SubCode msg = kNone) { 26629: return IOStatus(kIOError, msg); 26629: } 26629: 26629: static IOStatus Busy(SubCode msg = kNone) { return IOStatus(kBusy, msg); } 26629: static IOStatus Busy(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return IOStatus(kBusy, msg, msg2); 26629: } 26629: 26629: static IOStatus TimedOut(SubCode msg = kNone) { 26629: return IOStatus(kTimedOut, msg); 26629: } 26629: static IOStatus TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return IOStatus(kTimedOut, msg, msg2); 26629: } 26629: 26629: static IOStatus NoSpace() { return IOStatus(kIOError, kNoSpace); } 26629: static IOStatus NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return IOStatus(kIOError, kNoSpace, msg, msg2); 26629: } 26629: 26629: static IOStatus PathNotFound() { return IOStatus(kIOError, kPathNotFound); } 26629: static IOStatus PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return IOStatus(kIOError, kPathNotFound, msg, msg2); 26629: } 26629: 26629: static IOStatus IOFenced() { return IOStatus(kIOError, kIOFenced); } 26629: static IOStatus IOFenced(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return IOStatus(kIOError, kIOFenced, msg, msg2); 26629: } 26629: 26629: static IOStatus Aborted(SubCode msg = kNone) { 26629: return IOStatus(kAborted, msg); 26629: } 26629: static IOStatus Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 26629: return IOStatus(kAborted, msg, msg2); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: private: 26629: friend IOStatus status_to_io_status(Status&&); 26629: 26629: explicit IOStatus(Code _code, SubCode _subcode = kNone) 26629: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) {} 26629: 26629: IOStatus(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2); 26629: IOStatus(Code _code, const Slice& msg, const Slice& msg2) 26629: : IOStatus(_code, kNone, msg, msg2) {} 26629: }; 26629: 26629: inline IOStatus::IOStatus(Code _code, SubCode _subcode, const Slice& msg, 26629: const Slice& msg2) 26629: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) { 26629: 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 26629: (static_cast ( 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 26629: code_ != kOk 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 26629: "code_ != kOk" 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 26629: , "./include/rocksdb/io_status.h", 153, __extension__ __PRETTY_FUNCTION__)) 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 26629: ; 26629: 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 26629: (static_cast ( 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 26629: subcode_ != kMaxSubCode 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 26629: "subcode_ != kMaxSubCode" 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 26629: , "./include/rocksdb/io_status.h", 154, __extension__ __PRETTY_FUNCTION__)) 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 26629: ; 26629: const size_t len1 = msg.size(); 26629: const size_t len2 = msg2.size(); 26629: const size_t size = len1 + (len2 ? (2 + len2) : 0); 26629: char* const result = new char[size + 1]; 26629: memcpy(result, msg.data(), len1); 26629: if (len2) { 26629: result[len1] = ':'; 26629: result[len1 + 1] = ' '; 26629: memcpy(result + len1 + 2, msg2.data(), len2); 26629: } 26629: result[size] = '\0'; 26629: state_.reset(result); 26629: } 26629: 26629: inline IOStatus::IOStatus(const IOStatus& s) : Status(s.code_, s.subcode_) { 26629: 26629: 26629: 26629: retryable_ = s.retryable_; 26629: data_loss_ = s.data_loss_; 26629: scope_ = s.scope_; 26629: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 26629: } 26629: inline IOStatus& IOStatus::operator=(const IOStatus& s) { 26629: 26629: 26629: if (this != &s) { 26629: 26629: 26629: 26629: 26629: code_ = s.code_; 26629: subcode_ = s.subcode_; 26629: retryable_ = s.retryable_; 26629: data_loss_ = s.data_loss_; 26629: scope_ = s.scope_; 26629: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 26629: } 26629: return *this; 26629: } 26629: 26629: inline IOStatus::IOStatus(IOStatus&& s) noexcept : IOStatus() { 26629: *this = std::move(s); 26629: } 26629: 26629: inline IOStatus& IOStatus::operator=(IOStatus&& s) noexcept { 26629: if (this != &s) { 26629: 26629: 26629: 26629: 26629: code_ = std::move(s.code_); 26629: s.code_ = kOk; 26629: subcode_ = std::move(s.subcode_); 26629: s.subcode_ = kNone; 26629: retryable_ = s.retryable_; 26629: data_loss_ = s.data_loss_; 26629: scope_ = s.scope_; 26629: s.scope_ = kIOErrorScopeFileSystem; 26629: state_ = std::move(s.state_); 26629: } 26629: return *this; 26629: } 26629: 26629: inline bool IOStatus::operator==(const IOStatus& rhs) const { 26629: 26629: 26629: 26629: 26629: return (code_ == rhs.code_); 26629: } 26629: 26629: inline bool IOStatus::operator!=(const IOStatus& rhs) const { 26629: 26629: 26629: 26629: 26629: return !(*this == rhs); 26629: } 26629: 26629: inline IOStatus status_to_io_status(Status&& status) { 26629: IOStatus io_s; 26629: Status& s = io_s; 26629: s = std::move(status); 26629: return io_s; 26629: } 26629: 26629: } 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_properties.h" 1 26629: 26629: 26629: 26629: 26629: 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_properties.h" 26629: namespace rocksdb { 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_properties.h" 26629: using UserCollectedProperties = std::map; 26629: 26629: 26629: struct TablePropertiesNames { 26629: static const std::string kDbId; 26629: static const std::string kDbSessionId; 26629: static const std::string kDbHostId; 26629: static const std::string kOriginalFileNumber; 26629: static const std::string kDataSize; 26629: static const std::string kIndexSize; 26629: static const std::string kIndexPartitions; 26629: static const std::string kTopLevelIndexSize; 26629: static const std::string kIndexKeyIsUserKey; 26629: static const std::string kIndexValueIsDeltaEncoded; 26629: static const std::string kFilterSize; 26629: static const std::string kRawKeySize; 26629: static const std::string kRawValueSize; 26629: static const std::string kNumDataBlocks; 26629: static const std::string kNumEntries; 26629: static const std::string kNumFilterEntries; 26629: static const std::string kDeletedKeys; 26629: static const std::string kMergeOperands; 26629: static const std::string kNumRangeDeletions; 26629: static const std::string kFormatVersion; 26629: static const std::string kFixedKeyLen; 26629: static const std::string kFilterPolicy; 26629: static const std::string kColumnFamilyName; 26629: static const std::string kColumnFamilyId; 26629: static const std::string kComparator; 26629: static const std::string kMergeOperator; 26629: static const std::string kPrefixExtractorName; 26629: static const std::string kPropertyCollectors; 26629: static const std::string kCompression; 26629: static const std::string kCompressionOptions; 26629: static const std::string kCreationTime; 26629: static const std::string kOldestKeyTime; 26629: static const std::string kFileCreationTime; 26629: static const std::string kSlowCompressionEstimatedDataSize; 26629: static const std::string kFastCompressionEstimatedDataSize; 26629: static const std::string kSequenceNumberTimeMapping; 26629: }; 26629: # 88 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_properties.h" 26629: class TablePropertiesCollector { 26629: public: 26629: virtual ~TablePropertiesCollector() {} 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status Add(const Slice& , const Slice& ) { 26629: return Status::InvalidArgument( 26629: "TablePropertiesCollector::Add() deprecated."); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual Status AddUserKey(const Slice& key, const Slice& value, 26629: EntryType , SequenceNumber , 26629: uint64_t ) { 26629: 26629: return Add(key, value); 26629: } 26629: 26629: 26629: virtual void BlockAdd(uint64_t , 26629: uint64_t , 26629: uint64_t ) { 26629: 26629: return; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual Status Finish(UserCollectedProperties* properties) = 0; 26629: 26629: 26629: 26629: virtual UserCollectedProperties GetReadableProperties() const = 0; 26629: 26629: 26629: virtual const char* Name() const = 0; 26629: 26629: 26629: virtual bool NeedCompact() const { return false; } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class TablePropertiesCollectorFactory : public Customizable { 26629: public: 26629: struct Context { 26629: uint32_t column_family_id; 26629: 26629: 26629: int level_at_creation = kUnknownLevelAtCreation; 26629: static const uint32_t kUnknownColumnFamily; 26629: static const int kUnknownLevelAtCreation = -1; 26629: }; 26629: 26629: ~TablePropertiesCollectorFactory() override {} 26629: static const char* Type() { return "TablePropertiesCollectorFactory"; } 26629: static Status CreateFromString( 26629: const ConfigOptions& options, const std::string& value, 26629: std::shared_ptr* result); 26629: 26629: 26629: virtual TablePropertiesCollector* CreateTablePropertiesCollector( 26629: TablePropertiesCollectorFactory::Context context) = 0; 26629: 26629: 26629: const char* Name() const override = 0; 26629: 26629: 26629: 26629: 26629: virtual std::string ToString() const { return Name(); } 26629: }; 26629: 26629: 26629: 26629: struct TableProperties { 26629: public: 26629: 26629: 26629: uint64_t orig_file_number = 0; 26629: 26629: uint64_t data_size = 0; 26629: 26629: uint64_t index_size = 0; 26629: 26629: uint64_t index_partitions = 0; 26629: 26629: uint64_t top_level_index_size = 0; 26629: 26629: 26629: uint64_t index_key_is_user_key = 0; 26629: 26629: uint64_t index_value_is_delta_encoded = 0; 26629: 26629: uint64_t filter_size = 0; 26629: 26629: uint64_t raw_key_size = 0; 26629: 26629: uint64_t raw_value_size = 0; 26629: 26629: uint64_t num_data_blocks = 0; 26629: 26629: uint64_t num_entries = 0; 26629: 26629: uint64_t num_filter_entries = 0; 26629: 26629: uint64_t num_deletions = 0; 26629: 26629: uint64_t num_merge_operands = 0; 26629: 26629: uint64_t num_range_deletions = 0; 26629: 26629: uint64_t format_version = 0; 26629: 26629: uint64_t fixed_key_len = 0; 26629: 26629: 26629: uint64_t column_family_id = rocksdb:: 26629: TablePropertiesCollectorFactory::Context::kUnknownColumnFamily; 26629: 26629: 26629: 26629: uint64_t creation_time = 0; 26629: 26629: 26629: uint64_t oldest_key_time = 0; 26629: 26629: uint64_t file_creation_time = 0; 26629: 26629: 26629: 26629: uint64_t slow_compression_estimated_data_size = 0; 26629: 26629: 26629: 26629: uint64_t fast_compression_estimated_data_size = 0; 26629: 26629: 26629: 26629: uint64_t external_sst_file_global_seqno_offset = 0; 26629: 26629: 26629: 26629: 26629: std::string db_id; 26629: 26629: 26629: 26629: 26629: 26629: std::string db_session_id; 26629: 26629: 26629: 26629: 26629: 26629: std::string db_host_id; 26629: 26629: 26629: 26629: std::string column_family_name; 26629: 26629: 26629: 26629: std::string filter_policy_name; 26629: 26629: 26629: std::string comparator_name; 26629: 26629: 26629: 26629: std::string merge_operator_name; 26629: 26629: 26629: 26629: std::string prefix_extractor_name; 26629: 26629: 26629: 26629: 26629: std::string property_collectors_names; 26629: 26629: 26629: std::string compression_name; 26629: 26629: 26629: std::string compression_options; 26629: 26629: 26629: std::string seqno_to_time_mapping; 26629: 26629: 26629: UserCollectedProperties user_collected_properties; 26629: UserCollectedProperties readable_properties; 26629: 26629: 26629: 26629: std::string ToString(const std::string& prop_delim = "; ", 26629: const std::string& kv_delim = "=") const; 26629: 26629: 26629: 26629: void Add(const TableProperties& tp); 26629: 26629: 26629: 26629: 26629: std::map GetAggregatablePropertiesAsMap() const; 26629: 26629: 26629: 26629: std::size_t ApproximateMemoryUsage() const; 26629: }; 26629: # 323 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_properties.h" 26629: extern uint64_t GetDeletedKeys(const UserCollectedProperties& props); 26629: extern uint64_t GetMergeOperands(const UserCollectedProperties& props, 26629: bool* property_present); 26629: 26629: } 26629: # 22 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: using TablePropertiesCollection = 26629: std::unordered_map>; 26629: 26629: class DB; 26629: class ColumnFamilyHandle; 26629: class Status; 26629: struct CompactionJobStats; 26629: 26629: struct FileCreationBriefInfo { 26629: FileCreationBriefInfo() = default; 26629: FileCreationBriefInfo(const std::string& _db_name, 26629: const std::string& _cf_name, 26629: const std::string& _file_path, int _job_id) 26629: : db_name(_db_name), 26629: cf_name(_cf_name), 26629: file_path(_file_path), 26629: job_id(_job_id) {} 26629: 26629: std::string db_name; 26629: 26629: std::string cf_name; 26629: 26629: std::string file_path; 26629: 26629: 26629: int job_id = 0; 26629: }; 26629: 26629: struct TableFileCreationBriefInfo : public FileCreationBriefInfo { 26629: 26629: TableFileCreationReason reason; 26629: }; 26629: 26629: struct TableFileCreationInfo : public TableFileCreationBriefInfo { 26629: TableFileCreationInfo() = default; 26629: explicit TableFileCreationInfo(TableProperties&& prop) 26629: : table_properties(prop) {} 26629: 26629: uint64_t file_size; 26629: 26629: TableProperties table_properties; 26629: 26629: Status status; 26629: 26629: std::string file_checksum; 26629: 26629: std::string file_checksum_func_name; 26629: }; 26629: 26629: struct BlobFileCreationBriefInfo : public FileCreationBriefInfo { 26629: BlobFileCreationBriefInfo(const std::string& _db_name, 26629: const std::string& _cf_name, 26629: const std::string& _file_path, int _job_id, 26629: BlobFileCreationReason _reason) 26629: : FileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id), 26629: reason(_reason) {} 26629: 26629: BlobFileCreationReason reason; 26629: }; 26629: 26629: struct BlobFileCreationInfo : public BlobFileCreationBriefInfo { 26629: BlobFileCreationInfo(const std::string& _db_name, const std::string& _cf_name, 26629: const std::string& _file_path, int _job_id, 26629: BlobFileCreationReason _reason, 26629: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 26629: Status _status, const std::string& _file_checksum, 26629: const std::string& _file_checksum_func_name) 26629: : BlobFileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id, 26629: _reason), 26629: total_blob_count(_total_blob_count), 26629: total_blob_bytes(_total_blob_bytes), 26629: status(_status), 26629: file_checksum(_file_checksum), 26629: file_checksum_func_name(_file_checksum_func_name) {} 26629: 26629: 26629: uint64_t total_blob_count; 26629: 26629: uint64_t total_blob_bytes; 26629: 26629: Status status; 26629: 26629: std::string file_checksum; 26629: 26629: std::string file_checksum_func_name; 26629: }; 26629: 26629: enum class CompactionReason : int { 26629: kUnknown = 0, 26629: 26629: kLevelL0FilesNum, 26629: 26629: kLevelMaxLevelSize, 26629: 26629: kUniversalSizeAmplification, 26629: 26629: kUniversalSizeRatio, 26629: 26629: kUniversalSortedRunNum, 26629: 26629: kFIFOMaxSize, 26629: 26629: kFIFOReduceNumFiles, 26629: 26629: kFIFOTtl, 26629: 26629: kManualCompaction, 26629: 26629: kFilesMarkedForCompaction, 26629: 26629: 26629: kBottommostFiles, 26629: 26629: kTtl, 26629: 26629: 26629: kFlush, 26629: 26629: kExternalSstIngestion, 26629: 26629: kPeriodicCompaction, 26629: 26629: kChangeTemperature, 26629: 26629: kForcedBlobGC, 26629: 26629: 26629: kRoundRobinTtl, 26629: 26629: kNumOfReasons, 26629: }; 26629: 26629: enum class FlushReason : int { 26629: kOthers = 0x00, 26629: kGetLiveFiles = 0x01, 26629: kShutDown = 0x02, 26629: kExternalFileIngestion = 0x03, 26629: kManualCompaction = 0x04, 26629: kWriteBufferManager = 0x05, 26629: kWriteBufferFull = 0x06, 26629: kTest = 0x07, 26629: kDeleteFiles = 0x08, 26629: kAutoCompaction = 0x09, 26629: kManualFlush = 0x0a, 26629: kErrorRecovery = 0xb, 26629: 26629: 26629: kErrorRecoveryRetryFlush = 0xc, 26629: kWalFull = 0xd, 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: enum class BackgroundErrorReason { 26629: kFlush, 26629: kCompaction, 26629: kWriteCallback, 26629: kMemTable, 26629: kManifestWrite, 26629: kFlushNoWAL, 26629: kManifestWriteNoWAL, 26629: }; 26629: 26629: enum class WriteStallCondition { 26629: kNormal, 26629: kDelayed, 26629: kStopped, 26629: }; 26629: 26629: struct WriteStallInfo { 26629: 26629: std::string cf_name; 26629: 26629: struct { 26629: WriteStallCondition cur; 26629: WriteStallCondition prev; 26629: } condition; 26629: }; 26629: 26629: 26629: 26629: struct FileDeletionInfo { 26629: FileDeletionInfo() = default; 26629: 26629: FileDeletionInfo(const std::string& _db_name, const std::string& _file_path, 26629: int _job_id, Status _status) 26629: : db_name(_db_name), 26629: file_path(_file_path), 26629: job_id(_job_id), 26629: status(_status) {} 26629: 26629: std::string db_name; 26629: 26629: std::string file_path; 26629: 26629: int job_id = 0; 26629: 26629: Status status; 26629: }; 26629: 26629: struct TableFileDeletionInfo : public FileDeletionInfo {}; 26629: 26629: struct BlobFileDeletionInfo : public FileDeletionInfo { 26629: BlobFileDeletionInfo(const std::string& _db_name, 26629: const std::string& _file_path, int _job_id, 26629: Status _status) 26629: : FileDeletionInfo(_db_name, _file_path, _job_id, _status) {} 26629: }; 26629: 26629: enum class FileOperationType { 26629: kRead, 26629: kWrite, 26629: kTruncate, 26629: kClose, 26629: kFlush, 26629: kSync, 26629: kFsync, 26629: kRangeSync, 26629: kAppend, 26629: kPositionedAppend, 26629: kOpen 26629: }; 26629: 26629: struct FileOperationInfo { 26629: using Duration = std::chrono::nanoseconds; 26629: using SteadyTimePoint = 26629: std::chrono::time_point; 26629: using SystemTimePoint = 26629: std::chrono::time_point; 26629: using StartTimePoint = std::pair; 26629: using FinishTimePoint = SteadyTimePoint; 26629: 26629: FileOperationType type; 26629: const std::string& path; 26629: 26629: 26629: Temperature temperature; 26629: uint64_t offset; 26629: size_t length; 26629: const Duration duration; 26629: const SystemTimePoint& start_ts; 26629: Status status; 26629: 26629: FileOperationInfo(const FileOperationType _type, const std::string& _path, 26629: const StartTimePoint& _start_ts, 26629: const FinishTimePoint& _finish_ts, const Status& _status, 26629: const Temperature _temperature = Temperature::kUnknown) 26629: : type(_type), 26629: path(_path), 26629: temperature(_temperature), 26629: duration(std::chrono::duration_cast( 26629: _finish_ts - _start_ts.second)), 26629: start_ts(_start_ts.first), 26629: status(_status) {} 26629: static StartTimePoint StartNow() { 26629: return std::make_pair( 26629: std::chrono::system_clock::now(), std::chrono::steady_clock::now()); 26629: } 26629: static FinishTimePoint FinishNow() { 26629: return std::chrono::steady_clock::now(); 26629: } 26629: }; 26629: 26629: struct BlobFileInfo { 26629: BlobFileInfo(const std::string& _blob_file_path, 26629: const uint64_t _blob_file_number) 26629: : blob_file_path(_blob_file_path), blob_file_number(_blob_file_number) {} 26629: 26629: std::string blob_file_path; 26629: uint64_t blob_file_number; 26629: }; 26629: 26629: struct BlobFileAdditionInfo : public BlobFileInfo { 26629: BlobFileAdditionInfo(const std::string& _blob_file_path, 26629: const uint64_t _blob_file_number, 26629: const uint64_t _total_blob_count, 26629: const uint64_t _total_blob_bytes) 26629: : BlobFileInfo(_blob_file_path, _blob_file_number), 26629: total_blob_count(_total_blob_count), 26629: total_blob_bytes(_total_blob_bytes) {} 26629: uint64_t total_blob_count; 26629: uint64_t total_blob_bytes; 26629: }; 26629: 26629: struct BlobFileGarbageInfo : public BlobFileInfo { 26629: BlobFileGarbageInfo(const std::string& _blob_file_path, 26629: const uint64_t _blob_file_number, 26629: const uint64_t _garbage_blob_count, 26629: const uint64_t _garbage_blob_bytes) 26629: : BlobFileInfo(_blob_file_path, _blob_file_number), 26629: garbage_blob_count(_garbage_blob_count), 26629: garbage_blob_bytes(_garbage_blob_bytes) {} 26629: uint64_t garbage_blob_count; 26629: uint64_t garbage_blob_bytes; 26629: }; 26629: 26629: struct FlushJobInfo { 26629: 26629: uint32_t cf_id; 26629: 26629: std::string cf_name; 26629: 26629: std::string file_path; 26629: 26629: uint64_t file_number; 26629: 26629: uint64_t oldest_blob_file_number; 26629: 26629: uint64_t thread_id; 26629: 26629: int job_id; 26629: 26629: 26629: 26629: 26629: bool triggered_writes_slowdown; 26629: 26629: 26629: 26629: 26629: bool triggered_writes_stop; 26629: 26629: SequenceNumber smallest_seqno; 26629: 26629: SequenceNumber largest_seqno; 26629: 26629: TableProperties table_properties; 26629: 26629: FlushReason flush_reason; 26629: 26629: 26629: CompressionType blob_compression_type; 26629: 26629: 26629: std::vector blob_file_addition_infos; 26629: }; 26629: 26629: struct CompactionFileInfo { 26629: 26629: int level; 26629: 26629: 26629: uint64_t file_number; 26629: 26629: 26629: uint64_t oldest_blob_file_number; 26629: }; 26629: 26629: struct SubcompactionJobInfo { 26629: ~SubcompactionJobInfo() { status.PermitUncheckedError(); } 26629: 26629: uint32_t cf_id; 26629: 26629: std::string cf_name; 26629: 26629: Status status; 26629: 26629: uint64_t thread_id; 26629: 26629: int job_id; 26629: 26629: 26629: 26629: 26629: 26629: int subcompaction_job_id; 26629: 26629: int base_input_level; 26629: 26629: int output_level; 26629: 26629: 26629: CompactionReason compaction_reason; 26629: 26629: 26629: CompressionType compression; 26629: 26629: 26629: CompactionJobStats stats; 26629: 26629: 26629: CompressionType blob_compression_type; 26629: }; 26629: 26629: struct CompactionJobInfo { 26629: ~CompactionJobInfo() { status.PermitUncheckedError(); } 26629: 26629: uint32_t cf_id; 26629: 26629: std::string cf_name; 26629: 26629: Status status; 26629: 26629: uint64_t thread_id; 26629: 26629: int job_id; 26629: 26629: 26629: int base_input_level; 26629: 26629: int output_level; 26629: # 437 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: std::vector input_files; 26629: 26629: 26629: std::vector input_file_infos; 26629: 26629: 26629: std::vector output_files; 26629: 26629: 26629: std::vector output_file_infos; 26629: 26629: 26629: 26629: TablePropertiesCollection table_properties; 26629: 26629: 26629: CompactionReason compaction_reason; 26629: 26629: 26629: CompressionType compression; 26629: 26629: 26629: CompactionJobStats stats; 26629: 26629: 26629: CompressionType blob_compression_type; 26629: 26629: 26629: 26629: std::vector blob_file_addition_infos; 26629: 26629: 26629: 26629: std::vector blob_file_garbage_infos; 26629: }; 26629: 26629: struct MemTableInfo { 26629: 26629: std::string cf_name; 26629: 26629: 26629: SequenceNumber first_seqno; 26629: 26629: 26629: 26629: 26629: SequenceNumber earliest_seqno; 26629: 26629: uint64_t num_entries; 26629: 26629: uint64_t num_deletes; 26629: }; 26629: 26629: struct ExternalFileIngestionInfo { 26629: 26629: std::string cf_name; 26629: 26629: std::string external_file_path; 26629: 26629: std::string internal_file_path; 26629: 26629: SequenceNumber global_seqno; 26629: 26629: TableProperties table_properties; 26629: }; 26629: 26629: 26629: struct BackgroundErrorRecoveryInfo { 26629: 26629: Status old_bg_error; 26629: 26629: 26629: 26629: Status new_bg_error; 26629: }; 26629: 26629: struct IOErrorInfo { 26629: IOErrorInfo(const IOStatus& _io_status, FileOperationType _operation, 26629: const std::string& _file_path, size_t _length, uint64_t _offset) 26629: : io_status(_io_status), 26629: operation(_operation), 26629: file_path(_file_path), 26629: length(_length), 26629: offset(_offset) {} 26629: 26629: IOStatus io_status; 26629: FileOperationType operation; 26629: std::string file_path; 26629: size_t length; 26629: uint64_t offset; 26629: }; 26629: # 560 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: class EventListener : public Customizable { 26629: public: 26629: static const char* Type() { return "EventListener"; } 26629: static Status CreateFromString(const ConfigOptions& options, 26629: const std::string& id, 26629: std::shared_ptr* result); 26629: const char* Name() const override { 26629: 26629: 26629: return ""; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void OnFlushCompleted(DB* , 26629: const FlushJobInfo& ) {} 26629: # 588 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnFlushBegin(DB* , 26629: const FlushJobInfo& ) {} 26629: # 602 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnTableFileDeleted(const TableFileDeletionInfo& ) {} 26629: # 611 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnCompactionBegin(DB* , const CompactionJobInfo& ) {} 26629: # 626 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnCompactionCompleted(DB* , 26629: const CompactionJobInfo& ) {} 26629: # 646 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnSubcompactionBegin(const SubcompactionJobInfo& ) {} 26629: # 664 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnSubcompactionCompleted(const SubcompactionJobInfo& ) {} 26629: # 681 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnTableFileCreated(const TableFileCreationInfo& ) {} 26629: # 690 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnTableFileCreationStarted( 26629: const TableFileCreationBriefInfo& ) {} 26629: # 703 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnMemTableSealed(const MemTableInfo& ) {} 26629: # 713 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnColumnFamilyHandleDeletionStarted( 26629: ColumnFamilyHandle* ) {} 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void OnExternalFileIngested( 26629: DB* , const ExternalFileIngestionInfo& ) {} 26629: # 736 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnBackgroundError(BackgroundErrorReason , 26629: Status* ) {} 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void OnStallConditionsChanged(const WriteStallInfo& ) {} 26629: 26629: 26629: 26629: virtual void OnFileReadFinish(const FileOperationInfo& ) {} 26629: 26629: 26629: 26629: virtual void OnFileWriteFinish(const FileOperationInfo& ) {} 26629: 26629: 26629: 26629: virtual void OnFileFlushFinish(const FileOperationInfo& ) {} 26629: 26629: 26629: 26629: virtual void OnFileSyncFinish(const FileOperationInfo& ) {} 26629: 26629: 26629: 26629: virtual void OnFileRangeSyncFinish(const FileOperationInfo& ) {} 26629: 26629: 26629: 26629: virtual void OnFileTruncateFinish(const FileOperationInfo& ) {} 26629: 26629: 26629: 26629: virtual void OnFileCloseFinish(const FileOperationInfo& ) {} 26629: 26629: 26629: 26629: virtual bool ShouldBeNotifiedOnFileIO() { return false; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void OnErrorRecoveryBegin(BackgroundErrorReason , 26629: Status , 26629: bool* ) {} 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void OnErrorRecoveryCompleted(Status old_bg_error) { 26629: old_bg_error.PermitUncheckedError(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void OnErrorRecoveryEnd(const BackgroundErrorRecoveryInfo& ) { 26629: } 26629: # 812 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnBlobFileCreationStarted( 26629: const BlobFileCreationBriefInfo& ) {} 26629: # 823 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: virtual void OnBlobFileCreated(const BlobFileCreationInfo& ) {} 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void OnBlobFileDeleted(const BlobFileDeletionInfo& ) {} 26629: 26629: 26629: 26629: virtual void OnIOError(const IOErrorInfo& ) {} 26629: 26629: ~EventListener() override {} 26629: }; 26629: # 847 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 26629: } 26629: # 28 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/sst_partitioner.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/sst_partitioner.h" 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: 26629: enum PartitionerResult : char { 26629: 26629: kNotRequired = 0x0, 26629: 26629: kRequired = 0x1 26629: 26629: }; 26629: 26629: struct PartitionerRequest { 26629: PartitionerRequest(const Slice& prev_user_key_, 26629: const Slice& current_user_key_, 26629: uint64_t current_output_file_size_) 26629: : prev_user_key(&prev_user_key_), 26629: current_user_key(¤t_user_key_), 26629: current_output_file_size(current_output_file_size_) {} 26629: const Slice* prev_user_key; 26629: const Slice* current_user_key; 26629: uint64_t current_output_file_size; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class SstPartitioner { 26629: public: 26629: virtual ~SstPartitioner() {} 26629: 26629: 26629: virtual const char* Name() const = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual PartitionerResult ShouldPartition( 26629: const PartitionerRequest& request) = 0; 26629: 26629: 26629: 26629: virtual bool CanDoTrivialMove(const Slice& smallest_user_key, 26629: const Slice& largest_user_key) = 0; 26629: 26629: 26629: struct Context { 26629: 26629: bool is_full_compaction; 26629: 26629: 26629: bool is_manual_compaction; 26629: 26629: int output_level; 26629: 26629: Slice smallest_user_key; 26629: 26629: Slice largest_user_key; 26629: }; 26629: }; 26629: 26629: 26629: 26629: 26629: class SstPartitionerFactory : public Customizable { 26629: public: 26629: ~SstPartitionerFactory() override {} 26629: static const char* Type() { return "SstPartitionerFactory"; } 26629: static Status CreateFromString( 26629: const ConfigOptions& options, const std::string& value, 26629: std::shared_ptr* result); 26629: 26629: virtual std::unique_ptr CreatePartitioner( 26629: const SstPartitioner::Context& context) const = 0; 26629: 26629: 26629: const char* Name() const override = 0; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: class SstPartitionerFixedPrefix : public SstPartitioner { 26629: public: 26629: explicit SstPartitionerFixedPrefix(size_t len) : len_(len) {} 26629: 26629: virtual ~SstPartitionerFixedPrefix() override {} 26629: 26629: const char* Name() const override { return "SstPartitionerFixedPrefix"; } 26629: 26629: PartitionerResult ShouldPartition(const PartitionerRequest& request) override; 26629: 26629: bool CanDoTrivialMove(const Slice& smallest_user_key, 26629: const Slice& largest_user_key) override; 26629: 26629: private: 26629: size_t len_; 26629: }; 26629: 26629: 26629: 26629: 26629: class SstPartitionerFixedPrefixFactory : public SstPartitionerFactory { 26629: public: 26629: explicit SstPartitionerFixedPrefixFactory(size_t len); 26629: 26629: ~SstPartitionerFixedPrefixFactory() override {} 26629: 26629: static const char* kClassName() { return "SstPartitionerFixedPrefixFactory"; } 26629: const char* Name() const override { return kClassName(); } 26629: 26629: std::unique_ptr CreatePartitioner( 26629: const SstPartitioner::Context& ) const override; 26629: 26629: private: 26629: size_t len_; 26629: }; 26629: 26629: extern std::shared_ptr 26629: NewSstPartitionerFixedPrefixFactory(size_t prefix_len); 26629: 26629: } 26629: # 29 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/version.h" 1 26629: 26629: 26629: 26629: 26629: 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/version.h" 26629: namespace rocksdb { 26629: 26629: 26629: const std::unordered_map& GetRocksBuildProperties(); 26629: 26629: 26629: 26629: 26629: std::string GetRocksVersionAsString(bool with_patch = true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: std::string GetRocksBuildInfoAsString(const std::string& program, 26629: bool verbose = false); 26629: } 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 1 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/condition_variable" 1 3 26629: # 32 "/usr/include/c++/12/condition_variable" 3 26629: 26629: # 33 "/usr/include/c++/12/condition_variable" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/std_mutex.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/std_mutex.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/std_mutex.h" 3 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/system_error" 1 3 26629: # 32 "/usr/include/c++/12/system_error" 3 26629: 26629: # 33 "/usr/include/c++/12/system_error" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/error_constants.h" 1 3 26629: # 34 "/usr/include/arm-linux-gnueabihf/c++/12/bits/error_constants.h" 3 26629: # 1 "/usr/include/c++/12/cerrno" 1 3 26629: # 39 "/usr/include/c++/12/cerrno" 3 26629: 26629: # 40 "/usr/include/c++/12/cerrno" 3 26629: # 35 "/usr/include/arm-linux-gnueabihf/c++/12/bits/error_constants.h" 2 3 26629: 26629: 26629: # 36 "/usr/include/arm-linux-gnueabihf/c++/12/bits/error_constants.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: enum class errc 26629: { 26629: address_family_not_supported = 97, 26629: address_in_use = 98, 26629: address_not_available = 99, 26629: already_connected = 106, 26629: argument_list_too_long = 7, 26629: argument_out_of_domain = 33, 26629: bad_address = 14, 26629: bad_file_descriptor = 9, 26629: 26629: 26629: bad_message = 74, 26629: 26629: 26629: broken_pipe = 32, 26629: connection_aborted = 103, 26629: connection_already_in_progress = 114, 26629: connection_refused = 111, 26629: connection_reset = 104, 26629: cross_device_link = 18, 26629: destination_address_required = 89, 26629: device_or_resource_busy = 16, 26629: directory_not_empty = 39, 26629: executable_format_error = 8, 26629: file_exists = 17, 26629: file_too_large = 27, 26629: filename_too_long = 36, 26629: function_not_supported = 38, 26629: host_unreachable = 113, 26629: 26629: 26629: identifier_removed = 43, 26629: 26629: 26629: illegal_byte_sequence = 84, 26629: inappropriate_io_control_operation = 25, 26629: interrupted = 4, 26629: invalid_argument = 22, 26629: invalid_seek = 29, 26629: io_error = 5, 26629: is_a_directory = 21, 26629: message_size = 90, 26629: network_down = 100, 26629: network_reset = 102, 26629: network_unreachable = 101, 26629: no_buffer_space = 105, 26629: no_child_process = 10, 26629: 26629: 26629: no_link = 67, 26629: 26629: 26629: no_lock_available = 37, 26629: 26629: 26629: no_message_available = 61, 26629: 26629: 26629: no_message = 42, 26629: no_protocol_option = 92, 26629: no_space_on_device = 28, 26629: 26629: 26629: no_stream_resources = 63, 26629: 26629: 26629: no_such_device_or_address = 6, 26629: no_such_device = 19, 26629: no_such_file_or_directory = 2, 26629: no_such_process = 3, 26629: not_a_directory = 20, 26629: not_a_socket = 88, 26629: 26629: 26629: not_a_stream = 60, 26629: 26629: 26629: not_connected = 107, 26629: not_enough_memory = 12, 26629: 26629: 26629: not_supported = 95, 26629: 26629: 26629: 26629: operation_canceled = 125, 26629: 26629: 26629: operation_in_progress = 115, 26629: operation_not_permitted = 1, 26629: operation_not_supported = 95, 26629: operation_would_block = 11, 26629: 26629: 26629: owner_dead = 130, 26629: 26629: 26629: permission_denied = 13, 26629: 26629: 26629: protocol_error = 71, 26629: 26629: 26629: protocol_not_supported = 93, 26629: read_only_file_system = 30, 26629: resource_deadlock_would_occur = 35, 26629: resource_unavailable_try_again = 11, 26629: result_out_of_range = 34, 26629: 26629: 26629: state_not_recoverable = 131, 26629: 26629: 26629: 26629: stream_timeout = 62, 26629: 26629: 26629: 26629: text_file_busy = 26, 26629: 26629: 26629: timed_out = 110, 26629: too_many_files_open_in_system = 23, 26629: too_many_files_open = 24, 26629: too_many_links = 31, 26629: too_many_symbolic_link_levels = 40, 26629: 26629: 26629: value_too_large = 75, 26629: 26629: 26629: wrong_protocol_type = 91 26629: }; 26629: 26629: 26629: } 26629: # 40 "/usr/include/c++/12/system_error" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: class error_code; 26629: class error_condition; 26629: class system_error; 26629: 26629: 26629: template 26629: struct is_error_code_enum : public false_type { }; 26629: 26629: 26629: template 26629: struct is_error_condition_enum : public false_type { }; 26629: 26629: template<> 26629: struct is_error_condition_enum 26629: : public true_type { }; 26629: 26629: 26629: template 26629: inline constexpr bool is_error_code_enum_v = 26629: is_error_code_enum<_Tp>::value; 26629: template 26629: inline constexpr bool is_error_condition_enum_v = 26629: is_error_condition_enum<_Tp>::value; 26629: 26629: 26629: 26629: inline namespace _V2 { 26629: # 97 "/usr/include/c++/12/system_error" 3 26629: class error_category 26629: { 26629: public: 26629: constexpr error_category() noexcept = default; 26629: 26629: virtual ~error_category(); 26629: 26629: error_category(const error_category&) = delete; 26629: error_category& operator=(const error_category&) = delete; 26629: 26629: virtual const char* 26629: name() const noexcept = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: private: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: virtual __cow_string 26629: _M_message(int) const; 26629: 26629: public: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: virtual string 26629: message(int) const = 0; 26629: # 133 "/usr/include/c++/12/system_error" 3 26629: public: 26629: virtual error_condition 26629: default_error_condition(int __i) const noexcept; 26629: 26629: virtual bool 26629: equivalent(int __i, const error_condition& __cond) const noexcept; 26629: 26629: virtual bool 26629: equivalent(const error_code& __code, int __i) const noexcept; 26629: 26629: bool 26629: operator==(const error_category& __other) const noexcept 26629: { return this == &__other; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool 26629: operator!=(const error_category& __other) const noexcept 26629: { return this != &__other; } 26629: 26629: bool 26629: operator<(const error_category& __other) const noexcept 26629: { return less()(this, &__other); } 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: __attribute__ ((__const__)) const error_category& generic_category() noexcept; 26629: 26629: 26629: __attribute__ ((__const__)) const error_category& system_category() noexcept; 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: error_code make_error_code(errc) noexcept; 26629: # 196 "/usr/include/c++/12/system_error" 3 26629: class error_code 26629: { 26629: public: 26629: error_code() noexcept 26629: : _M_value(0), _M_cat(&system_category()) { } 26629: 26629: error_code(int __v, const error_category& __cat) noexcept 26629: : _M_value(__v), _M_cat(&__cat) { } 26629: 26629: template::value>::type> 26629: error_code(_ErrorCodeEnum __e) noexcept 26629: { *this = make_error_code(__e); } 26629: 26629: void 26629: assign(int __v, const error_category& __cat) noexcept 26629: { 26629: _M_value = __v; 26629: _M_cat = &__cat; 26629: } 26629: 26629: void 26629: clear() noexcept 26629: { assign(0, system_category()); } 26629: 26629: 26629: template 26629: typename enable_if::value, 26629: error_code&>::type 26629: operator=(_ErrorCodeEnum __e) noexcept 26629: { return *this = make_error_code(__e); } 26629: 26629: int 26629: value() const noexcept { return _M_value; } 26629: 26629: const error_category& 26629: category() const noexcept { return *_M_cat; } 26629: 26629: error_condition 26629: default_error_condition() const noexcept; 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: string 26629: message() const 26629: { return category().message(value()); } 26629: 26629: explicit operator bool() const noexcept 26629: { return _M_value != 0; } 26629: 26629: 26629: private: 26629: int _M_value; 26629: const error_category* _M_cat; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: inline error_code 26629: make_error_code(errc __e) noexcept 26629: { return error_code(static_cast(__e), generic_category()); } 26629: # 268 "/usr/include/c++/12/system_error" 3 26629: inline bool 26629: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 26629: { 26629: return (__lhs.category() < __rhs.category() 26629: || (__lhs.category() == __rhs.category() 26629: && __lhs.value() < __rhs.value())); 26629: } 26629: 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 26629: { return (__os << __e.category().name() << ':' << __e.value()); } 26629: 26629: 26629: 26629: error_condition make_error_condition(errc) noexcept; 26629: # 297 "/usr/include/c++/12/system_error" 3 26629: class error_condition 26629: { 26629: public: 26629: error_condition() noexcept 26629: : _M_value(0), _M_cat(&generic_category()) { } 26629: 26629: error_condition(int __v, const error_category& __cat) noexcept 26629: : _M_value(__v), _M_cat(&__cat) { } 26629: 26629: template::value>::type> 26629: error_condition(_ErrorConditionEnum __e) noexcept 26629: { *this = make_error_condition(__e); } 26629: 26629: void 26629: assign(int __v, const error_category& __cat) noexcept 26629: { 26629: _M_value = __v; 26629: _M_cat = &__cat; 26629: } 26629: 26629: 26629: template 26629: typename enable_if::value, error_condition&>::type 26629: operator=(_ErrorConditionEnum __e) noexcept 26629: { return *this = make_error_condition(__e); } 26629: 26629: void 26629: clear() noexcept 26629: { assign(0, generic_category()); } 26629: 26629: 26629: int 26629: value() const noexcept { return _M_value; } 26629: 26629: const error_category& 26629: category() const noexcept { return *_M_cat; } 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: string 26629: message() const 26629: { return category().message(value()); } 26629: 26629: explicit operator bool() const noexcept 26629: { return _M_value != 0; } 26629: 26629: 26629: private: 26629: int _M_value; 26629: const error_category* _M_cat; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: inline error_condition 26629: make_error_condition(errc __e) noexcept 26629: { return error_condition(static_cast(__e), generic_category()); } 26629: 26629: 26629: 26629: 26629: inline bool 26629: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 26629: { return (__lhs.category() == __rhs.category() 26629: && __lhs.value() == __rhs.value()); } 26629: 26629: 26629: inline bool 26629: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 26629: { 26629: return (__lhs.category().equivalent(__lhs.value(), __rhs) 26629: || __rhs.category().equivalent(__lhs, __rhs.value())); 26629: } 26629: 26629: 26629: inline bool 26629: operator==(const error_condition& __lhs, 26629: const error_condition& __rhs) noexcept 26629: { 26629: return (__lhs.category() == __rhs.category() 26629: && __lhs.value() == __rhs.value()); 26629: } 26629: # 397 "/usr/include/c++/12/system_error" 3 26629: inline bool 26629: operator<(const error_condition& __lhs, 26629: const error_condition& __rhs) noexcept 26629: { 26629: return (__lhs.category() < __rhs.category() 26629: || (__lhs.category() == __rhs.category() 26629: && __lhs.value() < __rhs.value())); 26629: } 26629: 26629: 26629: inline bool 26629: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 26629: { 26629: return (__rhs.category().equivalent(__rhs.value(), __lhs) 26629: || __lhs.category().equivalent(__rhs, __lhs.value())); 26629: } 26629: 26629: 26629: inline bool 26629: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 26629: { return !(__lhs == __rhs); } 26629: 26629: 26629: inline bool 26629: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 26629: { return !(__lhs == __rhs); } 26629: 26629: 26629: inline bool 26629: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 26629: { return !(__lhs == __rhs); } 26629: 26629: 26629: inline bool 26629: operator!=(const error_condition& __lhs, 26629: const error_condition& __rhs) noexcept 26629: { return !(__lhs == __rhs); } 26629: # 446 "/usr/include/c++/12/system_error" 3 26629: class system_error : public std::runtime_error 26629: { 26629: private: 26629: error_code _M_code; 26629: 26629: public: 26629: system_error(error_code __ec = error_code()) 26629: : runtime_error(__ec.message()), _M_code(__ec) { } 26629: 26629: system_error(error_code __ec, const string& __what) 26629: : runtime_error(__what + ": " + __ec.message()), _M_code(__ec) { } 26629: 26629: system_error(error_code __ec, const char* __what) 26629: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 26629: 26629: system_error(int __v, const error_category& __ecat, const char* __what) 26629: : system_error(error_code(__v, __ecat), __what) { } 26629: 26629: system_error(int __v, const error_category& __ecat) 26629: : runtime_error(error_code(__v, __ecat).message()), 26629: _M_code(__v, __ecat) { } 26629: 26629: system_error(int __v, const error_category& __ecat, const string& __what) 26629: : runtime_error(__what + ": " + error_code(__v, __ecat).message()), 26629: _M_code(__v, __ecat) { } 26629: 26629: 26629: system_error (const system_error &) = default; 26629: system_error &operator= (const system_error &) = default; 26629: 26629: 26629: virtual ~system_error() noexcept; 26629: 26629: const error_code& 26629: code() const noexcept { return _M_code; } 26629: }; 26629: 26629: 26629: } 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const error_code& __e) const noexcept 26629: { 26629: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 26629: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: struct hash 26629: : public __hash_base 26629: { 26629: size_t 26629: operator()(const error_condition& __e) const noexcept 26629: { 26629: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 26629: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 26629: } 26629: }; 26629: 26629: 26629: 26629: } 26629: # 40 "/usr/include/c++/12/bits/std_mutex.h" 2 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 57 "/usr/include/c++/12/bits/std_mutex.h" 3 26629: class __mutex_base 26629: { 26629: protected: 26629: typedef __gthread_mutex_t __native_type; 26629: 26629: 26629: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 26629: 26629: constexpr __mutex_base() noexcept = default; 26629: # 78 "/usr/include/c++/12/bits/std_mutex.h" 3 26629: __mutex_base(const __mutex_base&) = delete; 26629: __mutex_base& operator=(const __mutex_base&) = delete; 26629: }; 26629: 26629: 26629: class mutex : private __mutex_base 26629: { 26629: public: 26629: typedef __native_type* native_handle_type; 26629: 26629: 26629: constexpr 26629: 26629: mutex() noexcept = default; 26629: ~mutex() = default; 26629: 26629: mutex(const mutex&) = delete; 26629: mutex& operator=(const mutex&) = delete; 26629: 26629: void 26629: lock() 26629: { 26629: int __e = __gthread_mutex_lock(&_M_mutex); 26629: 26629: 26629: if (__e) 26629: __throw_system_error(__e); 26629: } 26629: 26629: bool 26629: try_lock() noexcept 26629: { 26629: 26629: return !__gthread_mutex_trylock(&_M_mutex); 26629: } 26629: 26629: void 26629: unlock() 26629: { 26629: 26629: __gthread_mutex_unlock(&_M_mutex); 26629: } 26629: 26629: native_handle_type 26629: native_handle() noexcept 26629: { return &_M_mutex; } 26629: }; 26629: 26629: 26629: class __condvar 26629: { 26629: using timespec = __gthread_time_t; 26629: 26629: public: 26629: __condvar() noexcept 26629: { 26629: 26629: 26629: 26629: } 26629: 26629: ~__condvar() 26629: { 26629: int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); 26629: do { if (std::__is_constant_evaluated() && !bool(__e != 16)) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: __condvar(const __condvar&) = delete; 26629: __condvar& operator=(const __condvar&) = delete; 26629: 26629: __gthread_cond_t* native_handle() noexcept { return &_M_cond; } 26629: 26629: 26629: void 26629: wait(mutex& __m) 26629: { 26629: int __e __attribute__((__unused__)) 26629: = __gthread_cond_wait(&_M_cond, __m.native_handle()); 26629: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: void 26629: wait_until(mutex& __m, timespec& __abs_time) 26629: { 26629: __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); 26629: } 26629: 26629: 26629: void 26629: wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) 26629: { 26629: pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, 26629: &__abs_time); 26629: } 26629: 26629: 26629: void 26629: notify_one() noexcept 26629: { 26629: int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); 26629: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: void 26629: notify_all() noexcept 26629: { 26629: int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); 26629: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: protected: 26629: 26629: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: struct defer_lock_t { explicit defer_lock_t() = default; }; 26629: 26629: 26629: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 26629: 26629: 26629: 26629: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 26629: 26629: 26629: inline constexpr defer_lock_t defer_lock { }; 26629: 26629: 26629: inline constexpr try_to_lock_t try_to_lock { }; 26629: 26629: 26629: inline constexpr adopt_lock_t adopt_lock { }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class lock_guard 26629: { 26629: public: 26629: typedef _Mutex mutex_type; 26629: 26629: explicit lock_guard(mutex_type& __m) : _M_device(__m) 26629: { _M_device.lock(); } 26629: 26629: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 26629: { } 26629: 26629: ~lock_guard() 26629: { _M_device.unlock(); } 26629: 26629: lock_guard(const lock_guard&) = delete; 26629: lock_guard& operator=(const lock_guard&) = delete; 26629: 26629: private: 26629: mutex_type& _M_device; 26629: }; 26629: 26629: 26629: 26629: } 26629: # 40 "/usr/include/c++/12/condition_variable" 2 3 26629: # 1 "/usr/include/c++/12/bits/unique_lock.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/unique_lock.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/unique_lock.h" 3 26629: # 43 "/usr/include/c++/12/bits/unique_lock.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 56 "/usr/include/c++/12/bits/unique_lock.h" 3 26629: template 26629: class unique_lock 26629: { 26629: public: 26629: typedef _Mutex mutex_type; 26629: 26629: unique_lock() noexcept 26629: : _M_device(0), _M_owns(false) 26629: { } 26629: 26629: explicit unique_lock(mutex_type& __m) 26629: : _M_device(std::__addressof(__m)), _M_owns(false) 26629: { 26629: lock(); 26629: _M_owns = true; 26629: } 26629: 26629: unique_lock(mutex_type& __m, defer_lock_t) noexcept 26629: : _M_device(std::__addressof(__m)), _M_owns(false) 26629: { } 26629: 26629: unique_lock(mutex_type& __m, try_to_lock_t) 26629: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 26629: { } 26629: 26629: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 26629: : _M_device(std::__addressof(__m)), _M_owns(true) 26629: { 26629: 26629: } 26629: 26629: template 26629: unique_lock(mutex_type& __m, 26629: const chrono::time_point<_Clock, _Duration>& __atime) 26629: : _M_device(std::__addressof(__m)), 26629: _M_owns(_M_device->try_lock_until(__atime)) 26629: { } 26629: 26629: template 26629: unique_lock(mutex_type& __m, 26629: const chrono::duration<_Rep, _Period>& __rtime) 26629: : _M_device(std::__addressof(__m)), 26629: _M_owns(_M_device->try_lock_for(__rtime)) 26629: { } 26629: 26629: ~unique_lock() 26629: { 26629: if (_M_owns) 26629: unlock(); 26629: } 26629: 26629: unique_lock(const unique_lock&) = delete; 26629: unique_lock& operator=(const unique_lock&) = delete; 26629: 26629: unique_lock(unique_lock&& __u) noexcept 26629: : _M_device(__u._M_device), _M_owns(__u._M_owns) 26629: { 26629: __u._M_device = 0; 26629: __u._M_owns = false; 26629: } 26629: 26629: unique_lock& operator=(unique_lock&& __u) noexcept 26629: { 26629: if(_M_owns) 26629: unlock(); 26629: 26629: unique_lock(std::move(__u)).swap(*this); 26629: 26629: __u._M_device = 0; 26629: __u._M_owns = false; 26629: 26629: return *this; 26629: } 26629: 26629: void 26629: lock() 26629: { 26629: if (!_M_device) 26629: __throw_system_error(int(errc::operation_not_permitted)); 26629: else if (_M_owns) 26629: __throw_system_error(int(errc::resource_deadlock_would_occur)); 26629: else 26629: { 26629: _M_device->lock(); 26629: _M_owns = true; 26629: } 26629: } 26629: 26629: bool 26629: try_lock() 26629: { 26629: if (!_M_device) 26629: __throw_system_error(int(errc::operation_not_permitted)); 26629: else if (_M_owns) 26629: __throw_system_error(int(errc::resource_deadlock_would_occur)); 26629: else 26629: { 26629: _M_owns = _M_device->try_lock(); 26629: return _M_owns; 26629: } 26629: } 26629: 26629: template 26629: bool 26629: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 26629: { 26629: if (!_M_device) 26629: __throw_system_error(int(errc::operation_not_permitted)); 26629: else if (_M_owns) 26629: __throw_system_error(int(errc::resource_deadlock_would_occur)); 26629: else 26629: { 26629: _M_owns = _M_device->try_lock_until(__atime); 26629: return _M_owns; 26629: } 26629: } 26629: 26629: template 26629: bool 26629: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 26629: { 26629: if (!_M_device) 26629: __throw_system_error(int(errc::operation_not_permitted)); 26629: else if (_M_owns) 26629: __throw_system_error(int(errc::resource_deadlock_would_occur)); 26629: else 26629: { 26629: _M_owns = _M_device->try_lock_for(__rtime); 26629: return _M_owns; 26629: } 26629: } 26629: 26629: void 26629: unlock() 26629: { 26629: if (!_M_owns) 26629: __throw_system_error(int(errc::operation_not_permitted)); 26629: else if (_M_device) 26629: { 26629: _M_device->unlock(); 26629: _M_owns = false; 26629: } 26629: } 26629: 26629: void 26629: swap(unique_lock& __u) noexcept 26629: { 26629: std::swap(_M_device, __u._M_device); 26629: std::swap(_M_owns, __u._M_owns); 26629: } 26629: 26629: mutex_type* 26629: release() noexcept 26629: { 26629: mutex_type* __ret = _M_device; 26629: _M_device = 0; 26629: _M_owns = false; 26629: return __ret; 26629: } 26629: 26629: bool 26629: owns_lock() const noexcept 26629: { return _M_owns; } 26629: 26629: explicit operator bool() const noexcept 26629: { return owns_lock(); } 26629: 26629: mutex_type* 26629: mutex() const noexcept 26629: { return _M_device; } 26629: 26629: private: 26629: mutex_type* _M_device; 26629: bool _M_owns; 26629: }; 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 26629: { __x.swap(__y); } 26629: 26629: 26629: } 26629: # 41 "/usr/include/c++/12/condition_variable" 2 3 26629: # 51 "/usr/include/c++/12/condition_variable" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 64 "/usr/include/c++/12/condition_variable" 3 26629: enum class cv_status { no_timeout, timeout }; 26629: 26629: 26629: class condition_variable 26629: { 26629: using steady_clock = chrono::steady_clock; 26629: using system_clock = chrono::system_clock; 26629: 26629: using __clock_t = steady_clock; 26629: 26629: 26629: 26629: 26629: __condvar _M_cond; 26629: 26629: public: 26629: typedef __gthread_cond_t* native_handle_type; 26629: 26629: condition_variable() noexcept; 26629: ~condition_variable() noexcept; 26629: 26629: condition_variable(const condition_variable&) = delete; 26629: condition_variable& operator=(const condition_variable&) = delete; 26629: 26629: void 26629: notify_one() noexcept; 26629: 26629: void 26629: notify_all() noexcept; 26629: 26629: void 26629: wait(unique_lock& __lock); 26629: 26629: template 26629: void 26629: wait(unique_lock& __lock, _Predicate __p) 26629: { 26629: while (!__p()) 26629: wait(__lock); 26629: } 26629: 26629: 26629: template 26629: cv_status 26629: wait_until(unique_lock& __lock, 26629: const chrono::time_point& __atime) 26629: { return __wait_until_impl(__lock, __atime); } 26629: 26629: 26629: template 26629: cv_status 26629: wait_until(unique_lock& __lock, 26629: const chrono::time_point& __atime) 26629: { return __wait_until_impl(__lock, __atime); } 26629: 26629: template 26629: cv_status 26629: wait_until(unique_lock& __lock, 26629: const chrono::time_point<_Clock, _Duration>& __atime) 26629: { 26629: 26629: 26629: 26629: using __s_dur = typename __clock_t::duration; 26629: const typename _Clock::time_point __c_entry = _Clock::now(); 26629: const __clock_t::time_point __s_entry = __clock_t::now(); 26629: const auto __delta = __atime - __c_entry; 26629: const auto __s_atime = __s_entry + 26629: chrono::__detail::ceil<__s_dur>(__delta); 26629: 26629: if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) 26629: return cv_status::no_timeout; 26629: 26629: 26629: 26629: if (_Clock::now() < __atime) 26629: return cv_status::no_timeout; 26629: return cv_status::timeout; 26629: } 26629: 26629: template 26629: bool 26629: wait_until(unique_lock& __lock, 26629: const chrono::time_point<_Clock, _Duration>& __atime, 26629: _Predicate __p) 26629: { 26629: while (!__p()) 26629: if (wait_until(__lock, __atime) == cv_status::timeout) 26629: return __p(); 26629: return true; 26629: } 26629: 26629: template 26629: cv_status 26629: wait_for(unique_lock& __lock, 26629: const chrono::duration<_Rep, _Period>& __rtime) 26629: { 26629: using __dur = typename steady_clock::duration; 26629: return wait_until(__lock, 26629: steady_clock::now() + 26629: chrono::__detail::ceil<__dur>(__rtime)); 26629: } 26629: 26629: template 26629: bool 26629: wait_for(unique_lock& __lock, 26629: const chrono::duration<_Rep, _Period>& __rtime, 26629: _Predicate __p) 26629: { 26629: using __dur = typename steady_clock::duration; 26629: return wait_until(__lock, 26629: steady_clock::now() + 26629: chrono::__detail::ceil<__dur>(__rtime), 26629: std::move(__p)); 26629: } 26629: 26629: native_handle_type 26629: native_handle() 26629: { return _M_cond.native_handle(); } 26629: 26629: private: 26629: 26629: template 26629: cv_status 26629: __wait_until_impl(unique_lock& __lock, 26629: const chrono::time_point& __atime) 26629: { 26629: auto __s = chrono::time_point_cast(__atime); 26629: auto __ns = chrono::duration_cast(__atime - __s); 26629: 26629: __gthread_time_t __ts = 26629: { 26629: static_cast(__s.time_since_epoch().count()), 26629: static_cast(__ns.count()) 26629: }; 26629: 26629: _M_cond.wait_until(*__lock.mutex(), 1, __ts); 26629: 26629: return (steady_clock::now() < __atime 26629: ? cv_status::no_timeout : cv_status::timeout); 26629: } 26629: 26629: 26629: template 26629: cv_status 26629: __wait_until_impl(unique_lock& __lock, 26629: const chrono::time_point& __atime) 26629: { 26629: auto __s = chrono::time_point_cast(__atime); 26629: auto __ns = chrono::duration_cast(__atime - __s); 26629: 26629: __gthread_time_t __ts = 26629: { 26629: static_cast(__s.time_since_epoch().count()), 26629: static_cast(__ns.count()) 26629: }; 26629: 26629: _M_cond.wait_until(*__lock.mutex(), __ts); 26629: 26629: return (system_clock::now() < __atime 26629: ? cv_status::no_timeout : cv_status::timeout); 26629: } 26629: }; 26629: 26629: void 26629: notify_all_at_thread_exit(condition_variable&, unique_lock); 26629: 26629: struct __at_thread_exit_elt 26629: { 26629: __at_thread_exit_elt* _M_next; 26629: void (*_M_cb)(void*); 26629: }; 26629: 26629: inline namespace _V2 { 26629: 26629: 26629: 26629: class condition_variable_any 26629: { 26629: 26629: using __clock_t = chrono::steady_clock; 26629: 26629: 26629: 26629: condition_variable _M_cond; 26629: shared_ptr _M_mutex; 26629: 26629: 26629: template 26629: struct _Unlock 26629: { 26629: explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: ~_Unlock() noexcept(false) 26629: { 26629: if (uncaught_exception()) 26629: { 26629: try 26629: { _M_lock.lock(); } 26629: catch(const __cxxabiv1::__forced_unwind&) 26629: { throw; } 26629: catch(...) 26629: { } 26629: } 26629: else 26629: _M_lock.lock(); 26629: } 26629: #pragma GCC diagnostic pop 26629: 26629: _Unlock(const _Unlock&) = delete; 26629: _Unlock& operator=(const _Unlock&) = delete; 26629: 26629: _Lock& _M_lock; 26629: }; 26629: 26629: public: 26629: condition_variable_any() : _M_mutex(std::make_shared()) { } 26629: ~condition_variable_any() = default; 26629: 26629: condition_variable_any(const condition_variable_any&) = delete; 26629: condition_variable_any& operator=(const condition_variable_any&) = delete; 26629: 26629: void 26629: notify_one() noexcept 26629: { 26629: lock_guard __lock(*_M_mutex); 26629: _M_cond.notify_one(); 26629: } 26629: 26629: void 26629: notify_all() noexcept 26629: { 26629: lock_guard __lock(*_M_mutex); 26629: _M_cond.notify_all(); 26629: } 26629: 26629: template 26629: void 26629: wait(_Lock& __lock) 26629: { 26629: shared_ptr __mutex = _M_mutex; 26629: unique_lock __my_lock(*__mutex); 26629: _Unlock<_Lock> __unlock(__lock); 26629: 26629: 26629: unique_lock __my_lock2(std::move(__my_lock)); 26629: _M_cond.wait(__my_lock2); 26629: } 26629: 26629: 26629: template 26629: void 26629: wait(_Lock& __lock, _Predicate __p) 26629: { 26629: while (!__p()) 26629: wait(__lock); 26629: } 26629: 26629: template 26629: cv_status 26629: wait_until(_Lock& __lock, 26629: const chrono::time_point<_Clock, _Duration>& __atime) 26629: { 26629: shared_ptr __mutex = _M_mutex; 26629: unique_lock __my_lock(*__mutex); 26629: _Unlock<_Lock> __unlock(__lock); 26629: 26629: 26629: unique_lock __my_lock2(std::move(__my_lock)); 26629: return _M_cond.wait_until(__my_lock2, __atime); 26629: } 26629: 26629: template 26629: bool 26629: wait_until(_Lock& __lock, 26629: const chrono::time_point<_Clock, _Duration>& __atime, 26629: _Predicate __p) 26629: { 26629: while (!__p()) 26629: if (wait_until(__lock, __atime) == cv_status::timeout) 26629: return __p(); 26629: return true; 26629: } 26629: 26629: template 26629: cv_status 26629: wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) 26629: { return wait_until(__lock, __clock_t::now() + __rtime); } 26629: 26629: template 26629: bool 26629: wait_for(_Lock& __lock, 26629: const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) 26629: { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } 26629: # 440 "/usr/include/c++/12/condition_variable" 3 26629: }; 26629: 26629: } 26629: 26629: 26629: 26629: } 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 2 26629: 26629: # 1 "/usr/include/c++/12/list" 1 3 26629: # 58 "/usr/include/c++/12/list" 3 26629: 26629: # 59 "/usr/include/c++/12/list" 3 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/stl_list.h" 1 3 26629: # 68 "/usr/include/c++/12/bits/stl_list.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: namespace __detail 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct _List_node_base 26629: { 26629: _List_node_base* _M_next; 26629: _List_node_base* _M_prev; 26629: 26629: static void 26629: swap(_List_node_base& __x, _List_node_base& __y) noexcept; 26629: 26629: void 26629: _M_transfer(_List_node_base* const __first, 26629: _List_node_base* const __last) noexcept; 26629: 26629: void 26629: _M_reverse() noexcept; 26629: 26629: void 26629: _M_hook(_List_node_base* const __position) noexcept; 26629: 26629: void 26629: _M_unhook() noexcept; 26629: }; 26629: 26629: 26629: struct _List_node_header : public _List_node_base 26629: { 26629: 26629: std::size_t _M_size; 26629: 26629: 26629: _List_node_header() noexcept 26629: { _M_init(); } 26629: 26629: 26629: _List_node_header(_List_node_header&& __x) noexcept 26629: : _List_node_base{ __x._M_next, __x._M_prev } 26629: 26629: , _M_size(__x._M_size) 26629: 26629: { 26629: if (__x._M_base()->_M_next == __x._M_base()) 26629: this->_M_next = this->_M_prev = this; 26629: else 26629: { 26629: this->_M_next->_M_prev = this->_M_prev->_M_next = this->_M_base(); 26629: __x._M_init(); 26629: } 26629: } 26629: 26629: void 26629: _M_move_nodes(_List_node_header&& __x) 26629: { 26629: _List_node_base* const __xnode = __x._M_base(); 26629: if (__xnode->_M_next == __xnode) 26629: _M_init(); 26629: else 26629: { 26629: _List_node_base* const __node = this->_M_base(); 26629: __node->_M_next = __xnode->_M_next; 26629: __node->_M_prev = __xnode->_M_prev; 26629: __node->_M_next->_M_prev = __node->_M_prev->_M_next = __node; 26629: 26629: _M_size = __x._M_size; 26629: 26629: __x._M_init(); 26629: } 26629: } 26629: 26629: 26629: void 26629: _M_init() noexcept 26629: { 26629: this->_M_next = this->_M_prev = this; 26629: 26629: this->_M_size = 0; 26629: 26629: } 26629: 26629: private: 26629: _List_node_base* _M_base() { return this; } 26629: }; 26629: 26629: 26629: struct _Scratch_list : _List_node_base 26629: { 26629: _Scratch_list() { _M_next = _M_prev = this; } 26629: 26629: bool empty() const { return _M_next == this; } 26629: 26629: void swap(_List_node_base& __l) { _List_node_base::swap(*this, __l); } 26629: 26629: template 26629: struct _Ptr_cmp 26629: { 26629: _Cmp _M_cmp; 26629: 26629: bool 26629: operator()(__detail::_List_node_base* __lhs, 26629: __detail::_List_node_base* __rhs) 26629: { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); } 26629: }; 26629: 26629: template 26629: struct _Ptr_cmp<_Iter, void> 26629: { 26629: bool 26629: operator()(__detail::_List_node_base* __lhs, 26629: __detail::_List_node_base* __rhs) const 26629: { return *_Iter(__lhs) < *_Iter(__rhs); } 26629: }; 26629: 26629: 26629: template 26629: void 26629: merge(_List_node_base& __x, _Cmp __comp) 26629: { 26629: _List_node_base* __first1 = _M_next; 26629: _List_node_base* const __last1 = this; 26629: _List_node_base* __first2 = __x._M_next; 26629: _List_node_base* const __last2 = std::__addressof(__x); 26629: 26629: while (__first1 != __last1 && __first2 != __last2) 26629: { 26629: if (__comp(__first2, __first1)) 26629: { 26629: _List_node_base* __next = __first2->_M_next; 26629: __first1->_M_transfer(__first2, __next); 26629: __first2 = __next; 26629: } 26629: else 26629: __first1 = __first1->_M_next; 26629: } 26629: if (__first2 != __last2) 26629: this->_M_transfer(__first2, __last2); 26629: } 26629: 26629: 26629: void _M_take_one(_List_node_base* __i) 26629: { this->_M_transfer(__i, __i->_M_next); } 26629: 26629: 26629: void _M_put_all(_List_node_base* __i) 26629: { 26629: if (!empty()) 26629: __i->_M_transfer(_M_next, this); 26629: } 26629: }; 26629: 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: struct _List_node : public __detail::_List_node_base 26629: { 26629: 26629: __gnu_cxx::__aligned_membuf<_Tp> _M_storage; 26629: _Tp* _M_valptr() { return _M_storage._M_ptr(); } 26629: _Tp const* _M_valptr() const { return _M_storage._M_ptr(); } 26629: 26629: 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _List_iterator 26629: { 26629: typedef _List_iterator<_Tp> _Self; 26629: typedef _List_node<_Tp> _Node; 26629: 26629: typedef ptrdiff_t difference_type; 26629: typedef std::bidirectional_iterator_tag iterator_category; 26629: typedef _Tp value_type; 26629: typedef _Tp* pointer; 26629: typedef _Tp& reference; 26629: 26629: _List_iterator() noexcept 26629: : _M_node() { } 26629: 26629: explicit 26629: _List_iterator(__detail::_List_node_base* __x) noexcept 26629: : _M_node(__x) { } 26629: 26629: _Self 26629: _M_const_cast() const noexcept 26629: { return *this; } 26629: 26629: 26629: [[__nodiscard__]] 26629: reference 26629: operator*() const noexcept 26629: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 26629: 26629: [[__nodiscard__]] 26629: pointer 26629: operator->() const noexcept 26629: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 26629: 26629: _Self& 26629: operator++() noexcept 26629: { 26629: _M_node = _M_node->_M_next; 26629: return *this; 26629: } 26629: 26629: _Self 26629: operator++(int) noexcept 26629: { 26629: _Self __tmp = *this; 26629: _M_node = _M_node->_M_next; 26629: return __tmp; 26629: } 26629: 26629: _Self& 26629: operator--() noexcept 26629: { 26629: _M_node = _M_node->_M_prev; 26629: return *this; 26629: } 26629: 26629: _Self 26629: operator--(int) noexcept 26629: { 26629: _Self __tmp = *this; 26629: _M_node = _M_node->_M_prev; 26629: return __tmp; 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator==(const _Self& __x, const _Self& __y) noexcept 26629: { return __x._M_node == __y._M_node; } 26629: 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator!=(const _Self& __x, const _Self& __y) noexcept 26629: { return __x._M_node != __y._M_node; } 26629: 26629: 26629: 26629: __detail::_List_node_base* _M_node; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _List_const_iterator 26629: { 26629: typedef _List_const_iterator<_Tp> _Self; 26629: typedef const _List_node<_Tp> _Node; 26629: typedef _List_iterator<_Tp> iterator; 26629: 26629: typedef ptrdiff_t difference_type; 26629: typedef std::bidirectional_iterator_tag iterator_category; 26629: typedef _Tp value_type; 26629: typedef const _Tp* pointer; 26629: typedef const _Tp& reference; 26629: 26629: _List_const_iterator() noexcept 26629: : _M_node() { } 26629: 26629: explicit 26629: _List_const_iterator(const __detail::_List_node_base* __x) 26629: noexcept 26629: : _M_node(__x) { } 26629: 26629: _List_const_iterator(const iterator& __x) noexcept 26629: : _M_node(__x._M_node) { } 26629: 26629: iterator 26629: _M_const_cast() const noexcept 26629: { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } 26629: 26629: 26629: [[__nodiscard__]] 26629: reference 26629: operator*() const noexcept 26629: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 26629: 26629: [[__nodiscard__]] 26629: pointer 26629: operator->() const noexcept 26629: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 26629: 26629: _Self& 26629: operator++() noexcept 26629: { 26629: _M_node = _M_node->_M_next; 26629: return *this; 26629: } 26629: 26629: _Self 26629: operator++(int) noexcept 26629: { 26629: _Self __tmp = *this; 26629: _M_node = _M_node->_M_next; 26629: return __tmp; 26629: } 26629: 26629: _Self& 26629: operator--() noexcept 26629: { 26629: _M_node = _M_node->_M_prev; 26629: return *this; 26629: } 26629: 26629: _Self 26629: operator--(int) noexcept 26629: { 26629: _Self __tmp = *this; 26629: _M_node = _M_node->_M_prev; 26629: return __tmp; 26629: } 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator==(const _Self& __x, const _Self& __y) noexcept 26629: { return __x._M_node == __y._M_node; } 26629: 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator!=(const _Self& __x, const _Self& __y) noexcept 26629: { return __x._M_node != __y._M_node; } 26629: 26629: 26629: 26629: const __detail::_List_node_base* _M_node; 26629: }; 26629: 26629: namespace __cxx11 { 26629: 26629: template 26629: class _List_base 26629: { 26629: protected: 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind<_Tp>::other _Tp_alloc_type; 26629: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tp_alloc_traits; 26629: typedef typename _Tp_alloc_traits::template 26629: rebind<_List_node<_Tp> >::other _Node_alloc_type; 26629: typedef __gnu_cxx::__alloc_traits<_Node_alloc_type> _Node_alloc_traits; 26629: 26629: 26629: static size_t 26629: _S_distance(const __detail::_List_node_base* __first, 26629: const __detail::_List_node_base* __last) 26629: { 26629: size_t __n = 0; 26629: while (__first != __last) 26629: { 26629: __first = __first->_M_next; 26629: ++__n; 26629: } 26629: return __n; 26629: } 26629: 26629: 26629: struct _List_impl 26629: : public _Node_alloc_type 26629: { 26629: __detail::_List_node_header _M_node; 26629: 26629: _List_impl() noexcept(is_nothrow_default_constructible<_Node_alloc_type>::value) 26629: 26629: : _Node_alloc_type() 26629: { } 26629: 26629: _List_impl(const _Node_alloc_type& __a) noexcept 26629: : _Node_alloc_type(__a) 26629: { } 26629: 26629: 26629: _List_impl(_List_impl&&) = default; 26629: 26629: _List_impl(_Node_alloc_type&& __a, _List_impl&& __x) 26629: : _Node_alloc_type(std::move(__a)), _M_node(std::move(__x._M_node)) 26629: { } 26629: 26629: _List_impl(_Node_alloc_type&& __a) noexcept 26629: : _Node_alloc_type(std::move(__a)) 26629: { } 26629: 26629: }; 26629: 26629: _List_impl _M_impl; 26629: 26629: 26629: size_t _M_get_size() const { return _M_impl._M_node._M_size; } 26629: 26629: void _M_set_size(size_t __n) { _M_impl._M_node._M_size = __n; } 26629: 26629: void _M_inc_size(size_t __n) { _M_impl._M_node._M_size += __n; } 26629: 26629: void _M_dec_size(size_t __n) { _M_impl._M_node._M_size -= __n; } 26629: 26629: 26629: size_t 26629: _M_distance(const __detail::_List_node_base* __first, 26629: const __detail::_List_node_base* __last) const 26629: { return _S_distance(__first, __last); } 26629: 26629: 26629: size_t _M_node_count() const { return _M_get_size(); } 26629: # 516 "/usr/include/c++/12/bits/stl_list.h" 3 26629: typename _Node_alloc_traits::pointer 26629: _M_get_node() 26629: { return _Node_alloc_traits::allocate(_M_impl, 1); } 26629: 26629: void 26629: _M_put_node(typename _Node_alloc_traits::pointer __p) noexcept 26629: { _Node_alloc_traits::deallocate(_M_impl, __p, 1); } 26629: 26629: public: 26629: typedef _Alloc allocator_type; 26629: 26629: _Node_alloc_type& 26629: _M_get_Node_allocator() noexcept 26629: { return _M_impl; } 26629: 26629: const _Node_alloc_type& 26629: _M_get_Node_allocator() const noexcept 26629: { return _M_impl; } 26629: 26629: 26629: _List_base() = default; 26629: 26629: 26629: 26629: 26629: _List_base(const _Node_alloc_type& __a) noexcept 26629: : _M_impl(__a) 26629: { } 26629: 26629: 26629: _List_base(_List_base&&) = default; 26629: 26629: 26629: _List_base(_List_base&& __x, _Node_alloc_type&& __a) 26629: : _M_impl(std::move(__a)) 26629: { 26629: if (__x._M_get_Node_allocator() == _M_get_Node_allocator()) 26629: _M_move_nodes(std::move(__x)); 26629: 26629: } 26629: 26629: 26629: 26629: _List_base(_Node_alloc_type&& __a, _List_base&& __x) 26629: : _M_impl(std::move(__a), std::move(__x._M_impl)) 26629: { } 26629: 26629: 26629: _List_base(_Node_alloc_type&& __a) 26629: : _M_impl(std::move(__a)) 26629: { } 26629: 26629: void 26629: _M_move_nodes(_List_base&& __x) 26629: { _M_impl._M_node._M_move_nodes(std::move(__x._M_impl._M_node)); } 26629: 26629: 26629: 26629: ~_List_base() noexcept 26629: { _M_clear(); } 26629: 26629: void 26629: _M_clear() noexcept; 26629: 26629: void 26629: _M_init() noexcept 26629: { this->_M_impl._M_node._M_init(); } 26629: }; 26629: # 631 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template > 26629: class list : protected _List_base<_Tp, _Alloc> 26629: { 26629: # 644 "/usr/include/c++/12/bits/stl_list.h" 3 26629: static_assert(is_same::type, _Tp>::value, 26629: "std::list must have a non-const, non-volatile value_type"); 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef _List_base<_Tp, _Alloc> _Base; 26629: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 26629: typedef typename _Base::_Tp_alloc_traits _Tp_alloc_traits; 26629: typedef typename _Base::_Node_alloc_type _Node_alloc_type; 26629: typedef typename _Base::_Node_alloc_traits _Node_alloc_traits; 26629: 26629: public: 26629: typedef _Tp value_type; 26629: typedef typename _Tp_alloc_traits::pointer pointer; 26629: typedef typename _Tp_alloc_traits::const_pointer const_pointer; 26629: typedef typename _Tp_alloc_traits::reference reference; 26629: typedef typename _Tp_alloc_traits::const_reference const_reference; 26629: typedef _List_iterator<_Tp> iterator; 26629: typedef _List_const_iterator<_Tp> const_iterator; 26629: typedef std::reverse_iterator const_reverse_iterator; 26629: typedef std::reverse_iterator reverse_iterator; 26629: typedef size_t size_type; 26629: typedef ptrdiff_t difference_type; 26629: typedef _Alloc allocator_type; 26629: 26629: protected: 26629: 26629: 26629: typedef _List_node<_Tp> _Node; 26629: 26629: using _Base::_M_impl; 26629: using _Base::_M_put_node; 26629: using _Base::_M_get_node; 26629: using _Base::_M_get_Node_allocator; 26629: # 706 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template 26629: _Node* 26629: _M_create_node(_Args&&... __args) 26629: { 26629: auto __p = this->_M_get_node(); 26629: auto& __alloc = _M_get_Node_allocator(); 26629: __allocated_ptr<_Node_alloc_type> __guard{__alloc, __p}; 26629: _Node_alloc_traits::construct(__alloc, __p->_M_valptr(), 26629: std::forward<_Args>(__args)...); 26629: __guard = nullptr; 26629: return __p; 26629: } 26629: 26629: 26629: 26629: static size_t 26629: _S_distance(const_iterator __first, const_iterator __last) 26629: { return std::distance(__first, __last); } 26629: 26629: 26629: size_t 26629: _M_node_count() const 26629: { return this->_M_get_size(); } 26629: # 741 "/usr/include/c++/12/bits/stl_list.h" 3 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: list() = default; 26629: # 758 "/usr/include/c++/12/bits/stl_list.h" 3 26629: explicit 26629: list(const allocator_type& __a) noexcept 26629: : _Base(_Node_alloc_type(__a)) { } 26629: # 771 "/usr/include/c++/12/bits/stl_list.h" 3 26629: explicit 26629: list(size_type __n, const allocator_type& __a = allocator_type()) 26629: : _Base(_Node_alloc_type(__a)) 26629: { _M_default_initialize(__n); } 26629: # 784 "/usr/include/c++/12/bits/stl_list.h" 3 26629: list(size_type __n, const value_type& __value, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(_Node_alloc_type(__a)) 26629: { _M_fill_initialize(__n, __value); } 26629: # 811 "/usr/include/c++/12/bits/stl_list.h" 3 26629: list(const list& __x) 26629: : _Base(_Node_alloc_traits:: 26629: _S_select_on_copy(__x._M_get_Node_allocator())) 26629: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 26629: # 824 "/usr/include/c++/12/bits/stl_list.h" 3 26629: list(list&&) = default; 26629: # 834 "/usr/include/c++/12/bits/stl_list.h" 3 26629: list(initializer_list __l, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(_Node_alloc_type(__a)) 26629: { _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); } 26629: 26629: list(const list& __x, const __type_identity_t& __a) 26629: : _Base(_Node_alloc_type(__a)) 26629: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 26629: 26629: private: 26629: list(list&& __x, const allocator_type& __a, true_type) noexcept 26629: : _Base(_Node_alloc_type(__a), std::move(__x)) 26629: { } 26629: 26629: list(list&& __x, const allocator_type& __a, false_type) 26629: : _Base(_Node_alloc_type(__a)) 26629: { 26629: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 26629: this->_M_move_nodes(std::move(__x)); 26629: else 26629: insert(begin(), std::__make_move_if_noexcept_iterator(__x.begin()), 26629: std::__make_move_if_noexcept_iterator(__x.end())); 26629: } 26629: 26629: public: 26629: list(list&& __x, const __type_identity_t& __a) 26629: noexcept(_Node_alloc_traits::_S_always_equal()) 26629: : list(std::move(__x), __a, 26629: typename _Node_alloc_traits::is_always_equal{}) 26629: { } 26629: # 877 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template> 26629: list(_InputIterator __first, _InputIterator __last, 26629: const allocator_type& __a = allocator_type()) 26629: : _Base(_Node_alloc_type(__a)) 26629: { _M_initialize_dispatch(__first, __last, __false_type()); } 26629: # 903 "/usr/include/c++/12/bits/stl_list.h" 3 26629: ~list() = default; 26629: # 914 "/usr/include/c++/12/bits/stl_list.h" 3 26629: list& 26629: operator=(const list& __x); 26629: # 928 "/usr/include/c++/12/bits/stl_list.h" 3 26629: list& 26629: operator=(list&& __x) 26629: noexcept(_Node_alloc_traits::_S_nothrow_move()) 26629: { 26629: constexpr bool __move_storage = 26629: _Node_alloc_traits::_S_propagate_on_move_assign() 26629: || _Node_alloc_traits::_S_always_equal(); 26629: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 26629: return *this; 26629: } 26629: # 946 "/usr/include/c++/12/bits/stl_list.h" 3 26629: list& 26629: operator=(initializer_list __l) 26629: { 26629: this->assign(__l.begin(), __l.end()); 26629: return *this; 26629: } 26629: # 964 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: assign(size_type __n, const value_type& __val) 26629: { _M_fill_assign(__n, __val); } 26629: # 981 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template> 26629: void 26629: assign(_InputIterator __first, _InputIterator __last) 26629: { _M_assign_dispatch(__first, __last, __false_type()); } 26629: # 1005 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: assign(initializer_list __l) 26629: { this->_M_assign_dispatch(__l.begin(), __l.end(), __false_type()); } 26629: 26629: 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return allocator_type(_Base::_M_get_Node_allocator()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: iterator 26629: begin() noexcept 26629: { return iterator(this->_M_impl._M_node._M_next); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: begin() const noexcept 26629: { return const_iterator(this->_M_impl._M_node._M_next); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: iterator 26629: end() noexcept 26629: { return iterator(&this->_M_impl._M_node); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: end() const noexcept 26629: { return const_iterator(&this->_M_impl._M_node); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reverse_iterator 26629: rbegin() noexcept 26629: { return reverse_iterator(end()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: rbegin() const noexcept 26629: { return const_reverse_iterator(end()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reverse_iterator 26629: rend() noexcept 26629: { return reverse_iterator(begin()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: rend() const noexcept 26629: { return const_reverse_iterator(begin()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: cbegin() const noexcept 26629: { return const_iterator(this->_M_impl._M_node._M_next); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_iterator 26629: cend() const noexcept 26629: { return const_iterator(&this->_M_impl._M_node); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: crbegin() const noexcept 26629: { return const_reverse_iterator(end()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reverse_iterator 26629: crend() const noexcept 26629: { return const_reverse_iterator(begin()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } 26629: 26629: 26629: [[__nodiscard__]] 26629: size_type 26629: size() const noexcept 26629: { return _M_node_count(); } 26629: 26629: 26629: [[__nodiscard__]] 26629: size_type 26629: max_size() const noexcept 26629: { return _Node_alloc_traits::max_size(_M_get_Node_allocator()); } 26629: # 1168 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: resize(size_type __new_size); 26629: # 1181 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: resize(size_type __new_size, const value_type& __x); 26629: # 1203 "/usr/include/c++/12/bits/stl_list.h" 3 26629: [[__nodiscard__]] 26629: reference 26629: front() noexcept 26629: { return *begin(); } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: front() const noexcept 26629: { return *begin(); } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: reference 26629: back() noexcept 26629: { 26629: iterator __tmp = end(); 26629: --__tmp; 26629: return *__tmp; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: const_reference 26629: back() const noexcept 26629: { 26629: const_iterator __tmp = end(); 26629: --__tmp; 26629: return *__tmp; 26629: } 26629: # 1254 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: push_front(const value_type& __x) 26629: { this->_M_insert(begin(), __x); } 26629: 26629: 26629: void 26629: push_front(value_type&& __x) 26629: { this->_M_insert(begin(), std::move(__x)); } 26629: 26629: template 26629: 26629: reference 26629: 26629: 26629: 26629: emplace_front(_Args&&... __args) 26629: { 26629: this->_M_insert(begin(), std::forward<_Args>(__args)...); 26629: 26629: return front(); 26629: 26629: } 26629: # 1290 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: pop_front() noexcept 26629: { this->_M_erase(begin()); } 26629: # 1304 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: push_back(const value_type& __x) 26629: { this->_M_insert(end(), __x); } 26629: 26629: 26629: void 26629: push_back(value_type&& __x) 26629: { this->_M_insert(end(), std::move(__x)); } 26629: 26629: template 26629: 26629: reference 26629: 26629: 26629: 26629: emplace_back(_Args&&... __args) 26629: { 26629: this->_M_insert(end(), std::forward<_Args>(__args)...); 26629: 26629: return back(); 26629: 26629: } 26629: # 1339 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: pop_back() noexcept 26629: { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } 26629: # 1356 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template 26629: iterator 26629: emplace(const_iterator __position, _Args&&... __args); 26629: # 1371 "/usr/include/c++/12/bits/stl_list.h" 3 26629: iterator 26629: insert(const_iterator __position, const value_type& __x); 26629: # 1401 "/usr/include/c++/12/bits/stl_list.h" 3 26629: iterator 26629: insert(const_iterator __position, value_type&& __x) 26629: { return emplace(__position, std::move(__x)); } 26629: # 1420 "/usr/include/c++/12/bits/stl_list.h" 3 26629: iterator 26629: insert(const_iterator __p, initializer_list __l) 26629: { return this->insert(__p, __l.begin(), __l.end()); } 26629: # 1440 "/usr/include/c++/12/bits/stl_list.h" 3 26629: iterator 26629: insert(const_iterator __position, size_type __n, const value_type& __x); 26629: # 1479 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template> 26629: iterator 26629: insert(const_iterator __position, _InputIterator __first, 26629: _InputIterator __last); 26629: # 1523 "/usr/include/c++/12/bits/stl_list.h" 3 26629: iterator 26629: 26629: erase(const_iterator __position) noexcept; 26629: # 1548 "/usr/include/c++/12/bits/stl_list.h" 3 26629: iterator 26629: 26629: erase(const_iterator __first, const_iterator __last) noexcept 26629: 26629: 26629: 26629: { 26629: while (__first != __last) 26629: __first = erase(__first); 26629: return __last._M_const_cast(); 26629: } 26629: # 1571 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: swap(list& __x) noexcept 26629: { 26629: __detail::_List_node_base::swap(this->_M_impl._M_node, 26629: __x._M_impl._M_node); 26629: 26629: size_t __xsize = __x._M_get_size(); 26629: __x._M_set_size(this->_M_get_size()); 26629: this->_M_set_size(__xsize); 26629: 26629: _Node_alloc_traits::_S_on_swap(this->_M_get_Node_allocator(), 26629: __x._M_get_Node_allocator()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: clear() noexcept 26629: { 26629: _Base::_M_clear(); 26629: _Base::_M_init(); 26629: } 26629: # 1610 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: 26629: splice(const_iterator __position, list&& __x) noexcept 26629: 26629: 26629: 26629: { 26629: if (!__x.empty()) 26629: { 26629: _M_check_equal_allocators(__x); 26629: 26629: this->_M_transfer(__position._M_const_cast(), 26629: __x.begin(), __x.end()); 26629: 26629: this->_M_inc_size(__x._M_get_size()); 26629: __x._M_set_size(0); 26629: } 26629: } 26629: 26629: 26629: void 26629: splice(const_iterator __position, list& __x) noexcept 26629: { splice(__position, std::move(__x)); } 26629: # 1646 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: splice(const_iterator __position, list&& __x, const_iterator __i) noexcept 26629: # 1661 "/usr/include/c++/12/bits/stl_list.h" 3 26629: { 26629: iterator __j = __i._M_const_cast(); 26629: ++__j; 26629: if (__position == __i || __position == __j) 26629: return; 26629: 26629: if (this != std::__addressof(__x)) 26629: _M_check_equal_allocators(__x); 26629: 26629: this->_M_transfer(__position._M_const_cast(), 26629: __i._M_const_cast(), __j); 26629: 26629: this->_M_inc_size(1); 26629: __x._M_dec_size(1); 26629: } 26629: # 1688 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: splice(const_iterator __position, list& __x, const_iterator __i) noexcept 26629: { splice(__position, std::move(__x), __i); } 26629: # 1707 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: splice(const_iterator __position, list&& __x, const_iterator __first, 26629: const_iterator __last) noexcept 26629: # 1727 "/usr/include/c++/12/bits/stl_list.h" 3 26629: { 26629: if (__first != __last) 26629: { 26629: if (this != std::__addressof(__x)) 26629: _M_check_equal_allocators(__x); 26629: 26629: size_t __n = _S_distance(__first, __last); 26629: this->_M_inc_size(__n); 26629: __x._M_dec_size(__n); 26629: 26629: this->_M_transfer(__position._M_const_cast(), 26629: __first._M_const_cast(), 26629: __last._M_const_cast()); 26629: } 26629: } 26629: # 1757 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: splice(const_iterator __position, list& __x, const_iterator __first, 26629: const_iterator __last) noexcept 26629: { splice(__position, std::move(__x), __first, __last); } 26629: 26629: 26629: private: 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef void __remove_return_type; 26629: 26629: 26629: public: 26629: # 1786 "/usr/include/c++/12/bits/stl_list.h" 3 26629: 26629: __remove_return_type 26629: remove(const _Tp& __value); 26629: # 1801 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template 26629: __remove_return_type 26629: remove_if(_Predicate); 26629: # 1815 "/usr/include/c++/12/bits/stl_list.h" 3 26629: 26629: __remove_return_type 26629: unique(); 26629: # 1831 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template 26629: __remove_return_type 26629: unique(_BinaryPredicate); 26629: # 1847 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: merge(list&& __x); 26629: 26629: void 26629: merge(list& __x) 26629: { merge(std::move(__x)); } 26629: # 1872 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template 26629: void 26629: merge(list&& __x, _StrictWeakOrdering __comp); 26629: 26629: template 26629: void 26629: merge(list& __x, _StrictWeakOrdering __comp) 26629: { merge(std::move(__x), __comp); } 26629: # 1891 "/usr/include/c++/12/bits/stl_list.h" 3 26629: void 26629: reverse() noexcept 26629: { this->_M_impl._M_node._M_reverse(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: sort(); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: void 26629: sort(_StrictWeakOrdering); 26629: 26629: protected: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: void 26629: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 26629: { _M_fill_initialize(static_cast(__n), __x); } 26629: 26629: 26629: template 26629: void 26629: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 26629: __false_type) 26629: { 26629: for (; __first != __last; ++__first) 26629: 26629: emplace_back(*__first); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: void 26629: _M_fill_initialize(size_type __n, const value_type& __x) 26629: { 26629: for (; __n; --__n) 26629: push_back(__x); 26629: } 26629: 26629: 26629: 26629: void 26629: _M_default_initialize(size_type __n) 26629: { 26629: for (; __n; --__n) 26629: emplace_back(); 26629: } 26629: 26629: 26629: void 26629: _M_default_append(size_type __n); 26629: # 1969 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template 26629: void 26629: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 26629: { _M_fill_assign(__n, __val); } 26629: 26629: 26629: template 26629: void 26629: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 26629: __false_type); 26629: 26629: 26629: 26629: void 26629: _M_fill_assign(size_type __n, const value_type& __val); 26629: 26629: 26629: 26629: void 26629: _M_transfer(iterator __position, iterator __first, iterator __last) 26629: { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } 26629: # 2001 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template 26629: void 26629: _M_insert(iterator __position, _Args&&... __args) 26629: { 26629: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 26629: __tmp->_M_hook(__position._M_node); 26629: this->_M_inc_size(1); 26629: } 26629: 26629: 26629: 26629: void 26629: _M_erase(iterator __position) noexcept 26629: { 26629: this->_M_dec_size(1); 26629: __position._M_node->_M_unhook(); 26629: _Node* __n = static_cast<_Node*>(__position._M_node); 26629: 26629: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __n->_M_valptr()); 26629: 26629: 26629: 26629: 26629: _M_put_node(__n); 26629: } 26629: 26629: 26629: void 26629: _M_check_equal_allocators(list& __x) noexcept 26629: { 26629: if (std::__alloc_neq:: 26629: _S_do_it(_M_get_Node_allocator(), __x._M_get_Node_allocator())) 26629: __builtin_abort(); 26629: } 26629: 26629: 26629: const_iterator 26629: _M_resize_pos(size_type& __new_size) const; 26629: 26629: 26629: void 26629: _M_move_assign(list&& __x, true_type) noexcept 26629: { 26629: this->clear(); 26629: this->_M_move_nodes(std::move(__x)); 26629: std::__alloc_on_move(this->_M_get_Node_allocator(), 26629: __x._M_get_Node_allocator()); 26629: } 26629: 26629: void 26629: _M_move_assign(list&& __x, false_type) 26629: { 26629: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 26629: _M_move_assign(std::move(__x), true_type{}); 26629: else 26629: 26629: 26629: _M_assign_dispatch(std::make_move_iterator(__x.begin()), 26629: std::make_move_iterator(__x.end()), 26629: __false_type{}); 26629: } 26629: 26629: 26629: 26629: 26629: struct _Finalize_merge 26629: { 26629: explicit 26629: _Finalize_merge(list& __dest, list& __src, const iterator& __src_next) 26629: : _M_dest(__dest), _M_src(__src), _M_next(__src_next) 26629: { } 26629: 26629: ~_Finalize_merge() 26629: { 26629: 26629: 26629: 26629: const size_t __num_unmerged = std::distance(_M_next, _M_src.end()); 26629: const size_t __orig_size = _M_src._M_get_size(); 26629: _M_dest._M_inc_size(__orig_size - __num_unmerged); 26629: _M_src._M_set_size(__num_unmerged); 26629: } 26629: 26629: list& _M_dest; 26629: list& _M_src; 26629: const iterator& _M_next; 26629: 26629: 26629: _Finalize_merge(const _Finalize_merge&) = delete; 26629: 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: template::value_type, 26629: typename _Allocator = allocator<_ValT>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireAllocator<_Allocator>> 26629: list(_InputIterator, _InputIterator, _Allocator = _Allocator()) 26629: -> list<_ValT, _Allocator>; 26629: 26629: 26629: } 26629: # 2121 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 26629: { 26629: 26629: if (__x.size() != __y.size()) 26629: return false; 26629: 26629: 26629: typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; 26629: const_iterator __end1 = __x.end(); 26629: const_iterator __end2 = __y.end(); 26629: 26629: const_iterator __i1 = __x.begin(); 26629: const_iterator __i2 = __y.begin(); 26629: while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) 26629: { 26629: ++__i1; 26629: ++__i2; 26629: } 26629: return __i1 == __end1 && __i2 == __end2; 26629: } 26629: # 2178 "/usr/include/c++/12/bits/stl_list.h" 3 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 26629: { return std::lexicographical_compare(__x.begin(), __x.end(), 26629: __y.begin(), __y.end()); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 26629: { return __y < __x; } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 26629: { return !(__y < __x); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline ptrdiff_t 26629: __distance(std::_List_iterator<_Tp> __first, 26629: std::_List_iterator<_Tp> __last, 26629: input_iterator_tag __tag) 26629: { 26629: typedef std::_List_const_iterator<_Tp> _CIter; 26629: return std::__distance(_CIter(__first), _CIter(__last), __tag); 26629: } 26629: 26629: template 26629: inline ptrdiff_t 26629: __distance(std::_List_const_iterator<_Tp> __first, 26629: std::_List_const_iterator<_Tp> __last, 26629: input_iterator_tag) 26629: { 26629: typedef __detail::_List_node_header _Sentinel; 26629: std::_List_const_iterator<_Tp> __beyond = __last; 26629: ++__beyond; 26629: const bool __whole = __first == __beyond; 26629: if (__builtin_constant_p (__whole) && __whole) 26629: return static_cast(__last._M_node)->_M_size; 26629: 26629: ptrdiff_t __n = 0; 26629: while (__first != __last) 26629: { 26629: ++__first; 26629: ++__n; 26629: } 26629: return __n; 26629: } 26629: 26629: 26629: 26629: } 26629: # 64 "/usr/include/c++/12/list" 2 3 26629: # 1 "/usr/include/c++/12/bits/list.tcc" 1 3 26629: # 59 "/usr/include/c++/12/bits/list.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: void 26629: _List_base<_Tp, _Alloc>:: 26629: _M_clear() noexcept 26629: { 26629: typedef _List_node<_Tp> _Node; 26629: __detail::_List_node_base* __cur = _M_impl._M_node._M_next; 26629: while (__cur != &_M_impl._M_node) 26629: { 26629: _Node* __tmp = static_cast<_Node*>(__cur); 26629: __cur = __tmp->_M_next; 26629: _Tp* __val = __tmp->_M_valptr(); 26629: 26629: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __val); 26629: 26629: 26629: 26629: _M_put_node(__tmp); 26629: } 26629: } 26629: 26629: 26629: template 26629: template 26629: typename list<_Tp, _Alloc>::iterator 26629: list<_Tp, _Alloc>:: 26629: emplace(const_iterator __position, _Args&&... __args) 26629: { 26629: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 26629: __tmp->_M_hook(__position._M_const_cast()._M_node); 26629: this->_M_inc_size(1); 26629: return iterator(__tmp); 26629: } 26629: 26629: 26629: template 26629: typename list<_Tp, _Alloc>::iterator 26629: list<_Tp, _Alloc>:: 26629: 26629: insert(const_iterator __position, const value_type& __x) 26629: 26629: 26629: 26629: { 26629: _Node* __tmp = _M_create_node(__x); 26629: __tmp->_M_hook(__position._M_const_cast()._M_node); 26629: this->_M_inc_size(1); 26629: return iterator(__tmp); 26629: } 26629: 26629: 26629: template 26629: typename list<_Tp, _Alloc>::iterator 26629: list<_Tp, _Alloc>:: 26629: insert(const_iterator __position, size_type __n, const value_type& __x) 26629: { 26629: if (__n) 26629: { 26629: list __tmp(__n, __x, get_allocator()); 26629: iterator __it = __tmp.begin(); 26629: splice(__position, __tmp); 26629: return __it; 26629: } 26629: return __position._M_const_cast(); 26629: } 26629: 26629: template 26629: template 26629: typename list<_Tp, _Alloc>::iterator 26629: list<_Tp, _Alloc>:: 26629: insert(const_iterator __position, _InputIterator __first, 26629: _InputIterator __last) 26629: { 26629: list __tmp(__first, __last, get_allocator()); 26629: if (!__tmp.empty()) 26629: { 26629: iterator __it = __tmp.begin(); 26629: splice(__position, __tmp); 26629: return __it; 26629: } 26629: return __position._M_const_cast(); 26629: } 26629: 26629: 26629: template 26629: typename list<_Tp, _Alloc>::iterator 26629: list<_Tp, _Alloc>:: 26629: 26629: erase(const_iterator __position) noexcept 26629: 26629: 26629: 26629: { 26629: iterator __ret = iterator(__position._M_node->_M_next); 26629: _M_erase(__position._M_const_cast()); 26629: return __ret; 26629: } 26629: # 173 "/usr/include/c++/12/bits/list.tcc" 3 26629: template 26629: typename list<_Tp, _Alloc>::const_iterator 26629: list<_Tp, _Alloc>:: 26629: _M_resize_pos(size_type& __new_size) const 26629: { 26629: const_iterator __i; 26629: 26629: const size_type __len = size(); 26629: if (__new_size < __len) 26629: { 26629: if (__new_size <= __len / 2) 26629: { 26629: __i = begin(); 26629: std::advance(__i, __new_size); 26629: } 26629: else 26629: { 26629: __i = end(); 26629: ptrdiff_t __num_erase = __len - __new_size; 26629: std::advance(__i, -__num_erase); 26629: } 26629: __new_size = 0; 26629: return __i; 26629: } 26629: else 26629: __i = end(); 26629: 26629: 26629: 26629: 26629: 26629: __new_size -= __len; 26629: return __i; 26629: } 26629: 26629: 26629: template 26629: void 26629: list<_Tp, _Alloc>:: 26629: _M_default_append(size_type __n) 26629: { 26629: size_type __i = 0; 26629: try 26629: { 26629: for (; __i < __n; ++__i) 26629: emplace_back(); 26629: } 26629: catch(...) 26629: { 26629: for (; __i; --__i) 26629: pop_back(); 26629: throw; 26629: } 26629: } 26629: 26629: template 26629: void 26629: list<_Tp, _Alloc>:: 26629: resize(size_type __new_size) 26629: { 26629: const_iterator __i = _M_resize_pos(__new_size); 26629: if (__new_size) 26629: _M_default_append(__new_size); 26629: else 26629: erase(__i, end()); 26629: } 26629: 26629: template 26629: void 26629: list<_Tp, _Alloc>:: 26629: resize(size_type __new_size, const value_type& __x) 26629: { 26629: const_iterator __i = _M_resize_pos(__new_size); 26629: if (__new_size) 26629: insert(end(), __new_size, __x); 26629: else 26629: erase(__i, end()); 26629: } 26629: # 265 "/usr/include/c++/12/bits/list.tcc" 3 26629: template 26629: list<_Tp, _Alloc>& 26629: list<_Tp, _Alloc>:: 26629: operator=(const list& __x) 26629: { 26629: if (this != std::__addressof(__x)) 26629: { 26629: 26629: if (_Node_alloc_traits::_S_propagate_on_copy_assign()) 26629: { 26629: auto& __this_alloc = this->_M_get_Node_allocator(); 26629: auto& __that_alloc = __x._M_get_Node_allocator(); 26629: if (!_Node_alloc_traits::_S_always_equal() 26629: && __this_alloc != __that_alloc) 26629: { 26629: 26629: clear(); 26629: } 26629: std::__alloc_on_copy(__this_alloc, __that_alloc); 26629: } 26629: 26629: _M_assign_dispatch(__x.begin(), __x.end(), __false_type()); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: void 26629: list<_Tp, _Alloc>:: 26629: _M_fill_assign(size_type __n, const value_type& __val) 26629: { 26629: iterator __i = begin(); 26629: for (; __i != end() && __n > 0; ++__i, --__n) 26629: *__i = __val; 26629: if (__n > 0) 26629: insert(end(), __n, __val); 26629: else 26629: erase(__i, end()); 26629: } 26629: 26629: template 26629: template 26629: void 26629: list<_Tp, _Alloc>:: 26629: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, 26629: __false_type) 26629: { 26629: iterator __first1 = begin(); 26629: iterator __last1 = end(); 26629: for (; __first1 != __last1 && __first2 != __last2; 26629: ++__first1, (void)++__first2) 26629: *__first1 = *__first2; 26629: if (__first2 == __last2) 26629: erase(__first1, __last1); 26629: else 26629: insert(__last1, __first2, __last2); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: typename list<_Tp, _Alloc>::__remove_return_type 26629: list<_Tp, _Alloc>:: 26629: remove(const value_type& __value) 26629: { 26629: 26629: 26629: 26629: list __to_destroy(get_allocator()); 26629: iterator __first = begin(); 26629: iterator __last = end(); 26629: while (__first != __last) 26629: { 26629: iterator __next = __first; 26629: ++__next; 26629: if (*__first == __value) 26629: { 26629: 26629: 26629: 26629: __to_destroy.splice(__to_destroy.begin(), *this, __first); 26629: 26629: 26629: 26629: } 26629: 26629: __first = __next; 26629: } 26629: 26629: 26629: 26629: 26629: return ; 26629: 26629: } 26629: 26629: template 26629: typename list<_Tp, _Alloc>::__remove_return_type 26629: list<_Tp, _Alloc>:: 26629: unique() 26629: { 26629: iterator __first = begin(); 26629: iterator __last = end(); 26629: if (__first == __last) 26629: return ; 26629: 26629: 26629: 26629: list __to_destroy(get_allocator()); 26629: iterator __next = __first; 26629: while (++__next != __last) 26629: { 26629: if (*__first == *__next) 26629: { 26629: __to_destroy.splice(__to_destroy.begin(), *this, __next); 26629: 26629: 26629: 26629: } 26629: else 26629: __first = __next; 26629: __next = __first; 26629: } 26629: 26629: 26629: 26629: 26629: return ; 26629: 26629: } 26629: 26629: template 26629: void 26629: list<_Tp, _Alloc>:: 26629: 26629: merge(list&& __x) 26629: 26629: 26629: 26629: { 26629: 26629: 26629: if (this != std::__addressof(__x)) 26629: { 26629: _M_check_equal_allocators(__x); 26629: 26629: iterator __first1 = begin(); 26629: iterator __last1 = end(); 26629: iterator __first2 = __x.begin(); 26629: iterator __last2 = __x.end(); 26629: 26629: const _Finalize_merge __fin(*this, __x, __first2); 26629: 26629: while (__first1 != __last1 && __first2 != __last2) 26629: if (*__first2 < *__first1) 26629: { 26629: iterator __next = __first2; 26629: _M_transfer(__first1, __first2, ++__next); 26629: __first2 = __next; 26629: } 26629: else 26629: ++__first1; 26629: if (__first2 != __last2) 26629: { 26629: _M_transfer(__last1, __first2, __last2); 26629: __first2 = __last2; 26629: } 26629: } 26629: } 26629: 26629: template 26629: template 26629: void 26629: list<_Tp, _Alloc>:: 26629: 26629: merge(list&& __x, _StrictWeakOrdering __comp) 26629: 26629: 26629: 26629: { 26629: 26629: 26629: if (this != std::__addressof(__x)) 26629: { 26629: _M_check_equal_allocators(__x); 26629: 26629: iterator __first1 = begin(); 26629: iterator __last1 = end(); 26629: iterator __first2 = __x.begin(); 26629: iterator __last2 = __x.end(); 26629: 26629: const _Finalize_merge __fin(*this, __x, __first2); 26629: 26629: while (__first1 != __last1 && __first2 != __last2) 26629: if (__comp(*__first2, *__first1)) 26629: { 26629: iterator __next = __first2; 26629: _M_transfer(__first1, __first2, ++__next); 26629: __first2 = __next; 26629: } 26629: else 26629: ++__first1; 26629: if (__first2 != __last2) 26629: { 26629: _M_transfer(__last1, __first2, __last2); 26629: __first2 = __last2; 26629: } 26629: } 26629: } 26629: 26629: template 26629: void 26629: list<_Tp, _Alloc>:: 26629: sort() 26629: { 26629: 26629: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 26629: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 26629: { 26629: using __detail::_Scratch_list; 26629: # 497 "/usr/include/c++/12/bits/list.tcc" 3 26629: _Scratch_list __carry; 26629: _Scratch_list __tmp[64]; 26629: _Scratch_list* __fill = __tmp; 26629: _Scratch_list* __counter; 26629: 26629: _Scratch_list::_Ptr_cmp __ptr_comp; 26629: 26629: try 26629: { 26629: do 26629: { 26629: __carry._M_take_one(begin()._M_node); 26629: 26629: for(__counter = __tmp; 26629: __counter != __fill && !__counter->empty(); 26629: ++__counter) 26629: { 26629: 26629: __counter->merge(__carry, __ptr_comp); 26629: __carry.swap(*__counter); 26629: } 26629: __carry.swap(*__counter); 26629: if (__counter == __fill) 26629: ++__fill; 26629: } 26629: while ( !empty() ); 26629: 26629: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 26629: __counter->merge(__counter[-1], __ptr_comp); 26629: __fill[-1].swap(this->_M_impl._M_node); 26629: } 26629: catch(...) 26629: { 26629: 26629: __carry._M_put_all(end()._M_node); 26629: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 26629: __tmp[__i]._M_put_all(end()._M_node); 26629: throw; 26629: } 26629: } 26629: } 26629: 26629: template 26629: template 26629: typename list<_Tp, _Alloc>::__remove_return_type 26629: list<_Tp, _Alloc>:: 26629: remove_if(_Predicate __pred) 26629: { 26629: 26629: 26629: 26629: list __to_destroy(get_allocator()); 26629: iterator __first = begin(); 26629: iterator __last = end(); 26629: while (__first != __last) 26629: { 26629: iterator __next = __first; 26629: ++__next; 26629: if (__pred(*__first)) 26629: { 26629: __to_destroy.splice(__to_destroy.begin(), *this, __first); 26629: 26629: 26629: 26629: } 26629: __first = __next; 26629: } 26629: 26629: 26629: 26629: 26629: return ; 26629: 26629: } 26629: 26629: template 26629: template 26629: typename list<_Tp, _Alloc>::__remove_return_type 26629: list<_Tp, _Alloc>:: 26629: unique(_BinaryPredicate __binary_pred) 26629: { 26629: iterator __first = begin(); 26629: iterator __last = end(); 26629: if (__first == __last) 26629: return ; 26629: 26629: 26629: 26629: list __to_destroy(get_allocator()); 26629: iterator __next = __first; 26629: while (++__next != __last) 26629: { 26629: if (__binary_pred(*__first, *__next)) 26629: { 26629: __to_destroy.splice(__to_destroy.begin(), *this, __next); 26629: 26629: 26629: 26629: } 26629: else 26629: __first = __next; 26629: __next = __first; 26629: } 26629: 26629: 26629: 26629: 26629: return ; 26629: 26629: } 26629: 26629: 26629: 26629: template 26629: template 26629: void 26629: list<_Tp, _Alloc>:: 26629: sort(_StrictWeakOrdering __comp) 26629: { 26629: 26629: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 26629: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 26629: { 26629: using __detail::_Scratch_list; 26629: _Scratch_list __carry; 26629: _Scratch_list __tmp[64]; 26629: _Scratch_list* __fill = __tmp; 26629: _Scratch_list* __counter; 26629: 26629: _Scratch_list::_Ptr_cmp __ptr_comp 26629: = { __comp }; 26629: 26629: try 26629: { 26629: do 26629: { 26629: __carry._M_take_one(begin()._M_node); 26629: 26629: for(__counter = __tmp; 26629: __counter != __fill && !__counter->empty(); 26629: ++__counter) 26629: { 26629: 26629: __counter->merge(__carry, __ptr_comp); 26629: __carry.swap(*__counter); 26629: } 26629: __carry.swap(*__counter); 26629: if (__counter == __fill) 26629: ++__fill; 26629: } 26629: while ( !empty() ); 26629: 26629: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 26629: __counter->merge(__counter[-1], __ptr_comp); 26629: __fill[-1].swap(this->_M_impl._M_node); 26629: } 26629: catch(...) 26629: { 26629: 26629: __carry._M_put_all(end()._M_node); 26629: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 26629: __tmp[__i]._M_put_all(end()._M_node); 26629: throw; 26629: } 26629: } 26629: } 26629: 26629: 26629: 26629: } 26629: # 65 "/usr/include/c++/12/list" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace pmr 26629: { 26629: template class polymorphic_allocator; 26629: template 26629: using list = std::list<_Tp, polymorphic_allocator<_Tp>>; 26629: } 26629: 26629: } 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 2 26629: # 1 "/usr/include/c++/12/mutex" 1 3 26629: # 32 "/usr/include/c++/12/mutex" 3 26629: 26629: # 33 "/usr/include/c++/12/mutex" 3 26629: # 55 "/usr/include/c++/12/mutex" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 67 "/usr/include/c++/12/mutex" 3 26629: class __recursive_mutex_base 26629: { 26629: protected: 26629: typedef __gthread_recursive_mutex_t __native_type; 26629: 26629: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 26629: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 26629: 26629: 26629: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 26629: 26629: __recursive_mutex_base() = default; 26629: # 91 "/usr/include/c++/12/mutex" 3 26629: }; 26629: 26629: 26629: class recursive_mutex : private __recursive_mutex_base 26629: { 26629: public: 26629: typedef __native_type* native_handle_type; 26629: 26629: recursive_mutex() = default; 26629: ~recursive_mutex() = default; 26629: 26629: recursive_mutex(const recursive_mutex&) = delete; 26629: recursive_mutex& operator=(const recursive_mutex&) = delete; 26629: 26629: void 26629: lock() 26629: { 26629: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 26629: 26629: 26629: if (__e) 26629: __throw_system_error(__e); 26629: } 26629: 26629: bool 26629: try_lock() noexcept 26629: { 26629: 26629: return !__gthread_recursive_mutex_trylock(&_M_mutex); 26629: } 26629: 26629: void 26629: unlock() 26629: { 26629: 26629: __gthread_recursive_mutex_unlock(&_M_mutex); 26629: } 26629: 26629: native_handle_type 26629: native_handle() noexcept 26629: { return &_M_mutex; } 26629: }; 26629: 26629: 26629: template 26629: class __timed_mutex_impl 26629: { 26629: protected: 26629: template 26629: bool 26629: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 26629: { 26629: 26629: using __clock = chrono::steady_clock; 26629: 26629: 26629: 26629: 26629: auto __rt = chrono::duration_cast<__clock::duration>(__rtime); 26629: if (ratio_greater<__clock::period, _Period>()) 26629: ++__rt; 26629: return _M_try_lock_until(__clock::now() + __rt); 26629: } 26629: 26629: template 26629: bool 26629: _M_try_lock_until(const chrono::time_point& __atime) 26629: { 26629: auto __s = chrono::time_point_cast(__atime); 26629: auto __ns = chrono::duration_cast(__atime - __s); 26629: 26629: __gthread_time_t __ts = { 26629: static_cast(__s.time_since_epoch().count()), 26629: static_cast(__ns.count()) 26629: }; 26629: 26629: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 26629: } 26629: 26629: 26629: template 26629: bool 26629: _M_try_lock_until(const chrono::time_point& __atime) 26629: { 26629: auto __s = chrono::time_point_cast(__atime); 26629: auto __ns = chrono::duration_cast(__atime - __s); 26629: 26629: __gthread_time_t __ts = { 26629: static_cast(__s.time_since_epoch().count()), 26629: static_cast(__ns.count()) 26629: }; 26629: 26629: return static_cast<_Derived*>(this)->_M_clocklock(1, 26629: __ts); 26629: } 26629: 26629: 26629: template 26629: bool 26629: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: auto __now = _Clock::now(); 26629: do { 26629: auto __rtime = __atime - __now; 26629: if (_M_try_lock_for(__rtime)) 26629: return true; 26629: __now = _Clock::now(); 26629: } while (__atime > __now); 26629: return false; 26629: } 26629: }; 26629: 26629: 26629: class timed_mutex 26629: : private __mutex_base, public __timed_mutex_impl 26629: { 26629: public: 26629: typedef __native_type* native_handle_type; 26629: 26629: timed_mutex() = default; 26629: ~timed_mutex() = default; 26629: 26629: timed_mutex(const timed_mutex&) = delete; 26629: timed_mutex& operator=(const timed_mutex&) = delete; 26629: 26629: void 26629: lock() 26629: { 26629: int __e = __gthread_mutex_lock(&_M_mutex); 26629: 26629: 26629: if (__e) 26629: __throw_system_error(__e); 26629: } 26629: 26629: bool 26629: try_lock() noexcept 26629: { 26629: 26629: return !__gthread_mutex_trylock(&_M_mutex); 26629: } 26629: 26629: template 26629: bool 26629: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 26629: { return _M_try_lock_for(__rtime); } 26629: 26629: template 26629: bool 26629: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 26629: { return _M_try_lock_until(__atime); } 26629: 26629: void 26629: unlock() 26629: { 26629: 26629: __gthread_mutex_unlock(&_M_mutex); 26629: } 26629: 26629: native_handle_type 26629: native_handle() noexcept 26629: { return &_M_mutex; } 26629: 26629: private: 26629: friend class __timed_mutex_impl; 26629: 26629: bool 26629: _M_timedlock(const __gthread_time_t& __ts) 26629: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 26629: 26629: 26629: bool 26629: _M_clocklock(clockid_t clockid, const __gthread_time_t& __ts) 26629: { return !pthread_mutex_clocklock(&_M_mutex, clockid, &__ts); } 26629: 26629: }; 26629: 26629: 26629: class recursive_timed_mutex 26629: : private __recursive_mutex_base, 26629: public __timed_mutex_impl 26629: { 26629: public: 26629: typedef __native_type* native_handle_type; 26629: 26629: recursive_timed_mutex() = default; 26629: ~recursive_timed_mutex() = default; 26629: 26629: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 26629: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 26629: 26629: void 26629: lock() 26629: { 26629: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 26629: 26629: 26629: if (__e) 26629: __throw_system_error(__e); 26629: } 26629: 26629: bool 26629: try_lock() noexcept 26629: { 26629: 26629: return !__gthread_recursive_mutex_trylock(&_M_mutex); 26629: } 26629: 26629: template 26629: bool 26629: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 26629: { return _M_try_lock_for(__rtime); } 26629: 26629: template 26629: bool 26629: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 26629: { return _M_try_lock_until(__atime); } 26629: 26629: void 26629: unlock() 26629: { 26629: 26629: __gthread_recursive_mutex_unlock(&_M_mutex); 26629: } 26629: 26629: native_handle_type 26629: native_handle() noexcept 26629: { return &_M_mutex; } 26629: 26629: private: 26629: friend class __timed_mutex_impl; 26629: 26629: bool 26629: _M_timedlock(const __gthread_time_t& __ts) 26629: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 26629: 26629: 26629: bool 26629: _M_clocklock(clockid_t clockid, const __gthread_time_t& __ts) 26629: { return !pthread_mutex_clocklock(&_M_mutex, clockid, &__ts); } 26629: 26629: }; 26629: # 515 "/usr/include/c++/12/mutex" 3 26629: namespace __detail 26629: { 26629: 26629: template 26629: inline int 26629: __try_lock_impl(_Lockable& __l) 26629: { 26629: if (unique_lock<_Lockable> __lock{__l, try_to_lock}) 26629: { 26629: __lock.release(); 26629: return -1; 26629: } 26629: else 26629: return 0; 26629: } 26629: 26629: 26629: 26629: template 26629: inline int 26629: __try_lock_impl(_L0& __l0, _Lockables&... __lockables) 26629: { 26629: 26629: if constexpr ((is_same_v<_L0, _Lockables> && ...)) 26629: { 26629: constexpr int _Np = 1 + sizeof...(_Lockables); 26629: unique_lock<_L0> __locks[_Np] = { 26629: {__l0, defer_lock}, {__lockables, defer_lock}... 26629: }; 26629: for (int __i = 0; __i < _Np; ++__i) 26629: { 26629: if (!__locks[__i].try_lock()) 26629: { 26629: const int __failed = __i; 26629: while (__i--) 26629: __locks[__i].unlock(); 26629: return __failed; 26629: } 26629: } 26629: for (auto& __l : __locks) 26629: __l.release(); 26629: return -1; 26629: } 26629: else 26629: 26629: if (unique_lock<_L0> __lock{__l0, try_to_lock}) 26629: { 26629: int __idx = __detail::__try_lock_impl(__lockables...); 26629: if (__idx == -1) 26629: { 26629: __lock.release(); 26629: return -1; 26629: } 26629: return __idx + 1; 26629: } 26629: else 26629: return 0; 26629: } 26629: 26629: } 26629: # 587 "/usr/include/c++/12/mutex" 3 26629: template 26629: inline int 26629: try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) 26629: { 26629: return __detail::__try_lock_impl(__l1, __l2, __l3...); 26629: } 26629: 26629: 26629: namespace __detail 26629: { 26629: 26629: 26629: 26629: 26629: 26629: template 26629: void 26629: __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) 26629: { 26629: while (__i >= __depth) 26629: { 26629: if (__i == __depth) 26629: { 26629: int __failed = 1; 26629: { 26629: unique_lock<_L0> __first(__l0); 26629: __failed += __detail::__try_lock_impl(__l1...); 26629: if (!__failed) 26629: { 26629: __i = -1; 26629: __first.release(); 26629: return; 26629: } 26629: } 26629: 26629: __gthread_yield(); 26629: 26629: constexpr auto __n = 1 + sizeof...(_L1); 26629: __i = (__depth + __failed) % __n; 26629: } 26629: else 26629: __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); 26629: } 26629: } 26629: 26629: } 26629: # 646 "/usr/include/c++/12/mutex" 3 26629: template 26629: void 26629: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 26629: { 26629: 26629: if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) 26629: { 26629: constexpr int _Np = 2 + sizeof...(_L3); 26629: unique_lock<_L1> __locks[] = { 26629: {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... 26629: }; 26629: int __first = 0; 26629: do { 26629: __locks[__first].lock(); 26629: for (int __j = 1; __j < _Np; ++__j) 26629: { 26629: const int __idx = (__first + __j) % _Np; 26629: if (!__locks[__idx].try_lock()) 26629: { 26629: for (int __k = __j; __k != 0; --__k) 26629: __locks[(__first + __k - 1) % _Np].unlock(); 26629: __first = __idx; 26629: break; 26629: } 26629: } 26629: } while (!__locks[__first].owns_lock()); 26629: 26629: for (auto& __l : __locks) 26629: __l.release(); 26629: } 26629: else 26629: 26629: { 26629: int __i = 0; 26629: __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); 26629: } 26629: } 26629: # 691 "/usr/include/c++/12/mutex" 3 26629: template 26629: class scoped_lock 26629: { 26629: public: 26629: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) 26629: { std::lock(__m...); } 26629: 26629: explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept 26629: : _M_devices(std::tie(__m...)) 26629: { } 26629: 26629: ~scoped_lock() 26629: { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } 26629: 26629: scoped_lock(const scoped_lock&) = delete; 26629: scoped_lock& operator=(const scoped_lock&) = delete; 26629: 26629: private: 26629: tuple<_MutexTypes&...> _M_devices; 26629: }; 26629: 26629: template<> 26629: class scoped_lock<> 26629: { 26629: public: 26629: explicit scoped_lock() = default; 26629: explicit scoped_lock(adopt_lock_t) noexcept { } 26629: ~scoped_lock() = default; 26629: 26629: scoped_lock(const scoped_lock&) = delete; 26629: scoped_lock& operator=(const scoped_lock&) = delete; 26629: }; 26629: 26629: template 26629: class scoped_lock<_Mutex> 26629: { 26629: public: 26629: using mutex_type = _Mutex; 26629: 26629: explicit scoped_lock(mutex_type& __m) : _M_device(__m) 26629: { _M_device.lock(); } 26629: 26629: explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept 26629: : _M_device(__m) 26629: { } 26629: 26629: ~scoped_lock() 26629: { _M_device.unlock(); } 26629: 26629: scoped_lock(const scoped_lock&) = delete; 26629: scoped_lock& operator=(const scoped_lock&) = delete; 26629: 26629: private: 26629: mutex_type& _M_device; 26629: }; 26629: 26629: 26629: 26629: 26629: struct once_flag 26629: { 26629: constexpr once_flag() noexcept = default; 26629: 26629: 26629: once_flag(const once_flag&) = delete; 26629: 26629: once_flag& operator=(const once_flag&) = delete; 26629: 26629: private: 26629: 26629: 26629: __gthread_once_t _M_once = 0; 26629: 26629: struct _Prepare_execution; 26629: 26629: template 26629: friend void 26629: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: extern __thread void* __once_callable; 26629: extern __thread void (*__once_call)(); 26629: 26629: 26629: struct once_flag::_Prepare_execution 26629: { 26629: template 26629: explicit 26629: _Prepare_execution(_Callable& __c) 26629: { 26629: 26629: __once_callable = std::__addressof(__c); 26629: 26629: __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 26629: } 26629: 26629: ~_Prepare_execution() 26629: { 26629: 26629: __once_callable = nullptr; 26629: __once_call = nullptr; 26629: } 26629: 26629: _Prepare_execution(const _Prepare_execution&) = delete; 26629: _Prepare_execution& operator=(const _Prepare_execution&) = delete; 26629: }; 26629: # 843 "/usr/include/c++/12/mutex" 3 26629: extern "C" void __once_proxy(void); 26629: 26629: 26629: template 26629: void 26629: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 26629: { 26629: 26629: auto __callable = [&] { 26629: std::__invoke(std::forward<_Callable>(__f), 26629: std::forward<_Args>(__args)...); 26629: }; 26629: 26629: once_flag::_Prepare_execution __exec(__callable); 26629: 26629: 26629: if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) 26629: __throw_system_error(__e); 26629: } 26629: # 964 "/usr/include/c++/12/mutex" 3 26629: 26629: } 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 2 26629: 26629: 26629: 26629: 26629: # 23 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 26629: namespace rocksdb { 26629: class CacheReservationManager; 26629: 26629: 26629: 26629: class StallInterface { 26629: public: 26629: virtual ~StallInterface() {} 26629: 26629: virtual void Block() = 0; 26629: 26629: virtual void Signal() = 0; 26629: }; 26629: 26629: class WriteBufferManager final { 26629: public: 26629: # 50 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 26629: explicit WriteBufferManager(size_t _buffer_size, 26629: std::shared_ptr cache = {}, 26629: bool allow_stall = false); 26629: 26629: WriteBufferManager(const WriteBufferManager&) = delete; 26629: WriteBufferManager& operator=(const WriteBufferManager&) = delete; 26629: 26629: ~WriteBufferManager(); 26629: 26629: 26629: 26629: bool enabled() const { return buffer_size() > 0; } 26629: 26629: 26629: bool cost_to_cache() const { return cache_res_mgr_ != nullptr; } 26629: 26629: 26629: 26629: size_t memory_usage() const { 26629: return memory_used_.load(std::memory_order_relaxed); 26629: } 26629: 26629: 26629: size_t mutable_memtable_memory_usage() const { 26629: return memory_active_.load(std::memory_order_relaxed); 26629: } 26629: 26629: size_t dummy_entries_in_cache_usage() const; 26629: 26629: 26629: size_t buffer_size() const { 26629: return buffer_size_.load(std::memory_order_relaxed); 26629: } 26629: 26629: void SetBufferSize(size_t new_size) { 26629: buffer_size_.store(new_size, std::memory_order_relaxed); 26629: mutable_limit_.store(new_size * 7 / 8, std::memory_order_relaxed); 26629: 26629: MaybeEndWriteStall(); 26629: } 26629: 26629: 26629: 26629: 26629: bool ShouldFlush() const { 26629: if (enabled()) { 26629: if (mutable_memtable_memory_usage() > 26629: mutable_limit_.load(std::memory_order_relaxed)) { 26629: return true; 26629: } 26629: size_t local_size = buffer_size(); 26629: if (memory_usage() >= local_size && 26629: mutable_memtable_memory_usage() >= local_size / 2) { 26629: 26629: 26629: 26629: return true; 26629: } 26629: } 26629: return false; 26629: } 26629: # 119 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 26629: bool ShouldStall() const { 26629: if (!allow_stall_ || !enabled()) { 26629: return false; 26629: } 26629: 26629: return IsStallActive() || IsStallThresholdExceeded(); 26629: } 26629: 26629: 26629: bool IsStallActive() const { 26629: return stall_active_.load(std::memory_order_relaxed); 26629: } 26629: 26629: 26629: bool IsStallThresholdExceeded() const { 26629: return memory_usage() >= buffer_size_; 26629: } 26629: 26629: void ReserveMem(size_t mem); 26629: 26629: 26629: 26629: void ScheduleFreeMem(size_t mem); 26629: 26629: void FreeMem(size_t mem); 26629: 26629: 26629: 26629: void BeginWriteStall(StallInterface* wbm_stall); 26629: 26629: 26629: 26629: void MaybeEndWriteStall(); 26629: 26629: void RemoveDBFromQueue(StallInterface* wbm_stall); 26629: 26629: private: 26629: std::atomic buffer_size_; 26629: std::atomic mutable_limit_; 26629: std::atomic memory_used_; 26629: 26629: std::atomic memory_active_; 26629: std::shared_ptr cache_res_mgr_; 26629: 26629: std::mutex cache_res_mgr_mu_; 26629: 26629: std::list queue_; 26629: 26629: std::mutex mu_; 26629: bool allow_stall_; 26629: 26629: 26629: std::atomic stall_active_; 26629: 26629: void ReserveMemWithCache(size_t mem); 26629: void FreeMemWithCache(size_t mem); 26629: }; 26629: } 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class Cache; 26629: class CompactionFilter; 26629: class CompactionFilterFactory; 26629: class Comparator; 26629: class ConcurrentTaskLimiter; 26629: class Env; 26629: enum InfoLogLevel : unsigned char; 26629: class SstFileManager; 26629: class FilterPolicy; 26629: class Logger; 26629: class MergeOperator; 26629: class Snapshot; 26629: class MemTableRepFactory; 26629: class RateLimiter; 26629: class Slice; 26629: class Statistics; 26629: class InternalKeyComparator; 26629: class WalFilter; 26629: class FileSystem; 26629: 26629: struct Options; 26629: struct DbPath; 26629: 26629: using FileTypeSet = SmallEnumSet; 26629: 26629: struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions { 26629: 26629: 26629: 26629: 26629: 26629: 26629: ColumnFamilyOptions* OldDefaults(int rocksdb_major_version = 4, 26629: int rocksdb_minor_version = 6); 26629: 26629: 26629: 26629: 26629: 26629: ColumnFamilyOptions* OptimizeForSmallDb( 26629: std::shared_ptr* cache = nullptr); 26629: 26629: 26629: 26629: 26629: 26629: ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb); 26629: # 104 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: ColumnFamilyOptions* OptimizeLevelStyleCompaction( 26629: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 26629: ColumnFamilyOptions* OptimizeUniversalStyleCompaction( 26629: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 26629: # 118 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: const Comparator* comparator = BytewiseComparator(); 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::shared_ptr merge_operator = nullptr; 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: const CompactionFilter* compaction_filter = nullptr; 26629: # 167 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::shared_ptr compaction_filter_factory = nullptr; 26629: # 188 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: size_t write_buffer_size = 64 << 20; 26629: # 215 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: CompressionType compression; 26629: # 224 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: CompressionType bottommost_compression = kDisableCompressionOption; 26629: 26629: 26629: 26629: 26629: 26629: CompressionOptions bottommost_compression_opts; 26629: 26629: 26629: CompressionOptions compression_opts; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: int level0_file_num_compaction_trigger = 4; 26629: # 275 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::shared_ptr prefix_extractor = nullptr; 26629: # 289 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: uint64_t max_bytes_for_level_base = 256 * 1048576; 26629: 26629: 26629: uint64_t snap_refresh_nanos = 0; 26629: 26629: 26629: 26629: 26629: 26629: bool disable_auto_compactions = false; 26629: 26629: 26629: 26629: 26629: 26629: std::shared_ptr table_factory; 26629: # 318 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::vector cf_paths; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: std::shared_ptr compaction_thread_limiter = nullptr; 26629: # 335 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::shared_ptr sst_partitioner_factory = nullptr; 26629: 26629: 26629: ColumnFamilyOptions(); 26629: 26629: explicit ColumnFamilyOptions(const Options& options); 26629: 26629: void Dump(Logger* log) const; 26629: }; 26629: 26629: enum class WALRecoveryMode : char { 26629: # 365 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: kTolerateCorruptedTailRecords = 0x00, 26629: 26629: 26629: 26629: 26629: kAbsoluteConsistency = 0x01, 26629: 26629: 26629: 26629: 26629: kPointInTimeRecovery = 0x02, 26629: 26629: 26629: 26629: 26629: 26629: kSkipAnyCorruptedRecords = 0x03, 26629: }; 26629: 26629: struct DbPath { 26629: std::string path; 26629: uint64_t target_size; 26629: 26629: DbPath() : target_size(0) {} 26629: DbPath(const std::string& p, uint64_t t) : path(p), target_size(t) {} 26629: }; 26629: 26629: extern const char* kHostnameForDbHostId; 26629: 26629: enum class CompactionServiceJobStatus : char { 26629: kSuccess, 26629: kFailure, 26629: kUseLocal, 26629: }; 26629: 26629: struct CompactionServiceJobInfo { 26629: std::string db_name; 26629: std::string db_id; 26629: std::string db_session_id; 26629: uint64_t job_id; 26629: 26629: 26629: 26629: 26629: Env::Priority priority; 26629: 26629: CompactionServiceJobInfo(std::string db_name_, std::string db_id_, 26629: std::string db_session_id_, uint64_t job_id_, 26629: Env::Priority priority_) 26629: : db_name(std::move(db_name_)), 26629: db_id(std::move(db_id_)), 26629: db_session_id(std::move(db_session_id_)), 26629: job_id(job_id_), 26629: priority(priority_) {} 26629: }; 26629: 26629: 26629: 26629: 26629: class CompactionService : public Customizable { 26629: public: 26629: static const char* Type() { return "CompactionService"; } 26629: 26629: 26629: const char* Name() const override = 0; 26629: 26629: 26629: 26629: 26629: virtual CompactionServiceJobStatus StartV2( 26629: const CompactionServiceJobInfo& , 26629: const std::string& ) { 26629: return CompactionServiceJobStatus::kUseLocal; 26629: } 26629: 26629: 26629: virtual CompactionServiceJobStatus WaitForCompleteV2( 26629: const CompactionServiceJobInfo& , 26629: std::string* ) { 26629: return CompactionServiceJobStatus::kUseLocal; 26629: } 26629: 26629: ~CompactionService() override = default; 26629: }; 26629: 26629: struct DBOptions { 26629: 26629: 26629: 26629: 26629: 26629: DBOptions* OldDefaults(int rocksdb_major_version = 4, 26629: int rocksdb_minor_version = 6); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: DBOptions* OptimizeForSmallDb(std::shared_ptr* cache = nullptr); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: DBOptions* IncreaseParallelism(int total_threads = 16); 26629: 26629: 26629: 26629: 26629: bool create_if_missing = false; 26629: 26629: 26629: 26629: bool create_missing_column_families = false; 26629: 26629: 26629: 26629: bool error_if_exists = false; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool paranoid_checks = true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool flush_verify_memtable_count = true; 26629: # 517 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool track_and_verify_wals_in_manifest = false; 26629: # 537 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool verify_sst_unique_id_in_manifest = true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: Env* env = Env::Default(); 26629: # 562 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::shared_ptr rate_limiter = nullptr; 26629: # 578 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::shared_ptr sst_file_manager = nullptr; 26629: 26629: 26629: 26629: 26629: 26629: std::shared_ptr info_log = nullptr; 26629: 26629: 26629: 26629: 26629: InfoLogLevel info_log_level = DEBUG_LEVEL; 26629: # 605 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: int max_open_files = -1; 26629: 26629: 26629: 26629: 26629: int max_file_opening_threads = 16; 26629: # 633 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: uint64_t max_total_wal_size = 0; 26629: 26629: 26629: std::shared_ptr statistics = nullptr; 26629: # 646 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool use_fsync = false; 26629: # 672 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::vector db_paths; 26629: 26629: 26629: 26629: 26629: 26629: 26629: std::string db_log_dir = ""; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: std::string wal_dir = ""; 26629: # 697 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: uint64_t delete_obsolete_files_period_micros = 6ULL * 60 * 60 * 1000000; 26629: 26629: 26629: 26629: 26629: 26629: 26629: int max_background_jobs = 2; 26629: # 722 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: int max_background_compactions = -1; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint32_t max_subcompactions = 1; 26629: # 752 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: int max_background_flushes = -1; 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t max_log_file_size = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t log_file_time_to_roll = 0; 26629: 26629: 26629: 26629: size_t keep_log_file_num = 1000; 26629: # 780 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: size_t recycle_log_file_num = 0; 26629: 26629: 26629: 26629: 26629: 26629: uint64_t max_manifest_file_size = 1024 * 1024 * 1024; 26629: 26629: 26629: int table_cache_numshardbits = 6; 26629: # 803 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: uint64_t WAL_ttl_seconds = 0; 26629: uint64_t WAL_size_limit_MB = 0; 26629: 26629: 26629: 26629: 26629: 26629: size_t manifest_preallocation_size = 4 * 1024 * 1024; 26629: # 823 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool allow_mmap_reads = false; 26629: 26629: 26629: 26629: 26629: bool allow_mmap_writes = false; 26629: # 841 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool use_direct_reads = false; 26629: 26629: 26629: 26629: 26629: bool use_direct_io_for_flush_and_compaction = false; 26629: # 857 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool allow_fallocate = true; 26629: 26629: 26629: bool is_fd_close_on_exec = true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: unsigned int stats_dump_period_sec = 600; 26629: 26629: 26629: 26629: unsigned int stats_persist_period_sec = 600; 26629: # 883 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool persist_stats_to_disk = false; 26629: 26629: 26629: 26629: 26629: size_t stats_history_buffer_size = 1024 * 1024; 26629: 26629: 26629: 26629: 26629: bool advise_random_on_open = true; 26629: # 905 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: size_t db_write_buffer_size = 0; 26629: # 922 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::shared_ptr write_buffer_manager = nullptr; 26629: 26629: 26629: 26629: 26629: enum AccessHint { NONE, NORMAL, SEQUENTIAL, WILLNEED }; 26629: AccessHint access_hint_on_compaction_start = NORMAL; 26629: # 937 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: size_t compaction_readahead_size = 0; 26629: # 954 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: size_t random_access_max_buffer_size = 1024 * 1024; 26629: # 965 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: size_t writable_file_max_buffer_size = 1024 * 1024; 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool use_adaptive_mutex = false; 26629: 26629: 26629: DBOptions(); 26629: 26629: explicit DBOptions(const Options& options); 26629: 26629: void Dump(Logger* log) const; 26629: # 997 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: uint64_t bytes_per_sync = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t wal_bytes_per_sync = 0; 26629: # 1025 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool strict_bytes_per_sync = false; 26629: 26629: 26629: 26629: std::vector> listeners; 26629: 26629: 26629: 26629: 26629: 26629: bool enable_thread_tracking = false; 26629: # 1053 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: uint64_t delayed_write_rate = 0; 26629: # 1068 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool enable_pipelined_write = false; 26629: # 1094 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool unordered_write = false; 26629: # 1104 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool allow_concurrent_memtable_write = true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool enable_write_thread_adaptive_yield = true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t max_write_batch_group_size_bytes = 1 << 20; 26629: # 1128 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: uint64_t write_thread_max_yield_usec = 100; 26629: # 1138 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: uint64_t write_thread_slow_yield_usec = 3; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool skip_stats_update_on_db_open = false; 26629: # 1156 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool skip_checking_sst_file_sizes_on_db_open = false; 26629: 26629: 26629: 26629: WALRecoveryMode wal_recovery_mode = WALRecoveryMode::kPointInTimeRecovery; 26629: 26629: 26629: 26629: bool allow_2pc = false; 26629: 26629: 26629: 26629: 26629: std::shared_ptr row_cache = nullptr; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: WalFilter* wal_filter = nullptr; 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool fail_if_options_file_error = false; 26629: 26629: 26629: 26629: 26629: bool dump_malloc_stats = false; 26629: # 1198 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool avoid_flush_during_recovery = false; 26629: # 1207 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool avoid_flush_during_shutdown = false; 26629: # 1219 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool allow_ingest_behind = false; 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool two_write_queues = false; 26629: 26629: 26629: 26629: 26629: bool manual_wal_flush = false; 26629: 26629: 26629: 26629: 26629: 26629: CompressionType wal_compression = kNoCompression; 26629: # 1251 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool atomic_flush = false; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool avoid_unnecessary_blocking_io = false; 26629: # 1270 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool write_dbid_to_manifest = false; 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t log_readahead_size = 0; 26629: # 1286 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::shared_ptr file_checksum_gen_factory = nullptr; 26629: # 1320 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool best_efforts_recovery = false; 26629: # 1330 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: int max_bgerror_resume_count = 0x7fffffff; 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t bgerror_resume_retry_interval = 1000000; 26629: # 1346 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool allow_data_in_errors = false; 26629: # 1359 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::string db_host_id = kHostnameForDbHostId; 26629: # 1369 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: FileTypeSet checksum_handoff_file_types; 26629: # 1378 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::shared_ptr compaction_service = nullptr; 26629: # 1390 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: CacheTier lowest_used_cache_tier = CacheTier::kNonVolatileBlockTier; 26629: # 1403 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool enforce_single_del_contracts = true; 26629: }; 26629: 26629: 26629: struct Options : public DBOptions, public ColumnFamilyOptions { 26629: 26629: Options() : DBOptions(), ColumnFamilyOptions() {} 26629: 26629: Options(const DBOptions& db_options, 26629: const ColumnFamilyOptions& column_family_options) 26629: : DBOptions(db_options), ColumnFamilyOptions(column_family_options) {} 26629: 26629: 26629: 26629: 26629: 26629: 26629: Options* OldDefaults(int rocksdb_major_version = 4, 26629: int rocksdb_minor_version = 6); 26629: 26629: void Dump(Logger* log) const; 26629: 26629: void DumpCFOptions(Logger* log) const; 26629: # 1437 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: Options* PrepareForBulkLoad(); 26629: 26629: 26629: 26629: Options* OptimizeForSmallDb(); 26629: 26629: 26629: 26629: 26629: 26629: Options* DisableExtraChecks(); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: enum ReadTier { 26629: kReadAllTier = 0x0, 26629: kBlockCacheTier = 0x1, 26629: kPersistedTier = 0x2, 26629: 26629: 26629: 26629: kMemtableTier = 0x3 26629: }; 26629: 26629: 26629: struct ReadOptions { 26629: 26629: 26629: 26629: 26629: 26629: const Snapshot* snapshot; 26629: # 1487 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: const Slice* iterate_lower_bound; 26629: # 1508 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: const Slice* iterate_upper_bound; 26629: # 1519 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: size_t readahead_size; 26629: 26629: 26629: 26629: 26629: 26629: uint64_t max_skippable_internal_keys; 26629: 26629: 26629: 26629: 26629: 26629: ReadTier read_tier; 26629: 26629: 26629: 26629: 26629: bool verify_checksums; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool fill_cache; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool tailing; 26629: 26629: 26629: 26629: bool managed; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool total_order_seek; 26629: # 1583 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool auto_prefix_mode; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool prefix_same_as_start; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool pin_data; 26629: 26629: 26629: 26629: 26629: 26629: bool background_purge_on_iterator_cleanup; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool ignore_range_deletions; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: std::function table_filter; 26629: # 1634 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: const Slice* timestamp; 26629: const Slice* iter_start_ts; 26629: # 1646 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: std::chrono::microseconds deadline; 26629: 26629: 26629: 26629: 26629: 26629: std::chrono::microseconds io_timeout; 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t value_size_soft_limit; 26629: # 1672 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool adaptive_readahead; 26629: # 1688 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 26629: # 1697 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool async_io; 26629: # 1708 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool optimize_multiget_for_io; 26629: 26629: ReadOptions(); 26629: ReadOptions(bool cksum, bool cache); 26629: }; 26629: 26629: 26629: struct WriteOptions { 26629: # 1732 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool sync; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool disableWAL; 26629: 26629: 26629: 26629: 26629: 26629: bool ignore_missing_column_families; 26629: 26629: 26629: 26629: 26629: bool no_slowdown; 26629: # 1760 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool low_pri; 26629: # 1769 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool memtable_insert_hint_per_batch; 26629: # 1784 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: Env::IOPriority rate_limiter_priority; 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t protection_bytes_per_key; 26629: 26629: WriteOptions() 26629: : sync(false), 26629: disableWAL(false), 26629: ignore_missing_column_families(false), 26629: no_slowdown(false), 26629: low_pri(false), 26629: memtable_insert_hint_per_batch(false), 26629: rate_limiter_priority(Env::IO_TOTAL), 26629: protection_bytes_per_key(0) {} 26629: }; 26629: 26629: 26629: struct FlushOptions { 26629: 26629: 26629: bool wait; 26629: 26629: 26629: 26629: 26629: 26629: bool allow_write_stall; 26629: FlushOptions() : wait(true), allow_write_stall(false) {} 26629: }; 26629: 26629: 26629: extern Status CreateLoggerFromOptions(const std::string& dbname, 26629: const DBOptions& options, 26629: std::shared_ptr* logger); 26629: 26629: 26629: struct CompactionOptions { 26629: 26629: 26629: 26629: 26629: 26629: CompressionType compression; 26629: 26629: 26629: uint64_t output_file_size_limit; 26629: 26629: uint32_t max_subcompactions; 26629: 26629: CompactionOptions() 26629: : compression(kSnappyCompression), 26629: output_file_size_limit(std::numeric_limits::max()), 26629: max_subcompactions(0) {} 26629: }; 26629: 26629: 26629: 26629: enum class BottommostLevelCompaction { 26629: 26629: kSkip, 26629: 26629: 26629: kIfHaveCompactionFilter, 26629: 26629: kForce, 26629: 26629: 26629: kForceOptimized, 26629: }; 26629: 26629: 26629: 26629: enum class BlobGarbageCollectionPolicy { 26629: 26629: kForce, 26629: 26629: kDisable, 26629: 26629: kUseDefault, 26629: }; 26629: 26629: 26629: struct CompactRangeOptions { 26629: 26629: 26629: 26629: 26629: bool exclusive_manual_compaction = false; 26629: 26629: 26629: 26629: bool change_level = false; 26629: 26629: 26629: int target_level = -1; 26629: 26629: 26629: uint32_t target_path_id = 0; 26629: 26629: 26629: BottommostLevelCompaction bottommost_level_compaction = 26629: BottommostLevelCompaction::kIfHaveCompactionFilter; 26629: 26629: 26629: bool allow_write_stall = false; 26629: 26629: uint32_t max_subcompactions = 0; 26629: 26629: 26629: const Slice* full_history_ts_low = nullptr; 26629: 26629: 26629: 26629: 26629: 26629: std::atomic* canceled = nullptr; 26629: # 1916 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: BlobGarbageCollectionPolicy blob_garbage_collection_policy = 26629: BlobGarbageCollectionPolicy::kUseDefault; 26629: 26629: 26629: 26629: 26629: 26629: double blob_garbage_collection_age_cutoff = -1; 26629: }; 26629: 26629: 26629: struct IngestExternalFileOptions { 26629: 26629: bool move_files = false; 26629: 26629: bool failed_move_fall_back_to_copy = true; 26629: 26629: 26629: bool snapshot_consistency = true; 26629: 26629: 26629: bool allow_global_seqno = true; 26629: 26629: 26629: bool allow_blocking_flush = true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool ingest_behind = false; 26629: # 1960 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool write_global_seqno = true; 26629: 26629: 26629: 26629: 26629: bool verify_checksums_before_ingest = false; 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t verify_checksums_readahead_size = 0; 26629: # 1992 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: bool verify_file_checksum = true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool fail_if_not_bottommost_level = false; 26629: }; 26629: 26629: enum TraceFilterType : uint64_t { 26629: 26629: kTraceFilterNone = 0x0, 26629: 26629: kTraceFilterGet = 0x1 << 0, 26629: 26629: kTraceFilterWrite = 0x1 << 1, 26629: 26629: kTraceFilterIteratorSeek = 0x1 << 2, 26629: 26629: kTraceFilterIteratorSeekForPrev = 0x1 << 3, 26629: 26629: kTraceFilterMultiGet = 0x1 << 4, 26629: }; 26629: 26629: 26629: struct TraceOptions { 26629: 26629: 26629: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 26629: 26629: 26629: uint64_t sampling_frequency = 1; 26629: 26629: uint64_t filter = kTraceFilterNone; 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool preserve_write_order = false; 26629: }; 26629: 26629: 26629: struct ImportColumnFamilyOptions { 26629: 26629: bool move_files = false; 26629: }; 26629: 26629: 26629: struct SizeApproximationOptions { 26629: 26629: 26629: bool include_memtables = false; 26629: 26629: 26629: bool include_files = true; 26629: # 2060 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 26629: double files_size_error_margin = -1.0; 26629: }; 26629: 26629: struct CompactionServiceOptionsOverride { 26629: 26629: 26629: 26629: Env* env = Env::Default(); 26629: std::shared_ptr file_checksum_gen_factory = nullptr; 26629: 26629: const Comparator* comparator = BytewiseComparator(); 26629: std::shared_ptr merge_operator = nullptr; 26629: const CompactionFilter* compaction_filter = nullptr; 26629: std::shared_ptr compaction_filter_factory = nullptr; 26629: std::shared_ptr prefix_extractor = nullptr; 26629: std::shared_ptr table_factory; 26629: std::shared_ptr sst_partitioner_factory = nullptr; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: std::vector> listeners; 26629: 26629: 26629: 26629: 26629: std::shared_ptr statistics = nullptr; 26629: 26629: 26629: 26629: std::vector> 26629: table_properties_collector_factories; 26629: }; 26629: 26629: struct OpenAndCompactOptions { 26629: 26629: std::atomic* canceled = nullptr; 26629: }; 26629: 26629: 26629: struct LiveFilesStorageInfoOptions { 26629: 26629: bool include_checksum_info = false; 26629: 26629: 26629: 26629: uint64_t wal_size_for_flush = 0; 26629: }; 26629: 26629: 26629: } 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 2 26629: # 86 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 26629: namespace rocksdb { 26629: 26629: extern const bool kDefaultToAdaptiveMutex; 26629: 26629: namespace port { 26629: constexpr bool kLittleEndian = ( 26629: # 91 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 3 4 26629: 1234 26629: # 91 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 26629: == 26629: # 91 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 3 4 26629: 1234 26629: # 91 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 26629: ); 26629: 26629: 26629: class CondVar; 26629: 26629: class Mutex { 26629: public: 26629: static const char* kName() { return "pthread_mutex_t"; } 26629: 26629: explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex); 26629: 26629: Mutex(const Mutex&) = delete; 26629: void operator=(const Mutex&) = delete; 26629: 26629: ~Mutex(); 26629: 26629: void Lock(); 26629: void Unlock(); 26629: 26629: bool TryLock(); 26629: 26629: 26629: 26629: void AssertHeld(); 26629: 26629: 26629: inline void lock() { Lock(); } 26629: inline void unlock() { Unlock(); } 26629: inline bool try_lock() { return TryLock(); } 26629: 26629: private: 26629: friend class CondVar; 26629: pthread_mutex_t mu_; 26629: 26629: bool locked_ = false; 26629: 26629: }; 26629: 26629: class RWMutex { 26629: public: 26629: RWMutex(); 26629: 26629: RWMutex(const RWMutex&) = delete; 26629: void operator=(const RWMutex&) = delete; 26629: 26629: ~RWMutex(); 26629: 26629: void ReadLock(); 26629: void WriteLock(); 26629: void ReadUnlock(); 26629: void WriteUnlock(); 26629: void AssertHeld() { } 26629: 26629: private: 26629: pthread_rwlock_t mu_; 26629: }; 26629: 26629: class CondVar { 26629: public: 26629: explicit CondVar(Mutex* mu); 26629: ~CondVar(); 26629: void Wait(); 26629: 26629: bool TimedWait(uint64_t abs_time_us); 26629: void Signal(); 26629: void SignalAll(); 26629: private: 26629: pthread_cond_t cv_; 26629: Mutex* mu_; 26629: }; 26629: 26629: using Thread = std::thread; 26629: 26629: static inline void AsmVolatilePause() { 26629: # 173 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 26629: } 26629: 26629: 26629: extern int PhysicalCoreID(); 26629: 26629: using OnceType = pthread_once_t; 26629: 26629: extern void InitOnce(OnceType* once, void (*initializer)()); 26629: # 205 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 26629: static_assert((64U & (64U - 1)) == 0, 26629: "Cache line size must be a power of 2 number of bytes"); 26629: 26629: extern void *cacheline_aligned_alloc(size_t size); 26629: 26629: extern void cacheline_aligned_free(void *memblock); 26629: # 223 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 26629: extern void Crash(const std::string& srcfile, int srcline); 26629: 26629: extern int GetMaxOpenFiles(); 26629: 26629: extern const size_t kPageSize; 26629: 26629: using ThreadId = pid_t; 26629: 26629: extern void SetCpuPriority(ThreadId id, CpuPriority priority); 26629: 26629: int64_t GetProcessID(); 26629: 26629: 26629: 26629: bool GenerateRfcUuid(std::string* output); 26629: 26629: } 26629: } 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/port/port.h" 2 26629: # 23 "/build/reproducible-path/rocksdb-7.8.3/util/coding.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/coding_lean.h" 1 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/util/coding_lean.h" 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cstring" 1 3 26629: # 39 "/usr/include/c++/12/cstring" 3 26629: 26629: # 40 "/usr/include/c++/12/cstring" 3 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/util/coding_lean.h" 2 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: inline void EncodeFixed16(char* buf, uint16_t value) { 26629: if (port::kLittleEndian) { 26629: memcpy(buf, &value, sizeof(value)); 26629: } else { 26629: buf[0] = value & 0xff; 26629: buf[1] = (value >> 8) & 0xff; 26629: } 26629: } 26629: 26629: inline void EncodeFixed32(char* buf, uint32_t value) { 26629: if (port::kLittleEndian) { 26629: memcpy(buf, &value, sizeof(value)); 26629: } else { 26629: buf[0] = value & 0xff; 26629: buf[1] = (value >> 8) & 0xff; 26629: buf[2] = (value >> 16) & 0xff; 26629: buf[3] = (value >> 24) & 0xff; 26629: } 26629: } 26629: 26629: inline void EncodeFixed64(char* buf, uint64_t value) { 26629: if (port::kLittleEndian) { 26629: memcpy(buf, &value, sizeof(value)); 26629: } else { 26629: buf[0] = value & 0xff; 26629: buf[1] = (value >> 8) & 0xff; 26629: buf[2] = (value >> 16) & 0xff; 26629: buf[3] = (value >> 24) & 0xff; 26629: buf[4] = (value >> 32) & 0xff; 26629: buf[5] = (value >> 40) & 0xff; 26629: buf[6] = (value >> 48) & 0xff; 26629: buf[7] = (value >> 56) & 0xff; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: inline uint16_t DecodeFixed16(const char* ptr) { 26629: if (port::kLittleEndian) { 26629: 26629: uint16_t result; 26629: memcpy(&result, ptr, sizeof(result)); 26629: return result; 26629: } else { 26629: return ((static_cast(static_cast(ptr[0]))) | 26629: (static_cast(static_cast(ptr[1])) << 8)); 26629: } 26629: } 26629: 26629: inline uint32_t DecodeFixed32(const char* ptr) { 26629: if (port::kLittleEndian) { 26629: 26629: uint32_t result; 26629: memcpy(&result, ptr, sizeof(result)); 26629: return result; 26629: } else { 26629: return ((static_cast(static_cast(ptr[0]))) | 26629: (static_cast(static_cast(ptr[1])) << 8) | 26629: (static_cast(static_cast(ptr[2])) << 16) | 26629: (static_cast(static_cast(ptr[3])) << 24)); 26629: } 26629: } 26629: 26629: inline uint64_t DecodeFixed64(const char* ptr) { 26629: if (port::kLittleEndian) { 26629: 26629: uint64_t result; 26629: memcpy(&result, ptr, sizeof(result)); 26629: return result; 26629: } else { 26629: uint64_t lo = DecodeFixed32(ptr); 26629: uint64_t hi = DecodeFixed32(ptr + 4); 26629: return (hi << 32) | lo; 26629: } 26629: } 26629: 26629: } 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/coding.h" 2 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: const uint32_t kMaxVarint64Length = 10; 26629: 26629: 26629: extern void PutFixed16(std::string* dst, uint16_t value); 26629: extern void PutFixed32(std::string* dst, uint32_t value); 26629: extern void PutFixed64(std::string* dst, uint64_t value); 26629: extern void PutVarint32(std::string* dst, uint32_t value); 26629: extern void PutVarint32Varint32(std::string* dst, uint32_t value1, 26629: uint32_t value2); 26629: extern void PutVarint32Varint32Varint32(std::string* dst, uint32_t value1, 26629: uint32_t value2, uint32_t value3); 26629: extern void PutVarint64(std::string* dst, uint64_t value); 26629: extern void PutVarint64Varint64(std::string* dst, uint64_t value1, 26629: uint64_t value2); 26629: extern void PutVarint32Varint64(std::string* dst, uint32_t value1, 26629: uint64_t value2); 26629: extern void PutVarint32Varint32Varint64(std::string* dst, uint32_t value1, 26629: uint32_t value2, uint64_t value3); 26629: extern void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 26629: extern void PutLengthPrefixedSliceParts(std::string* dst, 26629: const SliceParts& slice_parts); 26629: extern void PutLengthPrefixedSlicePartsWithPadding( 26629: std::string* dst, const SliceParts& slice_parts, size_t pad_sz); 26629: 26629: 26629: 26629: extern bool GetFixed64(Slice* input, uint64_t* value); 26629: extern bool GetFixed32(Slice* input, uint32_t* value); 26629: extern bool GetFixed16(Slice* input, uint16_t* value); 26629: extern bool GetVarint32(Slice* input, uint32_t* value); 26629: extern bool GetVarint64(Slice* input, uint64_t* value); 26629: extern bool GetVarsignedint64(Slice* input, int64_t* value); 26629: extern bool GetLengthPrefixedSlice(Slice* input, Slice* result); 26629: 26629: extern Slice GetLengthPrefixedSlice(const char* data); 26629: 26629: extern Slice GetSliceUntil(Slice* slice, char delimiter); 26629: 26629: 26629: 26629: constexpr inline uint64_t i64ToZigzag(const int64_t l) { 26629: return (static_cast(l) << 1) ^ static_cast(l >> 63); 26629: } 26629: inline int64_t zigzagToI64(uint64_t n) { 26629: return (n >> 1) ^ -static_cast(n & 1); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: extern const char* GetVarint32Ptr(const char* p,const char* limit, uint32_t* v); 26629: extern const char* GetVarint64Ptr(const char* p,const char* limit, uint64_t* v); 26629: inline const char* GetVarsignedint64Ptr(const char* p, const char* limit, 26629: int64_t* value) { 26629: uint64_t u = 0; 26629: const char* ret = GetVarint64Ptr(p, limit, &u); 26629: *value = zigzagToI64(u); 26629: return ret; 26629: } 26629: 26629: 26629: extern int VarintLength(uint64_t v); 26629: 26629: 26629: 26629: 26629: extern char* EncodeVarint32(char* dst, uint32_t value); 26629: extern char* EncodeVarint64(char* dst, uint64_t value); 26629: 26629: 26629: extern const char* GetVarint32PtrFallback(const char* p, 26629: const char* limit, 26629: uint32_t* value); 26629: inline const char* GetVarint32Ptr(const char* p, 26629: const char* limit, 26629: uint32_t* value) { 26629: if (p < limit) { 26629: uint32_t result = *(reinterpret_cast(p)); 26629: if ((result & 128) == 0) { 26629: *value = result; 26629: return p + 1; 26629: } 26629: } 26629: return GetVarint32PtrFallback(p, limit, value); 26629: } 26629: 26629: 26629: inline void PutFixed16(std::string* dst, uint16_t value) { 26629: if (port::kLittleEndian) { 26629: dst->append(const_cast(reinterpret_cast(&value)), 26629: sizeof(value)); 26629: } else { 26629: char buf[sizeof(value)]; 26629: EncodeFixed16(buf, value); 26629: dst->append(buf, sizeof(buf)); 26629: } 26629: } 26629: 26629: inline void PutFixed32(std::string* dst, uint32_t value) { 26629: if (port::kLittleEndian) { 26629: dst->append(const_cast(reinterpret_cast(&value)), 26629: sizeof(value)); 26629: } else { 26629: char buf[sizeof(value)]; 26629: EncodeFixed32(buf, value); 26629: dst->append(buf, sizeof(buf)); 26629: } 26629: } 26629: 26629: inline void PutFixed64(std::string* dst, uint64_t value) { 26629: if (port::kLittleEndian) { 26629: dst->append(const_cast(reinterpret_cast(&value)), 26629: sizeof(value)); 26629: } else { 26629: char buf[sizeof(value)]; 26629: EncodeFixed64(buf, value); 26629: dst->append(buf, sizeof(buf)); 26629: } 26629: } 26629: 26629: inline void PutVarint32(std::string* dst, uint32_t v) { 26629: char buf[5]; 26629: char* ptr = EncodeVarint32(buf, v); 26629: dst->append(buf, static_cast(ptr - buf)); 26629: } 26629: 26629: inline void PutVarint32Varint32(std::string* dst, uint32_t v1, uint32_t v2) { 26629: char buf[10]; 26629: char* ptr = EncodeVarint32(buf, v1); 26629: ptr = EncodeVarint32(ptr, v2); 26629: dst->append(buf, static_cast(ptr - buf)); 26629: } 26629: 26629: inline void PutVarint32Varint32Varint32(std::string* dst, uint32_t v1, 26629: uint32_t v2, uint32_t v3) { 26629: char buf[15]; 26629: char* ptr = EncodeVarint32(buf, v1); 26629: ptr = EncodeVarint32(ptr, v2); 26629: ptr = EncodeVarint32(ptr, v3); 26629: dst->append(buf, static_cast(ptr - buf)); 26629: } 26629: 26629: inline char* EncodeVarint64(char* dst, uint64_t v) { 26629: static const unsigned int B = 128; 26629: unsigned char* ptr = reinterpret_cast(dst); 26629: while (v >= B) { 26629: *(ptr++) = (v & (B - 1)) | B; 26629: v >>= 7; 26629: } 26629: *(ptr++) = static_cast(v); 26629: return reinterpret_cast(ptr); 26629: } 26629: 26629: inline void PutVarint64(std::string* dst, uint64_t v) { 26629: char buf[kMaxVarint64Length]; 26629: char* ptr = EncodeVarint64(buf, v); 26629: dst->append(buf, static_cast(ptr - buf)); 26629: } 26629: 26629: inline void PutVarsignedint64(std::string* dst, int64_t v) { 26629: char buf[kMaxVarint64Length]; 26629: 26629: char* ptr = EncodeVarint64(buf, i64ToZigzag(v)); 26629: dst->append(buf, static_cast(ptr - buf)); 26629: } 26629: 26629: inline void PutVarint64Varint64(std::string* dst, uint64_t v1, uint64_t v2) { 26629: char buf[20]; 26629: char* ptr = EncodeVarint64(buf, v1); 26629: ptr = EncodeVarint64(ptr, v2); 26629: dst->append(buf, static_cast(ptr - buf)); 26629: } 26629: 26629: inline void PutVarint32Varint64(std::string* dst, uint32_t v1, uint64_t v2) { 26629: char buf[15]; 26629: char* ptr = EncodeVarint32(buf, v1); 26629: ptr = EncodeVarint64(ptr, v2); 26629: dst->append(buf, static_cast(ptr - buf)); 26629: } 26629: 26629: inline void PutVarint32Varint32Varint64(std::string* dst, uint32_t v1, 26629: uint32_t v2, uint64_t v3) { 26629: char buf[20]; 26629: char* ptr = EncodeVarint32(buf, v1); 26629: ptr = EncodeVarint32(ptr, v2); 26629: ptr = EncodeVarint64(ptr, v3); 26629: dst->append(buf, static_cast(ptr - buf)); 26629: } 26629: 26629: inline void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { 26629: PutVarint32(dst, static_cast(value.size())); 26629: dst->append(value.data(), value.size()); 26629: } 26629: 26629: inline void PutLengthPrefixedSliceParts(std::string* dst, size_t total_bytes, 26629: const SliceParts& slice_parts) { 26629: for (int i = 0; i < slice_parts.num_parts; ++i) { 26629: total_bytes += slice_parts.parts[i].size(); 26629: } 26629: PutVarint32(dst, static_cast(total_bytes)); 26629: for (int i = 0; i < slice_parts.num_parts; ++i) { 26629: dst->append(slice_parts.parts[i].data(), slice_parts.parts[i].size()); 26629: } 26629: } 26629: 26629: inline void PutLengthPrefixedSliceParts(std::string* dst, 26629: const SliceParts& slice_parts) { 26629: PutLengthPrefixedSliceParts(dst, 0, slice_parts); 26629: } 26629: 26629: inline void PutLengthPrefixedSlicePartsWithPadding( 26629: std::string* dst, const SliceParts& slice_parts, size_t pad_sz) { 26629: PutLengthPrefixedSliceParts(dst, pad_sz, slice_parts); 26629: dst->append(pad_sz, '\0'); 26629: } 26629: 26629: inline int VarintLength(uint64_t v) { 26629: int len = 1; 26629: while (v >= 128) { 26629: v >>= 7; 26629: len++; 26629: } 26629: return len; 26629: } 26629: 26629: inline bool GetFixed64(Slice* input, uint64_t* value) { 26629: if (input->size() < sizeof(uint64_t)) { 26629: return false; 26629: } 26629: *value = DecodeFixed64(input->data()); 26629: input->remove_prefix(sizeof(uint64_t)); 26629: return true; 26629: } 26629: 26629: inline bool GetFixed32(Slice* input, uint32_t* value) { 26629: if (input->size() < sizeof(uint32_t)) { 26629: return false; 26629: } 26629: *value = DecodeFixed32(input->data()); 26629: input->remove_prefix(sizeof(uint32_t)); 26629: return true; 26629: } 26629: 26629: inline bool GetFixed16(Slice* input, uint16_t* value) { 26629: if (input->size() < sizeof(uint16_t)) { 26629: return false; 26629: } 26629: *value = DecodeFixed16(input->data()); 26629: input->remove_prefix(sizeof(uint16_t)); 26629: return true; 26629: } 26629: 26629: inline bool GetVarint32(Slice* input, uint32_t* value) { 26629: const char* p = input->data(); 26629: const char* limit = p + input->size(); 26629: const char* q = GetVarint32Ptr(p, limit, value); 26629: if (q == nullptr) { 26629: return false; 26629: } else { 26629: *input = Slice(q, static_cast(limit - q)); 26629: return true; 26629: } 26629: } 26629: 26629: inline bool GetVarint64(Slice* input, uint64_t* value) { 26629: const char* p = input->data(); 26629: const char* limit = p + input->size(); 26629: const char* q = GetVarint64Ptr(p, limit, value); 26629: if (q == nullptr) { 26629: return false; 26629: } else { 26629: *input = Slice(q, static_cast(limit - q)); 26629: return true; 26629: } 26629: } 26629: 26629: inline bool GetVarsignedint64(Slice* input, int64_t* value) { 26629: const char* p = input->data(); 26629: const char* limit = p + input->size(); 26629: const char* q = GetVarsignedint64Ptr(p, limit, value); 26629: if (q == nullptr) { 26629: return false; 26629: } else { 26629: *input = Slice(q, static_cast(limit - q)); 26629: return true; 26629: } 26629: } 26629: 26629: inline bool GetLengthPrefixedSlice(Slice* input, Slice* result) { 26629: uint32_t len = 0; 26629: if (GetVarint32(input, &len) && input->size() >= len) { 26629: *result = Slice(input->data(), len); 26629: input->remove_prefix(len); 26629: return true; 26629: } else { 26629: return false; 26629: } 26629: } 26629: 26629: inline Slice GetLengthPrefixedSlice(const char* data) { 26629: uint32_t len = 0; 26629: 26629: 26629: auto p = GetVarint32Ptr(data, data + 5 , &len); 26629: return Slice(p, len); 26629: } 26629: 26629: inline Slice GetSliceUntil(Slice* slice, char delimiter) { 26629: uint32_t len = 0; 26629: for (len = 0; len < slice->size() && slice->data()[len] != delimiter; ++len) { 26629: 26629: } 26629: 26629: Slice ret(slice->data(), len); 26629: slice->remove_prefix(len + ((len < slice->size()) ? 1 : 0)); 26629: return ret; 26629: } 26629: 26629: template 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline void PutUnaligned(T *memory, const T &value) { 26629: 26629: 26629: 26629: 26629: *memory = value; 26629: 26629: } 26629: 26629: template 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline void GetUnaligned(const T *memory, T *value) { 26629: 26629: 26629: 26629: 26629: *value = *memory; 26629: 26629: } 26629: 26629: } 26629: # 22 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/user_comparator_wrapper.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/util/user_comparator_wrapper.h" 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_context_imp.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_step_timer.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_level_imp.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/perf_level.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: enum PerfLevel : unsigned char { 26629: kUninitialized = 0, 26629: kDisable = 1, 26629: kEnableCount = 2, 26629: kEnableTimeExceptForMutex = 3, 26629: 26629: 26629: 26629: kEnableTimeAndCPUTimeExceptForMutex = 4, 26629: kEnableTime = 5, 26629: kOutOfBounds = 6 26629: }; 26629: 26629: 26629: void SetPerfLevel(PerfLevel level); 26629: 26629: 26629: PerfLevel GetPerfLevel(); 26629: 26629: } 26629: # 8 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_level_imp.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: extern thread_local PerfLevel perf_level; 26629: 26629: } 26629: # 8 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_step_timer.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cassert" 1 3 26629: # 41 "/usr/include/c++/12/cassert" 3 26629: 26629: # 42 "/usr/include/c++/12/cassert" 3 26629: 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 45 "/usr/include/c++/12/cassert" 2 3 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 2 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class HistogramBucketMapper { 26629: public: 26629: 26629: HistogramBucketMapper(); 26629: 26629: 26629: size_t IndexForValue(uint64_t value) const; 26629: 26629: 26629: size_t BucketCount() const { 26629: return bucketValues_.size(); 26629: } 26629: 26629: uint64_t LastValue() const { 26629: return maxBucketValue_; 26629: } 26629: 26629: uint64_t FirstValue() const { 26629: return minBucketValue_; 26629: } 26629: 26629: uint64_t BucketLimit(const size_t bucketNumber) const { 26629: 26629: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 3 4 26629: (static_cast ( 26629: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 26629: bucketNumber < BucketCount() 26629: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 26629: "bucketNumber < BucketCount()" 26629: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 3 4 26629: , "./monitoring/histogram.h", 43, __extension__ __PRETTY_FUNCTION__)) 26629: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 26629: ; 26629: return bucketValues_[bucketNumber]; 26629: } 26629: 26629: private: 26629: std::vector bucketValues_; 26629: uint64_t maxBucketValue_; 26629: uint64_t minBucketValue_; 26629: }; 26629: 26629: struct HistogramStat { 26629: HistogramStat(); 26629: ~HistogramStat() {} 26629: 26629: HistogramStat(const HistogramStat&) = delete; 26629: HistogramStat& operator=(const HistogramStat&) = delete; 26629: 26629: void Clear(); 26629: bool Empty() const; 26629: void Add(uint64_t value); 26629: void Merge(const HistogramStat& other); 26629: 26629: inline uint64_t min() const { return min_.load(std::memory_order_relaxed); } 26629: inline uint64_t max() const { return max_.load(std::memory_order_relaxed); } 26629: inline uint64_t num() const { return num_.load(std::memory_order_relaxed); } 26629: inline uint64_t sum() const { return sum_.load(std::memory_order_relaxed); } 26629: inline uint64_t sum_squares() const { 26629: return sum_squares_.load(std::memory_order_relaxed); 26629: } 26629: inline uint64_t bucket_at(size_t b) const { 26629: return buckets_[b].load(std::memory_order_relaxed); 26629: } 26629: 26629: double Median() const; 26629: double Percentile(double p) const; 26629: double Average() const; 26629: double StandardDeviation() const; 26629: void Data(HistogramData* const data) const; 26629: std::string ToString() const; 26629: 26629: 26629: 26629: 26629: std::atomic_uint_fast64_t min_; 26629: std::atomic_uint_fast64_t max_; 26629: std::atomic_uint_fast64_t num_; 26629: std::atomic_uint_fast64_t sum_; 26629: std::atomic_uint_fast64_t sum_squares_; 26629: std::atomic_uint_fast64_t buckets_[109]; 26629: const uint64_t num_buckets_; 26629: }; 26629: 26629: class Histogram { 26629: public: 26629: Histogram() {} 26629: virtual ~Histogram() {}; 26629: 26629: virtual void Clear() = 0; 26629: virtual bool Empty() const = 0; 26629: virtual void Add(uint64_t value) = 0; 26629: virtual void Merge(const Histogram&) = 0; 26629: 26629: virtual std::string ToString() const = 0; 26629: virtual const char* Name() const = 0; 26629: virtual uint64_t min() const = 0; 26629: virtual uint64_t max() const = 0; 26629: virtual uint64_t num() const = 0; 26629: virtual double Median() const = 0; 26629: virtual double Percentile(double p) const = 0; 26629: virtual double Average() const = 0; 26629: virtual double StandardDeviation() const = 0; 26629: virtual void Data(HistogramData* const data) const = 0; 26629: }; 26629: 26629: class HistogramImpl : public Histogram { 26629: public: 26629: HistogramImpl() { Clear(); } 26629: 26629: HistogramImpl(const HistogramImpl&) = delete; 26629: HistogramImpl& operator=(const HistogramImpl&) = delete; 26629: 26629: virtual void Clear() override; 26629: virtual bool Empty() const override; 26629: virtual void Add(uint64_t value) override; 26629: virtual void Merge(const Histogram& other) override; 26629: void Merge(const HistogramImpl& other); 26629: 26629: virtual std::string ToString() const override; 26629: virtual const char* Name() const override { return "HistogramImpl"; } 26629: virtual uint64_t min() const override { return stats_.min(); } 26629: virtual uint64_t max() const override { return stats_.max(); } 26629: virtual uint64_t num() const override { return stats_.num(); } 26629: virtual double Median() const override; 26629: virtual double Percentile(double p) const override; 26629: virtual double Average() const override; 26629: virtual double StandardDeviation() const override; 26629: virtual void Data(HistogramData* const data) const override; 26629: 26629: virtual ~HistogramImpl() {} 26629: 26629: inline HistogramStat& TEST_GetStats() { return stats_; } 26629: 26629: private: 26629: HistogramStat stats_; 26629: std::mutex mutex_; 26629: }; 26629: 26629: } 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/likely.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/port/likely.h" 26629: 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/random.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/util/random.h" 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/random" 1 3 26629: # 32 "/usr/include/c++/12/random" 3 26629: 26629: # 33 "/usr/include/c++/12/random" 3 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cmath" 1 3 26629: # 39 "/usr/include/c++/12/cmath" 3 26629: 26629: # 40 "/usr/include/c++/12/cmath" 3 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/math.h" 1 3 4 26629: # 27 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 26629: # 28 "/usr/include/math.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 34 "/usr/include/math.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 1 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/libm-simd-decl-stubs.h" 1 3 4 26629: # 28 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 2 3 4 26629: # 41 "/usr/include/math.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 26629: # 44 "/usr/include/math.h" 2 3 4 26629: # 152 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/flt-eval-method.h" 1 3 4 26629: # 153 "/usr/include/math.h" 2 3 4 26629: # 163 "/usr/include/math.h" 3 4 26629: typedef float float_t; 26629: typedef double double_t; 26629: # 204 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-logb.h" 1 3 4 26629: # 205 "/usr/include/math.h" 2 3 4 26629: # 247 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-fast.h" 1 3 4 26629: # 248 "/usr/include/math.h" 2 3 4 26629: 26629: 26629: 26629: enum 26629: { 26629: FP_INT_UPWARD = 26629: 26629: 0, 26629: FP_INT_DOWNWARD = 26629: 26629: 1, 26629: FP_INT_TOWARDZERO = 26629: 26629: 2, 26629: FP_INT_TONEARESTFROMZERO = 26629: 26629: 3, 26629: FP_INT_TONEAREST = 26629: 26629: 4, 26629: }; 26629: # 312 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 26629: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 26629: extern int __fpclassify (double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __signbit (double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern int __isinf (double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __finite (double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __isnan (double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __iseqsig (double __x, double __y) noexcept (true); 26629: 26629: 26629: extern int __issignaling (double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: # 313 "/usr/include/math.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 26629: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); 26629: 26629: extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); 26629: 26629: extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); 26629: 26629: extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); 26629: 26629: 26629: extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); 26629: 26629: extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); 26629: 26629: extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); 26629: 26629: extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); 26629: 26629: extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); 26629: 26629: 26629: 26629: extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) 26629: ; 26629: 26629: 26629: 26629: 26629: extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); 26629: 26629: extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); 26629: 26629: extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); 26629: 26629: 26629: extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); 26629: 26629: 26629: extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); 26629: 26629: 26629: extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); 26629: 26629: 26629: extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); 26629: 26629: 26629: extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); 26629: 26629: 26629: extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); 26629: 26629: 26629: extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); 26629: 26629: 26629: extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); 26629: 26629: 26629: extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); 26629: 26629: 26629: 26629: extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); 26629: # 183 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern int finite (double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); 26629: 26629: 26629: 26629: extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); 26629: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); 26629: extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); 26629: extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); 26629: extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); 26629: extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); 26629: extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); 26629: extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); 26629: extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); 26629: 26629: 26629: extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); 26629: 26629: extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); 26629: 26629: extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); 26629: 26629: 26629: 26629: extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); 26629: 26629: 26629: 26629: extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); 26629: 26629: 26629: 26629: extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); 26629: 26629: 26629: 26629: extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); 26629: 26629: 26629: 26629: extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); 26629: __extension__ 26629: extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); 26629: 26629: 26629: 26629: extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); 26629: __extension__ 26629: extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); 26629: 26629: 26629: 26629: extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); 26629: 26629: 26629: 26629: extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: extern int canonicalize (double *__cx, const double *__x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 26629: 26629: extern int totalorder (const double *__x, const double *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern int totalordermag (const double *__x, const double *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); 26629: 26629: 26629: extern int setpayload (double *__x, double __payload) noexcept (true); 26629: 26629: 26629: extern int setpayloadsig (double *__x, double __payload) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); 26629: # 314 "/usr/include/math.h" 2 3 4 26629: # 329 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 26629: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 26629: extern int __fpclassifyf (float __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __signbitf (float __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern int __isinff (float __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __finitef (float __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __isnanf (float __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __iseqsigf (float __x, float __y) noexcept (true); 26629: 26629: 26629: extern int __issignalingf (float __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: # 330 "/usr/include/math.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 26629: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); 26629: 26629: extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); 26629: 26629: extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); 26629: 26629: extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); 26629: 26629: 26629: extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); 26629: 26629: extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); 26629: 26629: extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); 26629: 26629: extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); 26629: 26629: extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); 26629: 26629: 26629: 26629: extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) 26629: ; 26629: 26629: 26629: 26629: 26629: extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); 26629: 26629: extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); 26629: 26629: extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); 26629: 26629: 26629: extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); 26629: 26629: 26629: extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); 26629: 26629: 26629: extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); 26629: 26629: 26629: extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); 26629: 26629: 26629: extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); 26629: 26629: 26629: extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); 26629: 26629: 26629: extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); 26629: 26629: 26629: extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); 26629: 26629: 26629: extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); 26629: 26629: 26629: 26629: extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); 26629: # 177 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern int isinff (float __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern int finitef (float __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); 26629: 26629: 26629: 26629: extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); 26629: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern int isnanf (float __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: 26629: extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); 26629: extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); 26629: extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); 26629: extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); 26629: extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); 26629: extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); 26629: extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); 26629: extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); 26629: 26629: 26629: extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); 26629: 26629: extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); 26629: 26629: extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); 26629: 26629: 26629: 26629: extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); 26629: 26629: 26629: 26629: extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); 26629: 26629: 26629: 26629: extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); 26629: 26629: 26629: 26629: extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); 26629: 26629: 26629: 26629: extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); 26629: __extension__ 26629: extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); 26629: 26629: 26629: 26629: extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); 26629: __extension__ 26629: extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); 26629: 26629: 26629: 26629: extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); 26629: 26629: 26629: 26629: extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: extern int canonicalizef (float *__cx, const float *__x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 26629: 26629: extern int totalorderf (const float *__x, const float *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern int totalordermagf (const float *__x, const float *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); 26629: 26629: 26629: extern int setpayloadf (float *__x, float __payload) noexcept (true); 26629: 26629: 26629: extern int setpayloadsigf (float *__x, float __payload) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); 26629: # 331 "/usr/include/math.h" 2 3 4 26629: # 398 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 26629: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 26629: extern int __fpclassifyl (long double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __signbitl (long double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern int __isinfl (long double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __finitel (long double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __isnanl (long double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern int __iseqsigl (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: extern int __issignalingl (long double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: # 399 "/usr/include/math.h" 2 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 26629: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); 26629: 26629: extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); 26629: 26629: extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); 26629: 26629: extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); 26629: 26629: 26629: extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); 26629: 26629: extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); 26629: 26629: extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); 26629: 26629: extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); 26629: 26629: extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); 26629: 26629: extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); 26629: 26629: extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); 26629: 26629: 26629: extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); 26629: 26629: 26629: extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); 26629: 26629: 26629: extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); 26629: 26629: 26629: extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); 26629: 26629: 26629: 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))); 26629: 26629: 26629: 26629: extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); 26629: 26629: 26629: extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); 26629: 26629: 26629: extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); 26629: 26629: 26629: extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); 26629: # 177 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern int isinfl (long double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern int finitel (long double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: 26629: extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 26629: 26629: extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); 26629: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern int isnanl (long double __value) noexcept (true) 26629: __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: 26629: extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); 26629: extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); 26629: extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); 26629: extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); 26629: extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); 26629: extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); 26629: extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); 26629: extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); 26629: 26629: 26629: extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); 26629: 26629: extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); 26629: 26629: extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: 26629: extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); 26629: 26629: 26629: 26629: extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); 26629: 26629: 26629: 26629: extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: 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); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); 26629: __extension__ 26629: extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); 26629: __extension__ 26629: extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); 26629: 26629: 26629: 26629: extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 26629: 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); 26629: 26629: 26629: 26629: 26629: extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 26629: 26629: extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); 26629: 26629: 26629: extern int setpayloadl (long double *__x, long double __payload) noexcept (true); 26629: 26629: 26629: extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); 26629: # 400 "/usr/include/math.h" 2 3 4 26629: # 450 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 26629: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); 26629: 26629: extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); 26629: 26629: extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); 26629: 26629: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); 26629: 26629: 26629: extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); 26629: 26629: extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); 26629: 26629: extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); 26629: 26629: extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); 26629: 26629: extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) 26629: ; 26629: 26629: 26629: 26629: 26629: extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); 26629: 26629: extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); 26629: 26629: extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); 26629: 26629: 26629: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); 26629: 26629: 26629: extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); 26629: 26629: 26629: extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); 26629: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); 26629: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); 26629: extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); 26629: extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); 26629: extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); 26629: extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); 26629: extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); 26629: extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); 26629: extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); 26629: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); 26629: 26629: extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); 26629: 26629: 26629: 26629: extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); 26629: __extension__ 26629: extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); 26629: __extension__ 26629: extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 26629: 26629: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); 26629: 26629: 26629: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 26629: 26629: 26629: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 26629: # 451 "/usr/include/math.h" 2 3 4 26629: # 467 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 26629: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); 26629: 26629: extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); 26629: 26629: extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); 26629: 26629: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); 26629: 26629: 26629: extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); 26629: 26629: extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); 26629: 26629: extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); 26629: 26629: extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); 26629: 26629: extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) 26629: ; 26629: 26629: 26629: 26629: 26629: extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); 26629: 26629: extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); 26629: 26629: extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); 26629: 26629: 26629: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); 26629: 26629: 26629: extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); 26629: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); 26629: extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); 26629: extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); 26629: extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); 26629: extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); 26629: extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); 26629: extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); 26629: extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); 26629: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); 26629: 26629: extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: 26629: extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); 26629: 26629: 26629: 26629: extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); 26629: 26629: 26629: 26629: extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); 26629: __extension__ 26629: extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); 26629: __extension__ 26629: extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: 26629: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 26629: 26629: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); 26629: 26629: 26629: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 26629: 26629: 26629: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 26629: # 468 "/usr/include/math.h" 2 3 4 26629: # 501 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 26629: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); 26629: 26629: extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); 26629: 26629: extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); 26629: 26629: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); 26629: 26629: 26629: extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); 26629: 26629: extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); 26629: 26629: extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); 26629: 26629: extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); 26629: 26629: extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) 26629: ; 26629: 26629: 26629: 26629: 26629: extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); 26629: 26629: extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); 26629: 26629: extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); 26629: 26629: 26629: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); 26629: 26629: 26629: extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); 26629: 26629: 26629: extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); 26629: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); 26629: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); 26629: extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); 26629: extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); 26629: extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); 26629: extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); 26629: extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); 26629: extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); 26629: extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); 26629: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 26629: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); 26629: 26629: extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); 26629: 26629: 26629: 26629: extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); 26629: __extension__ 26629: extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); 26629: __extension__ 26629: extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); 26629: 26629: 26629: 26629: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: 26629: 26629: 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) 26629: ; 26629: 26629: 26629: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 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__)); 26629: 26629: 26629: 26629: 26629: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 26629: 26629: __attribute__ ((__pure__)); 26629: 26629: 26629: extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); 26629: 26629: 26629: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 26629: 26629: 26629: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 26629: # 502 "/usr/include/math.h" 2 3 4 26629: # 566 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 26629: extern float fadd (double __x, double __y) noexcept (true); 26629: 26629: 26629: extern float fdiv (double __x, double __y) noexcept (true); 26629: 26629: 26629: extern float ffma (double __x, double __y, double __z) noexcept (true); 26629: 26629: 26629: extern float fmul (double __x, double __y) noexcept (true); 26629: 26629: 26629: extern float fsqrt (double __x) noexcept (true); 26629: 26629: 26629: extern float fsub (double __x, double __y) noexcept (true); 26629: # 567 "/usr/include/math.h" 2 3 4 26629: # 587 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 26629: extern float faddl (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: extern float fdivl (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); 26629: 26629: 26629: extern float fmull (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: extern float fsqrtl (long double __x) noexcept (true); 26629: 26629: 26629: extern float fsubl (long double __x, long double __y) noexcept (true); 26629: # 588 "/usr/include/math.h" 2 3 4 26629: # 616 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 26629: extern double daddl (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: extern double ddivl (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); 26629: 26629: 26629: extern double dmull (long double __x, long double __y) noexcept (true); 26629: 26629: 26629: extern double dsqrtl (long double __x) noexcept (true); 26629: 26629: 26629: extern double dsubl (long double __x, long double __y) noexcept (true); 26629: # 617 "/usr/include/math.h" 2 3 4 26629: # 697 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 26629: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); 26629: 26629: 26629: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); 26629: 26629: 26629: extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 26629: 26629: 26629: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); 26629: 26629: 26629: extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); 26629: 26629: 26629: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); 26629: # 698 "/usr/include/math.h" 2 3 4 26629: # 707 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 26629: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 26629: 26629: 26629: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: # 708 "/usr/include/math.h" 2 3 4 26629: # 747 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 26629: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 26629: 26629: 26629: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: 26629: 26629: extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); 26629: 26629: 26629: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); 26629: # 748 "/usr/include/math.h" 2 3 4 26629: # 854 "/usr/include/math.h" 3 4 26629: extern int signgam; 26629: # 934 "/usr/include/math.h" 3 4 26629: enum 26629: { 26629: FP_NAN = 26629: 26629: 0, 26629: FP_INFINITE = 26629: 26629: 1, 26629: FP_ZERO = 26629: 26629: 2, 26629: FP_SUBNORMAL = 26629: 26629: 3, 26629: FP_NORMAL = 26629: 26629: 4 26629: }; 26629: # 1054 "/usr/include/math.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/iscanonical.h" 1 3 4 26629: # 1055 "/usr/include/math.h" 2 3 4 26629: # 1066 "/usr/include/math.h" 3 4 26629: extern "C++" { 26629: inline int issignaling (float __val) { return __issignalingf (__val); } 26629: inline int issignaling (double __val) { return __issignaling (__val); } 26629: inline int 26629: issignaling (long double __val) 26629: { 26629: 26629: return __issignaling (__val); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 1097 "/usr/include/math.h" 3 4 26629: extern "C++" { 26629: # 1128 "/usr/include/math.h" 3 4 26629: template inline bool 26629: iszero (__T __val) 26629: { 26629: return __val == 0; 26629: } 26629: 26629: } 26629: # 1363 "/usr/include/math.h" 3 4 26629: extern "C++" { 26629: template struct __iseqsig_type; 26629: 26629: template<> struct __iseqsig_type 26629: { 26629: static int __call (float __x, float __y) throw () 26629: { 26629: return __iseqsigf (__x, __y); 26629: } 26629: }; 26629: 26629: template<> struct __iseqsig_type 26629: { 26629: static int __call (double __x, double __y) throw () 26629: { 26629: return __iseqsig (__x, __y); 26629: } 26629: }; 26629: 26629: template<> struct __iseqsig_type 26629: { 26629: static int __call (long double __x, long double __y) throw () 26629: { 26629: 26629: 26629: 26629: return __iseqsig (__x, __y); 26629: 26629: } 26629: }; 26629: # 1454 "/usr/include/math.h" 3 4 26629: template 26629: inline int 26629: iseqsig (_T1 __x, _T2 __y) throw () 26629: { 26629: 26629: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 26629: 26629: 26629: 26629: return __iseqsig_type<_T3>::__call (__x, __y); 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: 26629: } 26629: # 46 "/usr/include/c++/12/cmath" 2 3 26629: # 77 "/usr/include/c++/12/cmath" 3 26629: extern "C++" 26629: { 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: using ::acos; 26629: 26629: 26629: inline constexpr float 26629: acos(float __x) 26629: { return __builtin_acosf(__x); } 26629: 26629: inline constexpr long double 26629: acos(long double __x) 26629: { return __builtin_acosl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: acos(_Tp __x) 26629: { return __builtin_acos(__x); } 26629: 26629: using ::asin; 26629: 26629: 26629: inline constexpr float 26629: asin(float __x) 26629: { return __builtin_asinf(__x); } 26629: 26629: inline constexpr long double 26629: asin(long double __x) 26629: { return __builtin_asinl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: asin(_Tp __x) 26629: { return __builtin_asin(__x); } 26629: 26629: using ::atan; 26629: 26629: 26629: inline constexpr float 26629: atan(float __x) 26629: { return __builtin_atanf(__x); } 26629: 26629: inline constexpr long double 26629: atan(long double __x) 26629: { return __builtin_atanl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: atan(_Tp __x) 26629: { return __builtin_atan(__x); } 26629: 26629: using ::atan2; 26629: 26629: 26629: inline constexpr float 26629: atan2(float __y, float __x) 26629: { return __builtin_atan2f(__y, __x); } 26629: 26629: inline constexpr long double 26629: atan2(long double __y, long double __x) 26629: { return __builtin_atan2l(__y, __x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: atan2(_Tp __y, _Up __x) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return atan2(__type(__y), __type(__x)); 26629: } 26629: 26629: using ::ceil; 26629: 26629: 26629: inline constexpr float 26629: ceil(float __x) 26629: { return __builtin_ceilf(__x); } 26629: 26629: inline constexpr long double 26629: ceil(long double __x) 26629: { return __builtin_ceill(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: ceil(_Tp __x) 26629: { return __builtin_ceil(__x); } 26629: 26629: using ::cos; 26629: 26629: 26629: inline constexpr float 26629: cos(float __x) 26629: { return __builtin_cosf(__x); } 26629: 26629: inline constexpr long double 26629: cos(long double __x) 26629: { return __builtin_cosl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: cos(_Tp __x) 26629: { return __builtin_cos(__x); } 26629: 26629: using ::cosh; 26629: 26629: 26629: inline constexpr float 26629: cosh(float __x) 26629: { return __builtin_coshf(__x); } 26629: 26629: inline constexpr long double 26629: cosh(long double __x) 26629: { return __builtin_coshl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: cosh(_Tp __x) 26629: { return __builtin_cosh(__x); } 26629: 26629: using ::exp; 26629: 26629: 26629: inline constexpr float 26629: exp(float __x) 26629: { return __builtin_expf(__x); } 26629: 26629: inline constexpr long double 26629: exp(long double __x) 26629: { return __builtin_expl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: exp(_Tp __x) 26629: { return __builtin_exp(__x); } 26629: 26629: using ::fabs; 26629: 26629: 26629: inline constexpr float 26629: fabs(float __x) 26629: { return __builtin_fabsf(__x); } 26629: 26629: inline constexpr long double 26629: fabs(long double __x) 26629: { return __builtin_fabsl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: fabs(_Tp __x) 26629: { return __builtin_fabs(__x); } 26629: 26629: using ::floor; 26629: 26629: 26629: inline constexpr float 26629: floor(float __x) 26629: { return __builtin_floorf(__x); } 26629: 26629: inline constexpr long double 26629: floor(long double __x) 26629: { return __builtin_floorl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: floor(_Tp __x) 26629: { return __builtin_floor(__x); } 26629: 26629: using ::fmod; 26629: 26629: 26629: inline constexpr float 26629: fmod(float __x, float __y) 26629: { return __builtin_fmodf(__x, __y); } 26629: 26629: inline constexpr long double 26629: fmod(long double __x, long double __y) 26629: { return __builtin_fmodl(__x, __y); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: fmod(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return fmod(__type(__x), __type(__y)); 26629: } 26629: 26629: using ::frexp; 26629: 26629: 26629: inline float 26629: frexp(float __x, int* __exp) 26629: { return __builtin_frexpf(__x, __exp); } 26629: 26629: inline long double 26629: frexp(long double __x, int* __exp) 26629: { return __builtin_frexpl(__x, __exp); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: frexp(_Tp __x, int* __exp) 26629: { return __builtin_frexp(__x, __exp); } 26629: 26629: using ::ldexp; 26629: 26629: 26629: inline constexpr float 26629: ldexp(float __x, int __exp) 26629: { return __builtin_ldexpf(__x, __exp); } 26629: 26629: inline constexpr long double 26629: ldexp(long double __x, int __exp) 26629: { return __builtin_ldexpl(__x, __exp); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: ldexp(_Tp __x, int __exp) 26629: { return __builtin_ldexp(__x, __exp); } 26629: 26629: using ::log; 26629: 26629: 26629: inline constexpr float 26629: log(float __x) 26629: { return __builtin_logf(__x); } 26629: 26629: inline constexpr long double 26629: log(long double __x) 26629: { return __builtin_logl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: log(_Tp __x) 26629: { return __builtin_log(__x); } 26629: 26629: using ::log10; 26629: 26629: 26629: inline constexpr float 26629: log10(float __x) 26629: { return __builtin_log10f(__x); } 26629: 26629: inline constexpr long double 26629: log10(long double __x) 26629: { return __builtin_log10l(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: log10(_Tp __x) 26629: { return __builtin_log10(__x); } 26629: 26629: using ::modf; 26629: 26629: 26629: inline float 26629: modf(float __x, float* __iptr) 26629: { return __builtin_modff(__x, __iptr); } 26629: 26629: inline long double 26629: modf(long double __x, long double* __iptr) 26629: { return __builtin_modfl(__x, __iptr); } 26629: 26629: 26629: using ::pow; 26629: 26629: 26629: inline constexpr float 26629: pow(float __x, float __y) 26629: { return __builtin_powf(__x, __y); } 26629: 26629: inline constexpr long double 26629: pow(long double __x, long double __y) 26629: { return __builtin_powl(__x, __y); } 26629: # 412 "/usr/include/c++/12/cmath" 3 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: pow(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return pow(__type(__x), __type(__y)); 26629: } 26629: 26629: using ::sin; 26629: 26629: 26629: inline constexpr float 26629: sin(float __x) 26629: { return __builtin_sinf(__x); } 26629: 26629: inline constexpr long double 26629: sin(long double __x) 26629: { return __builtin_sinl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: sin(_Tp __x) 26629: { return __builtin_sin(__x); } 26629: 26629: using ::sinh; 26629: 26629: 26629: inline constexpr float 26629: sinh(float __x) 26629: { return __builtin_sinhf(__x); } 26629: 26629: inline constexpr long double 26629: sinh(long double __x) 26629: { return __builtin_sinhl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: sinh(_Tp __x) 26629: { return __builtin_sinh(__x); } 26629: 26629: using ::sqrt; 26629: 26629: 26629: inline constexpr float 26629: sqrt(float __x) 26629: { return __builtin_sqrtf(__x); } 26629: 26629: inline constexpr long double 26629: sqrt(long double __x) 26629: { return __builtin_sqrtl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: sqrt(_Tp __x) 26629: { return __builtin_sqrt(__x); } 26629: 26629: using ::tan; 26629: 26629: 26629: inline constexpr float 26629: tan(float __x) 26629: { return __builtin_tanf(__x); } 26629: 26629: inline constexpr long double 26629: tan(long double __x) 26629: { return __builtin_tanl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: tan(_Tp __x) 26629: { return __builtin_tan(__x); } 26629: 26629: using ::tanh; 26629: 26629: 26629: inline constexpr float 26629: tanh(float __x) 26629: { return __builtin_tanhf(__x); } 26629: 26629: inline constexpr long double 26629: tanh(long double __x) 26629: { return __builtin_tanhl(__x); } 26629: 26629: 26629: template 26629: inline constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: tanh(_Tp __x) 26629: { return __builtin_tanh(__x); } 26629: # 536 "/usr/include/c++/12/cmath" 3 26629: constexpr int 26629: fpclassify(float __x) 26629: { return __builtin_fpclassify(0, 1, 4, 26629: 3, 2, __x); } 26629: 26629: constexpr int 26629: fpclassify(double __x) 26629: { return __builtin_fpclassify(0, 1, 4, 26629: 3, 2, __x); } 26629: 26629: constexpr int 26629: fpclassify(long double __x) 26629: { return __builtin_fpclassify(0, 1, 4, 26629: 3, 2, __x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: int>::__type 26629: fpclassify(_Tp __x) 26629: { return __x != 0 ? 4 : 2; } 26629: 26629: 26629: 26629: constexpr bool 26629: isfinite(float __x) 26629: { return __builtin_isfinite(__x); } 26629: 26629: constexpr bool 26629: isfinite(double __x) 26629: { return __builtin_isfinite(__x); } 26629: 26629: constexpr bool 26629: isfinite(long double __x) 26629: { return __builtin_isfinite(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: bool>::__type 26629: isfinite(_Tp __x) 26629: { return true; } 26629: 26629: 26629: 26629: constexpr bool 26629: isinf(float __x) 26629: { return __builtin_isinf(__x); } 26629: 26629: 26629: 26629: 26629: 26629: constexpr bool 26629: isinf(double __x) 26629: { return __builtin_isinf(__x); } 26629: 26629: 26629: constexpr bool 26629: isinf(long double __x) 26629: { return __builtin_isinf(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: bool>::__type 26629: isinf(_Tp __x) 26629: { return false; } 26629: 26629: 26629: 26629: constexpr bool 26629: isnan(float __x) 26629: { return __builtin_isnan(__x); } 26629: 26629: 26629: 26629: 26629: 26629: constexpr bool 26629: isnan(double __x) 26629: { return __builtin_isnan(__x); } 26629: 26629: 26629: constexpr bool 26629: isnan(long double __x) 26629: { return __builtin_isnan(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: bool>::__type 26629: isnan(_Tp __x) 26629: { return false; } 26629: 26629: 26629: 26629: constexpr bool 26629: isnormal(float __x) 26629: { return __builtin_isnormal(__x); } 26629: 26629: constexpr bool 26629: isnormal(double __x) 26629: { return __builtin_isnormal(__x); } 26629: 26629: constexpr bool 26629: isnormal(long double __x) 26629: { return __builtin_isnormal(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: bool>::__type 26629: isnormal(_Tp __x) 26629: { return __x != 0 ? true : false; } 26629: 26629: 26629: 26629: 26629: constexpr bool 26629: signbit(float __x) 26629: { return __builtin_signbit(__x); } 26629: 26629: constexpr bool 26629: signbit(double __x) 26629: { return __builtin_signbit(__x); } 26629: 26629: constexpr bool 26629: signbit(long double __x) 26629: { return __builtin_signbit(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: bool>::__type 26629: signbit(_Tp __x) 26629: { return __x < 0 ? true : false; } 26629: 26629: 26629: 26629: constexpr bool 26629: isgreater(float __x, float __y) 26629: { return __builtin_isgreater(__x, __y); } 26629: 26629: constexpr bool 26629: isgreater(double __x, double __y) 26629: { return __builtin_isgreater(__x, __y); } 26629: 26629: constexpr bool 26629: isgreater(long double __x, long double __y) 26629: { return __builtin_isgreater(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename 26629: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 26629: && __is_arithmetic<_Up>::__value), bool>::__type 26629: isgreater(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return __builtin_isgreater(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr bool 26629: isgreaterequal(float __x, float __y) 26629: { return __builtin_isgreaterequal(__x, __y); } 26629: 26629: constexpr bool 26629: isgreaterequal(double __x, double __y) 26629: { return __builtin_isgreaterequal(__x, __y); } 26629: 26629: constexpr bool 26629: isgreaterequal(long double __x, long double __y) 26629: { return __builtin_isgreaterequal(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename 26629: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 26629: && __is_arithmetic<_Up>::__value), bool>::__type 26629: isgreaterequal(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return __builtin_isgreaterequal(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr bool 26629: isless(float __x, float __y) 26629: { return __builtin_isless(__x, __y); } 26629: 26629: constexpr bool 26629: isless(double __x, double __y) 26629: { return __builtin_isless(__x, __y); } 26629: 26629: constexpr bool 26629: isless(long double __x, long double __y) 26629: { return __builtin_isless(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename 26629: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 26629: && __is_arithmetic<_Up>::__value), bool>::__type 26629: isless(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return __builtin_isless(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr bool 26629: islessequal(float __x, float __y) 26629: { return __builtin_islessequal(__x, __y); } 26629: 26629: constexpr bool 26629: islessequal(double __x, double __y) 26629: { return __builtin_islessequal(__x, __y); } 26629: 26629: constexpr bool 26629: islessequal(long double __x, long double __y) 26629: { return __builtin_islessequal(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename 26629: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 26629: && __is_arithmetic<_Up>::__value), bool>::__type 26629: islessequal(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return __builtin_islessequal(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr bool 26629: islessgreater(float __x, float __y) 26629: { return __builtin_islessgreater(__x, __y); } 26629: 26629: constexpr bool 26629: islessgreater(double __x, double __y) 26629: { return __builtin_islessgreater(__x, __y); } 26629: 26629: constexpr bool 26629: islessgreater(long double __x, long double __y) 26629: { return __builtin_islessgreater(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename 26629: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 26629: && __is_arithmetic<_Up>::__value), bool>::__type 26629: islessgreater(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return __builtin_islessgreater(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr bool 26629: isunordered(float __x, float __y) 26629: { return __builtin_isunordered(__x, __y); } 26629: 26629: constexpr bool 26629: isunordered(double __x, double __y) 26629: { return __builtin_isunordered(__x, __y); } 26629: 26629: constexpr bool 26629: isunordered(long double __x, long double __y) 26629: { return __builtin_isunordered(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename 26629: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 26629: && __is_arithmetic<_Up>::__value), bool>::__type 26629: isunordered(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return __builtin_isunordered(__type(__x), __type(__y)); 26629: } 26629: # 1065 "/usr/include/c++/12/cmath" 3 26629: using ::double_t; 26629: using ::float_t; 26629: 26629: 26629: using ::acosh; 26629: using ::acoshf; 26629: using ::acoshl; 26629: 26629: using ::asinh; 26629: using ::asinhf; 26629: using ::asinhl; 26629: 26629: using ::atanh; 26629: using ::atanhf; 26629: using ::atanhl; 26629: 26629: using ::cbrt; 26629: using ::cbrtf; 26629: using ::cbrtl; 26629: 26629: using ::copysign; 26629: using ::copysignf; 26629: using ::copysignl; 26629: 26629: using ::erf; 26629: using ::erff; 26629: using ::erfl; 26629: 26629: using ::erfc; 26629: using ::erfcf; 26629: using ::erfcl; 26629: 26629: using ::exp2; 26629: using ::exp2f; 26629: using ::exp2l; 26629: 26629: using ::expm1; 26629: using ::expm1f; 26629: using ::expm1l; 26629: 26629: using ::fdim; 26629: using ::fdimf; 26629: using ::fdiml; 26629: 26629: using ::fma; 26629: using ::fmaf; 26629: using ::fmal; 26629: 26629: using ::fmax; 26629: using ::fmaxf; 26629: using ::fmaxl; 26629: 26629: using ::fmin; 26629: using ::fminf; 26629: using ::fminl; 26629: 26629: using ::hypot; 26629: using ::hypotf; 26629: using ::hypotl; 26629: 26629: using ::ilogb; 26629: using ::ilogbf; 26629: using ::ilogbl; 26629: 26629: using ::lgamma; 26629: using ::lgammaf; 26629: using ::lgammal; 26629: 26629: 26629: using ::llrint; 26629: using ::llrintf; 26629: using ::llrintl; 26629: 26629: using ::llround; 26629: using ::llroundf; 26629: using ::llroundl; 26629: 26629: 26629: using ::log1p; 26629: using ::log1pf; 26629: using ::log1pl; 26629: 26629: using ::log2; 26629: using ::log2f; 26629: using ::log2l; 26629: 26629: using ::logb; 26629: using ::logbf; 26629: using ::logbl; 26629: 26629: using ::lrint; 26629: using ::lrintf; 26629: using ::lrintl; 26629: 26629: using ::lround; 26629: using ::lroundf; 26629: using ::lroundl; 26629: 26629: using ::nan; 26629: using ::nanf; 26629: using ::nanl; 26629: 26629: using ::nearbyint; 26629: using ::nearbyintf; 26629: using ::nearbyintl; 26629: 26629: using ::nextafter; 26629: using ::nextafterf; 26629: using ::nextafterl; 26629: 26629: using ::nexttoward; 26629: using ::nexttowardf; 26629: using ::nexttowardl; 26629: 26629: using ::remainder; 26629: using ::remainderf; 26629: using ::remainderl; 26629: 26629: using ::remquo; 26629: using ::remquof; 26629: using ::remquol; 26629: 26629: using ::rint; 26629: using ::rintf; 26629: using ::rintl; 26629: 26629: using ::round; 26629: using ::roundf; 26629: using ::roundl; 26629: 26629: using ::scalbln; 26629: using ::scalblnf; 26629: using ::scalblnl; 26629: 26629: using ::scalbn; 26629: using ::scalbnf; 26629: using ::scalbnl; 26629: 26629: using ::tgamma; 26629: using ::tgammaf; 26629: using ::tgammal; 26629: 26629: using ::trunc; 26629: using ::truncf; 26629: using ::truncl; 26629: 26629: 26629: 26629: constexpr float 26629: acosh(float __x) 26629: { return __builtin_acoshf(__x); } 26629: 26629: constexpr long double 26629: acosh(long double __x) 26629: { return __builtin_acoshl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: acosh(_Tp __x) 26629: { return __builtin_acosh(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: asinh(float __x) 26629: { return __builtin_asinhf(__x); } 26629: 26629: constexpr long double 26629: asinh(long double __x) 26629: { return __builtin_asinhl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: asinh(_Tp __x) 26629: { return __builtin_asinh(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: atanh(float __x) 26629: { return __builtin_atanhf(__x); } 26629: 26629: constexpr long double 26629: atanh(long double __x) 26629: { return __builtin_atanhl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: atanh(_Tp __x) 26629: { return __builtin_atanh(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: cbrt(float __x) 26629: { return __builtin_cbrtf(__x); } 26629: 26629: constexpr long double 26629: cbrt(long double __x) 26629: { return __builtin_cbrtl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: cbrt(_Tp __x) 26629: { return __builtin_cbrt(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: copysign(float __x, float __y) 26629: { return __builtin_copysignf(__x, __y); } 26629: 26629: constexpr long double 26629: copysign(long double __x, long double __y) 26629: { return __builtin_copysignl(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: copysign(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return copysign(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr float 26629: erf(float __x) 26629: { return __builtin_erff(__x); } 26629: 26629: constexpr long double 26629: erf(long double __x) 26629: { return __builtin_erfl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: erf(_Tp __x) 26629: { return __builtin_erf(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: erfc(float __x) 26629: { return __builtin_erfcf(__x); } 26629: 26629: constexpr long double 26629: erfc(long double __x) 26629: { return __builtin_erfcl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: erfc(_Tp __x) 26629: { return __builtin_erfc(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: exp2(float __x) 26629: { return __builtin_exp2f(__x); } 26629: 26629: constexpr long double 26629: exp2(long double __x) 26629: { return __builtin_exp2l(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: exp2(_Tp __x) 26629: { return __builtin_exp2(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: expm1(float __x) 26629: { return __builtin_expm1f(__x); } 26629: 26629: constexpr long double 26629: expm1(long double __x) 26629: { return __builtin_expm1l(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: expm1(_Tp __x) 26629: { return __builtin_expm1(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: fdim(float __x, float __y) 26629: { return __builtin_fdimf(__x, __y); } 26629: 26629: constexpr long double 26629: fdim(long double __x, long double __y) 26629: { return __builtin_fdiml(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: fdim(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return fdim(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr float 26629: fma(float __x, float __y, float __z) 26629: { return __builtin_fmaf(__x, __y, __z); } 26629: 26629: constexpr long double 26629: fma(long double __x, long double __y, long double __z) 26629: { return __builtin_fmal(__x, __y, __z); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 26629: fma(_Tp __x, _Up __y, _Vp __z) 26629: { 26629: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 26629: return fma(__type(__x), __type(__y), __type(__z)); 26629: } 26629: 26629: 26629: 26629: constexpr float 26629: fmax(float __x, float __y) 26629: { return __builtin_fmaxf(__x, __y); } 26629: 26629: constexpr long double 26629: fmax(long double __x, long double __y) 26629: { return __builtin_fmaxl(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: fmax(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return fmax(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr float 26629: fmin(float __x, float __y) 26629: { return __builtin_fminf(__x, __y); } 26629: 26629: constexpr long double 26629: fmin(long double __x, long double __y) 26629: { return __builtin_fminl(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: fmin(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return fmin(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr float 26629: hypot(float __x, float __y) 26629: { return __builtin_hypotf(__x, __y); } 26629: 26629: constexpr long double 26629: hypot(long double __x, long double __y) 26629: { return __builtin_hypotl(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: hypot(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return hypot(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr int 26629: ilogb(float __x) 26629: { return __builtin_ilogbf(__x); } 26629: 26629: constexpr int 26629: ilogb(long double __x) 26629: { return __builtin_ilogbl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr 26629: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: int>::__type 26629: ilogb(_Tp __x) 26629: { return __builtin_ilogb(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: lgamma(float __x) 26629: { return __builtin_lgammaf(__x); } 26629: 26629: constexpr long double 26629: lgamma(long double __x) 26629: { return __builtin_lgammal(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: lgamma(_Tp __x) 26629: { return __builtin_lgamma(__x); } 26629: 26629: 26629: 26629: constexpr long long 26629: llrint(float __x) 26629: { return __builtin_llrintf(__x); } 26629: 26629: constexpr long long 26629: llrint(long double __x) 26629: { return __builtin_llrintl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: long long>::__type 26629: llrint(_Tp __x) 26629: { return __builtin_llrint(__x); } 26629: 26629: 26629: 26629: constexpr long long 26629: llround(float __x) 26629: { return __builtin_llroundf(__x); } 26629: 26629: constexpr long long 26629: llround(long double __x) 26629: { return __builtin_llroundl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: long long>::__type 26629: llround(_Tp __x) 26629: { return __builtin_llround(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: log1p(float __x) 26629: { return __builtin_log1pf(__x); } 26629: 26629: constexpr long double 26629: log1p(long double __x) 26629: { return __builtin_log1pl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: log1p(_Tp __x) 26629: { return __builtin_log1p(__x); } 26629: 26629: 26629: 26629: 26629: constexpr float 26629: log2(float __x) 26629: { return __builtin_log2f(__x); } 26629: 26629: constexpr long double 26629: log2(long double __x) 26629: { return __builtin_log2l(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: log2(_Tp __x) 26629: { return __builtin_log2(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: logb(float __x) 26629: { return __builtin_logbf(__x); } 26629: 26629: constexpr long double 26629: logb(long double __x) 26629: { return __builtin_logbl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: logb(_Tp __x) 26629: { return __builtin_logb(__x); } 26629: 26629: 26629: 26629: constexpr long 26629: lrint(float __x) 26629: { return __builtin_lrintf(__x); } 26629: 26629: constexpr long 26629: lrint(long double __x) 26629: { return __builtin_lrintl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: long>::__type 26629: lrint(_Tp __x) 26629: { return __builtin_lrint(__x); } 26629: 26629: 26629: 26629: constexpr long 26629: lround(float __x) 26629: { return __builtin_lroundf(__x); } 26629: 26629: constexpr long 26629: lround(long double __x) 26629: { return __builtin_lroundl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: long>::__type 26629: lround(_Tp __x) 26629: { return __builtin_lround(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: nearbyint(float __x) 26629: { return __builtin_nearbyintf(__x); } 26629: 26629: constexpr long double 26629: nearbyint(long double __x) 26629: { return __builtin_nearbyintl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: nearbyint(_Tp __x) 26629: { return __builtin_nearbyint(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: nextafter(float __x, float __y) 26629: { return __builtin_nextafterf(__x, __y); } 26629: 26629: constexpr long double 26629: nextafter(long double __x, long double __y) 26629: { return __builtin_nextafterl(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: nextafter(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return nextafter(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: constexpr float 26629: nexttoward(float __x, long double __y) 26629: { return __builtin_nexttowardf(__x, __y); } 26629: 26629: constexpr long double 26629: nexttoward(long double __x, long double __y) 26629: { return __builtin_nexttowardl(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: nexttoward(_Tp __x, long double __y) 26629: { return __builtin_nexttoward(__x, __y); } 26629: 26629: 26629: 26629: constexpr float 26629: remainder(float __x, float __y) 26629: { return __builtin_remainderf(__x, __y); } 26629: 26629: constexpr long double 26629: remainder(long double __x, long double __y) 26629: { return __builtin_remainderl(__x, __y); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: remainder(_Tp __x, _Up __y) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return remainder(__type(__x), __type(__y)); 26629: } 26629: 26629: 26629: 26629: inline float 26629: remquo(float __x, float __y, int* __pquo) 26629: { return __builtin_remquof(__x, __y, __pquo); } 26629: 26629: inline long double 26629: remquo(long double __x, long double __y, int* __pquo) 26629: { return __builtin_remquol(__x, __y, __pquo); } 26629: 26629: 26629: 26629: template 26629: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 26629: remquo(_Tp __x, _Up __y, int* __pquo) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 26629: return remquo(__type(__x), __type(__y), __pquo); 26629: } 26629: 26629: 26629: 26629: constexpr float 26629: rint(float __x) 26629: { return __builtin_rintf(__x); } 26629: 26629: constexpr long double 26629: rint(long double __x) 26629: { return __builtin_rintl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: rint(_Tp __x) 26629: { return __builtin_rint(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: round(float __x) 26629: { return __builtin_roundf(__x); } 26629: 26629: constexpr long double 26629: round(long double __x) 26629: { return __builtin_roundl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: round(_Tp __x) 26629: { return __builtin_round(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: scalbln(float __x, long __ex) 26629: { return __builtin_scalblnf(__x, __ex); } 26629: 26629: constexpr long double 26629: scalbln(long double __x, long __ex) 26629: { return __builtin_scalblnl(__x, __ex); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: scalbln(_Tp __x, long __ex) 26629: { return __builtin_scalbln(__x, __ex); } 26629: 26629: 26629: 26629: constexpr float 26629: scalbn(float __x, int __ex) 26629: { return __builtin_scalbnf(__x, __ex); } 26629: 26629: constexpr long double 26629: scalbn(long double __x, int __ex) 26629: { return __builtin_scalbnl(__x, __ex); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: scalbn(_Tp __x, int __ex) 26629: { return __builtin_scalbn(__x, __ex); } 26629: 26629: 26629: 26629: constexpr float 26629: tgamma(float __x) 26629: { return __builtin_tgammaf(__x); } 26629: 26629: constexpr long double 26629: tgamma(long double __x) 26629: { return __builtin_tgammal(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: tgamma(_Tp __x) 26629: { return __builtin_tgamma(__x); } 26629: 26629: 26629: 26629: constexpr float 26629: trunc(float __x) 26629: { return __builtin_truncf(__x); } 26629: 26629: constexpr long double 26629: trunc(long double __x) 26629: { return __builtin_truncl(__x); } 26629: 26629: 26629: 26629: template 26629: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 26629: double>::__type 26629: trunc(_Tp __x) 26629: { return __builtin_trunc(__x); } 26629: # 1852 "/usr/include/c++/12/cmath" 3 26629: template 26629: inline _Tp 26629: __hypot3(_Tp __x, _Tp __y, _Tp __z) 26629: { 26629: __x = std::abs(__x); 26629: __y = std::abs(__y); 26629: __z = std::abs(__z); 26629: if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) 26629: return __a * std::sqrt((__x / __a) * (__x / __a) 26629: + (__y / __a) * (__y / __a) 26629: + (__z / __a) * (__z / __a)); 26629: else 26629: return {}; 26629: } 26629: 26629: inline float 26629: hypot(float __x, float __y, float __z) 26629: { return std::__hypot3(__x, __y, __z); } 26629: 26629: inline double 26629: hypot(double __x, double __y, double __z) 26629: { return std::__hypot3(__x, __y, __z); } 26629: 26629: inline long double 26629: hypot(long double __x, long double __y, long double __z) 26629: { return std::__hypot3(__x, __y, __z); } 26629: 26629: template 26629: __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> 26629: hypot(_Tp __x, _Up __y, _Vp __z) 26629: { 26629: using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; 26629: return std::__hypot3<__type>(__x, __y, __z); 26629: } 26629: # 1931 "/usr/include/c++/12/cmath" 3 26629: 26629: } 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/specfun.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/specfun.h" 3 26629: #pragma GCC visibility push(default) 26629: # 49 "/usr/include/c++/12/bits/specfun.h" 3 26629: # 1 "/usr/include/c++/12/tr1/gamma.tcc" 1 3 26629: # 49 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: # 1 "/usr/include/c++/12/tr1/special_function_util.h" 1 3 26629: # 39 "/usr/include/c++/12/tr1/special_function_util.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 50 "/usr/include/c++/12/tr1/special_function_util.h" 3 26629: namespace __detail 26629: { 26629: 26629: 26629: 26629: template 26629: struct __floating_point_constant 26629: { 26629: static const _Tp __value; 26629: }; 26629: 26629: 26629: 26629: template 26629: struct __numeric_constants 26629: { 26629: 26629: static _Tp __pi() throw() 26629: { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } 26629: 26629: static _Tp __pi_2() throw() 26629: { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } 26629: 26629: static _Tp __pi_3() throw() 26629: { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } 26629: 26629: static _Tp __pi_4() throw() 26629: { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } 26629: 26629: static _Tp __1_pi() throw() 26629: { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } 26629: 26629: static _Tp __2_sqrtpi() throw() 26629: { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } 26629: 26629: static _Tp __sqrt2() throw() 26629: { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } 26629: 26629: static _Tp __sqrt3() throw() 26629: { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } 26629: 26629: static _Tp __sqrtpio2() throw() 26629: { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } 26629: 26629: static _Tp __sqrt1_2() throw() 26629: { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } 26629: 26629: static _Tp __lnpi() throw() 26629: { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } 26629: 26629: static _Tp __gamma_e() throw() 26629: { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } 26629: 26629: static _Tp __euler() throw() 26629: { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } 26629: }; 26629: # 114 "/usr/include/c++/12/tr1/special_function_util.h" 3 26629: template 26629: inline bool __isnan(_Tp __x) 26629: { return std::isnan(__x); } 26629: # 133 "/usr/include/c++/12/tr1/special_function_util.h" 3 26629: } 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 50 "/usr/include/c++/12/tr1/gamma.tcc" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 65 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: namespace __detail 26629: { 26629: # 76 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __bernoulli_series(unsigned int __n) 26629: { 26629: 26629: static const _Tp __num[28] = { 26629: _Tp(1UL), -_Tp(1UL) / _Tp(2UL), 26629: _Tp(1UL) / _Tp(6UL), _Tp(0UL), 26629: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 26629: _Tp(1UL) / _Tp(42UL), _Tp(0UL), 26629: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 26629: _Tp(5UL) / _Tp(66UL), _Tp(0UL), 26629: -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), 26629: _Tp(7UL) / _Tp(6UL), _Tp(0UL), 26629: -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), 26629: _Tp(43867UL) / _Tp(798UL), _Tp(0UL), 26629: -_Tp(174611) / _Tp(330UL), _Tp(0UL), 26629: _Tp(854513UL) / _Tp(138UL), _Tp(0UL), 26629: -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), 26629: _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) 26629: }; 26629: 26629: if (__n == 0) 26629: return _Tp(1); 26629: 26629: if (__n == 1) 26629: return -_Tp(1) / _Tp(2); 26629: 26629: 26629: if (__n % 2 == 1) 26629: return _Tp(0); 26629: 26629: 26629: if (__n < 28) 26629: return __num[__n]; 26629: 26629: 26629: _Tp __fact = _Tp(1); 26629: if ((__n / 2) % 2 == 0) 26629: __fact *= _Tp(-1); 26629: for (unsigned int __k = 1; __k <= __n; ++__k) 26629: __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); 26629: __fact *= _Tp(2); 26629: 26629: _Tp __sum = _Tp(0); 26629: for (unsigned int __i = 1; __i < 1000; ++__i) 26629: { 26629: _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); 26629: if (__term < std::numeric_limits<_Tp>::epsilon()) 26629: break; 26629: __sum += __term; 26629: } 26629: 26629: return __fact * __sum; 26629: } 26629: # 139 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: inline _Tp 26629: __bernoulli(int __n) 26629: { return __bernoulli_series<_Tp>(__n); } 26629: # 153 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __log_gamma_bernoulli(_Tp __x) 26629: { 26629: _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x 26629: + _Tp(0.5L) * std::log(_Tp(2) 26629: * __numeric_constants<_Tp>::__pi()); 26629: 26629: const _Tp __xx = __x * __x; 26629: _Tp __help = _Tp(1) / __x; 26629: for ( unsigned int __i = 1; __i < 20; ++__i ) 26629: { 26629: const _Tp __2i = _Tp(2 * __i); 26629: __help /= __2i * (__2i - _Tp(1)) * __xx; 26629: __lg += __bernoulli<_Tp>(2 * __i) * __help; 26629: } 26629: 26629: return __lg; 26629: } 26629: # 181 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __log_gamma_lanczos(_Tp __x) 26629: { 26629: const _Tp __xm1 = __x - _Tp(1); 26629: 26629: static const _Tp __lanczos_cheb_7[9] = { 26629: _Tp( 0.99999999999980993227684700473478L), 26629: _Tp( 676.520368121885098567009190444019L), 26629: _Tp(-1259.13921672240287047156078755283L), 26629: _Tp( 771.3234287776530788486528258894L), 26629: _Tp(-176.61502916214059906584551354L), 26629: _Tp( 12.507343278686904814458936853L), 26629: _Tp(-0.13857109526572011689554707L), 26629: _Tp( 9.984369578019570859563e-6L), 26629: _Tp( 1.50563273514931155834e-7L) 26629: }; 26629: 26629: static const _Tp __LOGROOT2PI 26629: = _Tp(0.9189385332046727417803297364056176L); 26629: 26629: _Tp __sum = __lanczos_cheb_7[0]; 26629: for(unsigned int __k = 1; __k < 9; ++__k) 26629: __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); 26629: 26629: const _Tp __term1 = (__xm1 + _Tp(0.5L)) 26629: * std::log((__xm1 + _Tp(7.5L)) 26629: / __numeric_constants<_Tp>::__euler()); 26629: const _Tp __term2 = __LOGROOT2PI + std::log(__sum); 26629: const _Tp __result = __term1 + (__term2 - _Tp(7)); 26629: 26629: return __result; 26629: } 26629: # 225 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __log_gamma(_Tp __x) 26629: { 26629: if (__x > _Tp(0.5L)) 26629: return __log_gamma_lanczos(__x); 26629: else 26629: { 26629: const _Tp __sin_fact 26629: = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); 26629: if (__sin_fact == _Tp(0)) 26629: std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") 26629: ); 26629: return __numeric_constants<_Tp>::__lnpi() 26629: - std::log(__sin_fact) 26629: - __log_gamma_lanczos(_Tp(1) - __x); 26629: } 26629: } 26629: # 252 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __log_gamma_sign(_Tp __x) 26629: { 26629: if (__x > _Tp(0)) 26629: return _Tp(1); 26629: else 26629: { 26629: const _Tp __sin_fact 26629: = std::sin(__numeric_constants<_Tp>::__pi() * __x); 26629: if (__sin_fact > _Tp(0)) 26629: return (1); 26629: else if (__sin_fact < _Tp(0)) 26629: return -_Tp(1); 26629: else 26629: return _Tp(0); 26629: } 26629: } 26629: # 283 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __log_bincoef(unsigned int __n, unsigned int __k) 26629: { 26629: 26629: static const _Tp __max_bincoeff 26629: = std::numeric_limits<_Tp>::max_exponent10 26629: * std::log(_Tp(10)) - _Tp(1); 26629: 26629: _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) 26629: - ::std::lgamma(_Tp(1 + __k)) 26629: - ::std::lgamma(_Tp(1 + __n - __k)); 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 314 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __bincoef(unsigned int __n, unsigned int __k) 26629: { 26629: 26629: static const _Tp __max_bincoeff 26629: = std::numeric_limits<_Tp>::max_exponent10 26629: * std::log(_Tp(10)) - _Tp(1); 26629: 26629: const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); 26629: if (__log_coeff > __max_bincoeff) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else 26629: return std::exp(__log_coeff); 26629: } 26629: # 337 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: inline _Tp 26629: __gamma(_Tp __x) 26629: { return std::exp(__log_gamma(__x)); } 26629: # 356 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __psi_series(_Tp __x) 26629: { 26629: _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; 26629: const unsigned int __max_iter = 100000; 26629: for (unsigned int __k = 1; __k < __max_iter; ++__k) 26629: { 26629: const _Tp __term = __x / (__k * (__k + __x)); 26629: __sum += __term; 26629: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 26629: break; 26629: } 26629: return __sum; 26629: } 26629: # 386 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __psi_asymp(_Tp __x) 26629: { 26629: _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; 26629: const _Tp __xx = __x * __x; 26629: _Tp __xp = __xx; 26629: const unsigned int __max_iter = 100; 26629: for (unsigned int __k = 1; __k < __max_iter; ++__k) 26629: { 26629: const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); 26629: __sum -= __term; 26629: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 26629: break; 26629: __xp *= __xx; 26629: } 26629: return __sum; 26629: } 26629: # 417 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __psi(_Tp __x) 26629: { 26629: const int __n = static_cast(__x + 0.5L); 26629: const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); 26629: if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__x < _Tp(0)) 26629: { 26629: const _Tp __pi = __numeric_constants<_Tp>::__pi(); 26629: return __psi(_Tp(1) - __x) 26629: - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); 26629: } 26629: else if (__x > _Tp(100)) 26629: return __psi_asymp(__x); 26629: else 26629: return __psi_series(__x); 26629: } 26629: # 446 "/usr/include/c++/12/tr1/gamma.tcc" 3 26629: template 26629: _Tp 26629: __psi(unsigned int __n, _Tp __x) 26629: { 26629: if (__x <= _Tp(0)) 26629: std::__throw_domain_error(("Argument out of range " "in __psi") 26629: ); 26629: else if (__n == 0) 26629: return __psi(__x); 26629: else 26629: { 26629: const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); 26629: 26629: const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); 26629: 26629: 26629: 26629: _Tp __result = std::exp(__ln_nfact) * __hzeta; 26629: if (__n % 2 == 1) 26629: __result = -__result; 26629: return __result; 26629: } 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 50 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: # 1 "/usr/include/c++/12/tr1/bessel_function.tcc" 1 3 26629: # 55 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 71 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: namespace __detail 26629: { 26629: # 98 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: template 26629: void 26629: __gamma_temme(_Tp __mu, 26629: _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) 26629: { 26629: 26629: __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); 26629: __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); 26629: 26629: 26629: 26629: 26629: 26629: if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) 26629: __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); 26629: else 26629: __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); 26629: 26629: __gam2 = (__gammi + __gampl) / (_Tp(2)); 26629: 26629: return; 26629: } 26629: # 136 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: template 26629: void 26629: __bessel_jn(_Tp __nu, _Tp __x, 26629: _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) 26629: { 26629: if (__x == _Tp(0)) 26629: { 26629: if (__nu == _Tp(0)) 26629: { 26629: __Jnu = _Tp(1); 26629: __Jpnu = _Tp(0); 26629: } 26629: else if (__nu == _Tp(1)) 26629: { 26629: __Jnu = _Tp(0); 26629: __Jpnu = _Tp(0.5L); 26629: } 26629: else 26629: { 26629: __Jnu = _Tp(0); 26629: __Jpnu = _Tp(0); 26629: } 26629: __Nnu = -std::numeric_limits<_Tp>::infinity(); 26629: __Npnu = std::numeric_limits<_Tp>::infinity(); 26629: return; 26629: } 26629: 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: 26629: 26629: 26629: 26629: const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); 26629: const int __max_iter = 15000; 26629: const _Tp __x_min = _Tp(2); 26629: 26629: const int __nl = (__x < __x_min 26629: ? static_cast(__nu + _Tp(0.5L)) 26629: : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); 26629: 26629: const _Tp __mu = __nu - __nl; 26629: const _Tp __mu2 = __mu * __mu; 26629: const _Tp __xi = _Tp(1) / __x; 26629: const _Tp __xi2 = _Tp(2) * __xi; 26629: _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); 26629: int __isign = 1; 26629: _Tp __h = __nu * __xi; 26629: if (__h < __fp_min) 26629: __h = __fp_min; 26629: _Tp __b = __xi2 * __nu; 26629: _Tp __d = _Tp(0); 26629: _Tp __c = __h; 26629: int __i; 26629: for (__i = 1; __i <= __max_iter; ++__i) 26629: { 26629: __b += __xi2; 26629: __d = __b - __d; 26629: if (std::abs(__d) < __fp_min) 26629: __d = __fp_min; 26629: __c = __b - _Tp(1) / __c; 26629: if (std::abs(__c) < __fp_min) 26629: __c = __fp_min; 26629: __d = _Tp(1) / __d; 26629: const _Tp __del = __c * __d; 26629: __h *= __del; 26629: if (__d < _Tp(0)) 26629: __isign = -__isign; 26629: if (std::abs(__del - _Tp(1)) < __eps) 26629: break; 26629: } 26629: if (__i > __max_iter) 26629: std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") 26629: ); 26629: _Tp __Jnul = __isign * __fp_min; 26629: _Tp __Jpnul = __h * __Jnul; 26629: _Tp __Jnul1 = __Jnul; 26629: _Tp __Jpnu1 = __Jpnul; 26629: _Tp __fact = __nu * __xi; 26629: for ( int __l = __nl; __l >= 1; --__l ) 26629: { 26629: const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; 26629: __fact -= __xi; 26629: __Jpnul = __fact * __Jnutemp - __Jnul; 26629: __Jnul = __Jnutemp; 26629: } 26629: if (__Jnul == _Tp(0)) 26629: __Jnul = __eps; 26629: _Tp __f= __Jpnul / __Jnul; 26629: _Tp __Nmu, __Nnu1, __Npmu, __Jmu; 26629: if (__x < __x_min) 26629: { 26629: const _Tp __x2 = __x / _Tp(2); 26629: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 26629: _Tp __fact = (std::abs(__pimu) < __eps 26629: ? _Tp(1) : __pimu / std::sin(__pimu)); 26629: _Tp __d = -std::log(__x2); 26629: _Tp __e = __mu * __d; 26629: _Tp __fact2 = (std::abs(__e) < __eps 26629: ? _Tp(1) : std::sinh(__e) / __e); 26629: _Tp __gam1, __gam2, __gampl, __gammi; 26629: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 26629: _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) 26629: * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 26629: __e = std::exp(__e); 26629: _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); 26629: _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); 26629: const _Tp __pimu2 = __pimu / _Tp(2); 26629: _Tp __fact3 = (std::abs(__pimu2) < __eps 26629: ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); 26629: _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; 26629: _Tp __c = _Tp(1); 26629: __d = -__x2 * __x2; 26629: _Tp __sum = __ff + __r * __q; 26629: _Tp __sum1 = __p; 26629: for (__i = 1; __i <= __max_iter; ++__i) 26629: { 26629: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 26629: __c *= __d / _Tp(__i); 26629: __p /= _Tp(__i) - __mu; 26629: __q /= _Tp(__i) + __mu; 26629: const _Tp __del = __c * (__ff + __r * __q); 26629: __sum += __del; 26629: const _Tp __del1 = __c * __p - __i * __del; 26629: __sum1 += __del1; 26629: if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) 26629: break; 26629: } 26629: if ( __i > __max_iter ) 26629: std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") 26629: ); 26629: __Nmu = -__sum; 26629: __Nnu1 = -__sum1 * __xi2; 26629: __Npmu = __mu * __xi * __Nmu - __Nnu1; 26629: __Jmu = __w / (__Npmu - __f * __Nmu); 26629: } 26629: else 26629: { 26629: _Tp __a = _Tp(0.25L) - __mu2; 26629: _Tp __q = _Tp(1); 26629: _Tp __p = -__xi / _Tp(2); 26629: _Tp __br = _Tp(2) * __x; 26629: _Tp __bi = _Tp(2); 26629: _Tp __fact = __a * __xi / (__p * __p + __q * __q); 26629: _Tp __cr = __br + __q * __fact; 26629: _Tp __ci = __bi + __p * __fact; 26629: _Tp __den = __br * __br + __bi * __bi; 26629: _Tp __dr = __br / __den; 26629: _Tp __di = -__bi / __den; 26629: _Tp __dlr = __cr * __dr - __ci * __di; 26629: _Tp __dli = __cr * __di + __ci * __dr; 26629: _Tp __temp = __p * __dlr - __q * __dli; 26629: __q = __p * __dli + __q * __dlr; 26629: __p = __temp; 26629: int __i; 26629: for (__i = 2; __i <= __max_iter; ++__i) 26629: { 26629: __a += _Tp(2 * (__i - 1)); 26629: __bi += _Tp(2); 26629: __dr = __a * __dr + __br; 26629: __di = __a * __di + __bi; 26629: if (std::abs(__dr) + std::abs(__di) < __fp_min) 26629: __dr = __fp_min; 26629: __fact = __a / (__cr * __cr + __ci * __ci); 26629: __cr = __br + __cr * __fact; 26629: __ci = __bi - __ci * __fact; 26629: if (std::abs(__cr) + std::abs(__ci) < __fp_min) 26629: __cr = __fp_min; 26629: __den = __dr * __dr + __di * __di; 26629: __dr /= __den; 26629: __di /= -__den; 26629: __dlr = __cr * __dr - __ci * __di; 26629: __dli = __cr * __di + __ci * __dr; 26629: __temp = __p * __dlr - __q * __dli; 26629: __q = __p * __dli + __q * __dlr; 26629: __p = __temp; 26629: if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) 26629: break; 26629: } 26629: if (__i > __max_iter) 26629: std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") 26629: ); 26629: const _Tp __gam = (__p - __f) / __q; 26629: __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); 26629: 26629: __Jmu = ::std::copysign(__Jmu, __Jnul); 26629: 26629: 26629: 26629: 26629: __Nmu = __gam * __Jmu; 26629: __Npmu = (__p + __q / __gam) * __Nmu; 26629: __Nnu1 = __mu * __xi * __Nmu - __Npmu; 26629: } 26629: __fact = __Jmu / __Jnul; 26629: __Jnu = __fact * __Jnul1; 26629: __Jpnu = __fact * __Jpnu1; 26629: for (__i = 1; __i <= __nl; ++__i) 26629: { 26629: const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; 26629: __Nmu = __Nnu1; 26629: __Nnu1 = __Nnutemp; 26629: } 26629: __Nnu = __Nmu; 26629: __Npnu = __nu * __xi * __Nmu - __Nnu1; 26629: 26629: return; 26629: } 26629: # 361 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: template 26629: void 26629: __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) 26629: { 26629: const _Tp __mu = _Tp(4) * __nu * __nu; 26629: const _Tp __8x = _Tp(8) * __x; 26629: 26629: _Tp __P = _Tp(0); 26629: _Tp __Q = _Tp(0); 26629: 26629: _Tp __k = _Tp(0); 26629: _Tp __term = _Tp(1); 26629: 26629: int __epsP = 0; 26629: int __epsQ = 0; 26629: 26629: _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: 26629: do 26629: { 26629: __term *= (__k == 0 26629: ? _Tp(1) 26629: : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); 26629: 26629: __epsP = std::abs(__term) < __eps * std::abs(__P); 26629: __P += __term; 26629: 26629: __k++; 26629: 26629: __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); 26629: __epsQ = std::abs(__term) < __eps * std::abs(__Q); 26629: __Q += __term; 26629: 26629: if (__epsP && __epsQ && __k > (__nu / 2.)) 26629: break; 26629: 26629: __k++; 26629: } 26629: while (__k < 1000); 26629: 26629: const _Tp __chi = __x - (__nu + _Tp(0.5L)) 26629: * __numeric_constants<_Tp>::__pi_2(); 26629: 26629: const _Tp __c = std::cos(__chi); 26629: const _Tp __s = std::sin(__chi); 26629: 26629: const _Tp __coef = std::sqrt(_Tp(2) 26629: / (__numeric_constants<_Tp>::__pi() * __x)); 26629: 26629: __Jnu = __coef * (__c * __P - __s * __Q); 26629: __Nnu = __coef * (__s * __P + __c * __Q); 26629: 26629: return; 26629: } 26629: # 444 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: template 26629: _Tp 26629: __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, 26629: unsigned int __max_iter) 26629: { 26629: if (__x == _Tp(0)) 26629: return __nu == _Tp(0) ? _Tp(1) : _Tp(0); 26629: 26629: const _Tp __x2 = __x / _Tp(2); 26629: _Tp __fact = __nu * std::log(__x2); 26629: 26629: __fact -= ::std::lgamma(__nu + _Tp(1)); 26629: 26629: 26629: 26629: __fact = std::exp(__fact); 26629: const _Tp __xx4 = __sgn * __x2 * __x2; 26629: _Tp __Jn = _Tp(1); 26629: _Tp __term = _Tp(1); 26629: 26629: for (unsigned int __i = 1; __i < __max_iter; ++__i) 26629: { 26629: __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); 26629: __Jn += __term; 26629: if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) 26629: break; 26629: } 26629: 26629: return __fact * __Jn; 26629: } 26629: # 490 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: template 26629: _Tp 26629: __cyl_bessel_j(_Tp __nu, _Tp __x) 26629: { 26629: if (__nu < _Tp(0) || __x < _Tp(0)) 26629: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") 26629: ); 26629: else if (__isnan(__nu) || __isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 26629: return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); 26629: else if (__x > _Tp(1000)) 26629: { 26629: _Tp __J_nu, __N_nu; 26629: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 26629: return __J_nu; 26629: } 26629: else 26629: { 26629: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 26629: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 26629: return __J_nu; 26629: } 26629: } 26629: # 532 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: template 26629: _Tp 26629: __cyl_neumann_n(_Tp __nu, _Tp __x) 26629: { 26629: if (__nu < _Tp(0) || __x < _Tp(0)) 26629: std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") 26629: ); 26629: else if (__isnan(__nu) || __isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__x > _Tp(1000)) 26629: { 26629: _Tp __J_nu, __N_nu; 26629: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 26629: return __N_nu; 26629: } 26629: else 26629: { 26629: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 26629: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 26629: return __N_nu; 26629: } 26629: } 26629: # 569 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: template 26629: void 26629: __sph_bessel_jn(unsigned int __n, _Tp __x, 26629: _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) 26629: { 26629: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 26629: 26629: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 26629: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 26629: 26629: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 26629: / std::sqrt(__x); 26629: 26629: __j_n = __factor * __J_nu; 26629: __n_n = __factor * __N_nu; 26629: __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); 26629: __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); 26629: 26629: return; 26629: } 26629: # 604 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: template 26629: _Tp 26629: __sph_bessel(unsigned int __n, _Tp __x) 26629: { 26629: if (__x < _Tp(0)) 26629: std::__throw_domain_error(("Bad argument " "in __sph_bessel.") 26629: ); 26629: else if (__isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__x == _Tp(0)) 26629: { 26629: if (__n == 0) 26629: return _Tp(1); 26629: else 26629: return _Tp(0); 26629: } 26629: else 26629: { 26629: _Tp __j_n, __n_n, __jp_n, __np_n; 26629: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 26629: return __j_n; 26629: } 26629: } 26629: # 642 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 26629: template 26629: _Tp 26629: __sph_neumann(unsigned int __n, _Tp __x) 26629: { 26629: if (__x < _Tp(0)) 26629: std::__throw_domain_error(("Bad argument " "in __sph_neumann.") 26629: ); 26629: else if (__isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__x == _Tp(0)) 26629: return -std::numeric_limits<_Tp>::infinity(); 26629: else 26629: { 26629: _Tp __j_n, __n_n, __jp_n, __np_n; 26629: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 26629: return __n_n; 26629: } 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 51 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: # 1 "/usr/include/c++/12/tr1/beta_function.tcc" 1 3 26629: # 49 "/usr/include/c++/12/tr1/beta_function.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 65 "/usr/include/c++/12/tr1/beta_function.tcc" 3 26629: namespace __detail 26629: { 26629: # 79 "/usr/include/c++/12/tr1/beta_function.tcc" 3 26629: template 26629: _Tp 26629: __beta_gamma(_Tp __x, _Tp __y) 26629: { 26629: 26629: _Tp __bet; 26629: 26629: if (__x > __y) 26629: { 26629: __bet = ::std::tgamma(__x) 26629: / ::std::tgamma(__x + __y); 26629: __bet *= ::std::tgamma(__y); 26629: } 26629: else 26629: { 26629: __bet = ::std::tgamma(__y) 26629: / ::std::tgamma(__x + __y); 26629: __bet *= ::std::tgamma(__x); 26629: } 26629: # 111 "/usr/include/c++/12/tr1/beta_function.tcc" 3 26629: return __bet; 26629: } 26629: # 127 "/usr/include/c++/12/tr1/beta_function.tcc" 3 26629: template 26629: _Tp 26629: __beta_lgamma(_Tp __x, _Tp __y) 26629: { 26629: 26629: _Tp __bet = ::std::lgamma(__x) 26629: + ::std::lgamma(__y) 26629: - ::std::lgamma(__x + __y); 26629: 26629: 26629: 26629: 26629: 26629: __bet = std::exp(__bet); 26629: return __bet; 26629: } 26629: # 158 "/usr/include/c++/12/tr1/beta_function.tcc" 3 26629: template 26629: _Tp 26629: __beta_product(_Tp __x, _Tp __y) 26629: { 26629: 26629: _Tp __bet = (__x + __y) / (__x * __y); 26629: 26629: unsigned int __max_iter = 1000000; 26629: for (unsigned int __k = 1; __k < __max_iter; ++__k) 26629: { 26629: _Tp __term = (_Tp(1) + (__x + __y) / __k) 26629: / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); 26629: __bet *= __term; 26629: } 26629: 26629: return __bet; 26629: } 26629: # 189 "/usr/include/c++/12/tr1/beta_function.tcc" 3 26629: template 26629: inline _Tp 26629: __beta(_Tp __x, _Tp __y) 26629: { 26629: if (__isnan(__x) || __isnan(__y)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else 26629: return __beta_lgamma(__x, __y); 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 52 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: # 1 "/usr/include/c++/12/tr1/ell_integral.tcc" 1 3 26629: # 45 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 59 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: namespace __detail 26629: { 26629: # 76 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __ellint_rf(_Tp __x, _Tp __y, _Tp __z) 26629: { 26629: const _Tp __min = std::numeric_limits<_Tp>::min(); 26629: const _Tp __lolim = _Tp(5) * __min; 26629: 26629: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 26629: std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") 26629: ); 26629: else if (__x + __y < __lolim || __x + __z < __lolim 26629: || __y + __z < __lolim) 26629: std::__throw_domain_error(("Argument too small in __ellint_rf")); 26629: else 26629: { 26629: const _Tp __c0 = _Tp(1) / _Tp(4); 26629: const _Tp __c1 = _Tp(1) / _Tp(24); 26629: const _Tp __c2 = _Tp(1) / _Tp(10); 26629: const _Tp __c3 = _Tp(3) / _Tp(44); 26629: const _Tp __c4 = _Tp(1) / _Tp(14); 26629: 26629: _Tp __xn = __x; 26629: _Tp __yn = __y; 26629: _Tp __zn = __z; 26629: 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); 26629: _Tp __mu; 26629: _Tp __xndev, __yndev, __zndev; 26629: 26629: const unsigned int __max_iter = 100; 26629: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 26629: { 26629: __mu = (__xn + __yn + __zn) / _Tp(3); 26629: __xndev = 2 - (__mu + __xn) / __mu; 26629: __yndev = 2 - (__mu + __yn) / __mu; 26629: __zndev = 2 - (__mu + __zn) / __mu; 26629: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 26629: __epsilon = std::max(__epsilon, std::abs(__zndev)); 26629: if (__epsilon < __errtol) 26629: break; 26629: const _Tp __xnroot = std::sqrt(__xn); 26629: const _Tp __ynroot = std::sqrt(__yn); 26629: const _Tp __znroot = std::sqrt(__zn); 26629: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 26629: + __ynroot * __znroot; 26629: __xn = __c0 * (__xn + __lambda); 26629: __yn = __c0 * (__yn + __lambda); 26629: __zn = __c0 * (__zn + __lambda); 26629: } 26629: 26629: const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; 26629: const _Tp __e3 = __xndev * __yndev * __zndev; 26629: const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 26629: + __c4 * __e3; 26629: 26629: return __s / std::sqrt(__mu); 26629: } 26629: } 26629: # 153 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __comp_ellint_1_series(_Tp __k) 26629: { 26629: 26629: const _Tp __kk = __k * __k; 26629: 26629: _Tp __term = __kk / _Tp(4); 26629: _Tp __sum = _Tp(1) + __term; 26629: 26629: const unsigned int __max_iter = 1000; 26629: for (unsigned int __i = 2; __i < __max_iter; ++__i) 26629: { 26629: __term *= (2 * __i - 1) * __kk / (2 * __i); 26629: if (__term < std::numeric_limits<_Tp>::epsilon()) 26629: break; 26629: __sum += __term; 26629: } 26629: 26629: return __numeric_constants<_Tp>::__pi_2() * __sum; 26629: } 26629: # 191 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __comp_ellint_1(_Tp __k) 26629: { 26629: 26629: if (__isnan(__k)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (std::abs(__k) >= _Tp(1)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else 26629: return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); 26629: } 26629: # 219 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __ellint_1(_Tp __k, _Tp __phi) 26629: { 26629: 26629: if (__isnan(__k) || __isnan(__phi)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (std::abs(__k) > _Tp(1)) 26629: std::__throw_domain_error(("Bad argument in __ellint_1.")); 26629: else 26629: { 26629: 26629: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 26629: + _Tp(0.5L)); 26629: const _Tp __phi_red = __phi 26629: - __n * __numeric_constants<_Tp>::__pi(); 26629: 26629: const _Tp __s = std::sin(__phi_red); 26629: const _Tp __c = std::cos(__phi_red); 26629: 26629: const _Tp __F = __s 26629: * __ellint_rf(__c * __c, 26629: _Tp(1) - __k * __k * __s * __s, _Tp(1)); 26629: 26629: if (__n == 0) 26629: return __F; 26629: else 26629: return __F + _Tp(2) * __n * __comp_ellint_1(__k); 26629: } 26629: } 26629: # 266 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __comp_ellint_2_series(_Tp __k) 26629: { 26629: 26629: const _Tp __kk = __k * __k; 26629: 26629: _Tp __term = __kk; 26629: _Tp __sum = __term; 26629: 26629: const unsigned int __max_iter = 1000; 26629: for (unsigned int __i = 2; __i < __max_iter; ++__i) 26629: { 26629: const _Tp __i2m = 2 * __i - 1; 26629: const _Tp __i2 = 2 * __i; 26629: __term *= __i2m * __i2m * __kk / (__i2 * __i2); 26629: if (__term < std::numeric_limits<_Tp>::epsilon()) 26629: break; 26629: __sum += __term / __i2m; 26629: } 26629: 26629: return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); 26629: } 26629: # 314 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __ellint_rd(_Tp __x, _Tp __y, _Tp __z) 26629: { 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 26629: const _Tp __max = std::numeric_limits<_Tp>::max(); 26629: const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); 26629: 26629: if (__x < _Tp(0) || __y < _Tp(0)) 26629: std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") 26629: ); 26629: else if (__x + __y < __lolim || __z < __lolim) 26629: std::__throw_domain_error(("Argument too small " "in __ellint_rd.") 26629: ); 26629: else 26629: { 26629: const _Tp __c0 = _Tp(1) / _Tp(4); 26629: const _Tp __c1 = _Tp(3) / _Tp(14); 26629: const _Tp __c2 = _Tp(1) / _Tp(6); 26629: const _Tp __c3 = _Tp(9) / _Tp(22); 26629: const _Tp __c4 = _Tp(3) / _Tp(26); 26629: 26629: _Tp __xn = __x; 26629: _Tp __yn = __y; 26629: _Tp __zn = __z; 26629: _Tp __sigma = _Tp(0); 26629: _Tp __power4 = _Tp(1); 26629: 26629: _Tp __mu; 26629: _Tp __xndev, __yndev, __zndev; 26629: 26629: const unsigned int __max_iter = 100; 26629: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 26629: { 26629: __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); 26629: __xndev = (__mu - __xn) / __mu; 26629: __yndev = (__mu - __yn) / __mu; 26629: __zndev = (__mu - __zn) / __mu; 26629: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 26629: __epsilon = std::max(__epsilon, std::abs(__zndev)); 26629: if (__epsilon < __errtol) 26629: break; 26629: _Tp __xnroot = std::sqrt(__xn); 26629: _Tp __ynroot = std::sqrt(__yn); 26629: _Tp __znroot = std::sqrt(__zn); 26629: _Tp __lambda = __xnroot * (__ynroot + __znroot) 26629: + __ynroot * __znroot; 26629: __sigma += __power4 / (__znroot * (__zn + __lambda)); 26629: __power4 *= __c0; 26629: __xn = __c0 * (__xn + __lambda); 26629: __yn = __c0 * (__yn + __lambda); 26629: __zn = __c0 * (__zn + __lambda); 26629: } 26629: 26629: _Tp __ea = __xndev * __yndev; 26629: _Tp __eb = __zndev * __zndev; 26629: _Tp __ec = __ea - __eb; 26629: _Tp __ed = __ea - _Tp(6) * __eb; 26629: _Tp __ef = __ed + __ec + __ec; 26629: _Tp __s1 = __ed * (-__c1 + __c3 * __ed 26629: / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef 26629: / _Tp(2)); 26629: _Tp __s2 = __zndev 26629: * (__c2 * __ef 26629: + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); 26629: 26629: return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) 26629: / (__mu * std::sqrt(__mu)); 26629: } 26629: } 26629: # 399 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __comp_ellint_2(_Tp __k) 26629: { 26629: 26629: if (__isnan(__k)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (std::abs(__k) == 1) 26629: return _Tp(1); 26629: else if (std::abs(__k) > _Tp(1)) 26629: std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); 26629: else 26629: { 26629: const _Tp __kk = __k * __k; 26629: 26629: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 26629: - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); 26629: } 26629: } 26629: # 433 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __ellint_2(_Tp __k, _Tp __phi) 26629: { 26629: 26629: if (__isnan(__k) || __isnan(__phi)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (std::abs(__k) > _Tp(1)) 26629: std::__throw_domain_error(("Bad argument in __ellint_2.")); 26629: else 26629: { 26629: 26629: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 26629: + _Tp(0.5L)); 26629: const _Tp __phi_red = __phi 26629: - __n * __numeric_constants<_Tp>::__pi(); 26629: 26629: const _Tp __kk = __k * __k; 26629: const _Tp __s = std::sin(__phi_red); 26629: const _Tp __ss = __s * __s; 26629: const _Tp __sss = __ss * __s; 26629: const _Tp __c = std::cos(__phi_red); 26629: const _Tp __cc = __c * __c; 26629: 26629: const _Tp __E = __s 26629: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 26629: - __kk * __sss 26629: * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 26629: / _Tp(3); 26629: 26629: if (__n == 0) 26629: return __E; 26629: else 26629: return __E + _Tp(2) * __n * __comp_ellint_2(__k); 26629: } 26629: } 26629: # 492 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __ellint_rc(_Tp __x, _Tp __y) 26629: { 26629: const _Tp __min = std::numeric_limits<_Tp>::min(); 26629: const _Tp __lolim = _Tp(5) * __min; 26629: 26629: if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) 26629: std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") 26629: ); 26629: else 26629: { 26629: const _Tp __c0 = _Tp(1) / _Tp(4); 26629: const _Tp __c1 = _Tp(1) / _Tp(7); 26629: const _Tp __c2 = _Tp(9) / _Tp(22); 26629: const _Tp __c3 = _Tp(3) / _Tp(10); 26629: const _Tp __c4 = _Tp(3) / _Tp(8); 26629: 26629: _Tp __xn = __x; 26629: _Tp __yn = __y; 26629: 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); 26629: _Tp __mu; 26629: _Tp __sn; 26629: 26629: const unsigned int __max_iter = 100; 26629: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 26629: { 26629: __mu = (__xn + _Tp(2) * __yn) / _Tp(3); 26629: __sn = (__yn + __mu) / __mu - _Tp(2); 26629: if (std::abs(__sn) < __errtol) 26629: break; 26629: const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) 26629: + __yn; 26629: __xn = __c0 * (__xn + __lambda); 26629: __yn = __c0 * (__yn + __lambda); 26629: } 26629: 26629: _Tp __s = __sn * __sn 26629: * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); 26629: 26629: return (_Tp(1) + __s) / std::sqrt(__mu); 26629: } 26629: } 26629: # 561 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) 26629: { 26629: const _Tp __min = std::numeric_limits<_Tp>::min(); 26629: const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); 26629: 26629: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 26629: std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") 26629: ); 26629: else if (__x + __y < __lolim || __x + __z < __lolim 26629: || __y + __z < __lolim || __p < __lolim) 26629: std::__throw_domain_error(("Argument too small " "in __ellint_rj") 26629: ); 26629: else 26629: { 26629: const _Tp __c0 = _Tp(1) / _Tp(4); 26629: const _Tp __c1 = _Tp(3) / _Tp(14); 26629: const _Tp __c2 = _Tp(1) / _Tp(3); 26629: const _Tp __c3 = _Tp(3) / _Tp(22); 26629: const _Tp __c4 = _Tp(3) / _Tp(26); 26629: 26629: _Tp __xn = __x; 26629: _Tp __yn = __y; 26629: _Tp __zn = __z; 26629: _Tp __pn = __p; 26629: _Tp __sigma = _Tp(0); 26629: _Tp __power4 = _Tp(1); 26629: 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 26629: 26629: _Tp __mu; 26629: _Tp __xndev, __yndev, __zndev, __pndev; 26629: 26629: const unsigned int __max_iter = 100; 26629: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 26629: { 26629: __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); 26629: __xndev = (__mu - __xn) / __mu; 26629: __yndev = (__mu - __yn) / __mu; 26629: __zndev = (__mu - __zn) / __mu; 26629: __pndev = (__mu - __pn) / __mu; 26629: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 26629: __epsilon = std::max(__epsilon, std::abs(__zndev)); 26629: __epsilon = std::max(__epsilon, std::abs(__pndev)); 26629: if (__epsilon < __errtol) 26629: break; 26629: const _Tp __xnroot = std::sqrt(__xn); 26629: const _Tp __ynroot = std::sqrt(__yn); 26629: const _Tp __znroot = std::sqrt(__zn); 26629: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 26629: + __ynroot * __znroot; 26629: const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) 26629: + __xnroot * __ynroot * __znroot; 26629: const _Tp __alpha2 = __alpha1 * __alpha1; 26629: const _Tp __beta = __pn * (__pn + __lambda) 26629: * (__pn + __lambda); 26629: __sigma += __power4 * __ellint_rc(__alpha2, __beta); 26629: __power4 *= __c0; 26629: __xn = __c0 * (__xn + __lambda); 26629: __yn = __c0 * (__yn + __lambda); 26629: __zn = __c0 * (__zn + __lambda); 26629: __pn = __c0 * (__pn + __lambda); 26629: } 26629: 26629: _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; 26629: _Tp __eb = __xndev * __yndev * __zndev; 26629: _Tp __ec = __pndev * __pndev; 26629: _Tp __e2 = __ea - _Tp(3) * __ec; 26629: _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); 26629: _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) 26629: - _Tp(3) * __c4 * __e3 / _Tp(2)); 26629: _Tp __s2 = __eb * (__c2 / _Tp(2) 26629: + __pndev * (-__c3 - __c3 + __pndev * __c4)); 26629: _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) 26629: - __c2 * __pndev * __ec; 26629: 26629: return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) 26629: / (__mu * std::sqrt(__mu)); 26629: } 26629: } 26629: # 661 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __comp_ellint_3(_Tp __k, _Tp __nu) 26629: { 26629: 26629: if (__isnan(__k) || __isnan(__nu)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__nu == _Tp(1)) 26629: return std::numeric_limits<_Tp>::infinity(); 26629: else if (std::abs(__k) > _Tp(1)) 26629: std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); 26629: else 26629: { 26629: const _Tp __kk = __k * __k; 26629: 26629: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 26629: + __nu 26629: * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) 26629: / _Tp(3); 26629: } 26629: } 26629: # 701 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 26629: template 26629: _Tp 26629: __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) 26629: { 26629: 26629: if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (std::abs(__k) > _Tp(1)) 26629: std::__throw_domain_error(("Bad argument in __ellint_3.")); 26629: else 26629: { 26629: 26629: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 26629: + _Tp(0.5L)); 26629: const _Tp __phi_red = __phi 26629: - __n * __numeric_constants<_Tp>::__pi(); 26629: 26629: const _Tp __kk = __k * __k; 26629: const _Tp __s = std::sin(__phi_red); 26629: const _Tp __ss = __s * __s; 26629: const _Tp __sss = __ss * __s; 26629: const _Tp __c = std::cos(__phi_red); 26629: const _Tp __cc = __c * __c; 26629: 26629: const _Tp __Pi = __s 26629: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 26629: + __nu * __sss 26629: * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), 26629: _Tp(1) - __nu * __ss) / _Tp(3); 26629: 26629: if (__n == 0) 26629: return __Pi; 26629: else 26629: return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); 26629: } 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 53 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: # 1 "/usr/include/c++/12/tr1/exp_integral.tcc" 1 3 26629: # 50 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 64 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: namespace __detail 26629: { 26629: template _Tp __expint_E1(_Tp); 26629: # 81 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_E1_series(_Tp __x) 26629: { 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: _Tp __term = _Tp(1); 26629: _Tp __esum = _Tp(0); 26629: _Tp __osum = _Tp(0); 26629: const unsigned int __max_iter = 1000; 26629: for (unsigned int __i = 1; __i < __max_iter; ++__i) 26629: { 26629: __term *= - __x / __i; 26629: if (std::abs(__term) < __eps) 26629: break; 26629: if (__term >= _Tp(0)) 26629: __esum += __term / __i; 26629: else 26629: __osum += __term / __i; 26629: } 26629: 26629: return - __esum - __osum 26629: - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); 26629: } 26629: # 118 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_E1_asymp(_Tp __x) 26629: { 26629: _Tp __term = _Tp(1); 26629: _Tp __esum = _Tp(1); 26629: _Tp __osum = _Tp(0); 26629: const unsigned int __max_iter = 1000; 26629: for (unsigned int __i = 1; __i < __max_iter; ++__i) 26629: { 26629: _Tp __prev = __term; 26629: __term *= - __i / __x; 26629: if (std::abs(__term) > std::abs(__prev)) 26629: break; 26629: if (__term >= _Tp(0)) 26629: __esum += __term; 26629: else 26629: __osum += __term; 26629: } 26629: 26629: return std::exp(- __x) * (__esum + __osum) / __x; 26629: } 26629: # 155 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_En_series(unsigned int __n, _Tp __x) 26629: { 26629: const unsigned int __max_iter = 1000; 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: const int __nm1 = __n - 1; 26629: _Tp __ans = (__nm1 != 0 26629: ? _Tp(1) / __nm1 : -std::log(__x) 26629: - __numeric_constants<_Tp>::__gamma_e()); 26629: _Tp __fact = _Tp(1); 26629: for (int __i = 1; __i <= __max_iter; ++__i) 26629: { 26629: __fact *= -__x / _Tp(__i); 26629: _Tp __del; 26629: if ( __i != __nm1 ) 26629: __del = -__fact / _Tp(__i - __nm1); 26629: else 26629: { 26629: _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); 26629: for (int __ii = 1; __ii <= __nm1; ++__ii) 26629: __psi += _Tp(1) / _Tp(__ii); 26629: __del = __fact * (__psi - std::log(__x)); 26629: } 26629: __ans += __del; 26629: if (std::abs(__del) < __eps * std::abs(__ans)) 26629: return __ans; 26629: } 26629: std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") 26629: ); 26629: } 26629: # 201 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_En_cont_frac(unsigned int __n, _Tp __x) 26629: { 26629: const unsigned int __max_iter = 1000; 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: const _Tp __fp_min = std::numeric_limits<_Tp>::min(); 26629: const int __nm1 = __n - 1; 26629: _Tp __b = __x + _Tp(__n); 26629: _Tp __c = _Tp(1) / __fp_min; 26629: _Tp __d = _Tp(1) / __b; 26629: _Tp __h = __d; 26629: for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) 26629: { 26629: _Tp __a = -_Tp(__i * (__nm1 + __i)); 26629: __b += _Tp(2); 26629: __d = _Tp(1) / (__a * __d + __b); 26629: __c = __b + __a / __c; 26629: const _Tp __del = __c * __d; 26629: __h *= __del; 26629: if (std::abs(__del - _Tp(1)) < __eps) 26629: { 26629: const _Tp __ans = __h * std::exp(-__x); 26629: return __ans; 26629: } 26629: } 26629: std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") 26629: ); 26629: } 26629: # 246 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_En_recursion(unsigned int __n, _Tp __x) 26629: { 26629: _Tp __En; 26629: _Tp __E1 = __expint_E1(__x); 26629: if (__x < _Tp(__n)) 26629: { 26629: 26629: __En = __E1; 26629: for (unsigned int __j = 2; __j < __n; ++__j) 26629: __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); 26629: } 26629: else 26629: { 26629: 26629: __En = _Tp(1); 26629: const int __N = __n + 20; 26629: _Tp __save = _Tp(0); 26629: for (int __j = __N; __j > 0; --__j) 26629: { 26629: __En = (std::exp(-__x) - __j * __En) / __x; 26629: if (__j == __n) 26629: __save = __En; 26629: } 26629: _Tp __norm = __En / __E1; 26629: __En /= __norm; 26629: } 26629: 26629: return __En; 26629: } 26629: # 290 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_Ei_series(_Tp __x) 26629: { 26629: _Tp __term = _Tp(1); 26629: _Tp __sum = _Tp(0); 26629: const unsigned int __max_iter = 1000; 26629: for (unsigned int __i = 1; __i < __max_iter; ++__i) 26629: { 26629: __term *= __x / __i; 26629: __sum += __term / __i; 26629: if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) 26629: break; 26629: } 26629: 26629: return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); 26629: } 26629: # 321 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_Ei_asymp(_Tp __x) 26629: { 26629: _Tp __term = _Tp(1); 26629: _Tp __sum = _Tp(1); 26629: const unsigned int __max_iter = 1000; 26629: for (unsigned int __i = 1; __i < __max_iter; ++__i) 26629: { 26629: _Tp __prev = __term; 26629: __term *= __i / __x; 26629: if (__term < std::numeric_limits<_Tp>::epsilon()) 26629: break; 26629: if (__term >= __prev) 26629: break; 26629: __sum += __term; 26629: } 26629: 26629: return std::exp(__x) * __sum / __x; 26629: } 26629: # 354 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_Ei(_Tp __x) 26629: { 26629: if (__x < _Tp(0)) 26629: return -__expint_E1(-__x); 26629: else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) 26629: return __expint_Ei_series(__x); 26629: else 26629: return __expint_Ei_asymp(__x); 26629: } 26629: # 378 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_E1(_Tp __x) 26629: { 26629: if (__x < _Tp(0)) 26629: return -__expint_Ei(-__x); 26629: else if (__x < _Tp(1)) 26629: return __expint_E1_series(__x); 26629: else if (__x < _Tp(100)) 26629: return __expint_En_cont_frac(1, __x); 26629: else 26629: return __expint_E1_asymp(__x); 26629: } 26629: # 408 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_asymp(unsigned int __n, _Tp __x) 26629: { 26629: _Tp __term = _Tp(1); 26629: _Tp __sum = _Tp(1); 26629: for (unsigned int __i = 1; __i <= __n; ++__i) 26629: { 26629: _Tp __prev = __term; 26629: __term *= -(__n - __i + 1) / __x; 26629: if (std::abs(__term) > std::abs(__prev)) 26629: break; 26629: __sum += __term; 26629: } 26629: 26629: return std::exp(-__x) * __sum / __x; 26629: } 26629: # 442 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint_large_n(unsigned int __n, _Tp __x) 26629: { 26629: const _Tp __xpn = __x + __n; 26629: const _Tp __xpn2 = __xpn * __xpn; 26629: _Tp __term = _Tp(1); 26629: _Tp __sum = _Tp(1); 26629: for (unsigned int __i = 1; __i <= __n; ++__i) 26629: { 26629: _Tp __prev = __term; 26629: __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; 26629: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 26629: break; 26629: __sum += __term; 26629: } 26629: 26629: return std::exp(-__x) * __sum / __xpn; 26629: } 26629: # 476 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: _Tp 26629: __expint(unsigned int __n, _Tp __x) 26629: { 26629: 26629: if (__isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__n <= 1 && __x == _Tp(0)) 26629: return std::numeric_limits<_Tp>::infinity(); 26629: else 26629: { 26629: _Tp __E0 = std::exp(__x) / __x; 26629: if (__n == 0) 26629: return __E0; 26629: 26629: _Tp __E1 = __expint_E1(__x); 26629: if (__n == 1) 26629: return __E1; 26629: 26629: if (__x == _Tp(0)) 26629: return _Tp(1) / static_cast<_Tp>(__n - 1); 26629: 26629: _Tp __En = __expint_En_recursion(__n, __x); 26629: 26629: return __En; 26629: } 26629: } 26629: # 516 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 26629: template 26629: inline _Tp 26629: __expint(_Tp __x) 26629: { 26629: if (__isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else 26629: return __expint_Ei(__x); 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 54 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: # 1 "/usr/include/c++/12/tr1/hypergeometric.tcc" 1 3 26629: # 44 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 60 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 26629: namespace __detail 26629: { 26629: # 83 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 26629: template 26629: _Tp 26629: __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) 26629: { 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: 26629: _Tp __term = _Tp(1); 26629: _Tp __Fac = _Tp(1); 26629: const unsigned int __max_iter = 100000; 26629: unsigned int __i; 26629: for (__i = 0; __i < __max_iter; ++__i) 26629: { 26629: __term *= (__a + _Tp(__i)) * __x 26629: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 26629: if (std::abs(__term) < __eps) 26629: { 26629: break; 26629: } 26629: __Fac += __term; 26629: } 26629: if (__i == __max_iter) 26629: std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") 26629: ); 26629: 26629: return __Fac; 26629: } 26629: # 120 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 26629: template 26629: _Tp 26629: __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) 26629: { 26629: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 26629: const int __nmax = 20000; 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: const _Tp __x = -__xin; 26629: const _Tp __x3 = __x * __x * __x; 26629: const _Tp __t0 = __a / __c; 26629: const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); 26629: const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); 26629: _Tp __F = _Tp(1); 26629: _Tp __prec; 26629: 26629: _Tp __Bnm3 = _Tp(1); 26629: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 26629: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 26629: 26629: _Tp __Anm3 = _Tp(1); 26629: _Tp __Anm2 = __Bnm2 - __t0 * __x; 26629: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 26629: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 26629: 26629: int __n = 3; 26629: while(1) 26629: { 26629: _Tp __npam1 = _Tp(__n - 1) + __a; 26629: _Tp __npcm1 = _Tp(__n - 1) + __c; 26629: _Tp __npam2 = _Tp(__n - 2) + __a; 26629: _Tp __npcm2 = _Tp(__n - 2) + __c; 26629: _Tp __tnm1 = _Tp(2 * __n - 1); 26629: _Tp __tnm3 = _Tp(2 * __n - 3); 26629: _Tp __tnm5 = _Tp(2 * __n - 5); 26629: _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); 26629: _Tp __F2 = (_Tp(__n) + __a) * __npam1 26629: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 26629: _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) 26629: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 26629: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 26629: _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) 26629: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 26629: 26629: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 26629: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 26629: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 26629: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 26629: _Tp __r = __An / __Bn; 26629: 26629: __prec = std::abs((__F - __r) / __F); 26629: __F = __r; 26629: 26629: if (__prec < __eps || __n > __nmax) 26629: break; 26629: 26629: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 26629: { 26629: __An /= __big; 26629: __Bn /= __big; 26629: __Anm1 /= __big; 26629: __Bnm1 /= __big; 26629: __Anm2 /= __big; 26629: __Bnm2 /= __big; 26629: __Anm3 /= __big; 26629: __Bnm3 /= __big; 26629: } 26629: else if (std::abs(__An) < _Tp(1) / __big 26629: || std::abs(__Bn) < _Tp(1) / __big) 26629: { 26629: __An *= __big; 26629: __Bn *= __big; 26629: __Anm1 *= __big; 26629: __Bnm1 *= __big; 26629: __Anm2 *= __big; 26629: __Bnm2 *= __big; 26629: __Anm3 *= __big; 26629: __Bnm3 *= __big; 26629: } 26629: 26629: ++__n; 26629: __Bnm3 = __Bnm2; 26629: __Bnm2 = __Bnm1; 26629: __Bnm1 = __Bn; 26629: __Anm3 = __Anm2; 26629: __Anm2 = __Anm1; 26629: __Anm1 = __An; 26629: } 26629: 26629: if (__n >= __nmax) 26629: std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") 26629: ); 26629: 26629: return __F; 26629: } 26629: # 227 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 26629: template 26629: _Tp 26629: __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) 26629: { 26629: 26629: const _Tp __c_nint = ::std::nearbyint(__c); 26629: 26629: 26629: 26629: if (__isnan(__a) || __isnan(__c) || __isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__c_nint == __c && __c_nint <= 0) 26629: return std::numeric_limits<_Tp>::infinity(); 26629: else if (__a == _Tp(0)) 26629: return _Tp(1); 26629: else if (__c == __a) 26629: return std::exp(__x); 26629: else if (__x < _Tp(0)) 26629: return __conf_hyperg_luke(__a, __c, __x); 26629: else 26629: return __conf_hyperg_series(__a, __c, __x); 26629: } 26629: # 271 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 26629: template 26629: _Tp 26629: __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 26629: { 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: 26629: _Tp __term = _Tp(1); 26629: _Tp __Fabc = _Tp(1); 26629: const unsigned int __max_iter = 100000; 26629: unsigned int __i; 26629: for (__i = 0; __i < __max_iter; ++__i) 26629: { 26629: __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x 26629: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 26629: if (std::abs(__term) < __eps) 26629: { 26629: break; 26629: } 26629: __Fabc += __term; 26629: } 26629: if (__i == __max_iter) 26629: std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") 26629: ); 26629: 26629: return __Fabc; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: _Tp 26629: __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) 26629: { 26629: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 26629: const int __nmax = 20000; 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: const _Tp __x = -__xin; 26629: const _Tp __x3 = __x * __x * __x; 26629: const _Tp __t0 = __a * __b / __c; 26629: const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); 26629: const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) 26629: / (_Tp(2) * (__c + _Tp(1))); 26629: 26629: _Tp __F = _Tp(1); 26629: 26629: _Tp __Bnm3 = _Tp(1); 26629: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 26629: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 26629: 26629: _Tp __Anm3 = _Tp(1); 26629: _Tp __Anm2 = __Bnm2 - __t0 * __x; 26629: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 26629: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 26629: 26629: int __n = 3; 26629: while (1) 26629: { 26629: const _Tp __npam1 = _Tp(__n - 1) + __a; 26629: const _Tp __npbm1 = _Tp(__n - 1) + __b; 26629: const _Tp __npcm1 = _Tp(__n - 1) + __c; 26629: const _Tp __npam2 = _Tp(__n - 2) + __a; 26629: const _Tp __npbm2 = _Tp(__n - 2) + __b; 26629: const _Tp __npcm2 = _Tp(__n - 2) + __c; 26629: const _Tp __tnm1 = _Tp(2 * __n - 1); 26629: const _Tp __tnm3 = _Tp(2 * __n - 3); 26629: const _Tp __tnm5 = _Tp(2 * __n - 5); 26629: const _Tp __n2 = __n * __n; 26629: const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n 26629: + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) 26629: / (_Tp(2) * __tnm3 * __npcm1); 26629: const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n 26629: + _Tp(2) - __a * __b) * __npam1 * __npbm1 26629: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 26629: const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 26629: * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) 26629: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 26629: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 26629: const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) 26629: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 26629: 26629: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 26629: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 26629: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 26629: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 26629: const _Tp __r = __An / __Bn; 26629: 26629: const _Tp __prec = std::abs((__F - __r) / __F); 26629: __F = __r; 26629: 26629: if (__prec < __eps || __n > __nmax) 26629: break; 26629: 26629: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 26629: { 26629: __An /= __big; 26629: __Bn /= __big; 26629: __Anm1 /= __big; 26629: __Bnm1 /= __big; 26629: __Anm2 /= __big; 26629: __Bnm2 /= __big; 26629: __Anm3 /= __big; 26629: __Bnm3 /= __big; 26629: } 26629: else if (std::abs(__An) < _Tp(1) / __big 26629: || std::abs(__Bn) < _Tp(1) / __big) 26629: { 26629: __An *= __big; 26629: __Bn *= __big; 26629: __Anm1 *= __big; 26629: __Bnm1 *= __big; 26629: __Anm2 *= __big; 26629: __Bnm2 *= __big; 26629: __Anm3 *= __big; 26629: __Bnm3 *= __big; 26629: } 26629: 26629: ++__n; 26629: __Bnm3 = __Bnm2; 26629: __Bnm2 = __Bnm1; 26629: __Bnm1 = __Bn; 26629: __Anm3 = __Anm2; 26629: __Anm2 = __Anm1; 26629: __Anm1 = __An; 26629: } 26629: 26629: if (__n >= __nmax) 26629: std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") 26629: ); 26629: 26629: return __F; 26629: } 26629: # 438 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 26629: template 26629: _Tp 26629: __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 26629: { 26629: const _Tp __d = __c - __a - __b; 26629: const int __intd = std::floor(__d + _Tp(0.5L)); 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: const _Tp __toler = _Tp(1000) * __eps; 26629: const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); 26629: const bool __d_integer = (std::abs(__d - __intd) < __toler); 26629: 26629: if (__d_integer) 26629: { 26629: const _Tp __ln_omx = std::log(_Tp(1) - __x); 26629: const _Tp __ad = std::abs(__d); 26629: _Tp __F1, __F2; 26629: 26629: _Tp __d1, __d2; 26629: if (__d >= _Tp(0)) 26629: { 26629: __d1 = __d; 26629: __d2 = _Tp(0); 26629: } 26629: else 26629: { 26629: __d1 = _Tp(0); 26629: __d2 = __d; 26629: } 26629: 26629: const _Tp __lng_c = __log_gamma(__c); 26629: 26629: 26629: if (__ad < __eps) 26629: { 26629: 26629: __F1 = _Tp(0); 26629: } 26629: else 26629: { 26629: 26629: bool __ok_d1 = true; 26629: _Tp __lng_ad, __lng_ad1, __lng_bd1; 26629: try 26629: { 26629: __lng_ad = __log_gamma(__ad); 26629: __lng_ad1 = __log_gamma(__a + __d1); 26629: __lng_bd1 = __log_gamma(__b + __d1); 26629: } 26629: catch(...) 26629: { 26629: __ok_d1 = false; 26629: } 26629: 26629: if (__ok_d1) 26629: { 26629: 26629: 26629: 26629: _Tp __sum1 = _Tp(1); 26629: _Tp __term = _Tp(1); 26629: _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx 26629: - __lng_ad1 - __lng_bd1; 26629: 26629: 26629: 26629: for (int __i = 1; __i < __ad; ++__i) 26629: { 26629: const int __j = __i - 1; 26629: __term *= (__a + __d2 + __j) * (__b + __d2 + __j) 26629: / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); 26629: __sum1 += __term; 26629: } 26629: 26629: if (__ln_pre1 > __log_max) 26629: std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") 26629: ); 26629: else 26629: __F1 = std::exp(__ln_pre1) * __sum1; 26629: } 26629: else 26629: { 26629: 26629: 26629: __F1 = _Tp(0); 26629: } 26629: } 26629: 26629: 26629: bool __ok_d2 = true; 26629: _Tp __lng_ad2, __lng_bd2; 26629: try 26629: { 26629: __lng_ad2 = __log_gamma(__a + __d2); 26629: __lng_bd2 = __log_gamma(__b + __d2); 26629: } 26629: catch(...) 26629: { 26629: __ok_d2 = false; 26629: } 26629: 26629: if (__ok_d2) 26629: { 26629: 26629: 26629: const int __maxiter = 2000; 26629: const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); 26629: const _Tp __psi_1pd = __psi(_Tp(1) + __ad); 26629: const _Tp __psi_apd1 = __psi(__a + __d1); 26629: const _Tp __psi_bpd1 = __psi(__b + __d1); 26629: 26629: _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 26629: - __psi_bpd1 - __ln_omx; 26629: _Tp __fact = _Tp(1); 26629: _Tp __sum2 = __psi_term; 26629: _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx 26629: - __lng_ad2 - __lng_bd2; 26629: 26629: 26629: int __j; 26629: for (__j = 1; __j < __maxiter; ++__j) 26629: { 26629: 26629: 26629: const _Tp __term1 = _Tp(1) / _Tp(__j) 26629: + _Tp(1) / (__ad + __j); 26629: const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) 26629: + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); 26629: __psi_term += __term1 - __term2; 26629: __fact *= (__a + __d1 + _Tp(__j - 1)) 26629: * (__b + __d1 + _Tp(__j - 1)) 26629: / ((__ad + __j) * __j) * (_Tp(1) - __x); 26629: const _Tp __delta = __fact * __psi_term; 26629: __sum2 += __delta; 26629: if (std::abs(__delta) < __eps * std::abs(__sum2)) 26629: break; 26629: } 26629: if (__j == __maxiter) 26629: std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") 26629: ); 26629: 26629: if (__sum2 == _Tp(0)) 26629: __F2 = _Tp(0); 26629: else 26629: __F2 = std::exp(__ln_pre2) * __sum2; 26629: } 26629: else 26629: { 26629: 26629: 26629: __F2 = _Tp(0); 26629: } 26629: 26629: const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); 26629: const _Tp __F = __F1 + __sgn_2 * __F2; 26629: 26629: return __F; 26629: } 26629: else 26629: { 26629: 26629: 26629: 26629: 26629: bool __ok1 = true; 26629: _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); 26629: _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); 26629: try 26629: { 26629: __sgn_g1ca = __log_gamma_sign(__c - __a); 26629: __ln_g1ca = __log_gamma(__c - __a); 26629: __sgn_g1cb = __log_gamma_sign(__c - __b); 26629: __ln_g1cb = __log_gamma(__c - __b); 26629: } 26629: catch(...) 26629: { 26629: __ok1 = false; 26629: } 26629: 26629: bool __ok2 = true; 26629: _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); 26629: _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); 26629: try 26629: { 26629: __sgn_g2a = __log_gamma_sign(__a); 26629: __ln_g2a = __log_gamma(__a); 26629: __sgn_g2b = __log_gamma_sign(__b); 26629: __ln_g2b = __log_gamma(__b); 26629: } 26629: catch(...) 26629: { 26629: __ok2 = false; 26629: } 26629: 26629: const _Tp __sgn_gc = __log_gamma_sign(__c); 26629: const _Tp __ln_gc = __log_gamma(__c); 26629: const _Tp __sgn_gd = __log_gamma_sign(__d); 26629: const _Tp __ln_gd = __log_gamma(__d); 26629: const _Tp __sgn_gmd = __log_gamma_sign(-__d); 26629: const _Tp __ln_gmd = __log_gamma(-__d); 26629: 26629: const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; 26629: const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; 26629: 26629: _Tp __pre1, __pre2; 26629: if (__ok1 && __ok2) 26629: { 26629: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 26629: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 26629: + __d * std::log(_Tp(1) - __x); 26629: if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) 26629: { 26629: __pre1 = std::exp(__ln_pre1); 26629: __pre2 = std::exp(__ln_pre2); 26629: __pre1 *= __sgn1; 26629: __pre2 *= __sgn2; 26629: } 26629: else 26629: { 26629: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 26629: ); 26629: } 26629: } 26629: else if (__ok1 && !__ok2) 26629: { 26629: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 26629: if (__ln_pre1 < __log_max) 26629: { 26629: __pre1 = std::exp(__ln_pre1); 26629: __pre1 *= __sgn1; 26629: __pre2 = _Tp(0); 26629: } 26629: else 26629: { 26629: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 26629: ); 26629: } 26629: } 26629: else if (!__ok1 && __ok2) 26629: { 26629: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 26629: + __d * std::log(_Tp(1) - __x); 26629: if (__ln_pre2 < __log_max) 26629: { 26629: __pre1 = _Tp(0); 26629: __pre2 = std::exp(__ln_pre2); 26629: __pre2 *= __sgn2; 26629: } 26629: else 26629: { 26629: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 26629: ); 26629: } 26629: } 26629: else 26629: { 26629: __pre1 = _Tp(0); 26629: __pre2 = _Tp(0); 26629: std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") 26629: ); 26629: } 26629: 26629: const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, 26629: _Tp(1) - __x); 26629: const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, 26629: _Tp(1) - __x); 26629: 26629: const _Tp __F = __pre1 * __F1 + __pre2 * __F2; 26629: 26629: return __F; 26629: } 26629: } 26629: # 728 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 26629: template 26629: _Tp 26629: __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 26629: { 26629: 26629: const _Tp __a_nint = ::std::nearbyint(__a); 26629: const _Tp __b_nint = ::std::nearbyint(__b); 26629: const _Tp __c_nint = ::std::nearbyint(__c); 26629: 26629: 26629: 26629: 26629: 26629: const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); 26629: if (std::abs(__x) >= _Tp(1)) 26629: std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") 26629: ); 26629: else if (__isnan(__a) || __isnan(__b) 26629: || __isnan(__c) || __isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__c_nint == __c && __c_nint <= _Tp(0)) 26629: return std::numeric_limits<_Tp>::infinity(); 26629: else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) 26629: return std::pow(_Tp(1) - __x, __c - __a - __b); 26629: else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) 26629: && __x >= _Tp(0) && __x < _Tp(0.995L)) 26629: return __hyperg_series(__a, __b, __c, __x); 26629: else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) 26629: { 26629: 26629: 26629: if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) 26629: return __hyperg_series(__a_nint, __b, __c, __x); 26629: else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) 26629: return __hyperg_series(__a, __b_nint, __c, __x); 26629: else if (__x < -_Tp(0.25L)) 26629: return __hyperg_luke(__a, __b, __c, __x); 26629: else if (__x < _Tp(0.5L)) 26629: return __hyperg_series(__a, __b, __c, __x); 26629: else 26629: if (std::abs(__c) > _Tp(10)) 26629: return __hyperg_series(__a, __b, __c, __x); 26629: else 26629: return __hyperg_reflect(__a, __b, __c, __x); 26629: } 26629: else 26629: return __hyperg_luke(__a, __b, __c, __x); 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 55 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: # 1 "/usr/include/c++/12/tr1/legendre_function.tcc" 1 3 26629: # 49 "/usr/include/c++/12/tr1/legendre_function.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 65 "/usr/include/c++/12/tr1/legendre_function.tcc" 3 26629: namespace __detail 26629: { 26629: # 80 "/usr/include/c++/12/tr1/legendre_function.tcc" 3 26629: template 26629: _Tp 26629: __poly_legendre_p(unsigned int __l, _Tp __x) 26629: { 26629: 26629: if (__isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__x == +_Tp(1)) 26629: return +_Tp(1); 26629: else if (__x == -_Tp(1)) 26629: return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); 26629: else 26629: { 26629: _Tp __p_lm2 = _Tp(1); 26629: if (__l == 0) 26629: return __p_lm2; 26629: 26629: _Tp __p_lm1 = __x; 26629: if (__l == 1) 26629: return __p_lm1; 26629: 26629: _Tp __p_l = 0; 26629: for (unsigned int __ll = 2; __ll <= __l; ++__ll) 26629: { 26629: 26629: 26629: __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 26629: - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); 26629: __p_lm2 = __p_lm1; 26629: __p_lm1 = __p_l; 26629: } 26629: 26629: return __p_l; 26629: } 26629: } 26629: # 136 "/usr/include/c++/12/tr1/legendre_function.tcc" 3 26629: template 26629: _Tp 26629: __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, 26629: _Tp __phase = _Tp(+1)) 26629: { 26629: 26629: if (__m > __l) 26629: return _Tp(0); 26629: else if (__isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__m == 0) 26629: return __poly_legendre_p(__l, __x); 26629: else 26629: { 26629: _Tp __p_mm = _Tp(1); 26629: if (__m > 0) 26629: { 26629: 26629: 26629: _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); 26629: _Tp __fact = _Tp(1); 26629: for (unsigned int __i = 1; __i <= __m; ++__i) 26629: { 26629: __p_mm *= __phase * __fact * __root; 26629: __fact += _Tp(2); 26629: } 26629: } 26629: if (__l == __m) 26629: return __p_mm; 26629: 26629: _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; 26629: if (__l == __m + 1) 26629: return __p_mp1m; 26629: 26629: _Tp __p_lm2m = __p_mm; 26629: _Tp __P_lm1m = __p_mp1m; 26629: _Tp __p_lm = _Tp(0); 26629: for (unsigned int __j = __m + 2; __j <= __l; ++__j) 26629: { 26629: __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m 26629: - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); 26629: __p_lm2m = __P_lm1m; 26629: __P_lm1m = __p_lm; 26629: } 26629: 26629: return __p_lm; 26629: } 26629: } 26629: # 214 "/usr/include/c++/12/tr1/legendre_function.tcc" 3 26629: template 26629: _Tp 26629: __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 26629: { 26629: if (__isnan(__theta)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: 26629: const _Tp __x = std::cos(__theta); 26629: 26629: if (__m > __l) 26629: return _Tp(0); 26629: else if (__m == 0) 26629: { 26629: _Tp __P = __poly_legendre_p(__l, __x); 26629: _Tp __fact = std::sqrt(_Tp(2 * __l + 1) 26629: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 26629: __P *= __fact; 26629: return __P; 26629: } 26629: else if (__x == _Tp(1) || __x == -_Tp(1)) 26629: { 26629: 26629: return _Tp(0); 26629: } 26629: else 26629: { 26629: 26629: 26629: 26629: 26629: 26629: const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); 26629: const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); 26629: 26629: const _Tp __lncirc = ::std::log1p(-__x * __x); 26629: 26629: 26629: 26629: 26629: 26629: const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) 26629: - ::std::lgamma(_Tp(__m)); 26629: 26629: 26629: 26629: 26629: const _Tp __lnpre_val = 26629: -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() 26629: + _Tp(0.5L) * (__lnpoch + __m * __lncirc); 26629: const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) 26629: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 26629: _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); 26629: _Tp __y_mp1m = __y_mp1m_factor * __y_mm; 26629: 26629: if (__l == __m) 26629: return __y_mm; 26629: else if (__l == __m + 1) 26629: return __y_mp1m; 26629: else 26629: { 26629: _Tp __y_lm = _Tp(0); 26629: 26629: 26629: for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) 26629: { 26629: const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); 26629: const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); 26629: const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) 26629: * _Tp(2 * __ll - 1)); 26629: const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) 26629: / _Tp(2 * __ll - 3)); 26629: __y_lm = (__x * __y_mp1m * __fact1 26629: - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); 26629: __y_mm = __y_mp1m; 26629: __y_mp1m = __y_lm; 26629: } 26629: 26629: return __y_lm; 26629: } 26629: } 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 56 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: # 1 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 1 3 26629: # 51 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 65 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 26629: namespace __detail 26629: { 26629: # 83 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 26629: template 26629: void 26629: __bessel_ik(_Tp __nu, _Tp __x, 26629: _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) 26629: { 26629: if (__x == _Tp(0)) 26629: { 26629: if (__nu == _Tp(0)) 26629: { 26629: __Inu = _Tp(1); 26629: __Ipnu = _Tp(0); 26629: } 26629: else if (__nu == _Tp(1)) 26629: { 26629: __Inu = _Tp(0); 26629: __Ipnu = _Tp(0.5L); 26629: } 26629: else 26629: { 26629: __Inu = _Tp(0); 26629: __Ipnu = _Tp(0); 26629: } 26629: __Knu = std::numeric_limits<_Tp>::infinity(); 26629: __Kpnu = -std::numeric_limits<_Tp>::infinity(); 26629: return; 26629: } 26629: 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); 26629: const int __max_iter = 15000; 26629: const _Tp __x_min = _Tp(2); 26629: 26629: const int __nl = static_cast(__nu + _Tp(0.5L)); 26629: 26629: const _Tp __mu = __nu - __nl; 26629: const _Tp __mu2 = __mu * __mu; 26629: const _Tp __xi = _Tp(1) / __x; 26629: const _Tp __xi2 = _Tp(2) * __xi; 26629: _Tp __h = __nu * __xi; 26629: if ( __h < __fp_min ) 26629: __h = __fp_min; 26629: _Tp __b = __xi2 * __nu; 26629: _Tp __d = _Tp(0); 26629: _Tp __c = __h; 26629: int __i; 26629: for ( __i = 1; __i <= __max_iter; ++__i ) 26629: { 26629: __b += __xi2; 26629: __d = _Tp(1) / (__b + __d); 26629: __c = __b + _Tp(1) / __c; 26629: const _Tp __del = __c * __d; 26629: __h *= __del; 26629: if (std::abs(__del - _Tp(1)) < __eps) 26629: break; 26629: } 26629: if (__i > __max_iter) 26629: std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") 26629: 26629: ); 26629: _Tp __Inul = __fp_min; 26629: _Tp __Ipnul = __h * __Inul; 26629: _Tp __Inul1 = __Inul; 26629: _Tp __Ipnu1 = __Ipnul; 26629: _Tp __fact = __nu * __xi; 26629: for (int __l = __nl; __l >= 1; --__l) 26629: { 26629: const _Tp __Inutemp = __fact * __Inul + __Ipnul; 26629: __fact -= __xi; 26629: __Ipnul = __fact * __Inutemp + __Inul; 26629: __Inul = __Inutemp; 26629: } 26629: _Tp __f = __Ipnul / __Inul; 26629: _Tp __Kmu, __Knu1; 26629: if (__x < __x_min) 26629: { 26629: const _Tp __x2 = __x / _Tp(2); 26629: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 26629: const _Tp __fact = (std::abs(__pimu) < __eps 26629: ? _Tp(1) : __pimu / std::sin(__pimu)); 26629: _Tp __d = -std::log(__x2); 26629: _Tp __e = __mu * __d; 26629: const _Tp __fact2 = (std::abs(__e) < __eps 26629: ? _Tp(1) : std::sinh(__e) / __e); 26629: _Tp __gam1, __gam2, __gampl, __gammi; 26629: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 26629: _Tp __ff = __fact 26629: * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 26629: _Tp __sum = __ff; 26629: __e = std::exp(__e); 26629: _Tp __p = __e / (_Tp(2) * __gampl); 26629: _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); 26629: _Tp __c = _Tp(1); 26629: __d = __x2 * __x2; 26629: _Tp __sum1 = __p; 26629: int __i; 26629: for (__i = 1; __i <= __max_iter; ++__i) 26629: { 26629: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 26629: __c *= __d / __i; 26629: __p /= __i - __mu; 26629: __q /= __i + __mu; 26629: const _Tp __del = __c * __ff; 26629: __sum += __del; 26629: const _Tp __del1 = __c * (__p - __i * __ff); 26629: __sum1 += __del1; 26629: if (std::abs(__del) < __eps * std::abs(__sum)) 26629: break; 26629: } 26629: if (__i > __max_iter) 26629: std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") 26629: ); 26629: __Kmu = __sum; 26629: __Knu1 = __sum1 * __xi2; 26629: } 26629: else 26629: { 26629: _Tp __b = _Tp(2) * (_Tp(1) + __x); 26629: _Tp __d = _Tp(1) / __b; 26629: _Tp __delh = __d; 26629: _Tp __h = __delh; 26629: _Tp __q1 = _Tp(0); 26629: _Tp __q2 = _Tp(1); 26629: _Tp __a1 = _Tp(0.25L) - __mu2; 26629: _Tp __q = __c = __a1; 26629: _Tp __a = -__a1; 26629: _Tp __s = _Tp(1) + __q * __delh; 26629: int __i; 26629: for (__i = 2; __i <= __max_iter; ++__i) 26629: { 26629: __a -= 2 * (__i - 1); 26629: __c = -__a * __c / __i; 26629: const _Tp __qnew = (__q1 - __b * __q2) / __a; 26629: __q1 = __q2; 26629: __q2 = __qnew; 26629: __q += __c * __qnew; 26629: __b += _Tp(2); 26629: __d = _Tp(1) / (__b + __a * __d); 26629: __delh = (__b * __d - _Tp(1)) * __delh; 26629: __h += __delh; 26629: const _Tp __dels = __q * __delh; 26629: __s += __dels; 26629: if ( std::abs(__dels / __s) < __eps ) 26629: break; 26629: } 26629: if (__i > __max_iter) 26629: std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") 26629: ); 26629: __h = __a1 * __h; 26629: __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) 26629: * std::exp(-__x) / __s; 26629: __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; 26629: } 26629: 26629: _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; 26629: _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); 26629: __Inu = __Inumu * __Inul1 / __Inul; 26629: __Ipnu = __Inumu * __Ipnu1 / __Inul; 26629: for ( __i = 1; __i <= __nl; ++__i ) 26629: { 26629: const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; 26629: __Kmu = __Knu1; 26629: __Knu1 = __Knutemp; 26629: } 26629: __Knu = __Kmu; 26629: __Kpnu = __nu * __xi * __Kmu - __Knu1; 26629: 26629: return; 26629: } 26629: # 267 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 26629: template 26629: _Tp 26629: __cyl_bessel_i(_Tp __nu, _Tp __x) 26629: { 26629: if (__nu < _Tp(0) || __x < _Tp(0)) 26629: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") 26629: ); 26629: else if (__isnan(__nu) || __isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 26629: return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); 26629: else 26629: { 26629: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 26629: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 26629: return __I_nu; 26629: } 26629: } 26629: # 303 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 26629: template 26629: _Tp 26629: __cyl_bessel_k(_Tp __nu, _Tp __x) 26629: { 26629: if (__nu < _Tp(0) || __x < _Tp(0)) 26629: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") 26629: ); 26629: else if (__isnan(__nu) || __isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else 26629: { 26629: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 26629: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 26629: return __K_nu; 26629: } 26629: } 26629: # 337 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 26629: template 26629: void 26629: __sph_bessel_ik(unsigned int __n, _Tp __x, 26629: _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) 26629: { 26629: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 26629: 26629: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 26629: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 26629: 26629: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 26629: / std::sqrt(__x); 26629: 26629: __i_n = __factor * __I_nu; 26629: __k_n = __factor * __K_nu; 26629: __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); 26629: __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); 26629: 26629: return; 26629: } 26629: # 373 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 26629: template 26629: void 26629: __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) 26629: { 26629: const _Tp __absx = std::abs(__x); 26629: const _Tp __rootx = std::sqrt(__absx); 26629: const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); 26629: const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); 26629: 26629: if (__isnan(__x)) 26629: __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__z == _S_inf) 26629: { 26629: __Aip = __Ai = _Tp(0); 26629: __Bip = __Bi = _S_inf; 26629: } 26629: else if (__z == -_S_inf) 26629: __Bip = __Aip = __Bi = __Ai = _Tp(0); 26629: else if (__x > _Tp(0)) 26629: { 26629: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 26629: 26629: __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 26629: __Ai = __rootx * __K_nu 26629: / (__numeric_constants<_Tp>::__sqrt3() 26629: * __numeric_constants<_Tp>::__pi()); 26629: __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() 26629: + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); 26629: 26629: __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 26629: __Aip = -__x * __K_nu 26629: / (__numeric_constants<_Tp>::__sqrt3() 26629: * __numeric_constants<_Tp>::__pi()); 26629: __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() 26629: + _Tp(2) * __I_nu 26629: / __numeric_constants<_Tp>::__sqrt3()); 26629: } 26629: else if (__x < _Tp(0)) 26629: { 26629: _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; 26629: 26629: __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 26629: __Ai = __rootx * (__J_nu 26629: - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 26629: __Bi = -__rootx * (__N_nu 26629: + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 26629: 26629: __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 26629: __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() 26629: + __J_nu) / _Tp(2); 26629: __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() 26629: - __N_nu) / _Tp(2); 26629: } 26629: else 26629: { 26629: 26629: 26629: 26629: __Ai = _Tp(0.35502805388781723926L); 26629: __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); 26629: 26629: 26629: 26629: 26629: __Aip = -_Tp(0.25881940379280679840L); 26629: __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); 26629: } 26629: 26629: return; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 57 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: # 1 "/usr/include/c++/12/tr1/poly_hermite.tcc" 1 3 26629: # 42 "/usr/include/c++/12/tr1/poly_hermite.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 56 "/usr/include/c++/12/tr1/poly_hermite.tcc" 3 26629: namespace __detail 26629: { 26629: # 72 "/usr/include/c++/12/tr1/poly_hermite.tcc" 3 26629: template 26629: _Tp 26629: __poly_hermite_recursion(unsigned int __n, _Tp __x) 26629: { 26629: 26629: _Tp __H_0 = 1; 26629: if (__n == 0) 26629: return __H_0; 26629: 26629: 26629: _Tp __H_1 = 2 * __x; 26629: if (__n == 1) 26629: return __H_1; 26629: 26629: 26629: _Tp __H_n, __H_nm1, __H_nm2; 26629: unsigned int __i; 26629: for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) 26629: { 26629: __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); 26629: __H_nm2 = __H_nm1; 26629: __H_nm1 = __H_n; 26629: } 26629: 26629: return __H_n; 26629: } 26629: # 114 "/usr/include/c++/12/tr1/poly_hermite.tcc" 3 26629: template 26629: inline _Tp 26629: __poly_hermite(unsigned int __n, _Tp __x) 26629: { 26629: if (__isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else 26629: return __poly_hermite_recursion(__n, __x); 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 58 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: # 1 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 1 3 26629: # 44 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 60 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 26629: namespace __detail 26629: { 26629: # 75 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 26629: template 26629: _Tp 26629: __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) 26629: { 26629: const _Tp __a = -_Tp(__n); 26629: const _Tp __b = _Tp(__alpha1) + _Tp(1); 26629: const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; 26629: const _Tp __cos2th = __x / __eta; 26629: const _Tp __sin2th = _Tp(1) - __cos2th; 26629: const _Tp __th = std::acos(std::sqrt(__cos2th)); 26629: const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() 26629: * __numeric_constants<_Tp>::__pi_2() 26629: * __eta * __eta * __cos2th * __sin2th; 26629: 26629: 26629: const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); 26629: const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); 26629: 26629: 26629: 26629: 26629: 26629: _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) 26629: * std::log(_Tp(0.25L) * __x * __eta); 26629: _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); 26629: _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x 26629: + __pre_term1 - __pre_term2; 26629: _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); 26629: _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta 26629: * (_Tp(2) * __th 26629: - std::sin(_Tp(2) * __th)) 26629: + __numeric_constants<_Tp>::__pi_4()); 26629: _Tp __ser = __ser_term1 + __ser_term2; 26629: 26629: return std::exp(__lnpre) * __ser; 26629: } 26629: # 129 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 26629: template 26629: _Tp 26629: __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) 26629: { 26629: const _Tp __b = _Tp(__alpha1) + _Tp(1); 26629: const _Tp __mx = -__x; 26629: const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) 26629: : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); 26629: 26629: _Tp __tc = _Tp(1); 26629: const _Tp __ax = std::abs(__x); 26629: for (unsigned int __k = 1; __k <= __n; ++__k) 26629: __tc *= (__ax / __k); 26629: 26629: _Tp __term = __tc * __tc_sgn; 26629: _Tp __sum = __term; 26629: for (int __k = int(__n) - 1; __k >= 0; --__k) 26629: { 26629: __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) 26629: * _Tp(__k + 1) / __mx; 26629: __sum += __term; 26629: } 26629: 26629: return __sum; 26629: } 26629: # 185 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 26629: template 26629: _Tp 26629: __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) 26629: { 26629: 26629: _Tp __l_0 = _Tp(1); 26629: if (__n == 0) 26629: return __l_0; 26629: 26629: 26629: _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); 26629: if (__n == 1) 26629: return __l_1; 26629: 26629: 26629: _Tp __l_n2 = __l_0; 26629: _Tp __l_n1 = __l_1; 26629: _Tp __l_n = _Tp(0); 26629: for (unsigned int __nn = 2; __nn <= __n; ++__nn) 26629: { 26629: __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) 26629: * __l_n1 / _Tp(__nn) 26629: - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); 26629: __l_n2 = __l_n1; 26629: __l_n1 = __l_n; 26629: } 26629: 26629: return __l_n; 26629: } 26629: # 244 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 26629: template 26629: _Tp 26629: __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) 26629: { 26629: if (__x < _Tp(0)) 26629: std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") 26629: ); 26629: 26629: else if (__isnan(__x)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__n == 0) 26629: return _Tp(1); 26629: else if (__n == 1) 26629: return _Tp(1) + _Tp(__alpha1) - __x; 26629: else if (__x == _Tp(0)) 26629: { 26629: _Tp __prod = _Tp(__alpha1) + _Tp(1); 26629: for (unsigned int __k = 2; __k <= __n; ++__k) 26629: __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); 26629: return __prod; 26629: } 26629: else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) 26629: && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) 26629: return __poly_laguerre_large_n(__n, __alpha1, __x); 26629: else if (_Tp(__alpha1) >= _Tp(0) 26629: || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) 26629: return __poly_laguerre_recursion(__n, __alpha1, __x); 26629: else 26629: return __poly_laguerre_hyperg(__n, __alpha1, __x); 26629: } 26629: # 296 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 26629: template 26629: inline _Tp 26629: __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 26629: { return __poly_laguerre(__n, __m, __x); } 26629: # 316 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 26629: template 26629: inline _Tp 26629: __laguerre(unsigned int __n, _Tp __x) 26629: { return __poly_laguerre(__n, 0, __x); } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 59 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: # 1 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 1 3 26629: # 47 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 63 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 26629: namespace __detail 26629: { 26629: # 78 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 26629: template 26629: _Tp 26629: __riemann_zeta_sum(_Tp __s) 26629: { 26629: 26629: if (__s < _Tp(1)) 26629: std::__throw_domain_error(("Bad argument in zeta sum.")); 26629: 26629: const unsigned int max_iter = 10000; 26629: _Tp __zeta = _Tp(0); 26629: for (unsigned int __k = 1; __k < max_iter; ++__k) 26629: { 26629: _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); 26629: if (__term < std::numeric_limits<_Tp>::epsilon()) 26629: { 26629: break; 26629: } 26629: __zeta += __term; 26629: } 26629: 26629: return __zeta; 26629: } 26629: # 115 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 26629: template 26629: _Tp 26629: __riemann_zeta_alt(_Tp __s) 26629: { 26629: _Tp __sgn = _Tp(1); 26629: _Tp __zeta = _Tp(0); 26629: for (unsigned int __i = 1; __i < 10000000; ++__i) 26629: { 26629: _Tp __term = __sgn / std::pow(__i, __s); 26629: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 26629: break; 26629: __zeta += __term; 26629: __sgn *= _Tp(-1); 26629: } 26629: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 26629: 26629: return __zeta; 26629: } 26629: # 157 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 26629: template 26629: _Tp 26629: __riemann_zeta_glob(_Tp __s) 26629: { 26629: _Tp __zeta = _Tp(0); 26629: 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: 26629: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 26629: * std::log(_Tp(10)) - _Tp(1); 26629: 26629: 26629: 26629: if (__s < _Tp(0)) 26629: { 26629: 26629: if (::std::fmod(__s,_Tp(2)) == _Tp(0)) 26629: return _Tp(0); 26629: else 26629: 26629: { 26629: _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); 26629: __zeta *= std::pow(_Tp(2) 26629: * __numeric_constants<_Tp>::__pi(), __s) 26629: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 26629: 26629: * std::exp(::std::lgamma(_Tp(1) - __s)) 26629: 26629: 26629: 26629: / __numeric_constants<_Tp>::__pi(); 26629: return __zeta; 26629: } 26629: } 26629: 26629: _Tp __num = _Tp(0.5L); 26629: const unsigned int __maxit = 10000; 26629: for (unsigned int __i = 0; __i < __maxit; ++__i) 26629: { 26629: bool __punt = false; 26629: _Tp __sgn = _Tp(1); 26629: _Tp __term = _Tp(0); 26629: for (unsigned int __j = 0; __j <= __i; ++__j) 26629: { 26629: 26629: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 26629: - ::std::lgamma(_Tp(1 + __j)) 26629: - ::std::lgamma(_Tp(1 + __i - __j)); 26629: 26629: 26629: 26629: 26629: 26629: if (__bincoeff > __max_bincoeff) 26629: { 26629: 26629: __punt = true; 26629: break; 26629: } 26629: __bincoeff = std::exp(__bincoeff); 26629: __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); 26629: __sgn *= _Tp(-1); 26629: } 26629: if (__punt) 26629: break; 26629: __term *= __num; 26629: __zeta += __term; 26629: if (std::abs(__term/__zeta) < __eps) 26629: break; 26629: __num *= _Tp(0.5L); 26629: } 26629: 26629: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 26629: 26629: return __zeta; 26629: } 26629: # 252 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 26629: template 26629: _Tp 26629: __riemann_zeta_product(_Tp __s) 26629: { 26629: static const _Tp __prime[] = { 26629: _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), 26629: _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), 26629: _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), 26629: _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) 26629: }; 26629: static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); 26629: 26629: _Tp __zeta = _Tp(1); 26629: for (unsigned int __i = 0; __i < __num_primes; ++__i) 26629: { 26629: const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); 26629: __zeta *= __fact; 26629: if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) 26629: break; 26629: } 26629: 26629: __zeta = _Tp(1) / __zeta; 26629: 26629: return __zeta; 26629: } 26629: # 293 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 26629: template 26629: _Tp 26629: __riemann_zeta(_Tp __s) 26629: { 26629: if (__isnan(__s)) 26629: return std::numeric_limits<_Tp>::quiet_NaN(); 26629: else if (__s == _Tp(1)) 26629: return std::numeric_limits<_Tp>::infinity(); 26629: else if (__s < -_Tp(19)) 26629: { 26629: _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); 26629: __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) 26629: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 26629: 26629: * std::exp(::std::lgamma(_Tp(1) - __s)) 26629: 26629: 26629: 26629: / __numeric_constants<_Tp>::__pi(); 26629: return __zeta; 26629: } 26629: else if (__s < _Tp(20)) 26629: { 26629: 26629: bool __glob = true; 26629: if (__glob) 26629: return __riemann_zeta_glob(__s); 26629: else 26629: { 26629: if (__s > _Tp(1)) 26629: return __riemann_zeta_sum(__s); 26629: else 26629: { 26629: _Tp __zeta = std::pow(_Tp(2) 26629: * __numeric_constants<_Tp>::__pi(), __s) 26629: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 26629: 26629: * ::std::tgamma(_Tp(1) - __s) 26629: 26629: 26629: 26629: * __riemann_zeta_sum(_Tp(1) - __s); 26629: return __zeta; 26629: } 26629: } 26629: } 26629: else 26629: return __riemann_zeta_product(__s); 26629: } 26629: # 365 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 26629: template 26629: _Tp 26629: __hurwitz_zeta_glob(_Tp __a, _Tp __s) 26629: { 26629: _Tp __zeta = _Tp(0); 26629: 26629: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 26629: 26629: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 26629: * std::log(_Tp(10)) - _Tp(1); 26629: 26629: const unsigned int __maxit = 10000; 26629: for (unsigned int __i = 0; __i < __maxit; ++__i) 26629: { 26629: bool __punt = false; 26629: _Tp __sgn = _Tp(1); 26629: _Tp __term = _Tp(0); 26629: for (unsigned int __j = 0; __j <= __i; ++__j) 26629: { 26629: 26629: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 26629: - ::std::lgamma(_Tp(1 + __j)) 26629: - ::std::lgamma(_Tp(1 + __i - __j)); 26629: 26629: 26629: 26629: 26629: 26629: if (__bincoeff > __max_bincoeff) 26629: { 26629: 26629: __punt = true; 26629: break; 26629: } 26629: __bincoeff = std::exp(__bincoeff); 26629: __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); 26629: __sgn *= _Tp(-1); 26629: } 26629: if (__punt) 26629: break; 26629: __term /= _Tp(__i + 1); 26629: if (std::abs(__term / __zeta) < __eps) 26629: break; 26629: __zeta += __term; 26629: } 26629: 26629: __zeta /= __s - _Tp(1); 26629: 26629: return __zeta; 26629: } 26629: # 430 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 26629: template 26629: inline _Tp 26629: __hurwitz_zeta(_Tp __a, _Tp __s) 26629: { return __hurwitz_zeta_glob(__a, __s); } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 60 "/usr/include/c++/12/bits/specfun.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 205 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: assoc_laguerref(unsigned int __n, unsigned int __m, float __x) 26629: { return __detail::__assoc_laguerre(__n, __m, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) 26629: { return __detail::__assoc_laguerre(__n, __m, __x); } 26629: # 250 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__assoc_laguerre<__type>(__n, __m, __x); 26629: } 26629: # 266 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: assoc_legendref(unsigned int __l, unsigned int __m, float __x) 26629: { return __detail::__assoc_legendre_p(__l, __m, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) 26629: { return __detail::__assoc_legendre_p(__l, __m, __x); } 26629: # 296 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__assoc_legendre_p<__type>(__l, __m, __x); 26629: } 26629: # 311 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: betaf(float __a, float __b) 26629: { return __detail::__beta(__a, __b); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: betal(long double __a, long double __b) 26629: { return __detail::__beta(__a, __b); } 26629: # 341 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type 26629: beta(_Tpa __a, _Tpb __b) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; 26629: return __detail::__beta<__type>(__a, __b); 26629: } 26629: # 357 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: comp_ellint_1f(float __k) 26629: { return __detail::__comp_ellint_1(__k); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: comp_ellint_1l(long double __k) 26629: { return __detail::__comp_ellint_1(__k); } 26629: # 389 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: comp_ellint_1(_Tp __k) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__comp_ellint_1<__type>(__k); 26629: } 26629: # 405 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: comp_ellint_2f(float __k) 26629: { return __detail::__comp_ellint_2(__k); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: comp_ellint_2l(long double __k) 26629: { return __detail::__comp_ellint_2(__k); } 26629: # 436 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: comp_ellint_2(_Tp __k) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__comp_ellint_2<__type>(__k); 26629: } 26629: # 452 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: comp_ellint_3f(float __k, float __nu) 26629: { return __detail::__comp_ellint_3(__k, __nu); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: comp_ellint_3l(long double __k, long double __nu) 26629: { return __detail::__comp_ellint_3(__k, __nu); } 26629: # 487 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type 26629: comp_ellint_3(_Tp __k, _Tpn __nu) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; 26629: return __detail::__comp_ellint_3<__type>(__k, __nu); 26629: } 26629: # 503 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: cyl_bessel_if(float __nu, float __x) 26629: { return __detail::__cyl_bessel_i(__nu, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: cyl_bessel_il(long double __nu, long double __x) 26629: { return __detail::__cyl_bessel_i(__nu, __x); } 26629: # 533 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 26629: cyl_bessel_i(_Tpnu __nu, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 26629: return __detail::__cyl_bessel_i<__type>(__nu, __x); 26629: } 26629: # 549 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: cyl_bessel_jf(float __nu, float __x) 26629: { return __detail::__cyl_bessel_j(__nu, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: cyl_bessel_jl(long double __nu, long double __x) 26629: { return __detail::__cyl_bessel_j(__nu, __x); } 26629: # 579 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 26629: cyl_bessel_j(_Tpnu __nu, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 26629: return __detail::__cyl_bessel_j<__type>(__nu, __x); 26629: } 26629: # 595 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: cyl_bessel_kf(float __nu, float __x) 26629: { return __detail::__cyl_bessel_k(__nu, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: cyl_bessel_kl(long double __nu, long double __x) 26629: { return __detail::__cyl_bessel_k(__nu, __x); } 26629: # 631 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 26629: cyl_bessel_k(_Tpnu __nu, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 26629: return __detail::__cyl_bessel_k<__type>(__nu, __x); 26629: } 26629: # 647 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: cyl_neumannf(float __nu, float __x) 26629: { return __detail::__cyl_neumann_n(__nu, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: cyl_neumannl(long double __nu, long double __x) 26629: { return __detail::__cyl_neumann_n(__nu, __x); } 26629: # 679 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 26629: cyl_neumann(_Tpnu __nu, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 26629: return __detail::__cyl_neumann_n<__type>(__nu, __x); 26629: } 26629: # 695 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: ellint_1f(float __k, float __phi) 26629: { return __detail::__ellint_1(__k, __phi); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: ellint_1l(long double __k, long double __phi) 26629: { return __detail::__ellint_1(__k, __phi); } 26629: # 727 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 26629: ellint_1(_Tp __k, _Tpp __phi) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 26629: return __detail::__ellint_1<__type>(__k, __phi); 26629: } 26629: # 743 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: ellint_2f(float __k, float __phi) 26629: { return __detail::__ellint_2(__k, __phi); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: ellint_2l(long double __k, long double __phi) 26629: { return __detail::__ellint_2(__k, __phi); } 26629: # 775 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 26629: ellint_2(_Tp __k, _Tpp __phi) 26629: { 26629: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 26629: return __detail::__ellint_2<__type>(__k, __phi); 26629: } 26629: # 791 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: ellint_3f(float __k, float __nu, float __phi) 26629: { return __detail::__ellint_3(__k, __nu, __phi); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: ellint_3l(long double __k, long double __nu, long double __phi) 26629: { return __detail::__ellint_3(__k, __nu, __phi); } 26629: # 828 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type 26629: ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) 26629: { 26629: typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; 26629: return __detail::__ellint_3<__type>(__k, __nu, __phi); 26629: } 26629: # 843 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: expintf(float __x) 26629: { return __detail::__expint(__x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: expintl(long double __x) 26629: { return __detail::__expint(__x); } 26629: # 868 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: expint(_Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__expint<__type>(__x); 26629: } 26629: # 884 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: hermitef(unsigned int __n, float __x) 26629: { return __detail::__poly_hermite(__n, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: hermitel(unsigned int __n, long double __x) 26629: { return __detail::__poly_hermite(__n, __x); } 26629: # 916 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: hermite(unsigned int __n, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__poly_hermite<__type>(__n, __x); 26629: } 26629: # 932 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: laguerref(unsigned int __n, float __x) 26629: { return __detail::__laguerre(__n, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: laguerrel(unsigned int __n, long double __x) 26629: { return __detail::__laguerre(__n, __x); } 26629: # 960 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: laguerre(unsigned int __n, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__laguerre<__type>(__n, __x); 26629: } 26629: # 976 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: legendref(unsigned int __l, float __x) 26629: { return __detail::__poly_legendre_p(__l, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: legendrel(unsigned int __l, long double __x) 26629: { return __detail::__poly_legendre_p(__l, __x); } 26629: # 1005 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: legendre(unsigned int __l, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__poly_legendre_p<__type>(__l, __x); 26629: } 26629: # 1021 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: riemann_zetaf(float __s) 26629: { return __detail::__riemann_zeta(__s); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: riemann_zetal(long double __s) 26629: { return __detail::__riemann_zeta(__s); } 26629: # 1056 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: riemann_zeta(_Tp __s) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__riemann_zeta<__type>(__s); 26629: } 26629: # 1072 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: sph_besself(unsigned int __n, float __x) 26629: { return __detail::__sph_bessel(__n, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: sph_bessell(unsigned int __n, long double __x) 26629: { return __detail::__sph_bessel(__n, __x); } 26629: # 1100 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: sph_bessel(unsigned int __n, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__sph_bessel<__type>(__n, __x); 26629: } 26629: # 1116 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: sph_legendref(unsigned int __l, unsigned int __m, float __theta) 26629: { return __detail::__sph_legendre(__l, __m, __theta); } 26629: # 1127 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline long double 26629: sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) 26629: { return __detail::__sph_legendre(__l, __m, __theta); } 26629: # 1147 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__sph_legendre<__type>(__l, __m, __theta); 26629: } 26629: # 1163 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: sph_neumannf(unsigned int __n, float __x) 26629: { return __detail::__sph_neumann(__n, __x); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline long double 26629: sph_neumannl(unsigned int __n, long double __x) 26629: { return __detail::__sph_neumann(__n, __x); } 26629: # 1191 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: sph_neumann(unsigned int __n, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: return __detail::__sph_neumann<__type>(__n, __x); 26629: } 26629: 26629: 26629: 26629: 26629: } 26629: 26629: 26629: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 1218 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: airy_aif(float __x) 26629: { 26629: float __Ai, __Bi, __Aip, __Bip; 26629: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 26629: return __Ai; 26629: } 26629: 26629: 26629: 26629: 26629: inline long double 26629: airy_ail(long double __x) 26629: { 26629: long double __Ai, __Bi, __Aip, __Bip; 26629: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 26629: return __Ai; 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: airy_ai(_Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: __type __Ai, __Bi, __Aip, __Bip; 26629: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 26629: return __Ai; 26629: } 26629: 26629: 26629: 26629: 26629: inline float 26629: airy_bif(float __x) 26629: { 26629: float __Ai, __Bi, __Aip, __Bip; 26629: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 26629: return __Bi; 26629: } 26629: 26629: 26629: 26629: 26629: inline long double 26629: airy_bil(long double __x) 26629: { 26629: long double __Ai, __Bi, __Aip, __Bip; 26629: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 26629: return __Bi; 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: inline typename __gnu_cxx::__promote<_Tp>::__type 26629: airy_bi(_Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 26629: __type __Ai, __Bi, __Aip, __Bip; 26629: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 26629: return __Bi; 26629: } 26629: # 1294 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: conf_hypergf(float __a, float __c, float __x) 26629: { return std::__detail::__conf_hyperg(__a, __c, __x); } 26629: # 1305 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline long double 26629: conf_hypergl(long double __a, long double __c, long double __x) 26629: { return std::__detail::__conf_hyperg(__a, __c, __x); } 26629: # 1325 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type 26629: conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; 26629: return std::__detail::__conf_hyperg<__type>(__a, __c, __x); 26629: } 26629: # 1342 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline float 26629: hypergf(float __a, float __b, float __c, float __x) 26629: { return std::__detail::__hyperg(__a, __b, __c, __x); } 26629: # 1353 "/usr/include/c++/12/bits/specfun.h" 3 26629: inline long double 26629: hypergl(long double __a, long double __b, long double __c, long double __x) 26629: { return std::__detail::__hyperg(__a, __b, __c, __x); } 26629: # 1374 "/usr/include/c++/12/bits/specfun.h" 3 26629: template 26629: inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type 26629: hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) 26629: { 26629: typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> 26629: ::__type __type; 26629: return std::__detail::__hyperg<__type>(__a, __b, __c, __x); 26629: } 26629: 26629: 26629: 26629: } 26629: 26629: 26629: #pragma GCC visibility pop 26629: # 1936 "/usr/include/c++/12/cmath" 2 3 26629: 26629: 26629: } 26629: # 39 "/usr/include/c++/12/random" 2 3 26629: # 1 "/usr/include/c++/12/cstdlib" 1 3 26629: # 39 "/usr/include/c++/12/cstdlib" 3 26629: 26629: # 40 "/usr/include/c++/12/cstdlib" 3 26629: # 40 "/usr/include/c++/12/random" 2 3 26629: # 49 "/usr/include/c++/12/random" 3 26629: # 1 "/usr/include/c++/12/bits/random.h" 1 3 26629: # 37 "/usr/include/c++/12/bits/random.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 58 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: _RealType 26629: generate_canonical(_UniformRandomNumberGenerator& __g); 26629: 26629: 26629: 26629: namespace __detail 26629: { 26629: template 26629: (std::numeric_limits<_UIntType>::digits)> 26629: struct _Shift 26629: { static constexpr _UIntType __value = 0; }; 26629: 26629: template 26629: struct _Shift<_UIntType, __w, true> 26629: { static constexpr _UIntType __value = _UIntType(1) << __w; }; 26629: 26629: template 26629: struct _Select_uint_least_t 26629: { 26629: static_assert(__which < 0, 26629: "sorry, would be too much trouble for a slow result"); 26629: }; 26629: 26629: template 26629: struct _Select_uint_least_t<__s, 4> 26629: { using type = unsigned int; }; 26629: 26629: template 26629: struct _Select_uint_least_t<__s, 3> 26629: { using type = unsigned long; }; 26629: 26629: template 26629: struct _Select_uint_least_t<__s, 2> 26629: { using type = unsigned long long; }; 26629: # 108 "/usr/include/c++/12/bits/random.h" 3 26629: template= __m - 1), 26629: bool __schrage_ok = __m % __a < __m / __a> 26629: struct _Mod 26629: { 26629: static _Tp 26629: __calc(_Tp __x) 26629: { 26629: using _Tp2 26629: = typename _Select_uint_least_t::type; 26629: return static_cast<_Tp>((_Tp2(__a) * __x + __c) % __m); 26629: } 26629: }; 26629: 26629: 26629: template 26629: struct _Mod<_Tp, __m, __a, __c, false, true> 26629: { 26629: static _Tp 26629: __calc(_Tp __x); 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: struct _Mod<_Tp, __m, __a, __c, true, __s> 26629: { 26629: static _Tp 26629: __calc(_Tp __x) 26629: { 26629: _Tp __res = __a * __x + __c; 26629: if (__m) 26629: __res %= __m; 26629: return __res; 26629: } 26629: }; 26629: 26629: template 26629: inline _Tp 26629: __mod(_Tp __x) 26629: { 26629: if constexpr (__a == 0) 26629: return __c; 26629: else 26629: { 26629: 26629: constexpr _Tp __a1 = __a ? __a : 1; 26629: return _Mod<_Tp, __m, __a1, __c>::__calc(__x); 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct _Adaptor 26629: { 26629: static_assert(std::is_floating_point<_DInputType>::value, 26629: "template argument must be a floating point type"); 26629: 26629: public: 26629: _Adaptor(_Engine& __g) 26629: : _M_g(__g) { } 26629: 26629: _DInputType 26629: min() const 26629: { return _DInputType(0); } 26629: 26629: _DInputType 26629: max() const 26629: { return _DInputType(1); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: _DInputType 26629: operator()() 26629: { 26629: return std::generate_canonical<_DInputType, 26629: std::numeric_limits<_DInputType>::digits, 26629: _Engine>(_M_g); 26629: } 26629: 26629: private: 26629: _Engine& _M_g; 26629: }; 26629: 26629: template 26629: using __seed_seq_generate_t = decltype( 26629: std::declval<_Sseq&>().generate(std::declval(), 26629: std::declval())); 26629: 26629: 26629: 26629: template> 26629: using __is_seed_seq = __and_< 26629: __not_, _Engine>>, 26629: is_unsigned, 26629: __not_> 26629: >; 26629: 26629: } 26629: # 257 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class linear_congruential_engine 26629: { 26629: static_assert(std::is_unsigned<_UIntType>::value, 26629: "result_type must be an unsigned integral type"); 26629: static_assert(__m == 0u || (__a < __m && __c < __m), 26629: "template argument substituting __m out of bounds"); 26629: 26629: template 26629: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 26629: _Sseq, linear_congruential_engine, _UIntType>::value>::type; 26629: 26629: public: 26629: 26629: typedef _UIntType result_type; 26629: 26629: 26629: static constexpr result_type multiplier = __a; 26629: 26629: static constexpr result_type increment = __c; 26629: 26629: static constexpr result_type modulus = __m; 26629: static constexpr result_type default_seed = 1u; 26629: 26629: 26629: 26629: 26629: 26629: linear_congruential_engine() : linear_congruential_engine(default_seed) 26629: { } 26629: # 295 "/usr/include/c++/12/bits/random.h" 3 26629: explicit 26629: linear_congruential_engine(result_type __s) 26629: { seed(__s); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: explicit 26629: linear_congruential_engine(_Sseq& __q) 26629: { seed(__q); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: seed(result_type __s = default_seed); 26629: # 326 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: _If_seed_seq<_Sseq> 26629: seed(_Sseq& __q); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: min() 26629: { return __c == 0u ? 1u : 0u; } 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: max() 26629: { return __m - 1u; } 26629: 26629: 26629: 26629: 26629: void 26629: discard(unsigned long long __z) 26629: { 26629: for (; __z != 0ULL; --__z) 26629: (*this)(); 26629: } 26629: 26629: 26629: 26629: 26629: result_type 26629: operator()() 26629: { 26629: _M_x = __detail::__mod<_UIntType, __m, __a, __c>(_M_x); 26629: return _M_x; 26629: } 26629: # 378 "/usr/include/c++/12/bits/random.h" 3 26629: friend bool 26629: operator==(const linear_congruential_engine& __lhs, 26629: const linear_congruential_engine& __rhs) 26629: { return __lhs._M_x == __rhs._M_x; } 26629: # 391 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::linear_congruential_engine<_UIntType1, 26629: __a1, __c1, __m1>& __lcr); 26629: # 411 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::linear_congruential_engine<_UIntType1, __a1, 26629: __c1, __m1>& __lcr); 26629: 26629: private: 26629: _UIntType _M_x; 26629: }; 26629: # 433 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: inline bool 26629: operator!=(const std::linear_congruential_engine<_UIntType, __a, 26629: __c, __m>& __lhs, 26629: const std::linear_congruential_engine<_UIntType, __a, 26629: __c, __m>& __rhs) 26629: { return !(__lhs == __rhs); } 26629: # 470 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class mersenne_twister_engine 26629: { 26629: static_assert(std::is_unsigned<_UIntType>::value, 26629: "result_type must be an unsigned integral type"); 26629: static_assert(1u <= __m && __m <= __n, 26629: "template argument substituting __m out of bounds"); 26629: static_assert(__r <= __w, "template argument substituting " 26629: "__r out of bound"); 26629: static_assert(__u <= __w, "template argument substituting " 26629: "__u out of bound"); 26629: static_assert(__s <= __w, "template argument substituting " 26629: "__s out of bound"); 26629: static_assert(__t <= __w, "template argument substituting " 26629: "__t out of bound"); 26629: static_assert(__l <= __w, "template argument substituting " 26629: "__l out of bound"); 26629: static_assert(__w <= std::numeric_limits<_UIntType>::digits, 26629: "template argument substituting __w out of bound"); 26629: static_assert(__a <= (__detail::_Shift<_UIntType, __w>::__value - 1), 26629: "template argument substituting __a out of bound"); 26629: static_assert(__b <= (__detail::_Shift<_UIntType, __w>::__value - 1), 26629: "template argument substituting __b out of bound"); 26629: static_assert(__c <= (__detail::_Shift<_UIntType, __w>::__value - 1), 26629: "template argument substituting __c out of bound"); 26629: static_assert(__d <= (__detail::_Shift<_UIntType, __w>::__value - 1), 26629: "template argument substituting __d out of bound"); 26629: static_assert(__f <= (__detail::_Shift<_UIntType, __w>::__value - 1), 26629: "template argument substituting __f out of bound"); 26629: 26629: template 26629: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 26629: _Sseq, mersenne_twister_engine, _UIntType>::value>::type; 26629: 26629: public: 26629: 26629: typedef _UIntType result_type; 26629: 26629: 26629: static constexpr size_t word_size = __w; 26629: static constexpr size_t state_size = __n; 26629: static constexpr size_t shift_size = __m; 26629: static constexpr size_t mask_bits = __r; 26629: static constexpr result_type xor_mask = __a; 26629: static constexpr size_t tempering_u = __u; 26629: static constexpr result_type tempering_d = __d; 26629: static constexpr size_t tempering_s = __s; 26629: static constexpr result_type tempering_b = __b; 26629: static constexpr size_t tempering_t = __t; 26629: static constexpr result_type tempering_c = __c; 26629: static constexpr size_t tempering_l = __l; 26629: static constexpr result_type initialization_multiplier = __f; 26629: static constexpr result_type default_seed = 5489u; 26629: 26629: 26629: 26629: mersenne_twister_engine() : mersenne_twister_engine(default_seed) { } 26629: 26629: explicit 26629: mersenne_twister_engine(result_type __sd) 26629: { seed(__sd); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: explicit 26629: mersenne_twister_engine(_Sseq& __q) 26629: { seed(__q); } 26629: 26629: void 26629: seed(result_type __sd = default_seed); 26629: 26629: template 26629: _If_seed_seq<_Sseq> 26629: seed(_Sseq& __q); 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: min() 26629: { return 0; } 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: max() 26629: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 26629: 26629: 26629: 26629: 26629: void 26629: discard(unsigned long long __z); 26629: 26629: result_type 26629: operator()(); 26629: # 589 "/usr/include/c++/12/bits/random.h" 3 26629: friend bool 26629: operator==(const mersenne_twister_engine& __lhs, 26629: const mersenne_twister_engine& __rhs) 26629: { return (std::equal(__lhs._M_x, __lhs._M_x + state_size, __rhs._M_x) 26629: && __lhs._M_p == __rhs._M_p); } 26629: # 607 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::mersenne_twister_engine<_UIntType1, __w1, __n1, 26629: __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 26629: __l1, __f1>& __x); 26629: # 633 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, 26629: __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 26629: __l1, __f1>& __x); 26629: 26629: private: 26629: void _M_gen_rand(); 26629: 26629: _UIntType _M_x[state_size]; 26629: size_t _M_p; 26629: }; 26629: # 666 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: inline bool 26629: operator!=(const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 26629: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __lhs, 26629: const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 26629: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __rhs) 26629: { return !(__lhs == __rhs); } 26629: # 694 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class subtract_with_carry_engine 26629: { 26629: static_assert(std::is_unsigned<_UIntType>::value, 26629: "result_type must be an unsigned integral type"); 26629: static_assert(0u < __s && __s < __r, 26629: "0 < s < r"); 26629: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 26629: "template argument substituting __w out of bounds"); 26629: 26629: template 26629: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 26629: _Sseq, subtract_with_carry_engine, _UIntType>::value>::type; 26629: 26629: public: 26629: 26629: typedef _UIntType result_type; 26629: 26629: 26629: static constexpr size_t word_size = __w; 26629: static constexpr size_t short_lag = __s; 26629: static constexpr size_t long_lag = __r; 26629: static constexpr result_type default_seed = 19780503u; 26629: 26629: subtract_with_carry_engine() : subtract_with_carry_engine(default_seed) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: subtract_with_carry_engine(result_type __sd) 26629: { seed(__sd); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: explicit 26629: subtract_with_carry_engine(_Sseq& __q) 26629: { seed(__q); } 26629: # 752 "/usr/include/c++/12/bits/random.h" 3 26629: void 26629: seed(result_type __sd = default_seed); 26629: 26629: 26629: 26629: 26629: 26629: template 26629: _If_seed_seq<_Sseq> 26629: seed(_Sseq& __q); 26629: 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: min() 26629: { return 0; } 26629: 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: max() 26629: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 26629: 26629: 26629: 26629: 26629: void 26629: discard(unsigned long long __z) 26629: { 26629: for (; __z != 0ULL; --__z) 26629: (*this)(); 26629: } 26629: 26629: 26629: 26629: 26629: result_type 26629: operator()(); 26629: # 807 "/usr/include/c++/12/bits/random.h" 3 26629: friend bool 26629: operator==(const subtract_with_carry_engine& __lhs, 26629: const subtract_with_carry_engine& __rhs) 26629: { return (std::equal(__lhs._M_x, __lhs._M_x + long_lag, __rhs._M_x) 26629: && __lhs._M_carry == __rhs._M_carry 26629: && __lhs._M_p == __rhs._M_p); } 26629: # 826 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::subtract_with_carry_engine<_UIntType1, __w1, 26629: __s1, __r1>& __x); 26629: # 845 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::subtract_with_carry_engine<_UIntType1, __w1, 26629: __s1, __r1>& __x); 26629: 26629: private: 26629: 26629: _UIntType _M_x[long_lag]; 26629: _UIntType _M_carry; 26629: size_t _M_p; 26629: }; 26629: # 871 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: inline bool 26629: operator!=(const std::subtract_with_carry_engine<_UIntType, __w, 26629: __s, __r>& __lhs, 26629: const std::subtract_with_carry_engine<_UIntType, __w, 26629: __s, __r>& __rhs) 26629: { return !(__lhs == __rhs); } 26629: # 886 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class discard_block_engine 26629: { 26629: static_assert(1 <= __r && __r <= __p, 26629: "template argument substituting __r out of bounds"); 26629: 26629: public: 26629: 26629: typedef typename _RandomNumberEngine::result_type result_type; 26629: 26629: template 26629: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 26629: _Sseq, discard_block_engine, result_type>::value>::type; 26629: 26629: 26629: static constexpr size_t block_size = __p; 26629: static constexpr size_t used_block = __r; 26629: 26629: 26629: 26629: 26629: 26629: 26629: discard_block_engine() 26629: : _M_b(), _M_n(0) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: discard_block_engine(const _RandomNumberEngine& __rng) 26629: : _M_b(__rng), _M_n(0) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: discard_block_engine(_RandomNumberEngine&& __rng) 26629: : _M_b(std::move(__rng)), _M_n(0) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: discard_block_engine(result_type __s) 26629: : _M_b(__s), _M_n(0) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: explicit 26629: discard_block_engine(_Sseq& __q) 26629: : _M_b(__q), _M_n(0) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: seed() 26629: { 26629: _M_b.seed(); 26629: _M_n = 0; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: seed(result_type __s) 26629: { 26629: _M_b.seed(__s); 26629: _M_n = 0; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: _If_seed_seq<_Sseq> 26629: seed(_Sseq& __q) 26629: { 26629: _M_b.seed(__q); 26629: _M_n = 0; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: const _RandomNumberEngine& 26629: base() const noexcept 26629: { return _M_b; } 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: min() 26629: { return _RandomNumberEngine::min(); } 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: max() 26629: { return _RandomNumberEngine::max(); } 26629: 26629: 26629: 26629: 26629: void 26629: discard(unsigned long long __z) 26629: { 26629: for (; __z != 0ULL; --__z) 26629: (*this)(); 26629: } 26629: 26629: 26629: 26629: 26629: result_type 26629: operator()(); 26629: # 1037 "/usr/include/c++/12/bits/random.h" 3 26629: friend bool 26629: operator==(const discard_block_engine& __lhs, 26629: const discard_block_engine& __rhs) 26629: { return __lhs._M_b == __rhs._M_b && __lhs._M_n == __rhs._M_n; } 26629: # 1053 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::discard_block_engine<_RandomNumberEngine1, 26629: __p1, __r1>& __x); 26629: # 1071 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::discard_block_engine<_RandomNumberEngine1, 26629: __p1, __r1>& __x); 26629: 26629: private: 26629: _RandomNumberEngine _M_b; 26629: size_t _M_n; 26629: }; 26629: # 1094 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: inline bool 26629: operator!=(const std::discard_block_engine<_RandomNumberEngine, __p, 26629: __r>& __lhs, 26629: const std::discard_block_engine<_RandomNumberEngine, __p, 26629: __r>& __rhs) 26629: { return !(__lhs == __rhs); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class independent_bits_engine 26629: { 26629: static_assert(std::is_unsigned<_UIntType>::value, 26629: "result_type must be an unsigned integral type"); 26629: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 26629: "template argument substituting __w out of bounds"); 26629: 26629: template 26629: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 26629: _Sseq, independent_bits_engine, _UIntType>::value>::type; 26629: 26629: public: 26629: 26629: typedef _UIntType result_type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: independent_bits_engine() 26629: : _M_b() { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: independent_bits_engine(const _RandomNumberEngine& __rng) 26629: : _M_b(__rng) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: independent_bits_engine(_RandomNumberEngine&& __rng) 26629: : _M_b(std::move(__rng)) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: independent_bits_engine(result_type __s) 26629: : _M_b(__s) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: explicit 26629: independent_bits_engine(_Sseq& __q) 26629: : _M_b(__q) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: seed() 26629: { _M_b.seed(); } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: seed(result_type __s) 26629: { _M_b.seed(__s); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: _If_seed_seq<_Sseq> 26629: seed(_Sseq& __q) 26629: { _M_b.seed(__q); } 26629: 26629: 26629: 26629: 26629: 26629: const _RandomNumberEngine& 26629: base() const noexcept 26629: { return _M_b; } 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: min() 26629: { return 0U; } 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: max() 26629: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 26629: 26629: 26629: 26629: 26629: void 26629: discard(unsigned long long __z) 26629: { 26629: for (; __z != 0ULL; --__z) 26629: (*this)(); 26629: } 26629: 26629: 26629: 26629: 26629: result_type 26629: operator()(); 26629: # 1248 "/usr/include/c++/12/bits/random.h" 3 26629: friend bool 26629: operator==(const independent_bits_engine& __lhs, 26629: const independent_bits_engine& __rhs) 26629: { return __lhs._M_b == __rhs._M_b; } 26629: # 1265 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::independent_bits_engine<_RandomNumberEngine, 26629: __w, _UIntType>& __x) 26629: { 26629: __is >> __x._M_b; 26629: return __is; 26629: } 26629: 26629: private: 26629: _RandomNumberEngine _M_b; 26629: }; 26629: # 1291 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: inline bool 26629: operator!=(const std::independent_bits_engine<_RandomNumberEngine, __w, 26629: _UIntType>& __lhs, 26629: const std::independent_bits_engine<_RandomNumberEngine, __w, 26629: _UIntType>& __rhs) 26629: { return !(__lhs == __rhs); } 26629: # 1309 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::independent_bits_engine<_RandomNumberEngine, 26629: __w, _UIntType>& __x) 26629: { 26629: __os << __x.base(); 26629: return __os; 26629: } 26629: # 1328 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class shuffle_order_engine 26629: { 26629: static_assert(1u <= __k, "template argument substituting " 26629: "__k out of bound"); 26629: 26629: public: 26629: 26629: typedef typename _RandomNumberEngine::result_type result_type; 26629: 26629: template 26629: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 26629: _Sseq, shuffle_order_engine, result_type>::value>::type; 26629: 26629: static constexpr size_t table_size = __k; 26629: 26629: 26629: 26629: 26629: 26629: 26629: shuffle_order_engine() 26629: : _M_b() 26629: { _M_initialize(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: shuffle_order_engine(const _RandomNumberEngine& __rng) 26629: : _M_b(__rng) 26629: { _M_initialize(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: shuffle_order_engine(_RandomNumberEngine&& __rng) 26629: : _M_b(std::move(__rng)) 26629: { _M_initialize(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: shuffle_order_engine(result_type __s) 26629: : _M_b(__s) 26629: { _M_initialize(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: explicit 26629: shuffle_order_engine(_Sseq& __q) 26629: : _M_b(__q) 26629: { _M_initialize(); } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: seed() 26629: { 26629: _M_b.seed(); 26629: _M_initialize(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: seed(result_type __s) 26629: { 26629: _M_b.seed(__s); 26629: _M_initialize(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: _If_seed_seq<_Sseq> 26629: seed(_Sseq& __q) 26629: { 26629: _M_b.seed(__q); 26629: _M_initialize(); 26629: } 26629: 26629: 26629: 26629: 26629: const _RandomNumberEngine& 26629: base() const noexcept 26629: { return _M_b; } 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: min() 26629: { return _RandomNumberEngine::min(); } 26629: 26629: 26629: 26629: 26629: static constexpr result_type 26629: max() 26629: { return _RandomNumberEngine::max(); } 26629: 26629: 26629: 26629: 26629: void 26629: discard(unsigned long long __z) 26629: { 26629: for (; __z != 0ULL; --__z) 26629: (*this)(); 26629: } 26629: 26629: 26629: 26629: 26629: result_type 26629: operator()(); 26629: # 1480 "/usr/include/c++/12/bits/random.h" 3 26629: friend bool 26629: operator==(const shuffle_order_engine& __lhs, 26629: const shuffle_order_engine& __rhs) 26629: { return (__lhs._M_b == __rhs._M_b 26629: && std::equal(__lhs._M_v, __lhs._M_v + __k, __rhs._M_v) 26629: && __lhs._M_y == __rhs._M_y); } 26629: # 1498 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::shuffle_order_engine<_RandomNumberEngine1, 26629: __k1>& __x); 26629: # 1516 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::shuffle_order_engine<_RandomNumberEngine1, __k1>& __x); 26629: 26629: private: 26629: void _M_initialize() 26629: { 26629: for (size_t __i = 0; __i < __k; ++__i) 26629: _M_v[__i] = _M_b(); 26629: _M_y = _M_b(); 26629: } 26629: 26629: _RandomNumberEngine _M_b; 26629: result_type _M_v[__k]; 26629: result_type _M_y; 26629: }; 26629: # 1546 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: inline bool 26629: operator!=(const std::shuffle_order_engine<_RandomNumberEngine, 26629: __k>& __lhs, 26629: const std::shuffle_order_engine<_RandomNumberEngine, 26629: __k>& __rhs) 26629: { return !(__lhs == __rhs); } 26629: 26629: 26629: 26629: 26629: 26629: typedef linear_congruential_engine 26629: minstd_rand0; 26629: 26629: 26629: 26629: 26629: typedef linear_congruential_engine 26629: minstd_rand; 26629: # 1575 "/usr/include/c++/12/bits/random.h" 3 26629: typedef mersenne_twister_engine< 26629: uint_fast32_t, 26629: 32, 624, 397, 31, 26629: 0x9908b0dfUL, 11, 26629: 0xffffffffUL, 7, 26629: 0x9d2c5680UL, 15, 26629: 0xefc60000UL, 18, 1812433253UL> mt19937; 26629: 26629: 26629: 26629: 26629: typedef mersenne_twister_engine< 26629: uint_fast64_t, 26629: 64, 312, 156, 31, 26629: 0xb5026f5aa96619e9ULL, 29, 26629: 0x5555555555555555ULL, 17, 26629: 0x71d67fffeda60000ULL, 37, 26629: 0xfff7eee000000000ULL, 43, 26629: 6364136223846793005ULL> mt19937_64; 26629: 26629: typedef subtract_with_carry_engine 26629: ranlux24_base; 26629: 26629: typedef subtract_with_carry_engine 26629: ranlux48_base; 26629: 26629: typedef discard_block_engine ranlux24; 26629: 26629: typedef discard_block_engine ranlux48; 26629: 26629: typedef shuffle_order_engine knuth_b; 26629: 26629: typedef minstd_rand0 default_random_engine; 26629: 26629: 26629: 26629: 26629: 26629: class random_device 26629: { 26629: public: 26629: 26629: typedef unsigned int result_type; 26629: 26629: 26629: 26629: random_device() { _M_init("default"); } 26629: 26629: explicit 26629: random_device(const std::string& __token) { _M_init(__token); } 26629: 26629: 26629: ~random_device() 26629: { _M_fini(); } 26629: 26629: 26629: static constexpr result_type 26629: min() 26629: { return std::numeric_limits::min(); } 26629: 26629: static constexpr result_type 26629: max() 26629: { return std::numeric_limits::max(); } 26629: 26629: double 26629: entropy() const noexcept 26629: { 26629: 26629: return this->_M_getentropy(); 26629: 26629: 26629: 26629: } 26629: 26629: result_type 26629: operator()() 26629: { return this->_M_getval(); } 26629: 26629: 26629: random_device(const random_device&) = delete; 26629: void operator=(const random_device&) = delete; 26629: 26629: private: 26629: 26629: void _M_init(const std::string& __token); 26629: void _M_init_pretr1(const std::string& __token); 26629: void _M_fini(); 26629: 26629: result_type _M_getval(); 26629: result_type _M_getval_pretr1(); 26629: double _M_getentropy() const noexcept; 26629: 26629: void _M_init(const char*, size_t); 26629: 26629: __extension__ union 26629: { 26629: struct 26629: { 26629: void* _M_file; 26629: result_type (*_M_func)(void*); 26629: int _M_fd; 26629: }; 26629: mt19937 _M_mt; 26629: }; 26629: }; 26629: # 1701 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: inline bool 26629: operator!=(const std::uniform_int_distribution<_IntType>& __d1, 26629: const std::uniform_int_distribution<_IntType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 1717 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>&, 26629: const std::uniform_int_distribution<_IntType>&); 26629: # 1731 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>&, 26629: std::uniform_int_distribution<_IntType>&); 26629: # 1744 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class uniform_real_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef uniform_real_distribution<_RealType> distribution_type; 26629: 26629: param_type() : param_type(0) { } 26629: 26629: explicit 26629: param_type(_RealType __a, _RealType __b = _RealType(1)) 26629: : _M_a(__a), _M_b(__b) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: result_type 26629: a() const 26629: { return _M_a; } 26629: 26629: result_type 26629: b() const 26629: { return _M_b; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _RealType _M_a; 26629: _RealType _M_b; 26629: }; 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: uniform_real_distribution() : uniform_real_distribution(0.0) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: uniform_real_distribution(_RealType __a, _RealType __b = _RealType(1)) 26629: : _M_param(__a, __b) 26629: { } 26629: 26629: explicit 26629: uniform_real_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: reset() { } 26629: 26629: result_type 26629: a() const 26629: { return _M_param.a(); } 26629: 26629: result_type 26629: b() const 26629: { return _M_param.b(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return this->a(); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return this->b(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: return (__aurng() * (__p.b() - __p.a())) + __p.a(); 26629: } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const uniform_real_distribution& __d1, 26629: const uniform_real_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::uniform_real_distribution<_IntType>& __d1, 26629: const std::uniform_real_distribution<_IntType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 1938 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>&, 26629: const std::uniform_real_distribution<_RealType>&); 26629: # 1952 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>&, 26629: std::uniform_real_distribution<_RealType>&); 26629: # 1974 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class normal_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef normal_distribution<_RealType> distribution_type; 26629: 26629: param_type() : param_type(0.0) { } 26629: 26629: explicit 26629: param_type(_RealType __mean, _RealType __stddev = _RealType(1)) 26629: : _M_mean(__mean), _M_stddev(__stddev) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_stddev > _RealType(0))) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: _RealType 26629: mean() const 26629: { return _M_mean; } 26629: 26629: _RealType 26629: stddev() const 26629: { return _M_stddev; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return (__p1._M_mean == __p2._M_mean 26629: && __p1._M_stddev == __p2._M_stddev); } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _RealType _M_mean; 26629: _RealType _M_stddev; 26629: }; 26629: 26629: public: 26629: normal_distribution() : normal_distribution(0.0) { } 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: normal_distribution(result_type __mean, 26629: result_type __stddev = result_type(1)) 26629: : _M_param(__mean, __stddev) 26629: { } 26629: 26629: explicit 26629: normal_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { _M_saved_available = false; } 26629: 26629: 26629: 26629: 26629: _RealType 26629: mean() const 26629: { return _M_param.mean(); } 26629: 26629: 26629: 26629: 26629: _RealType 26629: stddev() const 26629: { return _M_param.stddev(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return std::numeric_limits::lowest(); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: friend bool 26629: operator==(const std::normal_distribution<_RealType1>& __d1, 26629: const std::normal_distribution<_RealType1>& __d2); 26629: # 2143 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::normal_distribution<_RealType1>& __x); 26629: # 2158 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::normal_distribution<_RealType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: result_type _M_saved = 0; 26629: bool _M_saved_available = false; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::normal_distribution<_RealType>& __d1, 26629: const std::normal_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 2195 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class lognormal_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef lognormal_distribution<_RealType> distribution_type; 26629: 26629: param_type() : param_type(0.0) { } 26629: 26629: explicit 26629: param_type(_RealType __m, _RealType __s = _RealType(1)) 26629: : _M_m(__m), _M_s(__s) 26629: { } 26629: 26629: _RealType 26629: m() const 26629: { return _M_m; } 26629: 26629: _RealType 26629: s() const 26629: { return _M_s; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_m == __p2._M_m && __p1._M_s == __p2._M_s; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _RealType _M_m; 26629: _RealType _M_s; 26629: }; 26629: 26629: lognormal_distribution() : lognormal_distribution(0.0) { } 26629: 26629: explicit 26629: lognormal_distribution(_RealType __m, _RealType __s = _RealType(1)) 26629: : _M_param(__m, __s), _M_nd() 26629: { } 26629: 26629: explicit 26629: lognormal_distribution(const param_type& __p) 26629: : _M_param(__p), _M_nd() 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { _M_nd.reset(); } 26629: 26629: 26629: 26629: 26629: _RealType 26629: m() const 26629: { return _M_param.m(); } 26629: 26629: _RealType 26629: s() const 26629: { return _M_param.s(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return result_type(0); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { return std::exp(__p.s() * _M_nd(__urng) + __p.m()); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const lognormal_distribution& __d1, 26629: const lognormal_distribution& __d2) 26629: { return (__d1._M_param == __d2._M_param 26629: && __d1._M_nd == __d2._M_nd); } 26629: # 2354 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::lognormal_distribution<_RealType1>& __x); 26629: # 2369 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::lognormal_distribution<_RealType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: 26629: std::normal_distribution _M_nd; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::lognormal_distribution<_RealType>& __d1, 26629: const std::lognormal_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 2406 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class gamma_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef gamma_distribution<_RealType> distribution_type; 26629: friend class gamma_distribution<_RealType>; 26629: 26629: param_type() : param_type(1.0) { } 26629: 26629: explicit 26629: param_type(_RealType __alpha_val, _RealType __beta_val = _RealType(1)) 26629: : _M_alpha(__alpha_val), _M_beta(__beta_val) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_alpha > _RealType(0))) __builtin_unreachable(); } while (false); 26629: _M_initialize(); 26629: } 26629: 26629: _RealType 26629: alpha() const 26629: { return _M_alpha; } 26629: 26629: _RealType 26629: beta() const 26629: { return _M_beta; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return (__p1._M_alpha == __p2._M_alpha 26629: && __p1._M_beta == __p2._M_beta); } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: void 26629: _M_initialize(); 26629: 26629: _RealType _M_alpha; 26629: _RealType _M_beta; 26629: 26629: _RealType _M_malpha, _M_a2; 26629: }; 26629: 26629: public: 26629: 26629: 26629: 26629: gamma_distribution() : gamma_distribution(1.0) { } 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: gamma_distribution(_RealType __alpha_val, 26629: _RealType __beta_val = _RealType(1)) 26629: : _M_param(__alpha_val, __beta_val), _M_nd() 26629: { } 26629: 26629: explicit 26629: gamma_distribution(const param_type& __p) 26629: : _M_param(__p), _M_nd() 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { _M_nd.reset(); } 26629: 26629: 26629: 26629: 26629: _RealType 26629: alpha() const 26629: { return _M_param.alpha(); } 26629: 26629: 26629: 26629: 26629: _RealType 26629: beta() const 26629: { return _M_param.beta(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return result_type(0); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const gamma_distribution& __d1, 26629: const gamma_distribution& __d2) 26629: { return (__d1._M_param == __d2._M_param 26629: && __d1._M_nd == __d2._M_nd); } 26629: # 2586 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::gamma_distribution<_RealType1>& __x); 26629: # 2600 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::gamma_distribution<_RealType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: 26629: std::normal_distribution _M_nd; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::gamma_distribution<_RealType>& __d1, 26629: const std::gamma_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 2634 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class chi_squared_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef chi_squared_distribution<_RealType> distribution_type; 26629: 26629: param_type() : param_type(1) { } 26629: 26629: explicit 26629: param_type(_RealType __n) 26629: : _M_n(__n) 26629: { } 26629: 26629: _RealType 26629: n() const 26629: { return _M_n; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_n == __p2._M_n; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _RealType _M_n; 26629: }; 26629: 26629: chi_squared_distribution() : chi_squared_distribution(1) { } 26629: 26629: explicit 26629: chi_squared_distribution(_RealType __n) 26629: : _M_param(__n), _M_gd(__n / 2) 26629: { } 26629: 26629: explicit 26629: chi_squared_distribution(const param_type& __p) 26629: : _M_param(__p), _M_gd(__p.n() / 2) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { _M_gd.reset(); } 26629: 26629: 26629: 26629: 26629: _RealType 26629: n() const 26629: { return _M_param.n(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { 26629: _M_param = __param; 26629: typedef typename std::gamma_distribution::param_type 26629: param_type; 26629: _M_gd.param(param_type{__param.n() / 2}); 26629: } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return result_type(0); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return 2 * _M_gd(__urng); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: typedef typename std::gamma_distribution::param_type 26629: param_type; 26629: return 2 * _M_gd(__urng, param_type(__p.n() / 2)); 26629: } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate_impl(__f, __t, __urng); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { typename std::gamma_distribution::param_type 26629: __p2(__p.n() / 2); 26629: this->__generate_impl(__f, __t, __urng, __p2); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate_impl(__f, __t, __urng); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { typename std::gamma_distribution::param_type 26629: __p2(__p.n() / 2); 26629: this->__generate_impl(__f, __t, __urng, __p2); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const chi_squared_distribution& __d1, 26629: const chi_squared_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 26629: # 2802 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::chi_squared_distribution<_RealType1>& __x); 26629: # 2817 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::chi_squared_distribution<_RealType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng); 26629: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const typename 26629: std::gamma_distribution::param_type& __p); 26629: 26629: param_type _M_param; 26629: 26629: std::gamma_distribution _M_gd; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::chi_squared_distribution<_RealType>& __d1, 26629: const std::chi_squared_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 2858 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class cauchy_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef cauchy_distribution<_RealType> distribution_type; 26629: 26629: param_type() : param_type(0) { } 26629: 26629: explicit 26629: param_type(_RealType __a, _RealType __b = _RealType(1)) 26629: : _M_a(__a), _M_b(__b) 26629: { } 26629: 26629: _RealType 26629: a() const 26629: { return _M_a; } 26629: 26629: _RealType 26629: b() const 26629: { return _M_b; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _RealType _M_a; 26629: _RealType _M_b; 26629: }; 26629: 26629: cauchy_distribution() : cauchy_distribution(0.0) { } 26629: 26629: explicit 26629: cauchy_distribution(_RealType __a, _RealType __b = 1.0) 26629: : _M_param(__a, __b) 26629: { } 26629: 26629: explicit 26629: cauchy_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { } 26629: 26629: 26629: 26629: 26629: _RealType 26629: a() const 26629: { return _M_param.a(); } 26629: 26629: _RealType 26629: b() const 26629: { return _M_param.b(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return std::numeric_limits::lowest(); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const cauchy_distribution& __d1, 26629: const cauchy_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::cauchy_distribution<_RealType>& __d1, 26629: const std::cauchy_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 3035 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::cauchy_distribution<_RealType>& __x); 26629: # 3050 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::cauchy_distribution<_RealType>& __x); 26629: # 3066 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class fisher_f_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef fisher_f_distribution<_RealType> distribution_type; 26629: 26629: param_type() : param_type(1) { } 26629: 26629: explicit 26629: param_type(_RealType __m, _RealType __n = _RealType(1)) 26629: : _M_m(__m), _M_n(__n) 26629: { } 26629: 26629: _RealType 26629: m() const 26629: { return _M_m; } 26629: 26629: _RealType 26629: n() const 26629: { return _M_n; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_m == __p2._M_m && __p1._M_n == __p2._M_n; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _RealType _M_m; 26629: _RealType _M_n; 26629: }; 26629: 26629: fisher_f_distribution() : fisher_f_distribution(1.0) { } 26629: 26629: explicit 26629: fisher_f_distribution(_RealType __m, 26629: _RealType __n = _RealType(1)) 26629: : _M_param(__m, __n), _M_gd_x(__m / 2), _M_gd_y(__n / 2) 26629: { } 26629: 26629: explicit 26629: fisher_f_distribution(const param_type& __p) 26629: : _M_param(__p), _M_gd_x(__p.m() / 2), _M_gd_y(__p.n() / 2) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { 26629: _M_gd_x.reset(); 26629: _M_gd_y.reset(); 26629: } 26629: 26629: 26629: 26629: 26629: _RealType 26629: m() const 26629: { return _M_param.m(); } 26629: 26629: _RealType 26629: n() const 26629: { return _M_param.n(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return result_type(0); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: typedef typename std::gamma_distribution::param_type 26629: param_type; 26629: return ((_M_gd_x(__urng, param_type(__p.m() / 2)) * n()) 26629: / (_M_gd_y(__urng, param_type(__p.n() / 2)) * m())); 26629: } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate_impl(__f, __t, __urng); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate_impl(__f, __t, __urng); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const fisher_f_distribution& __d1, 26629: const fisher_f_distribution& __d2) 26629: { return (__d1._M_param == __d2._M_param 26629: && __d1._M_gd_x == __d2._M_gd_x 26629: && __d1._M_gd_y == __d2._M_gd_y); } 26629: # 3241 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::fisher_f_distribution<_RealType1>& __x); 26629: # 3256 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::fisher_f_distribution<_RealType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng); 26629: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: 26629: std::gamma_distribution _M_gd_x, _M_gd_y; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::fisher_f_distribution<_RealType>& __d1, 26629: const std::fisher_f_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 3298 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class student_t_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef student_t_distribution<_RealType> distribution_type; 26629: 26629: param_type() : param_type(1) { } 26629: 26629: explicit 26629: param_type(_RealType __n) 26629: : _M_n(__n) 26629: { } 26629: 26629: _RealType 26629: n() const 26629: { return _M_n; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_n == __p2._M_n; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _RealType _M_n; 26629: }; 26629: 26629: student_t_distribution() : student_t_distribution(1.0) { } 26629: 26629: explicit 26629: student_t_distribution(_RealType __n) 26629: : _M_param(__n), _M_nd(), _M_gd(__n / 2, 2) 26629: { } 26629: 26629: explicit 26629: student_t_distribution(const param_type& __p) 26629: : _M_param(__p), _M_nd(), _M_gd(__p.n() / 2, 2) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { 26629: _M_nd.reset(); 26629: _M_gd.reset(); 26629: } 26629: 26629: 26629: 26629: 26629: _RealType 26629: n() const 26629: { return _M_param.n(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return std::numeric_limits::lowest(); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: typedef typename std::gamma_distribution::param_type 26629: param_type; 26629: 26629: const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2)); 26629: return _M_nd(__urng) * std::sqrt(__p.n() / __g); 26629: } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate_impl(__f, __t, __urng); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate_impl(__f, __t, __urng); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const student_t_distribution& __d1, 26629: const student_t_distribution& __d2) 26629: { return (__d1._M_param == __d2._M_param 26629: && __d1._M_nd == __d2._M_nd && __d1._M_gd == __d2._M_gd); } 26629: # 3463 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::student_t_distribution<_RealType1>& __x); 26629: # 3478 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::student_t_distribution<_RealType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng); 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: 26629: std::normal_distribution _M_nd; 26629: std::gamma_distribution _M_gd; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::student_t_distribution<_RealType>& __d1, 26629: const std::student_t_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 3526 "/usr/include/c++/12/bits/random.h" 3 26629: class bernoulli_distribution 26629: { 26629: public: 26629: 26629: typedef bool result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef bernoulli_distribution distribution_type; 26629: 26629: param_type() : param_type(0.5) { } 26629: 26629: explicit 26629: param_type(double __p) 26629: : _M_p(__p) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool((_M_p >= 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: double 26629: p() const 26629: { return _M_p; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_p == __p2._M_p; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: double _M_p; 26629: }; 26629: 26629: public: 26629: 26629: 26629: 26629: bernoulli_distribution() : bernoulli_distribution(0.5) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: bernoulli_distribution(double __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: explicit 26629: bernoulli_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: reset() { } 26629: 26629: 26629: 26629: 26629: double 26629: p() const 26629: { return _M_param.p(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return std::numeric_limits::min(); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: if ((__aurng() - __aurng.min()) 26629: < __p.p() * (__aurng.max() - __aurng.min())) 26629: return true; 26629: return false; 26629: } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const bernoulli_distribution& __d1, 26629: const bernoulli_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: inline bool 26629: operator!=(const std::bernoulli_distribution& __d1, 26629: const std::bernoulli_distribution& __d2) 26629: { return !(__d1 == __d2); } 26629: # 3709 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::bernoulli_distribution& __x); 26629: # 3723 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: inline std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::bernoulli_distribution& __x) 26629: { 26629: double __p; 26629: if (__is >> __p) 26629: __x.param(bernoulli_distribution::param_type(__p)); 26629: return __is; 26629: } 26629: # 3742 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class binomial_distribution 26629: { 26629: static_assert(std::is_integral<_IntType>::value, 26629: "result_type must be an integral type"); 26629: 26629: public: 26629: 26629: typedef _IntType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef binomial_distribution<_IntType> distribution_type; 26629: friend class binomial_distribution<_IntType>; 26629: 26629: param_type() : param_type(1) { } 26629: 26629: explicit 26629: param_type(_IntType __t, double __p = 0.5) 26629: : _M_t(__t), _M_p(__p) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool((_M_t >= _IntType(0)) && (_M_p >= 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false) 26629: 26629: ; 26629: _M_initialize(); 26629: } 26629: 26629: _IntType 26629: t() const 26629: { return _M_t; } 26629: 26629: double 26629: p() const 26629: { return _M_p; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_t == __p2._M_t && __p1._M_p == __p2._M_p; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: void 26629: _M_initialize(); 26629: 26629: _IntType _M_t; 26629: double _M_p; 26629: 26629: double _M_q; 26629: 26629: double _M_d1, _M_d2, _M_s1, _M_s2, _M_c, 26629: _M_a1, _M_a123, _M_s, _M_lf, _M_lp1p; 26629: 26629: bool _M_easy; 26629: }; 26629: 26629: 26629: 26629: binomial_distribution() : binomial_distribution(1) { } 26629: 26629: explicit 26629: binomial_distribution(_IntType __t, double __p = 0.5) 26629: : _M_param(__t, __p), _M_nd() 26629: { } 26629: 26629: explicit 26629: binomial_distribution(const param_type& __p) 26629: : _M_param(__p), _M_nd() 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { _M_nd.reset(); } 26629: 26629: 26629: 26629: 26629: _IntType 26629: t() const 26629: { return _M_param.t(); } 26629: 26629: 26629: 26629: 26629: double 26629: p() const 26629: { return _M_param.p(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return 0; } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return _M_param.t(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const binomial_distribution& __d1, 26629: const binomial_distribution& __d2) 26629: 26629: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 26629: # 3924 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::binomial_distribution<_IntType1>& __x); 26629: # 3940 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::binomial_distribution<_IntType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: result_type 26629: _M_waiting(_UniformRandomNumberGenerator& __urng, 26629: _IntType __t, double __q); 26629: 26629: param_type _M_param; 26629: 26629: 26629: std::normal_distribution _M_nd; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::binomial_distribution<_IntType>& __d1, 26629: const std::binomial_distribution<_IntType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 3982 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class geometric_distribution 26629: { 26629: static_assert(std::is_integral<_IntType>::value, 26629: "result_type must be an integral type"); 26629: 26629: public: 26629: 26629: typedef _IntType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef geometric_distribution<_IntType> distribution_type; 26629: friend class geometric_distribution<_IntType>; 26629: 26629: param_type() : param_type(0.5) { } 26629: 26629: explicit 26629: param_type(double __p) 26629: : _M_p(__p) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool((_M_p > 0.0) && (_M_p < 1.0))) __builtin_unreachable(); } while (false); 26629: _M_initialize(); 26629: } 26629: 26629: double 26629: p() const 26629: { return _M_p; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_p == __p2._M_p; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: void 26629: _M_initialize() 26629: { _M_log_1_p = std::log(1.0 - _M_p); } 26629: 26629: double _M_p; 26629: 26629: double _M_log_1_p; 26629: }; 26629: 26629: 26629: 26629: geometric_distribution() : geometric_distribution(0.5) { } 26629: 26629: explicit 26629: geometric_distribution(double __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: explicit 26629: geometric_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: reset() { } 26629: 26629: 26629: 26629: 26629: double 26629: p() const 26629: { return _M_param.p(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return 0; } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const geometric_distribution& __d1, 26629: const geometric_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::geometric_distribution<_IntType>& __d1, 26629: const std::geometric_distribution<_IntType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 4163 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::geometric_distribution<_IntType>& __x); 26629: # 4178 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::geometric_distribution<_IntType>& __x); 26629: # 4192 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class negative_binomial_distribution 26629: { 26629: static_assert(std::is_integral<_IntType>::value, 26629: "result_type must be an integral type"); 26629: 26629: public: 26629: 26629: typedef _IntType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef negative_binomial_distribution<_IntType> distribution_type; 26629: 26629: param_type() : param_type(1) { } 26629: 26629: explicit 26629: param_type(_IntType __k, double __p = 0.5) 26629: : _M_k(__k), _M_p(__p) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool((_M_k > 0) && (_M_p > 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: _IntType 26629: k() const 26629: { return _M_k; } 26629: 26629: double 26629: p() const 26629: { return _M_p; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_k == __p2._M_k && __p1._M_p == __p2._M_p; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _IntType _M_k; 26629: double _M_p; 26629: }; 26629: 26629: negative_binomial_distribution() : negative_binomial_distribution(1) { } 26629: 26629: explicit 26629: negative_binomial_distribution(_IntType __k, double __p = 0.5) 26629: : _M_param(__k, __p), _M_gd(__k, (1.0 - __p) / __p) 26629: { } 26629: 26629: explicit 26629: negative_binomial_distribution(const param_type& __p) 26629: : _M_param(__p), _M_gd(__p.k(), (1.0 - __p.p()) / __p.p()) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { _M_gd.reset(); } 26629: 26629: 26629: 26629: 26629: _IntType 26629: k() const 26629: { return _M_param.k(); } 26629: 26629: 26629: 26629: 26629: double 26629: p() const 26629: { return _M_param.p(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return result_type(0); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng); 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate_impl(__f, __t, __urng); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate_impl(__f, __t, __urng); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const negative_binomial_distribution& __d1, 26629: const negative_binomial_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 26629: # 4360 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::negative_binomial_distribution<_IntType1>& __x); 26629: # 4375 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::negative_binomial_distribution<_IntType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng); 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: 26629: std::gamma_distribution _M_gd; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::negative_binomial_distribution<_IntType>& __d1, 26629: const std::negative_binomial_distribution<_IntType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 4423 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class poisson_distribution 26629: { 26629: static_assert(std::is_integral<_IntType>::value, 26629: "result_type must be an integral type"); 26629: 26629: public: 26629: 26629: typedef _IntType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef poisson_distribution<_IntType> distribution_type; 26629: friend class poisson_distribution<_IntType>; 26629: 26629: param_type() : param_type(1.0) { } 26629: 26629: explicit 26629: param_type(double __mean) 26629: : _M_mean(__mean) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_mean > 0.0)) __builtin_unreachable(); } while (false); 26629: _M_initialize(); 26629: } 26629: 26629: double 26629: mean() const 26629: { return _M_mean; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_mean == __p2._M_mean; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: 26629: void 26629: _M_initialize(); 26629: 26629: double _M_mean; 26629: 26629: double _M_lm_thr; 26629: 26629: double _M_lfm, _M_sm, _M_d, _M_scx, _M_1cx, _M_c2b, _M_cb; 26629: 26629: }; 26629: 26629: 26629: 26629: poisson_distribution() : poisson_distribution(1.0) { } 26629: 26629: explicit 26629: poisson_distribution(double __mean) 26629: : _M_param(__mean), _M_nd() 26629: { } 26629: 26629: explicit 26629: poisson_distribution(const param_type& __p) 26629: : _M_param(__p), _M_nd() 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { _M_nd.reset(); } 26629: 26629: 26629: 26629: 26629: double 26629: mean() const 26629: { return _M_param.mean(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return 0; } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const poisson_distribution& __d1, 26629: const poisson_distribution& __d2) 26629: 26629: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 26629: # 4590 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::poisson_distribution<_IntType1>& __x); 26629: # 4605 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::poisson_distribution<_IntType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: 26629: 26629: std::normal_distribution _M_nd; 26629: }; 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::poisson_distribution<_IntType>& __d1, 26629: const std::poisson_distribution<_IntType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 4649 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class exponential_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef exponential_distribution<_RealType> distribution_type; 26629: 26629: param_type() : param_type(1.0) { } 26629: 26629: explicit 26629: param_type(_RealType __lambda) 26629: : _M_lambda(__lambda) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(_M_lambda > _RealType(0))) __builtin_unreachable(); } while (false); 26629: } 26629: 26629: _RealType 26629: lambda() const 26629: { return _M_lambda; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_lambda == __p2._M_lambda; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _RealType _M_lambda; 26629: }; 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: exponential_distribution() : exponential_distribution(1.0) { } 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: exponential_distribution(_RealType __lambda) 26629: : _M_param(__lambda) 26629: { } 26629: 26629: explicit 26629: exponential_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: reset() { } 26629: 26629: 26629: 26629: 26629: _RealType 26629: lambda() const 26629: { return _M_param.lambda(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return result_type(0); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: return -std::log(result_type(1) - __aurng()) / __p.lambda(); 26629: } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const exponential_distribution& __d1, 26629: const exponential_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::exponential_distribution<_RealType>& __d1, 26629: const std::exponential_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 4834 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::exponential_distribution<_RealType>& __x); 26629: # 4849 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::exponential_distribution<_RealType>& __x); 26629: # 4864 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class weibull_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef weibull_distribution<_RealType> distribution_type; 26629: 26629: param_type() : param_type(1.0) { } 26629: 26629: explicit 26629: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 26629: : _M_a(__a), _M_b(__b) 26629: { } 26629: 26629: _RealType 26629: a() const 26629: { return _M_a; } 26629: 26629: _RealType 26629: b() const 26629: { return _M_b; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _RealType _M_a; 26629: _RealType _M_b; 26629: }; 26629: 26629: weibull_distribution() : weibull_distribution(1.0) { } 26629: 26629: explicit 26629: weibull_distribution(_RealType __a, _RealType __b = _RealType(1)) 26629: : _M_param(__a, __b) 26629: { } 26629: 26629: explicit 26629: weibull_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { } 26629: 26629: 26629: 26629: 26629: _RealType 26629: a() const 26629: { return _M_param.a(); } 26629: 26629: 26629: 26629: 26629: _RealType 26629: b() const 26629: { return _M_param.b(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return result_type(0); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const weibull_distribution& __d1, 26629: const weibull_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::weibull_distribution<_RealType>& __d1, 26629: const std::weibull_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 5044 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::weibull_distribution<_RealType>& __x); 26629: # 5059 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::weibull_distribution<_RealType>& __x); 26629: # 5074 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class extreme_value_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef extreme_value_distribution<_RealType> distribution_type; 26629: 26629: param_type() : param_type(0.0) { } 26629: 26629: explicit 26629: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 26629: : _M_a(__a), _M_b(__b) 26629: { } 26629: 26629: _RealType 26629: a() const 26629: { return _M_a; } 26629: 26629: _RealType 26629: b() const 26629: { return _M_b; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: _RealType _M_a; 26629: _RealType _M_b; 26629: }; 26629: 26629: extreme_value_distribution() : extreme_value_distribution(0.0) { } 26629: 26629: explicit 26629: extreme_value_distribution(_RealType __a, _RealType __b = _RealType(1)) 26629: : _M_param(__a, __b) 26629: { } 26629: 26629: explicit 26629: extreme_value_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { } 26629: 26629: 26629: 26629: 26629: _RealType 26629: a() const 26629: { return _M_param.a(); } 26629: 26629: 26629: 26629: 26629: _RealType 26629: b() const 26629: { return _M_param.b(); } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return std::numeric_limits::lowest(); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { return std::numeric_limits::max(); } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const extreme_value_distribution& __d1, 26629: const extreme_value_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::extreme_value_distribution<_RealType>& __d1, 26629: const std::extreme_value_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 5254 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::extreme_value_distribution<_RealType>& __x); 26629: # 5269 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::extreme_value_distribution<_RealType>& __x); 26629: # 5281 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class discrete_distribution 26629: { 26629: static_assert(std::is_integral<_IntType>::value, 26629: "result_type must be an integral type"); 26629: 26629: public: 26629: 26629: typedef _IntType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef discrete_distribution<_IntType> distribution_type; 26629: friend class discrete_distribution<_IntType>; 26629: 26629: param_type() 26629: : _M_prob(), _M_cp() 26629: { } 26629: 26629: template 26629: param_type(_InputIterator __wbegin, 26629: _InputIterator __wend) 26629: : _M_prob(__wbegin, __wend), _M_cp() 26629: { _M_initialize(); } 26629: 26629: param_type(initializer_list __wil) 26629: : _M_prob(__wil.begin(), __wil.end()), _M_cp() 26629: { _M_initialize(); } 26629: 26629: template 26629: param_type(size_t __nw, double __xmin, double __xmax, 26629: _Func __fw); 26629: 26629: 26629: param_type(const param_type&) = default; 26629: param_type& operator=(const param_type&) = default; 26629: 26629: std::vector 26629: probabilities() const 26629: { return _M_prob.empty() ? std::vector(1, 1.0) : _M_prob; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_prob == __p2._M_prob; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: void 26629: _M_initialize(); 26629: 26629: std::vector _M_prob; 26629: std::vector _M_cp; 26629: }; 26629: 26629: discrete_distribution() 26629: : _M_param() 26629: { } 26629: 26629: template 26629: discrete_distribution(_InputIterator __wbegin, 26629: _InputIterator __wend) 26629: : _M_param(__wbegin, __wend) 26629: { } 26629: 26629: discrete_distribution(initializer_list __wl) 26629: : _M_param(__wl) 26629: { } 26629: 26629: template 26629: discrete_distribution(size_t __nw, double __xmin, double __xmax, 26629: _Func __fw) 26629: : _M_param(__nw, __xmin, __xmax, __fw) 26629: { } 26629: 26629: explicit 26629: discrete_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { } 26629: 26629: 26629: 26629: 26629: std::vector 26629: probabilities() const 26629: { 26629: return _M_param._M_prob.empty() 26629: ? std::vector(1, 1.0) : _M_param._M_prob; 26629: } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { return result_type(0); } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { 26629: return _M_param._M_prob.empty() 26629: ? result_type(0) : result_type(_M_param._M_prob.size() - 1); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const discrete_distribution& __d1, 26629: const discrete_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: # 5467 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::discrete_distribution<_IntType1>& __x); 26629: # 5483 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::discrete_distribution<_IntType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::discrete_distribution<_IntType>& __d1, 26629: const std::discrete_distribution<_IntType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 5516 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class piecewise_constant_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef piecewise_constant_distribution<_RealType> distribution_type; 26629: friend class piecewise_constant_distribution<_RealType>; 26629: 26629: param_type() 26629: : _M_int(), _M_den(), _M_cp() 26629: { } 26629: 26629: template 26629: param_type(_InputIteratorB __bfirst, 26629: _InputIteratorB __bend, 26629: _InputIteratorW __wbegin); 26629: 26629: template 26629: param_type(initializer_list<_RealType> __bi, _Func __fw); 26629: 26629: template 26629: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 26629: _Func __fw); 26629: 26629: 26629: param_type(const param_type&) = default; 26629: param_type& operator=(const param_type&) = default; 26629: 26629: std::vector<_RealType> 26629: intervals() const 26629: { 26629: if (_M_int.empty()) 26629: { 26629: std::vector<_RealType> __tmp(2); 26629: __tmp[1] = _RealType(1); 26629: return __tmp; 26629: } 26629: else 26629: return _M_int; 26629: } 26629: 26629: std::vector 26629: densities() const 26629: { return _M_den.empty() ? std::vector(1, 1.0) : _M_den; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: void 26629: _M_initialize(); 26629: 26629: std::vector<_RealType> _M_int; 26629: std::vector _M_den; 26629: std::vector _M_cp; 26629: }; 26629: 26629: piecewise_constant_distribution() 26629: : _M_param() 26629: { } 26629: 26629: template 26629: piecewise_constant_distribution(_InputIteratorB __bfirst, 26629: _InputIteratorB __bend, 26629: _InputIteratorW __wbegin) 26629: : _M_param(__bfirst, __bend, __wbegin) 26629: { } 26629: 26629: template 26629: piecewise_constant_distribution(initializer_list<_RealType> __bl, 26629: _Func __fw) 26629: : _M_param(__bl, __fw) 26629: { } 26629: 26629: template 26629: piecewise_constant_distribution(size_t __nw, 26629: _RealType __xmin, _RealType __xmax, 26629: _Func __fw) 26629: : _M_param(__nw, __xmin, __xmax, __fw) 26629: { } 26629: 26629: explicit 26629: piecewise_constant_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { } 26629: 26629: 26629: 26629: 26629: std::vector<_RealType> 26629: intervals() const 26629: { 26629: if (_M_param._M_int.empty()) 26629: { 26629: std::vector<_RealType> __tmp(2); 26629: __tmp[1] = _RealType(1); 26629: return __tmp; 26629: } 26629: else 26629: return _M_param._M_int; 26629: } 26629: 26629: 26629: 26629: 26629: std::vector 26629: densities() const 26629: { 26629: return _M_param._M_den.empty() 26629: ? std::vector(1, 1.0) : _M_param._M_den; 26629: } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { 26629: return _M_param._M_int.empty() 26629: ? result_type(0) : _M_param._M_int.front(); 26629: } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { 26629: return _M_param._M_int.empty() 26629: ? result_type(1) : _M_param._M_int.back(); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const piecewise_constant_distribution& __d1, 26629: const piecewise_constant_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: # 5738 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::piecewise_constant_distribution<_RealType1>& __x); 26629: # 5754 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::piecewise_constant_distribution<_RealType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::piecewise_constant_distribution<_RealType>& __d1, 26629: const std::piecewise_constant_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 5787 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: class piecewise_linear_distribution 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "result_type must be a floating point type"); 26629: 26629: public: 26629: 26629: typedef _RealType result_type; 26629: 26629: 26629: struct param_type 26629: { 26629: typedef piecewise_linear_distribution<_RealType> distribution_type; 26629: friend class piecewise_linear_distribution<_RealType>; 26629: 26629: param_type() 26629: : _M_int(), _M_den(), _M_cp(), _M_m() 26629: { } 26629: 26629: template 26629: param_type(_InputIteratorB __bfirst, 26629: _InputIteratorB __bend, 26629: _InputIteratorW __wbegin); 26629: 26629: template 26629: param_type(initializer_list<_RealType> __bl, _Func __fw); 26629: 26629: template 26629: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 26629: _Func __fw); 26629: 26629: 26629: param_type(const param_type&) = default; 26629: param_type& operator=(const param_type&) = default; 26629: 26629: std::vector<_RealType> 26629: intervals() const 26629: { 26629: if (_M_int.empty()) 26629: { 26629: std::vector<_RealType> __tmp(2); 26629: __tmp[1] = _RealType(1); 26629: return __tmp; 26629: } 26629: else 26629: return _M_int; 26629: } 26629: 26629: std::vector 26629: densities() const 26629: { return _M_den.empty() ? std::vector(2, 1.0) : _M_den; } 26629: 26629: friend bool 26629: operator==(const param_type& __p1, const param_type& __p2) 26629: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 26629: 26629: friend bool 26629: operator!=(const param_type& __p1, const param_type& __p2) 26629: { return !(__p1 == __p2); } 26629: 26629: private: 26629: void 26629: _M_initialize(); 26629: 26629: std::vector<_RealType> _M_int; 26629: std::vector _M_den; 26629: std::vector _M_cp; 26629: std::vector _M_m; 26629: }; 26629: 26629: piecewise_linear_distribution() 26629: : _M_param() 26629: { } 26629: 26629: template 26629: piecewise_linear_distribution(_InputIteratorB __bfirst, 26629: _InputIteratorB __bend, 26629: _InputIteratorW __wbegin) 26629: : _M_param(__bfirst, __bend, __wbegin) 26629: { } 26629: 26629: template 26629: piecewise_linear_distribution(initializer_list<_RealType> __bl, 26629: _Func __fw) 26629: : _M_param(__bl, __fw) 26629: { } 26629: 26629: template 26629: piecewise_linear_distribution(size_t __nw, 26629: _RealType __xmin, _RealType __xmax, 26629: _Func __fw) 26629: : _M_param(__nw, __xmin, __xmax, __fw) 26629: { } 26629: 26629: explicit 26629: piecewise_linear_distribution(const param_type& __p) 26629: : _M_param(__p) 26629: { } 26629: 26629: 26629: 26629: 26629: void 26629: reset() 26629: { } 26629: 26629: 26629: 26629: 26629: std::vector<_RealType> 26629: intervals() const 26629: { 26629: if (_M_param._M_int.empty()) 26629: { 26629: std::vector<_RealType> __tmp(2); 26629: __tmp[1] = _RealType(1); 26629: return __tmp; 26629: } 26629: else 26629: return _M_param._M_int; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: std::vector 26629: densities() const 26629: { 26629: return _M_param._M_den.empty() 26629: ? std::vector(2, 1.0) : _M_param._M_den; 26629: } 26629: 26629: 26629: 26629: 26629: param_type 26629: param() const 26629: { return _M_param; } 26629: 26629: 26629: 26629: 26629: 26629: void 26629: param(const param_type& __param) 26629: { _M_param = __param; } 26629: 26629: 26629: 26629: 26629: result_type 26629: min() const 26629: { 26629: return _M_param._M_int.empty() 26629: ? result_type(0) : _M_param._M_int.front(); 26629: } 26629: 26629: 26629: 26629: 26629: result_type 26629: max() const 26629: { 26629: return _M_param._M_int.empty() 26629: ? result_type(1) : _M_param._M_int.back(); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { return this->operator()(__urng, _M_param); } 26629: 26629: template 26629: result_type 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { this->__generate(__f, __t, __urng, _M_param); } 26629: 26629: template 26629: void 26629: __generate(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: template 26629: void 26629: __generate(result_type* __f, result_type* __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { this->__generate_impl(__f, __t, __urng, __p); } 26629: 26629: 26629: 26629: 26629: 26629: friend bool 26629: operator==(const piecewise_linear_distribution& __d1, 26629: const piecewise_linear_distribution& __d2) 26629: { return __d1._M_param == __d2._M_param; } 26629: # 6011 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const std::piecewise_linear_distribution<_RealType1>& __x); 26629: # 6027 "/usr/include/c++/12/bits/random.h" 3 26629: template 26629: friend std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: std::piecewise_linear_distribution<_RealType1>& __x); 26629: 26629: private: 26629: template 26629: void 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p); 26629: 26629: param_type _M_param; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const std::piecewise_linear_distribution<_RealType>& __d1, 26629: const std::piecewise_linear_distribution<_RealType>& __d2) 26629: { return !(__d1 == __d2); } 26629: # 6068 "/usr/include/c++/12/bits/random.h" 3 26629: class seed_seq 26629: { 26629: public: 26629: 26629: typedef uint_least32_t result_type; 26629: 26629: 26629: seed_seq() noexcept 26629: : _M_v() 26629: { } 26629: 26629: template>> 26629: seed_seq(std::initializer_list<_IntType> __il); 26629: 26629: template 26629: seed_seq(_InputIterator __begin, _InputIterator __end); 26629: 26629: 26629: template 26629: void 26629: generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); 26629: 26629: 26629: size_t size() const noexcept 26629: { return _M_v.size(); } 26629: 26629: template 26629: void 26629: param(_OutputIterator __dest) const 26629: { std::copy(_M_v.begin(), _M_v.end(), __dest); } 26629: 26629: 26629: seed_seq(const seed_seq&) = delete; 26629: seed_seq& operator=(const seed_seq&) = delete; 26629: 26629: private: 26629: std::vector _M_v; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 50 "/usr/include/c++/12/random" 2 3 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/opt_random.h" 1 3 26629: # 33 "/usr/include/arm-linux-gnueabihf/c++/12/bits/opt_random.h" 3 26629: 26629: # 34 "/usr/include/arm-linux-gnueabihf/c++/12/bits/opt_random.h" 3 26629: # 51 "/usr/include/c++/12/random" 2 3 26629: # 1 "/usr/include/c++/12/bits/random.tcc" 1 3 26629: # 33 "/usr/include/c++/12/bits/random.tcc" 3 26629: # 1 "/usr/include/c++/12/numeric" 1 3 26629: # 58 "/usr/include/c++/12/numeric" 3 26629: 26629: # 59 "/usr/include/c++/12/numeric" 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/stl_numeric.h" 1 3 26629: # 64 "/usr/include/c++/12/bits/stl_numeric.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 85 "/usr/include/c++/12/bits/stl_numeric.h" 3 26629: template 26629: 26629: void 26629: iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first != __last; ++__first) 26629: { 26629: *__first = __value; 26629: ++__value; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: # 131 "/usr/include/c++/12/bits/stl_numeric.h" 3 26629: template 26629: 26629: inline _Tp 26629: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) 26629: { 26629: 26629: 26629: ; 26629: 26629: for (; __first != __last; ++__first) 26629: __init = __init + *__first; 26629: return __init; 26629: } 26629: # 158 "/usr/include/c++/12/bits/stl_numeric.h" 3 26629: template 26629: 26629: inline _Tp 26629: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, 26629: _BinaryOperation __binary_op) 26629: { 26629: 26629: 26629: ; 26629: 26629: for (; __first != __last; ++__first) 26629: __init = __binary_op(__init, *__first); 26629: return __init; 26629: } 26629: # 187 "/usr/include/c++/12/bits/stl_numeric.h" 3 26629: template 26629: 26629: inline _Tp 26629: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _Tp __init) 26629: { 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first1 != __last1; ++__first1, (void)++__first2) 26629: __init = __init + (*__first1 * *__first2); 26629: return __init; 26629: } 26629: # 219 "/usr/include/c++/12/bits/stl_numeric.h" 3 26629: template 26629: 26629: inline _Tp 26629: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _Tp __init, 26629: _BinaryOperation1 __binary_op1, 26629: _BinaryOperation2 __binary_op2) 26629: { 26629: 26629: 26629: 26629: ; 26629: 26629: for (; __first1 != __last1; ++__first1, (void)++__first2) 26629: __init = __binary_op1(__init, 26629: __binary_op2(*__first1, *__first2)); 26629: return __init; 26629: } 26629: # 253 "/usr/include/c++/12/bits/stl_numeric.h" 3 26629: template 26629: 26629: _OutputIterator 26629: partial_sum(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result) 26629: { 26629: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: if (__first == __last) 26629: return __result; 26629: _ValueType __value = *__first; 26629: *__result = __value; 26629: while (++__first != __last) 26629: { 26629: __value = __value + *__first; 26629: *++__result = __value; 26629: } 26629: return ++__result; 26629: } 26629: # 294 "/usr/include/c++/12/bits/stl_numeric.h" 3 26629: template 26629: 26629: _OutputIterator 26629: partial_sum(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _BinaryOperation __binary_op) 26629: { 26629: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: if (__first == __last) 26629: return __result; 26629: _ValueType __value = *__first; 26629: *__result = __value; 26629: while (++__first != __last) 26629: { 26629: __value = __binary_op(__value, *__first); 26629: *++__result = __value; 26629: } 26629: return ++__result; 26629: } 26629: # 335 "/usr/include/c++/12/bits/stl_numeric.h" 3 26629: template 26629: 26629: _OutputIterator 26629: adjacent_difference(_InputIterator __first, 26629: _InputIterator __last, _OutputIterator __result) 26629: { 26629: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: if (__first == __last) 26629: return __result; 26629: _ValueType __value = *__first; 26629: *__result = __value; 26629: while (++__first != __last) 26629: { 26629: _ValueType __tmp = *__first; 26629: *++__result = __tmp - __value; 26629: __value = std::move(__tmp); 26629: } 26629: return ++__result; 26629: } 26629: # 378 "/usr/include/c++/12/bits/stl_numeric.h" 3 26629: template 26629: 26629: _OutputIterator 26629: adjacent_difference(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _BinaryOperation __binary_op) 26629: { 26629: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 26629: 26629: 26629: 26629: 26629: 26629: ; 26629: 26629: if (__first == __last) 26629: return __result; 26629: _ValueType __value = *__first; 26629: *__result = __value; 26629: while (++__first != __last) 26629: { 26629: _ValueType __tmp = *__first; 26629: *++__result = __binary_op(__tmp, __value); 26629: __value = std::move(__tmp); 26629: } 26629: return ++__result; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 63 "/usr/include/c++/12/numeric" 2 3 26629: # 90 "/usr/include/c++/12/numeric" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: namespace __detail 26629: { 26629: 26629: 26629: template 26629: constexpr _Res 26629: __abs_r(_Tp __val) 26629: { 26629: static_assert(sizeof(_Res) >= sizeof(_Tp), 26629: "result type must be at least as wide as the input type"); 26629: 26629: if (__val >= 0) 26629: return __val; 26629: 26629: 26629: 26629: 26629: return -static_cast<_Res>(__val); 26629: } 26629: 26629: template void __abs_r(bool) = delete; 26629: 26629: 26629: template 26629: constexpr _Tp 26629: __gcd(_Tp __m, _Tp __n) 26629: { 26629: static_assert(is_unsigned<_Tp>::value, "type must be unsigned"); 26629: 26629: if (__m == 0) 26629: return __n; 26629: if (__n == 0) 26629: return __m; 26629: 26629: const int __i = std::__countr_zero(__m); 26629: __m >>= __i; 26629: const int __j = std::__countr_zero(__n); 26629: __n >>= __j; 26629: const int __k = __i < __j ? __i : __j; 26629: 26629: while (true) 26629: { 26629: if (__m > __n) 26629: { 26629: _Tp __tmp = __m; 26629: __m = __n; 26629: __n = __tmp; 26629: } 26629: 26629: __n -= __m; 26629: 26629: if (__n == 0) 26629: return __m << __k; 26629: 26629: __n >>= std::__countr_zero(__n); 26629: } 26629: } 26629: } 26629: # 162 "/usr/include/c++/12/numeric" 3 26629: template 26629: constexpr common_type_t<_Mn, _Nn> 26629: gcd(_Mn __m, _Nn __n) noexcept 26629: { 26629: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 26629: "std::gcd arguments must be integers"); 26629: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 26629: "std::gcd arguments must not be bool"); 26629: using _Ct = common_type_t<_Mn, _Nn>; 26629: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 26629: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 26629: return __detail::__gcd>(__m2, __n2); 26629: } 26629: 26629: 26629: template 26629: constexpr common_type_t<_Mn, _Nn> 26629: lcm(_Mn __m, _Nn __n) noexcept 26629: { 26629: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 26629: "std::lcm arguments must be integers"); 26629: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 26629: "std::lcm arguments must not be bool"); 26629: using _Ct = common_type_t<_Mn, _Nn>; 26629: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 26629: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 26629: if (__m2 == 0 || __n2 == 0) 26629: return 0; 26629: _Ct __r = __m2 / __detail::__gcd>(__m2, __n2); 26629: 26629: if constexpr (is_signed_v<_Ct>) 26629: if (__is_constant_evaluated()) 26629: return __r * __n2; 26629: 26629: bool __overflow = __builtin_mul_overflow(__r, __n2, &__r); 26629: do { if (std::__is_constant_evaluated() && !bool(!__overflow)) __builtin_unreachable(); } while (false); 26629: return __r; 26629: } 26629: # 284 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: _Tp 26629: reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 26629: _BinaryOperation __binary_op) 26629: { 26629: using __ref = typename iterator_traits<_InputIterator>::reference; 26629: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, __ref>); 26629: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, _Tp&>); 26629: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, _Tp&>); 26629: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, __ref>); 26629: if constexpr (__is_random_access_iter<_InputIterator>::value) 26629: { 26629: while ((__last - __first) >= 4) 26629: { 26629: _Tp __v1 = __binary_op(__first[0], __first[1]); 26629: _Tp __v2 = __binary_op(__first[2], __first[3]); 26629: _Tp __v3 = __binary_op(__v1, __v2); 26629: __init = __binary_op(__init, __v3); 26629: __first += 4; 26629: } 26629: } 26629: for (; __first != __last; ++__first) 26629: __init = __binary_op(__init, *__first); 26629: return __init; 26629: } 26629: # 322 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: inline _Tp 26629: reduce(_InputIterator __first, _InputIterator __last, _Tp __init) 26629: { return std::reduce(__first, __last, std::move(__init), plus<>()); } 26629: # 339 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: inline typename iterator_traits<_InputIterator>::value_type 26629: reduce(_InputIterator __first, _InputIterator __last) 26629: { 26629: using value_type = typename iterator_traits<_InputIterator>::value_type; 26629: return std::reduce(__first, __last, value_type{}, plus<>()); 26629: } 26629: # 366 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: _Tp 26629: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _Tp __init, 26629: _BinaryOperation1 __binary_op1, 26629: _BinaryOperation2 __binary_op2) 26629: { 26629: if constexpr (__and_v<__is_random_access_iter<_InputIterator1>, 26629: __is_random_access_iter<_InputIterator2>>) 26629: { 26629: while ((__last1 - __first1) >= 4) 26629: { 26629: _Tp __v1 = __binary_op1(__binary_op2(__first1[0], __first2[0]), 26629: __binary_op2(__first1[1], __first2[1])); 26629: _Tp __v2 = __binary_op1(__binary_op2(__first1[2], __first2[2]), 26629: __binary_op2(__first1[3], __first2[3])); 26629: _Tp __v3 = __binary_op1(__v1, __v2); 26629: __init = __binary_op1(__init, __v3); 26629: __first1 += 4; 26629: __first2 += 4; 26629: } 26629: } 26629: for (; __first1 != __last1; ++__first1, (void) ++__first2) 26629: __init = __binary_op1(__init, __binary_op2(*__first1, *__first2)); 26629: return __init; 26629: } 26629: # 410 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: inline _Tp 26629: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 26629: _InputIterator2 __first2, _Tp __init) 26629: { 26629: return std::transform_reduce(__first1, __last1, __first2, 26629: std::move(__init), 26629: plus<>(), multiplies<>()); 26629: } 26629: # 435 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: _Tp 26629: transform_reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 26629: _BinaryOperation __binary_op, _UnaryOperation __unary_op) 26629: { 26629: if constexpr (__is_random_access_iter<_InputIterator>::value) 26629: { 26629: while ((__last - __first) >= 4) 26629: { 26629: _Tp __v1 = __binary_op(__unary_op(__first[0]), 26629: __unary_op(__first[1])); 26629: _Tp __v2 = __binary_op(__unary_op(__first[2]), 26629: __unary_op(__first[3])); 26629: _Tp __v3 = __binary_op(__v1, __v2); 26629: __init = __binary_op(__init, __v3); 26629: __first += 4; 26629: } 26629: } 26629: for (; __first != __last; ++__first) 26629: __init = __binary_op(__init, __unary_op(*__first)); 26629: return __init; 26629: } 26629: # 478 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: _OutputIterator 26629: exclusive_scan(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _Tp __init, 26629: _BinaryOperation __binary_op) 26629: { 26629: while (__first != __last) 26629: { 26629: auto __v = __init; 26629: __init = __binary_op(__init, *__first); 26629: ++__first; 26629: *__result++ = std::move(__v); 26629: } 26629: return __result; 26629: } 26629: # 513 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: inline _OutputIterator 26629: exclusive_scan(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _Tp __init) 26629: { 26629: return std::exclusive_scan(__first, __last, __result, std::move(__init), 26629: plus<>()); 26629: } 26629: # 541 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: _OutputIterator 26629: inclusive_scan(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _BinaryOperation __binary_op, 26629: _Tp __init) 26629: { 26629: for (; __first != __last; ++__first) 26629: *__result++ = __init = __binary_op(__init, *__first); 26629: return __result; 26629: } 26629: # 570 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: _OutputIterator 26629: inclusive_scan(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _BinaryOperation __binary_op) 26629: { 26629: if (__first != __last) 26629: { 26629: auto __init = *__first; 26629: *__result++ = __init; 26629: ++__first; 26629: if (__first != __last) 26629: __result = std::inclusive_scan(__first, __last, __result, 26629: __binary_op, std::move(__init)); 26629: } 26629: return __result; 26629: } 26629: # 604 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: inline _OutputIterator 26629: inclusive_scan(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result) 26629: { return std::inclusive_scan(__first, __last, __result, plus<>()); } 26629: # 631 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: _OutputIterator 26629: transform_exclusive_scan(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, _Tp __init, 26629: _BinaryOperation __binary_op, 26629: _UnaryOperation __unary_op) 26629: { 26629: while (__first != __last) 26629: { 26629: auto __v = __init; 26629: __init = __binary_op(__init, __unary_op(*__first)); 26629: ++__first; 26629: *__result++ = std::move(__v); 26629: } 26629: return __result; 26629: } 26629: # 670 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: _OutputIterator 26629: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, 26629: _BinaryOperation __binary_op, 26629: _UnaryOperation __unary_op, 26629: _Tp __init) 26629: { 26629: for (; __first != __last; ++__first) 26629: *__result++ = __init = __binary_op(__init, __unary_op(*__first)); 26629: return __result; 26629: } 26629: # 704 "/usr/include/c++/12/numeric" 3 26629: template 26629: 26629: _OutputIterator 26629: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, 26629: _BinaryOperation __binary_op, 26629: _UnaryOperation __unary_op) 26629: { 26629: if (__first != __last) 26629: { 26629: auto __init = __unary_op(*__first); 26629: *__result++ = __init; 26629: ++__first; 26629: if (__first != __last) 26629: __result = std::transform_inclusive_scan(__first, __last, __result, 26629: __binary_op, __unary_op, 26629: std::move(__init)); 26629: } 26629: return __result; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 739 "/usr/include/c++/12/numeric" 3 26629: # 1 "/usr/include/c++/12/pstl/glue_numeric_defs.h" 1 3 26629: # 15 "/usr/include/c++/12/pstl/glue_numeric_defs.h" 3 26629: namespace std 26629: { 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 26629: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 26629: _BinaryOperation __binary_op); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 26629: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 26629: typename iterator_traits<_ForwardIterator>::value_type> 26629: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 26629: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _Tp __init); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 26629: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 26629: _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, 26629: _BinaryOperation2 __binary_op2); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 26629: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 26629: _BinaryOperation __binary_op, _UnaryOperation __unary_op); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result, _Tp __init); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result, _BinaryOperation __binary_op); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: transform_exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, 26629: _UnaryOperation __unary_op); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, 26629: _Tp __init); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op); 26629: 26629: 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __d_first, _BinaryOperation op); 26629: 26629: template 26629: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 26629: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 26629: _ForwardIterator2 __d_first); 26629: 26629: } 26629: # 740 "/usr/include/c++/12/numeric" 2 3 26629: # 34 "/usr/include/c++/12/bits/random.tcc" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: namespace __detail 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: _Tp 26629: _Mod<_Tp, __m, __a, __c, false, true>:: 26629: __calc(_Tp __x) 26629: { 26629: if (__a == 1) 26629: __x %= __m; 26629: else 26629: { 26629: static const _Tp __q = __m / __a; 26629: static const _Tp __r = __m % __a; 26629: 26629: _Tp __t1 = __a * (__x % __q); 26629: _Tp __t2 = __r * (__x / __q); 26629: if (__t1 >= __t2) 26629: __x = __t1 - __t2; 26629: else 26629: __x = __m - __t2 + __t1; 26629: } 26629: 26629: if (__c != 0) 26629: { 26629: const _Tp __d = __m - __x; 26629: if (__d > __c) 26629: __x += __c; 26629: else 26629: __x = __c - __d; 26629: } 26629: return __x; 26629: } 26629: 26629: template 26629: _OutputIterator 26629: __normalize(_InputIterator __first, _InputIterator __last, 26629: _OutputIterator __result, const _Tp& __factor) 26629: { 26629: for (; __first != __last; ++__first, ++__result) 26629: *__result = *__first / __factor; 26629: return __result; 26629: } 26629: 26629: } 26629: # 116 "/usr/include/c++/12/bits/random.tcc" 3 26629: template 26629: void 26629: linear_congruential_engine<_UIntType, __a, __c, __m>:: 26629: seed(result_type __s) 26629: { 26629: if ((__detail::__mod<_UIntType, __m>(__c) == 0) 26629: && (__detail::__mod<_UIntType, __m>(__s) == 0)) 26629: _M_x = 1; 26629: else 26629: _M_x = __detail::__mod<_UIntType, __m>(__s); 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: template 26629: auto 26629: linear_congruential_engine<_UIntType, __a, __c, __m>:: 26629: seed(_Sseq& __q) 26629: -> _If_seed_seq<_Sseq> 26629: { 26629: const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits 26629: : std::__lg(__m); 26629: const _UIntType __k = (__k0 + 31) / 32; 26629: uint_least32_t __arr[__k + 3]; 26629: __q.generate(__arr + 0, __arr + __k + 3); 26629: _UIntType __factor = 1u; 26629: _UIntType __sum = 0u; 26629: for (size_t __j = 0; __j < __k; ++__j) 26629: { 26629: __sum += __arr[__j + 3] * __factor; 26629: __factor *= __detail::_Shift<_UIntType, 32>::__value; 26629: } 26629: seed(__sum); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const linear_congruential_engine<_UIntType, 26629: __a, __c, __m>& __lcr) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 26629: __os.fill(__os.widen(' ')); 26629: 26629: __os << __lcr._M_x; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: linear_congruential_engine<_UIntType, __a, __c, __m>& __lcr) 26629: { 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec); 26629: 26629: __is >> __lcr._M_x; 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: # 320 "/usr/include/c++/12/bits/random.tcc" 3 26629: template 26629: void 26629: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 26629: __s, __b, __t, __c, __l, __f>:: 26629: seed(result_type __sd) 26629: { 26629: _M_x[0] = __detail::__mod<_UIntType, 26629: __detail::_Shift<_UIntType, __w>::__value>(__sd); 26629: 26629: for (size_t __i = 1; __i < state_size; ++__i) 26629: { 26629: _UIntType __x = _M_x[__i - 1]; 26629: __x ^= __x >> (__w - 2); 26629: __x *= __f; 26629: __x += __detail::__mod<_UIntType, __n>(__i); 26629: _M_x[__i] = __detail::__mod<_UIntType, 26629: __detail::_Shift<_UIntType, __w>::__value>(__x); 26629: } 26629: _M_p = state_size; 26629: } 26629: 26629: template 26629: template 26629: auto 26629: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 26629: __s, __b, __t, __c, __l, __f>:: 26629: seed(_Sseq& __q) 26629: -> _If_seed_seq<_Sseq> 26629: { 26629: const _UIntType __upper_mask = (~_UIntType()) << __r; 26629: const size_t __k = (__w + 31) / 32; 26629: uint_least32_t __arr[__n * __k]; 26629: __q.generate(__arr + 0, __arr + __n * __k); 26629: 26629: bool __zero = true; 26629: for (size_t __i = 0; __i < state_size; ++__i) 26629: { 26629: _UIntType __factor = 1u; 26629: _UIntType __sum = 0u; 26629: for (size_t __j = 0; __j < __k; ++__j) 26629: { 26629: __sum += __arr[__k * __i + __j] * __factor; 26629: __factor *= __detail::_Shift<_UIntType, 32>::__value; 26629: } 26629: _M_x[__i] = __detail::__mod<_UIntType, 26629: __detail::_Shift<_UIntType, __w>::__value>(__sum); 26629: 26629: if (__zero) 26629: { 26629: if (__i == 0) 26629: { 26629: if ((_M_x[0] & __upper_mask) != 0u) 26629: __zero = false; 26629: } 26629: else if (_M_x[__i] != 0u) 26629: __zero = false; 26629: } 26629: } 26629: if (__zero) 26629: _M_x[0] = __detail::_Shift<_UIntType, __w - 1>::__value; 26629: _M_p = state_size; 26629: } 26629: 26629: template 26629: void 26629: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 26629: __s, __b, __t, __c, __l, __f>:: 26629: _M_gen_rand(void) 26629: { 26629: const _UIntType __upper_mask = (~_UIntType()) << __r; 26629: const _UIntType __lower_mask = ~__upper_mask; 26629: 26629: for (size_t __k = 0; __k < (__n - __m); ++__k) 26629: { 26629: _UIntType __y = ((_M_x[__k] & __upper_mask) 26629: | (_M_x[__k + 1] & __lower_mask)); 26629: _M_x[__k] = (_M_x[__k + __m] ^ (__y >> 1) 26629: ^ ((__y & 0x01) ? __a : 0)); 26629: } 26629: 26629: for (size_t __k = (__n - __m); __k < (__n - 1); ++__k) 26629: { 26629: _UIntType __y = ((_M_x[__k] & __upper_mask) 26629: | (_M_x[__k + 1] & __lower_mask)); 26629: _M_x[__k] = (_M_x[__k + (__m - __n)] ^ (__y >> 1) 26629: ^ ((__y & 0x01) ? __a : 0)); 26629: } 26629: 26629: _UIntType __y = ((_M_x[__n - 1] & __upper_mask) 26629: | (_M_x[0] & __lower_mask)); 26629: _M_x[__n - 1] = (_M_x[__m - 1] ^ (__y >> 1) 26629: ^ ((__y & 0x01) ? __a : 0)); 26629: _M_p = 0; 26629: } 26629: 26629: template 26629: void 26629: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 26629: __s, __b, __t, __c, __l, __f>:: 26629: discard(unsigned long long __z) 26629: { 26629: while (__z > state_size - _M_p) 26629: { 26629: __z -= state_size - _M_p; 26629: _M_gen_rand(); 26629: } 26629: _M_p += __z; 26629: } 26629: 26629: template 26629: typename 26629: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 26629: __s, __b, __t, __c, __l, __f>::result_type 26629: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 26629: __s, __b, __t, __c, __l, __f>:: 26629: operator()() 26629: { 26629: 26629: if (_M_p >= state_size) 26629: _M_gen_rand(); 26629: 26629: 26629: result_type __z = _M_x[_M_p++]; 26629: __z ^= (__z >> __u) & __d; 26629: __z ^= (__z << __s) & __b; 26629: __z ^= (__z << __t) & __c; 26629: __z ^= (__z >> __l); 26629: 26629: return __z; 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const mersenne_twister_engine<_UIntType, __w, __n, __m, 26629: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 26629: __os.fill(__space); 26629: 26629: for (size_t __i = 0; __i < __n; ++__i) 26629: __os << __x._M_x[__i] << __space; 26629: __os << __x._M_p; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: mersenne_twister_engine<_UIntType, __w, __n, __m, 26629: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 26629: { 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: for (size_t __i = 0; __i < __n; ++__i) 26629: __is >> __x._M_x[__i]; 26629: __is >> __x._M_p; 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: # 539 "/usr/include/c++/12/bits/random.tcc" 3 26629: template 26629: void 26629: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 26629: seed(result_type __value) 26629: { 26629: std::linear_congruential_engine 26629: __lcg(__value == 0u ? default_seed : __value); 26629: 26629: const size_t __n = (__w + 31) / 32; 26629: 26629: for (size_t __i = 0; __i < long_lag; ++__i) 26629: { 26629: _UIntType __sum = 0u; 26629: _UIntType __factor = 1u; 26629: for (size_t __j = 0; __j < __n; ++__j) 26629: { 26629: __sum += __detail::__mod::__value> 26629: (__lcg()) * __factor; 26629: __factor *= __detail::_Shift<_UIntType, 32>::__value; 26629: } 26629: _M_x[__i] = __detail::__mod<_UIntType, 26629: __detail::_Shift<_UIntType, __w>::__value>(__sum); 26629: } 26629: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 26629: _M_p = 0; 26629: } 26629: 26629: template 26629: template 26629: auto 26629: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 26629: seed(_Sseq& __q) 26629: -> _If_seed_seq<_Sseq> 26629: { 26629: const size_t __k = (__w + 31) / 32; 26629: uint_least32_t __arr[__r * __k]; 26629: __q.generate(__arr + 0, __arr + __r * __k); 26629: 26629: for (size_t __i = 0; __i < long_lag; ++__i) 26629: { 26629: _UIntType __sum = 0u; 26629: _UIntType __factor = 1u; 26629: for (size_t __j = 0; __j < __k; ++__j) 26629: { 26629: __sum += __arr[__k * __i + __j] * __factor; 26629: __factor *= __detail::_Shift<_UIntType, 32>::__value; 26629: } 26629: _M_x[__i] = __detail::__mod<_UIntType, 26629: __detail::_Shift<_UIntType, __w>::__value>(__sum); 26629: } 26629: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 26629: _M_p = 0; 26629: } 26629: 26629: template 26629: typename subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 26629: result_type 26629: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 26629: operator()() 26629: { 26629: 26629: long __ps = _M_p - short_lag; 26629: if (__ps < 0) 26629: __ps += long_lag; 26629: 26629: 26629: 26629: 26629: _UIntType __xi; 26629: if (_M_x[__ps] >= _M_x[_M_p] + _M_carry) 26629: { 26629: __xi = _M_x[__ps] - _M_x[_M_p] - _M_carry; 26629: _M_carry = 0; 26629: } 26629: else 26629: { 26629: __xi = (__detail::_Shift<_UIntType, __w>::__value 26629: - _M_x[_M_p] - _M_carry + _M_x[__ps]); 26629: _M_carry = 1; 26629: } 26629: _M_x[_M_p] = __xi; 26629: 26629: 26629: if (++_M_p >= long_lag) 26629: _M_p = 0; 26629: 26629: return __xi; 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const subtract_with_carry_engine<_UIntType, 26629: __w, __s, __r>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 26629: __os.fill(__space); 26629: 26629: for (size_t __i = 0; __i < __r; ++__i) 26629: __os << __x._M_x[__i] << __space; 26629: __os << __x._M_carry << __space << __x._M_p; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: subtract_with_carry_engine<_UIntType, __w, __s, __r>& __x) 26629: { 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: for (size_t __i = 0; __i < __r; ++__i) 26629: __is >> __x._M_x[__i]; 26629: __is >> __x._M_carry; 26629: __is >> __x._M_p; 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: # 683 "/usr/include/c++/12/bits/random.tcc" 3 26629: template 26629: typename discard_block_engine<_RandomNumberEngine, 26629: __p, __r>::result_type 26629: discard_block_engine<_RandomNumberEngine, __p, __r>:: 26629: operator()() 26629: { 26629: if (_M_n >= used_block) 26629: { 26629: _M_b.discard(block_size - _M_n); 26629: _M_n = 0; 26629: } 26629: ++_M_n; 26629: return _M_b(); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const discard_block_engine<_RandomNumberEngine, 26629: __p, __r>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 26629: __os.fill(__space); 26629: 26629: __os << __x.base() << __space << __x._M_n; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: discard_block_engine<_RandomNumberEngine, __p, __r>& __x) 26629: { 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: __is >> __x._M_b >> __x._M_n; 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: typename independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 26629: result_type 26629: independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 26629: operator()() 26629: { 26629: typedef typename _RandomNumberEngine::result_type _Eresult_type; 26629: const _Eresult_type __r 26629: = (_M_b.max() - _M_b.min() < std::numeric_limits<_Eresult_type>::max() 26629: ? _M_b.max() - _M_b.min() + 1 : 0); 26629: const unsigned __edig = std::numeric_limits<_Eresult_type>::digits; 26629: const unsigned __m = __r ? std::__lg(__r) : __edig; 26629: 26629: typedef typename std::common_type<_Eresult_type, result_type>::type 26629: __ctype; 26629: const unsigned __cdig = std::numeric_limits<__ctype>::digits; 26629: 26629: unsigned __n, __n0; 26629: __ctype __s0, __s1, __y0, __y1; 26629: 26629: for (size_t __i = 0; __i < 2; ++__i) 26629: { 26629: __n = (__w + __m - 1) / __m + __i; 26629: __n0 = __n - __w % __n; 26629: const unsigned __w0 = __w / __n; 26629: 26629: __s0 = 0; 26629: __s1 = 0; 26629: if (__w0 < __cdig) 26629: { 26629: __s0 = __ctype(1) << __w0; 26629: __s1 = __s0 << 1; 26629: } 26629: 26629: __y0 = 0; 26629: __y1 = 0; 26629: if (__r) 26629: { 26629: __y0 = __s0 * (__r / __s0); 26629: if (__s1) 26629: __y1 = __s1 * (__r / __s1); 26629: 26629: if (__r - __y0 <= __y0 / __n) 26629: break; 26629: } 26629: else 26629: break; 26629: } 26629: 26629: result_type __sum = 0; 26629: for (size_t __k = 0; __k < __n0; ++__k) 26629: { 26629: __ctype __u; 26629: do 26629: __u = _M_b() - _M_b.min(); 26629: while (__y0 && __u >= __y0); 26629: __sum = __s0 * __sum + (__s0 ? __u % __s0 : __u); 26629: } 26629: for (size_t __k = __n0; __k < __n; ++__k) 26629: { 26629: __ctype __u; 26629: do 26629: __u = _M_b() - _M_b.min(); 26629: while (__y1 && __u >= __y1); 26629: __sum = __s1 * __sum + (__s1 ? __u % __s1 : __u); 26629: } 26629: return __sum; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace __detail 26629: { 26629: 26629: template 26629: constexpr bool 26629: __representable_as_double(_Tp __x) noexcept 26629: { 26629: static_assert(numeric_limits<_Tp>::is_integer, ""); 26629: static_assert(!numeric_limits<_Tp>::is_signed, ""); 26629: 26629: return (__x <= (1ull << 53)) 26629: 26629: || (!(__x & 1) && __detail::__representable_as_double(__x >> 1)); 26629: } 26629: 26629: 26629: template 26629: constexpr bool 26629: __p1_representable_as_double(_Tp __x) noexcept 26629: { 26629: static_assert(numeric_limits<_Tp>::is_integer, ""); 26629: static_assert(!numeric_limits<_Tp>::is_signed, ""); 26629: return numeric_limits<_Tp>::digits < 53 26629: || (bool(__x + 1u) 26629: && __detail::__representable_as_double(__x + 1u)); 26629: } 26629: } 26629: 26629: template 26629: typename shuffle_order_engine<_RandomNumberEngine, __k>::result_type 26629: shuffle_order_engine<_RandomNumberEngine, __k>:: 26629: operator()() 26629: { 26629: constexpr result_type __range = max() - min(); 26629: size_t __j = __k; 26629: const result_type __y = _M_y - min(); 26629: 26629: if constexpr (__detail::__p1_representable_as_double(__range)) 26629: __j *= __y / (__range + 1.0); 26629: else 26629: __j *= __y / (__range + 1.0L); 26629: _M_y = _M_v[__j]; 26629: _M_v[__j] = _M_b(); 26629: 26629: return _M_y; 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const shuffle_order_engine<_RandomNumberEngine, __k>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 26629: __os.fill(__space); 26629: 26629: __os << __x.base(); 26629: for (size_t __i = 0; __i < __k; ++__i) 26629: __os << __space << __x._M_v[__i]; 26629: __os << __space << __x._M_y; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: shuffle_order_engine<_RandomNumberEngine, __k>& __x) 26629: { 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: __is >> __x._M_b; 26629: for (size_t __i = 0; __i < __k; ++__i) 26629: __is >> __x._M_v[__i]; 26629: __is >> __x._M_y; 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const uniform_int_distribution<_IntType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: 26629: __os << __x.a() << __space << __x.b(); 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: uniform_int_distribution<_IntType>& __x) 26629: { 26629: using param_type 26629: = typename uniform_int_distribution<_IntType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _IntType __a, __b; 26629: if (__is >> __a >> __b) 26629: __x.param(param_type(__a, __b)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: template 26629: void 26629: uniform_real_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: auto __range = __p.b() - __p.a(); 26629: while (__f != __t) 26629: *__f++ = __aurng() * __range + __p.a(); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const uniform_real_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.a() << __space << __x.b(); 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: uniform_real_distribution<_RealType>& __x) 26629: { 26629: using param_type 26629: = typename uniform_real_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::skipws); 26629: 26629: _RealType __a, __b; 26629: if (__is >> __a >> __b) 26629: __x.param(param_type(__a, __b)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: void 26629: std::bernoulli_distribution:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: auto __limit = __p.p() * (__aurng.max() - __aurng.min()); 26629: 26629: while (__f != __t) 26629: *__f++ = (__aurng() - __aurng.min()) < __limit; 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const bernoulli_distribution& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__os.widen(' ')); 26629: __os.precision(std::numeric_limits::max_digits10); 26629: 26629: __os << __x.p(); 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: 26629: template 26629: template 26629: typename geometric_distribution<_IntType>::result_type 26629: geometric_distribution<_IntType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: 26629: 26629: const double __naf = 26629: (1 - std::numeric_limits::epsilon()) / 2; 26629: 26629: const double __thr = 26629: std::numeric_limits<_IntType>::max() + __naf; 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: 26629: double __cand; 26629: do 26629: __cand = std::floor(std::log(1.0 - __aurng()) / __param._M_log_1_p); 26629: while (__cand >= __thr); 26629: 26629: return result_type(__cand + __naf); 26629: } 26629: 26629: template 26629: template 26629: void 26629: geometric_distribution<_IntType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: 26629: 26629: 26629: const double __naf = 26629: (1 - std::numeric_limits::epsilon()) / 2; 26629: 26629: const double __thr = 26629: std::numeric_limits<_IntType>::max() + __naf; 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: 26629: while (__f != __t) 26629: { 26629: double __cand; 26629: do 26629: __cand = std::floor(std::log(1.0 - __aurng()) 26629: / __param._M_log_1_p); 26629: while (__cand >= __thr); 26629: 26629: *__f++ = __cand + __naf; 26629: } 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const geometric_distribution<_IntType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__os.widen(' ')); 26629: __os.precision(std::numeric_limits::max_digits10); 26629: 26629: __os << __x.p(); 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: geometric_distribution<_IntType>& __x) 26629: { 26629: using param_type = typename geometric_distribution<_IntType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::skipws); 26629: 26629: double __p; 26629: if (__is >> __p) 26629: __x.param(param_type(__p)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: template 26629: typename negative_binomial_distribution<_IntType>::result_type 26629: negative_binomial_distribution<_IntType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng) 26629: { 26629: const double __y = _M_gd(__urng); 26629: 26629: 26629: std::poisson_distribution __poisson(__y); 26629: return __poisson(__urng); 26629: } 26629: 26629: template 26629: template 26629: typename negative_binomial_distribution<_IntType>::result_type 26629: negative_binomial_distribution<_IntType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: typedef typename std::gamma_distribution::param_type 26629: param_type; 26629: 26629: const double __y = 26629: _M_gd(__urng, param_type(__p.k(), (1.0 - __p.p()) / __p.p())); 26629: 26629: std::poisson_distribution __poisson(__y); 26629: return __poisson(__urng); 26629: } 26629: 26629: template 26629: template 26629: void 26629: negative_binomial_distribution<_IntType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { 26629: 26629: while (__f != __t) 26629: { 26629: const double __y = _M_gd(__urng); 26629: 26629: 26629: std::poisson_distribution __poisson(__y); 26629: *__f++ = __poisson(__urng); 26629: } 26629: } 26629: 26629: template 26629: template 26629: void 26629: negative_binomial_distribution<_IntType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: 26629: typename std::gamma_distribution::param_type 26629: __p2(__p.k(), (1.0 - __p.p()) / __p.p()); 26629: 26629: while (__f != __t) 26629: { 26629: const double __y = _M_gd(__urng, __p2); 26629: 26629: std::poisson_distribution __poisson(__y); 26629: *__f++ = __poisson(__urng); 26629: } 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const negative_binomial_distribution<_IntType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__os.widen(' ')); 26629: __os.precision(std::numeric_limits::max_digits10); 26629: 26629: __os << __x.k() << __space << __x.p() 26629: << __space << __x._M_gd; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: negative_binomial_distribution<_IntType>& __x) 26629: { 26629: using param_type 26629: = typename negative_binomial_distribution<_IntType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::skipws); 26629: 26629: _IntType __k; 26629: double __p; 26629: if (__is >> __k >> __p >> __x._M_gd) 26629: __x.param(param_type(__k, __p)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: void 26629: poisson_distribution<_IntType>::param_type:: 26629: _M_initialize() 26629: { 26629: 26629: if (_M_mean >= 12) 26629: { 26629: const double __m = std::floor(_M_mean); 26629: _M_lm_thr = std::log(_M_mean); 26629: _M_lfm = std::lgamma(__m + 1); 26629: _M_sm = std::sqrt(__m); 26629: 26629: const double __pi_4 = 0.7853981633974483096156608458198757L; 26629: const double __dx = std::sqrt(2 * __m * std::log(32 * __m 26629: / __pi_4)); 26629: _M_d = std::round(std::max(6.0, std::min(__m, __dx))); 26629: const double __cx = 2 * __m + _M_d; 26629: _M_scx = std::sqrt(__cx / 2); 26629: _M_1cx = 1 / __cx; 26629: 26629: _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); 26629: _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) 26629: / _M_d; 26629: } 26629: else 26629: 26629: _M_lm_thr = std::exp(-_M_mean); 26629: } 26629: # 1305 "/usr/include/c++/12/bits/random.tcc" 3 26629: template 26629: template 26629: typename poisson_distribution<_IntType>::result_type 26629: poisson_distribution<_IntType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: 26629: if (__param.mean() >= 12) 26629: { 26629: double __x; 26629: 26629: 26629: const double __naf = 26629: (1 - std::numeric_limits::epsilon()) / 2; 26629: const double __thr = 26629: std::numeric_limits<_IntType>::max() + __naf; 26629: 26629: const double __m = std::floor(__param.mean()); 26629: 26629: const double __spi_2 = 1.2533141373155002512078826424055226L; 26629: const double __c1 = __param._M_sm * __spi_2; 26629: const double __c2 = __param._M_c2b + __c1; 26629: const double __c3 = __c2 + 1; 26629: const double __c4 = __c3 + 1; 26629: 26629: const double __178 = 0.0128205128205128205128205128205128L; 26629: 26629: const double __e178 = 1.0129030479320018583185514777512983L; 26629: const double __c5 = __c4 + __e178; 26629: const double __c = __param._M_cb + __c5; 26629: const double __2cx = 2 * (2 * __m + __param._M_d); 26629: 26629: bool __reject = true; 26629: do 26629: { 26629: const double __u = __c * __aurng(); 26629: const double __e = -std::log(1.0 - __aurng()); 26629: 26629: double __w = 0.0; 26629: 26629: if (__u <= __c1) 26629: { 26629: const double __n = _M_nd(__urng); 26629: const double __y = -std::abs(__n) * __param._M_sm - 1; 26629: __x = std::floor(__y); 26629: __w = -__n * __n / 2; 26629: if (__x < -__m) 26629: continue; 26629: } 26629: else if (__u <= __c2) 26629: { 26629: const double __n = _M_nd(__urng); 26629: const double __y = 1 + std::abs(__n) * __param._M_scx; 26629: __x = std::ceil(__y); 26629: __w = __y * (2 - __y) * __param._M_1cx; 26629: if (__x > __param._M_d) 26629: continue; 26629: } 26629: else if (__u <= __c3) 26629: 26629: 26629: __x = -1; 26629: else if (__u <= __c4) 26629: __x = 0; 26629: else if (__u <= __c5) 26629: { 26629: __x = 1; 26629: 26629: __w = __178; 26629: } 26629: else 26629: { 26629: const double __v = -std::log(1.0 - __aurng()); 26629: const double __y = __param._M_d 26629: + __v * __2cx / __param._M_d; 26629: __x = std::ceil(__y); 26629: __w = -__param._M_d * __param._M_1cx * (1 + __y / 2); 26629: } 26629: 26629: __reject = (__w - __e - __x * __param._M_lm_thr 26629: > __param._M_lfm - std::lgamma(__x + __m + 1)); 26629: 26629: __reject |= __x + __m >= __thr; 26629: 26629: } while (__reject); 26629: 26629: return result_type(__x + __m + __naf); 26629: } 26629: else 26629: 26629: { 26629: _IntType __x = 0; 26629: double __prod = 1.0; 26629: 26629: do 26629: { 26629: __prod *= __aurng(); 26629: __x += 1; 26629: } 26629: while (__prod > __param._M_lm_thr); 26629: 26629: return __x - 1; 26629: } 26629: } 26629: 26629: template 26629: template 26629: void 26629: poisson_distribution<_IntType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: 26629: 26629: while (__f != __t) 26629: *__f++ = this->operator()(__urng, __param); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const poisson_distribution<_IntType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits::max_digits10); 26629: 26629: __os << __x.mean() << __space << __x._M_nd; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: poisson_distribution<_IntType>& __x) 26629: { 26629: using param_type = typename poisson_distribution<_IntType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::skipws); 26629: 26629: double __mean; 26629: if (__is >> __mean >> __x._M_nd) 26629: __x.param(param_type(__mean)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: void 26629: binomial_distribution<_IntType>::param_type:: 26629: _M_initialize() 26629: { 26629: const double __p12 = _M_p <= 0.5 ? _M_p : 1.0 - _M_p; 26629: 26629: _M_easy = true; 26629: 26629: 26629: if (_M_t * __p12 >= 8) 26629: { 26629: _M_easy = false; 26629: const double __np = std::floor(_M_t * __p12); 26629: const double __pa = __np / _M_t; 26629: const double __1p = 1 - __pa; 26629: 26629: const double __pi_4 = 0.7853981633974483096156608458198757L; 26629: const double __d1x = 26629: std::sqrt(__np * __1p * std::log(32 * __np 26629: / (81 * __pi_4 * __1p))); 26629: _M_d1 = std::round(std::max(1.0, __d1x)); 26629: const double __d2x = 26629: std::sqrt(__np * __1p * std::log(32 * _M_t * __1p 26629: / (__pi_4 * __pa))); 26629: _M_d2 = std::round(std::max(1.0, __d2x)); 26629: 26629: 26629: const double __spi_2 = 1.2533141373155002512078826424055226L; 26629: _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np)); 26629: _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * _M_t * __1p)); 26629: _M_c = 2 * _M_d1 / __np; 26629: _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; 26629: const double __a12 = _M_a1 + _M_s2 * __spi_2; 26629: const double __s1s = _M_s1 * _M_s1; 26629: _M_a123 = __a12 + (std::exp(_M_d1 / (_M_t * __1p)) 26629: * 2 * __s1s / _M_d1 26629: * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); 26629: const double __s2s = _M_s2 * _M_s2; 26629: _M_s = (_M_a123 + 2 * __s2s / _M_d2 26629: * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); 26629: _M_lf = (std::lgamma(__np + 1) 26629: + std::lgamma(_M_t - __np + 1)); 26629: _M_lp1p = std::log(__pa / __1p); 26629: 26629: _M_q = -std::log(1 - (__p12 - __pa) / __1p); 26629: } 26629: else 26629: 26629: _M_q = -std::log(1 - __p12); 26629: } 26629: 26629: template 26629: template 26629: typename binomial_distribution<_IntType>::result_type 26629: binomial_distribution<_IntType>:: 26629: _M_waiting(_UniformRandomNumberGenerator& __urng, 26629: _IntType __t, double __q) 26629: { 26629: _IntType __x = 0; 26629: double __sum = 0.0; 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: 26629: do 26629: { 26629: if (__t == __x) 26629: return __x; 26629: const double __e = -std::log(1.0 - __aurng()); 26629: __sum += __e / (__t - __x); 26629: __x += 1; 26629: } 26629: while (__sum <= __q); 26629: 26629: return __x - 1; 26629: } 26629: # 1560 "/usr/include/c++/12/bits/random.tcc" 3 26629: template 26629: template 26629: typename binomial_distribution<_IntType>::result_type 26629: binomial_distribution<_IntType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: result_type __ret; 26629: const _IntType __t = __param.t(); 26629: const double __p = __param.p(); 26629: const double __p12 = __p <= 0.5 ? __p : 1.0 - __p; 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: 26629: 26629: if (!__param._M_easy) 26629: { 26629: double __x; 26629: 26629: 26629: const double __naf = 26629: (1 - std::numeric_limits::epsilon()) / 2; 26629: const double __thr = 26629: std::numeric_limits<_IntType>::max() + __naf; 26629: 26629: const double __np = std::floor(__t * __p12); 26629: 26629: 26629: const double __spi_2 = 1.2533141373155002512078826424055226L; 26629: const double __a1 = __param._M_a1; 26629: const double __a12 = __a1 + __param._M_s2 * __spi_2; 26629: const double __a123 = __param._M_a123; 26629: const double __s1s = __param._M_s1 * __param._M_s1; 26629: const double __s2s = __param._M_s2 * __param._M_s2; 26629: 26629: bool __reject; 26629: do 26629: { 26629: const double __u = __param._M_s * __aurng(); 26629: 26629: double __v; 26629: 26629: if (__u <= __a1) 26629: { 26629: const double __n = _M_nd(__urng); 26629: const double __y = __param._M_s1 * std::abs(__n); 26629: __reject = __y >= __param._M_d1; 26629: if (!__reject) 26629: { 26629: const double __e = -std::log(1.0 - __aurng()); 26629: __x = std::floor(__y); 26629: __v = -__e - __n * __n / 2 + __param._M_c; 26629: } 26629: } 26629: else if (__u <= __a12) 26629: { 26629: const double __n = _M_nd(__urng); 26629: const double __y = __param._M_s2 * std::abs(__n); 26629: __reject = __y >= __param._M_d2; 26629: if (!__reject) 26629: { 26629: const double __e = -std::log(1.0 - __aurng()); 26629: __x = std::floor(-__y); 26629: __v = -__e - __n * __n / 2; 26629: } 26629: } 26629: else if (__u <= __a123) 26629: { 26629: const double __e1 = -std::log(1.0 - __aurng()); 26629: const double __e2 = -std::log(1.0 - __aurng()); 26629: 26629: const double __y = __param._M_d1 26629: + 2 * __s1s * __e1 / __param._M_d1; 26629: __x = std::floor(__y); 26629: __v = (-__e2 + __param._M_d1 * (1 / (__t - __np) 26629: -__y / (2 * __s1s))); 26629: __reject = false; 26629: } 26629: else 26629: { 26629: const double __e1 = -std::log(1.0 - __aurng()); 26629: const double __e2 = -std::log(1.0 - __aurng()); 26629: 26629: const double __y = __param._M_d2 26629: + 2 * __s2s * __e1 / __param._M_d2; 26629: __x = std::floor(-__y); 26629: __v = -__e2 - __param._M_d2 * __y / (2 * __s2s); 26629: __reject = false; 26629: } 26629: 26629: __reject = __reject || __x < -__np || __x > __t - __np; 26629: if (!__reject) 26629: { 26629: const double __lfx = 26629: std::lgamma(__np + __x + 1) 26629: + std::lgamma(__t - (__np + __x) + 1); 26629: __reject = __v > __param._M_lf - __lfx 26629: + __x * __param._M_lp1p; 26629: } 26629: 26629: __reject |= __x + __np >= __thr; 26629: } 26629: while (__reject); 26629: 26629: __x += __np + __naf; 26629: 26629: const _IntType __z = _M_waiting(__urng, __t - _IntType(__x), 26629: __param._M_q); 26629: __ret = _IntType(__x) + __z; 26629: } 26629: else 26629: 26629: __ret = _M_waiting(__urng, __t, __param._M_q); 26629: 26629: if (__p12 != __p) 26629: __ret = __t - __ret; 26629: return __ret; 26629: } 26629: 26629: template 26629: template 26629: void 26629: binomial_distribution<_IntType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: 26629: 26629: while (__f != __t) 26629: *__f++ = this->operator()(__urng, __param); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const binomial_distribution<_IntType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits::max_digits10); 26629: 26629: __os << __x.t() << __space << __x.p() 26629: << __space << __x._M_nd; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: binomial_distribution<_IntType>& __x) 26629: { 26629: using param_type = typename binomial_distribution<_IntType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _IntType __t; 26629: double __p; 26629: if (__is >> __t >> __p >> __x._M_nd) 26629: __x.param(param_type(__t, __p)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: template 26629: void 26629: std::exponential_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: while (__f != __t) 26629: *__f++ = -std::log(result_type(1) - __aurng()) / __p.lambda(); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const exponential_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__os.widen(' ')); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.lambda(); 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: exponential_distribution<_RealType>& __x) 26629: { 26629: using param_type 26629: = typename exponential_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _RealType __lambda; 26629: if (__is >> __lambda) 26629: __x.param(param_type(__lambda)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: # 1806 "/usr/include/c++/12/bits/random.tcc" 3 26629: template 26629: template 26629: typename normal_distribution<_RealType>::result_type 26629: normal_distribution<_RealType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: result_type __ret; 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: 26629: if (_M_saved_available) 26629: { 26629: _M_saved_available = false; 26629: __ret = _M_saved; 26629: } 26629: else 26629: { 26629: result_type __x, __y, __r2; 26629: do 26629: { 26629: __x = result_type(2.0) * __aurng() - 1.0; 26629: __y = result_type(2.0) * __aurng() - 1.0; 26629: __r2 = __x * __x + __y * __y; 26629: } 26629: while (__r2 > 1.0 || __r2 == 0.0); 26629: 26629: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 26629: _M_saved = __x * __mult; 26629: _M_saved_available = true; 26629: __ret = __y * __mult; 26629: } 26629: 26629: __ret = __ret * __param.stddev() + __param.mean(); 26629: return __ret; 26629: } 26629: 26629: template 26629: template 26629: void 26629: normal_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: 26629: 26629: if (__f == __t) 26629: return; 26629: 26629: if (_M_saved_available) 26629: { 26629: _M_saved_available = false; 26629: *__f++ = _M_saved * __param.stddev() + __param.mean(); 26629: 26629: if (__f == __t) 26629: return; 26629: } 26629: 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: 26629: while (__f + 1 < __t) 26629: { 26629: result_type __x, __y, __r2; 26629: do 26629: { 26629: __x = result_type(2.0) * __aurng() - 1.0; 26629: __y = result_type(2.0) * __aurng() - 1.0; 26629: __r2 = __x * __x + __y * __y; 26629: } 26629: while (__r2 > 1.0 || __r2 == 0.0); 26629: 26629: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 26629: *__f++ = __y * __mult * __param.stddev() + __param.mean(); 26629: *__f++ = __x * __mult * __param.stddev() + __param.mean(); 26629: } 26629: 26629: if (__f != __t) 26629: { 26629: result_type __x, __y, __r2; 26629: do 26629: { 26629: __x = result_type(2.0) * __aurng() - 1.0; 26629: __y = result_type(2.0) * __aurng() - 1.0; 26629: __r2 = __x * __x + __y * __y; 26629: } 26629: while (__r2 > 1.0 || __r2 == 0.0); 26629: 26629: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 26629: _M_saved = __x * __mult; 26629: _M_saved_available = true; 26629: *__f = __y * __mult * __param.stddev() + __param.mean(); 26629: } 26629: } 26629: 26629: template 26629: bool 26629: operator==(const std::normal_distribution<_RealType>& __d1, 26629: const std::normal_distribution<_RealType>& __d2) 26629: { 26629: if (__d1._M_param == __d2._M_param 26629: && __d1._M_saved_available == __d2._M_saved_available) 26629: { 26629: if (__d1._M_saved_available 26629: && __d1._M_saved == __d2._M_saved) 26629: return true; 26629: else if(!__d1._M_saved_available) 26629: return true; 26629: else 26629: return false; 26629: } 26629: else 26629: return false; 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const normal_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.mean() << __space << __x.stddev() 26629: << __space << __x._M_saved_available; 26629: if (__x._M_saved_available) 26629: __os << __space << __x._M_saved; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: normal_distribution<_RealType>& __x) 26629: { 26629: using param_type = typename normal_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: double __mean, __stddev; 26629: bool __saved_avail; 26629: if (__is >> __mean >> __stddev >> __saved_avail) 26629: { 26629: if (!__saved_avail || (__is >> __x._M_saved)) 26629: { 26629: __x._M_saved_available = __saved_avail; 26629: __x.param(param_type(__mean, __stddev)); 26629: } 26629: } 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: template 26629: void 26629: lognormal_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: 26629: while (__f != __t) 26629: *__f++ = std::exp(__p.s() * _M_nd(__urng) + __p.m()); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const lognormal_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.m() << __space << __x.s() 26629: << __space << __x._M_nd; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: lognormal_distribution<_RealType>& __x) 26629: { 26629: using param_type 26629: = typename lognormal_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _RealType __m, __s; 26629: if (__is >> __m >> __s >> __x._M_nd) 26629: __x.param(param_type(__m, __s)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: template 26629: template 26629: void 26629: std::chi_squared_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { 26629: 26629: while (__f != __t) 26629: *__f++ = 2 * _M_gd(__urng); 26629: } 26629: 26629: template 26629: template 26629: void 26629: std::chi_squared_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const typename 26629: std::gamma_distribution::param_type& __p) 26629: { 26629: 26629: while (__f != __t) 26629: *__f++ = 2 * _M_gd(__urng, __p); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const chi_squared_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.n() << __space << __x._M_gd; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: chi_squared_distribution<_RealType>& __x) 26629: { 26629: using param_type 26629: = typename chi_squared_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _RealType __n; 26629: if (__is >> __n >> __x._M_gd) 26629: __x.param(param_type(__n)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: template 26629: typename cauchy_distribution<_RealType>::result_type 26629: cauchy_distribution<_RealType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: _RealType __u; 26629: do 26629: __u = __aurng(); 26629: while (__u == 0.5); 26629: 26629: const _RealType __pi = 3.1415926535897932384626433832795029L; 26629: return __p.a() + __p.b() * std::tan(__pi * __u); 26629: } 26629: 26629: template 26629: template 26629: void 26629: cauchy_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: 26629: const _RealType __pi = 3.1415926535897932384626433832795029L; 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: while (__f != __t) 26629: { 26629: _RealType __u; 26629: do 26629: __u = __aurng(); 26629: while (__u == 0.5); 26629: 26629: *__f++ = __p.a() + __p.b() * std::tan(__pi * __u); 26629: } 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const cauchy_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.a() << __space << __x.b(); 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: cauchy_distribution<_RealType>& __x) 26629: { 26629: using param_type = typename cauchy_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _RealType __a, __b; 26629: if (__is >> __a >> __b) 26629: __x.param(param_type(__a, __b)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: template 26629: void 26629: std::fisher_f_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { 26629: 26629: while (__f != __t) 26629: *__f++ = ((_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m())); 26629: } 26629: 26629: template 26629: template 26629: void 26629: std::fisher_f_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: 26629: typedef typename std::gamma_distribution::param_type 26629: param_type; 26629: param_type __p1(__p.m() / 2); 26629: param_type __p2(__p.n() / 2); 26629: while (__f != __t) 26629: *__f++ = ((_M_gd_x(__urng, __p1) * n()) 26629: / (_M_gd_y(__urng, __p2) * m())); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const fisher_f_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.m() << __space << __x.n() 26629: << __space << __x._M_gd_x << __space << __x._M_gd_y; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: fisher_f_distribution<_RealType>& __x) 26629: { 26629: using param_type 26629: = typename fisher_f_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _RealType __m, __n; 26629: if (__is >> __m >> __n >> __x._M_gd_x >> __x._M_gd_y) 26629: __x.param(param_type(__m, __n)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: template 26629: void 26629: std::student_t_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng) 26629: { 26629: 26629: while (__f != __t) 26629: *__f++ = _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); 26629: } 26629: 26629: template 26629: template 26629: void 26629: std::student_t_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: 26629: typename std::gamma_distribution::param_type 26629: __p2(__p.n() / 2, 2); 26629: while (__f != __t) 26629: *__f++ = _M_nd(__urng) * std::sqrt(__p.n() / _M_gd(__urng, __p2)); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const student_t_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.n() << __space << __x._M_nd << __space << __x._M_gd; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: student_t_distribution<_RealType>& __x) 26629: { 26629: using param_type 26629: = typename student_t_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _RealType __n; 26629: if (__is >> __n >> __x._M_nd >> __x._M_gd) 26629: __x.param(param_type(__n)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: void 26629: gamma_distribution<_RealType>::param_type:: 26629: _M_initialize() 26629: { 26629: _M_malpha = _M_alpha < 1.0 ? _M_alpha + _RealType(1.0) : _M_alpha; 26629: 26629: const _RealType __a1 = _M_malpha - _RealType(1.0) / _RealType(3.0); 26629: _M_a2 = _RealType(1.0) / std::sqrt(_RealType(9.0) * __a1); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: template 26629: typename gamma_distribution<_RealType>::result_type 26629: gamma_distribution<_RealType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: 26629: result_type __u, __v, __n; 26629: const result_type __a1 = (__param._M_malpha 26629: - _RealType(1.0) / _RealType(3.0)); 26629: 26629: do 26629: { 26629: do 26629: { 26629: __n = _M_nd(__urng); 26629: __v = result_type(1.0) + __param._M_a2 * __n; 26629: } 26629: while (__v <= 0.0); 26629: 26629: __v = __v * __v * __v; 26629: __u = __aurng(); 26629: } 26629: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 26629: && (std::log(__u) > (0.5 * __n * __n + __a1 26629: * (1.0 - __v + std::log(__v))))); 26629: 26629: if (__param.alpha() == __param._M_malpha) 26629: return __a1 * __v * __param.beta(); 26629: else 26629: { 26629: do 26629: __u = __aurng(); 26629: while (__u == 0.0); 26629: 26629: return (std::pow(__u, result_type(1.0) / __param.alpha()) 26629: * __a1 * __v * __param.beta()); 26629: } 26629: } 26629: 26629: template 26629: template 26629: void 26629: gamma_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: 26629: result_type __u, __v, __n; 26629: const result_type __a1 = (__param._M_malpha 26629: - _RealType(1.0) / _RealType(3.0)); 26629: 26629: if (__param.alpha() == __param._M_malpha) 26629: while (__f != __t) 26629: { 26629: do 26629: { 26629: do 26629: { 26629: __n = _M_nd(__urng); 26629: __v = result_type(1.0) + __param._M_a2 * __n; 26629: } 26629: while (__v <= 0.0); 26629: 26629: __v = __v * __v * __v; 26629: __u = __aurng(); 26629: } 26629: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 26629: && (std::log(__u) > (0.5 * __n * __n + __a1 26629: * (1.0 - __v + std::log(__v))))); 26629: 26629: *__f++ = __a1 * __v * __param.beta(); 26629: } 26629: else 26629: while (__f != __t) 26629: { 26629: do 26629: { 26629: do 26629: { 26629: __n = _M_nd(__urng); 26629: __v = result_type(1.0) + __param._M_a2 * __n; 26629: } 26629: while (__v <= 0.0); 26629: 26629: __v = __v * __v * __v; 26629: __u = __aurng(); 26629: } 26629: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 26629: && (std::log(__u) > (0.5 * __n * __n + __a1 26629: * (1.0 - __v + std::log(__v))))); 26629: 26629: do 26629: __u = __aurng(); 26629: while (__u == 0.0); 26629: 26629: *__f++ = (std::pow(__u, result_type(1.0) / __param.alpha()) 26629: * __a1 * __v * __param.beta()); 26629: } 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const gamma_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.alpha() << __space << __x.beta() 26629: << __space << __x._M_nd; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: gamma_distribution<_RealType>& __x) 26629: { 26629: using param_type = typename gamma_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _RealType __alpha_val, __beta_val; 26629: if (__is >> __alpha_val >> __beta_val >> __x._M_nd) 26629: __x.param(param_type(__alpha_val, __beta_val)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: template 26629: typename weibull_distribution<_RealType>::result_type 26629: weibull_distribution<_RealType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: return __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 26629: result_type(1) / __p.a()); 26629: } 26629: 26629: template 26629: template 26629: void 26629: weibull_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: auto __inv_a = result_type(1) / __p.a(); 26629: 26629: while (__f != __t) 26629: *__f++ = __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 26629: __inv_a); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const weibull_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.a() << __space << __x.b(); 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: weibull_distribution<_RealType>& __x) 26629: { 26629: using param_type = typename weibull_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _RealType __a, __b; 26629: if (__is >> __a >> __b) 26629: __x.param(param_type(__a, __b)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: template 26629: typename extreme_value_distribution<_RealType>::result_type 26629: extreme_value_distribution<_RealType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: return __p.a() - __p.b() * std::log(-std::log(result_type(1) 26629: - __aurng())); 26629: } 26629: 26629: template 26629: template 26629: void 26629: extreme_value_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __p) 26629: { 26629: 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 26629: __aurng(__urng); 26629: 26629: while (__f != __t) 26629: *__f++ = __p.a() - __p.b() * std::log(-std::log(result_type(1) 26629: - __aurng())); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const extreme_value_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: __os << __x.a() << __space << __x.b(); 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: extreme_value_distribution<_RealType>& __x) 26629: { 26629: using param_type 26629: = typename extreme_value_distribution<_RealType>::param_type; 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: _RealType __a, __b; 26629: if (__is >> __a >> __b) 26629: __x.param(param_type(__a, __b)); 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: void 26629: discrete_distribution<_IntType>::param_type:: 26629: _M_initialize() 26629: { 26629: if (_M_prob.size() < 2) 26629: { 26629: _M_prob.clear(); 26629: return; 26629: } 26629: 26629: const double __sum = std::accumulate(_M_prob.begin(), 26629: _M_prob.end(), 0.0); 26629: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 26629: 26629: __detail::__normalize(_M_prob.begin(), _M_prob.end(), _M_prob.begin(), 26629: __sum); 26629: 26629: _M_cp.reserve(_M_prob.size()); 26629: std::partial_sum(_M_prob.begin(), _M_prob.end(), 26629: std::back_inserter(_M_cp)); 26629: 26629: _M_cp[_M_cp.size() - 1] = 1.0; 26629: } 26629: 26629: template 26629: template 26629: discrete_distribution<_IntType>::param_type:: 26629: param_type(size_t __nw, double __xmin, double __xmax, _Func __fw) 26629: : _M_prob(), _M_cp() 26629: { 26629: const size_t __n = __nw == 0 ? 1 : __nw; 26629: const double __delta = (__xmax - __xmin) / __n; 26629: 26629: _M_prob.reserve(__n); 26629: for (size_t __k = 0; __k < __nw; ++__k) 26629: _M_prob.push_back(__fw(__xmin + __k * __delta + 0.5 * __delta)); 26629: 26629: _M_initialize(); 26629: } 26629: 26629: template 26629: template 26629: typename discrete_distribution<_IntType>::result_type 26629: discrete_distribution<_IntType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: if (__param._M_cp.empty()) 26629: return result_type(0); 26629: 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: 26629: const double __p = __aurng(); 26629: auto __pos = std::lower_bound(__param._M_cp.begin(), 26629: __param._M_cp.end(), __p); 26629: 26629: return __pos - __param._M_cp.begin(); 26629: } 26629: 26629: template 26629: template 26629: void 26629: discrete_distribution<_IntType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: 26629: 26629: if (__param._M_cp.empty()) 26629: { 26629: while (__f != __t) 26629: *__f++ = result_type(0); 26629: return; 26629: } 26629: 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: 26629: while (__f != __t) 26629: { 26629: const double __p = __aurng(); 26629: auto __pos = std::lower_bound(__param._M_cp.begin(), 26629: __param._M_cp.end(), __p); 26629: 26629: *__f++ = __pos - __param._M_cp.begin(); 26629: } 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const discrete_distribution<_IntType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits::max_digits10); 26629: 26629: std::vector __prob = __x.probabilities(); 26629: __os << __prob.size(); 26629: for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit) 26629: __os << __space << *__dit; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: namespace __detail 26629: { 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: __extract_params(basic_istream<_CharT, _Traits>& __is, 26629: vector<_ValT>& __vals, size_t __n) 26629: { 26629: __vals.reserve(__n); 26629: while (__n--) 26629: { 26629: _ValT __val; 26629: if (__is >> __val) 26629: __vals.push_back(__val); 26629: else 26629: break; 26629: } 26629: return __is; 26629: } 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: discrete_distribution<_IntType>& __x) 26629: { 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: size_t __n; 26629: if (__is >> __n) 26629: { 26629: std::vector __prob_vec; 26629: if (__detail::__extract_params(__is, __prob_vec, __n)) 26629: __x.param({__prob_vec.begin(), __prob_vec.end()}); 26629: } 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: void 26629: piecewise_constant_distribution<_RealType>::param_type:: 26629: _M_initialize() 26629: { 26629: if (_M_int.size() < 2 26629: || (_M_int.size() == 2 26629: && _M_int[0] == _RealType(0) 26629: && _M_int[1] == _RealType(1))) 26629: { 26629: _M_int.clear(); 26629: _M_den.clear(); 26629: return; 26629: } 26629: 26629: const double __sum = std::accumulate(_M_den.begin(), 26629: _M_den.end(), 0.0); 26629: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 26629: 26629: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 26629: __sum); 26629: 26629: _M_cp.reserve(_M_den.size()); 26629: std::partial_sum(_M_den.begin(), _M_den.end(), 26629: std::back_inserter(_M_cp)); 26629: 26629: 26629: _M_cp[_M_cp.size() - 1] = 1.0; 26629: 26629: for (size_t __k = 0; __k < _M_den.size(); ++__k) 26629: _M_den[__k] /= _M_int[__k + 1] - _M_int[__k]; 26629: } 26629: 26629: template 26629: template 26629: piecewise_constant_distribution<_RealType>::param_type:: 26629: param_type(_InputIteratorB __bbegin, 26629: _InputIteratorB __bend, 26629: _InputIteratorW __wbegin) 26629: : _M_int(), _M_den(), _M_cp() 26629: { 26629: if (__bbegin != __bend) 26629: { 26629: for (;;) 26629: { 26629: _M_int.push_back(*__bbegin); 26629: ++__bbegin; 26629: if (__bbegin == __bend) 26629: break; 26629: 26629: _M_den.push_back(*__wbegin); 26629: ++__wbegin; 26629: } 26629: } 26629: 26629: _M_initialize(); 26629: } 26629: 26629: template 26629: template 26629: piecewise_constant_distribution<_RealType>::param_type:: 26629: param_type(initializer_list<_RealType> __bl, _Func __fw) 26629: : _M_int(), _M_den(), _M_cp() 26629: { 26629: _M_int.reserve(__bl.size()); 26629: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 26629: _M_int.push_back(*__biter); 26629: 26629: _M_den.reserve(_M_int.size() - 1); 26629: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 26629: _M_den.push_back(__fw(0.5 * (_M_int[__k + 1] + _M_int[__k]))); 26629: 26629: _M_initialize(); 26629: } 26629: 26629: template 26629: template 26629: piecewise_constant_distribution<_RealType>::param_type:: 26629: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 26629: : _M_int(), _M_den(), _M_cp() 26629: { 26629: const size_t __n = __nw == 0 ? 1 : __nw; 26629: const _RealType __delta = (__xmax - __xmin) / __n; 26629: 26629: _M_int.reserve(__n + 1); 26629: for (size_t __k = 0; __k <= __nw; ++__k) 26629: _M_int.push_back(__xmin + __k * __delta); 26629: 26629: _M_den.reserve(__n); 26629: for (size_t __k = 0; __k < __nw; ++__k) 26629: _M_den.push_back(__fw(_M_int[__k] + 0.5 * __delta)); 26629: 26629: _M_initialize(); 26629: } 26629: 26629: template 26629: template 26629: typename piecewise_constant_distribution<_RealType>::result_type 26629: piecewise_constant_distribution<_RealType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: 26629: const double __p = __aurng(); 26629: if (__param._M_cp.empty()) 26629: return __p; 26629: 26629: auto __pos = std::lower_bound(__param._M_cp.begin(), 26629: __param._M_cp.end(), __p); 26629: const size_t __i = __pos - __param._M_cp.begin(); 26629: 26629: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 26629: 26629: return __param._M_int[__i] + (__p - __pref) / __param._M_den[__i]; 26629: } 26629: 26629: template 26629: template 26629: void 26629: piecewise_constant_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: 26629: if (__param._M_cp.empty()) 26629: { 26629: while (__f != __t) 26629: *__f++ = __aurng(); 26629: return; 26629: } 26629: 26629: while (__f != __t) 26629: { 26629: const double __p = __aurng(); 26629: 26629: auto __pos = std::lower_bound(__param._M_cp.begin(), 26629: __param._M_cp.end(), __p); 26629: const size_t __i = __pos - __param._M_cp.begin(); 26629: 26629: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 26629: 26629: *__f++ = (__param._M_int[__i] 26629: + (__p - __pref) / __param._M_den[__i]); 26629: } 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const piecewise_constant_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: std::vector<_RealType> __int = __x.intervals(); 26629: __os << __int.size() - 1; 26629: 26629: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 26629: __os << __space << *__xit; 26629: 26629: std::vector __den = __x.densities(); 26629: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 26629: __os << __space << *__dit; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: piecewise_constant_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: size_t __n; 26629: if (__is >> __n) 26629: { 26629: std::vector<_RealType> __int_vec; 26629: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 26629: { 26629: std::vector __den_vec; 26629: if (__detail::__extract_params(__is, __den_vec, __n)) 26629: { 26629: __x.param({ __int_vec.begin(), __int_vec.end(), 26629: __den_vec.begin() }); 26629: } 26629: } 26629: } 26629: 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: void 26629: piecewise_linear_distribution<_RealType>::param_type:: 26629: _M_initialize() 26629: { 26629: if (_M_int.size() < 2 26629: || (_M_int.size() == 2 26629: && _M_int[0] == _RealType(0) 26629: && _M_int[1] == _RealType(1) 26629: && _M_den[0] == _M_den[1])) 26629: { 26629: _M_int.clear(); 26629: _M_den.clear(); 26629: return; 26629: } 26629: 26629: double __sum = 0.0; 26629: _M_cp.reserve(_M_int.size() - 1); 26629: _M_m.reserve(_M_int.size() - 1); 26629: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 26629: { 26629: const _RealType __delta = _M_int[__k + 1] - _M_int[__k]; 26629: __sum += 0.5 * (_M_den[__k + 1] + _M_den[__k]) * __delta; 26629: _M_cp.push_back(__sum); 26629: _M_m.push_back((_M_den[__k + 1] - _M_den[__k]) / __delta); 26629: } 26629: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 26629: 26629: 26629: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 26629: __sum); 26629: 26629: __detail::__normalize(_M_cp.begin(), _M_cp.end(), _M_cp.begin(), __sum); 26629: 26629: __detail::__normalize(_M_m.begin(), _M_m.end(), _M_m.begin(), __sum); 26629: 26629: 26629: _M_cp[_M_cp.size() - 1] = 1.0; 26629: } 26629: 26629: template 26629: template 26629: piecewise_linear_distribution<_RealType>::param_type:: 26629: param_type(_InputIteratorB __bbegin, 26629: _InputIteratorB __bend, 26629: _InputIteratorW __wbegin) 26629: : _M_int(), _M_den(), _M_cp(), _M_m() 26629: { 26629: for (; __bbegin != __bend; ++__bbegin, ++__wbegin) 26629: { 26629: _M_int.push_back(*__bbegin); 26629: _M_den.push_back(*__wbegin); 26629: } 26629: 26629: _M_initialize(); 26629: } 26629: 26629: template 26629: template 26629: piecewise_linear_distribution<_RealType>::param_type:: 26629: param_type(initializer_list<_RealType> __bl, _Func __fw) 26629: : _M_int(), _M_den(), _M_cp(), _M_m() 26629: { 26629: _M_int.reserve(__bl.size()); 26629: _M_den.reserve(__bl.size()); 26629: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 26629: { 26629: _M_int.push_back(*__biter); 26629: _M_den.push_back(__fw(*__biter)); 26629: } 26629: 26629: _M_initialize(); 26629: } 26629: 26629: template 26629: template 26629: piecewise_linear_distribution<_RealType>::param_type:: 26629: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 26629: : _M_int(), _M_den(), _M_cp(), _M_m() 26629: { 26629: const size_t __n = __nw == 0 ? 1 : __nw; 26629: const _RealType __delta = (__xmax - __xmin) / __n; 26629: 26629: _M_int.reserve(__n + 1); 26629: _M_den.reserve(__n + 1); 26629: for (size_t __k = 0; __k <= __nw; ++__k) 26629: { 26629: _M_int.push_back(__xmin + __k * __delta); 26629: _M_den.push_back(__fw(_M_int[__k] + __delta)); 26629: } 26629: 26629: _M_initialize(); 26629: } 26629: 26629: template 26629: template 26629: typename piecewise_linear_distribution<_RealType>::result_type 26629: piecewise_linear_distribution<_RealType>:: 26629: operator()(_UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 26629: __aurng(__urng); 26629: 26629: const double __p = __aurng(); 26629: if (__param._M_cp.empty()) 26629: return __p; 26629: 26629: auto __pos = std::lower_bound(__param._M_cp.begin(), 26629: __param._M_cp.end(), __p); 26629: const size_t __i = __pos - __param._M_cp.begin(); 26629: 26629: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 26629: 26629: const double __a = 0.5 * __param._M_m[__i]; 26629: const double __b = __param._M_den[__i]; 26629: const double __cm = __p - __pref; 26629: 26629: _RealType __x = __param._M_int[__i]; 26629: if (__a == 0) 26629: __x += __cm / __b; 26629: else 26629: { 26629: const double __d = __b * __b + 4.0 * __a * __cm; 26629: __x += 0.5 * (std::sqrt(__d) - __b) / __a; 26629: } 26629: 26629: return __x; 26629: } 26629: 26629: template 26629: template 26629: void 26629: piecewise_linear_distribution<_RealType>:: 26629: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 26629: _UniformRandomNumberGenerator& __urng, 26629: const param_type& __param) 26629: { 26629: 26629: 26629: while (__f != __t) 26629: *__f++ = this->operator()(__urng, __param); 26629: } 26629: 26629: template 26629: std::basic_ostream<_CharT, _Traits>& 26629: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 26629: const piecewise_linear_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __os.flags(); 26629: const _CharT __fill = __os.fill(); 26629: const std::streamsize __precision = __os.precision(); 26629: const _CharT __space = __os.widen(' '); 26629: __os.flags(__ios_base::scientific | __ios_base::left); 26629: __os.fill(__space); 26629: __os.precision(std::numeric_limits<_RealType>::max_digits10); 26629: 26629: std::vector<_RealType> __int = __x.intervals(); 26629: __os << __int.size() - 1; 26629: 26629: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 26629: __os << __space << *__xit; 26629: 26629: std::vector __den = __x.densities(); 26629: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 26629: __os << __space << *__dit; 26629: 26629: __os.flags(__flags); 26629: __os.fill(__fill); 26629: __os.precision(__precision); 26629: return __os; 26629: } 26629: 26629: template 26629: std::basic_istream<_CharT, _Traits>& 26629: operator>>(std::basic_istream<_CharT, _Traits>& __is, 26629: piecewise_linear_distribution<_RealType>& __x) 26629: { 26629: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 26629: 26629: const typename __ios_base::fmtflags __flags = __is.flags(); 26629: __is.flags(__ios_base::dec | __ios_base::skipws); 26629: 26629: size_t __n; 26629: if (__is >> __n) 26629: { 26629: vector<_RealType> __int_vec; 26629: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 26629: { 26629: vector __den_vec; 26629: if (__detail::__extract_params(__is, __den_vec, __n + 1)) 26629: { 26629: __x.param({ __int_vec.begin(), __int_vec.end(), 26629: __den_vec.begin() }); 26629: } 26629: } 26629: } 26629: __is.flags(__flags); 26629: return __is; 26629: } 26629: 26629: 26629: template 26629: seed_seq::seed_seq(std::initializer_list<_IntType> __il) 26629: { 26629: _M_v.reserve(__il.size()); 26629: for (auto __iter = __il.begin(); __iter != __il.end(); ++__iter) 26629: _M_v.push_back(__detail::__mod::__value>(*__iter)); 26629: } 26629: 26629: template 26629: seed_seq::seed_seq(_InputIterator __begin, _InputIterator __end) 26629: { 26629: if constexpr (__is_random_access_iter<_InputIterator>::value) 26629: _M_v.reserve(std::distance(__begin, __end)); 26629: 26629: for (_InputIterator __iter = __begin; __iter != __end; ++__iter) 26629: _M_v.push_back(__detail::__mod::__value>(*__iter)); 26629: } 26629: 26629: template 26629: void 26629: seed_seq::generate(_RandomAccessIterator __begin, 26629: _RandomAccessIterator __end) 26629: { 26629: typedef typename iterator_traits<_RandomAccessIterator>::value_type 26629: _Type; 26629: 26629: if (__begin == __end) 26629: return; 26629: 26629: std::fill(__begin, __end, _Type(0x8b8b8b8bu)); 26629: 26629: const size_t __n = __end - __begin; 26629: const size_t __s = _M_v.size(); 26629: const size_t __t = (__n >= 623) ? 11 26629: : (__n >= 68) ? 7 26629: : (__n >= 39) ? 5 26629: : (__n >= 7) ? 3 26629: : (__n - 1) / 2; 26629: const size_t __p = (__n - __t) / 2; 26629: const size_t __q = __p + __t; 26629: const size_t __m = std::max(size_t(__s + 1), __n); 26629: # 3297 "/usr/include/c++/12/bits/random.tcc" 3 26629: { 26629: uint32_t __r1 = 1371501266u; 26629: uint32_t __r2 = __r1 + __s; 26629: __begin[__p] += __r1; 26629: __begin[__q] = (uint32_t)__begin[__q] + __r2; 26629: __begin[0] = __r2; 26629: } 26629: 26629: for (size_t __k = 1; __k <= __s; ++__k) 26629: { 26629: const size_t __kn = __k % __n; 26629: const size_t __kpn = (__k + __p) % __n; 26629: const size_t __kqn = (__k + __q) % __n; 26629: uint32_t __arg = (__begin[__kn] 26629: ^ __begin[__kpn] 26629: ^ __begin[(__k - 1) % __n]); 26629: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 26629: uint32_t __r2 = __r1 + (uint32_t)__kn + _M_v[__k - 1]; 26629: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 26629: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 26629: __begin[__kn] = __r2; 26629: } 26629: 26629: for (size_t __k = __s + 1; __k < __m; ++__k) 26629: { 26629: const size_t __kn = __k % __n; 26629: const size_t __kpn = (__k + __p) % __n; 26629: const size_t __kqn = (__k + __q) % __n; 26629: uint32_t __arg = (__begin[__kn] 26629: ^ __begin[__kpn] 26629: ^ __begin[(__k - 1) % __n]); 26629: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 26629: uint32_t __r2 = __r1 + (uint32_t)__kn; 26629: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 26629: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 26629: __begin[__kn] = __r2; 26629: } 26629: 26629: for (size_t __k = __m; __k < __m + __n; ++__k) 26629: { 26629: const size_t __kn = __k % __n; 26629: const size_t __kpn = (__k + __p) % __n; 26629: const size_t __kqn = (__k + __q) % __n; 26629: uint32_t __arg = (__begin[__kn] 26629: + __begin[__kpn] 26629: + __begin[(__k - 1) % __n]); 26629: uint32_t __r3 = 1566083941u * (__arg ^ (__arg >> 27)); 26629: uint32_t __r4 = __r3 - __kn; 26629: __begin[__kpn] ^= __r3; 26629: __begin[__kqn] ^= __r4; 26629: __begin[__kn] = __r4; 26629: } 26629: } 26629: 26629: template 26629: _RealType 26629: generate_canonical(_UniformRandomNumberGenerator& __urng) 26629: { 26629: static_assert(std::is_floating_point<_RealType>::value, 26629: "template argument must be a floating point type"); 26629: 26629: const size_t __b 26629: = std::min(static_cast(std::numeric_limits<_RealType>::digits), 26629: __bits); 26629: const long double __r = static_cast(__urng.max()) 26629: - static_cast(__urng.min()) + 1.0L; 26629: const size_t __log2r = std::log(__r) / std::log(2.0L); 26629: const size_t __m = std::max(1UL, 26629: (__b + __log2r - 1UL) / __log2r); 26629: _RealType __ret; 26629: _RealType __sum = _RealType(0); 26629: _RealType __tmp = _RealType(1); 26629: for (size_t __k = __m; __k != 0; --__k) 26629: { 26629: __sum += _RealType(__urng() - __urng.min()) * __tmp; 26629: __tmp *= __r; 26629: } 26629: __ret = __sum / __tmp; 26629: if (__builtin_expect(__ret >= _RealType(1), 0)) 26629: { 26629: 26629: __ret = std::nextafter(_RealType(1), _RealType(0)); 26629: 26629: 26629: 26629: 26629: } 26629: return __ret; 26629: } 26629: 26629: 26629: } 26629: # 52 "/usr/include/c++/12/random" 2 3 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/util/random.h" 2 26629: 26629: 26629: 26629: 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/util/random.h" 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: class Random { 26629: private: 26629: enum : uint32_t { 26629: M = 2147483647L 26629: }; 26629: enum : uint64_t { 26629: A = 16807 26629: }; 26629: 26629: uint32_t seed_; 26629: 26629: static uint32_t GoodSeed(uint32_t s) { return (s & M) != 0 ? (s & M) : 1; } 26629: 26629: public: 26629: 26629: enum : uint32_t { kMaxNext = M }; 26629: 26629: explicit Random(uint32_t s) : seed_(GoodSeed(s)) {} 26629: 26629: void Reset(uint32_t s) { seed_ = GoodSeed(s); } 26629: 26629: uint32_t Next() { 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t product = seed_ * A; 26629: 26629: 26629: seed_ = static_cast((product >> 31) + (product & M)); 26629: 26629: 26629: 26629: if (seed_ > M) { 26629: seed_ -= M; 26629: } 26629: return seed_; 26629: } 26629: 26629: uint64_t Next64() { return (uint64_t{Next()} << 32) | Next(); } 26629: 26629: 26629: 26629: uint32_t Uniform(int n) { return Next() % n; } 26629: 26629: 26629: 26629: bool OneIn(int n) { return Uniform(n) == 0; } 26629: 26629: 26629: 26629: bool OneInOpt(int n) { return n > 0 && OneIn(n); } 26629: 26629: 26629: 26629: 26629: bool PercentTrue(int percentage) { 26629: return static_cast(Uniform(100)) < percentage; 26629: } 26629: 26629: 26629: 26629: 26629: uint32_t Skewed(int max_log) { 26629: return Uniform(1 << Uniform(max_log + 1)); 26629: } 26629: 26629: 26629: std::string RandomString(int len); 26629: 26629: 26629: std::string HumanReadableString(int len); 26629: 26629: 26629: std::string RandomBinaryString(int len); 26629: 26629: 26629: 26629: static Random* GetTLSInstance(); 26629: }; 26629: 26629: 26629: 26629: 26629: class Random32 { 26629: private: 26629: std::mt19937 generator_; 26629: 26629: public: 26629: explicit Random32(uint32_t s) : generator_(s) {} 26629: 26629: 26629: uint32_t Next() { return static_cast(generator_()); } 26629: 26629: 26629: 26629: uint32_t Uniform(uint32_t n) { 26629: return static_cast( 26629: std::uniform_int_distribution( 26629: 0, n - 1)(generator_)); 26629: } 26629: 26629: 26629: 26629: 26629: uint32_t Uniformish(uint32_t n) { 26629: 26629: return static_cast((uint64_t(generator_()) * uint64_t(n)) >> 32); 26629: } 26629: 26629: 26629: 26629: bool OneIn(uint32_t n) { return Uniform(n) == 0; } 26629: 26629: 26629: 26629: 26629: uint32_t Skewed(int max_log) { 26629: return Uniform(uint32_t{1} << Uniform(max_log + 1)); 26629: } 26629: 26629: 26629: void Seed(uint32_t new_seed) { generator_.seed(new_seed); } 26629: }; 26629: 26629: 26629: class Random64 { 26629: private: 26629: std::mt19937_64 generator_; 26629: 26629: public: 26629: explicit Random64(uint64_t s) : generator_(s) { } 26629: 26629: 26629: uint64_t Next() { return generator_(); } 26629: 26629: 26629: 26629: uint64_t Uniform(uint64_t n) { 26629: return std::uniform_int_distribution(0, n - 1)(generator_); 26629: } 26629: 26629: 26629: 26629: bool OneIn(uint64_t n) { return Uniform(n) == 0; } 26629: 26629: 26629: 26629: 26629: uint64_t Skewed(int max_log) { 26629: return Uniform(uint64_t(1) << Uniform(max_log + 1)); 26629: } 26629: }; 26629: 26629: 26629: template 26629: void RandomShuffle(RandomIt first, RandomIt last, uint32_t seed) { 26629: std::mt19937 rng(seed); 26629: std::shuffle(first, last, rng); 26629: } 26629: 26629: 26629: template 26629: void RandomShuffle(RandomIt first, RandomIt last) { 26629: RandomShuffle(first, last, std::random_device{}()); 26629: } 26629: 26629: } 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: template 26629: class CoreLocalArray { 26629: public: 26629: CoreLocalArray(); 26629: 26629: size_t Size() const; 26629: 26629: 26629: T* Access() const; 26629: 26629: 26629: 26629: std::pair AccessElementAndIndex() const; 26629: 26629: 26629: T* AccessAtCore(size_t core_idx) const; 26629: 26629: private: 26629: std::unique_ptr data_; 26629: int size_shift_; 26629: }; 26629: 26629: template 26629: CoreLocalArray::CoreLocalArray() { 26629: int num_cpus = static_cast(std::thread::hardware_concurrency()); 26629: 26629: size_shift_ = 3; 26629: while (1 << size_shift_ < num_cpus) { 26629: ++size_shift_; 26629: } 26629: data_.reset(new T[static_cast(1) << size_shift_]); 26629: } 26629: 26629: template 26629: size_t CoreLocalArray::Size() const { 26629: return static_cast(1) << size_shift_; 26629: } 26629: 26629: template 26629: T* CoreLocalArray::Access() const { 26629: return AccessElementAndIndex().first; 26629: } 26629: 26629: template 26629: std::pair CoreLocalArray::AccessElementAndIndex() const { 26629: int cpuid = port::PhysicalCoreID(); 26629: size_t core_idx; 26629: if ((__builtin_expect((cpuid < 0), 0))) { 26629: 26629: core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); 26629: } else { 26629: core_idx = static_cast(cpuid & ((1 << size_shift_) - 1)); 26629: } 26629: return {AccessAtCore(core_idx), core_idx}; 26629: } 26629: 26629: template 26629: T* CoreLocalArray::AccessAtCore(size_t core_idx) const { 26629: 26629: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 3 4 26629: (static_cast ( 26629: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 26629: core_idx < static_cast(1) << size_shift_ 26629: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 26629: "core_idx < static_cast(1) << size_shift_" 26629: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 3 4 26629: , "./util/core_local.h", 79, __extension__ __PRETTY_FUNCTION__)) 26629: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 26629: ; 26629: return &data_[core_idx]; 26629: } 26629: 26629: } 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 2 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: # 29 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 26629: class MutexLock { 26629: public: 26629: explicit MutexLock(port::Mutex *mu) : mu_(mu) { 26629: this->mu_->Lock(); 26629: } 26629: 26629: MutexLock(const MutexLock &) = delete; 26629: void operator=(const MutexLock &) = delete; 26629: 26629: ~MutexLock() { this->mu_->Unlock(); } 26629: 26629: private: 26629: port::Mutex *const mu_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class ReadLock { 26629: public: 26629: explicit ReadLock(port::RWMutex *mu) : mu_(mu) { 26629: this->mu_->ReadLock(); 26629: } 26629: 26629: ReadLock(const ReadLock &) = delete; 26629: void operator=(const ReadLock &) = delete; 26629: 26629: ~ReadLock() { this->mu_->ReadUnlock(); } 26629: 26629: private: 26629: port::RWMutex *const mu_; 26629: }; 26629: 26629: 26629: 26629: 26629: class ReadUnlock { 26629: public: 26629: explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } 26629: 26629: ReadUnlock(const ReadUnlock &) = delete; 26629: ReadUnlock &operator=(const ReadUnlock &) = delete; 26629: 26629: ~ReadUnlock() { mu_->ReadUnlock(); } 26629: 26629: private: 26629: port::RWMutex *const mu_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class WriteLock { 26629: public: 26629: explicit WriteLock(port::RWMutex *mu) : mu_(mu) { 26629: this->mu_->WriteLock(); 26629: } 26629: 26629: WriteLock(const WriteLock &) = delete; 26629: void operator=(const WriteLock &) = delete; 26629: 26629: ~WriteLock() { this->mu_->WriteUnlock(); } 26629: 26629: private: 26629: port::RWMutex *const mu_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: class SpinMutex { 26629: public: 26629: SpinMutex() : locked_(false) {} 26629: 26629: bool try_lock() { 26629: auto currently_locked = locked_.load(std::memory_order_relaxed); 26629: return !currently_locked && 26629: locked_.compare_exchange_weak(currently_locked, true, 26629: std::memory_order_acquire, 26629: std::memory_order_relaxed); 26629: } 26629: 26629: void lock() { 26629: for (size_t tries = 0;; ++tries) { 26629: if (try_lock()) { 26629: 26629: break; 26629: } 26629: port::AsmVolatilePause(); 26629: if (tries > 100) { 26629: std::this_thread::yield(); 26629: } 26629: } 26629: } 26629: 26629: void unlock() { locked_.store(false, std::memory_order_release); } 26629: 26629: private: 26629: std::atomic locked_; 26629: }; 26629: 26629: 26629: template 26629: struct alignas(64U) LockData { 26629: T lock_; 26629: }; 26629: # 150 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 26629: template 26629: class Striped { 26629: public: 26629: Striped(size_t stripes, std::function hash) 26629: : stripes_(stripes), hash_(hash) { 26629: 26629: locks_ = reinterpret_cast *>( 26629: port::cacheline_aligned_alloc(sizeof(LockData) * stripes)); 26629: for (size_t i = 0; i < stripes; i++) { 26629: new (&locks_[i]) LockData(); 26629: } 26629: 26629: } 26629: 26629: virtual ~Striped() { 26629: if (locks_ != nullptr) { 26629: 26629: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 3 4 26629: (static_cast ( 26629: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 26629: stripes_ > 0 26629: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 26629: "stripes_ > 0" 26629: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 3 4 26629: , "./util/mutexlock.h", 166, __extension__ __PRETTY_FUNCTION__)) 26629: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 26629: ; 26629: for (size_t i = 0; i < stripes_; i++) { 26629: locks_[i].~LockData(); 26629: } 26629: port::cacheline_aligned_free(locks_); 26629: } 26629: } 26629: 26629: T *get(const P &key) { 26629: uint64_t h = hash_(key); 26629: size_t index = h % stripes_; 26629: return &reinterpret_cast *>(&locks_[index])->lock_; 26629: } 26629: 26629: private: 26629: size_t stripes_; 26629: LockData *locks_; 26629: std::function hash_; 26629: }; 26629: 26629: } 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 2 26629: # 31 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 26629: namespace rocksdb { 26629: 26629: enum TickersInternal : uint32_t { 26629: INTERNAL_TICKER_ENUM_START = TICKER_ENUM_MAX, 26629: INTERNAL_TICKER_ENUM_MAX 26629: }; 26629: 26629: enum HistogramsInternal : uint32_t { 26629: INTERNAL_HISTOGRAM_START = HISTOGRAM_ENUM_MAX, 26629: INTERNAL_HISTOGRAM_ENUM_MAX 26629: }; 26629: 26629: class StatisticsImpl : public Statistics { 26629: public: 26629: StatisticsImpl(std::shared_ptr stats); 26629: virtual ~StatisticsImpl(); 26629: const char* Name() const override { return kClassName(); } 26629: static const char* kClassName() { return "BasicStatistics"; } 26629: 26629: virtual uint64_t getTickerCount(uint32_t ticker_type) const override; 26629: virtual void histogramData(uint32_t histogram_type, 26629: HistogramData* const data) const override; 26629: std::string getHistogramString(uint32_t histogram_type) const override; 26629: 26629: virtual void setTickerCount(uint32_t ticker_type, uint64_t count) override; 26629: virtual uint64_t getAndResetTickerCount(uint32_t ticker_type) override; 26629: virtual void recordTick(uint32_t ticker_type, uint64_t count) override; 26629: 26629: 26629: 26629: 26629: void measureTime(uint32_t histogramType, uint64_t time) override { 26629: recordInHistogram(histogramType, time); 26629: } 26629: virtual void recordInHistogram(uint32_t histogram_type, 26629: uint64_t value) override; 26629: 26629: virtual Status Reset() override; 26629: virtual std::string ToString() const override; 26629: virtual bool getTickerMap(std::map*) const override; 26629: virtual bool HistEnabledForType(uint32_t type) const override; 26629: 26629: const Customizable* Inner() const override { return stats_.get(); } 26629: 26629: private: 26629: 26629: std::shared_ptr stats_; 26629: 26629: 26629: mutable port::Mutex aggregate_lock_; 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct alignas(64U) StatisticsData { 26629: std::atomic_uint_fast64_t tickers_[INTERNAL_TICKER_ENUM_MAX] = {{0}}; 26629: HistogramImpl histograms_[INTERNAL_HISTOGRAM_ENUM_MAX]; 26629: 26629: char 26629: padding[(64U - 26629: (INTERNAL_TICKER_ENUM_MAX * sizeof(std::atomic_uint_fast64_t) + 26629: INTERNAL_HISTOGRAM_ENUM_MAX * sizeof(HistogramImpl)) % 26629: 64U)] ; 26629: 26629: void *operator new(size_t s) { return port::cacheline_aligned_alloc(s); } 26629: void *operator new[](size_t s) { return port::cacheline_aligned_alloc(s); } 26629: void operator delete(void *p) { port::cacheline_aligned_free(p); } 26629: void operator delete[](void *p) { port::cacheline_aligned_free(p); } 26629: }; 26629: 26629: 26629: static_assert(sizeof(StatisticsData) % 64U == 0, "Expected " "64U" "-byte aligned"); 26629: 26629: 26629: CoreLocalArray per_core_stats_; 26629: 26629: uint64_t getTickerCountLocked(uint32_t ticker_type) const; 26629: std::unique_ptr getHistogramImplLocked( 26629: uint32_t histogram_type) const; 26629: void setTickerCountLocked(uint32_t ticker_type, uint64_t count); 26629: }; 26629: 26629: 26629: inline void RecordInHistogram(Statistics* statistics, uint32_t histogram_type, 26629: uint64_t value) { 26629: if (statistics) { 26629: statistics->recordInHistogram(histogram_type, value); 26629: } 26629: } 26629: 26629: inline void RecordTimeToHistogram(Statistics* statistics, 26629: uint32_t histogram_type, uint64_t value) { 26629: if (statistics) { 26629: statistics->reportTimeToHistogram(histogram_type, value); 26629: } 26629: } 26629: 26629: inline void RecordTick(Statistics* statistics, uint32_t ticker_type, 26629: uint64_t count = 1) { 26629: if (statistics) { 26629: statistics->recordTick(ticker_type, count); 26629: } 26629: } 26629: 26629: inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, 26629: uint64_t count) { 26629: if (statistics) { 26629: statistics->setTickerCount(ticker_type, count); 26629: } 26629: } 26629: 26629: } 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_step_timer.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/system_clock.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/system_clock.h" 26629: 26629: # 23 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/system_clock.h" 26629: namespace rocksdb { 26629: struct ConfigOptions; 26629: 26629: 26629: 26629: class SystemClock : public Customizable { 26629: public: 26629: ~SystemClock() override {} 26629: 26629: static const char* Type() { return "SystemClock"; } 26629: static Status CreateFromString(const ConfigOptions& options, 26629: const std::string& value, 26629: std::shared_ptr* result); 26629: 26629: virtual const char* Name() const override = 0; 26629: 26629: 26629: 26629: static const char* kDefaultName() { return "DefaultClock"; } 26629: 26629: 26629: 26629: static const std::shared_ptr& Default(); 26629: 26629: 26629: 26629: 26629: virtual uint64_t NowMicros() = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 26629: 26629: 26629: 26629: virtual uint64_t CPUMicros() { return 0; } 26629: 26629: 26629: 26629: 26629: virtual uint64_t CPUNanos() { return CPUMicros() * 1000; } 26629: 26629: 26629: virtual void SleepForMicroseconds(int micros) = 0; 26629: 26629: 26629: 26629: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 26629: 26629: 26629: virtual std::string TimeToString(uint64_t time) = 0; 26629: }; 26629: 26629: 26629: 26629: class SystemClockWrapper : public SystemClock { 26629: public: 26629: explicit SystemClockWrapper(const std::shared_ptr& t); 26629: 26629: uint64_t NowMicros() override { return target_->NowMicros(); } 26629: 26629: uint64_t NowNanos() override { return target_->NowNanos(); } 26629: 26629: uint64_t CPUMicros() override { return target_->CPUMicros(); } 26629: 26629: uint64_t CPUNanos() override { return target_->CPUNanos(); } 26629: 26629: virtual void SleepForMicroseconds(int micros) override { 26629: return target_->SleepForMicroseconds(micros); 26629: } 26629: 26629: Status GetCurrentTime(int64_t* unix_time) override { 26629: return target_->GetCurrentTime(unix_time); 26629: } 26629: 26629: std::string TimeToString(uint64_t time) override { 26629: return target_->TimeToString(time); 26629: } 26629: 26629: Status PrepareOptions(const ConfigOptions& options) override; 26629: 26629: std::string SerializeOptions(const ConfigOptions& config_options, 26629: const std::string& header) const override; 26629: 26629: const Customizable* Inner() const override { return target_.get(); } 26629: 26629: protected: 26629: std::shared_ptr target_; 26629: }; 26629: 26629: } 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_step_timer.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class PerfStepTimer { 26629: public: 26629: explicit PerfStepTimer( 26629: uint64_t* metric, SystemClock* clock = nullptr, bool use_cpu_time = false, 26629: PerfLevel enable_level = PerfLevel::kEnableTimeExceptForMutex, 26629: Statistics* statistics = nullptr, uint32_t ticker_type = 0) 26629: : perf_counter_enabled_(perf_level >= enable_level), 26629: use_cpu_time_(use_cpu_time), 26629: ticker_type_(ticker_type), 26629: clock_((perf_counter_enabled_ || statistics != nullptr) 26629: ? (clock ? clock : SystemClock::Default().get()) 26629: : nullptr), 26629: start_(0), 26629: metric_(metric), 26629: statistics_(statistics) {} 26629: 26629: ~PerfStepTimer() { 26629: Stop(); 26629: } 26629: 26629: void Start() { 26629: if (perf_counter_enabled_ || statistics_ != nullptr) { 26629: start_ = time_now(); 26629: } 26629: } 26629: 26629: void Measure() { 26629: if (start_) { 26629: uint64_t now = time_now(); 26629: *metric_ += now - start_; 26629: start_ = now; 26629: } 26629: } 26629: 26629: void Stop() { 26629: if (start_) { 26629: uint64_t duration = time_now() - start_; 26629: if (perf_counter_enabled_) { 26629: *metric_ += duration; 26629: } 26629: 26629: if (statistics_ != nullptr) { 26629: RecordTick(statistics_, ticker_type_, duration); 26629: } 26629: start_ = 0; 26629: } 26629: } 26629: 26629: private: 26629: uint64_t time_now() { 26629: if (!use_cpu_time_) { 26629: return clock_->NowNanos(); 26629: } else { 26629: return clock_->CPUNanos(); 26629: } 26629: } 26629: 26629: const bool perf_counter_enabled_; 26629: const bool use_cpu_time_; 26629: uint32_t ticker_type_; 26629: SystemClock* const clock_; 26629: uint64_t start_; 26629: uint64_t* metric_; 26629: Statistics* statistics_; 26629: }; 26629: 26629: } 26629: # 8 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_context_imp.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/perf_context.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct PerfContextByLevel { 26629: 26629: uint64_t bloom_filter_useful = 0; 26629: 26629: uint64_t bloom_filter_full_positive = 0; 26629: 26629: 26629: uint64_t bloom_filter_full_true_positive = 0; 26629: 26629: 26629: 26629: uint64_t user_key_return_count = 0; 26629: 26629: 26629: uint64_t get_from_table_nanos = 0; 26629: 26629: uint64_t block_cache_hit_count = 0; 26629: uint64_t block_cache_miss_count = 0; 26629: 26629: void Reset(); 26629: }; 26629: 26629: struct PerfContext { 26629: ~PerfContext(); 26629: 26629: PerfContext() {} 26629: 26629: PerfContext(const PerfContext&); 26629: PerfContext& operator=(const PerfContext&); 26629: PerfContext(PerfContext&&) noexcept; 26629: 26629: void Reset(); 26629: 26629: std::string ToString(bool exclude_zero_counters = false) const; 26629: 26629: 26629: void EnablePerLevelPerfContext(); 26629: 26629: 26629: void DisablePerLevelPerfContext(); 26629: 26629: 26629: void ClearPerLevelPerfContext(); 26629: 26629: uint64_t user_key_comparison_count; 26629: uint64_t block_cache_hit_count; 26629: uint64_t block_read_count; 26629: uint64_t block_read_byte; 26629: uint64_t block_read_time; 26629: uint64_t block_cache_index_hit_count; 26629: 26629: uint64_t block_cache_standalone_handle_count; 26629: 26629: 26629: uint64_t block_cache_real_handle_count; 26629: uint64_t index_block_read_count; 26629: uint64_t block_cache_filter_hit_count; 26629: uint64_t filter_block_read_count; 26629: uint64_t compression_dict_block_read_count; 26629: 26629: 26629: uint64_t secondary_cache_hit_count; 26629: 26629: uint64_t compressed_sec_cache_insert_real_count; 26629: 26629: uint64_t compressed_sec_cache_insert_dummy_count; 26629: 26629: uint64_t compressed_sec_cache_uncompressed_bytes; 26629: 26629: uint64_t compressed_sec_cache_compressed_bytes; 26629: 26629: uint64_t block_checksum_time; 26629: uint64_t block_decompress_time; 26629: 26629: uint64_t get_read_bytes; 26629: uint64_t multiget_read_bytes; 26629: uint64_t iter_read_bytes; 26629: 26629: uint64_t blob_cache_hit_count; 26629: uint64_t blob_read_count; 26629: uint64_t blob_read_byte; 26629: uint64_t blob_read_time; 26629: uint64_t blob_checksum_time; 26629: uint64_t blob_decompress_time; 26629: # 124 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/perf_context.h" 26629: uint64_t internal_key_skipped_count; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t internal_delete_skipped_count; 26629: 26629: 26629: 26629: uint64_t internal_recent_skipped_count; 26629: 26629: 26629: uint64_t internal_merge_count; 26629: 26629: 26629: 26629: uint64_t internal_range_del_reseek_count; 26629: 26629: uint64_t get_snapshot_time; 26629: uint64_t get_from_memtable_time; 26629: uint64_t get_from_memtable_count; 26629: 26629: uint64_t get_post_process_time; 26629: uint64_t get_from_output_files_time; 26629: 26629: uint64_t seek_on_memtable_time; 26629: 26629: 26629: uint64_t seek_on_memtable_count; 26629: 26629: uint64_t next_on_memtable_count; 26629: 26629: uint64_t prev_on_memtable_count; 26629: 26629: uint64_t seek_child_seek_time; 26629: 26629: uint64_t seek_child_seek_count; 26629: uint64_t seek_min_heap_time; 26629: uint64_t seek_max_heap_time; 26629: 26629: uint64_t seek_internal_seek_time; 26629: 26629: uint64_t find_next_user_entry_time; 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t write_wal_time; 26629: 26629: uint64_t write_memtable_time; 26629: 26629: uint64_t write_delay_time; 26629: 26629: 26629: uint64_t write_scheduling_flushes_compactions_time; 26629: 26629: uint64_t write_pre_and_post_process_time; 26629: 26629: 26629: uint64_t write_thread_wait_nanos; 26629: 26629: 26629: uint64_t db_mutex_lock_nanos; 26629: 26629: uint64_t db_condition_wait_nanos; 26629: 26629: uint64_t merge_operator_time_nanos; 26629: 26629: 26629: uint64_t read_index_block_nanos; 26629: 26629: uint64_t read_filter_block_nanos; 26629: 26629: uint64_t new_table_block_iter_nanos; 26629: 26629: uint64_t new_table_iterator_nanos; 26629: 26629: uint64_t block_seek_nanos; 26629: 26629: uint64_t find_table_nanos; 26629: 26629: uint64_t bloom_memtable_hit_count; 26629: 26629: uint64_t bloom_memtable_miss_count; 26629: 26629: uint64_t bloom_sst_hit_count; 26629: 26629: uint64_t bloom_sst_miss_count; 26629: 26629: 26629: uint64_t key_lock_wait_time; 26629: 26629: uint64_t key_lock_wait_count; 26629: 26629: 26629: 26629: uint64_t env_new_sequential_file_nanos; 26629: uint64_t env_new_random_access_file_nanos; 26629: uint64_t env_new_writable_file_nanos; 26629: uint64_t env_reuse_writable_file_nanos; 26629: uint64_t env_new_random_rw_file_nanos; 26629: uint64_t env_new_directory_nanos; 26629: uint64_t env_file_exists_nanos; 26629: uint64_t env_get_children_nanos; 26629: uint64_t env_get_children_file_attributes_nanos; 26629: uint64_t env_delete_file_nanos; 26629: uint64_t env_create_dir_nanos; 26629: uint64_t env_create_dir_if_missing_nanos; 26629: uint64_t env_delete_dir_nanos; 26629: uint64_t env_get_file_size_nanos; 26629: uint64_t env_get_file_modification_time_nanos; 26629: uint64_t env_rename_file_nanos; 26629: uint64_t env_link_file_nanos; 26629: uint64_t env_lock_file_nanos; 26629: uint64_t env_unlock_file_nanos; 26629: uint64_t env_new_logger_nanos; 26629: 26629: uint64_t get_cpu_nanos; 26629: uint64_t iter_next_cpu_nanos; 26629: uint64_t iter_prev_cpu_nanos; 26629: uint64_t iter_seek_cpu_nanos; 26629: 26629: 26629: uint64_t encrypt_data_nanos; 26629: 26629: uint64_t decrypt_data_nanos; 26629: 26629: uint64_t number_async_seek; 26629: 26629: std::map* level_to_perf_context = nullptr; 26629: bool per_level_perf_context_enabled = false; 26629: }; 26629: # 271 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/perf_context.h" 26629: PerfContext* get_perf_context(); 26629: 26629: } 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_context_imp.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/stop_watch.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: class StopWatch { 26629: public: 26629: StopWatch(SystemClock* clock, Statistics* statistics, 26629: const uint32_t hist_type, uint64_t* elapsed = nullptr, 26629: bool overwrite = true, bool delay_enabled = false) 26629: : clock_(clock), 26629: statistics_(statistics), 26629: hist_type_(hist_type), 26629: elapsed_(elapsed), 26629: overwrite_(overwrite), 26629: stats_enabled_(statistics && 26629: statistics->get_stats_level() >= 26629: StatsLevel::kExceptTimers && 26629: statistics->HistEnabledForType(hist_type)), 26629: delay_enabled_(delay_enabled), 26629: total_delay_(0), 26629: delay_start_time_(0), 26629: start_time_((stats_enabled_ || elapsed != nullptr) ? clock->NowMicros() 26629: : 0) {} 26629: 26629: ~StopWatch() { 26629: if (elapsed_) { 26629: if (overwrite_) { 26629: *elapsed_ = clock_->NowMicros() - start_time_; 26629: } else { 26629: *elapsed_ += clock_->NowMicros() - start_time_; 26629: } 26629: } 26629: if (elapsed_ && delay_enabled_) { 26629: *elapsed_ -= total_delay_; 26629: } 26629: if (stats_enabled_) { 26629: statistics_->reportTimeToHistogram( 26629: hist_type_, (elapsed_ != nullptr) 26629: ? *elapsed_ 26629: : (clock_->NowMicros() - start_time_)); 26629: } 26629: } 26629: 26629: void DelayStart() { 26629: 26629: 26629: if (elapsed_ && delay_enabled_ && delay_start_time_ == 0) { 26629: delay_start_time_ = clock_->NowMicros(); 26629: } 26629: } 26629: 26629: void DelayStop() { 26629: if (elapsed_ && delay_enabled_ && delay_start_time_ != 0) { 26629: total_delay_ += clock_->NowMicros() - delay_start_time_; 26629: } 26629: 26629: 26629: delay_start_time_ = 0; 26629: } 26629: 26629: uint64_t GetDelay() const { return delay_enabled_ ? total_delay_ : 0; } 26629: 26629: uint64_t start_time() const { return start_time_; } 26629: 26629: private: 26629: SystemClock* clock_; 26629: Statistics* statistics_; 26629: const uint32_t hist_type_; 26629: uint64_t* elapsed_; 26629: bool overwrite_; 26629: bool stats_enabled_; 26629: bool delay_enabled_; 26629: uint64_t total_delay_; 26629: uint64_t delay_start_time_; 26629: const uint64_t start_time_; 26629: }; 26629: 26629: 26629: class StopWatchNano { 26629: public: 26629: explicit StopWatchNano(SystemClock* clock, bool auto_start = false) 26629: : clock_(clock), start_(0) { 26629: if (auto_start) { 26629: Start(); 26629: } 26629: } 26629: 26629: void Start() { start_ = clock_->NowNanos(); } 26629: 26629: uint64_t ElapsedNanos(bool reset = false) { 26629: auto now = clock_->NowNanos(); 26629: auto elapsed = now - start_; 26629: if (reset) { 26629: start_ = now; 26629: } 26629: return elapsed; 26629: } 26629: 26629: uint64_t ElapsedNanosSafe(bool reset = false) { 26629: return (clock_ != nullptr) ? ElapsedNanos(reset) : 0U; 26629: } 26629: 26629: private: 26629: SystemClock* clock_; 26629: uint64_t start_; 26629: }; 26629: 26629: } 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_context_imp.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern thread_local PerfContext perf_context; 26629: # 96 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_context_imp.h" 26629: } 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/util/user_comparator_wrapper.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: class UserComparatorWrapper { 26629: public: 26629: 26629: 26629: UserComparatorWrapper() : user_comparator_(nullptr) {} 26629: 26629: explicit UserComparatorWrapper(const Comparator* const user_cmp) 26629: : user_comparator_(user_cmp) {} 26629: 26629: ~UserComparatorWrapper() = default; 26629: 26629: const Comparator* user_comparator() const { return user_comparator_; } 26629: 26629: int Compare(const Slice& a, const Slice& b) const { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 26629: return user_comparator_->Compare(a, b); 26629: } 26629: 26629: bool Equal(const Slice& a, const Slice& b) const { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 26629: return user_comparator_->Equal(a, b); 26629: } 26629: 26629: int CompareTimestamp(const Slice& ts1, const Slice& ts2) const { 26629: return user_comparator_->CompareTimestamp(ts1, ts2); 26629: } 26629: 26629: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 26629: return user_comparator_->CompareWithoutTimestamp(a, b); 26629: } 26629: 26629: int CompareWithoutTimestamp(const Slice& a, bool a_has_ts, const Slice& b, 26629: bool b_has_ts) const { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 26629: return user_comparator_->CompareWithoutTimestamp(a, a_has_ts, b, b_has_ts); 26629: } 26629: 26629: bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 26629: return user_comparator_->EqualWithoutTimestamp(a, b); 26629: } 26629: 26629: private: 26629: const Comparator* user_comparator_; 26629: }; 26629: 26629: } 26629: # 23 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class InternalKey; 26629: 26629: 26629: 26629: 26629: 26629: 26629: enum ValueType : unsigned char { 26629: kTypeDeletion = 0x0, 26629: kTypeValue = 0x1, 26629: kTypeMerge = 0x2, 26629: kTypeLogData = 0x3, 26629: kTypeColumnFamilyDeletion = 0x4, 26629: kTypeColumnFamilyValue = 0x5, 26629: kTypeColumnFamilyMerge = 0x6, 26629: kTypeSingleDeletion = 0x7, 26629: kTypeColumnFamilySingleDeletion = 0x8, 26629: kTypeBeginPrepareXID = 0x9, 26629: kTypeEndPrepareXID = 0xA, 26629: kTypeCommitXID = 0xB, 26629: kTypeRollbackXID = 0xC, 26629: kTypeNoop = 0xD, 26629: kTypeColumnFamilyRangeDeletion = 0xE, 26629: kTypeRangeDeletion = 0xF, 26629: kTypeColumnFamilyBlobIndex = 0x10, 26629: kTypeBlobIndex = 0x11, 26629: 26629: 26629: 26629: 26629: kTypeBeginPersistedPrepareXID = 0x12, 26629: 26629: 26629: 26629: kTypeBeginUnprepareXID = 0x13, 26629: kTypeDeletionWithTimestamp = 0x14, 26629: kTypeCommitXIDAndTimestamp = 0x15, 26629: kTypeWideColumnEntity = 0x16, 26629: kTypeColumnFamilyWideColumnEntity = 0x17, 26629: kTypeMaxValid, 26629: 26629: kMaxValue = 0x7F 26629: }; 26629: 26629: 26629: extern const ValueType kValueTypeForSeek; 26629: extern const ValueType kValueTypeForSeekForPrev; 26629: 26629: 26629: 26629: inline bool IsValueType(ValueType t) { 26629: return t <= kTypeMerge || kTypeSingleDeletion == t || kTypeBlobIndex == t || 26629: kTypeDeletionWithTimestamp == t || kTypeWideColumnEntity == t; 26629: } 26629: 26629: 26629: 26629: inline bool IsExtendedValueType(ValueType t) { 26629: return IsValueType(t) || t == kTypeRangeDeletion; 26629: } 26629: 26629: 26629: 26629: static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1); 26629: 26629: static const SequenceNumber kDisableGlobalSequenceNumber = 26629: std::numeric_limits::max(); 26629: 26629: constexpr uint64_t kNumInternalBytes = 8; 26629: 26629: 26629: extern const std::string kDisableUserTimestamp; 26629: 26629: 26629: 26629: struct ParsedInternalKey { 26629: Slice user_key; 26629: SequenceNumber sequence; 26629: ValueType type; 26629: 26629: ParsedInternalKey() 26629: : sequence(kMaxSequenceNumber), 26629: type(kTypeDeletion) 26629: {} 26629: 26629: ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) 26629: : user_key(u), sequence(seq), type(t) {} 26629: std::string DebugString(bool log_err_key, bool hex) const; 26629: 26629: void clear() { 26629: user_key.clear(); 26629: sequence = 0; 26629: type = kTypeDeletion; 26629: } 26629: 26629: void SetTimestamp(const Slice& ts) { 26629: 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ts.size() <= user_key.size() 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "ts.size() <= user_key.size()" 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 128, __extension__ __PRETTY_FUNCTION__)) 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: const char* addr = user_key.data() + user_key.size() - ts.size(); 26629: memcpy(const_cast(addr), ts.data(), ts.size()); 26629: } 26629: }; 26629: 26629: 26629: inline size_t InternalKeyEncodingLength(const ParsedInternalKey& key) { 26629: return key.user_key.size() + kNumInternalBytes; 26629: } 26629: 26629: 26629: inline uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { 26629: 26629: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: seq <= kMaxSequenceNumber 26629: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "seq <= kMaxSequenceNumber" 26629: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 141, __extension__ __PRETTY_FUNCTION__)) 26629: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: 26629: 26629: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: IsExtendedValueType(t) || t == kTypeMaxValid 26629: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "IsExtendedValueType(t) || t == kTypeMaxValid" 26629: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 143, __extension__ __PRETTY_FUNCTION__)) 26629: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: return (seq << 8) | t; 26629: } 26629: 26629: 26629: 26629: inline void UnPackSequenceAndType(uint64_t packed, uint64_t* seq, 26629: ValueType* t) { 26629: *seq = packed >> 8; 26629: *t = static_cast(packed & 0xff); 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: EntryType GetEntryType(ValueType value_type); 26629: 26629: 26629: extern void AppendInternalKey(std::string* result, 26629: const ParsedInternalKey& key); 26629: 26629: 26629: 26629: extern void AppendInternalKeyWithDifferentTimestamp( 26629: std::string* result, const ParsedInternalKey& key, const Slice& ts); 26629: 26629: 26629: 26629: 26629: extern void AppendInternalKeyFooter(std::string* result, SequenceNumber s, 26629: ValueType t); 26629: 26629: 26629: extern void AppendKeyWithMinTimestamp(std::string* result, const Slice& key, 26629: size_t ts_sz); 26629: 26629: 26629: extern void AppendKeyWithMaxTimestamp(std::string* result, const Slice& key, 26629: size_t ts_sz); 26629: 26629: 26629: 26629: extern void AppendUserKeyWithMaxTimestamp(std::string* result, const Slice& key, 26629: size_t ts_sz); 26629: 26629: 26629: 26629: 26629: 26629: extern Status ParseInternalKey(const Slice& internal_key, 26629: ParsedInternalKey* result, bool log_err_key); 26629: 26629: 26629: inline Slice ExtractUserKey(const Slice& internal_key) { 26629: 26629: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: internal_key.size() >= kNumInternalBytes 26629: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "internal_key.size() >= kNumInternalBytes" 26629: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 199, __extension__ __PRETTY_FUNCTION__)) 26629: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: return Slice(internal_key.data(), internal_key.size() - kNumInternalBytes); 26629: } 26629: 26629: inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, 26629: size_t ts_sz) { 26629: Slice ret = internal_key; 26629: ret.remove_suffix(kNumInternalBytes + ts_sz); 26629: return ret; 26629: } 26629: 26629: inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 26629: Slice ret = user_key; 26629: ret.remove_suffix(ts_sz); 26629: return ret; 26629: } 26629: 26629: inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 26629: 26629: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: user_key.size() >= ts_sz 26629: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "user_key.size() >= ts_sz" 26629: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 217, __extension__ __PRETTY_FUNCTION__)) 26629: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); 26629: } 26629: 26629: inline Slice ExtractTimestampFromKey(const Slice& internal_key, size_t ts_sz) { 26629: const size_t key_size = internal_key.size(); 26629: 26629: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: key_size >= kNumInternalBytes + ts_sz 26629: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "key_size >= kNumInternalBytes + ts_sz" 26629: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 223, __extension__ __PRETTY_FUNCTION__)) 26629: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: return Slice(internal_key.data() + key_size - ts_sz - kNumInternalBytes, 26629: ts_sz); 26629: } 26629: 26629: inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { 26629: 26629: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: internal_key.size() >= kNumInternalBytes 26629: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "internal_key.size() >= kNumInternalBytes" 26629: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 229, __extension__ __PRETTY_FUNCTION__)) 26629: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: const size_t n = internal_key.size(); 26629: return DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 26629: } 26629: 26629: inline ValueType ExtractValueType(const Slice& internal_key) { 26629: uint64_t num = ExtractInternalKeyFooter(internal_key); 26629: unsigned char c = num & 0xff; 26629: return static_cast(c); 26629: } 26629: 26629: 26629: 26629: class InternalKeyComparator 26629: 26629: 26629: 26629: : public CompareInterface { 26629: private: 26629: UserComparatorWrapper user_comparator_; 26629: 26629: public: 26629: 26629: 26629: InternalKeyComparator() = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit InternalKeyComparator(const Comparator* c) : user_comparator_(c) {} 26629: virtual ~InternalKeyComparator() {} 26629: 26629: int Compare(const Slice& a, const Slice& b) const override; 26629: 26629: bool Equal(const Slice& a, const Slice& b) const { 26629: 26629: 26629: return Compare(a, b) == 0; 26629: } 26629: 26629: 26629: int CompareKeySeq(const Slice& a, const Slice& b) const; 26629: 26629: const Comparator* user_comparator() const { 26629: return user_comparator_.user_comparator(); 26629: } 26629: 26629: int Compare(const InternalKey& a, const InternalKey& b) const; 26629: int Compare(const ParsedInternalKey& a, const ParsedInternalKey& b) const; 26629: 26629: 26629: 26629: 26629: int Compare(const Slice& a, SequenceNumber a_global_seqno, const Slice& b, 26629: SequenceNumber b_global_seqno) const; 26629: }; 26629: 26629: 26629: class InternalKey { 26629: private: 26629: std::string rep_; 26629: 26629: public: 26629: InternalKey() {} 26629: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { 26629: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, s, t)); 26629: } 26629: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t, Slice ts) { 26629: AppendInternalKeyWithDifferentTimestamp( 26629: &rep_, ParsedInternalKey(_user_key, s, t), ts); 26629: } 26629: 26629: 26629: 26629: void SetMaxPossibleForUserKey(const Slice& _user_key) { 26629: AppendInternalKey( 26629: &rep_, ParsedInternalKey(_user_key, 0, static_cast(0))); 26629: } 26629: 26629: 26629: 26629: void SetMinPossibleForUserKey(const Slice& _user_key) { 26629: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, 26629: kValueTypeForSeek)); 26629: } 26629: 26629: bool Valid() const { 26629: ParsedInternalKey parsed; 26629: return (ParseInternalKey(Slice(rep_), &parsed, false ) 26629: .ok()); 26629: } 26629: 26629: void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } 26629: Slice Encode() const { 26629: 26629: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: !rep_.empty() 26629: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "!rep_.empty()" 26629: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 325, __extension__ __PRETTY_FUNCTION__)) 26629: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: return rep_; 26629: } 26629: 26629: Slice user_key() const { return ExtractUserKey(rep_); } 26629: size_t size() const { return rep_.size(); } 26629: 26629: void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { 26629: SetFrom(ParsedInternalKey(_user_key, s, t)); 26629: } 26629: 26629: void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t, 26629: const Slice& ts) { 26629: ParsedInternalKey pik = ParsedInternalKey(_user_key_with_ts, s, t); 26629: 26629: 26629: SetFrom(pik, ts); 26629: } 26629: 26629: void SetFrom(const ParsedInternalKey& p) { 26629: rep_.clear(); 26629: AppendInternalKey(&rep_, p); 26629: } 26629: 26629: void SetFrom(const ParsedInternalKey& p, const Slice& ts) { 26629: rep_.clear(); 26629: AppendInternalKeyWithDifferentTimestamp(&rep_, p, ts); 26629: } 26629: 26629: void Clear() { rep_.clear(); } 26629: 26629: 26629: 26629: std::string* rep() { return &rep_; } 26629: 26629: 26629: 26629: void ConvertFromUserKey(SequenceNumber s, ValueType t) { 26629: AppendInternalKeyFooter(&rep_, s, t); 26629: } 26629: 26629: std::string DebugString(bool hex) const; 26629: }; 26629: 26629: inline int InternalKeyComparator::Compare(const InternalKey& a, 26629: const InternalKey& b) const { 26629: return Compare(a.Encode(), b.Encode()); 26629: } 26629: 26629: inline Status ParseInternalKey(const Slice& internal_key, 26629: ParsedInternalKey* result, bool log_err_key) { 26629: const size_t n = internal_key.size(); 26629: 26629: if (n < kNumInternalBytes) { 26629: return Status::Corruption("Corrupted Key: Internal Key too small. Size=" + 26629: std::to_string(n) + ". "); 26629: } 26629: 26629: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 26629: unsigned char c = num & 0xff; 26629: result->sequence = num >> 8; 26629: result->type = static_cast(c); 26629: 26629: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: result->type <= ValueType::kMaxValue 26629: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "result->type <= ValueType::kMaxValue" 26629: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 387, __extension__ __PRETTY_FUNCTION__)) 26629: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: result->user_key = Slice(internal_key.data(), n - kNumInternalBytes); 26629: 26629: if (IsExtendedValueType(result->type)) { 26629: return Status::OK(); 26629: } else { 26629: return Status::Corruption("Corrupted Key", 26629: result->DebugString(log_err_key, true)); 26629: } 26629: } 26629: 26629: 26629: 26629: inline void UpdateInternalKey(std::string* ikey, uint64_t seq, ValueType t) { 26629: size_t ikey_sz = ikey->size(); 26629: 26629: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ikey_sz >= kNumInternalBytes 26629: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "ikey_sz >= kNumInternalBytes" 26629: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 402, __extension__ __PRETTY_FUNCTION__)) 26629: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: uint64_t newval = (seq << 8) | t; 26629: 26629: 26629: 26629: EncodeFixed64(&(*ikey)[ikey_sz - kNumInternalBytes], newval); 26629: } 26629: 26629: 26629: inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { 26629: const size_t n = internal_key.size(); 26629: 26629: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: n >= kNumInternalBytes 26629: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "n >= kNumInternalBytes" 26629: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 413, __extension__ __PRETTY_FUNCTION__)) 26629: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 26629: return num >> 8; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class IterKey { 26629: public: 26629: IterKey() 26629: : buf_(space_), 26629: key_(buf_), 26629: key_size_(0), 26629: buf_size_(sizeof(space_)), 26629: is_user_key_(true) {} 26629: 26629: IterKey(const IterKey&) = delete; 26629: void operator=(const IterKey&) = delete; 26629: 26629: ~IterKey() { ResetBuffer(); } 26629: 26629: 26629: void SetIsUserKey(bool is_user_key) { is_user_key_ = is_user_key; } 26629: 26629: 26629: Slice GetKey() const { return Slice(key_, key_size_); } 26629: 26629: Slice GetInternalKey() const { 26629: 26629: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: !IsUserKey() 26629: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "!IsUserKey()" 26629: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 445, __extension__ __PRETTY_FUNCTION__)) 26629: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: return Slice(key_, key_size_); 26629: } 26629: 26629: Slice GetUserKey() const { 26629: if (IsUserKey()) { 26629: return Slice(key_, key_size_); 26629: } else { 26629: 26629: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: key_size_ >= kNumInternalBytes 26629: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "key_size_ >= kNumInternalBytes" 26629: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 453, __extension__ __PRETTY_FUNCTION__)) 26629: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: return Slice(key_, key_size_ - kNumInternalBytes); 26629: } 26629: } 26629: 26629: size_t Size() const { return key_size_; } 26629: 26629: void Clear() { key_size_ = 0; } 26629: 26629: 26629: 26629: 26629: 26629: void TrimAppend(const size_t shared_len, const char* non_shared_data, 26629: const size_t non_shared_len) { 26629: 26629: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: shared_len <= key_size_ 26629: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "shared_len <= key_size_" 26629: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 468, __extension__ __PRETTY_FUNCTION__)) 26629: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: size_t total_size = shared_len + non_shared_len; 26629: 26629: if (IsKeyPinned() ) { 26629: 26629: EnlargeBufferIfNeeded(total_size); 26629: memcpy(buf_, key_, shared_len); 26629: } else if (total_size > buf_size_) { 26629: 26629: char* p = new char[total_size]; 26629: memcpy(p, key_, shared_len); 26629: 26629: if (buf_ != space_) { 26629: delete[] buf_; 26629: } 26629: 26629: buf_ = p; 26629: buf_size_ = total_size; 26629: } 26629: 26629: memcpy(buf_ + shared_len, non_shared_data, non_shared_len); 26629: key_ = buf_; 26629: key_size_ = total_size; 26629: } 26629: 26629: Slice SetKey(const Slice& key, bool copy = true) { 26629: 26629: return SetKeyImpl(key, copy); 26629: } 26629: 26629: Slice SetUserKey(const Slice& key, bool copy = true) { 26629: is_user_key_ = true; 26629: return SetKeyImpl(key, copy); 26629: } 26629: 26629: Slice SetInternalKey(const Slice& key, bool copy = true) { 26629: is_user_key_ = false; 26629: return SetKeyImpl(key, copy); 26629: } 26629: 26629: 26629: 26629: Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { 26629: size_t key_n = key.size(); 26629: 26629: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: key_n >= kNumInternalBytes 26629: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "key_n >= kNumInternalBytes" 26629: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 512, __extension__ __PRETTY_FUNCTION__)) 26629: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: SetInternalKey(key); 26629: ikey->user_key = Slice(key_, key_n - kNumInternalBytes); 26629: return Slice(key_, key_n); 26629: } 26629: 26629: 26629: void OwnKey() { 26629: 26629: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: IsKeyPinned() == true 26629: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "IsKeyPinned() == true" 26629: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 520, __extension__ __PRETTY_FUNCTION__)) 26629: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: 26629: Reserve(key_size_); 26629: memcpy(buf_, key_, key_size_); 26629: key_ = buf_; 26629: } 26629: 26629: 26629: 26629: void UpdateInternalKey(uint64_t seq, ValueType t, const Slice* ts = nullptr) { 26629: 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: !IsKeyPinned() 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "!IsKeyPinned()" 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 530, __extension__ __PRETTY_FUNCTION__)) 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: 26629: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: key_size_ >= kNumInternalBytes 26629: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "key_size_ >= kNumInternalBytes" 26629: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 531, __extension__ __PRETTY_FUNCTION__)) 26629: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: if (ts) { 26629: 26629: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: key_size_ >= kNumInternalBytes + ts->size() 26629: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "key_size_ >= kNumInternalBytes + ts->size()" 26629: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 533, __extension__ __PRETTY_FUNCTION__)) 26629: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: memcpy(&buf_[key_size_ - kNumInternalBytes - ts->size()], ts->data(), 26629: ts->size()); 26629: } 26629: uint64_t newval = (seq << 8) | t; 26629: EncodeFixed64(&buf_[key_size_ - kNumInternalBytes], newval); 26629: } 26629: 26629: bool IsKeyPinned() const { return (key_ != buf_); } 26629: 26629: 26629: 26629: 26629: void SetInternalKey(const Slice& key_prefix, const Slice& user_key, 26629: SequenceNumber s, 26629: ValueType value_type = kValueTypeForSeek, 26629: const Slice* ts = nullptr) { 26629: size_t psize = key_prefix.size(); 26629: size_t usize = user_key.size(); 26629: size_t ts_sz = (ts != nullptr ? ts->size() : 0); 26629: EnlargeBufferIfNeeded(psize + usize + sizeof(uint64_t) + ts_sz); 26629: if (psize > 0) { 26629: memcpy(buf_, key_prefix.data(), psize); 26629: } 26629: memcpy(buf_ + psize, user_key.data(), usize); 26629: if (ts) { 26629: memcpy(buf_ + psize + usize, ts->data(), ts_sz); 26629: } 26629: EncodeFixed64(buf_ + usize + psize + ts_sz, 26629: PackSequenceAndType(s, value_type)); 26629: 26629: key_ = buf_; 26629: key_size_ = psize + usize + sizeof(uint64_t) + ts_sz; 26629: is_user_key_ = false; 26629: } 26629: 26629: void SetInternalKey(const Slice& user_key, SequenceNumber s, 26629: ValueType value_type = kValueTypeForSeek, 26629: const Slice* ts = nullptr) { 26629: SetInternalKey(Slice(), user_key, s, value_type, ts); 26629: } 26629: 26629: void Reserve(size_t size) { 26629: EnlargeBufferIfNeeded(size); 26629: key_size_ = size; 26629: } 26629: 26629: void SetInternalKey(const ParsedInternalKey& parsed_key) { 26629: SetInternalKey(Slice(), parsed_key); 26629: } 26629: 26629: void SetInternalKey(const Slice& key_prefix, 26629: const ParsedInternalKey& parsed_key_suffix) { 26629: SetInternalKey(key_prefix, parsed_key_suffix.user_key, 26629: parsed_key_suffix.sequence, parsed_key_suffix.type); 26629: } 26629: 26629: void EncodeLengthPrefixedKey(const Slice& key) { 26629: auto size = key.size(); 26629: EnlargeBufferIfNeeded(size + static_cast(VarintLength(size))); 26629: char* ptr = EncodeVarint32(buf_, static_cast(size)); 26629: memcpy(ptr, key.data(), size); 26629: key_ = buf_; 26629: is_user_key_ = true; 26629: } 26629: 26629: bool IsUserKey() const { return is_user_key_; } 26629: 26629: private: 26629: char* buf_; 26629: const char* key_; 26629: size_t key_size_; 26629: size_t buf_size_; 26629: char space_[32]; 26629: bool is_user_key_; 26629: 26629: Slice SetKeyImpl(const Slice& key, bool copy) { 26629: size_t size = key.size(); 26629: if (copy) { 26629: 26629: EnlargeBufferIfNeeded(size); 26629: memcpy(buf_, key.data(), size); 26629: key_ = buf_; 26629: } else { 26629: 26629: key_ = key.data(); 26629: } 26629: key_size_ = size; 26629: return Slice(key_, key_size_); 26629: } 26629: 26629: void ResetBuffer() { 26629: if (buf_ != space_) { 26629: delete[] buf_; 26629: buf_ = space_; 26629: } 26629: buf_size_ = sizeof(space_); 26629: key_size_ = 0; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: void EnlargeBufferIfNeeded(size_t key_size) { 26629: 26629: 26629: if (key_size > buf_size_) { 26629: EnlargeBuffer(key_size); 26629: } 26629: } 26629: 26629: void EnlargeBuffer(size_t key_size); 26629: }; 26629: 26629: 26629: 26629: class InternalKeySliceTransform : public SliceTransform { 26629: public: 26629: explicit InternalKeySliceTransform(const SliceTransform* transform) 26629: : transform_(transform) {} 26629: 26629: virtual const char* Name() const override { return transform_->Name(); } 26629: 26629: virtual Slice Transform(const Slice& src) const override { 26629: auto user_key = ExtractUserKey(src); 26629: return transform_->Transform(user_key); 26629: } 26629: 26629: virtual bool InDomain(const Slice& src) const override { 26629: auto user_key = ExtractUserKey(src); 26629: return transform_->InDomain(user_key); 26629: } 26629: 26629: virtual bool InRange(const Slice& dst) const override { 26629: auto user_key = ExtractUserKey(dst); 26629: return transform_->InRange(user_key); 26629: } 26629: 26629: const SliceTransform* user_prefix_extractor() const { return transform_; } 26629: 26629: private: 26629: 26629: 26629: const SliceTransform* const transform_; 26629: }; 26629: 26629: 26629: 26629: 26629: extern bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key, 26629: bool cf_record); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern Status ReadRecordFromWriteBatch(Slice* input, char* tag, 26629: uint32_t* column_family, Slice* key, 26629: Slice* value, Slice* blob, Slice* xid); 26629: 26629: 26629: 26629: 26629: 26629: struct RangeTombstone { 26629: Slice start_key_; 26629: Slice end_key_; 26629: SequenceNumber seq_; 26629: 26629: 26629: Slice ts_; 26629: std::string pinned_start_key_; 26629: std::string pinned_end_key_; 26629: 26629: RangeTombstone() = default; 26629: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) 26629: : start_key_(sk), end_key_(ek), seq_(sn) {} 26629: 26629: 26629: 26629: 26629: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn, Slice ts) 26629: : seq_(sn), ts_(ts) { 26629: 26629: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: (static_cast ( 26629: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: !ts.empty() 26629: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: "!ts.empty()" 26629: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 26629: , "./db/dbformat.h", 719, __extension__ __PRETTY_FUNCTION__)) 26629: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: ; 26629: pinned_start_key_.reserve(sk.size()); 26629: pinned_start_key_.append(sk.data(), sk.size() - ts.size()); 26629: pinned_start_key_.append(ts.data(), ts.size()); 26629: pinned_end_key_.reserve(ek.size()); 26629: pinned_end_key_.append(ek.data(), ek.size() - ts.size()); 26629: pinned_end_key_.append(ts.data(), ts.size()); 26629: start_key_ = pinned_start_key_; 26629: end_key_ = pinned_end_key_; 26629: } 26629: 26629: RangeTombstone(ParsedInternalKey parsed_key, Slice value) { 26629: start_key_ = parsed_key.user_key; 26629: seq_ = parsed_key.sequence; 26629: end_key_ = value; 26629: } 26629: 26629: 26629: std::pair Serialize() const { 26629: auto key = InternalKey(start_key_, seq_, kTypeRangeDeletion); 26629: return std::make_pair(std::move(key), end_key_); 26629: } 26629: 26629: 26629: InternalKey SerializeKey() const { 26629: return InternalKey(start_key_, seq_, kTypeRangeDeletion); 26629: } 26629: # 754 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 26629: InternalKey SerializeEndKey() const { 26629: if (!ts_.empty()) { 26629: static constexpr char kTsMax[] = "\xff\xff\xff\xff\xff\xff\xff\xff\xff"; 26629: if (ts_.size() <= strlen(kTsMax)) { 26629: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 26629: Slice(kTsMax, ts_.size())); 26629: } else { 26629: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 26629: std::string(ts_.size(), '\xff')); 26629: } 26629: } 26629: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion); 26629: } 26629: }; 26629: 26629: inline int InternalKeyComparator::Compare(const Slice& akey, 26629: const Slice& bkey) const { 26629: 26629: 26629: 26629: 26629: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 26629: if (r == 0) { 26629: const uint64_t anum = 26629: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes); 26629: const uint64_t bnum = 26629: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes); 26629: if (anum > bnum) { 26629: r = -1; 26629: } else if (anum < bnum) { 26629: r = +1; 26629: } 26629: } 26629: return r; 26629: } 26629: 26629: inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, 26629: const Slice& bkey) const { 26629: 26629: 26629: 26629: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 26629: if (r == 0) { 26629: 26629: const uint64_t anum = 26629: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes) >> 8; 26629: const uint64_t bnum = 26629: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes) >> 8; 26629: if (anum > bnum) { 26629: r = -1; 26629: } else if (anum < bnum) { 26629: r = +1; 26629: } 26629: } 26629: return r; 26629: } 26629: 26629: inline int InternalKeyComparator::Compare(const Slice& a, 26629: SequenceNumber a_global_seqno, 26629: const Slice& b, 26629: SequenceNumber b_global_seqno) const { 26629: int r = user_comparator_.Compare(ExtractUserKey(a), ExtractUserKey(b)); 26629: if (r == 0) { 26629: uint64_t a_footer, b_footer; 26629: if (a_global_seqno == kDisableGlobalSequenceNumber) { 26629: a_footer = ExtractInternalKeyFooter(a); 26629: } else { 26629: a_footer = PackSequenceAndType(a_global_seqno, ExtractValueType(a)); 26629: } 26629: if (b_global_seqno == kDisableGlobalSequenceNumber) { 26629: b_footer = ExtractInternalKeyFooter(b); 26629: } else { 26629: b_footer = PackSequenceAndType(b_global_seqno, ExtractValueType(b)); 26629: } 26629: if (a_footer > b_footer) { 26629: r = -1; 26629: } else if (a_footer < b_footer) { 26629: r = +1; 26629: } 26629: } 26629: return r; 26629: } 26629: 26629: 26629: struct ParsedInternalKeyComparator { 26629: explicit ParsedInternalKeyComparator(const InternalKeyComparator* c) 26629: : cmp(c) {} 26629: 26629: bool operator()(const ParsedInternalKey& a, 26629: const ParsedInternalKey& b) const { 26629: return cmp->Compare(a, b) < 0; 26629: } 26629: 26629: const InternalKeyComparator* cmp; 26629: }; 26629: 26629: } 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/kv_checksum.h" 1 26629: # 31 "/build/reproducible-path/rocksdb-7.8.3/db/kv_checksum.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/hash.h" 1 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/util/hash.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/fastrange.h" 1 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/util/fastrange.h" 26629: 26629: # 31 "/build/reproducible-path/rocksdb-7.8.3/util/fastrange.h" 26629: namespace rocksdb { 26629: 26629: namespace detail { 26629: 26629: 26629: template 26629: struct FastRangeGenericImpl { 26629: 26629: }; 26629: 26629: template 26629: struct FastRangeGenericImpl { 26629: static inline Range Fn(uint32_t hash, Range range) { 26629: static_assert(std::is_unsigned::value, "must be unsigned"); 26629: static_assert(sizeof(Range) <= sizeof(uint32_t), 26629: "cannot be larger than hash (32 bits)"); 26629: 26629: uint64_t product = uint64_t{range} * hash; 26629: return static_cast(product >> 32); 26629: } 26629: }; 26629: 26629: template 26629: struct FastRangeGenericImpl { 26629: static inline Range Fn(uint64_t hash, Range range) { 26629: static_assert(std::is_unsigned::value, "must be unsigned"); 26629: static_assert(sizeof(Range) <= sizeof(uint64_t), 26629: "cannot be larger than hash (64 bits)"); 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/fastrange.h" 26629: uint64_t range64 = range; 26629: uint64_t tmp = uint64_t{range64 & 0In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_readonly.h:11, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_readonly.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ xffffFFFF} * uint64_t{hash & 0xffffFFFF}; 26629: tmp >>= 32; 26629: tmp += uint64_t{range64 & 0xffffFFFF} * uint64_t{hash >> 32}; 26629: 26629: uint64_t tmp2 = uint64_t{range64 >> 32} * uint64_t{hash & 0xffffFFFF}; 26629: tmp += static_cast(tmp2); 26629: tmp >>= 32; 26629: tmp += (tmp2 >> 32); 26629: tmp += uint64_t{range64 >> 32} * uint64_t{hash >> 32}; 26629: return static_cast(tmp); 26629: 26629: } 26629: }; 26629: 26629: } 26629: # 96 "/build/reproducible-path/rocksdb-7.8.3/util/fastrange.h" 26629: template 26629: inline Range FastRangeGeneric(Hash hash, Range range) { 26629: return detail::FastRangeGenericImpl::Fn(hash, range); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: inline size_t FastRange64(uint64_t hash, size_t range) { 26629: return FastRangeGeneric(hash, range); 26629: } 26629: 26629: 26629: inline uint32_t FastRange32(uint32_t hash, uint32_t range) { 26629: return FastRangeGeneric(hash, range); 26629: } 26629: 26629: } 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/util/hash.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: extern uint64_t Hash64(const char* data, size_t n, uint64_t seed); 26629: 26629: 26629: extern uint64_t Hash64(const char* data, size_t n); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline uint64_t NPHash64(const char* data, size_t n, uint64_t seed) { 26629: 26629: 26629: 26629: 26629: 26629: return Hash64(data, n, seed); 26629: 26629: } 26629: 26629: 26629: inline uint64_t NPHash64(const char* data, size_t n) { 26629: 26629: 26629: 26629: 26629: 26629: return Hash64(data, n); 26629: 26629: } 26629: 26629: 26629: 26629: void Hash2x64(const char* data, size_t n, uint64_t* high64, uint64_t* low64); 26629: void Hash2x64(const char* data, size_t n, uint64_t seed, uint64_t* high64, 26629: uint64_t* low64); 26629: 26629: 26629: 26629: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, 26629: uint64_t* out_high64, uint64_t* out_low64); 26629: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 26629: uint64_t* out_high64, uint64_t* out_low64); 26629: 26629: 26629: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, 26629: uint64_t* out_high64, uint64_t* out_low64); 26629: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 26629: uint64_t* out_high64, uint64_t* out_low64); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern uint32_t Hash(const char* data, size_t n, uint32_t seed); 26629: 26629: 26629: inline uint32_t BloomHash(const Slice& key) { 26629: return Hash(key.data(), key.size(), 0xbc9f1d34); 26629: } 26629: 26629: inline uint64_t GetSliceHash64(const Slice& key) { 26629: return Hash64(key.data(), key.size()); 26629: } 26629: 26629: 26629: extern uint64_t (*kGetSliceNPHash64UnseededFnPtr)(const Slice&); 26629: 26629: inline uint64_t GetSliceNPHash64(const Slice& s) { 26629: return NPHash64(s.data(), s.size()); 26629: } 26629: 26629: inline uint64_t GetSliceNPHash64(const Slice& s, uint64_t seed) { 26629: return NPHash64(s.data(), s.size(), seed); 26629: } 26629: 26629: 26629: 26629: extern uint64_t GetSlicePartsNPHash64(const SliceParts& data, uint64_t seed); 26629: 26629: inline size_t GetSliceRangedNPHash(const Slice& s, size_t range) { 26629: return FastRange64(NPHash64(s.data(), s.size()), range); 26629: } 26629: 26629: 26629: inline uint32_t GetSliceHash(const Slice& s) { 26629: return Hash(s.data(), s.size(), 397); 26629: } 26629: 26629: 26629: inline uint32_t Upper32of64(uint64_t v) { 26629: return static_cast(v >> 32); 26629: } 26629: inline uint32_t Lower32of64(uint64_t v) { return static_cast(v); } 26629: 26629: 26629: 26629: struct SliceHasher { 26629: uint32_t operator()(const Slice& s) const { return GetSliceHash(s); } 26629: }; 26629: 26629: } 26629: # 38 "/build/reproducible-path/rocksdb-7.8.3/db/kv_checksum.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: template 26629: class ProtectionInfo; 26629: template 26629: class ProtectionInfoKVO; 26629: template 26629: class ProtectionInfoKVOC; 26629: template 26629: class ProtectionInfoKVOS; 26629: 26629: 26629: using ProtectionInfo64 = ProtectionInfo; 26629: using ProtectionInfoKVO64 = ProtectionInfoKVO; 26629: using ProtectionInfoKVOC64 = ProtectionInfoKVOC; 26629: using ProtectionInfoKVOS64 = ProtectionInfoKVOS; 26629: 26629: template 26629: class ProtectionInfo { 26629: public: 26629: ProtectionInfo() = default; 26629: 26629: Status GetStatus() const; 26629: ProtectionInfoKVO ProtectKVO(const Slice& key, const Slice& value, 26629: ValueType op_type) const; 26629: ProtectionInfoKVO ProtectKVO(const SliceParts& key, 26629: const SliceParts& value, 26629: ValueType op_type) const; 26629: 26629: T GetVal() const { return val_; } 26629: 26629: private: 26629: friend class ProtectionInfoKVO; 26629: friend class ProtectionInfoKVOS; 26629: friend class ProtectionInfoKVOC; 26629: # 82 "/build/reproducible-path/rocksdb-7.8.3/db/kv_checksum.h" 26629: static const uint64_t kSeedK = 0; 26629: static const uint64_t kSeedV = 0xD28AAD72F49BD50B; 26629: static const uint64_t kSeedO = 0xA5155AE5E937AA16; 26629: static const uint64_t kSeedS = 0x77A00858DDD37F21; 26629: static const uint64_t kSeedC = 0x4A2AB5CBD26F542C; 26629: 26629: ProtectionInfo(T val) : val_(val) { 26629: static_assert(sizeof(ProtectionInfo) == sizeof(T), ""); 26629: } 26629: 26629: void SetVal(T val) { val_ = val; } 26629: 26629: T val_ = 0; 26629: }; 26629: 26629: template 26629: class ProtectionInfoKVO { 26629: public: 26629: ProtectionInfoKVO() = default; 26629: 26629: ProtectionInfo StripKVO(const Slice& key, const Slice& value, 26629: ValueType op_type) const; 26629: ProtectionInfo StripKVO(const SliceParts& key, const SliceParts& value, 26629: ValueType op_type) const; 26629: 26629: ProtectionInfoKVOC ProtectC(ColumnFamilyId column_family_id) const; 26629: ProtectionInfoKVOS ProtectS(SequenceNumber sequence_number) const; 26629: 26629: void UpdateK(const Slice& old_key, const Slice& new_key); 26629: void UpdateK(const SliceParts& old_key, const SliceParts& new_key); 26629: void UpdateV(const Slice& old_value, const Slice& new_value); 26629: void UpdateV(const SliceParts& old_value, const SliceParts& new_value); 26629: void UpdateO(ValueType old_op_type, ValueType new_op_type); 26629: 26629: T GetVal() const { return info_.GetVal(); } 26629: 26629: private: 26629: friend class ProtectionInfo; 26629: friend class ProtectionInfoKVOS; 26629: friend class ProtectionInfoKVOC; 26629: 26629: explicit ProtectionInfoKVO(T val) : info_(val) { 26629: static_assert(sizeof(ProtectionInfoKVO) == sizeof(T), ""); 26629: } 26629: 26629: void SetVal(T val) { info_.SetVal(val); } 26629: 26629: ProtectionInfo info_; 26629: }; 26629: 26629: template 26629: class ProtectionInfoKVOC { 26629: public: 26629: ProtectionInfoKVOC() = default; 26629: 26629: ProtectionInfoKVO StripC(ColumnFamilyId column_family_id) const; 26629: 26629: void UpdateK(const Slice& old_key, const Slice& new_key) { 26629: kvo_.UpdateK(old_key, new_key); 26629: } 26629: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 26629: kvo_.UpdateK(old_key, new_key); 26629: } 26629: void UpdateV(const Slice& old_value, const Slice& new_value) { 26629: kvo_.UpdateV(old_value, new_value); 26629: } 26629: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 26629: kvo_.UpdateV(old_value, new_value); 26629: } 26629: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 26629: kvo_.UpdateO(old_op_type, new_op_type); 26629: } 26629: void UpdateC(ColumnFamilyId old_column_family_id, 26629: ColumnFamilyId new_column_family_id); 26629: 26629: T GetVal() const { return kvo_.GetVal(); } 26629: 26629: private: 26629: friend class ProtectionInfoKVO; 26629: 26629: explicit ProtectionInfoKVOC(T val) : kvo_(val) { 26629: static_assert(sizeof(ProtectionInfoKVOC) == sizeof(T), ""); 26629: } 26629: 26629: void SetVal(T val) { kvo_.SetVal(val); } 26629: 26629: ProtectionInfoKVO kvo_; 26629: }; 26629: 26629: template 26629: class ProtectionInfoKVOS { 26629: public: 26629: ProtectionInfoKVOS() = default; 26629: 26629: ProtectionInfoKVO StripS(SequenceNumber sequence_number) const; 26629: 26629: void UpdateK(const Slice& old_key, const Slice& new_key) { 26629: kvo_.UpdateK(old_key, new_key); 26629: } 26629: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 26629: kvo_.UpdateK(old_key, new_key); 26629: } 26629: void UpdateV(const Slice& old_value, const Slice& new_value) { 26629: kvo_.UpdateV(old_value, new_value); 26629: } 26629: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 26629: kvo_.UpdateV(old_value, new_value); 26629: } 26629: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 26629: kvo_.UpdateO(old_op_type, new_op_type); 26629: } 26629: void UpdateS(SequenceNumber old_sequence_number, 26629: SequenceNumber new_sequence_number); 26629: 26629: T GetVal() const { return kvo_.GetVal(); } 26629: 26629: private: 26629: friend class ProtectionInfoKVO; 26629: 26629: explicit ProtectionInfoKVOS(T val) : kvo_(val) { 26629: static_assert(sizeof(ProtectionInfoKVOS) == sizeof(T), ""); 26629: } 26629: 26629: void SetVal(T val) { kvo_.SetVal(val); } 26629: 26629: ProtectionInfoKVO kvo_; 26629: }; 26629: 26629: template 26629: Status ProtectionInfo::GetStatus() const { 26629: if (val_ != 0) { 26629: return Status::Corruption("ProtectionInfo mismatch"); 26629: } 26629: return Status::OK(); 26629: } 26629: 26629: template 26629: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const Slice& key, 26629: const Slice& value, 26629: ValueType op_type) const { 26629: T val = GetVal(); 26629: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 26629: val = 26629: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 26629: val = val ^ 26629: static_cast(NPHash64(reinterpret_cast(&op_type), 26629: sizeof(op_type), ProtectionInfo::kSeedO)); 26629: return ProtectionInfoKVO(val); 26629: } 26629: 26629: template 26629: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const SliceParts& key, 26629: const SliceParts& value, 26629: ValueType op_type) const { 26629: T val = GetVal(); 26629: val = val ^ 26629: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 26629: val = val ^ 26629: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 26629: val = val ^ 26629: static_cast(NPHash64(reinterpret_cast(&op_type), 26629: sizeof(op_type), ProtectionInfo::kSeedO)); 26629: return ProtectionInfoKVO(val); 26629: } 26629: 26629: template 26629: void ProtectionInfoKVO::UpdateK(const Slice& old_key, const Slice& new_key) { 26629: T val = GetVal(); 26629: val = val ^ 26629: static_cast(GetSliceNPHash64(old_key, ProtectionInfo::kSeedK)); 26629: val = val ^ 26629: static_cast(GetSliceNPHash64(new_key, ProtectionInfo::kSeedK)); 26629: SetVal(val); 26629: } 26629: 26629: template 26629: void ProtectionInfoKVO::UpdateK(const SliceParts& old_key, 26629: const SliceParts& new_key) { 26629: T val = GetVal(); 26629: val = val ^ static_cast( 26629: GetSlicePartsNPHash64(old_key, ProtectionInfo::kSeedK)); 26629: val = val ^ static_cast( 26629: GetSlicePartsNPHash64(new_key, ProtectionInfo::kSeedK)); 26629: SetVal(val); 26629: } 26629: 26629: template 26629: void ProtectionInfoKVO::UpdateV(const Slice& old_value, 26629: const Slice& new_value) { 26629: T val = GetVal(); 26629: val = val ^ 26629: static_cast(GetSliceNPHash64(old_value, ProtectionInfo::kSeedV)); 26629: val = val ^ 26629: static_cast(GetSliceNPHash64(new_value, ProtectionInfo::kSeedV)); 26629: SetVal(val); 26629: } 26629: 26629: template 26629: void ProtectionInfoKVO::UpdateV(const SliceParts& old_value, 26629: const SliceParts& new_value) { 26629: T val = GetVal(); 26629: val = val ^ static_cast( 26629: GetSlicePartsNPHash64(old_value, ProtectionInfo::kSeedV)); 26629: val = val ^ static_cast( 26629: GetSlicePartsNPHash64(new_value, ProtectionInfo::kSeedV)); 26629: SetVal(val); 26629: } 26629: 26629: template 26629: void ProtectionInfoKVO::UpdateO(ValueType old_op_type, 26629: ValueType new_op_type) { 26629: T val = GetVal(); 26629: val = val ^ static_cast(NPHash64(reinterpret_cast(&old_op_type), 26629: sizeof(old_op_type), 26629: ProtectionInfo::kSeedO)); 26629: val = val ^ static_cast(NPHash64(reinterpret_cast(&new_op_type), 26629: sizeof(new_op_type), 26629: ProtectionInfo::kSeedO)); 26629: SetVal(val); 26629: } 26629: 26629: template 26629: ProtectionInfo ProtectionInfoKVO::StripKVO(const Slice& key, 26629: const Slice& value, 26629: ValueType op_type) const { 26629: T val = GetVal(); 26629: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 26629: val = 26629: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 26629: val = val ^ 26629: static_cast(NPHash64(reinterpret_cast(&op_type), 26629: sizeof(op_type), ProtectionInfo::kSeedO)); 26629: return ProtectionInfo(val); 26629: } 26629: 26629: template 26629: ProtectionInfo ProtectionInfoKVO::StripKVO(const SliceParts& key, 26629: const SliceParts& value, 26629: ValueType op_type) const { 26629: T val = GetVal(); 26629: val = val ^ 26629: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 26629: val = val ^ 26629: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 26629: val = val ^ 26629: static_cast(NPHash64(reinterpret_cast(&op_type), 26629: sizeof(op_type), ProtectionInfo::kSeedO)); 26629: return ProtectionInfo(val); 26629: } 26629: 26629: template 26629: ProtectionInfoKVOC ProtectionInfoKVO::ProtectC( 26629: ColumnFamilyId column_family_id) const { 26629: T val = GetVal(); 26629: val = val ^ static_cast(NPHash64( 26629: reinterpret_cast(&column_family_id), 26629: sizeof(column_family_id), ProtectionInfo::kSeedC)); 26629: return ProtectionInfoKVOC(val); 26629: } 26629: 26629: template 26629: ProtectionInfoKVO ProtectionInfoKVOC::StripC( 26629: ColumnFamilyId column_family_id) const { 26629: T val = GetVal(); 26629: val = val ^ static_cast(NPHash64( 26629: reinterpret_cast(&column_family_id), 26629: sizeof(column_family_id), ProtectionInfo::kSeedC)); 26629: return ProtectionInfoKVO(val); 26629: } 26629: 26629: template 26629: void ProtectionInfoKVOC::UpdateC(ColumnFamilyId old_column_family_id, 26629: ColumnFamilyId new_column_family_id) { 26629: T val = GetVal(); 26629: val = val ^ static_cast(NPHash64( 26629: reinterpret_cast(&old_column_family_id), 26629: sizeof(old_column_family_id), ProtectionInfo::kSeedC)); 26629: val = val ^ static_cast(NPHash64( 26629: reinterpret_cast(&new_column_family_id), 26629: sizeof(new_column_family_id), ProtectionInfo::kSeedC)); 26629: SetVal(val); 26629: } 26629: 26629: template 26629: ProtectionInfoKVOS ProtectionInfoKVO::ProtectS( 26629: SequenceNumber sequence_number) const { 26629: T val = GetVal(); 26629: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 26629: sizeof(sequence_number), 26629: ProtectionInfo::kSeedS)); 26629: return ProtectionInfoKVOS(val); 26629: } 26629: 26629: template 26629: ProtectionInfoKVO ProtectionInfoKVOS::StripS( 26629: SequenceNumber sequence_number) const { 26629: T val = GetVal(); 26629: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 26629: sizeof(sequence_number), 26629: ProtectionInfo::kSeedS)); 26629: return ProtectionInfoKVO(val); 26629: } 26629: 26629: template 26629: void ProtectionInfoKVOS::UpdateS(SequenceNumber old_sequence_number, 26629: SequenceNumber new_sequence_number) { 26629: T val = GetVal(); 26629: val = val ^ static_cast(NPHash64( 26629: reinterpret_cast(&old_sequence_number), 26629: sizeof(old_sequence_number), ProtectionInfo::kSeedS)); 26629: val = val ^ static_cast(NPHash64( 26629: reinterpret_cast(&new_sequence_number), 26629: sizeof(new_sequence_number), ProtectionInfo::kSeedS)); 26629: SetVal(val); 26629: } 26629: 26629: } 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/set" 1 3 26629: # 58 "/usr/include/c++/12/set" 3 26629: 26629: # 59 "/usr/include/c++/12/set" 3 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/stl_set.h" 1 3 26629: # 64 "/usr/include/c++/12/bits/stl_set.h" 3 26629: 26629: # 64 "/usr/include/c++/12/bits/stl_set.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: class multiset; 26629: # 92 "/usr/include/c++/12/bits/stl_set.h" 3 26629: template, 26629: typename _Alloc = std::allocator<_Key> > 26629: class set 26629: { 26629: # 108 "/usr/include/c++/12/bits/stl_set.h" 3 26629: static_assert(is_same::type, _Key>::value, 26629: "std::set must have a non-const, non-volatile value_type"); 26629: 26629: 26629: 26629: 26629: 26629: 26629: public: 26629: 26629: 26629: 26629: typedef _Key key_type; 26629: typedef _Key value_type; 26629: typedef _Compare key_compare; 26629: typedef _Compare value_compare; 26629: typedef _Alloc allocator_type; 26629: 26629: 26629: private: 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind<_Key>::other _Key_alloc_type; 26629: 26629: typedef _Rb_tree, 26629: key_compare, _Key_alloc_type> _Rep_type; 26629: _Rep_type _M_t; 26629: 26629: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 26629: 26629: public: 26629: 26629: 26629: typedef typename _Alloc_traits::pointer pointer; 26629: typedef typename _Alloc_traits::const_pointer const_pointer; 26629: typedef typename _Alloc_traits::reference reference; 26629: typedef typename _Alloc_traits::const_reference const_reference; 26629: 26629: 26629: 26629: typedef typename _Rep_type::const_iterator iterator; 26629: typedef typename _Rep_type::const_iterator const_iterator; 26629: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 26629: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 26629: typedef typename _Rep_type::size_type size_type; 26629: typedef typename _Rep_type::difference_type difference_type; 26629: 26629: 26629: 26629: using node_type = typename _Rep_type::node_type; 26629: using insert_return_type = typename _Rep_type::insert_return_type; 26629: # 167 "/usr/include/c++/12/bits/stl_set.h" 3 26629: set() = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: set(const _Compare& __comp, 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Key_alloc_type(__a)) { } 26629: # 190 "/usr/include/c++/12/bits/stl_set.h" 3 26629: template 26629: set(_InputIterator __first, _InputIterator __last) 26629: : _M_t() 26629: { _M_t._M_insert_range_unique(__first, __last); } 26629: # 207 "/usr/include/c++/12/bits/stl_set.h" 3 26629: template 26629: set(_InputIterator __first, _InputIterator __last, 26629: const _Compare& __comp, 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Key_alloc_type(__a)) 26629: { _M_t._M_insert_range_unique(__first, __last); } 26629: # 223 "/usr/include/c++/12/bits/stl_set.h" 3 26629: set(const set&) = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: set(set&&) = default; 26629: # 243 "/usr/include/c++/12/bits/stl_set.h" 3 26629: set(initializer_list __l, 26629: const _Compare& __comp = _Compare(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Key_alloc_type(__a)) 26629: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 26629: 26629: 26629: explicit 26629: set(const allocator_type& __a) 26629: : _M_t(_Key_alloc_type(__a)) { } 26629: 26629: 26629: set(const set& __x, const __type_identity_t& __a) 26629: : _M_t(__x._M_t, _Key_alloc_type(__a)) { } 26629: 26629: 26629: set(set&& __x, const __type_identity_t& __a) 26629: noexcept(is_nothrow_copy_constructible<_Compare>::value 26629: && _Alloc_traits::_S_always_equal()) 26629: : _M_t(std::move(__x._M_t), _Key_alloc_type(__a)) { } 26629: 26629: 26629: set(initializer_list __l, const allocator_type& __a) 26629: : _M_t(_Key_alloc_type(__a)) 26629: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 26629: 26629: 26629: template 26629: set(_InputIterator __first, _InputIterator __last, 26629: const allocator_type& __a) 26629: : _M_t(_Key_alloc_type(__a)) 26629: { _M_t._M_insert_range_unique(__first, __last); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: ~set() = default; 26629: # 297 "/usr/include/c++/12/bits/stl_set.h" 3 26629: set& 26629: operator=(const set&) = default; 26629: 26629: 26629: set& 26629: operator=(set&&) = default; 26629: # 315 "/usr/include/c++/12/bits/stl_set.h" 3 26629: set& 26629: operator=(initializer_list __l) 26629: { 26629: _M_t._M_assign_unique(__l.begin(), __l.end()); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: key_compare 26629: key_comp() const 26629: { return _M_t.key_comp(); } 26629: 26629: value_compare 26629: value_comp() const 26629: { return _M_t.key_comp(); } 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return allocator_type(_M_t.get_allocator()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: begin() const noexcept 26629: { return _M_t.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: end() const noexcept 26629: { return _M_t.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: rbegin() const noexcept 26629: { return _M_t.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: rend() const noexcept 26629: { return _M_t.rend(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: cbegin() const noexcept 26629: { return _M_t.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: cend() const noexcept 26629: { return _M_t.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: crbegin() const noexcept 26629: { return _M_t.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: crend() const noexcept 26629: { return _M_t.rend(); } 26629: 26629: 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return _M_t.empty(); } 26629: 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_t.size(); } 26629: 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return _M_t.max_size(); } 26629: # 440 "/usr/include/c++/12/bits/stl_set.h" 3 26629: void 26629: swap(set& __x) 26629: noexcept(__is_nothrow_swappable<_Compare>::value) 26629: { _M_t.swap(__x._M_t); } 26629: # 460 "/usr/include/c++/12/bits/stl_set.h" 3 26629: template 26629: std::pair 26629: emplace(_Args&&... __args) 26629: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 26629: # 486 "/usr/include/c++/12/bits/stl_set.h" 3 26629: template 26629: iterator 26629: emplace_hint(const_iterator __pos, _Args&&... __args) 26629: { 26629: return _M_t._M_emplace_hint_unique(__pos, 26629: std::forward<_Args>(__args)...); 26629: } 26629: # 508 "/usr/include/c++/12/bits/stl_set.h" 3 26629: std::pair 26629: insert(const value_type& __x) 26629: { 26629: std::pair __p = 26629: _M_t._M_insert_unique(__x); 26629: return std::pair(__p.first, __p.second); 26629: } 26629: 26629: 26629: std::pair 26629: insert(value_type&& __x) 26629: { 26629: std::pair __p = 26629: _M_t._M_insert_unique(std::move(__x)); 26629: return std::pair(__p.first, __p.second); 26629: } 26629: # 545 "/usr/include/c++/12/bits/stl_set.h" 3 26629: iterator 26629: insert(const_iterator __position, const value_type& __x) 26629: { return _M_t._M_insert_unique_(__position, __x); } 26629: 26629: 26629: iterator 26629: insert(const_iterator __position, value_type&& __x) 26629: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 26629: # 564 "/usr/include/c++/12/bits/stl_set.h" 3 26629: template 26629: void 26629: insert(_InputIterator __first, _InputIterator __last) 26629: { _M_t._M_insert_range_unique(__first, __last); } 26629: # 577 "/usr/include/c++/12/bits/stl_set.h" 3 26629: void 26629: insert(initializer_list __l) 26629: { this->insert(__l.begin(), __l.end()); } 26629: 26629: 26629: 26629: 26629: node_type 26629: extract(const_iterator __pos) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 26629: return _M_t.extract(__pos); 26629: } 26629: 26629: 26629: node_type 26629: extract(const key_type& __x) 26629: { return _M_t.extract(__x); } 26629: 26629: 26629: insert_return_type 26629: insert(node_type&& __nh) 26629: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 26629: 26629: 26629: iterator 26629: insert(const_iterator __hint, node_type&& __nh) 26629: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 26629: 26629: template 26629: friend struct std::_Rb_tree_merge_helper; 26629: 26629: template 26629: void 26629: merge(set<_Key, _Compare1, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Rb_tree_merge_helper; 26629: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(set<_Key, _Compare1, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: template 26629: void 26629: merge(multiset<_Key, _Compare1, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Rb_tree_merge_helper; 26629: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 26629: { merge(__source); } 26629: # 652 "/usr/include/c++/12/bits/stl_set.h" 3 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iterator 26629: erase(const_iterator __position) 26629: { return _M_t.erase(__position); } 26629: # 683 "/usr/include/c++/12/bits/stl_set.h" 3 26629: size_type 26629: erase(const key_type& __x) 26629: { return _M_t.erase(__x); } 26629: # 704 "/usr/include/c++/12/bits/stl_set.h" 3 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iterator 26629: erase(const_iterator __first, const_iterator __last) 26629: { return _M_t.erase(__first, __last); } 26629: # 732 "/usr/include/c++/12/bits/stl_set.h" 3 26629: void 26629: clear() noexcept 26629: { _M_t.clear(); } 26629: # 747 "/usr/include/c++/12/bits/stl_set.h" 3 26629: size_type 26629: count(const key_type& __x) const 26629: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 26629: 26629: 26629: template 26629: auto 26629: count(const _Kt& __x) const 26629: -> decltype(_M_t._M_count_tr(__x)) 26629: { return _M_t._M_count_tr(__x); } 26629: # 793 "/usr/include/c++/12/bits/stl_set.h" 3 26629: iterator 26629: find(const key_type& __x) 26629: { return _M_t.find(__x); } 26629: 26629: const_iterator 26629: find(const key_type& __x) const 26629: { return _M_t.find(__x); } 26629: 26629: 26629: template 26629: auto 26629: find(const _Kt& __x) 26629: -> decltype(iterator{_M_t._M_find_tr(__x)}) 26629: { return iterator{_M_t._M_find_tr(__x)}; } 26629: 26629: template 26629: auto 26629: find(const _Kt& __x) const 26629: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 26629: { return const_iterator{_M_t._M_find_tr(__x)}; } 26629: # 828 "/usr/include/c++/12/bits/stl_set.h" 3 26629: iterator 26629: lower_bound(const key_type& __x) 26629: { return _M_t.lower_bound(__x); } 26629: 26629: const_iterator 26629: lower_bound(const key_type& __x) const 26629: { return _M_t.lower_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: lower_bound(const _Kt& __x) 26629: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 26629: { return iterator(_M_t._M_lower_bound_tr(__x)); } 26629: 26629: template 26629: auto 26629: lower_bound(const _Kt& __x) const 26629: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 26629: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 26629: # 858 "/usr/include/c++/12/bits/stl_set.h" 3 26629: iterator 26629: upper_bound(const key_type& __x) 26629: { return _M_t.upper_bound(__x); } 26629: 26629: const_iterator 26629: upper_bound(const key_type& __x) const 26629: { return _M_t.upper_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: upper_bound(const _Kt& __x) 26629: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 26629: { return iterator(_M_t._M_upper_bound_tr(__x)); } 26629: 26629: template 26629: auto 26629: upper_bound(const _Kt& __x) const 26629: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 26629: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 26629: # 897 "/usr/include/c++/12/bits/stl_set.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) 26629: { return _M_t.equal_range(__x); } 26629: 26629: std::pair 26629: equal_range(const key_type& __x) const 26629: { return _M_t.equal_range(__x); } 26629: 26629: 26629: template 26629: auto 26629: equal_range(const _Kt& __x) 26629: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 26629: { return pair(_M_t._M_equal_range_tr(__x)); } 26629: 26629: template 26629: auto 26629: equal_range(const _Kt& __x) const 26629: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 26629: { return pair(_M_t._M_equal_range_tr(__x)); } 26629: 26629: 26629: 26629: template 26629: friend bool 26629: operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: friend bool 26629: operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 26629: 26629: }; 26629: 26629: 26629: 26629: template::value_type>, 26629: typename _Allocator = 26629: allocator::value_type>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireNotAllocator<_Compare>, 26629: typename = _RequireAllocator<_Allocator>> 26629: set(_InputIterator, _InputIterator, 26629: _Compare = _Compare(), _Allocator = _Allocator()) 26629: -> set::value_type, 26629: _Compare, _Allocator>; 26629: 26629: template, 26629: typename _Allocator = allocator<_Key>, 26629: typename = _RequireNotAllocator<_Compare>, 26629: typename = _RequireAllocator<_Allocator>> 26629: set(initializer_list<_Key>, 26629: _Compare = _Compare(), _Allocator = _Allocator()) 26629: -> set<_Key, _Compare, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: set(_InputIterator, _InputIterator, _Allocator) 26629: -> set::value_type, 26629: less::value_type>, 26629: _Allocator>; 26629: 26629: template> 26629: set(initializer_list<_Key>, _Allocator) 26629: -> set<_Key, less<_Key>, _Allocator>; 26629: # 983 "/usr/include/c++/12/bits/stl_set.h" 3 26629: template 26629: inline bool 26629: operator==(const set<_Key, _Compare, _Alloc>& __x, 26629: const set<_Key, _Compare, _Alloc>& __y) 26629: { return __x._M_t == __y._M_t; } 26629: # 1021 "/usr/include/c++/12/bits/stl_set.h" 3 26629: template 26629: inline bool 26629: operator<(const set<_Key, _Compare, _Alloc>& __x, 26629: const set<_Key, _Compare, _Alloc>& __y) 26629: { return __x._M_t < __y._M_t; } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const set<_Key, _Compare, _Alloc>& __x, 26629: const set<_Key, _Compare, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: inline bool 26629: operator>(const set<_Key, _Compare, _Alloc>& __x, 26629: const set<_Key, _Compare, _Alloc>& __y) 26629: { return __y < __x; } 26629: 26629: 26629: template 26629: inline bool 26629: operator<=(const set<_Key, _Compare, _Alloc>& __x, 26629: const set<_Key, _Compare, _Alloc>& __y) 26629: { return !(__y < __x); } 26629: 26629: 26629: template 26629: inline bool 26629: operator>=(const set<_Key, _Compare, _Alloc>& __x, 26629: const set<_Key, _Compare, _Alloc>& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct 26629: _Rb_tree_merge_helper, _Cmp2> 26629: { 26629: private: 26629: friend class std::set<_Val, _Cmp1, _Alloc>; 26629: 26629: static auto& 26629: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 26629: { return __set._M_t; } 26629: 26629: static auto& 26629: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 26629: { return __set._M_t; } 26629: }; 26629: 26629: 26629: 26629: } 26629: # 62 "/usr/include/c++/12/set" 2 3 26629: # 1 "/usr/include/c++/12/bits/stl_multiset.h" 1 3 26629: # 64 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: class set; 26629: # 94 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: template , 26629: typename _Alloc = std::allocator<_Key> > 26629: class multiset 26629: { 26629: # 110 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: static_assert(is_same::type, _Key>::value, 26629: "std::multiset must have a non-const, non-volatile value_type"); 26629: 26629: 26629: 26629: 26629: 26629: 26629: public: 26629: 26629: typedef _Key key_type; 26629: typedef _Key value_type; 26629: typedef _Compare key_compare; 26629: typedef _Compare value_compare; 26629: typedef _Alloc allocator_type; 26629: 26629: private: 26629: 26629: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 26629: rebind<_Key>::other _Key_alloc_type; 26629: 26629: typedef _Rb_tree, 26629: key_compare, _Key_alloc_type> _Rep_type; 26629: 26629: _Rep_type _M_t; 26629: 26629: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 26629: 26629: public: 26629: typedef typename _Alloc_traits::pointer pointer; 26629: typedef typename _Alloc_traits::const_pointer const_pointer; 26629: typedef typename _Alloc_traits::reference reference; 26629: typedef typename _Alloc_traits::const_reference const_reference; 26629: 26629: 26629: 26629: typedef typename _Rep_type::const_iterator iterator; 26629: typedef typename _Rep_type::const_iterator const_iterator; 26629: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 26629: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 26629: typedef typename _Rep_type::size_type size_type; 26629: typedef typename _Rep_type::difference_type difference_type; 26629: 26629: 26629: using node_type = typename _Rep_type::node_type; 26629: # 164 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: multiset() = default; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: multiset(const _Compare& __comp, 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Key_alloc_type(__a)) { } 26629: # 186 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: template 26629: multiset(_InputIterator __first, _InputIterator __last) 26629: : _M_t() 26629: { _M_t._M_insert_range_equal(__first, __last); } 26629: # 202 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: template 26629: multiset(_InputIterator __first, _InputIterator __last, 26629: const _Compare& __comp, 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Key_alloc_type(__a)) 26629: { _M_t._M_insert_range_equal(__first, __last); } 26629: # 218 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: multiset(const multiset&) = default; 26629: # 227 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: multiset(multiset&&) = default; 26629: # 239 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: multiset(initializer_list __l, 26629: const _Compare& __comp = _Compare(), 26629: const allocator_type& __a = allocator_type()) 26629: : _M_t(__comp, _Key_alloc_type(__a)) 26629: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 26629: 26629: 26629: explicit 26629: multiset(const allocator_type& __a) 26629: : _M_t(_Key_alloc_type(__a)) { } 26629: 26629: 26629: multiset(const multiset& __m, 26629: const __type_identity_t& __a) 26629: : _M_t(__m._M_t, _Key_alloc_type(__a)) { } 26629: 26629: 26629: multiset(multiset&& __m, const __type_identity_t& __a) 26629: noexcept(is_nothrow_copy_constructible<_Compare>::value 26629: && _Alloc_traits::_S_always_equal()) 26629: : _M_t(std::move(__m._M_t), _Key_alloc_type(__a)) { } 26629: 26629: 26629: multiset(initializer_list __l, const allocator_type& __a) 26629: : _M_t(_Key_alloc_type(__a)) 26629: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 26629: 26629: 26629: template 26629: multiset(_InputIterator __first, _InputIterator __last, 26629: const allocator_type& __a) 26629: : _M_t(_Key_alloc_type(__a)) 26629: { _M_t._M_insert_range_equal(__first, __last); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: ~multiset() = default; 26629: # 294 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: multiset& 26629: operator=(const multiset&) = default; 26629: 26629: 26629: multiset& 26629: operator=(multiset&&) = default; 26629: # 312 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: multiset& 26629: operator=(initializer_list __l) 26629: { 26629: _M_t._M_assign_equal(__l.begin(), __l.end()); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: key_compare 26629: key_comp() const 26629: { return _M_t.key_comp(); } 26629: 26629: value_compare 26629: value_comp() const 26629: { return _M_t.key_comp(); } 26629: 26629: allocator_type 26629: get_allocator() const noexcept 26629: { return allocator_type(_M_t.get_allocator()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: begin() const noexcept 26629: { return _M_t.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: end() const noexcept 26629: { return _M_t.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: rbegin() const noexcept 26629: { return _M_t.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: rend() const noexcept 26629: { return _M_t.rend(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: cbegin() const noexcept 26629: { return _M_t.begin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: iterator 26629: cend() const noexcept 26629: { return _M_t.end(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: crbegin() const noexcept 26629: { return _M_t.rbegin(); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: reverse_iterator 26629: crend() const noexcept 26629: { return _M_t.rend(); } 26629: 26629: 26629: 26629: [[__nodiscard__]] bool 26629: empty() const noexcept 26629: { return _M_t.empty(); } 26629: 26629: 26629: size_type 26629: size() const noexcept 26629: { return _M_t.size(); } 26629: 26629: 26629: size_type 26629: max_size() const noexcept 26629: { return _M_t.max_size(); } 26629: # 437 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: void 26629: swap(multiset& __x) 26629: noexcept(__is_nothrow_swappable<_Compare>::value) 26629: { _M_t.swap(__x._M_t); } 26629: # 456 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: template 26629: iterator 26629: emplace(_Args&&... __args) 26629: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 26629: # 482 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: template 26629: iterator 26629: emplace_hint(const_iterator __pos, _Args&&... __args) 26629: { 26629: return _M_t._M_emplace_hint_equal(__pos, 26629: std::forward<_Args>(__args)...); 26629: } 26629: # 502 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: iterator 26629: insert(const value_type& __x) 26629: { return _M_t._M_insert_equal(__x); } 26629: 26629: 26629: iterator 26629: insert(value_type&& __x) 26629: { return _M_t._M_insert_equal(std::move(__x)); } 26629: # 532 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: iterator 26629: insert(const_iterator __position, const value_type& __x) 26629: { return _M_t._M_insert_equal_(__position, __x); } 26629: 26629: 26629: iterator 26629: insert(const_iterator __position, value_type&& __x) 26629: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 26629: # 550 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: template 26629: void 26629: insert(_InputIterator __first, _InputIterator __last) 26629: { _M_t._M_insert_range_equal(__first, __last); } 26629: # 563 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: void 26629: insert(initializer_list __l) 26629: { this->insert(__l.begin(), __l.end()); } 26629: 26629: 26629: 26629: 26629: node_type 26629: extract(const_iterator __pos) 26629: { 26629: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 26629: return _M_t.extract(__pos); 26629: } 26629: 26629: 26629: node_type 26629: extract(const key_type& __x) 26629: { return _M_t.extract(__x); } 26629: 26629: 26629: iterator 26629: insert(node_type&& __nh) 26629: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 26629: 26629: 26629: iterator 26629: insert(const_iterator __hint, node_type&& __nh) 26629: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 26629: 26629: template 26629: friend struct std::_Rb_tree_merge_helper; 26629: 26629: template 26629: void 26629: merge(multiset<_Key, _Compare1, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Rb_tree_merge_helper; 26629: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 26629: { merge(__source); } 26629: 26629: template 26629: void 26629: merge(set<_Key, _Compare1, _Alloc>& __source) 26629: { 26629: using _Merge_helper = _Rb_tree_merge_helper; 26629: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 26629: } 26629: 26629: template 26629: void 26629: merge(set<_Key, _Compare1, _Alloc>&& __source) 26629: { merge(__source); } 26629: # 638 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iterator 26629: erase(const_iterator __position) 26629: { return _M_t.erase(__position); } 26629: # 669 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: size_type 26629: erase(const key_type& __x) 26629: { return _M_t.erase(__x); } 26629: # 690 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iterator 26629: erase(const_iterator __first, const_iterator __last) 26629: { return _M_t.erase(__first, __last); } 26629: # 718 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: void 26629: clear() noexcept 26629: { _M_t.clear(); } 26629: # 730 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: size_type 26629: count(const key_type& __x) const 26629: { return _M_t.count(__x); } 26629: 26629: 26629: template 26629: auto 26629: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 26629: { return _M_t._M_count_tr(__x); } 26629: # 775 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: iterator 26629: find(const key_type& __x) 26629: { return _M_t.find(__x); } 26629: 26629: const_iterator 26629: find(const key_type& __x) const 26629: { return _M_t.find(__x); } 26629: 26629: 26629: template 26629: auto 26629: find(const _Kt& __x) 26629: -> decltype(iterator{_M_t._M_find_tr(__x)}) 26629: { return iterator{_M_t._M_find_tr(__x)}; } 26629: 26629: template 26629: auto 26629: find(const _Kt& __x) const 26629: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 26629: { return const_iterator{_M_t._M_find_tr(__x)}; } 26629: # 810 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: iterator 26629: lower_bound(const key_type& __x) 26629: { return _M_t.lower_bound(__x); } 26629: 26629: const_iterator 26629: lower_bound(const key_type& __x) const 26629: { return _M_t.lower_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: lower_bound(const _Kt& __x) 26629: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 26629: { return iterator(_M_t._M_lower_bound_tr(__x)); } 26629: 26629: template 26629: auto 26629: lower_bound(const _Kt& __x) const 26629: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 26629: { return iterator(_M_t._M_lower_bound_tr(__x)); } 26629: # 840 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: iterator 26629: upper_bound(const key_type& __x) 26629: { return _M_t.upper_bound(__x); } 26629: 26629: const_iterator 26629: upper_bound(const key_type& __x) const 26629: { return _M_t.upper_bound(__x); } 26629: 26629: 26629: template 26629: auto 26629: upper_bound(const _Kt& __x) 26629: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 26629: { return iterator(_M_t._M_upper_bound_tr(__x)); } 26629: 26629: template 26629: auto 26629: upper_bound(const _Kt& __x) const 26629: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 26629: { return iterator(_M_t._M_upper_bound_tr(__x)); } 26629: # 879 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: std::pair 26629: equal_range(const key_type& __x) 26629: { return _M_t.equal_range(__x); } 26629: 26629: std::pair 26629: equal_range(const key_type& __x) const 26629: { return _M_t.equal_range(__x); } 26629: 26629: 26629: template 26629: auto 26629: equal_range(const _Kt& __x) 26629: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 26629: { return pair(_M_t._M_equal_range_tr(__x)); } 26629: 26629: template 26629: auto 26629: equal_range(const _Kt& __x) const 26629: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 26629: { return pair(_M_t._M_equal_range_tr(__x)); } 26629: 26629: 26629: 26629: template 26629: friend bool 26629: operator==(const multiset<_K1, _C1, _A1>&, 26629: const multiset<_K1, _C1, _A1>&); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: friend bool 26629: operator< (const multiset<_K1, _C1, _A1>&, 26629: const multiset<_K1, _C1, _A1>&); 26629: 26629: }; 26629: 26629: 26629: 26629: template::value_type>, 26629: typename _Allocator = 26629: allocator::value_type>, 26629: typename = _RequireInputIter<_InputIterator>, 26629: typename = _RequireNotAllocator<_Compare>, 26629: typename = _RequireAllocator<_Allocator>> 26629: multiset(_InputIterator, _InputIterator, 26629: _Compare = _Compare(), _Allocator = _Allocator()) 26629: -> multiset::value_type, 26629: _Compare, _Allocator>; 26629: 26629: template, 26629: typename _Allocator = allocator<_Key>, 26629: typename = _RequireNotAllocator<_Compare>, 26629: typename = _RequireAllocator<_Allocator>> 26629: multiset(initializer_list<_Key>, 26629: _Compare = _Compare(), _Allocator = _Allocator()) 26629: -> multiset<_Key, _Compare, _Allocator>; 26629: 26629: template, 26629: typename = _RequireAllocator<_Allocator>> 26629: multiset(_InputIterator, _InputIterator, _Allocator) 26629: -> multiset::value_type, 26629: less::value_type>, 26629: _Allocator>; 26629: 26629: template> 26629: multiset(initializer_list<_Key>, _Allocator) 26629: -> multiset<_Key, less<_Key>, _Allocator>; 26629: # 970 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: template 26629: inline bool 26629: operator==(const multiset<_Key, _Compare, _Alloc>& __x, 26629: const multiset<_Key, _Compare, _Alloc>& __y) 26629: { return __x._M_t == __y._M_t; } 26629: # 1008 "/usr/include/c++/12/bits/stl_multiset.h" 3 26629: template 26629: inline bool 26629: operator<(const multiset<_Key, _Compare, _Alloc>& __x, 26629: const multiset<_Key, _Compare, _Alloc>& __y) 26629: { return __x._M_t < __y._M_t; } 26629: 26629: 26629: template 26629: inline bool 26629: operator!=(const multiset<_Key, _Compare, _Alloc>& __x, 26629: const multiset<_Key, _Compare, _Alloc>& __y) 26629: { return !(__x == __y); } 26629: 26629: 26629: template 26629: inline bool 26629: operator>(const multiset<_Key,_Compare,_Alloc>& __x, 26629: const multiset<_Key,_Compare,_Alloc>& __y) 26629: { return __y < __x; } 26629: 26629: 26629: template 26629: inline bool 26629: operator<=(const multiset<_Key, _Compare, _Alloc>& __x, 26629: const multiset<_Key, _Compare, _Alloc>& __y) 26629: { return !(__y < __x); } 26629: 26629: 26629: template 26629: inline bool 26629: operator>=(const multiset<_Key, _Compare, _Alloc>& __x, 26629: const multiset<_Key, _Compare, _Alloc>& __y) 26629: { return !(__x < __y); } 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(multiset<_Key, _Compare, _Alloc>& __x, 26629: multiset<_Key, _Compare, _Alloc>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: struct 26629: _Rb_tree_merge_helper, 26629: _Cmp2> 26629: { 26629: private: 26629: friend class std::multiset<_Val, _Cmp1, _Alloc>; 26629: 26629: static auto& 26629: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 26629: { return __set._M_t; } 26629: 26629: static auto& 26629: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 26629: { return __set._M_t; } 26629: }; 26629: 26629: 26629: 26629: } 26629: # 63 "/usr/include/c++/12/set" 2 3 26629: # 71 "/usr/include/c++/12/set" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace pmr 26629: { 26629: template class polymorphic_allocator; 26629: template> 26629: using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; 26629: template> 26629: using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>; 26629: } 26629: 26629: } 26629: # 11 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 2 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/file/readahead_file_info.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/file/readahead_file_info.h" 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct ReadaheadFileInfo { 26629: struct ReadaheadInfo { 26629: size_t readahead_size = 0; 26629: int64_t num_file_reads = 0; 26629: }; 26629: 26629: 26629: ReadaheadInfo data_block_readahead_info; 26629: 26629: 26629: ReadaheadInfo index_block_readahead_info; 26629: }; 26629: 26629: } 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 1 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/ostream" 1 3 26629: # 36 "/usr/include/c++/12/ostream" 3 26629: 26629: # 37 "/usr/include/c++/12/ostream" 3 26629: 26629: # 1 "/usr/include/c++/12/ios" 1 3 26629: # 36 "/usr/include/c++/12/ios" 3 26629: 26629: # 37 "/usr/include/c++/12/ios" 3 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/ios_base.h" 1 3 26629: # 37 "/usr/include/c++/12/bits/ios_base.h" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/ios_base.h" 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/locale_classes.h" 1 3 26629: # 37 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 43 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 62 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: class locale 26629: { 26629: public: 26629: 26629: 26629: typedef int category; 26629: 26629: 26629: class facet; 26629: class id; 26629: class _Impl; 26629: 26629: friend class facet; 26629: friend class _Impl; 26629: 26629: template 26629: friend bool 26629: has_facet(const locale&) throw(); 26629: 26629: template 26629: friend const _Facet& 26629: use_facet(const locale&); 26629: 26629: template 26629: friend struct __use_cache; 26629: # 98 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: static const category none = 0; 26629: static const category ctype = 1L << 0; 26629: static const category numeric = 1L << 1; 26629: static const category collate = 1L << 2; 26629: static const category time = 1L << 3; 26629: static const category monetary = 1L << 4; 26629: static const category messages = 1L << 5; 26629: static const category all = (ctype | numeric | collate | 26629: time | monetary | messages); 26629: # 117 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: locale() throw(); 26629: # 126 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: locale(const locale& __other) throw(); 26629: # 136 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: explicit 26629: locale(const char* __s); 26629: # 151 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: locale(const locale& __base, const char* __s, category __cat); 26629: # 162 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: explicit 26629: locale(const std::string& __s) : locale(__s.c_str()) { } 26629: # 177 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: locale(const locale& __base, const std::string& __s, category __cat) 26629: : locale(__base, __s.c_str(), __cat) { } 26629: # 192 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: locale(const locale& __base, const locale& __add, category __cat); 26629: # 205 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: template 26629: locale(const locale& __other, _Facet* __f); 26629: 26629: 26629: ~locale() throw(); 26629: # 219 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: const locale& 26629: operator=(const locale& __other) throw(); 26629: # 234 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: template 26629: locale 26629: combine(const locale& __other) const; 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: string 26629: name() const; 26629: # 254 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: bool 26629: operator==(const locale& __other) const throw(); 26629: # 264 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: bool 26629: operator!=(const locale& __other) const throw() 26629: { return !(this->operator==(__other)); } 26629: # 284 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: template 26629: bool 26629: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 26629: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 26629: # 300 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: static locale 26629: global(const locale& __loc); 26629: 26629: 26629: 26629: 26629: static const locale& 26629: classic(); 26629: 26629: private: 26629: 26629: _Impl* _M_impl; 26629: 26629: 26629: static _Impl* _S_classic; 26629: 26629: 26629: static _Impl* _S_global; 26629: 26629: 26629: 26629: 26629: 26629: static const char* const* const _S_categories; 26629: # 335 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: enum { _S_categories_size = 6 + 6 }; 26629: 26629: 26629: static __gthread_once_t _S_once; 26629: 26629: 26629: explicit 26629: locale(_Impl*) throw(); 26629: 26629: static void 26629: _S_initialize(); 26629: 26629: static void 26629: _S_initialize_once() throw(); 26629: 26629: static category 26629: _S_normalize_category(category); 26629: 26629: void 26629: _M_coalesce(const locale& __base, const locale& __add, category __cat); 26629: 26629: 26629: static const id* const _S_twinned_facets[]; 26629: 26629: }; 26629: # 373 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: class locale::facet 26629: { 26629: private: 26629: friend class locale; 26629: friend class locale::_Impl; 26629: 26629: mutable _Atomic_word _M_refcount; 26629: 26629: 26629: static __c_locale _S_c_locale; 26629: 26629: 26629: static const char _S_c_name[2]; 26629: 26629: 26629: static __gthread_once_t _S_once; 26629: 26629: 26629: static void 26629: _S_initialize_once(); 26629: 26629: protected: 26629: # 404 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: explicit 26629: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 26629: { } 26629: 26629: 26629: virtual 26629: ~facet(); 26629: 26629: static void 26629: _S_create_c_locale(__c_locale& __cloc, const char* __s, 26629: __c_locale __old = 0); 26629: 26629: static __c_locale 26629: _S_clone_c_locale(__c_locale& __cloc) throw(); 26629: 26629: static void 26629: _S_destroy_c_locale(__c_locale& __cloc); 26629: 26629: static __c_locale 26629: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 26629: 26629: 26629: 26629: static __c_locale 26629: _S_get_c_locale(); 26629: 26629: __attribute__ ((__const__)) static const char* 26629: _S_get_c_name() throw(); 26629: # 440 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: facet(const facet&) = delete; 26629: 26629: facet& 26629: operator=(const facet&) = delete; 26629: 26629: 26629: private: 26629: void 26629: _M_add_reference() const throw() 26629: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 26629: 26629: void 26629: _M_remove_reference() const throw() 26629: { 26629: 26629: ; 26629: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 26629: { 26629: ; 26629: try 26629: { delete this; } 26629: catch(...) 26629: { } 26629: } 26629: } 26629: 26629: const facet* _M_sso_shim(const id*) const; 26629: const facet* _M_cow_shim(const id*) const; 26629: 26629: protected: 26629: class __shim; 26629: }; 26629: # 485 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: class locale::id 26629: { 26629: private: 26629: friend class locale; 26629: friend class locale::_Impl; 26629: 26629: template 26629: friend const _Facet& 26629: use_facet(const locale&); 26629: 26629: template 26629: friend bool 26629: has_facet(const locale&) throw(); 26629: 26629: 26629: 26629: 26629: mutable size_t _M_index; 26629: 26629: 26629: static _Atomic_word _S_refcount; 26629: 26629: void 26629: operator=(const id&); 26629: 26629: id(const id&); 26629: 26629: public: 26629: 26629: 26629: 26629: id() { } 26629: 26629: size_t 26629: _M_id() const throw(); 26629: }; 26629: 26629: 26629: 26629: class locale::_Impl 26629: { 26629: public: 26629: 26629: friend class locale; 26629: friend class locale::facet; 26629: 26629: template 26629: friend bool 26629: has_facet(const locale&) throw(); 26629: 26629: template 26629: friend const _Facet& 26629: use_facet(const locale&); 26629: 26629: template 26629: friend struct __use_cache; 26629: 26629: private: 26629: 26629: _Atomic_word _M_refcount; 26629: const facet** _M_facets; 26629: size_t _M_facets_size; 26629: const facet** _M_caches; 26629: char** _M_names; 26629: static const locale::id* const _S_id_ctype[]; 26629: static const locale::id* const _S_id_numeric[]; 26629: static const locale::id* const _S_id_collate[]; 26629: static const locale::id* const _S_id_time[]; 26629: static const locale::id* const _S_id_monetary[]; 26629: static const locale::id* const _S_id_messages[]; 26629: static const locale::id* const* const _S_facet_categories[]; 26629: 26629: void 26629: _M_add_reference() throw() 26629: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 26629: 26629: void 26629: _M_remove_reference() throw() 26629: { 26629: 26629: ; 26629: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 26629: { 26629: ; 26629: try 26629: { delete this; } 26629: catch(...) 26629: { } 26629: } 26629: } 26629: 26629: _Impl(const _Impl&, size_t); 26629: _Impl(const char*, size_t); 26629: _Impl(size_t) throw(); 26629: 26629: ~_Impl() throw(); 26629: 26629: _Impl(const _Impl&); 26629: 26629: void 26629: operator=(const _Impl&); 26629: 26629: bool 26629: _M_check_same_name() 26629: { 26629: bool __ret = true; 26629: if (_M_names[1]) 26629: 26629: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 26629: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 26629: return __ret; 26629: } 26629: 26629: void 26629: _M_replace_categories(const _Impl*, category); 26629: 26629: void 26629: _M_replace_category(const _Impl*, const locale::id* const*); 26629: 26629: void 26629: _M_replace_facet(const _Impl*, const locale::id*); 26629: 26629: void 26629: _M_install_facet(const locale::id*, const facet*); 26629: 26629: template 26629: void 26629: _M_init_facet(_Facet* __facet) 26629: { _M_install_facet(&_Facet::id, __facet); } 26629: 26629: template 26629: void 26629: _M_init_facet_unchecked(_Facet* __facet) 26629: { 26629: __facet->_M_add_reference(); 26629: _M_facets[_Facet::id._M_id()] = __facet; 26629: } 26629: 26629: void 26629: _M_install_cache(const facet*, size_t); 26629: 26629: void _M_init_extra(facet**); 26629: void _M_init_extra(void*, void*, const char*, const char*); 26629: 26629: 26629: 26629: 26629: }; 26629: # 647 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: template 26629: class __cxx11:: collate : public locale::facet 26629: { 26629: public: 26629: 26629: 26629: 26629: typedef _CharT char_type; 26629: typedef basic_string<_CharT> string_type; 26629: 26629: 26629: protected: 26629: 26629: 26629: __c_locale _M_c_locale_collate; 26629: 26629: public: 26629: 26629: static locale::id id; 26629: # 674 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: explicit 26629: collate(size_t __refs = 0) 26629: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 26629: { } 26629: # 688 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: explicit 26629: collate(__c_locale __cloc, size_t __refs = 0) 26629: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 26629: { } 26629: # 705 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: int 26629: compare(const _CharT* __lo1, const _CharT* __hi1, 26629: const _CharT* __lo2, const _CharT* __hi2) const 26629: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 26629: # 724 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: string_type 26629: transform(const _CharT* __lo, const _CharT* __hi) const 26629: { return this->do_transform(__lo, __hi); } 26629: # 738 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: long 26629: hash(const _CharT* __lo, const _CharT* __hi) const 26629: { return this->do_hash(__lo, __hi); } 26629: 26629: 26629: int 26629: _M_compare(const _CharT*, const _CharT*) const throw(); 26629: 26629: size_t 26629: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 26629: 26629: protected: 26629: 26629: virtual 26629: ~collate() 26629: { _S_destroy_c_locale(_M_c_locale_collate); } 26629: # 767 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: virtual int 26629: do_compare(const _CharT* __lo1, const _CharT* __hi1, 26629: const _CharT* __lo2, const _CharT* __hi2) const; 26629: # 781 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: virtual string_type 26629: do_transform(const _CharT* __lo, const _CharT* __hi) const; 26629: # 794 "/usr/include/c++/12/bits/locale_classes.h" 3 26629: virtual long 26629: do_hash(const _CharT* __lo, const _CharT* __hi) const; 26629: }; 26629: 26629: template 26629: locale::id collate<_CharT>::id; 26629: 26629: 26629: template<> 26629: int 26629: collate::_M_compare(const char*, const char*) const throw(); 26629: 26629: template<> 26629: size_t 26629: collate::_M_transform(char*, const char*, size_t) const throw(); 26629: 26629: 26629: template<> 26629: int 26629: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 26629: 26629: template<> 26629: size_t 26629: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 26629: 26629: 26629: 26629: template 26629: class __cxx11:: collate_byname : public collate<_CharT> 26629: { 26629: public: 26629: 26629: 26629: typedef _CharT char_type; 26629: typedef basic_string<_CharT> string_type; 26629: 26629: 26629: explicit 26629: collate_byname(const char* __s, size_t __refs = 0) 26629: : collate<_CharT>(__refs) 26629: { 26629: if (__builtin_strcmp(__s, "C") != 0 26629: && __builtin_strcmp(__s, "POSIX") != 0) 26629: { 26629: this->_S_destroy_c_locale(this->_M_c_locale_collate); 26629: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 26629: } 26629: } 26629: 26629: 26629: explicit 26629: collate_byname(const string& __s, size_t __refs = 0) 26629: : collate_byname(__s.c_str(), __refs) { } 26629: 26629: 26629: protected: 26629: virtual 26629: ~collate_byname() { } 26629: }; 26629: 26629: 26629: } 26629: 26629: # 1 "/usr/include/c++/12/bits/locale_classes.tcc" 1 3 26629: # 37 "/usr/include/c++/12/bits/locale_classes.tcc" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/locale_classes.tcc" 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: locale:: 26629: locale(const locale& __other, _Facet* __f) 26629: { 26629: _M_impl = new _Impl(*__other._M_impl, 1); 26629: 26629: try 26629: { _M_impl->_M_install_facet(&_Facet::id, __f); } 26629: catch(...) 26629: { 26629: _M_impl->_M_remove_reference(); 26629: throw; 26629: } 26629: delete [] _M_impl->_M_names[0]; 26629: _M_impl->_M_names[0] = 0; 26629: } 26629: 26629: template 26629: locale 26629: locale:: 26629: combine(const locale& __other) const 26629: { 26629: _Impl* __tmp = new _Impl(*_M_impl, 1); 26629: try 26629: { 26629: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 26629: } 26629: catch(...) 26629: { 26629: __tmp->_M_remove_reference(); 26629: throw; 26629: } 26629: return locale(__tmp); 26629: } 26629: 26629: template 26629: bool 26629: locale:: 26629: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 26629: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 26629: { 26629: typedef std::collate<_CharT> __collate_type; 26629: const __collate_type& __collate = use_facet<__collate_type>(*this); 26629: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 26629: __s2.data(), __s2.data() + __s2.length()) < 0); 26629: } 26629: # 102 "/usr/include/c++/12/bits/locale_classes.tcc" 3 26629: template 26629: bool 26629: has_facet(const locale& __loc) throw() 26629: { 26629: const size_t __i = _Facet::id._M_id(); 26629: const locale::facet** __facets = __loc._M_impl->_M_facets; 26629: return (__i < __loc._M_impl->_M_facets_size 26629: 26629: && dynamic_cast(__facets[__i])); 26629: 26629: 26629: 26629: } 26629: # 130 "/usr/include/c++/12/bits/locale_classes.tcc" 3 26629: template 26629: const _Facet& 26629: use_facet(const locale& __loc) 26629: { 26629: const size_t __i = _Facet::id._M_id(); 26629: const locale::facet** __facets = __loc._M_impl->_M_facets; 26629: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 26629: __throw_bad_cast(); 26629: 26629: return dynamic_cast(*__facets[__i]); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: template 26629: int 26629: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 26629: { return 0; } 26629: 26629: 26629: template 26629: size_t 26629: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 26629: { return 0; } 26629: 26629: template 26629: int 26629: collate<_CharT>:: 26629: do_compare(const _CharT* __lo1, const _CharT* __hi1, 26629: const _CharT* __lo2, const _CharT* __hi2) const 26629: { 26629: 26629: 26629: const string_type __one(__lo1, __hi1); 26629: const string_type __two(__lo2, __hi2); 26629: 26629: const _CharT* __p = __one.c_str(); 26629: const _CharT* __pend = __one.data() + __one.length(); 26629: const _CharT* __q = __two.c_str(); 26629: const _CharT* __qend = __two.data() + __two.length(); 26629: 26629: 26629: 26629: 26629: for (;;) 26629: { 26629: const int __res = _M_compare(__p, __q); 26629: if (__res) 26629: return __res; 26629: 26629: __p += char_traits<_CharT>::length(__p); 26629: __q += char_traits<_CharT>::length(__q); 26629: if (__p == __pend && __q == __qend) 26629: return 0; 26629: else if (__p == __pend) 26629: return -1; 26629: else if (__q == __qend) 26629: return 1; 26629: 26629: __p++; 26629: __q++; 26629: } 26629: } 26629: 26629: template 26629: typename collate<_CharT>::string_type 26629: collate<_CharT>:: 26629: do_transform(const _CharT* __lo, const _CharT* __hi) const 26629: { 26629: string_type __ret; 26629: 26629: 26629: const string_type __str(__lo, __hi); 26629: 26629: const _CharT* __p = __str.c_str(); 26629: const _CharT* __pend = __str.data() + __str.length(); 26629: 26629: size_t __len = (__hi - __lo) * 2; 26629: 26629: _CharT* __c = new _CharT[__len]; 26629: 26629: try 26629: { 26629: 26629: 26629: 26629: for (;;) 26629: { 26629: 26629: size_t __res = _M_transform(__c, __p, __len); 26629: 26629: 26629: if (__res >= __len) 26629: { 26629: __len = __res + 1; 26629: delete [] __c, __c = 0; 26629: __c = new _CharT[__len]; 26629: __res = _M_transform(__c, __p, __len); 26629: } 26629: 26629: __ret.append(__c, __res); 26629: __p += char_traits<_CharT>::length(__p); 26629: if (__p == __pend) 26629: break; 26629: 26629: __p++; 26629: __ret.push_back(_CharT()); 26629: } 26629: } 26629: catch(...) 26629: { 26629: delete [] __c; 26629: throw; 26629: } 26629: 26629: delete [] __c; 26629: 26629: return __ret; 26629: } 26629: 26629: template 26629: long 26629: collate<_CharT>:: 26629: do_hash(const _CharT* __lo, const _CharT* __hi) const 26629: { 26629: unsigned long __val = 0; 26629: for (; __lo < __hi; ++__lo) 26629: __val = 26629: *__lo + ((__val << 7) 26629: | (__val >> (__gnu_cxx::__numeric_traits:: 26629: __digits - 7))); 26629: return static_cast(__val); 26629: } 26629: 26629: 26629: 26629: 26629: extern template class collate; 26629: extern template class collate_byname; 26629: 26629: extern template 26629: const collate& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: 26629: extern template class collate; 26629: extern template class collate_byname; 26629: 26629: extern template 26629: const collate& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: 26629: 26629: 26629: } 26629: # 858 "/usr/include/c++/12/bits/locale_classes.h" 2 3 26629: # 42 "/usr/include/c++/12/bits/ios_base.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: enum _Ios_Fmtflags 26629: { 26629: _S_boolalpha = 1L << 0, 26629: _S_dec = 1L << 1, 26629: _S_fixed = 1L << 2, 26629: _S_hex = 1L << 3, 26629: _S_internal = 1L << 4, 26629: _S_left = 1L << 5, 26629: _S_oct = 1L << 6, 26629: _S_right = 1L << 7, 26629: _S_scientific = 1L << 8, 26629: _S_showbase = 1L << 9, 26629: _S_showpoint = 1L << 10, 26629: _S_showpos = 1L << 11, 26629: _S_skipws = 1L << 12, 26629: _S_unitbuf = 1L << 13, 26629: _S_uppercase = 1L << 14, 26629: _S_adjustfield = _S_left | _S_right | _S_internal, 26629: _S_basefield = _S_dec | _S_oct | _S_hex, 26629: _S_floatfield = _S_scientific | _S_fixed, 26629: _S_ios_fmtflags_end = 1L << 16, 26629: _S_ios_fmtflags_max = 0x7fffffff, 26629: _S_ios_fmtflags_min = ~0x7fffffff 26629: }; 26629: 26629: inline constexpr _Ios_Fmtflags 26629: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 26629: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 26629: 26629: inline constexpr _Ios_Fmtflags 26629: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 26629: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 26629: 26629: inline constexpr _Ios_Fmtflags 26629: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 26629: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 26629: 26629: inline constexpr _Ios_Fmtflags 26629: operator~(_Ios_Fmtflags __a) 26629: { return _Ios_Fmtflags(~static_cast(__a)); } 26629: 26629: inline const _Ios_Fmtflags& 26629: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 26629: { return __a = __a | __b; } 26629: 26629: inline const _Ios_Fmtflags& 26629: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 26629: { return __a = __a & __b; } 26629: 26629: inline const _Ios_Fmtflags& 26629: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 26629: { return __a = __a ^ __b; } 26629: 26629: 26629: enum _Ios_Openmode 26629: { 26629: _S_app = 1L << 0, 26629: _S_ate = 1L << 1, 26629: _S_bin = 1L << 2, 26629: _S_in = 1L << 3, 26629: _S_out = 1L << 4, 26629: _S_trunc = 1L << 5, 26629: _S_noreplace = 1L << 6, 26629: _S_ios_openmode_end = 1L << 16, 26629: _S_ios_openmode_max = 0x7fffffff, 26629: _S_ios_openmode_min = ~0x7fffffff 26629: }; 26629: 26629: inline constexpr _Ios_Openmode 26629: operator&(_Ios_Openmode __a, _Ios_Openmode __b) 26629: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 26629: 26629: inline constexpr _Ios_Openmode 26629: operator|(_Ios_Openmode __a, _Ios_Openmode __b) 26629: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 26629: 26629: inline constexpr _Ios_Openmode 26629: operator^(_Ios_Openmode __a, _Ios_Openmode __b) 26629: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 26629: 26629: inline constexpr _Ios_Openmode 26629: operator~(_Ios_Openmode __a) 26629: { return _Ios_Openmode(~static_cast(__a)); } 26629: 26629: inline const _Ios_Openmode& 26629: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) 26629: { return __a = __a | __b; } 26629: 26629: inline const _Ios_Openmode& 26629: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) 26629: { return __a = __a & __b; } 26629: 26629: inline const _Ios_Openmode& 26629: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) 26629: { return __a = __a ^ __b; } 26629: 26629: 26629: enum _Ios_Iostate 26629: { 26629: _S_goodbit = 0, 26629: _S_badbit = 1L << 0, 26629: _S_eofbit = 1L << 1, 26629: _S_failbit = 1L << 2, 26629: _S_ios_iostate_end = 1L << 16, 26629: _S_ios_iostate_max = 0x7fffffff, 26629: _S_ios_iostate_min = ~0x7fffffff 26629: }; 26629: 26629: inline constexpr _Ios_Iostate 26629: operator&(_Ios_Iostate __a, _Ios_Iostate __b) 26629: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 26629: 26629: inline constexpr _Ios_Iostate 26629: operator|(_Ios_Iostate __a, _Ios_Iostate __b) 26629: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 26629: 26629: inline constexpr _Ios_Iostate 26629: operator^(_Ios_Iostate __a, _Ios_Iostate __b) 26629: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 26629: 26629: inline constexpr _Ios_Iostate 26629: operator~(_Ios_Iostate __a) 26629: { return _Ios_Iostate(~static_cast(__a)); } 26629: 26629: inline const _Ios_Iostate& 26629: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) 26629: { return __a = __a | __b; } 26629: 26629: inline const _Ios_Iostate& 26629: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) 26629: { return __a = __a & __b; } 26629: 26629: inline const _Ios_Iostate& 26629: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) 26629: { return __a = __a ^ __b; } 26629: 26629: 26629: enum _Ios_Seekdir 26629: { 26629: _S_beg = 0, 26629: _S_cur = 1, 26629: _S_end = 2, 26629: _S_ios_seekdir_end = 1L << 16 26629: }; 26629: 26629: 26629: 26629: enum class io_errc { stream = 1 }; 26629: 26629: template <> struct is_error_code_enum : public true_type { }; 26629: 26629: const error_category& iostream_category() noexcept; 26629: 26629: inline error_code 26629: make_error_code(io_errc __e) noexcept 26629: { return error_code(static_cast(__e), iostream_category()); } 26629: 26629: inline error_condition 26629: make_error_condition(io_errc __e) noexcept 26629: { return error_condition(static_cast(__e), iostream_category()); } 26629: # 229 "/usr/include/c++/12/bits/ios_base.h" 3 26629: class ios_base 26629: { 26629: # 247 "/usr/include/c++/12/bits/ios_base.h" 3 26629: public: 26629: # 256 "/usr/include/c++/12/bits/ios_base.h" 3 26629: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 26629: { 26629: public: 26629: explicit 26629: failure(const string& __str); 26629: 26629: 26629: explicit 26629: failure(const string&, const error_code&); 26629: 26629: explicit 26629: failure(const char*, const error_code& = io_errc::stream); 26629: 26629: 26629: virtual 26629: ~failure() throw(); 26629: 26629: virtual const char* 26629: what() const throw(); 26629: }; 26629: # 342 "/usr/include/c++/12/bits/ios_base.h" 3 26629: typedef _Ios_Fmtflags fmtflags; 26629: 26629: 26629: static const fmtflags boolalpha = _S_boolalpha; 26629: 26629: 26629: static const fmtflags dec = _S_dec; 26629: 26629: 26629: static const fmtflags fixed = _S_fixed; 26629: 26629: 26629: static const fmtflags hex = _S_hex; 26629: 26629: 26629: 26629: 26629: static const fmtflags internal = _S_internal; 26629: 26629: 26629: 26629: static const fmtflags left = _S_left; 26629: 26629: 26629: static const fmtflags oct = _S_oct; 26629: 26629: 26629: 26629: static const fmtflags right = _S_right; 26629: 26629: 26629: static const fmtflags scientific = _S_scientific; 26629: 26629: 26629: 26629: static const fmtflags showbase = _S_showbase; 26629: 26629: 26629: 26629: static const fmtflags showpoint = _S_showpoint; 26629: 26629: 26629: static const fmtflags showpos = _S_showpos; 26629: 26629: 26629: static const fmtflags skipws = _S_skipws; 26629: 26629: 26629: static const fmtflags unitbuf = _S_unitbuf; 26629: 26629: 26629: 26629: static const fmtflags uppercase = _S_uppercase; 26629: 26629: 26629: static const fmtflags adjustfield = _S_adjustfield; 26629: 26629: 26629: static const fmtflags basefield = _S_basefield; 26629: 26629: 26629: static const fmtflags floatfield = _S_floatfield; 26629: # 417 "/usr/include/c++/12/bits/ios_base.h" 3 26629: typedef _Ios_Iostate iostate; 26629: 26629: 26629: 26629: static const iostate badbit = _S_badbit; 26629: 26629: 26629: static const iostate eofbit = _S_eofbit; 26629: 26629: 26629: 26629: 26629: static const iostate failbit = _S_failbit; 26629: 26629: 26629: static const iostate goodbit = _S_goodbit; 26629: # 448 "/usr/include/c++/12/bits/ios_base.h" 3 26629: typedef _Ios_Openmode openmode; 26629: 26629: 26629: static const openmode app = _S_app; 26629: 26629: 26629: static const openmode ate = _S_ate; 26629: 26629: 26629: 26629: 26629: static const openmode binary = _S_bin; 26629: 26629: 26629: static const openmode in = _S_in; 26629: 26629: 26629: static const openmode out = _S_out; 26629: 26629: 26629: static const openmode trunc = _S_trunc; 26629: 26629: static const openmode __noreplace = _S_noreplace; 26629: # 488 "/usr/include/c++/12/bits/ios_base.h" 3 26629: typedef _Ios_Seekdir seekdir; 26629: 26629: 26629: static const seekdir beg = _S_beg; 26629: 26629: 26629: static const seekdir cur = _S_cur; 26629: 26629: 26629: static const seekdir end = _S_end; 26629: # 521 "/usr/include/c++/12/bits/ios_base.h" 3 26629: enum event 26629: { 26629: erase_event, 26629: imbue_event, 26629: copyfmt_event 26629: }; 26629: # 538 "/usr/include/c++/12/bits/ios_base.h" 3 26629: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 26629: # 550 "/usr/include/c++/12/bits/ios_base.h" 3 26629: void 26629: register_callback(event_callback __fn, int __index); 26629: 26629: protected: 26629: streamsize _M_precision; 26629: streamsize _M_width; 26629: fmtflags _M_flags; 26629: iostate _M_exception; 26629: iostate _M_streambuf_state; 26629: 26629: 26629: 26629: struct _Callback_list 26629: { 26629: 26629: _Callback_list* _M_next; 26629: ios_base::event_callback _M_fn; 26629: int _M_index; 26629: _Atomic_word _M_refcount; 26629: 26629: _Callback_list(ios_base::event_callback __fn, int __index, 26629: _Callback_list* __cb) 26629: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 26629: 26629: void 26629: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 26629: 26629: 26629: int 26629: _M_remove_reference() 26629: { 26629: 26629: ; 26629: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 26629: if (__res == 0) 26629: { 26629: ; 26629: } 26629: return __res; 26629: } 26629: }; 26629: 26629: _Callback_list* _M_callbacks; 26629: 26629: void 26629: _M_call_callbacks(event __ev) throw(); 26629: 26629: void 26629: _M_dispose_callbacks(void) throw(); 26629: 26629: 26629: struct _Words 26629: { 26629: void* _M_pword; 26629: long _M_iword; 26629: _Words() : _M_pword(0), _M_iword(0) { } 26629: }; 26629: 26629: 26629: _Words _M_word_zero; 26629: 26629: 26629: 26629: enum { _S_local_word_size = 8 }; 26629: _Words _M_local_word[_S_local_word_size]; 26629: 26629: 26629: int _M_word_size; 26629: _Words* _M_word; 26629: 26629: _Words& 26629: _M_grow_words(int __index, bool __iword); 26629: 26629: 26629: locale _M_ios_locale; 26629: 26629: void 26629: _M_init() throw(); 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: class Init 26629: { 26629: friend class ios_base; 26629: public: 26629: Init(); 26629: ~Init(); 26629: 26629: 26629: Init(const Init&) = default; 26629: Init& operator=(const Init&) = default; 26629: 26629: 26629: private: 26629: static _Atomic_word _S_refcount; 26629: static bool _S_synced_with_stdio; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: fmtflags 26629: flags() const 26629: { return _M_flags; } 26629: # 668 "/usr/include/c++/12/bits/ios_base.h" 3 26629: fmtflags 26629: flags(fmtflags __fmtfl) 26629: { 26629: fmtflags __old = _M_flags; 26629: _M_flags = __fmtfl; 26629: return __old; 26629: } 26629: # 684 "/usr/include/c++/12/bits/ios_base.h" 3 26629: fmtflags 26629: setf(fmtflags __fmtfl) 26629: { 26629: fmtflags __old = _M_flags; 26629: _M_flags |= __fmtfl; 26629: return __old; 26629: } 26629: # 701 "/usr/include/c++/12/bits/ios_base.h" 3 26629: fmtflags 26629: setf(fmtflags __fmtfl, fmtflags __mask) 26629: { 26629: fmtflags __old = _M_flags; 26629: _M_flags &= ~__mask; 26629: _M_flags |= (__fmtfl & __mask); 26629: return __old; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: unsetf(fmtflags __mask) 26629: { _M_flags &= ~__mask; } 26629: # 727 "/usr/include/c++/12/bits/ios_base.h" 3 26629: streamsize 26629: precision() const 26629: { return _M_precision; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: streamsize 26629: precision(streamsize __prec) 26629: { 26629: streamsize __old = _M_precision; 26629: _M_precision = __prec; 26629: return __old; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: streamsize 26629: width() const 26629: { return _M_width; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: streamsize 26629: width(streamsize __wide) 26629: { 26629: streamsize __old = _M_width; 26629: _M_width = __wide; 26629: return __old; 26629: } 26629: # 778 "/usr/include/c++/12/bits/ios_base.h" 3 26629: static bool 26629: sync_with_stdio(bool __sync = true); 26629: # 790 "/usr/include/c++/12/bits/ios_base.h" 3 26629: locale 26629: imbue(const locale& __loc) throw(); 26629: # 801 "/usr/include/c++/12/bits/ios_base.h" 3 26629: locale 26629: getloc() const 26629: { return _M_ios_locale; } 26629: # 812 "/usr/include/c++/12/bits/ios_base.h" 3 26629: const locale& 26629: _M_getloc() const 26629: { return _M_ios_locale; } 26629: # 831 "/usr/include/c++/12/bits/ios_base.h" 3 26629: static int 26629: xalloc() throw(); 26629: # 847 "/usr/include/c++/12/bits/ios_base.h" 3 26629: long& 26629: iword(int __ix) 26629: { 26629: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 26629: ? _M_word[__ix] : _M_grow_words(__ix, true); 26629: return __word._M_iword; 26629: } 26629: # 868 "/usr/include/c++/12/bits/ios_base.h" 3 26629: void*& 26629: pword(int __ix) 26629: { 26629: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 26629: ? _M_word[__ix] : _M_grow_words(__ix, false); 26629: return __word._M_pword; 26629: } 26629: # 885 "/usr/include/c++/12/bits/ios_base.h" 3 26629: virtual ~ios_base(); 26629: 26629: protected: 26629: ios_base() throw (); 26629: # 899 "/usr/include/c++/12/bits/ios_base.h" 3 26629: public: 26629: ios_base(const ios_base&) = delete; 26629: 26629: ios_base& 26629: operator=(const ios_base&) = delete; 26629: 26629: protected: 26629: void 26629: _M_move(ios_base&) noexcept; 26629: 26629: void 26629: _M_swap(ios_base& __rhs) noexcept; 26629: 26629: }; 26629: 26629: 26629: 26629: inline ios_base& 26629: boolalpha(ios_base& __base) 26629: { 26629: __base.setf(ios_base::boolalpha); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: noboolalpha(ios_base& __base) 26629: { 26629: __base.unsetf(ios_base::boolalpha); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: showbase(ios_base& __base) 26629: { 26629: __base.setf(ios_base::showbase); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: noshowbase(ios_base& __base) 26629: { 26629: __base.unsetf(ios_base::showbase); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: showpoint(ios_base& __base) 26629: { 26629: __base.setf(ios_base::showpoint); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: noshowpoint(ios_base& __base) 26629: { 26629: __base.unsetf(ios_base::showpoint); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: showpos(ios_base& __base) 26629: { 26629: __base.setf(ios_base::showpos); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: noshowpos(ios_base& __base) 26629: { 26629: __base.unsetf(ios_base::showpos); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: skipws(ios_base& __base) 26629: { 26629: __base.setf(ios_base::skipws); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: noskipws(ios_base& __base) 26629: { 26629: __base.unsetf(ios_base::skipws); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: uppercase(ios_base& __base) 26629: { 26629: __base.setf(ios_base::uppercase); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: nouppercase(ios_base& __base) 26629: { 26629: __base.unsetf(ios_base::uppercase); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: unitbuf(ios_base& __base) 26629: { 26629: __base.setf(ios_base::unitbuf); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: nounitbuf(ios_base& __base) 26629: { 26629: __base.unsetf(ios_base::unitbuf); 26629: return __base; 26629: } 26629: 26629: 26629: 26629: inline ios_base& 26629: internal(ios_base& __base) 26629: { 26629: __base.setf(ios_base::internal, ios_base::adjustfield); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: left(ios_base& __base) 26629: { 26629: __base.setf(ios_base::left, ios_base::adjustfield); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: right(ios_base& __base) 26629: { 26629: __base.setf(ios_base::right, ios_base::adjustfield); 26629: return __base; 26629: } 26629: 26629: 26629: 26629: inline ios_base& 26629: dec(ios_base& __base) 26629: { 26629: __base.setf(ios_base::dec, ios_base::basefield); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: hex(ios_base& __base) 26629: { 26629: __base.setf(ios_base::hex, ios_base::basefield); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: oct(ios_base& __base) 26629: { 26629: __base.setf(ios_base::oct, ios_base::basefield); 26629: return __base; 26629: } 26629: 26629: 26629: 26629: inline ios_base& 26629: fixed(ios_base& __base) 26629: { 26629: __base.setf(ios_base::fixed, ios_base::floatfield); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: scientific(ios_base& __base) 26629: { 26629: __base.setf(ios_base::scientific, ios_base::floatfield); 26629: return __base; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline ios_base& 26629: hexfloat(ios_base& __base) 26629: { 26629: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 26629: return __base; 26629: } 26629: 26629: 26629: inline ios_base& 26629: defaultfloat(ios_base& __base) 26629: { 26629: __base.unsetf(ios_base::floatfield); 26629: return __base; 26629: } 26629: 26629: 26629: 26629: } 26629: # 43 "/usr/include/c++/12/ios" 2 3 26629: # 1 "/usr/include/c++/12/streambuf" 1 3 26629: # 36 "/usr/include/c++/12/streambuf" 3 26629: 26629: # 37 "/usr/include/c++/12/streambuf" 3 26629: # 45 "/usr/include/c++/12/streambuf" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: template 26629: streamsize 26629: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 26629: basic_streambuf<_CharT, _Traits>*, bool&); 26629: # 121 "/usr/include/c++/12/streambuf" 3 26629: template 26629: class basic_streambuf 26629: { 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: typedef typename traits_type::int_type int_type; 26629: typedef typename traits_type::pos_type pos_type; 26629: typedef typename traits_type::off_type off_type; 26629: 26629: 26629: 26629: 26629: typedef basic_streambuf __streambuf_type; 26629: 26629: 26629: friend class basic_ios; 26629: friend class basic_istream; 26629: friend class basic_ostream; 26629: friend class istreambuf_iterator; 26629: friend class ostreambuf_iterator; 26629: 26629: friend streamsize 26629: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 26629: 26629: template 26629: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 26629: _CharT2*>::__type 26629: __copy_move_a2(istreambuf_iterator<_CharT2>, 26629: istreambuf_iterator<_CharT2>, _CharT2*); 26629: 26629: template 26629: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 26629: istreambuf_iterator<_CharT2> >::__type 26629: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 26629: const _CharT2&); 26629: 26629: template 26629: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 26629: void>::__type 26629: advance(istreambuf_iterator<_CharT2>&, _Distance); 26629: 26629: friend void __istream_extract(istream&, char*, streamsize); 26629: 26629: template 26629: friend basic_istream<_CharT2, _Traits2>& 26629: operator>>(basic_istream<_CharT2, _Traits2>&, 26629: basic_string<_CharT2, _Traits2, _Alloc>&); 26629: 26629: template 26629: friend basic_istream<_CharT2, _Traits2>& 26629: getline(basic_istream<_CharT2, _Traits2>&, 26629: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 26629: 26629: protected: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: char_type* _M_in_beg; 26629: char_type* _M_in_cur; 26629: char_type* _M_in_end; 26629: char_type* _M_out_beg; 26629: char_type* _M_out_cur; 26629: char_type* _M_out_end; 26629: 26629: 26629: locale _M_buf_locale; 26629: 26629: public: 26629: 26629: virtual 26629: ~basic_streambuf() 26629: { } 26629: # 213 "/usr/include/c++/12/streambuf" 3 26629: locale 26629: pubimbue(const locale& __loc) 26629: { 26629: locale __tmp(this->getloc()); 26629: this->imbue(__loc); 26629: _M_buf_locale = __loc; 26629: return __tmp; 26629: } 26629: # 230 "/usr/include/c++/12/streambuf" 3 26629: locale 26629: getloc() const 26629: { return _M_buf_locale; } 26629: # 243 "/usr/include/c++/12/streambuf" 3 26629: basic_streambuf* 26629: pubsetbuf(char_type* __s, streamsize __n) 26629: { return this->setbuf(__s, __n); } 26629: # 255 "/usr/include/c++/12/streambuf" 3 26629: pos_type 26629: pubseekoff(off_type __off, ios_base::seekdir __way, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out) 26629: { return this->seekoff(__off, __way, __mode); } 26629: # 267 "/usr/include/c++/12/streambuf" 3 26629: pos_type 26629: pubseekpos(pos_type __sp, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out) 26629: { return this->seekpos(__sp, __mode); } 26629: 26629: 26629: 26629: 26629: int 26629: pubsync() { return this->sync(); } 26629: # 288 "/usr/include/c++/12/streambuf" 3 26629: streamsize 26629: in_avail() 26629: { 26629: const streamsize __ret = this->egptr() - this->gptr(); 26629: return __ret ? __ret : this->showmanyc(); 26629: } 26629: # 302 "/usr/include/c++/12/streambuf" 3 26629: int_type 26629: snextc() 26629: { 26629: int_type __ret = traits_type::eof(); 26629: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 26629: __ret), true)) 26629: __ret = this->sgetc(); 26629: return __ret; 26629: } 26629: # 320 "/usr/include/c++/12/streambuf" 3 26629: int_type 26629: sbumpc() 26629: { 26629: int_type __ret; 26629: if (__builtin_expect(this->gptr() < this->egptr(), true)) 26629: { 26629: __ret = traits_type::to_int_type(*this->gptr()); 26629: this->gbump(1); 26629: } 26629: else 26629: __ret = this->uflow(); 26629: return __ret; 26629: } 26629: # 342 "/usr/include/c++/12/streambuf" 3 26629: int_type 26629: sgetc() 26629: { 26629: int_type __ret; 26629: if (__builtin_expect(this->gptr() < this->egptr(), true)) 26629: __ret = traits_type::to_int_type(*this->gptr()); 26629: else 26629: __ret = this->underflow(); 26629: return __ret; 26629: } 26629: # 361 "/usr/include/c++/12/streambuf" 3 26629: streamsize 26629: sgetn(char_type* __s, streamsize __n) 26629: { return this->xsgetn(__s, __n); } 26629: # 376 "/usr/include/c++/12/streambuf" 3 26629: int_type 26629: sputbackc(char_type __c) 26629: { 26629: int_type __ret; 26629: const bool __testpos = this->eback() < this->gptr(); 26629: if (__builtin_expect(!__testpos || 26629: !traits_type::eq(__c, this->gptr()[-1]), false)) 26629: __ret = this->pbackfail(traits_type::to_int_type(__c)); 26629: else 26629: { 26629: this->gbump(-1); 26629: __ret = traits_type::to_int_type(*this->gptr()); 26629: } 26629: return __ret; 26629: } 26629: # 401 "/usr/include/c++/12/streambuf" 3 26629: int_type 26629: sungetc() 26629: { 26629: int_type __ret; 26629: if (__builtin_expect(this->eback() < this->gptr(), true)) 26629: { 26629: this->gbump(-1); 26629: __ret = traits_type::to_int_type(*this->gptr()); 26629: } 26629: else 26629: __ret = this->pbackfail(); 26629: return __ret; 26629: } 26629: # 428 "/usr/include/c++/12/streambuf" 3 26629: int_type 26629: sputc(char_type __c) 26629: { 26629: int_type __ret; 26629: if (__builtin_expect(this->pptr() < this->epptr(), true)) 26629: { 26629: *this->pptr() = __c; 26629: this->pbump(1); 26629: __ret = traits_type::to_int_type(__c); 26629: } 26629: else 26629: __ret = this->overflow(traits_type::to_int_type(__c)); 26629: return __ret; 26629: } 26629: # 454 "/usr/include/c++/12/streambuf" 3 26629: streamsize 26629: sputn(const char_type* __s, streamsize __n) 26629: { return this->xsputn(__s, __n); } 26629: 26629: protected: 26629: # 468 "/usr/include/c++/12/streambuf" 3 26629: basic_streambuf() 26629: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 26629: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 26629: _M_buf_locale(locale()) 26629: { } 26629: # 486 "/usr/include/c++/12/streambuf" 3 26629: char_type* 26629: eback() const { return _M_in_beg; } 26629: 26629: char_type* 26629: gptr() const { return _M_in_cur; } 26629: 26629: char_type* 26629: egptr() const { return _M_in_end; } 26629: # 502 "/usr/include/c++/12/streambuf" 3 26629: void 26629: gbump(int __n) { _M_in_cur += __n; } 26629: # 513 "/usr/include/c++/12/streambuf" 3 26629: void 26629: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 26629: { 26629: _M_in_beg = __gbeg; 26629: _M_in_cur = __gnext; 26629: _M_in_end = __gend; 26629: } 26629: # 533 "/usr/include/c++/12/streambuf" 3 26629: char_type* 26629: pbase() const { return _M_out_beg; } 26629: 26629: char_type* 26629: pptr() const { return _M_out_cur; } 26629: 26629: char_type* 26629: epptr() const { return _M_out_end; } 26629: # 549 "/usr/include/c++/12/streambuf" 3 26629: void 26629: pbump(int __n) { _M_out_cur += __n; } 26629: # 559 "/usr/include/c++/12/streambuf" 3 26629: void 26629: setp(char_type* __pbeg, char_type* __pend) 26629: { 26629: _M_out_beg = _M_out_cur = __pbeg; 26629: _M_out_end = __pend; 26629: } 26629: # 580 "/usr/include/c++/12/streambuf" 3 26629: virtual void 26629: imbue(const locale& __loc __attribute__ ((__unused__))) 26629: { } 26629: # 595 "/usr/include/c++/12/streambuf" 3 26629: virtual basic_streambuf* 26629: setbuf(char_type*, streamsize) 26629: { return this; } 26629: # 606 "/usr/include/c++/12/streambuf" 3 26629: virtual pos_type 26629: seekoff(off_type, ios_base::seekdir, 26629: ios_base::openmode = ios_base::in | ios_base::out) 26629: { return pos_type(off_type(-1)); } 26629: # 618 "/usr/include/c++/12/streambuf" 3 26629: virtual pos_type 26629: seekpos(pos_type, 26629: ios_base::openmode = ios_base::in | ios_base::out) 26629: { return pos_type(off_type(-1)); } 26629: # 631 "/usr/include/c++/12/streambuf" 3 26629: virtual int 26629: sync() { return 0; } 26629: # 653 "/usr/include/c++/12/streambuf" 3 26629: virtual streamsize 26629: showmanyc() { return 0; } 26629: # 669 "/usr/include/c++/12/streambuf" 3 26629: virtual streamsize 26629: xsgetn(char_type* __s, streamsize __n); 26629: # 691 "/usr/include/c++/12/streambuf" 3 26629: virtual int_type 26629: underflow() 26629: { return traits_type::eof(); } 26629: # 704 "/usr/include/c++/12/streambuf" 3 26629: virtual int_type 26629: uflow() 26629: { 26629: int_type __ret = traits_type::eof(); 26629: const bool __testeof = traits_type::eq_int_type(this->underflow(), 26629: __ret); 26629: if (!__testeof) 26629: { 26629: __ret = traits_type::to_int_type(*this->gptr()); 26629: this->gbump(1); 26629: } 26629: return __ret; 26629: } 26629: # 728 "/usr/include/c++/12/streambuf" 3 26629: virtual int_type 26629: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 26629: { return traits_type::eof(); } 26629: # 746 "/usr/include/c++/12/streambuf" 3 26629: virtual streamsize 26629: xsputn(const char_type* __s, streamsize __n); 26629: # 772 "/usr/include/c++/12/streambuf" 3 26629: virtual int_type 26629: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 26629: { return traits_type::eof(); } 26629: # 799 "/usr/include/c++/12/streambuf" 3 26629: void 26629: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 26629: 26629: void 26629: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 26629: 26629: 26629: 26629: 26629: protected: 26629: 26629: basic_streambuf(const basic_streambuf&); 26629: 26629: basic_streambuf& 26629: operator=(const basic_streambuf&); 26629: 26629: 26629: void 26629: swap(basic_streambuf& __sb) 26629: { 26629: std::swap(_M_in_beg, __sb._M_in_beg); 26629: std::swap(_M_in_cur, __sb._M_in_cur); 26629: std::swap(_M_in_end, __sb._M_in_end); 26629: std::swap(_M_out_beg, __sb._M_out_beg); 26629: std::swap(_M_out_cur, __sb._M_out_cur); 26629: std::swap(_M_out_end, __sb._M_out_end); 26629: std::swap(_M_buf_locale, __sb._M_buf_locale); 26629: } 26629: 26629: }; 26629: 26629: 26629: template 26629: std::basic_streambuf<_CharT, _Traits>:: 26629: basic_streambuf(const basic_streambuf&) = default; 26629: 26629: template 26629: std::basic_streambuf<_CharT, _Traits>& 26629: std::basic_streambuf<_CharT, _Traits>:: 26629: operator=(const basic_streambuf&) = default; 26629: 26629: 26629: 26629: template<> 26629: streamsize 26629: __copy_streambufs_eof(basic_streambuf* __sbin, 26629: basic_streambuf* __sbout, bool& __ineof); 26629: 26629: template<> 26629: streamsize 26629: __copy_streambufs_eof(basic_streambuf* __sbin, 26629: basic_streambuf* __sbout, bool& __ineof); 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: # 1 "/usr/include/c++/12/bits/streambuf.tcc" 1 3 26629: # 37 "/usr/include/c++/12/bits/streambuf.tcc" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/streambuf.tcc" 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: streamsize 26629: basic_streambuf<_CharT, _Traits>:: 26629: xsgetn(char_type* __s, streamsize __n) 26629: { 26629: streamsize __ret = 0; 26629: while (__ret < __n) 26629: { 26629: const streamsize __buf_len = this->egptr() - this->gptr(); 26629: if (__buf_len) 26629: { 26629: const streamsize __remaining = __n - __ret; 26629: const streamsize __len = std::min(__buf_len, __remaining); 26629: traits_type::copy(__s, this->gptr(), __len); 26629: __ret += __len; 26629: __s += __len; 26629: this->__safe_gbump(__len); 26629: } 26629: 26629: if (__ret < __n) 26629: { 26629: const int_type __c = this->uflow(); 26629: if (!traits_type::eq_int_type(__c, traits_type::eof())) 26629: { 26629: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 26629: ++__ret; 26629: } 26629: else 26629: break; 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: streamsize 26629: basic_streambuf<_CharT, _Traits>:: 26629: xsputn(const char_type* __s, streamsize __n) 26629: { 26629: streamsize __ret = 0; 26629: while (__ret < __n) 26629: { 26629: const streamsize __buf_len = this->epptr() - this->pptr(); 26629: if (__buf_len) 26629: { 26629: const streamsize __remaining = __n - __ret; 26629: const streamsize __len = std::min(__buf_len, __remaining); 26629: traits_type::copy(this->pptr(), __s, __len); 26629: __ret += __len; 26629: __s += __len; 26629: this->__safe_pbump(__len); 26629: } 26629: 26629: if (__ret < __n) 26629: { 26629: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 26629: if (!traits_type::eq_int_type(__c, traits_type::eof())) 26629: { 26629: ++__ret; 26629: ++__s; 26629: } 26629: else 26629: break; 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: streamsize 26629: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 26629: basic_streambuf<_CharT, _Traits>* __sbout, 26629: bool& __ineof) 26629: { 26629: streamsize __ret = 0; 26629: __ineof = true; 26629: typename _Traits::int_type __c = __sbin->sgetc(); 26629: while (!_Traits::eq_int_type(__c, _Traits::eof())) 26629: { 26629: __c = __sbout->sputc(_Traits::to_char_type(__c)); 26629: if (_Traits::eq_int_type(__c, _Traits::eof())) 26629: { 26629: __ineof = false; 26629: break; 26629: } 26629: ++__ret; 26629: __c = __sbin->snextc(); 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: inline streamsize 26629: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 26629: basic_streambuf<_CharT, _Traits>* __sbout) 26629: { 26629: bool __ineof; 26629: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 26629: } 26629: 26629: 26629: 26629: 26629: extern template class basic_streambuf; 26629: 26629: extern template 26629: streamsize 26629: __copy_streambufs(basic_streambuf*, 26629: basic_streambuf*); 26629: 26629: 26629: extern template class basic_streambuf; 26629: 26629: extern template 26629: streamsize 26629: __copy_streambufs(basic_streambuf*, 26629: basic_streambuf*); 26629: 26629: 26629: 26629: 26629: } 26629: # 859 "/usr/include/c++/12/streambuf" 2 3 26629: # 44 "/usr/include/c++/12/ios" 2 3 26629: # 1 "/usr/include/c++/12/bits/basic_ios.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/locale_facets.h" 1 3 26629: # 37 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: 26629: # 1 "/usr/include/c++/12/cwctype" 1 3 26629: # 39 "/usr/include/c++/12/cwctype" 3 26629: 26629: # 40 "/usr/include/c++/12/cwctype" 3 26629: # 50 "/usr/include/c++/12/cwctype" 3 26629: # 1 "/usr/include/wctype.h" 1 3 4 26629: # 38 "/usr/include/wctype.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 1 3 4 26629: # 38 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 26629: typedef unsigned long int wctype_t; 26629: # 56 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 26629: enum 26629: { 26629: __ISwupper = 0, 26629: __ISwlower = 1, 26629: __ISwalpha = 2, 26629: __ISwdigit = 3, 26629: __ISwxdigit = 4, 26629: __ISwspace = 5, 26629: __ISwprint = 6, 26629: __ISwgraph = 7, 26629: __ISwblank = 8, 26629: __ISwcntrl = 9, 26629: __ISwpunct = 10, 26629: __ISwalnum = 11, 26629: 26629: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 26629: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 26629: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 26629: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 26629: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 26629: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 26629: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 26629: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 26629: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 26629: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 26629: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 26629: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 26629: }; 26629: 26629: 26629: 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int iswalnum (wint_t __wc) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern int iswalpha (wint_t __wc) noexcept (true); 26629: 26629: 26629: extern int iswcntrl (wint_t __wc) noexcept (true); 26629: 26629: 26629: 26629: extern int iswdigit (wint_t __wc) noexcept (true); 26629: 26629: 26629: 26629: extern int iswgraph (wint_t __wc) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswlower (wint_t __wc) noexcept (true); 26629: 26629: 26629: extern int iswprint (wint_t __wc) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswpunct (wint_t __wc) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswspace (wint_t __wc) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswupper (wint_t __wc) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswxdigit (wint_t __wc) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern int iswblank (wint_t __wc) noexcept (true); 26629: # 155 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 26629: extern wctype_t wctype (const char *__property) noexcept (true); 26629: 26629: 26629: 26629: extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern wint_t towlower (wint_t __wc) noexcept (true); 26629: 26629: 26629: extern wint_t towupper (wint_t __wc) noexcept (true); 26629: 26629: } 26629: # 39 "/usr/include/wctype.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: extern "C" { 26629: 26629: 26629: 26629: typedef const __int32_t *wctrans_t; 26629: 26629: 26629: 26629: extern wctrans_t wctrans (const char *__property) noexcept (true); 26629: 26629: 26629: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: extern wctype_t wctype_l (const char *__property, locale_t __locale) 26629: noexcept (true); 26629: 26629: 26629: 26629: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 26629: noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 26629: noexcept (true); 26629: 26629: 26629: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 26629: locale_t __locale) noexcept (true); 26629: 26629: 26629: 26629: } 26629: # 51 "/usr/include/c++/12/cwctype" 2 3 26629: # 80 "/usr/include/c++/12/cwctype" 3 26629: namespace std 26629: { 26629: using ::wctrans_t; 26629: using ::wctype_t; 26629: using ::wint_t; 26629: 26629: using ::iswalnum; 26629: using ::iswalpha; 26629: 26629: using ::iswblank; 26629: 26629: using ::iswcntrl; 26629: using ::iswctype; 26629: using ::iswdigit; 26629: using ::iswgraph; 26629: using ::iswlower; 26629: using ::iswprint; 26629: using ::iswpunct; 26629: using ::iswspace; 26629: using ::iswupper; 26629: using ::iswxdigit; 26629: using ::towctrans; 26629: using ::towlower; 26629: using ::towupper; 26629: using ::wctrans; 26629: using ::wctype; 26629: } 26629: # 40 "/usr/include/c++/12/bits/locale_facets.h" 2 3 26629: # 1 "/usr/include/c++/12/cctype" 1 3 26629: # 39 "/usr/include/c++/12/cctype" 3 26629: 26629: # 40 "/usr/include/c++/12/cctype" 3 26629: # 41 "/usr/include/c++/12/bits/locale_facets.h" 2 3 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/ctype_base.h" 1 3 26629: # 36 "/usr/include/arm-linux-gnueabihf/c++/12/bits/ctype_base.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: struct ctype_base 26629: { 26629: 26629: typedef const int* __to_type; 26629: 26629: 26629: 26629: typedef unsigned short mask; 26629: static const mask upper = _ISupper; 26629: static const mask lower = _ISlower; 26629: static const mask alpha = _ISalpha; 26629: static const mask digit = _ISdigit; 26629: static const mask xdigit = _ISxdigit; 26629: static const mask space = _ISspace; 26629: static const mask print = _ISprint; 26629: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 26629: static const mask cntrl = _IScntrl; 26629: static const mask punct = _ISpunct; 26629: static const mask alnum = _ISalpha | _ISdigit; 26629: 26629: static const mask blank = _ISblank; 26629: 26629: }; 26629: 26629: 26629: } 26629: # 42 "/usr/include/c++/12/bits/locale_facets.h" 2 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/streambuf_iterator.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/streambuf_iterator.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/streambuf_iterator.h" 3 26629: 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: template 26629: class istreambuf_iterator 26629: : public iterator 26629: { 26629: public: 26629: # 69 "/usr/include/c++/12/bits/streambuf_iterator.h" 3 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: typedef typename _Traits::int_type int_type; 26629: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 26629: typedef basic_istream<_CharT, _Traits> istream_type; 26629: 26629: 26629: template 26629: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 26629: ostreambuf_iterator<_CharT2> >::__type 26629: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 26629: ostreambuf_iterator<_CharT2>); 26629: 26629: template 26629: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 26629: _CharT2*>::__type 26629: __copy_move_a2(istreambuf_iterator<_CharT2>, 26629: istreambuf_iterator<_CharT2>, _CharT2*); 26629: 26629: template 26629: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 26629: _CharT2*>::__type 26629: __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); 26629: 26629: template 26629: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 26629: istreambuf_iterator<_CharT2> >::__type 26629: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 26629: const _CharT2&); 26629: 26629: template 26629: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 26629: void>::__type 26629: advance(istreambuf_iterator<_CharT2>&, _Distance); 26629: 26629: private: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: mutable streambuf_type* _M_sbuf; 26629: int_type _M_c; 26629: 26629: public: 26629: 26629: constexpr istreambuf_iterator() noexcept 26629: : _M_sbuf(0), _M_c(traits_type::eof()) { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 26629: 26629: ~istreambuf_iterator() = default; 26629: 26629: 26629: 26629: istreambuf_iterator(istream_type& __s) noexcept 26629: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 26629: 26629: 26629: istreambuf_iterator(streambuf_type* __s) noexcept 26629: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 26629: 26629: 26629: istreambuf_iterator& 26629: operator=(const istreambuf_iterator&) noexcept = default; 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: char_type 26629: operator*() const 26629: { 26629: int_type __c = _M_get(); 26629: # 160 "/usr/include/c++/12/bits/streambuf_iterator.h" 3 26629: return traits_type::to_char_type(__c); 26629: } 26629: 26629: 26629: istreambuf_iterator& 26629: operator++() 26629: { 26629: 26629: 26629: 26629: ; 26629: 26629: _M_sbuf->sbumpc(); 26629: _M_c = traits_type::eof(); 26629: return *this; 26629: } 26629: 26629: 26629: istreambuf_iterator 26629: operator++(int) 26629: { 26629: 26629: 26629: 26629: ; 26629: 26629: istreambuf_iterator __old = *this; 26629: __old._M_c = _M_sbuf->sbumpc(); 26629: _M_c = traits_type::eof(); 26629: return __old; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: bool 26629: equal(const istreambuf_iterator& __b) const 26629: { return _M_at_eof() == __b._M_at_eof(); } 26629: 26629: private: 26629: int_type 26629: _M_get() const 26629: { 26629: int_type __ret = _M_c; 26629: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 26629: _M_sbuf = 0; 26629: return __ret; 26629: } 26629: 26629: bool 26629: _M_at_eof() const 26629: { return _S_is_eof(_M_get()); } 26629: 26629: static bool 26629: _S_is_eof(int_type __c) 26629: { 26629: const int_type __eof = traits_type::eof(); 26629: return traits_type::eq_int_type(__c, __eof); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: }; 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 26629: const istreambuf_iterator<_CharT, _Traits>& __b) 26629: { return __a.equal(__b); } 26629: 26629: 26629: template 26629: [[__nodiscard__]] 26629: inline bool 26629: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 26629: const istreambuf_iterator<_CharT, _Traits>& __b) 26629: { return !__a.equal(__b); } 26629: 26629: 26629: 26629: template 26629: class ostreambuf_iterator 26629: : public iterator 26629: { 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 26629: typedef basic_ostream<_CharT, _Traits> ostream_type; 26629: 26629: 26629: template 26629: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 26629: ostreambuf_iterator<_CharT2> >::__type 26629: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 26629: ostreambuf_iterator<_CharT2>); 26629: 26629: private: 26629: streambuf_type* _M_sbuf; 26629: bool _M_failed; 26629: 26629: public: 26629: # 283 "/usr/include/c++/12/bits/streambuf_iterator.h" 3 26629: ostreambuf_iterator(ostream_type& __s) noexcept 26629: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 26629: 26629: 26629: ostreambuf_iterator(streambuf_type* __s) noexcept 26629: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 26629: 26629: 26629: ostreambuf_iterator& 26629: operator=(_CharT __c) 26629: { 26629: if (!_M_failed && 26629: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 26629: _M_failed = true; 26629: return *this; 26629: } 26629: 26629: 26629: [[__nodiscard__]] 26629: ostreambuf_iterator& 26629: operator*() 26629: { return *this; } 26629: 26629: 26629: ostreambuf_iterator& 26629: operator++(int) 26629: { return *this; } 26629: 26629: 26629: ostreambuf_iterator& 26629: operator++() 26629: { return *this; } 26629: 26629: 26629: [[__nodiscard__]] 26629: bool 26629: failed() const noexcept 26629: { return _M_failed; } 26629: 26629: ostreambuf_iterator& 26629: _M_put(const _CharT* __ws, streamsize __len) 26629: { 26629: if (__builtin_expect(!_M_failed, true) 26629: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 26629: false)) 26629: _M_failed = true; 26629: return *this; 26629: } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 26629: ostreambuf_iterator<_CharT> >::__type 26629: copy(istreambuf_iterator<_CharT> __first, 26629: istreambuf_iterator<_CharT> __last, 26629: ostreambuf_iterator<_CharT> __result) 26629: { 26629: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 26629: { 26629: bool __ineof; 26629: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 26629: if (!__ineof) 26629: __result._M_failed = true; 26629: } 26629: return __result; 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 26629: ostreambuf_iterator<_CharT> >::__type 26629: __copy_move_a2(_CharT* __first, _CharT* __last, 26629: ostreambuf_iterator<_CharT> __result) 26629: { 26629: const streamsize __num = __last - __first; 26629: if (__num > 0) 26629: __result._M_put(__first, __num); 26629: return __result; 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 26629: ostreambuf_iterator<_CharT> >::__type 26629: __copy_move_a2(const _CharT* __first, const _CharT* __last, 26629: ostreambuf_iterator<_CharT> __result) 26629: { 26629: const streamsize __num = __last - __first; 26629: if (__num > 0) 26629: __result._M_put(__first, __num); 26629: return __result; 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 26629: _CharT*>::__type 26629: __copy_move_a2(istreambuf_iterator<_CharT> __first, 26629: istreambuf_iterator<_CharT> __last, _CharT* __result) 26629: { 26629: typedef istreambuf_iterator<_CharT> __is_iterator_type; 26629: typedef typename __is_iterator_type::traits_type traits_type; 26629: typedef typename __is_iterator_type::streambuf_type streambuf_type; 26629: typedef typename traits_type::int_type int_type; 26629: 26629: if (__first._M_sbuf && !__last._M_sbuf) 26629: { 26629: streambuf_type* __sb = __first._M_sbuf; 26629: int_type __c = __sb->sgetc(); 26629: while (!traits_type::eq_int_type(__c, traits_type::eof())) 26629: { 26629: const streamsize __n = __sb->egptr() - __sb->gptr(); 26629: if (__n > 1) 26629: { 26629: traits_type::copy(__result, __sb->gptr(), __n); 26629: __sb->__safe_gbump(__n); 26629: __result += __n; 26629: __c = __sb->underflow(); 26629: } 26629: else 26629: { 26629: *__result++ = traits_type::to_char_type(__c); 26629: __c = __sb->snextc(); 26629: } 26629: } 26629: } 26629: return __result; 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 26629: _CharT*>::__type 26629: __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, 26629: bool __strict __attribute__((__unused__))) 26629: { 26629: if (__n == 0) 26629: return __result; 26629: 26629: 26629: 26629: ; 26629: _CharT* __beg = __result; 26629: __result += __it._M_sbuf->sgetn(__beg, __n); 26629: 26629: 26629: ; 26629: return __result; 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 26629: istreambuf_iterator<_CharT> >::__type 26629: find(istreambuf_iterator<_CharT> __first, 26629: istreambuf_iterator<_CharT> __last, const _CharT& __val) 26629: { 26629: typedef istreambuf_iterator<_CharT> __is_iterator_type; 26629: typedef typename __is_iterator_type::traits_type traits_type; 26629: typedef typename __is_iterator_type::streambuf_type streambuf_type; 26629: typedef typename traits_type::int_type int_type; 26629: const int_type __eof = traits_type::eof(); 26629: 26629: if (__first._M_sbuf && !__last._M_sbuf) 26629: { 26629: const int_type __ival = traits_type::to_int_type(__val); 26629: streambuf_type* __sb = __first._M_sbuf; 26629: int_type __c = __sb->sgetc(); 26629: while (!traits_type::eq_int_type(__c, __eof) 26629: && !traits_type::eq_int_type(__c, __ival)) 26629: { 26629: streamsize __n = __sb->egptr() - __sb->gptr(); 26629: if (__n > 1) 26629: { 26629: const _CharT* __p = traits_type::find(__sb->gptr(), 26629: __n, __val); 26629: if (__p) 26629: __n = __p - __sb->gptr(); 26629: __sb->__safe_gbump(__n); 26629: __c = __sb->sgetc(); 26629: } 26629: else 26629: __c = __sb->snextc(); 26629: } 26629: 26629: __first._M_c = __eof; 26629: } 26629: 26629: return __first; 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 26629: void>::__type 26629: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 26629: { 26629: if (__n == 0) 26629: return; 26629: 26629: do { if (std::__is_constant_evaluated() && !bool(__n > 0)) __builtin_unreachable(); } while (false); 26629: 26629: 26629: ; 26629: 26629: typedef istreambuf_iterator<_CharT> __is_iterator_type; 26629: typedef typename __is_iterator_type::traits_type traits_type; 26629: typedef typename __is_iterator_type::streambuf_type streambuf_type; 26629: typedef typename traits_type::int_type int_type; 26629: const int_type __eof = traits_type::eof(); 26629: 26629: streambuf_type* __sb = __i._M_sbuf; 26629: while (__n > 0) 26629: { 26629: streamsize __size = __sb->egptr() - __sb->gptr(); 26629: if (__size > __n) 26629: { 26629: __sb->__safe_gbump(__n); 26629: break; 26629: } 26629: 26629: __sb->__safe_gbump(__size); 26629: __n -= __size; 26629: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 26629: { 26629: 26629: 26629: ; 26629: break; 26629: } 26629: } 26629: 26629: __i._M_c = __eof; 26629: } 26629: 26629: 26629: 26629: 26629: } 26629: # 49 "/usr/include/c++/12/bits/locale_facets.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 74 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: template 26629: void 26629: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 26629: const __c_locale&) throw(); 26629: 26629: 26629: template<> 26629: void 26629: __convert_to_v(const char*, float&, ios_base::iostate&, 26629: const __c_locale&) throw(); 26629: 26629: template<> 26629: void 26629: __convert_to_v(const char*, double&, ios_base::iostate&, 26629: const __c_locale&) throw(); 26629: 26629: template<> 26629: void 26629: __convert_to_v(const char*, long double&, ios_base::iostate&, 26629: const __c_locale&) throw(); 26629: 26629: 26629: 26629: template 26629: struct __pad 26629: { 26629: static void 26629: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 26629: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: _CharT* 26629: __add_grouping(_CharT* __s, _CharT __sep, 26629: const char* __gbeg, size_t __gsize, 26629: const _CharT* __first, const _CharT* __last); 26629: 26629: 26629: 26629: 26629: template 26629: inline 26629: ostreambuf_iterator<_CharT> 26629: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 26629: { 26629: __s._M_put(__ws, __len); 26629: return __s; 26629: } 26629: 26629: 26629: template 26629: inline 26629: _OutIter 26629: __write(_OutIter __s, const _CharT* __ws, int __len) 26629: { 26629: for (int __j = 0; __j < __len; __j++, ++__s) 26629: *__s = __ws[__j]; 26629: return __s; 26629: } 26629: # 152 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: template 26629: class __ctype_abstract_base : public locale::facet, public ctype_base 26629: { 26629: public: 26629: 26629: 26629: typedef _CharT char_type; 26629: # 171 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: bool 26629: is(mask __m, char_type __c) const 26629: { return this->do_is(__m, __c); } 26629: # 188 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char_type* 26629: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 26629: { return this->do_is(__lo, __hi, __vec); } 26629: # 204 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char_type* 26629: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 26629: { return this->do_scan_is(__m, __lo, __hi); } 26629: # 220 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char_type* 26629: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 26629: { return this->do_scan_not(__m, __lo, __hi); } 26629: # 234 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: char_type 26629: toupper(char_type __c) const 26629: { return this->do_toupper(__c); } 26629: # 249 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char_type* 26629: toupper(char_type *__lo, const char_type* __hi) const 26629: { return this->do_toupper(__lo, __hi); } 26629: # 263 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: char_type 26629: tolower(char_type __c) const 26629: { return this->do_tolower(__c); } 26629: # 278 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char_type* 26629: tolower(char_type* __lo, const char_type* __hi) const 26629: { return this->do_tolower(__lo, __hi); } 26629: # 295 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: char_type 26629: widen(char __c) const 26629: { return this->do_widen(__c); } 26629: # 314 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char* 26629: widen(const char* __lo, const char* __hi, char_type* __to) const 26629: { return this->do_widen(__lo, __hi, __to); } 26629: # 333 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: char 26629: narrow(char_type __c, char __dfault) const 26629: { return this->do_narrow(__c, __dfault); } 26629: # 355 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char_type* 26629: narrow(const char_type* __lo, const char_type* __hi, 26629: char __dfault, char* __to) const 26629: { return this->do_narrow(__lo, __hi, __dfault, __to); } 26629: 26629: protected: 26629: explicit 26629: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 26629: 26629: virtual 26629: ~__ctype_abstract_base() { } 26629: # 380 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual bool 26629: do_is(mask __m, char_type __c) const = 0; 26629: # 399 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_is(const char_type* __lo, const char_type* __hi, 26629: mask* __vec) const = 0; 26629: # 418 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_scan_is(mask __m, const char_type* __lo, 26629: const char_type* __hi) const = 0; 26629: # 437 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_scan_not(mask __m, const char_type* __lo, 26629: const char_type* __hi) const = 0; 26629: # 455 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_toupper(char_type __c) const = 0; 26629: # 472 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 26629: # 488 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_tolower(char_type __c) const = 0; 26629: # 505 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 26629: # 524 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_widen(char __c) const = 0; 26629: # 545 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char* 26629: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 26629: # 566 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char 26629: do_narrow(char_type __c, char __dfault) const = 0; 26629: # 591 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_narrow(const char_type* __lo, const char_type* __hi, 26629: char __dfault, char* __to) const = 0; 26629: }; 26629: # 614 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: template 26629: class ctype : public __ctype_abstract_base<_CharT> 26629: { 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef typename __ctype_abstract_base<_CharT>::mask mask; 26629: 26629: 26629: static locale::id id; 26629: 26629: explicit 26629: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 26629: 26629: protected: 26629: virtual 26629: ~ctype(); 26629: 26629: virtual bool 26629: do_is(mask __m, char_type __c) const; 26629: 26629: virtual const char_type* 26629: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 26629: 26629: virtual const char_type* 26629: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 26629: 26629: virtual const char_type* 26629: do_scan_not(mask __m, const char_type* __lo, 26629: const char_type* __hi) const; 26629: 26629: virtual char_type 26629: do_toupper(char_type __c) const; 26629: 26629: virtual const char_type* 26629: do_toupper(char_type* __lo, const char_type* __hi) const; 26629: 26629: virtual char_type 26629: do_tolower(char_type __c) const; 26629: 26629: virtual const char_type* 26629: do_tolower(char_type* __lo, const char_type* __hi) const; 26629: 26629: virtual char_type 26629: do_widen(char __c) const; 26629: 26629: virtual const char* 26629: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 26629: 26629: virtual char 26629: do_narrow(char_type, char __dfault) const; 26629: 26629: virtual const char_type* 26629: do_narrow(const char_type* __lo, const char_type* __hi, 26629: char __dfault, char* __to) const; 26629: }; 26629: 26629: template 26629: locale::id ctype<_CharT>::id; 26629: 26629: 26629: 26629: template 26629: class ctype >; 26629: # 688 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: template<> 26629: class ctype : public locale::facet, public ctype_base 26629: { 26629: public: 26629: 26629: 26629: typedef char char_type; 26629: 26629: protected: 26629: 26629: __c_locale _M_c_locale_ctype; 26629: bool _M_del; 26629: __to_type _M_toupper; 26629: __to_type _M_tolower; 26629: const mask* _M_table; 26629: mutable char _M_widen_ok; 26629: mutable char _M_widen[1 + static_cast(-1)]; 26629: mutable char _M_narrow[1 + static_cast(-1)]; 26629: mutable char _M_narrow_ok; 26629: 26629: 26629: public: 26629: 26629: static locale::id id; 26629: 26629: static const size_t table_size = 1 + static_cast(-1); 26629: # 725 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: explicit 26629: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 26629: # 738 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: explicit 26629: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 26629: size_t __refs = 0); 26629: # 751 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: inline bool 26629: is(mask __m, char __c) const; 26629: # 766 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: inline const char* 26629: is(const char* __lo, const char* __hi, mask* __vec) const; 26629: # 780 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: inline const char* 26629: scan_is(mask __m, const char* __lo, const char* __hi) const; 26629: # 794 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: inline const char* 26629: scan_not(mask __m, const char* __lo, const char* __hi) const; 26629: # 809 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: char_type 26629: toupper(char_type __c) const 26629: { return this->do_toupper(__c); } 26629: # 826 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char_type* 26629: toupper(char_type *__lo, const char_type* __hi) const 26629: { return this->do_toupper(__lo, __hi); } 26629: # 842 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: char_type 26629: tolower(char_type __c) const 26629: { return this->do_tolower(__c); } 26629: # 859 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char_type* 26629: tolower(char_type* __lo, const char_type* __hi) const 26629: { return this->do_tolower(__lo, __hi); } 26629: # 879 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: char_type 26629: widen(char __c) const 26629: { 26629: if (_M_widen_ok) 26629: return _M_widen[static_cast(__c)]; 26629: this->_M_widen_init(); 26629: return this->do_widen(__c); 26629: } 26629: # 906 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char* 26629: widen(const char* __lo, const char* __hi, char_type* __to) const 26629: { 26629: if (_M_widen_ok == 1) 26629: { 26629: if (__builtin_expect(__hi != __lo, true)) 26629: __builtin_memcpy(__to, __lo, __hi - __lo); 26629: return __hi; 26629: } 26629: if (!_M_widen_ok) 26629: _M_widen_init(); 26629: return this->do_widen(__lo, __hi, __to); 26629: } 26629: # 938 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: char 26629: narrow(char_type __c, char __dfault) const 26629: { 26629: if (_M_narrow[static_cast(__c)]) 26629: return _M_narrow[static_cast(__c)]; 26629: const char __t = do_narrow(__c, __dfault); 26629: if (__t != __dfault) 26629: _M_narrow[static_cast(__c)] = __t; 26629: return __t; 26629: } 26629: # 971 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: const char_type* 26629: narrow(const char_type* __lo, const char_type* __hi, 26629: char __dfault, char* __to) const 26629: { 26629: if (__builtin_expect(_M_narrow_ok == 1, true)) 26629: { 26629: if (__builtin_expect(__hi != __lo, true)) 26629: __builtin_memcpy(__to, __lo, __hi - __lo); 26629: return __hi; 26629: } 26629: if (!_M_narrow_ok) 26629: _M_narrow_init(); 26629: return this->do_narrow(__lo, __hi, __dfault, __to); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: const mask* 26629: table() const throw() 26629: { return _M_table; } 26629: 26629: 26629: static const mask* 26629: classic_table() throw(); 26629: protected: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual 26629: ~ctype(); 26629: # 1021 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_toupper(char_type __c) const; 26629: # 1038 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_toupper(char_type* __lo, const char_type* __hi) const; 26629: # 1054 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_tolower(char_type __c) const; 26629: # 1071 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_tolower(char_type* __lo, const char_type* __hi) const; 26629: # 1091 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_widen(char __c) const 26629: { return __c; } 26629: # 1114 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char* 26629: do_widen(const char* __lo, const char* __hi, char_type* __to) const 26629: { 26629: if (__builtin_expect(__hi != __lo, true)) 26629: __builtin_memcpy(__to, __lo, __hi - __lo); 26629: return __hi; 26629: } 26629: # 1141 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char 26629: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 26629: { return __c; } 26629: # 1167 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_narrow(const char_type* __lo, const char_type* __hi, 26629: char __dfault __attribute__((__unused__)), char* __to) const 26629: { 26629: if (__builtin_expect(__hi != __lo, true)) 26629: __builtin_memcpy(__to, __lo, __hi - __lo); 26629: return __hi; 26629: } 26629: 26629: private: 26629: void _M_narrow_init() const; 26629: void _M_widen_init() const; 26629: }; 26629: # 1193 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: template<> 26629: class ctype : public __ctype_abstract_base 26629: { 26629: public: 26629: 26629: 26629: typedef wchar_t char_type; 26629: typedef wctype_t __wmask_type; 26629: 26629: protected: 26629: __c_locale _M_c_locale_ctype; 26629: 26629: 26629: bool _M_narrow_ok; 26629: char _M_narrow[128]; 26629: wint_t _M_widen[1 + static_cast(-1)]; 26629: 26629: 26629: mask _M_bit[16]; 26629: __wmask_type _M_wmask[16]; 26629: 26629: public: 26629: 26629: 26629: static locale::id id; 26629: # 1226 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: explicit 26629: ctype(size_t __refs = 0); 26629: # 1237 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: explicit 26629: ctype(__c_locale __cloc, size_t __refs = 0); 26629: 26629: protected: 26629: __wmask_type 26629: _M_convert_to_wmask(const mask __m) const throw(); 26629: 26629: 26629: virtual 26629: ~ctype(); 26629: # 1261 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual bool 26629: do_is(mask __m, char_type __c) const; 26629: # 1280 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 26629: # 1298 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 26629: # 1316 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_scan_not(mask __m, const char_type* __lo, 26629: const char_type* __hi) const; 26629: # 1333 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_toupper(char_type __c) const; 26629: # 1350 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_toupper(char_type* __lo, const char_type* __hi) const; 26629: # 1366 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_tolower(char_type __c) const; 26629: # 1383 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_tolower(char_type* __lo, const char_type* __hi) const; 26629: # 1403 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_widen(char __c) const; 26629: # 1425 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char* 26629: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 26629: # 1448 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char 26629: do_narrow(char_type __c, char __dfault) const; 26629: # 1474 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual const char_type* 26629: do_narrow(const char_type* __lo, const char_type* __hi, 26629: char __dfault, char* __to) const; 26629: 26629: 26629: void 26629: _M_initialize_ctype() throw(); 26629: }; 26629: 26629: 26629: 26629: template 26629: class ctype_byname : public ctype<_CharT> 26629: { 26629: public: 26629: typedef typename ctype<_CharT>::mask mask; 26629: 26629: explicit 26629: ctype_byname(const char* __s, size_t __refs = 0); 26629: 26629: 26629: explicit 26629: ctype_byname(const string& __s, size_t __refs = 0) 26629: : ctype_byname(__s.c_str(), __refs) { } 26629: 26629: 26629: protected: 26629: virtual 26629: ~ctype_byname() { } 26629: }; 26629: 26629: 26629: template<> 26629: class ctype_byname : public ctype 26629: { 26629: public: 26629: explicit 26629: ctype_byname(const char* __s, size_t __refs = 0); 26629: 26629: 26629: explicit 26629: ctype_byname(const string& __s, size_t __refs = 0); 26629: 26629: 26629: protected: 26629: virtual 26629: ~ctype_byname(); 26629: }; 26629: 26629: 26629: template<> 26629: class ctype_byname : public ctype 26629: { 26629: public: 26629: explicit 26629: ctype_byname(const char* __s, size_t __refs = 0); 26629: 26629: 26629: explicit 26629: ctype_byname(const string& __s, size_t __refs = 0); 26629: 26629: 26629: protected: 26629: virtual 26629: ~ctype_byname(); 26629: }; 26629: 26629: 26629: 26629: } 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/ctype_inline.h" 1 3 26629: # 37 "/usr/include/arm-linux-gnueabihf/c++/12/bits/ctype_inline.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: bool 26629: ctype:: 26629: is(mask __m, char __c) const 26629: { return _M_table[static_cast(__c)] & __m; } 26629: 26629: const char* 26629: ctype:: 26629: is(const char* __low, const char* __high, mask* __vec) const 26629: { 26629: while (__low < __high) 26629: *__vec++ = _M_table[static_cast(*__low++)]; 26629: return __high; 26629: } 26629: 26629: const char* 26629: ctype:: 26629: scan_is(mask __m, const char* __low, const char* __high) const 26629: { 26629: while (__low < __high 26629: && !(_M_table[static_cast(*__low)] & __m)) 26629: ++__low; 26629: return __low; 26629: } 26629: 26629: const char* 26629: ctype:: 26629: scan_not(mask __m, const char* __low, const char* __high) const 26629: { 26629: while (__low < __high 26629: && (_M_table[static_cast(*__low)] & __m) != 0) 26629: ++__low; 26629: return __low; 26629: } 26629: 26629: 26629: } 26629: # 1547 "/usr/include/c++/12/bits/locale_facets.h" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: class __num_base 26629: { 26629: public: 26629: 26629: 26629: enum 26629: { 26629: _S_ominus, 26629: _S_oplus, 26629: _S_ox, 26629: _S_oX, 26629: _S_odigits, 26629: _S_odigits_end = _S_odigits + 16, 26629: _S_oudigits = _S_odigits_end, 26629: _S_oudigits_end = _S_oudigits + 16, 26629: _S_oe = _S_odigits + 14, 26629: _S_oE = _S_oudigits + 14, 26629: _S_oend = _S_oudigits_end 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: static const char* _S_atoms_out; 26629: 26629: 26629: 26629: static const char* _S_atoms_in; 26629: 26629: enum 26629: { 26629: _S_iminus, 26629: _S_iplus, 26629: _S_ix, 26629: _S_iX, 26629: _S_izero, 26629: _S_ie = _S_izero + 14, 26629: _S_iE = _S_izero + 20, 26629: _S_iend = 26 26629: }; 26629: 26629: 26629: 26629: static void 26629: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 26629: }; 26629: 26629: template 26629: struct __numpunct_cache : public locale::facet 26629: { 26629: const char* _M_grouping; 26629: size_t _M_grouping_size; 26629: bool _M_use_grouping; 26629: const _CharT* _M_truename; 26629: size_t _M_truename_size; 26629: const _CharT* _M_falsename; 26629: size_t _M_falsename_size; 26629: _CharT _M_decimal_point; 26629: _CharT _M_thousands_sep; 26629: 26629: 26629: 26629: 26629: 26629: _CharT _M_atoms_out[__num_base::_S_oend]; 26629: 26629: 26629: 26629: 26629: 26629: _CharT _M_atoms_in[__num_base::_S_iend]; 26629: 26629: bool _M_allocated; 26629: 26629: __numpunct_cache(size_t __refs = 0) 26629: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 26629: _M_use_grouping(false), 26629: _M_truename(0), _M_truename_size(0), _M_falsename(0), 26629: _M_falsename_size(0), _M_decimal_point(_CharT()), 26629: _M_thousands_sep(_CharT()), _M_allocated(false) 26629: { } 26629: 26629: ~__numpunct_cache(); 26629: 26629: void 26629: _M_cache(const locale& __loc); 26629: 26629: private: 26629: __numpunct_cache& 26629: operator=(const __numpunct_cache&); 26629: 26629: explicit 26629: __numpunct_cache(const __numpunct_cache&); 26629: }; 26629: 26629: template 26629: __numpunct_cache<_CharT>::~__numpunct_cache() 26629: { 26629: if (_M_allocated) 26629: { 26629: delete [] _M_grouping; 26629: delete [] _M_truename; 26629: delete [] _M_falsename; 26629: } 26629: } 26629: 26629: namespace __cxx11 { 26629: # 1677 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: template 26629: class numpunct : public locale::facet 26629: { 26629: public: 26629: 26629: 26629: 26629: typedef _CharT char_type; 26629: typedef basic_string<_CharT> string_type; 26629: 26629: typedef __numpunct_cache<_CharT> __cache_type; 26629: 26629: protected: 26629: __cache_type* _M_data; 26629: 26629: public: 26629: 26629: static locale::id id; 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: numpunct(size_t __refs = 0) 26629: : facet(__refs), _M_data(0) 26629: { _M_initialize_numpunct(); } 26629: # 1715 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: explicit 26629: numpunct(__cache_type* __cache, size_t __refs = 0) 26629: : facet(__refs), _M_data(__cache) 26629: { _M_initialize_numpunct(); } 26629: # 1729 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: explicit 26629: numpunct(__c_locale __cloc, size_t __refs = 0) 26629: : facet(__refs), _M_data(0) 26629: { _M_initialize_numpunct(__cloc); } 26629: # 1743 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: char_type 26629: decimal_point() const 26629: { return this->do_decimal_point(); } 26629: # 1756 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: char_type 26629: thousands_sep() const 26629: { return this->do_thousands_sep(); } 26629: # 1787 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: string 26629: grouping() const 26629: { return this->do_grouping(); } 26629: # 1800 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: string_type 26629: truename() const 26629: { return this->do_truename(); } 26629: # 1813 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: string_type 26629: falsename() const 26629: { return this->do_falsename(); } 26629: 26629: protected: 26629: 26629: virtual 26629: ~numpunct(); 26629: # 1830 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_decimal_point() const 26629: { return _M_data->_M_decimal_point; } 26629: # 1842 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual char_type 26629: do_thousands_sep() const 26629: { return _M_data->_M_thousands_sep; } 26629: # 1855 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual string 26629: do_grouping() const 26629: { return _M_data->_M_grouping; } 26629: # 1868 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual string_type 26629: do_truename() const 26629: { return _M_data->_M_truename; } 26629: # 1881 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual string_type 26629: do_falsename() const 26629: { return _M_data->_M_falsename; } 26629: 26629: 26629: void 26629: _M_initialize_numpunct(__c_locale __cloc = 0); 26629: }; 26629: 26629: template 26629: locale::id numpunct<_CharT>::id; 26629: 26629: template<> 26629: numpunct::~numpunct(); 26629: 26629: template<> 26629: void 26629: numpunct::_M_initialize_numpunct(__c_locale __cloc); 26629: 26629: 26629: template<> 26629: numpunct::~numpunct(); 26629: 26629: template<> 26629: void 26629: numpunct::_M_initialize_numpunct(__c_locale __cloc); 26629: 26629: 26629: 26629: template 26629: class numpunct_byname : public numpunct<_CharT> 26629: { 26629: public: 26629: typedef _CharT char_type; 26629: typedef basic_string<_CharT> string_type; 26629: 26629: explicit 26629: numpunct_byname(const char* __s, size_t __refs = 0) 26629: : numpunct<_CharT>(__refs) 26629: { 26629: if (__builtin_strcmp(__s, "C") != 0 26629: && __builtin_strcmp(__s, "POSIX") != 0) 26629: { 26629: __c_locale __tmp; 26629: this->_S_create_c_locale(__tmp, __s); 26629: this->_M_initialize_numpunct(__tmp); 26629: this->_S_destroy_c_locale(__tmp); 26629: } 26629: } 26629: 26629: 26629: explicit 26629: numpunct_byname(const string& __s, size_t __refs = 0) 26629: : numpunct_byname(__s.c_str(), __refs) { } 26629: 26629: 26629: protected: 26629: virtual 26629: ~numpunct_byname() { } 26629: }; 26629: 26629: } 26629: 26629: 26629: # 1959 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: template 26629: class num_get : public locale::facet 26629: { 26629: public: 26629: 26629: 26629: 26629: typedef _CharT char_type; 26629: typedef _InIter iter_type; 26629: 26629: 26629: 26629: static locale::id id; 26629: # 1980 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: explicit 26629: num_get(size_t __refs = 0) : facet(__refs) { } 26629: # 2006 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, bool& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: # 2043 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, long& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, unsigned short& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, unsigned int& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, unsigned long& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: 26629: 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, long long& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, unsigned long long& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: # 2103 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, float& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, double& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, long double& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: # 2146 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: iter_type 26629: get(iter_type __in, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, void*& __v) const 26629: { return this->do_get(__in, __end, __io, __err, __v); } 26629: 26629: protected: 26629: 26629: virtual ~num_get() { } 26629: 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iter_type 26629: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 26629: string&) const; 26629: 26629: template 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: iter_type 26629: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 26629: _ValueT&) const; 26629: 26629: template 26629: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 26629: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 26629: { 26629: int __ret = -1; 26629: if (__len <= 10) 26629: { 26629: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 26629: __ret = __c - _CharT2('0'); 26629: } 26629: else 26629: { 26629: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 26629: __ret = __c - _CharT2('0'); 26629: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 26629: __ret = 10 + (__c - _CharT2('a')); 26629: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 26629: __ret = 10 + (__c - _CharT2('A')); 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: typename __gnu_cxx::__enable_if::__value, 26629: int>::__type 26629: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 26629: { 26629: int __ret = -1; 26629: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 26629: if (__q) 26629: { 26629: __ret = __q - __zero; 26629: if (__ret > 15) 26629: __ret -= 6; 26629: } 26629: return __ret; 26629: } 26629: # 2219 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual iter_type 26629: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 26629: 26629: virtual iter_type 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, long& __v) const 26629: { return _M_extract_int(__beg, __end, __io, __err, __v); } 26629: 26629: virtual iter_type 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, unsigned short& __v) const 26629: { return _M_extract_int(__beg, __end, __io, __err, __v); } 26629: 26629: virtual iter_type 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, unsigned int& __v) const 26629: { return _M_extract_int(__beg, __end, __io, __err, __v); } 26629: 26629: virtual iter_type 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, unsigned long& __v) const 26629: { return _M_extract_int(__beg, __end, __io, __err, __v); } 26629: 26629: 26629: virtual iter_type 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, long long& __v) const 26629: { return _M_extract_int(__beg, __end, __io, __err, __v); } 26629: 26629: virtual iter_type 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, unsigned long long& __v) const 26629: { return _M_extract_int(__beg, __end, __io, __err, __v); } 26629: 26629: 26629: virtual iter_type 26629: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 26629: 26629: virtual iter_type 26629: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 26629: double&) const; 26629: # 2271 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual iter_type 26629: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 26629: long double&) const; 26629: 26629: 26629: virtual iter_type 26629: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 26629: # 2299 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: }; 26629: 26629: template 26629: locale::id num_get<_CharT, _InIter>::id; 26629: # 2317 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: template 26629: class num_put : public locale::facet 26629: { 26629: public: 26629: 26629: 26629: 26629: typedef _CharT char_type; 26629: typedef _OutIter iter_type; 26629: 26629: 26629: 26629: static locale::id id; 26629: # 2338 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: explicit 26629: num_put(size_t __refs = 0) : facet(__refs) { } 26629: # 2356 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: iter_type 26629: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 26629: { return this->do_put(__s, __io, __fill, __v); } 26629: # 2398 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: iter_type 26629: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 26629: { return this->do_put(__s, __io, __fill, __v); } 26629: 26629: iter_type 26629: put(iter_type __s, ios_base& __io, char_type __fill, 26629: unsigned long __v) const 26629: { return this->do_put(__s, __io, __fill, __v); } 26629: 26629: 26629: iter_type 26629: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 26629: { return this->do_put(__s, __io, __fill, __v); } 26629: 26629: iter_type 26629: put(iter_type __s, ios_base& __io, char_type __fill, 26629: unsigned long long __v) const 26629: { return this->do_put(__s, __io, __fill, __v); } 26629: # 2461 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: iter_type 26629: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 26629: { return this->do_put(__s, __io, __fill, __v); } 26629: 26629: iter_type 26629: put(iter_type __s, ios_base& __io, char_type __fill, 26629: long double __v) const 26629: { return this->do_put(__s, __io, __fill, __v); } 26629: # 2486 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: iter_type 26629: put(iter_type __s, ios_base& __io, char_type __fill, 26629: const void* __v) const 26629: { return this->do_put(__s, __io, __fill, __v); } 26629: 26629: protected: 26629: template 26629: iter_type 26629: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 26629: char __mod, _ValueT __v) const; 26629: 26629: void 26629: _M_group_float(const char* __grouping, size_t __grouping_size, 26629: char_type __sep, const char_type* __p, char_type* __new, 26629: char_type* __cs, int& __len) const; 26629: 26629: template 26629: iter_type 26629: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 26629: _ValueT __v) const; 26629: 26629: void 26629: _M_group_int(const char* __grouping, size_t __grouping_size, 26629: char_type __sep, ios_base& __io, char_type* __new, 26629: char_type* __cs, int& __len) const; 26629: 26629: void 26629: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 26629: char_type* __new, const char_type* __cs, int& __len) const; 26629: 26629: 26629: virtual 26629: ~num_put() { } 26629: # 2534 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: virtual iter_type 26629: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 26629: 26629: virtual iter_type 26629: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 26629: { return _M_insert_int(__s, __io, __fill, __v); } 26629: 26629: virtual iter_type 26629: do_put(iter_type __s, ios_base& __io, char_type __fill, 26629: unsigned long __v) const 26629: { return _M_insert_int(__s, __io, __fill, __v); } 26629: 26629: 26629: virtual iter_type 26629: do_put(iter_type __s, ios_base& __io, char_type __fill, 26629: long long __v) const 26629: { return _M_insert_int(__s, __io, __fill, __v); } 26629: 26629: virtual iter_type 26629: do_put(iter_type __s, ios_base& __io, char_type __fill, 26629: unsigned long long __v) const 26629: { return _M_insert_int(__s, __io, __fill, __v); } 26629: 26629: 26629: virtual iter_type 26629: do_put(iter_type, ios_base&, char_type, double) const; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual iter_type 26629: do_put(iter_type, ios_base&, char_type, long double) const; 26629: 26629: 26629: virtual iter_type 26629: do_put(iter_type, ios_base&, char_type, const void*) const; 26629: # 2586 "/usr/include/c++/12/bits/locale_facets.h" 3 26629: }; 26629: 26629: template 26629: locale::id num_put<_CharT, _OutIter>::id; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline bool 26629: isspace(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::space, __c); } 26629: 26629: 26629: template 26629: inline bool 26629: isprint(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::print, __c); } 26629: 26629: 26629: template 26629: inline bool 26629: iscntrl(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 26629: 26629: 26629: template 26629: inline bool 26629: isupper(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::upper, __c); } 26629: 26629: 26629: template 26629: inline bool 26629: islower(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::lower, __c); } 26629: 26629: 26629: template 26629: inline bool 26629: isalpha(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 26629: 26629: 26629: template 26629: inline bool 26629: isdigit(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::digit, __c); } 26629: 26629: 26629: template 26629: inline bool 26629: ispunct(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::punct, __c); } 26629: 26629: 26629: template 26629: inline bool 26629: isxdigit(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 26629: 26629: 26629: template 26629: inline bool 26629: isalnum(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 26629: 26629: 26629: template 26629: inline bool 26629: isgraph(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::graph, __c); } 26629: 26629: 26629: 26629: template 26629: inline bool 26629: isblank(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).is(ctype_base::blank, __c); } 26629: 26629: 26629: 26629: template 26629: inline _CharT 26629: toupper(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).toupper(__c); } 26629: 26629: 26629: template 26629: inline _CharT 26629: tolower(_CharT __c, const locale& __loc) 26629: { return use_facet >(__loc).tolower(__c); } 26629: 26629: 26629: } 26629: 26629: # 1 "/usr/include/c++/12/bits/locale_facets.tcc" 1 3 26629: # 33 "/usr/include/c++/12/bits/locale_facets.tcc" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/locale_facets.tcc" 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: template 26629: struct __use_cache 26629: { 26629: const _Facet* 26629: operator() (const locale& __loc) const; 26629: }; 26629: 26629: 26629: template 26629: struct __use_cache<__numpunct_cache<_CharT> > 26629: { 26629: const __numpunct_cache<_CharT>* 26629: operator() (const locale& __loc) const 26629: { 26629: const size_t __i = numpunct<_CharT>::id._M_id(); 26629: const locale::facet** __caches = __loc._M_impl->_M_caches; 26629: if (!__caches[__i]) 26629: { 26629: __numpunct_cache<_CharT>* __tmp = 0; 26629: try 26629: { 26629: __tmp = new __numpunct_cache<_CharT>; 26629: __tmp->_M_cache(__loc); 26629: } 26629: catch(...) 26629: { 26629: delete __tmp; 26629: throw; 26629: } 26629: __loc._M_impl->_M_install_cache(__tmp, __i); 26629: } 26629: return static_cast*>(__caches[__i]); 26629: } 26629: }; 26629: 26629: template 26629: void 26629: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 26629: { 26629: const numpunct<_CharT>& __np = use_facet >(__loc); 26629: 26629: char* __grouping = 0; 26629: _CharT* __truename = 0; 26629: _CharT* __falsename = 0; 26629: try 26629: { 26629: const string& __g = __np.grouping(); 26629: _M_grouping_size = __g.size(); 26629: __grouping = new char[_M_grouping_size]; 26629: __g.copy(__grouping, _M_grouping_size); 26629: _M_use_grouping = (_M_grouping_size 26629: && static_cast(__grouping[0]) > 0 26629: && (__grouping[0] 26629: != __gnu_cxx::__numeric_traits::__max)); 26629: 26629: const basic_string<_CharT>& __tn = __np.truename(); 26629: _M_truename_size = __tn.size(); 26629: __truename = new _CharT[_M_truename_size]; 26629: __tn.copy(__truename, _M_truename_size); 26629: 26629: const basic_string<_CharT>& __fn = __np.falsename(); 26629: _M_falsename_size = __fn.size(); 26629: __falsename = new _CharT[_M_falsename_size]; 26629: __fn.copy(__falsename, _M_falsename_size); 26629: 26629: _M_decimal_point = __np.decimal_point(); 26629: _M_thousands_sep = __np.thousands_sep(); 26629: 26629: const ctype<_CharT>& __ct = use_facet >(__loc); 26629: __ct.widen(__num_base::_S_atoms_out, 26629: __num_base::_S_atoms_out 26629: + __num_base::_S_oend, _M_atoms_out); 26629: __ct.widen(__num_base::_S_atoms_in, 26629: __num_base::_S_atoms_in 26629: + __num_base::_S_iend, _M_atoms_in); 26629: 26629: _M_grouping = __grouping; 26629: _M_truename = __truename; 26629: _M_falsename = __falsename; 26629: _M_allocated = true; 26629: } 26629: catch(...) 26629: { 26629: delete [] __grouping; 26629: delete [] __truename; 26629: delete [] __falsename; 26629: throw; 26629: } 26629: } 26629: # 139 "/usr/include/c++/12/bits/locale_facets.tcc" 3 26629: __attribute__ ((__pure__)) bool 26629: __verify_grouping(const char* __grouping, size_t __grouping_size, 26629: const string& __grouping_tmp) throw (); 26629: 26629: 26629: 26629: template 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: _InIter 26629: num_get<_CharT, _InIter>:: 26629: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 26629: ios_base::iostate& __err, string& __xtrc) const 26629: { 26629: typedef char_traits<_CharT> __traits_type; 26629: typedef __numpunct_cache<_CharT> __cache_type; 26629: __use_cache<__cache_type> __uc; 26629: const locale& __loc = __io._M_getloc(); 26629: const __cache_type* __lc = __uc(__loc); 26629: const _CharT* __lit = __lc->_M_atoms_in; 26629: char_type __c = char_type(); 26629: 26629: 26629: bool __testeof = __beg == __end; 26629: 26629: 26629: if (!__testeof) 26629: { 26629: __c = *__beg; 26629: const bool __plus = __c == __lit[__num_base::_S_iplus]; 26629: if ((__plus || __c == __lit[__num_base::_S_iminus]) 26629: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 26629: && !(__c == __lc->_M_decimal_point)) 26629: { 26629: __xtrc += __plus ? '+' : '-'; 26629: if (++__beg != __end) 26629: __c = *__beg; 26629: else 26629: __testeof = true; 26629: } 26629: } 26629: 26629: 26629: bool __found_mantissa = false; 26629: int __sep_pos = 0; 26629: while (!__testeof) 26629: { 26629: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 26629: || __c == __lc->_M_decimal_point) 26629: break; 26629: else if (__c == __lit[__num_base::_S_izero]) 26629: { 26629: if (!__found_mantissa) 26629: { 26629: __xtrc += '0'; 26629: __found_mantissa = true; 26629: } 26629: ++__sep_pos; 26629: 26629: if (++__beg != __end) 26629: __c = *__beg; 26629: else 26629: __testeof = true; 26629: } 26629: else 26629: break; 26629: } 26629: 26629: 26629: bool __found_dec = false; 26629: bool __found_sci = false; 26629: string __found_grouping; 26629: if (__lc->_M_use_grouping) 26629: __found_grouping.reserve(32); 26629: const char_type* __lit_zero = __lit + __num_base::_S_izero; 26629: 26629: if (!__lc->_M_allocated) 26629: 26629: while (!__testeof) 26629: { 26629: const int __digit = _M_find(__lit_zero, 10, __c); 26629: if (__digit != -1) 26629: { 26629: __xtrc += '0' + __digit; 26629: __found_mantissa = true; 26629: } 26629: else if (__c == __lc->_M_decimal_point 26629: && !__found_dec && !__found_sci) 26629: { 26629: __xtrc += '.'; 26629: __found_dec = true; 26629: } 26629: else if ((__c == __lit[__num_base::_S_ie] 26629: || __c == __lit[__num_base::_S_iE]) 26629: && !__found_sci && __found_mantissa) 26629: { 26629: 26629: __xtrc += 'e'; 26629: __found_sci = true; 26629: 26629: 26629: if (++__beg != __end) 26629: { 26629: __c = *__beg; 26629: const bool __plus = __c == __lit[__num_base::_S_iplus]; 26629: if (__plus || __c == __lit[__num_base::_S_iminus]) 26629: __xtrc += __plus ? '+' : '-'; 26629: else 26629: continue; 26629: } 26629: else 26629: { 26629: __testeof = true; 26629: break; 26629: } 26629: } 26629: else 26629: break; 26629: 26629: if (++__beg != __end) 26629: __c = *__beg; 26629: else 26629: __testeof = true; 26629: } 26629: else 26629: while (!__testeof) 26629: { 26629: 26629: 26629: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 26629: { 26629: if (!__found_dec && !__found_sci) 26629: { 26629: 26629: 26629: if (__sep_pos) 26629: { 26629: __found_grouping += static_cast(__sep_pos); 26629: __sep_pos = 0; 26629: } 26629: else 26629: { 26629: 26629: 26629: __xtrc.clear(); 26629: break; 26629: } 26629: } 26629: else 26629: break; 26629: } 26629: else if (__c == __lc->_M_decimal_point) 26629: { 26629: if (!__found_dec && !__found_sci) 26629: { 26629: 26629: 26629: 26629: if (__found_grouping.size()) 26629: __found_grouping += static_cast(__sep_pos); 26629: __xtrc += '.'; 26629: __found_dec = true; 26629: } 26629: else 26629: break; 26629: } 26629: else 26629: { 26629: const char_type* __q = 26629: __traits_type::find(__lit_zero, 10, __c); 26629: if (__q) 26629: { 26629: __xtrc += '0' + (__q - __lit_zero); 26629: __found_mantissa = true; 26629: ++__sep_pos; 26629: } 26629: else if ((__c == __lit[__num_base::_S_ie] 26629: || __c == __lit[__num_base::_S_iE]) 26629: && !__found_sci && __found_mantissa) 26629: { 26629: 26629: if (__found_grouping.size() && !__found_dec) 26629: __found_grouping += static_cast(__sep_pos); 26629: __xtrc += 'e'; 26629: __found_sci = true; 26629: 26629: 26629: if (++__beg != __end) 26629: { 26629: __c = *__beg; 26629: const bool __plus = __c == __lit[__num_base::_S_iplus]; 26629: if ((__plus || __c == __lit[__num_base::_S_iminus]) 26629: && !(__lc->_M_use_grouping 26629: && __c == __lc->_M_thousands_sep) 26629: && !(__c == __lc->_M_decimal_point)) 26629: __xtrc += __plus ? '+' : '-'; 26629: else 26629: continue; 26629: } 26629: else 26629: { 26629: __testeof = true; 26629: break; 26629: } 26629: } 26629: else 26629: break; 26629: } 26629: 26629: if (++__beg != __end) 26629: __c = *__beg; 26629: else 26629: __testeof = true; 26629: } 26629: 26629: 26629: 26629: if (__found_grouping.size()) 26629: { 26629: 26629: if (!__found_dec && !__found_sci) 26629: __found_grouping += static_cast(__sep_pos); 26629: 26629: if (!std::__verify_grouping(__lc->_M_grouping, 26629: __lc->_M_grouping_size, 26629: __found_grouping)) 26629: __err = ios_base::failbit; 26629: } 26629: 26629: return __beg; 26629: } 26629: 26629: template 26629: template 26629: __attribute ((__abi_tag__ ("cxx11"))) 26629: _InIter 26629: num_get<_CharT, _InIter>:: 26629: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 26629: ios_base::iostate& __err, _ValueT& __v) const 26629: { 26629: typedef char_traits<_CharT> __traits_type; 26629: using __gnu_cxx::__add_unsigned; 26629: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 26629: typedef __numpunct_cache<_CharT> __cache_type; 26629: __use_cache<__cache_type> __uc; 26629: const locale& __loc = __io._M_getloc(); 26629: const __cache_type* __lc = __uc(__loc); 26629: const _CharT* __lit = __lc->_M_atoms_in; 26629: char_type __c = char_type(); 26629: 26629: 26629: const ios_base::fmtflags __basefield = __io.flags() 26629: & ios_base::basefield; 26629: const bool __oct = __basefield == ios_base::oct; 26629: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 26629: 26629: 26629: bool __testeof = __beg == __end; 26629: 26629: 26629: bool __negative = false; 26629: if (!__testeof) 26629: { 26629: __c = *__beg; 26629: __negative = __c == __lit[__num_base::_S_iminus]; 26629: if ((__negative || __c == __lit[__num_base::_S_iplus]) 26629: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 26629: && !(__c == __lc->_M_decimal_point)) 26629: { 26629: if (++__beg != __end) 26629: __c = *__beg; 26629: else 26629: __testeof = true; 26629: } 26629: } 26629: 26629: 26629: 26629: bool __found_zero = false; 26629: int __sep_pos = 0; 26629: while (!__testeof) 26629: { 26629: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 26629: || __c == __lc->_M_decimal_point) 26629: break; 26629: else if (__c == __lit[__num_base::_S_izero] 26629: && (!__found_zero || __base == 10)) 26629: { 26629: __found_zero = true; 26629: ++__sep_pos; 26629: if (__basefield == 0) 26629: __base = 8; 26629: if (__base == 8) 26629: __sep_pos = 0; 26629: } 26629: else if (__found_zero 26629: && (__c == __lit[__num_base::_S_ix] 26629: || __c == __lit[__num_base::_S_iX])) 26629: { 26629: if (__basefield == 0) 26629: __base = 16; 26629: if (__base == 16) 26629: { 26629: __found_zero = false; 26629: __sep_pos = 0; 26629: } 26629: else 26629: break; 26629: } 26629: else 26629: break; 26629: 26629: if (++__beg != __end) 26629: { 26629: __c = *__beg; 26629: if (!__found_zero) 26629: break; 26629: } 26629: else 26629: __testeof = true; 26629: } 26629: 26629: 26629: 26629: const size_t __len = (__base == 16 ? __num_base::_S_iend 26629: - __num_base::_S_izero : __base); 26629: 26629: 26629: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 26629: string __found_grouping; 26629: if (__lc->_M_use_grouping) 26629: __found_grouping.reserve(32); 26629: bool __testfail = false; 26629: bool __testoverflow = false; 26629: const __unsigned_type __max = 26629: (__negative && __num_traits::__is_signed) 26629: ? -static_cast<__unsigned_type>(__num_traits::__min) 26629: : __num_traits::__max; 26629: const __unsigned_type __smax = __max / __base; 26629: __unsigned_type __result = 0; 26629: int __digit = 0; 26629: const char_type* __lit_zero = __lit + __num_base::_S_izero; 26629: 26629: if (!__lc->_M_allocated) 26629: 26629: while (!__testeof) 26629: { 26629: __digit = _M_find(__lit_zero, __len, __c); 26629: if (__digit == -1) 26629: break; 26629: 26629: if (__result > __smax) 26629: __testoverflow = true; 26629: else 26629: { 26629: __result *= __base; 26629: __testoverflow |= __result > __max - __digit; 26629: __result += __digit; 26629: ++__sep_pos; 26629: } 26629: 26629: if (++__beg != __end) 26629: __c = *__beg; 26629: else 26629: __testeof = true; 26629: } 26629: else 26629: while (!__testeof) 26629: { 26629: 26629: 26629: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 26629: { 26629: 26629: 26629: if (__sep_pos) 26629: { 26629: __found_grouping += static_cast(__sep_pos); 26629: __sep_pos = 0; 26629: } 26629: else 26629: { 26629: __testfail = true; 26629: break; 26629: } 26629: } 26629: else if (__c == __lc->_M_decimal_point) 26629: break; 26629: else 26629: { 26629: const char_type* __q = 26629: __traits_type::find(__lit_zero, __len, __c); 26629: if (!__q) 26629: break; 26629: 26629: __digit = __q - __lit_zero; 26629: if (__digit > 15) 26629: __digit -= 6; 26629: if (__result > __smax) 26629: __testoverflow = true; 26629: else 26629: { 26629: __result *= __base; 26629: __testoverflow |= __result > __max - __digit; 26629: __result += __digit; 26629: ++__sep_pos; 26629: } 26629: } 26629: 26629: if (++__beg != __end) 26629: __c = *__beg; 26629: else 26629: __testeof = true; 26629: } 26629: 26629: 26629: 26629: if (__found_grouping.size()) 26629: { 26629: 26629: __found_grouping += static_cast(__sep_pos); 26629: 26629: if (!std::__verify_grouping(__lc->_M_grouping, 26629: __lc->_M_grouping_size, 26629: __found_grouping)) 26629: __err = ios_base::failbit; 26629: } 26629: 26629: 26629: 26629: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 26629: || __testfail) 26629: { 26629: __v = 0; 26629: __err = ios_base::failbit; 26629: } 26629: else if (__testoverflow) 26629: { 26629: if (__negative && __num_traits::__is_signed) 26629: __v = __num_traits::__min; 26629: else 26629: __v = __num_traits::__max; 26629: __err = ios_base::failbit; 26629: } 26629: else 26629: __v = __negative ? -__result : __result; 26629: 26629: if (__testeof) 26629: __err |= ios_base::eofbit; 26629: return __beg; 26629: } 26629: 26629: 26629: 26629: template 26629: _InIter 26629: num_get<_CharT, _InIter>:: 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, bool& __v) const 26629: { 26629: if (!(__io.flags() & ios_base::boolalpha)) 26629: { 26629: 26629: 26629: 26629: long __l = -1; 26629: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 26629: if (__l == 0 || __l == 1) 26629: __v = bool(__l); 26629: else 26629: { 26629: 26629: 26629: __v = true; 26629: __err = ios_base::failbit; 26629: if (__beg == __end) 26629: __err |= ios_base::eofbit; 26629: } 26629: } 26629: else 26629: { 26629: 26629: typedef __numpunct_cache<_CharT> __cache_type; 26629: __use_cache<__cache_type> __uc; 26629: const locale& __loc = __io._M_getloc(); 26629: const __cache_type* __lc = __uc(__loc); 26629: 26629: bool __testf = true; 26629: bool __testt = true; 26629: bool __donef = __lc->_M_falsename_size == 0; 26629: bool __donet = __lc->_M_truename_size == 0; 26629: bool __testeof = false; 26629: size_t __n = 0; 26629: while (!__donef || !__donet) 26629: { 26629: if (__beg == __end) 26629: { 26629: __testeof = true; 26629: break; 26629: } 26629: 26629: const char_type __c = *__beg; 26629: 26629: if (!__donef) 26629: __testf = __c == __lc->_M_falsename[__n]; 26629: 26629: if (!__testf && __donet) 26629: break; 26629: 26629: if (!__donet) 26629: __testt = __c == __lc->_M_truename[__n]; 26629: 26629: if (!__testt && __donef) 26629: break; 26629: 26629: if (!__testt && !__testf) 26629: break; 26629: 26629: ++__n; 26629: ++__beg; 26629: 26629: __donef = !__testf || __n >= __lc->_M_falsename_size; 26629: __donet = !__testt || __n >= __lc->_M_truename_size; 26629: } 26629: if (__testf && __n == __lc->_M_falsename_size && __n) 26629: { 26629: __v = false; 26629: if (__testt && __n == __lc->_M_truename_size) 26629: __err = ios_base::failbit; 26629: else 26629: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 26629: } 26629: else if (__testt && __n == __lc->_M_truename_size && __n) 26629: { 26629: __v = true; 26629: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 26629: } 26629: else 26629: { 26629: 26629: 26629: __v = false; 26629: __err = ios_base::failbit; 26629: if (__testeof) 26629: __err |= ios_base::eofbit; 26629: } 26629: } 26629: return __beg; 26629: } 26629: 26629: template 26629: _InIter 26629: num_get<_CharT, _InIter>:: 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, float& __v) const 26629: { 26629: string __xtrc; 26629: __xtrc.reserve(32); 26629: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 26629: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 26629: if (__beg == __end) 26629: __err |= ios_base::eofbit; 26629: return __beg; 26629: } 26629: 26629: template 26629: _InIter 26629: num_get<_CharT, _InIter>:: 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, double& __v) const 26629: { 26629: string __xtrc; 26629: __xtrc.reserve(32); 26629: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 26629: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 26629: if (__beg == __end) 26629: __err |= ios_base::eofbit; 26629: return __beg; 26629: } 26629: # 735 "/usr/include/c++/12/bits/locale_facets.tcc" 3 26629: template 26629: _InIter 26629: num_get<_CharT, _InIter>:: 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, long double& __v) const 26629: { 26629: string __xtrc; 26629: __xtrc.reserve(32); 26629: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 26629: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 26629: if (__beg == __end) 26629: __err |= ios_base::eofbit; 26629: return __beg; 26629: } 26629: 26629: template 26629: _InIter 26629: num_get<_CharT, _InIter>:: 26629: do_get(iter_type __beg, iter_type __end, ios_base& __io, 26629: ios_base::iostate& __err, void*& __v) const 26629: { 26629: 26629: typedef ios_base::fmtflags fmtflags; 26629: const fmtflags __fmt = __io.flags(); 26629: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 26629: 26629: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 26629: <= sizeof(unsigned long)), 26629: unsigned long, unsigned long long>::__type _UIntPtrType; 26629: 26629: _UIntPtrType __ul; 26629: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 26629: 26629: 26629: __io.flags(__fmt); 26629: 26629: __v = reinterpret_cast(__ul); 26629: return __beg; 26629: } 26629: # 795 "/usr/include/c++/12/bits/locale_facets.tcc" 3 26629: template 26629: void 26629: num_put<_CharT, _OutIter>:: 26629: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 26629: _CharT* __new, const _CharT* __cs, int& __len) const 26629: { 26629: 26629: 26629: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 26629: __cs, __w, __len); 26629: __len = static_cast(__w); 26629: } 26629: 26629: 26629: 26629: template 26629: int 26629: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 26629: ios_base::fmtflags __flags, bool __dec) 26629: { 26629: _CharT* __buf = __bufend; 26629: if (__builtin_expect(__dec, true)) 26629: { 26629: 26629: do 26629: { 26629: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 26629: __v /= 10; 26629: } 26629: while (__v != 0); 26629: } 26629: else if ((__flags & ios_base::basefield) == ios_base::oct) 26629: { 26629: 26629: do 26629: { 26629: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 26629: __v >>= 3; 26629: } 26629: while (__v != 0); 26629: } 26629: else 26629: { 26629: 26629: const bool __uppercase = __flags & ios_base::uppercase; 26629: const int __case_offset = __uppercase ? __num_base::_S_oudigits 26629: : __num_base::_S_odigits; 26629: do 26629: { 26629: *--__buf = __lit[(__v & 0xf) + __case_offset]; 26629: __v >>= 4; 26629: } 26629: while (__v != 0); 26629: } 26629: return __bufend - __buf; 26629: } 26629: 26629: 26629: 26629: template 26629: void 26629: num_put<_CharT, _OutIter>:: 26629: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 26629: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 26629: { 26629: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 26629: __grouping_size, __cs, __cs + __len); 26629: __len = __p - __new; 26629: } 26629: 26629: template 26629: template 26629: _OutIter 26629: num_put<_CharT, _OutIter>:: 26629: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 26629: _ValueT __v) const 26629: { 26629: using __gnu_cxx::__add_unsigned; 26629: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 26629: typedef __numpunct_cache<_CharT> __cache_type; 26629: __use_cache<__cache_type> __uc; 26629: const locale& __loc = __io._M_getloc(); 26629: const __cache_type* __lc = __uc(__loc); 26629: const _CharT* __lit = __lc->_M_atoms_out; 26629: const ios_base::fmtflags __flags = __io.flags(); 26629: 26629: 26629: const int __ilen = 5 * sizeof(_ValueT); 26629: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 26629: * __ilen)); 26629: 26629: 26629: 26629: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 26629: const bool __dec = (__basefield != ios_base::oct 26629: && __basefield != ios_base::hex); 26629: const __unsigned_type __u = ((__v > 0 || !__dec) 26629: ? __unsigned_type(__v) 26629: : -__unsigned_type(__v)); 26629: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 26629: __cs += __ilen - __len; 26629: 26629: 26629: if (__lc->_M_use_grouping) 26629: { 26629: 26629: 26629: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 26629: * (__len + 1) 26629: * 2)); 26629: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 26629: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 26629: __cs = __cs2 + 2; 26629: } 26629: 26629: 26629: if (__builtin_expect(__dec, true)) 26629: { 26629: 26629: if (__v >= 0) 26629: { 26629: if (bool(__flags & ios_base::showpos) 26629: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 26629: *--__cs = __lit[__num_base::_S_oplus], ++__len; 26629: } 26629: else 26629: *--__cs = __lit[__num_base::_S_ominus], ++__len; 26629: } 26629: else if (bool(__flags & ios_base::showbase) && __v) 26629: { 26629: if (__basefield == ios_base::oct) 26629: *--__cs = __lit[__num_base::_S_odigits], ++__len; 26629: else 26629: { 26629: 26629: const bool __uppercase = __flags & ios_base::uppercase; 26629: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 26629: 26629: *--__cs = __lit[__num_base::_S_odigits]; 26629: __len += 2; 26629: } 26629: } 26629: 26629: 26629: const streamsize __w = __io.width(); 26629: if (__w > static_cast(__len)) 26629: { 26629: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 26629: * __w)); 26629: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 26629: __cs = __cs3; 26629: } 26629: __io.width(0); 26629: 26629: 26629: 26629: return std::__write(__s, __cs, __len); 26629: } 26629: 26629: template 26629: void 26629: num_put<_CharT, _OutIter>:: 26629: _M_group_float(const char* __grouping, size_t __grouping_size, 26629: _CharT __sep, const _CharT* __p, _CharT* __new, 26629: _CharT* __cs, int& __len) const 26629: { 26629: 26629: 26629: 26629: const int __declen = __p ? __p - __cs : __len; 26629: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 26629: __grouping_size, 26629: __cs, __cs + __declen); 26629: 26629: 26629: int __newlen = __p2 - __new; 26629: if (__p) 26629: { 26629: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 26629: __newlen += __len - __declen; 26629: } 26629: __len = __newlen; 26629: } 26629: # 989 "/usr/include/c++/12/bits/locale_facets.tcc" 3 26629: template 26629: template 26629: _OutIter 26629: num_put<_CharT, _OutIter>:: 26629: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 26629: _ValueT __v) const 26629: { 26629: typedef __numpunct_cache<_CharT> __cache_type; 26629: __use_cache<__cache_type> __uc; 26629: const locale& __loc = __io._M_getloc(); 26629: const __cache_type* __lc = __uc(__loc); 26629: 26629: 26629: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 26629: 26629: const int __max_digits = 26629: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 26629: 26629: 26629: int __len; 26629: 26629: char __fbuf[16]; 26629: __num_base::_S_format_float(__io, __fbuf, __mod); 26629: 26629: 26629: 26629: const bool __use_prec = 26629: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 26629: 26629: 26629: 26629: int __cs_size = __max_digits * 3; 26629: char* __cs = static_cast(__builtin_alloca(__cs_size)); 26629: if (__use_prec) 26629: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 26629: __fbuf, __prec, __v); 26629: else 26629: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 26629: __fbuf, __v); 26629: 26629: 26629: if (__len >= __cs_size) 26629: { 26629: __cs_size = __len + 1; 26629: __cs = static_cast(__builtin_alloca(__cs_size)); 26629: if (__use_prec) 26629: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 26629: __fbuf, __prec, __v); 26629: else 26629: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 26629: __fbuf, __v); 26629: } 26629: # 1062 "/usr/include/c++/12/bits/locale_facets.tcc" 3 26629: const ctype<_CharT>& __ctype = use_facet >(__loc); 26629: 26629: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 26629: * __len)); 26629: __ctype.widen(__cs, __cs + __len, __ws); 26629: 26629: 26629: _CharT* __wp = 0; 26629: const char* __p = char_traits::find(__cs, __len, '.'); 26629: if (__p) 26629: { 26629: __wp = __ws + (__p - __cs); 26629: *__wp = __lc->_M_decimal_point; 26629: } 26629: 26629: 26629: 26629: 26629: if (__lc->_M_use_grouping 26629: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 26629: && __cs[1] >= '0' && __cs[2] >= '0'))) 26629: { 26629: 26629: 26629: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 26629: * __len * 2)); 26629: 26629: streamsize __off = 0; 26629: if (__cs[0] == '-' || __cs[0] == '+') 26629: { 26629: __off = 1; 26629: __ws2[0] = __ws[0]; 26629: __len -= 1; 26629: } 26629: 26629: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 26629: __lc->_M_thousands_sep, __wp, __ws2 + __off, 26629: __ws + __off, __len); 26629: __len += __off; 26629: 26629: __ws = __ws2; 26629: } 26629: 26629: 26629: const streamsize __w = __io.width(); 26629: if (__w > static_cast(__len)) 26629: { 26629: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 26629: * __w)); 26629: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 26629: __ws = __ws3; 26629: } 26629: __io.width(0); 26629: 26629: 26629: 26629: return std::__write(__s, __ws, __len); 26629: } 26629: 26629: template 26629: _OutIter 26629: num_put<_CharT, _OutIter>:: 26629: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 26629: { 26629: const ios_base::fmtflags __flags = __io.flags()In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::ColumnFamilyDescriptor}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1294:21, inlined from 'static rocksdb::Status rocksdb::DB::OpenForReadOnly(const rocksdb::Options&, const std::string&, rocksdb::DB**, bool)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_readonly.cc:244:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ; 26629: if ((__flags & ios_base::boolalpha) == 0) 26629: { 26629: const long __l = __v; 26629: __s = _M_insert_int(__s, __io, __fill, __l); 26629: } 26629: else 26629: { 26629: typedef __numpunct_cache<_CharT> __cache_type; 26629: __use_cache<__cache_type> __uc; 26629: const locale& __loc = __io._M_getloc(); 26629: const __cache_type* __lc = __uc(__loc); 26629: 26629: const _CharT* __name = __v ? __lc->_M_truename 26629: : __lc->_M_falsename; 26629: int __len = __v ? __lc->_M_truename_size 26629: : __lc->_M_falsename_size; 26629: 26629: const streamsize __w = __io.width(); 26629: if (__w > static_cast(__len)) 26629: { 26629: const streamsize __plen = __w - __len; 26629: _CharT* __ps 26629: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 26629: * __plen)); 26629: 26629: char_traits<_CharT>::assign(__ps, __plen, __fill); 26629: __io.width(0); 26629: 26629: if ((__flags & ios_base::adjustfield) == ios_base::left) 26629: { 26629: __s = std::__write(__s, __name, __len); 26629: __s = std::__write(__s, __ps, __plen); 26629: } 26629: else 26629: { 26629: __s = std::__write(__s, __ps, __plen); 26629: __s = std::__write(__s, __name, __len); 26629: } 26629: return __s; 26629: } 26629: __io.width(0); 26629: __s = std::__write(__s, __name, __len); 26629: } 26629: return __s; 26629: } 26629: 26629: template 26629: _OutIter 26629: num_put<_CharT, _OutIter>:: 26629: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 26629: { return _M_insert_float(__s, __io, __fill, char(), __v); } 26629: # 1187 "/usr/include/c++/12/bits/locale_facets.tcc" 3 26629: template 26629: _OutIter 26629: num_put<_CharT, _OutIter>:: 26629: do_put(iter_type __s, ios_base& __io, char_type __fill, 26629: long double __v) const 26629: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 26629: 26629: template 26629: _OutIter 26629: num_put<_CharT, _OutIter>:: 26629: do_put(iter_type __s, ios_base& __io, char_type __fill, 26629: const void* __v) const 26629: { 26629: const ios_base::fmtflags __flags = __io.flags(); 26629: const ios_base::fmtflags __fmt = ~(ios_base::basefield 26629: | ios_base::uppercase); 26629: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 26629: 26629: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 26629: <= sizeof(unsigned long)), 26629: unsigned long, unsigned long long>::__type _UIntPtrType; 26629: 26629: __s = _M_insert_int(__s, __io, __fill, 26629: reinterpret_cast<_UIntPtrType>(__v)); 26629: __io.flags(__flags); 26629: return __s; 26629: } 26629: # 1224 "/usr/include/c++/12/bits/locale_facets.tcc" 3 26629: 26629: # 1233 "/usr/include/c++/12/bits/locale_facets.tcc" 3 26629: template 26629: void 26629: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 26629: _CharT* __news, const _CharT* __olds, 26629: streamsize __newlen, streamsize __oldlen) 26629: { 26629: const size_t __plen = static_cast(__newlen - __oldlen); 26629: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 26629: 26629: 26629: if (__adjust == ios_base::left) 26629: { 26629: _Traits::copy(__news, __olds, __oldlen); 26629: _Traits::assign(__news + __oldlen, __plen, __fill); 26629: return; 26629: } 26629: 26629: size_t __mod = 0; 26629: if (__adjust == ios_base::internal) 26629: { 26629: 26629: 26629: 26629: const locale& __loc = __io._M_getloc(); 26629: const ctype<_CharT>& __ctype = use_facet >(__loc); 26629: 26629: if (__ctype.widen('-') == __olds[0] 26629: || __ctype.widen('+') == __olds[0]) 26629: { 26629: __news[0] = __olds[0]; 26629: __mod = 1; 26629: ++__news; 26629: } 26629: else if (__ctype.widen('0') == __olds[0] 26629: && __oldlen > 1 26629: && (__ctype.widen('x') == __olds[1] 26629: || __ctype.widen('X') == __olds[1])) 26629: { 26629: __news[0] = __olds[0]; 26629: __news[1] = __olds[1]; 26629: __mod = 2; 26629: __news += 2; 26629: } 26629: 26629: } 26629: _Traits::assign(__news, __plen, __fill); 26629: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 26629: } 26629: 26629: template 26629: _CharT* 26629: __add_grouping(_CharT* __s, _CharT __sep, 26629: const char* __gbeg, size_t __gsize, 26629: const _CharT* __first, const _CharT* __last) 26629: { 26629: size_t __idx = 0; 26629: size_t __ctr = 0; 26629: 26629: while (__last - __first > __gbeg[__idx] 26629: && static_cast(__gbeg[__idx]) > 0 26629: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 26629: { 26629: __last -= __gbeg[__idx]; 26629: __idx < __gsize - 1 ? ++__idx : ++__ctr; 26629: } 26629: 26629: while (__first != __last) 26629: *__s++ = *__first++; 26629: 26629: while (__ctr--) 26629: { 26629: *__s++ = __sep; 26629: for (char __i = __gbeg[__idx]; __i > 0; --__i) 26629: *__s++ = *__first++; 26629: } 26629: 26629: while (__idx--) 26629: { 26629: *__s++ = __sep; 26629: for (char __i = __gbeg[__idx]; __i > 0; --__i) 26629: *__s++ = *__first++; 26629: } 26629: 26629: return __s; 26629: } 26629: 26629: 26629: 26629: 26629: extern template class __cxx11:: numpunct; 26629: extern template class __cxx11:: numpunct_byname; 26629: extern template class num_get; 26629: extern template class num_put; 26629: extern template class ctype_byname; 26629: 26629: extern template 26629: const ctype& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: const numpunct& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: const num_put& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: const num_get& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: 26629: extern template class __cxx11:: numpunct; 26629: extern template class __cxx11:: numpunct_byname; 26629: extern template class num_get; 26629: extern template class num_put; 26629: extern template class ctype_byname; 26629: 26629: extern template 26629: const ctype& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: const numpunct& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: const num_put& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: const num_get& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: 26629: 26629: 26629: } 26629: # 2688 "/usr/include/c++/12/bits/locale_facets.h" 2 3 26629: # 38 "/usr/include/c++/12/bits/basic_ios.h" 2 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: inline const _Facet& 26629: __check_facet(const _Facet* __f) 26629: { 26629: if (!__f) 26629: __throw_bad_cast(); 26629: return *__f; 26629: } 26629: # 66 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: template 26629: class basic_ios : public ios_base 26629: { 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef _CharT char_type; 26629: typedef typename _Traits::int_type int_type; 26629: typedef typename _Traits::pos_type pos_type; 26629: typedef typename _Traits::off_type off_type; 26629: typedef _Traits traits_type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef ctype<_CharT> __ctype_type; 26629: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 26629: __num_put_type; 26629: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 26629: __num_get_type; 26629: 26629: 26629: 26629: protected: 26629: basic_ostream<_CharT, _Traits>* _M_tie; 26629: mutable char_type _M_fill; 26629: mutable bool _M_fill_init; 26629: basic_streambuf<_CharT, _Traits>* _M_streambuf; 26629: 26629: 26629: const __ctype_type* _M_ctype; 26629: 26629: const __num_put_type* _M_num_put; 26629: 26629: const __num_get_type* _M_num_get; 26629: 26629: public: 26629: # 117 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: explicit operator bool() const 26629: { return !this->fail(); } 26629: 26629: 26629: 26629: 26629: 26629: bool 26629: operator!() const 26629: { return this->fail(); } 26629: # 136 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: iostate 26629: rdstate() const 26629: { return _M_streambuf_state; } 26629: # 147 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: void 26629: clear(iostate __state = goodbit); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: setstate(iostate __state) 26629: { this->clear(this->rdstate() | __state); } 26629: 26629: 26629: 26629: 26629: void 26629: _M_setstate(iostate __state) 26629: { 26629: 26629: 26629: _M_streambuf_state |= __state; 26629: if (this->exceptions() & __state) 26629: throw; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool 26629: good() const 26629: { return this->rdstate() == 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool 26629: eof() const 26629: { return (this->rdstate() & eofbit) != 0; } 26629: # 200 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: bool 26629: fail() const 26629: { return (this->rdstate() & (badbit | failbit)) != 0; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool 26629: bad() const 26629: { return (this->rdstate() & badbit) != 0; } 26629: # 221 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: iostate 26629: exceptions() const 26629: { return _M_exception; } 26629: # 256 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: void 26629: exceptions(iostate __except) 26629: { 26629: _M_exception = __except; 26629: this->clear(_M_streambuf_state); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 26629: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 26629: _M_ctype(0), _M_num_put(0), _M_num_get(0) 26629: { this->init(__sb); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual 26629: ~basic_ios() { } 26629: # 294 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: basic_ostream<_CharT, _Traits>* 26629: tie() const 26629: { return _M_tie; } 26629: # 306 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: basic_ostream<_CharT, _Traits>* 26629: tie(basic_ostream<_CharT, _Traits>* __tiestr) 26629: { 26629: basic_ostream<_CharT, _Traits>* __old = _M_tie; 26629: _M_tie = __tiestr; 26629: return __old; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_streambuf<_CharT, _Traits>* 26629: rdbuf() const 26629: { return _M_streambuf; } 26629: # 346 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: basic_streambuf<_CharT, _Traits>* 26629: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 26629: # 360 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: basic_ios& 26629: copyfmt(const basic_ios& __rhs); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: char_type 26629: fill() const 26629: { 26629: if (!_M_fill_init) 26629: { 26629: _M_fill = this->widen(' '); 26629: _M_fill_init = true; 26629: } 26629: return _M_fill; 26629: } 26629: # 389 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: char_type 26629: fill(char_type __ch) 26629: { 26629: char_type __old = this->fill(); 26629: _M_fill = __ch; 26629: return __old; 26629: } 26629: # 409 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: locale 26629: imbue(const locale& __loc); 26629: # 429 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: char 26629: narrow(char_type __c, char __dfault) const 26629: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 26629: # 448 "/usr/include/c++/12/bits/basic_ios.h" 3 26629: char_type 26629: widen(char __c) const 26629: { return __check_facet(_M_ctype).widen(__c); } 26629: 26629: protected: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_ios() 26629: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 26629: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 26629: { } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: init(basic_streambuf<_CharT, _Traits>* __sb); 26629: 26629: 26629: basic_ios(const basic_ios&) = delete; 26629: basic_ios& operator=(const basic_ios&) = delete; 26629: 26629: void 26629: move(basic_ios& __rhs) 26629: { 26629: ios_base::_M_move(__rhs); 26629: _M_cache_locale(_M_ios_locale); 26629: this->tie(__rhs.tie(nullptr)); 26629: _M_fill = __rhs._M_fill; 26629: _M_fill_init = __rhs._M_fill_init; 26629: _M_streambuf = nullptr; 26629: } 26629: 26629: void 26629: move(basic_ios&& __rhs) 26629: { this->move(__rhs); } 26629: 26629: void 26629: swap(basic_ios& __rhs) noexcept 26629: { 26629: ios_base::_M_swap(__rhs); 26629: _M_cache_locale(_M_ios_locale); 26629: __rhs._M_cache_locale(__rhs._M_ios_locale); 26629: std::swap(_M_tie, __rhs._M_tie); 26629: std::swap(_M_fill, __rhs._M_fill); 26629: std::swap(_M_fill_init, __rhs._M_fill_init); 26629: } 26629: 26629: void 26629: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 26629: { _M_streambuf = __sb; } 26629: 26629: 26629: void 26629: _M_cache_locale(const locale& __loc); 26629: }; 26629: 26629: 26629: } 26629: 26629: # 1 "/usr/include/c++/12/bits/basic_ios.tcc" 1 3 26629: # 33 "/usr/include/c++/12/bits/basic_ios.tcc" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/basic_ios.tcc" 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: void 26629: basic_ios<_CharT, _Traits>::clear(iostate __state) 26629: { 26629: if (this->rdbuf()) 26629: _M_streambuf_state = __state; 26629: else 26629: _M_streambuf_state = __state | badbit; 26629: if (this->exceptions() & this->rdstate()) 26629: __throw_ios_failure(("basic_ios::clear")); 26629: } 26629: 26629: template 26629: basic_streambuf<_CharT, _Traits>* 26629: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 26629: { 26629: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 26629: _M_streambuf = __sb; 26629: this->clear(); 26629: return __old; 26629: } 26629: 26629: template 26629: basic_ios<_CharT, _Traits>& 26629: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 26629: { 26629: 26629: 26629: if (this != std::__addressof(__rhs)) 26629: { 26629: 26629: 26629: 26629: 26629: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 26629: _M_local_word : new _Words[__rhs._M_word_size]; 26629: 26629: 26629: _Callback_list* __cb = __rhs._M_callbacks; 26629: if (__cb) 26629: __cb->_M_add_reference(); 26629: _M_call_callbacks(erase_event); 26629: if (_M_word != _M_local_word) 26629: { 26629: delete [] _M_word; 26629: _M_word = 0; 26629: } 26629: _M_dispose_callbacks(); 26629: 26629: 26629: _M_callbacks = __cb; 26629: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 26629: __words[__i] = __rhs._M_word[__i]; 26629: _M_word = __words; 26629: _M_word_size = __rhs._M_word_size; 26629: 26629: this->flags(__rhs.flags()); 26629: this->width(__rhs.width()); 26629: this->precision(__rhs.precision()); 26629: this->tie(__rhs.tie()); 26629: this->fill(__rhs.fill()); 26629: _M_ios_locale = __rhs.getloc(); 26629: _M_cache_locale(_M_ios_locale); 26629: 26629: _M_call_callbacks(copyfmt_event); 26629: 26629: 26629: this->exceptions(__rhs.exceptions()); 26629: } 26629: return *this; 26629: } 26629: 26629: 26629: template 26629: locale 26629: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 26629: { 26629: locale __old(this->getloc()); 26629: ios_base::imbue(__loc); 26629: _M_cache_locale(__loc); 26629: if (this->rdbuf() != 0) 26629: this->rdbuf()->pubimbue(__loc); 26629: return __old; 26629: } 26629: 26629: template 26629: void 26629: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 26629: { 26629: 26629: ios_base::_M_init(); 26629: 26629: 26629: _M_cache_locale(_M_ios_locale); 26629: # 146 "/usr/include/c++/12/bits/basic_ios.tcc" 3 26629: _M_fill = _CharT(); 26629: _M_fill_init = false; 26629: 26629: _M_tie = 0; 26629: _M_exception = goodbit; 26629: _M_streambuf = __sb; 26629: _M_streambuf_state = __sb ? goodbit : badbit; 26629: } 26629: 26629: template 26629: void 26629: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 26629: { 26629: if (__builtin_expect(has_facet<__ctype_type>(__loc), true)) 26629: _M_ctype = std::__addressof(use_facet<__ctype_type>(__loc)); 26629: else 26629: _M_ctype = 0; 26629: 26629: if (__builtin_expect(has_facet<__num_put_type>(__loc), true)) 26629: _M_num_put = std::__addressof(use_facet<__num_put_type>(__loc)); 26629: else 26629: _M_num_put = 0; 26629: 26629: if (__builtin_expect(has_facet<__num_get_type>(__loc), true)) 26629: _M_num_get = std::__addressof(use_facet<__num_get_type>(__loc)); 26629: else 26629: _M_num_get = 0; 26629: } 26629: 26629: 26629: 26629: 26629: extern template class basic_ios; 26629: 26629: 26629: extern template class basic_ios; 26629: 26629: 26629: 26629: 26629: } 26629: # 517 "/usr/include/c++/12/bits/basic_ios.h" 2 3 26629: # 45 "/usr/include/c++/12/ios" 2 3 26629: # 39 "/usr/include/c++/12/ostream" 2 3 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 57 "/usr/include/c++/12/ostream" 3 26629: template 26629: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 26629: { 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef typename _Traits::int_type int_type; 26629: typedef typename _Traits::pos_type pos_type; 26629: typedef typename _Traits::off_type off_type; 26629: typedef _Traits traits_type; 26629: 26629: 26629: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 26629: typedef basic_ios<_CharT, _Traits> __ios_type; 26629: typedef basic_ostream<_CharT, _Traits> __ostream_type; 26629: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 26629: __num_put_type; 26629: typedef ctype<_CharT> __ctype_type; 26629: # 83 "/usr/include/c++/12/ostream" 3 26629: explicit 26629: basic_ostream(__streambuf_type* __sb) 26629: { this->init(__sb); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual 26629: ~basic_ostream() { } 26629: 26629: 26629: class sentry; 26629: friend class sentry; 26629: # 107 "/usr/include/c++/12/ostream" 3 26629: __ostream_type& 26629: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 26629: { 26629: 26629: 26629: 26629: return __pf(*this); 26629: } 26629: 26629: __ostream_type& 26629: operator<<(__ios_type& (*__pf)(__ios_type&)) 26629: { 26629: 26629: 26629: 26629: __pf(*this); 26629: return *this; 26629: } 26629: 26629: __ostream_type& 26629: operator<<(ios_base& (*__pf) (ios_base&)) 26629: { 26629: 26629: 26629: 26629: __pf(*this); 26629: return *this; 26629: } 26629: # 165 "/usr/include/c++/12/ostream" 3 26629: __ostream_type& 26629: operator<<(long __n) 26629: { return _M_insert(__n); } 26629: 26629: __ostream_type& 26629: operator<<(unsigned long __n) 26629: { return _M_insert(__n); } 26629: 26629: __ostream_type& 26629: operator<<(bool __n) 26629: { return _M_insert(__n); } 26629: 26629: __ostream_type& 26629: operator<<(short __n); 26629: 26629: __ostream_type& 26629: operator<<(unsigned short __n) 26629: { 26629: 26629: 26629: return _M_insert(static_cast(__n)); 26629: } 26629: 26629: __ostream_type& 26629: operator<<(int __n); 26629: 26629: __ostream_type& 26629: operator<<(unsigned int __n) 26629: { 26629: 26629: 26629: return _M_insert(static_cast(__n)); 26629: } 26629: 26629: 26629: __ostream_type& 26629: operator<<(long long __n) 26629: { return _M_insert(__n); } 26629: 26629: __ostream_type& 26629: operator<<(unsigned long long __n) 26629: { return _M_insert(__n); } 26629: # 219 "/usr/include/c++/12/ostream" 3 26629: __ostream_type& 26629: operator<<(double __f) 26629: { return _M_insert(__f); } 26629: 26629: __ostream_type& 26629: operator<<(float __f) 26629: { 26629: 26629: 26629: return _M_insert(static_cast(__f)); 26629: } 26629: 26629: __ostream_type& 26629: operator<<(long double __f) 26629: { return _M_insert(__f); } 26629: # 244 "/usr/include/c++/12/ostream" 3 26629: __ostream_type& 26629: operator<<(const void* __p) 26629: { return _M_insert(__p); } 26629: 26629: 26629: __ostream_type& 26629: operator<<(nullptr_t) 26629: { return *this << "nullptr"; } 26629: # 282 "/usr/include/c++/12/ostream" 3 26629: __ostream_type& 26629: operator<<(__streambuf_type* __sb); 26629: # 315 "/usr/include/c++/12/ostream" 3 26629: __ostream_type& 26629: put(char_type __c); 26629: # 334 "/usr/include/c++/12/ostream" 3 26629: __ostream_type& 26629: write(const char_type* __s, streamsize __n); 26629: # 347 "/usr/include/c++/12/ostream" 3 26629: __ostream_type& 26629: flush(); 26629: # 357 "/usr/include/c++/12/ostream" 3 26629: pos_type 26629: tellp(); 26629: # 368 "/usr/include/c++/12/ostream" 3 26629: __ostream_type& 26629: seekp(pos_type); 26629: # 380 "/usr/include/c++/12/ostream" 3 26629: __ostream_type& 26629: seekp(off_type, ios_base::seekdir); 26629: 26629: protected: 26629: basic_ostream() 26629: { this->init(0); } 26629: 26629: 26629: 26629: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 26629: 26629: basic_ostream(const basic_ostream&) = delete; 26629: 26629: basic_ostream(basic_ostream&& __rhs) 26629: : __ios_type() 26629: { __ios_type::move(__rhs); } 26629: 26629: 26629: 26629: basic_ostream& operator=(const basic_ostream&) = delete; 26629: 26629: basic_ostream& 26629: operator=(basic_ostream&& __rhs) 26629: { 26629: swap(__rhs); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(basic_ostream& __rhs) 26629: { __ios_type::swap(__rhs); } 26629: 26629: 26629: template 26629: __ostream_type& 26629: _M_insert(_ValueT __v); 26629: 26629: private: 26629: 26629: void 26629: _M_write(const char_type* __s, streamsize __n) 26629: { std::__ostream_insert(*this, __s, __n); } 26629: 26629: }; 26629: # 432 "/usr/include/c++/12/ostream" 3 26629: template 26629: class basic_ostream<_CharT, _Traits>::sentry 26629: { 26629: 26629: bool _M_ok; 26629: basic_ostream<_CharT, _Traits>& _M_os; 26629: 26629: public: 26629: # 451 "/usr/include/c++/12/ostream" 3 26629: explicit 26629: sentry(basic_ostream<_CharT, _Traits>& __os); 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ~sentry() 26629: { 26629: 26629: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 26629: { 26629: 26629: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 26629: _M_os.setstate(ios_base::badbit); 26629: } 26629: } 26629: #pragma GCC diagnostic pop 26629: # 483 "/usr/include/c++/12/ostream" 3 26629: explicit 26629: 26629: operator bool() const 26629: { return _M_ok; } 26629: }; 26629: # 505 "/usr/include/c++/12/ostream" 3 26629: template 26629: inline basic_ostream<_CharT, _Traits>& 26629: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 26629: { 26629: if (__out.width() != 0) 26629: return __ostream_insert(__out, &__c, 1); 26629: __out.put(__c); 26629: return __out; 26629: } 26629: 26629: template 26629: inline basic_ostream<_CharT, _Traits>& 26629: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 26629: { return (__out << __out.widen(__c)); } 26629: 26629: 26629: template 26629: inline basic_ostream& 26629: operator<<(basic_ostream& __out, char __c) 26629: { 26629: if (__out.width() != 0) 26629: return __ostream_insert(__out, &__c, 1); 26629: __out.put(__c); 26629: return __out; 26629: } 26629: 26629: 26629: template 26629: inline basic_ostream& 26629: operator<<(basic_ostream& __out, signed char __c) 26629: { return (__out << static_cast(__c)); } 26629: 26629: template 26629: inline basic_ostream& 26629: operator<<(basic_ostream& __out, unsigned char __c) 26629: { return (__out << static_cast(__c)); } 26629: # 596 "/usr/include/c++/12/ostream" 3 26629: template 26629: inline basic_ostream<_CharT, _Traits>& 26629: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 26629: { 26629: if (!__s) 26629: __out.setstate(ios_base::badbit); 26629: else 26629: __ostream_insert(__out, __s, 26629: static_cast(_Traits::length(__s))); 26629: return __out; 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits> & 26629: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 26629: 26629: 26629: template 26629: inline basic_ostream& 26629: operator<<(basic_ostream& __out, const char* __s) 26629: { 26629: if (!__s) 26629: __out.setstate(ios_base::badbit); 26629: else 26629: __ostream_insert(__out, __s, 26629: static_cast(_Traits::length(__s))); 26629: return __out; 26629: } 26629: 26629: 26629: template 26629: inline basic_ostream& 26629: operator<<(basic_ostream& __out, const signed char* __s) 26629: { return (__out << reinterpret_cast(__s)); } 26629: 26629: template 26629: inline basic_ostream & 26629: operator<<(basic_ostream& __out, const unsigned char* __s) 26629: { return (__out << reinterpret_cast(__s)); } 26629: # 686 "/usr/include/c++/12/ostream" 3 26629: template 26629: inline basic_ostream<_CharT, _Traits>& 26629: endl(basic_ostream<_CharT, _Traits>& __os) 26629: { return flush(__os.put(__os.widen('\n'))); } 26629: # 698 "/usr/include/c++/12/ostream" 3 26629: template 26629: inline basic_ostream<_CharT, _Traits>& 26629: ends(basic_ostream<_CharT, _Traits>& __os) 26629: { return __os.put(_CharT()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: template 26629: inline basic_ostream<_CharT, _Traits>& 26629: flush(basic_ostream<_CharT, _Traits>& __os) 26629: { return __os.flush(); } 26629: # 730 "/usr/include/c++/12/ostream" 3 26629: template 26629: using _Require_derived_from_ios_base 26629: = _Require, __not_>, 26629: is_convertible::type, ios_base*>>; 26629: 26629: template, 26629: typename 26629: = decltype(std::declval<_Os&>() << std::declval())> 26629: using __rvalue_stream_insertion_t = _Os&&; 26629: # 752 "/usr/include/c++/12/ostream" 3 26629: template 26629: inline __rvalue_stream_insertion_t<_Ostream, _Tp> 26629: operator<<(_Ostream&& __os, const _Tp& __x) 26629: { 26629: __os << __x; 26629: return std::move(__os); 26629: } 26629: # 830 "/usr/include/c++/12/ostream" 3 26629: 26629: } 26629: 26629: # 1 "/usr/include/c++/12/bits/ostream.tcc" 1 3 26629: # 37 "/usr/include/c++/12/bits/ostream.tcc" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/ostream.tcc" 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>::sentry:: 26629: sentry(basic_ostream<_CharT, _Traits>& __os) 26629: : _M_ok(false), _M_os(__os) 26629: { 26629: 26629: if (__os.tie() && __os.good()) 26629: __os.tie()->flush(); 26629: 26629: if (__os.good()) 26629: _M_ok = true; 26629: else if (__os.bad()) 26629: __os.setstate(ios_base::failbit); 26629: } 26629: 26629: template 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: basic_ostream<_CharT, _Traits>:: 26629: _M_insert(_ValueT __v) 26629: { 26629: sentry __cerb(*this); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: const __num_put_type& __np = __check_facet(this->_M_num_put); 26629: if (__np.put(*this, *this, this->fill(), __v).failed()) 26629: __err |= ios_base::badbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: basic_ostream<_CharT, _Traits>:: 26629: operator<<(short __n) 26629: { 26629: 26629: 26629: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 26629: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 26629: return _M_insert(static_cast(static_cast(__n))); 26629: else 26629: return _M_insert(static_cast(__n)); 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: basic_ostream<_CharT, _Traits>:: 26629: operator<<(int __n) 26629: { 26629: 26629: 26629: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 26629: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 26629: return _M_insert(static_cast(static_cast(__n))); 26629: else 26629: return _M_insert(static_cast(__n)); 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: basic_ostream<_CharT, _Traits>:: 26629: operator<<(__streambuf_type* __sbin) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: sentry __cerb(*this); 26629: if (__cerb && __sbin) 26629: { 26629: try 26629: { 26629: if (!__copy_streambufs(__sbin, this->rdbuf())) 26629: __err |= ios_base::failbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::failbit); } 26629: } 26629: else if (!__sbin) 26629: __err |= ios_base::badbit; 26629: if (__err) 26629: this->setstate(__err); 26629: return *this; 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: basic_ostream<_CharT, _Traits>:: 26629: put(char_type __c) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: sentry __cerb(*this); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: const int_type __put = this->rdbuf()->sputc(__c); 26629: if (traits_type::eq_int_type(__put, traits_type::eof())) 26629: __err |= ios_base::badbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: basic_ostream<_CharT, _Traits>:: 26629: write(const _CharT* __s, streamsize __n) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: sentry __cerb(*this); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: if (this->rdbuf()->sputn(__s, __n) != __n) 26629: __err = ios_base::badbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(ios_base::badbit); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: basic_ostream<_CharT, _Traits>:: 26629: flush() 26629: { 26629: 26629: 26629: 26629: 26629: 26629: if (__streambuf_type* __buf = this->rdbuf()) 26629: { 26629: sentry __cerb(*this); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: if (this->rdbuf()->pubsync() == -1) 26629: __err |= ios_base::badbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: typename basic_ostream<_CharT, _Traits>::pos_type 26629: basic_ostream<_CharT, _Traits>:: 26629: tellp() 26629: { 26629: sentry __cerb(*this); 26629: pos_type __ret = pos_type(-1); 26629: if (!this->fail()) 26629: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 26629: return __ret; 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: basic_ostream<_CharT, _Traits>:: 26629: seekp(pos_type __pos) 26629: { 26629: sentry __cerb(*this); 26629: if (!this->fail()) 26629: { 26629: 26629: 26629: const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); 26629: 26629: 26629: if (__p == pos_type(off_type(-1))) 26629: this->setstate(ios_base::failbit); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: basic_ostream<_CharT, _Traits>:: 26629: seekp(off_type __off, ios_base::seekdir __dir) 26629: { 26629: sentry __cerb(*this); 26629: if (!this->fail()) 26629: { 26629: 26629: 26629: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 26629: ios_base::out); 26629: 26629: 26629: if (__p == pos_type(off_type(-1))) 26629: this->setstate(ios_base::failbit); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_ostream<_CharT, _Traits>& 26629: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 26629: { 26629: if (!__s) 26629: __out.setstate(ios_base::badbit); 26629: else 26629: { 26629: 26629: 26629: const size_t __clen = char_traits::length(__s); 26629: try 26629: { 26629: struct __ptr_guard 26629: { 26629: _CharT *__p; 26629: __ptr_guard (_CharT *__ip): __p(__ip) { } 26629: ~__ptr_guard() { delete[] __p; } 26629: _CharT* __get() { return __p; } 26629: } __pg (new _CharT[__clen]); 26629: 26629: _CharT *__ws = __pg.__get(); 26629: for (size_t __i = 0; __i < __clen; ++__i) 26629: __ws[__i] = __out.widen(__s[__i]); 26629: __ostream_insert(__out, __ws, __clen); 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: __out._M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { __out._M_setstate(ios_base::badbit); } 26629: } 26629: return __out; 26629: } 26629: 26629: 26629: 26629: 26629: extern template class basic_ostream; 26629: extern template ostream& endl(ostream&); 26629: extern template ostream& ends(ostream&); 26629: extern template ostream& flush(ostream&); 26629: extern template ostream& operator<<(ostream&, char); 26629: extern template ostream& operator<<(ostream&, unsigned char); 26629: extern template ostream& operator<<(ostream&, signed char); 26629: extern template ostream& operator<<(ostream&, const char*); 26629: extern template ostream& operator<<(ostream&, const unsigned char*); 26629: extern template ostream& operator<<(ostream&, const signed char*); 26629: 26629: extern template ostream& ostream::_M_insert(long); 26629: extern template ostream& ostream::_M_insert(unsigned long); 26629: extern template ostream& ostream::_M_insert(bool); 26629: 26629: extern template ostream& ostream::_M_insert(long long); 26629: extern template ostream& ostream::_M_insert(unsigned long long); 26629: 26629: extern template ostream& ostream::_M_insert(double); 26629: extern template ostream& ostream::_M_insert(long double); 26629: extern template ostream& ostream::_M_insert(const void*); 26629: 26629: 26629: extern template class basic_ostream; 26629: extern template wostream& endl(wostream&); 26629: extern template wostream& ends(wostream&); 26629: extern template wostream& flush(wostream&); 26629: extern template wostream& operator<<(wostream&, wchar_t); 26629: extern template wostream& operator<<(wostream&, char); 26629: extern template wostream& operator<<(wostream&, const wchar_t*); 26629: extern template wostream& operator<<(wostream&, const char*); 26629: 26629: extern template wostream& wostream::_M_insert(long); 26629: extern template wostream& wostream::_M_insert(unsigned long); 26629: extern template wostream& wostream::_M_insert(bool); 26629: 26629: extern template wostream& wostream::_M_insert(long long); 26629: extern template wostream& wostream::_M_insert(unsigned long long); 26629: 26629: extern template wostream& wostream::_M_insert(double); 26629: extern template wostream& wostream::_M_insert(long double); 26629: extern template wostream& wostream::_M_insert(const void*); 26629: 26629: 26629: 26629: 26629: } 26629: # 834 "/usr/include/c++/12/ostream" 2 3 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 2 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 26629: 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 26629: namespace rocksdb { 26629: 26629: 26629: 26629: class WideColumn { 26629: public: 26629: WideColumn() = default; 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 26629: template 26629: WideColumn(N&& name, V&& value) 26629: : name_(std::forward(name)), value_(std::forward(value)) {} 26629: # 47 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 26629: template 26629: WideColumn(std::piecewise_construct_t, NTuple&& name_tuple, 26629: VTuple&& value_tuple) 26629: : name_(std::make_from_tuple(std::forward(name_tuple))), 26629: value_(std::make_from_tuple(std::forward(value_tuple))) { 26629: } 26629: 26629: const Slice& name() const { return name_; } 26629: const Slice& value() const { return value_; } 26629: 26629: Slice& name() { return name_; } 26629: Slice& value() { return value_; } 26629: 26629: private: 26629: Slice name_; 26629: Slice value_; 26629: }; 26629: 26629: 26629: inline bool operator==(const WideColumn& lhs, const WideColumn& rhs) { 26629: return lhs.name() == rhs.name() && lhs.value() == rhs.value(); 26629: } 26629: 26629: inline bool operator!=(const WideColumn& lhs, const WideColumn& rhs) { 26629: return !(lhs == rhs); 26629: } 26629: 26629: inline std::ostream& operator<<(std::ostream& os, const WideColumn& column) { 26629: const bool hex = 26629: (os.flags() & std::ios_base::basefield) == std::ios_base::hex; 26629: os << column.name().ToString(hex) << ':' << column.value().ToString(hex); 26629: 26629: return os; 26629: } 26629: 26629: 26629: using WideColumns = std::vector; 26629: 26629: 26629: extern const Slice kDefaultWideColumnName; 26629: 26629: 26629: extern const WideColumns kNoWideColumns; 26629: 26629: 26629: 26629: class PinnableWideColumns { 26629: public: 26629: const WideColumns& columns() const { return columns_; } 26629: size_t serialized_size() const { return value_.size(); } 26629: 26629: void SetPlainValue(const Slice& value); 26629: void SetPlainValue(const Slice& value, Cleanable* cleanable); 26629: 26629: Status SetWideColumnValue(const Slice& value); 26629: Status SetWideColumnValue(const Slice& value, Cleanable* cleanable); 26629: 26629: void Reset(); 26629: 26629: private: 26629: void CopyValue(const Slice& value); 26629: void PinOrCopyValue(const Slice& value, Cleanable* cleanable); 26629: void CreateIndexForPlainValue(); 26629: Status CreateIndexForWideColumns(); 26629: 26629: PinnableSlice value_; 26629: WideColumns columns_; 26629: }; 26629: 26629: inline void PinnableWideColumns::CopyValue(const Slice& value) { 26629: value_.PinSelf(value); 26629: } 26629: 26629: inline void PinnableWideColumns::PinOrCopyValue(const Slice& value, 26629: Cleanable* cleanable) { 26629: if (!cleanable) { 26629: CopyValue(value); 26629: return; 26629: } 26629: 26629: value_.PinSlice(value, cleanable); 26629: } 26629: 26629: inline void PinnableWideColumns::CreateIndexForPlainValue() { 26629: columns_ = WideColumns{{kDefaultWideColumnName, value_}}; 26629: } 26629: 26629: inline void PinnableWideColumns::SetPlainValue(const Slice& value) { 26629: CopyValue(value); 26629: CreateIndexForPlainValue(); 26629: } 26629: 26629: inline void PinnableWideColumns::SetPlainValue(const Slice& value, 26629: Cleanable* cleanable) { 26629: PinOrCopyValue(value, cleanable); 26629: CreateIndexForPlainValue(); 26629: } 26629: 26629: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value) { 26629: CopyValue(value); 26629: return CreateIndexForWideColumns(); 26629: } 26629: 26629: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value, 26629: Cleanable* cleanable) { 26629: PinOrCopyValue(value, cleanable); 26629: return CreateIndexForWideColumns(); 26629: } 26629: 26629: inline void PinnableWideColumns::Reset() { 26629: value_.Reset(); 26629: columns_.clear(); 26629: } 26629: 26629: inline bool operator==(const PinnableWideColumns& lhs, 26629: const PinnableWideColumns& rhs) { 26629: return lhs.columns() == rhs.columns(); 26629: } 26629: 26629: inline bool operator!=(const PinnableWideColumns& lhs, 26629: const PinnableWideColumns& rhs) { 26629: return !(lhs == rhs); 26629: } 26629: 26629: } 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class Iterator : public Cleanable { 26629: public: 26629: Iterator() {} 26629: 26629: Iterator(const Iterator&) = delete; 26629: void operator=(const Iterator&) = delete; 26629: 26629: virtual ~Iterator() {} 26629: 26629: 26629: 26629: 26629: virtual bool Valid() const = 0; 26629: 26629: 26629: 26629: virtual void SeekToFirst() = 0; 26629: 26629: 26629: 26629: virtual void SeekToLast() = 0; 26629: # 59 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: virtual void Seek(const Slice& target) = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual void SeekForPrev(const Slice& target) = 0; 26629: 26629: 26629: 26629: 26629: virtual void Next() = 0; 26629: 26629: 26629: 26629: 26629: virtual void Prev() = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Slice key() const = 0; 26629: # 91 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: virtual Slice value() const = 0; 26629: # 100 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: virtual const WideColumns& columns() const { 26629: 26629: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 26629: (static_cast ( 26629: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: false 26629: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: "false" 26629: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 26629: , "./include/rocksdb/iterator.h", 101, __extension__ __PRETTY_FUNCTION__)) 26629: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: ; 26629: return kNoWideColumns; 26629: } 26629: 26629: 26629: 26629: 26629: virtual Status status() const = 0; 26629: 26629: 26629: 26629: 26629: virtual Status Refresh() { 26629: return Status::NotSupported("Refresh() is not supported"); 26629: } 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: virtual Status GetProperty(std::string prop_name, std::string* prop); 26629: 26629: virtual Slice timestamp() const { 26629: 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 26629: (static_cast ( 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: false 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: "false" 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 26629: , "./include/rocksdb/iterator.h", 133, __extension__ __PRETTY_FUNCTION__)) 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 26629: ; 26629: return Slice(); 26629: } 26629: }; 26629: 26629: 26629: extern Iterator* NewEmptyIterator(); 26629: 26629: 26629: extern Iterator* NewErrorIterator(const Status& status); 26629: 26629: } 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/sstream" 1 3 26629: # 36 "/usr/include/c++/12/sstream" 3 26629: 26629: # 37 "/usr/include/c++/12/sstream" 3 26629: 26629: # 1 "/usr/include/c++/12/istream" 1 3 26629: # 36 "/usr/include/c++/12/istream" 3 26629: 26629: # 37 "/usr/include/c++/12/istream" 3 26629: 26629: 26629: 26629: 26629: 26629: # 41 "/usr/include/c++/12/istream" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: # 57 "/usr/include/c++/12/istream" 3 26629: template 26629: class basic_istream : virtual public basic_ios<_CharT, _Traits> 26629: { 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef typename _Traits::int_type int_type; 26629: typedef typename _Traits::pos_type pos_type; 26629: typedef typename _Traits::off_type off_type; 26629: typedef _Traits traits_type; 26629: 26629: 26629: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 26629: typedef basic_ios<_CharT, _Traits> __ios_type; 26629: typedef basic_istream<_CharT, _Traits> __istream_type; 26629: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 26629: __num_get_type; 26629: typedef ctype<_CharT> __ctype_type; 26629: 26629: protected: 26629: 26629: 26629: 26629: 26629: 26629: streamsize _M_gcount; 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: basic_istream(__streambuf_type* __sb) 26629: : _M_gcount(streamsize(0)) 26629: { this->init(__sb); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual 26629: ~basic_istream() 26629: { _M_gcount = streamsize(0); } 26629: 26629: 26629: class sentry; 26629: friend class sentry; 26629: # 119 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: operator>>(__istream_type& (*__pf)(__istream_type&)) 26629: { return __pf(*this); } 26629: 26629: __istream_type& 26629: operator>>(__ios_type& (*__pf)(__ios_type&)) 26629: { 26629: __pf(*this); 26629: return *this; 26629: } 26629: 26629: __istream_type& 26629: operator>>(ios_base& (*__pf)(ios_base&)) 26629: { 26629: __pf(*this); 26629: return *this; 26629: } 26629: # 167 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: operator>>(bool& __n) 26629: { return _M_extract(__n); } 26629: 26629: __istream_type& 26629: operator>>(short& __n); 26629: 26629: __istream_type& 26629: operator>>(unsigned short& __n) 26629: { return _M_extract(__n); } 26629: 26629: __istream_type& 26629: operator>>(int& __n); 26629: 26629: __istream_type& 26629: operator>>(unsigned int& __n) 26629: { return _M_extract(__n); } 26629: 26629: __istream_type& 26629: operator>>(long& __n) 26629: { return _M_extract(__n); } 26629: 26629: __istream_type& 26629: operator>>(unsigned long& __n) 26629: { return _M_extract(__n); } 26629: 26629: 26629: __istream_type& 26629: operator>>(long long& __n) 26629: { return _M_extract(__n); } 26629: 26629: __istream_type& 26629: operator>>(unsigned long long& __n) 26629: { return _M_extract(__n); } 26629: # 213 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: operator>>(float& __f) 26629: { return _M_extract(__f); } 26629: 26629: __istream_type& 26629: operator>>(double& __f) 26629: { return _M_extract(__f); } 26629: 26629: __istream_type& 26629: operator>>(long double& __f) 26629: { return _M_extract(__f); } 26629: # 234 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: operator>>(void*& __p) 26629: { return _M_extract(__p); } 26629: # 258 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: operator>>(__streambuf_type* __sb); 26629: # 268 "/usr/include/c++/12/istream" 3 26629: streamsize 26629: gcount() const 26629: { return _M_gcount; } 26629: # 301 "/usr/include/c++/12/istream" 3 26629: int_type 26629: get(); 26629: # 315 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: get(char_type& __c); 26629: # 342 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: get(char_type* __s, streamsize __n, char_type __delim); 26629: # 353 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: get(char_type* __s, streamsize __n) 26629: { return this->get(__s, __n, this->widen('\n')); } 26629: # 376 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: get(__streambuf_type& __sb, char_type __delim); 26629: # 386 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: get(__streambuf_type& __sb) 26629: { return this->get(__sb, this->widen('\n')); } 26629: # 415 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: getline(char_type* __s, streamsize __n, char_type __delim); 26629: # 426 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: getline(char_type* __s, streamsize __n) 26629: { return this->getline(__s, __n, this->widen('\n')); } 26629: # 450 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: ignore(streamsize __n, int_type __delim); 26629: 26629: __istream_type& 26629: ignore(streamsize __n); 26629: 26629: __istream_type& 26629: ignore(); 26629: # 467 "/usr/include/c++/12/istream" 3 26629: int_type 26629: peek(); 26629: # 485 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: read(char_type* __s, streamsize __n); 26629: # 504 "/usr/include/c++/12/istream" 3 26629: streamsize 26629: readsome(char_type* __s, streamsize __n); 26629: # 521 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: putback(char_type __c); 26629: # 537 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: unget(); 26629: # 555 "/usr/include/c++/12/istream" 3 26629: int 26629: sync(); 26629: # 570 "/usr/include/c++/12/istream" 3 26629: pos_type 26629: tellg(); 26629: # 585 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: seekg(pos_type); 26629: # 601 "/usr/include/c++/12/istream" 3 26629: __istream_type& 26629: seekg(off_type, ios_base::seekdir); 26629: 26629: 26629: protected: 26629: basic_istream() 26629: : _M_gcount(streamsize(0)) 26629: { this->init(0); } 26629: 26629: 26629: basic_istream(const basic_istream&) = delete; 26629: 26629: basic_istream(basic_istream&& __rhs) 26629: : __ios_type(), _M_gcount(__rhs._M_gcount) 26629: { 26629: __ios_type::move(__rhs); 26629: __rhs._M_gcount = 0; 26629: } 26629: 26629: 26629: 26629: basic_istream& operator=(const basic_istream&) = delete; 26629: 26629: basic_istream& 26629: operator=(basic_istream&& __rhs) 26629: { 26629: swap(__rhs); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(basic_istream& __rhs) 26629: { 26629: __ios_type::swap(__rhs); 26629: std::swap(_M_gcount, __rhs._M_gcount); 26629: } 26629: 26629: 26629: template 26629: __istream_type& 26629: _M_extract(_ValueT& __v); 26629: }; 26629: 26629: 26629: template<> 26629: basic_istream& 26629: basic_istream:: 26629: getline(char_type* __s, streamsize __n, char_type __delim); 26629: 26629: template<> 26629: basic_istream& 26629: basic_istream:: 26629: ignore(streamsize __n); 26629: 26629: template<> 26629: basic_istream& 26629: basic_istream:: 26629: ignore(streamsize __n, int_type __delim); 26629: 26629: 26629: template<> 26629: basic_istream& 26629: basic_istream:: 26629: getline(char_type* __s, streamsize __n, char_type __delim); 26629: 26629: template<> 26629: basic_istream& 26629: basic_istream:: 26629: ignore(streamsize __n); 26629: 26629: template<> 26629: basic_istream& 26629: basic_istream:: 26629: ignore(streamsize __n, int_type __delim); 26629: # 685 "/usr/include/c++/12/istream" 3 26629: template 26629: class basic_istream<_CharT, _Traits>::sentry 26629: { 26629: 26629: bool _M_ok; 26629: 26629: public: 26629: 26629: typedef _Traits traits_type; 26629: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 26629: typedef basic_istream<_CharT, _Traits> __istream_type; 26629: typedef typename __istream_type::__ctype_type __ctype_type; 26629: typedef typename _Traits::int_type __int_type; 26629: # 721 "/usr/include/c++/12/istream" 3 26629: explicit 26629: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 26629: # 732 "/usr/include/c++/12/istream" 3 26629: explicit 26629: 26629: operator bool() const 26629: { return _M_ok; } 26629: }; 26629: # 750 "/usr/include/c++/12/istream" 3 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 26629: 26629: template 26629: inline basic_istream& 26629: operator>>(basic_istream& __in, unsigned char& __c) 26629: { return (__in >> reinterpret_cast(__c)); } 26629: 26629: template 26629: inline basic_istream& 26629: operator>>(basic_istream& __in, signed char& __c) 26629: { return (__in >> reinterpret_cast(__c)); } 26629: 26629: 26629: 26629: template 26629: void 26629: __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); 26629: 26629: void __istream_extract(istream&, char*, streamsize); 26629: # 800 "/usr/include/c++/12/istream" 3 26629: template 26629: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 26629: inline basic_istream<_CharT, _Traits>& 26629: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 26629: { 26629: 26629: 26629: 26629: size_t __n = __builtin_object_size(__s, 0); 26629: if (__n < sizeof(_CharT)) 26629: { 26629: 26629: do { if (std::__is_constant_evaluated() && !bool(__n >= sizeof(_CharT))) __builtin_unreachable(); } while (false); 26629: 26629: __in.width(0); 26629: __in.setstate(ios_base::failbit); 26629: } 26629: else if (__n != (size_t)-1) 26629: { 26629: __n /= sizeof(_CharT); 26629: streamsize __w = __in.width(); 26629: std::__istream_extract(__in, __s, __n); 26629: if (__in.good() && (__w <= 0 || __n < __w)) 26629: { 26629: 26629: 26629: const typename _Traits::int_type __c = __in.rdbuf()->sgetc(); 26629: const bool __eof = _Traits::eq_int_type(__c, _Traits::eof()); 26629: if (__builtin_expect(__eof, true)) 26629: __in.setstate(ios_base::eofbit); 26629: } 26629: } 26629: else 26629: 26629: { 26629: 26629: streamsize __n = __gnu_cxx::__numeric_traits::__max; 26629: __n /= sizeof(_CharT); 26629: std::__istream_extract(__in, __s, __n); 26629: } 26629: return __in; 26629: } 26629: 26629: template 26629: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 26629: inline basic_istream& 26629: operator>>(basic_istream& __in, unsigned char* __s) 26629: { return __in >> reinterpret_cast(__s); } 26629: 26629: template 26629: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 26629: inline basic_istream& 26629: operator>>(basic_istream& __in, signed char* __s) 26629: { return __in >> reinterpret_cast(__s); } 26629: # 889 "/usr/include/c++/12/istream" 3 26629: template 26629: class basic_iostream 26629: : public basic_istream<_CharT, _Traits>, 26629: public basic_ostream<_CharT, _Traits> 26629: { 26629: public: 26629: 26629: 26629: 26629: typedef _CharT char_type; 26629: typedef typename _Traits::int_type int_type; 26629: typedef typename _Traits::pos_type pos_type; 26629: typedef typename _Traits::off_type off_type; 26629: typedef _Traits traits_type; 26629: 26629: 26629: typedef basic_istream<_CharT, _Traits> __istream_type; 26629: typedef basic_ostream<_CharT, _Traits> __ostream_type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 26629: : __istream_type(__sb), __ostream_type(__sb) { } 26629: 26629: 26629: 26629: 26629: virtual 26629: ~basic_iostream() { } 26629: 26629: protected: 26629: basic_iostream() 26629: : __istream_type(), __ostream_type() { } 26629: 26629: 26629: basic_iostream(const basic_iostream&) = delete; 26629: 26629: basic_iostream(basic_iostream&& __rhs) 26629: : __istream_type(std::move(__rhs)), __ostream_type(*this) 26629: { } 26629: 26629: 26629: 26629: basic_iostream& operator=(const basic_iostream&) = delete; 26629: 26629: basic_iostream& 26629: operator=(basic_iostream&& __rhs) 26629: { 26629: swap(__rhs); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(basic_iostream& __rhs) 26629: { __istream_type::swap(__rhs); } 26629: 26629: }; 26629: # 972 "/usr/include/c++/12/istream" 3 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: ws(basic_istream<_CharT, _Traits>& __is); 26629: # 988 "/usr/include/c++/12/istream" 3 26629: template, 26629: typename = decltype(std::declval<_Is&>() >> std::declval<_Tp>())> 26629: using __rvalue_stream_extraction_t = _Is&&; 26629: # 1004 "/usr/include/c++/12/istream" 3 26629: template 26629: inline __rvalue_stream_extraction_t<_Istream, _Tp> 26629: operator>>(_Istream&& __is, _Tp&& __x) 26629: { 26629: __is >> std::forward<_Tp>(__x); 26629: return std::move(__is); 26629: } 26629: 26629: 26629: 26629: } 26629: 26629: # 1 "/usr/include/c++/12/bits/istream.tcc" 1 3 26629: # 37 "/usr/include/c++/12/bits/istream.tcc" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/istream.tcc" 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: basic_istream<_CharT, _Traits>::sentry:: 26629: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: if (__in.good()) 26629: { 26629: try 26629: { 26629: if (__in.tie()) 26629: __in.tie()->flush(); 26629: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 26629: { 26629: const __int_type __eof = traits_type::eof(); 26629: __streambuf_type* __sb = __in.rdbuf(); 26629: __int_type __c = __sb->sgetc(); 26629: 26629: const __ctype_type& __ct = __check_facet(__in._M_ctype); 26629: while (!traits_type::eq_int_type(__c, __eof) 26629: && __ct.is(ctype_base::space, 26629: traits_type::to_char_type(__c))) 26629: __c = __sb->snextc(); 26629: 26629: 26629: 26629: 26629: if (traits_type::eq_int_type(__c, __eof)) 26629: __err |= ios_base::eofbit; 26629: } 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: __in._M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { __in._M_setstate(ios_base::badbit); } 26629: } 26629: 26629: if (__in.good() && __err == ios_base::goodbit) 26629: _M_ok = true; 26629: else 26629: { 26629: __err |= ios_base::failbit; 26629: __in.setstate(__err); 26629: } 26629: } 26629: 26629: template 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: _M_extract(_ValueT& __v) 26629: { 26629: sentry __cerb(*this, false); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: const __num_get_type& __ng = __check_facet(this->_M_num_get); 26629: __ng.get(*this, 0, *this, __err, __v); 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: operator>>(short& __n) 26629: { 26629: 26629: 26629: sentry __cerb(*this, false); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: long __l; 26629: const __num_get_type& __ng = __check_facet(this->_M_num_get); 26629: __ng.get(*this, 0, *this, __err, __l); 26629: 26629: 26629: 26629: if (__l < __gnu_cxx::__numeric_traits::__min) 26629: { 26629: __err |= ios_base::failbit; 26629: __n = __gnu_cxx::__numeric_traits::__min; 26629: } 26629: else if (__l > __gnu_cxx::__numeric_traits::__max) 26629: { 26629: __err |= ios_base::failbit; 26629: __n = __gnu_cxx::__numeric_traits::__max; 26629: } 26629: else 26629: __n = short(__l); 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: operator>>(int& __n) 26629: { 26629: 26629: 26629: sentry __cerb(*this, false); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: long __l; 26629: const __num_get_type& __ng = __check_facet(this->_M_num_get); 26629: __ng.get(*this, 0, *this, __err, __l); 26629: 26629: 26629: 26629: if (__l < __gnu_cxx::__numeric_traits::__min) 26629: { 26629: __err |= ios_base::failbit; 26629: __n = __gnu_cxx::__numeric_traits::__min; 26629: } 26629: else if (__l > __gnu_cxx::__numeric_traits::__max) 26629: { 26629: __err |= ios_base::failbit; 26629: __n = __gnu_cxx::__numeric_traits::__max; 26629: } 26629: else 26629: __n = int(__l); 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: operator>>(__streambuf_type* __sbout) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: sentry __cerb(*this, false); 26629: if (__cerb && __sbout) 26629: { 26629: try 26629: { 26629: bool __ineof; 26629: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 26629: __err |= ios_base::failbit; 26629: if (__ineof) 26629: __err |= ios_base::eofbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::failbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::failbit); } 26629: } 26629: else if (!__sbout) 26629: __err |= ios_base::failbit; 26629: if (__err) 26629: this->setstate(__err); 26629: return *this; 26629: } 26629: 26629: template 26629: typename basic_istream<_CharT, _Traits>::int_type 26629: basic_istream<_CharT, _Traits>:: 26629: get(void) 26629: { 26629: const int_type __eof = traits_type::eof(); 26629: int_type __c = __eof; 26629: _M_gcount = 0; 26629: ios_base::iostate __err = ios_base::goodbit; 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: try 26629: { 26629: __c = this->rdbuf()->sbumpc(); 26629: 26629: if (!traits_type::eq_int_type(__c, __eof)) 26629: _M_gcount = 1; 26629: else 26629: __err |= ios_base::eofbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: } 26629: if (!_M_gcount) 26629: __err |= ios_base::failbit; 26629: if (__err) 26629: this->setstate(__err); 26629: return __c; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: get(char_type& __c) 26629: { 26629: _M_gcount = 0; 26629: ios_base::iostate __err = ios_base::goodbit; 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: try 26629: { 26629: const int_type __cb = this->rdbuf()->sbumpc(); 26629: 26629: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 26629: { 26629: _M_gcount = 1; 26629: __c = traits_type::to_char_type(__cb); 26629: } 26629: else 26629: __err |= ios_base::eofbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: } 26629: if (!_M_gcount) 26629: __err |= ios_base::failbit; 26629: if (__err) 26629: this->setstate(__err); 26629: return *this; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: get(char_type* __s, streamsize __n, char_type __delim) 26629: { 26629: _M_gcount = 0; 26629: ios_base::iostate __err = ios_base::goodbit; 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: try 26629: { 26629: const int_type __idelim = traits_type::to_int_type(__delim); 26629: const int_type __eof = traits_type::eof(); 26629: __streambuf_type* __sb = this->rdbuf(); 26629: int_type __c = __sb->sgetc(); 26629: 26629: while (_M_gcount + 1 < __n 26629: && !traits_type::eq_int_type(__c, __eof) 26629: && !traits_type::eq_int_type(__c, __idelim)) 26629: { 26629: *__s++ = traits_type::to_char_type(__c); 26629: ++_M_gcount; 26629: __c = __sb->snextc(); 26629: } 26629: if (traits_type::eq_int_type(__c, __eof)) 26629: __err |= ios_base::eofbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: } 26629: 26629: 26629: if (__n > 0) 26629: *__s = char_type(); 26629: if (!_M_gcount) 26629: __err |= ios_base::failbit; 26629: if (__err) 26629: this->setstate(__err); 26629: return *this; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: get(__streambuf_type& __sb, char_type __delim) 26629: { 26629: _M_gcount = 0; 26629: ios_base::iostate __err = ios_base::goodbit; 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: try 26629: { 26629: const int_type __idelim = traits_type::to_int_type(__delim); 26629: const int_type __eof = traits_type::eof(); 26629: __streambuf_type* __this_sb = this->rdbuf(); 26629: int_type __c = __this_sb->sgetc(); 26629: char_type __c2 = traits_type::to_char_type(__c); 26629: unsigned long long __gcount = 0; 26629: 26629: while (!traits_type::eq_int_type(__c, __eof) 26629: && !traits_type::eq_int_type(__c, __idelim) 26629: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 26629: { 26629: ++__gcount; 26629: __c = __this_sb->snextc(); 26629: __c2 = traits_type::to_char_type(__c); 26629: } 26629: if (traits_type::eq_int_type(__c, __eof)) 26629: __err |= ios_base::eofbit; 26629: 26629: 26629: if (__gcount <= __gnu_cxx::__numeric_traits::__max) 26629: _M_gcount = __gcount; 26629: else 26629: _M_gcount = __gnu_cxx::__numeric_traits::__max; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: } 26629: if (!_M_gcount) 26629: __err |= ios_base::failbit; 26629: if (__err) 26629: this->setstate(__err); 26629: return *this; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: getline(char_type* __s, streamsize __n, char_type __delim) 26629: { 26629: _M_gcount = 0; 26629: ios_base::iostate __err = ios_base::goodbit; 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: try 26629: { 26629: const int_type __idelim = traits_type::to_int_type(__delim); 26629: const int_type __eof = traits_type::eof(); 26629: __streambuf_type* __sb = this->rdbuf(); 26629: int_type __c = __sb->sgetc(); 26629: 26629: while (_M_gcount + 1 < __n 26629: && !traits_type::eq_int_type(__c, __eof) 26629: && !traits_type::eq_int_type(__c, __idelim)) 26629: { 26629: *__s++ = traits_type::to_char_type(__c); 26629: __c = __sb->snextc(); 26629: ++_M_gcount; 26629: } 26629: if (traits_type::eq_int_type(__c, __eof)) 26629: __err |= ios_base::eofbit; 26629: else 26629: { 26629: if (traits_type::eq_int_type(__c, __idelim)) 26629: { 26629: __sb->sbumpc(); 26629: ++_M_gcount; 26629: } 26629: else 26629: __err |= ios_base::failbit; 26629: } 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: } 26629: 26629: 26629: if (__n > 0) 26629: *__s = char_type(); 26629: if (!_M_gcount) 26629: __err |= ios_base::failbit; 26629: if (__err) 26629: this->setstate(__err); 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: ignore(void) 26629: { 26629: _M_gcount = 0; 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: const int_type __eof = traits_type::eof(); 26629: __streambuf_type* __sb = this->rdbuf(); 26629: 26629: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 26629: __err |= ios_base::eofbit; 26629: else 26629: _M_gcount = 1; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: ignore(streamsize __n) 26629: { 26629: _M_gcount = 0; 26629: sentry __cerb(*this, true); 26629: if (__cerb && __n > 0) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: const int_type __eof = traits_type::eof(); 26629: __streambuf_type* __sb = this->rdbuf(); 26629: int_type __c = __sb->sgetc(); 26629: # 530 "/usr/include/c++/12/bits/istream.tcc" 3 26629: bool __large_ignore = false; 26629: while (true) 26629: { 26629: while (_M_gcount < __n 26629: && !traits_type::eq_int_type(__c, __eof)) 26629: { 26629: ++_M_gcount; 26629: __c = __sb->snextc(); 26629: } 26629: if (__n == __gnu_cxx::__numeric_traits::__max 26629: && !traits_type::eq_int_type(__c, __eof)) 26629: { 26629: _M_gcount = 26629: __gnu_cxx::__numeric_traits::__min; 26629: __large_ignore = true; 26629: } 26629: else 26629: break; 26629: } 26629: 26629: if (__n == __gnu_cxx::__numeric_traits::__max) 26629: { 26629: if (__large_ignore) 26629: _M_gcount = __gnu_cxx::__numeric_traits::__max; 26629: 26629: if (traits_type::eq_int_type(__c, __eof)) 26629: __err |= ios_base::eofbit; 26629: } 26629: else if (_M_gcount < __n) 26629: { 26629: if (traits_type::eq_int_type(__c, __eof)) 26629: __err |= ios_base::eofbit; 26629: } 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: ignore(streamsize __n, int_type __delim) 26629: { 26629: _M_gcount = 0; 26629: sentry __cerb(*this, true); 26629: if (__cerb && __n > 0) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: const int_type __eof = traits_type::eof(); 26629: __streambuf_type* __sb = this->rdbuf(); 26629: int_type __c = __sb->sgetc(); 26629: 26629: 26629: bool __large_ignore = false; 26629: while (true) 26629: { 26629: while (_M_gcount < __n 26629: && !traits_type::eq_int_type(__c, __eof) 26629: && !traits_type::eq_int_type(__c, __delim)) 26629: { 26629: ++_M_gcount; 26629: __c = __sb->snextc(); 26629: } 26629: if (__n == __gnu_cxx::__numeric_traits::__max 26629: && !traits_type::eq_int_type(__c, __eof) 26629: && !traits_type::eq_int_type(__c, __delim)) 26629: { 26629: _M_gcount = 26629: __gnu_cxx::__numeric_traits::__min; 26629: __large_ignore = true; 26629: } 26629: else 26629: break; 26629: } 26629: 26629: if (__n == __gnu_cxx::__numeric_traits::__max) 26629: { 26629: if (__large_ignore) 26629: _M_gcount = __gnu_cxx::__numeric_traits::__max; 26629: 26629: if (traits_type::eq_int_type(__c, __eof)) 26629: __err |= ios_base::eofbit; 26629: else 26629: { 26629: if (_M_gcount != __n) 26629: ++_M_gcount; 26629: __sb->sbumpc(); 26629: } 26629: } 26629: else if (_M_gcount < __n) 26629: { 26629: if (traits_type::eq_int_type(__c, __eof)) 26629: __err |= ios_base::eofbit; 26629: else 26629: { 26629: ++_M_gcount; 26629: __sb->sbumpc(); 26629: } 26629: } 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: typename basic_istream<_CharT, _Traits>::int_type 26629: basic_istream<_CharT, _Traits>:: 26629: peek(void) 26629: { 26629: int_type __c = traits_type::eof(); 26629: _M_gcount = 0; 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: __c = this->rdbuf()->sgetc(); 26629: if (traits_type::eq_int_type(__c, traits_type::eof())) 26629: __err |= ios_base::eofbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return __c; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: read(char_type* __s, streamsize __n) 26629: { 26629: _M_gcount = 0; 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: _M_gcount = this->rdbuf()->sgetn(__s, __n); 26629: if (_M_gcount != __n) 26629: __err |= (ios_base::eofbit | ios_base::failbit); 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: streamsize 26629: basic_istream<_CharT, _Traits>:: 26629: readsome(char_type* __s, streamsize __n) 26629: { 26629: _M_gcount = 0; 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: 26629: const streamsize __num = this->rdbuf()->in_avail(); 26629: if (__num > 0) 26629: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 26629: else if (__num == -1) 26629: __err |= ios_base::eofbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return _M_gcount; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: putback(char_type __c) 26629: { 26629: 26629: 26629: _M_gcount = 0; 26629: 26629: this->clear(this->rdstate() & ~ios_base::eofbit); 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: const int_type __eof = traits_type::eof(); 26629: __streambuf_type* __sb = this->rdbuf(); 26629: if (!__sb 26629: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 26629: __err |= ios_base::badbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: unget(void) 26629: { 26629: 26629: 26629: _M_gcount = 0; 26629: 26629: this->clear(this->rdstate() & ~ios_base::eofbit); 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: const int_type __eof = traits_type::eof(); 26629: __streambuf_type* __sb = this->rdbuf(); 26629: if (!__sb 26629: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 26629: __err |= ios_base::badbit; 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: int 26629: basic_istream<_CharT, _Traits>:: 26629: sync(void) 26629: { 26629: 26629: 26629: int __ret = -1; 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: __streambuf_type* __sb = this->rdbuf(); 26629: if (__sb) 26629: { 26629: if (__sb->pubsync() == -1) 26629: __err |= ios_base::badbit; 26629: else 26629: __ret = 0; 26629: } 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: typename basic_istream<_CharT, _Traits>::pos_type 26629: basic_istream<_CharT, _Traits>:: 26629: tellg(void) 26629: { 26629: 26629: 26629: pos_type __ret = pos_type(-1); 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: try 26629: { 26629: if (!this->fail()) 26629: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 26629: ios_base::in); 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: seekg(pos_type __pos) 26629: { 26629: 26629: 26629: 26629: this->clear(this->rdstate() & ~ios_base::eofbit); 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: if (!this->fail()) 26629: { 26629: 26629: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 26629: ios_base::in); 26629: 26629: 26629: if (__p == pos_type(off_type(-1))) 26629: __err |= ios_base::failbit; 26629: } 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: basic_istream<_CharT, _Traits>:: 26629: seekg(off_type __off, ios_base::seekdir __dir) 26629: { 26629: 26629: 26629: 26629: this->clear(this->rdstate() & ~ios_base::eofbit); 26629: sentry __cerb(*this, true); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: if (!this->fail()) 26629: { 26629: 26629: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 26629: ios_base::in); 26629: 26629: 26629: if (__p == pos_type(off_type(-1))) 26629: __err |= ios_base::failbit; 26629: } 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: this->_M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { this->_M_setstate(ios_base::badbit); } 26629: if (__err) 26629: this->setstate(__err); 26629: } 26629: return *this; 26629: } 26629: 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 26629: { 26629: typedef basic_istream<_CharT, _Traits> __istream_type; 26629: typedef typename __istream_type::int_type __int_type; 26629: 26629: typename __istream_type::sentry __cerb(__in, false); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: const __int_type __cb = __in.rdbuf()->sbumpc(); 26629: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 26629: __c = _Traits::to_char_type(__cb); 26629: else 26629: __err |= (ios_base::eofbit | ios_base::failbit); 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: __in._M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { __in._M_setstate(ios_base::badbit); } 26629: if (__err) 26629: __in.setstate(__err); 26629: } 26629: return __in; 26629: } 26629: 26629: template 26629: void 26629: __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, 26629: streamsize __num) 26629: { 26629: typedef basic_istream<_CharT, _Traits> __istream_type; 26629: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 26629: typedef typename _Traits::int_type int_type; 26629: typedef _CharT char_type; 26629: typedef ctype<_CharT> __ctype_type; 26629: 26629: streamsize __extracted = 0; 26629: ios_base::iostate __err = ios_base::goodbit; 26629: typename __istream_type::sentry __cerb(__in, false); 26629: if (__cerb) 26629: { 26629: try 26629: { 26629: 26629: streamsize __width = __in.width(); 26629: if (0 < __width && __width < __num) 26629: __num = __width; 26629: 26629: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 26629: 26629: const int_type __eof = _Traits::eof(); 26629: __streambuf_type* __sb = __in.rdbuf(); 26629: int_type __c = __sb->sgetc(); 26629: 26629: while (__extracted < __num - 1 26629: && !_Traits::eq_int_type(__c, __eof) 26629: && !__ct.is(ctype_base::space, 26629: _Traits::to_char_type(__c))) 26629: { 26629: *__s++ = _Traits::to_char_type(__c); 26629: ++__extracted; 26629: __c = __sb->snextc(); 26629: } 26629: 26629: if (__extracted < __num - 1 26629: && _Traits::eq_int_type(__c, __eof)) 26629: __err |= ios_base::eofbit; 26629: 26629: 26629: 26629: *__s = char_type(); 26629: __in.width(0); 26629: } 26629: catch(__cxxabiv1::__forced_unwind&) 26629: { 26629: __in._M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { __in._M_setstate(ios_base::badbit); } 26629: } 26629: if (!__extracted) 26629: __err |= ios_base::failbit; 26629: if (__err) 26629: __in.setstate(__err); 26629: } 26629: 26629: 26629: template 26629: basic_istream<_CharT, _Traits>& 26629: ws(basic_istream<_CharT, _Traits>& __in) 26629: { 26629: typedef basic_istream<_CharT, _Traits> __istream_type; 26629: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 26629: typedef typename __istream_type::int_type __int_type; 26629: typedef ctype<_CharT> __ctype_type; 26629: 26629: 26629: 26629: typename __istream_type::sentry __cerb(__in, true); 26629: if (__cerb) 26629: { 26629: ios_base::iostate __err = ios_base::goodbit; 26629: try 26629: { 26629: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 26629: const __int_type __eof = _Traits::eof(); 26629: __streambuf_type* __sb = __in.rdbuf(); 26629: __int_type __c = __sb->sgetc(); 26629: 26629: while (true) 26629: { 26629: if (_Traits::eq_int_type(__c, __eof)) 26629: { 26629: __err = ios_base::eofbit; 26629: break; 26629: } 26629: if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) 26629: break; 26629: __c = __sb->snextc(); 26629: } 26629: } 26629: catch(const __cxxabiv1::__forced_unwind&) 26629: { 26629: __in._M_setstate(ios_base::badbit); 26629: throw; 26629: } 26629: catch(...) 26629: { 26629: __in._M_setstate(ios_base::badbit); 26629: } 26629: if (__err) 26629: __in.setstate(__err); 26629: } 26629: return __in; 26629: } 26629: 26629: 26629: 26629: 26629: extern template class basic_istream; 26629: extern template istream& ws(istream&); 26629: extern template istream& operator>>(istream&, char&); 26629: extern template istream& operator>>(istream&, unsigned char&); 26629: extern template istream& operator>>(istream&, signed char&); 26629: 26629: extern template istream& istream::_M_extract(unsigned short&); 26629: extern template istream& istream::_M_extract(unsigned int&); 26629: extern template istream& istream::_M_extract(long&); 26629: extern template istream& istream::_M_extract(unsigned long&); 26629: extern template istream& istream::_M_extract(bool&); 26629: 26629: extern template istream& istream::_M_extract(long long&); 26629: extern template istream& istream::_M_extract(unsigned long long&); 26629: 26629: extern template istream& istream::_M_extract(float&); 26629: extern template istream& istream::_M_extract(double&); 26629: extern template istream& istream::_M_extract(long double&); 26629: extern template istream& istream::_M_extract(void*&); 26629: 26629: extern template class basic_iostream; 26629: 26629: 26629: extern template class basic_istream; 26629: extern template wistream& ws(wistream&); 26629: extern template wistream& operator>>(wistream&, wchar_t&); 26629: extern template void __istream_extract(wistream&, wchar_t*, streamsize); 26629: 26629: extern template wistream& wistream::_M_extract(unsigned short&); 26629: extern template wistream& wistream::_M_extract(unsigned int&); 26629: extern template wistream& wistream::_M_extract(long&); 26629: extern template wistream& wistream::_M_extract(unsigned long&); 26629: extern template wistream& wistream::_M_extract(bool&); 26629: 26629: extern template wistream& wistream::_M_extract(long long&); 26629: extern template wistream& wistream::_M_extract(unsigned long long&); 26629: 26629: extern template wistream& wistream::_M_extract(float&); 26629: extern template wistream& wistream::_M_extract(double&); 26629: extern template wistream& wistream::_M_extract(long double&); 26629: extern template wistream& wistream::_M_extract(void*&); 26629: 26629: extern template class basic_iostream; 26629: 26629: 26629: 26629: 26629: } 26629: # 1017 "/usr/include/c++/12/istream" 2 3 26629: # 39 "/usr/include/c++/12/sstream" 2 3 26629: # 48 "/usr/include/c++/12/sstream" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: namespace __cxx11 { 26629: # 71 "/usr/include/c++/12/sstream" 3 26629: template 26629: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 26629: { 26629: struct __xfer_bufptrs; 26629: 26629: 26629: using allocator_traits = std::allocator_traits<_Alloc>; 26629: using _Noexcept_swap 26629: = __or_; 26629: 26629: 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: 26629: 26629: typedef _Alloc allocator_type; 26629: typedef typename traits_type::int_type int_type; 26629: typedef typename traits_type::pos_type pos_type; 26629: typedef typename traits_type::off_type off_type; 26629: 26629: typedef basic_streambuf __streambuf_type; 26629: typedef basic_string __string_type; 26629: typedef typename __string_type::size_type __size_type; 26629: 26629: protected: 26629: 26629: ios_base::openmode _M_mode; 26629: 26629: 26629: __string_type _M_string; 26629: 26629: public: 26629: # 114 "/usr/include/c++/12/sstream" 3 26629: basic_stringbuf() 26629: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 26629: { } 26629: # 125 "/usr/include/c++/12/sstream" 3 26629: explicit 26629: basic_stringbuf(ios_base::openmode __mode) 26629: : __streambuf_type(), _M_mode(__mode), _M_string() 26629: { } 26629: # 138 "/usr/include/c++/12/sstream" 3 26629: explicit 26629: basic_stringbuf(const __string_type& __str, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out) 26629: : __streambuf_type(), _M_mode(), 26629: _M_string(__str.data(), __str.size(), __str.get_allocator()) 26629: { _M_stringbuf_init(__mode); } 26629: 26629: 26629: basic_stringbuf(const basic_stringbuf&) = delete; 26629: 26629: basic_stringbuf(basic_stringbuf&& __rhs) 26629: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 26629: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 26629: # 202 "/usr/include/c++/12/sstream" 3 26629: basic_stringbuf& 26629: operator=(const basic_stringbuf&) = delete; 26629: 26629: basic_stringbuf& 26629: operator=(basic_stringbuf&& __rhs) 26629: { 26629: __xfer_bufptrs __st{__rhs, this}; 26629: const __streambuf_type& __base = __rhs; 26629: __streambuf_type::operator=(__base); 26629: this->pubimbue(__rhs.getloc()); 26629: _M_mode = __rhs._M_mode; 26629: _M_string = std::move(__rhs._M_string); 26629: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) 26629: { 26629: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 26629: __xfer_bufptrs __r_st{__rhs, this}; 26629: __streambuf_type& __base = __rhs; 26629: __streambuf_type::swap(__base); 26629: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 26629: std::swap(_M_mode, __rhs._M_mode); 26629: std::swap(_M_string, __rhs._M_string); 26629: } 26629: # 241 "/usr/include/c++/12/sstream" 3 26629: __string_type 26629: str() const 26629: { 26629: __string_type __ret(_M_string.get_allocator()); 26629: if (char_type* __hi = _M_high_mark()) 26629: __ret.assign(this->pbase(), __hi); 26629: else 26629: __ret = _M_string; 26629: return __ret; 26629: } 26629: # 294 "/usr/include/c++/12/sstream" 3 26629: void 26629: str(const __string_type& __s) 26629: { 26629: 26629: 26629: _M_string.assign(__s.data(), __s.size()); 26629: _M_stringbuf_init(_M_mode); 26629: } 26629: # 323 "/usr/include/c++/12/sstream" 3 26629: protected: 26629: 26629: void 26629: _M_stringbuf_init(ios_base::openmode __mode) 26629: { 26629: _M_mode = __mode; 26629: __size_type __len = 0; 26629: if (_M_mode & (ios_base::ate | ios_base::app)) 26629: __len = _M_string.size(); 26629: _M_sync(const_cast(_M_string.data()), 0, __len); 26629: } 26629: 26629: virtual streamsize 26629: showmanyc() 26629: { 26629: streamsize __ret = -1; 26629: if (_M_mode & ios_base::in) 26629: { 26629: _M_update_egptr(); 26629: __ret = this->egptr() - this->gptr(); 26629: } 26629: return __ret; 26629: } 26629: 26629: virtual int_type 26629: underflow(); 26629: 26629: virtual int_type 26629: pbackfail(int_type __c = traits_type::eof()); 26629: 26629: virtual int_type 26629: overflow(int_type __c = traits_type::eof()); 26629: # 367 "/usr/include/c++/12/sstream" 3 26629: virtual __streambuf_type* 26629: setbuf(char_type* __s, streamsize __n) 26629: { 26629: if (__s && __n >= 0) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: _M_string.clear(); 26629: 26629: 26629: _M_sync(__s, __n, 0); 26629: } 26629: return this; 26629: } 26629: 26629: virtual pos_type 26629: seekoff(off_type __off, ios_base::seekdir __way, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out); 26629: 26629: virtual pos_type 26629: seekpos(pos_type __sp, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out); 26629: 26629: 26629: 26629: 26629: void 26629: _M_sync(char_type* __base, __size_type __i, __size_type __o); 26629: 26629: 26629: 26629: void 26629: _M_update_egptr() 26629: { 26629: if (char_type* __pptr = this->pptr()) 26629: { 26629: char_type* __egptr = this->egptr(); 26629: if (!__egptr || __pptr > __egptr) 26629: { 26629: if (_M_mode & ios_base::in) 26629: this->setg(this->eback(), this->gptr(), __pptr); 26629: else 26629: this->setg(__pptr, __pptr, __pptr); 26629: } 26629: } 26629: } 26629: 26629: 26629: 26629: void 26629: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 26629: 26629: private: 26629: 26629: 26629: 26629: 26629: __attribute__((__always_inline__)) 26629: char_type* 26629: _M_high_mark() const noexcept 26629: { 26629: if (char_type* __pptr = this->pptr()) 26629: { 26629: char_type* __egptr = this->egptr(); 26629: if (!__egptr || __pptr > __egptr) 26629: return __pptr; 26629: else 26629: return __egptr; 26629: } 26629: return 0; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: struct __xfer_bufptrs 26629: { 26629: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 26629: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 26629: { 26629: const _CharT* const __str = __from._M_string.data(); 26629: const _CharT* __end = nullptr; 26629: if (__from.eback()) 26629: { 26629: _M_goff[0] = __from.eback() - __str; 26629: _M_goff[1] = __from.gptr() - __str; 26629: _M_goff[2] = __from.egptr() - __str; 26629: __end = __from.egptr(); 26629: } 26629: if (__from.pbase()) 26629: { 26629: _M_poff[0] = __from.pbase() - __str; 26629: _M_poff[1] = __from.pptr() - __from.pbase(); 26629: _M_poff[2] = __from.epptr() - __str; 26629: if (!__end || __from.pptr() > __end) 26629: __end = __from.pptr(); 26629: } 26629: 26629: 26629: if (__end) 26629: { 26629: 26629: 26629: auto& __mut_from = const_cast(__from); 26629: __mut_from._M_string._M_length(__end - __str); 26629: } 26629: } 26629: 26629: ~__xfer_bufptrs() 26629: { 26629: char_type* __str = const_cast(_M_to->_M_string.data()); 26629: if (_M_goff[0] != -1) 26629: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 26629: if (_M_poff[0] != -1) 26629: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 26629: } 26629: 26629: basic_stringbuf* _M_to; 26629: off_type _M_goff[3]; 26629: off_type _M_poff[3]; 26629: }; 26629: # 503 "/usr/include/c++/12/sstream" 3 26629: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 26629: : __streambuf_type(static_cast(__rhs)), 26629: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 26629: { } 26629: # 518 "/usr/include/c++/12/sstream" 3 26629: }; 26629: # 536 "/usr/include/c++/12/sstream" 3 26629: template 26629: class basic_istringstream : public basic_istream<_CharT, _Traits> 26629: { 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: 26629: 26629: typedef _Alloc allocator_type; 26629: typedef typename traits_type::int_type int_type; 26629: typedef typename traits_type::pos_type pos_type; 26629: typedef typename traits_type::off_type off_type; 26629: 26629: 26629: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 26629: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 26629: typedef basic_istream __istream_type; 26629: 26629: private: 26629: __stringbuf_type _M_stringbuf; 26629: 26629: public: 26629: # 570 "/usr/include/c++/12/sstream" 3 26629: basic_istringstream() 26629: : __istream_type(), _M_stringbuf(ios_base::in) 26629: { this->init(&_M_stringbuf); } 26629: # 586 "/usr/include/c++/12/sstream" 3 26629: explicit 26629: basic_istringstream(ios_base::openmode __mode) 26629: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 26629: { this->init(&_M_stringbuf); } 26629: # 604 "/usr/include/c++/12/sstream" 3 26629: explicit 26629: basic_istringstream(const __string_type& __str, 26629: ios_base::openmode __mode = ios_base::in) 26629: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 26629: { this->init(&_M_stringbuf); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ~basic_istringstream() 26629: { } 26629: 26629: 26629: basic_istringstream(const basic_istringstream&) = delete; 26629: 26629: basic_istringstream(basic_istringstream&& __rhs) 26629: : __istream_type(std::move(__rhs)), 26629: _M_stringbuf(std::move(__rhs._M_stringbuf)) 26629: { __istream_type::set_rdbuf(&_M_stringbuf); } 26629: # 661 "/usr/include/c++/12/sstream" 3 26629: basic_istringstream& 26629: operator=(const basic_istringstream&) = delete; 26629: 26629: basic_istringstream& 26629: operator=(basic_istringstream&& __rhs) 26629: { 26629: __istream_type::operator=(std::move(__rhs)); 26629: _M_stringbuf = std::move(__rhs._M_stringbuf); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(basic_istringstream& __rhs) 26629: { 26629: __istream_type::swap(__rhs); 26629: _M_stringbuf.swap(__rhs._M_stringbuf); 26629: } 26629: # 687 "/usr/include/c++/12/sstream" 3 26629: __stringbuf_type* 26629: rdbuf() const 26629: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 26629: 26629: 26629: 26629: 26629: 26629: __string_type 26629: str() const 26629: { return _M_stringbuf.str(); } 26629: # 722 "/usr/include/c++/12/sstream" 3 26629: void 26629: str(const __string_type& __s) 26629: { _M_stringbuf.str(__s); } 26629: # 739 "/usr/include/c++/12/sstream" 3 26629: }; 26629: # 757 "/usr/include/c++/12/sstream" 3 26629: template 26629: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 26629: { 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: 26629: 26629: typedef _Alloc allocator_type; 26629: typedef typename traits_type::int_type int_type; 26629: typedef typename traits_type::pos_type pos_type; 26629: typedef typename traits_type::off_type off_type; 26629: 26629: 26629: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 26629: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 26629: typedef basic_ostream __ostream_type; 26629: 26629: private: 26629: __stringbuf_type _M_stringbuf; 26629: 26629: public: 26629: # 791 "/usr/include/c++/12/sstream" 3 26629: basic_ostringstream() 26629: : __ostream_type(), _M_stringbuf(ios_base::out) 26629: { this->init(&_M_stringbuf); } 26629: # 807 "/usr/include/c++/12/sstream" 3 26629: explicit 26629: basic_ostringstream(ios_base::openmode __mode) 26629: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 26629: { this->init(&_M_stringbuf); } 26629: # 825 "/usr/include/c++/12/sstream" 3 26629: explicit 26629: basic_ostringstream(const __string_type& __str, 26629: ios_base::openmode __mode = ios_base::out) 26629: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 26629: { this->init(&_M_stringbuf); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ~basic_ostringstream() 26629: { } 26629: 26629: 26629: basic_ostringstream(const basic_ostringstream&) = delete; 26629: 26629: basic_ostringstream(basic_ostringstream&& __rhs) 26629: : __ostream_type(std::move(__rhs)), 26629: _M_stringbuf(std::move(__rhs._M_stringbuf)) 26629: { __ostream_type::set_rdbuf(&_M_stringbuf); } 26629: # 882 "/usr/include/c++/12/sstream" 3 26629: basic_ostringstream& 26629: operator=(const basic_ostringstream&) = delete; 26629: 26629: basic_ostringstream& 26629: operator=(basic_ostringstream&& __rhs) 26629: { 26629: __ostream_type::operator=(std::move(__rhs)); 26629: _M_stringbuf = std::move(__rhs._M_stringbuf); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(basic_ostringstream& __rhs) 26629: { 26629: __ostream_type::swap(__rhs); 26629: _M_stringbuf.swap(__rhs._M_stringbuf); 26629: } 26629: # 908 "/usr/include/c++/12/sstream" 3 26629: __stringbuf_type* 26629: rdbuf() const 26629: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 26629: 26629: 26629: 26629: 26629: 26629: __string_type 26629: str() const 26629: { return _M_stringbuf.str(); } 26629: # 943 "/usr/include/c++/12/sstream" 3 26629: void 26629: str(const __string_type& __s) 26629: { _M_stringbuf.str(__s); } 26629: # 960 "/usr/include/c++/12/sstream" 3 26629: }; 26629: # 978 "/usr/include/c++/12/sstream" 3 26629: template 26629: class basic_stringstream : public basic_iostream<_CharT, _Traits> 26629: { 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: 26629: 26629: typedef _Alloc allocator_type; 26629: typedef typename traits_type::int_type int_type; 26629: typedef typename traits_type::pos_type pos_type; 26629: typedef typename traits_type::off_type off_type; 26629: 26629: 26629: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 26629: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 26629: typedef basic_iostream __iostream_type; 26629: 26629: private: 26629: __stringbuf_type _M_stringbuf; 26629: 26629: public: 26629: # 1012 "/usr/include/c++/12/sstream" 3 26629: basic_stringstream() 26629: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 26629: { this->init(&_M_stringbuf); } 26629: # 1026 "/usr/include/c++/12/sstream" 3 26629: explicit 26629: basic_stringstream(ios_base::openmode __m) 26629: : __iostream_type(), _M_stringbuf(__m) 26629: { this->init(&_M_stringbuf); } 26629: # 1042 "/usr/include/c++/12/sstream" 3 26629: explicit 26629: basic_stringstream(const __string_type& __str, 26629: ios_base::openmode __m = ios_base::out | ios_base::in) 26629: : __iostream_type(), _M_stringbuf(__str, __m) 26629: { this->init(&_M_stringbuf); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ~basic_stringstream() 26629: { } 26629: 26629: 26629: basic_stringstream(const basic_stringstream&) = delete; 26629: 26629: basic_stringstream(basic_stringstream&& __rhs) 26629: : __iostream_type(std::move(__rhs)), 26629: _M_stringbuf(std::move(__rhs._M_stringbuf)) 26629: { __iostream_type::set_rdbuf(&_M_stringbuf); } 26629: # 1101 "/usr/include/c++/12/sstream" 3 26629: basic_stringstream& 26629: operator=(const basic_stringstream&) = delete; 26629: 26629: basic_stringstream& 26629: operator=(basic_stringstream&& __rhs) 26629: { 26629: __iostream_type::operator=(std::move(__rhs)); 26629: _M_stringbuf = std::move(__rhs._M_stringbuf); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(basic_stringstream& __rhs) 26629: { 26629: __iostream_type::swap(__rhs); 26629: _M_stringbuf.swap(__rhs._M_stringbuf); 26629: } 26629: # 1127 "/usr/include/c++/12/sstream" 3 26629: __stringbuf_type* 26629: rdbuf() const 26629: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 26629: 26629: 26629: 26629: 26629: 26629: __string_type 26629: str() const 26629: { return _M_stringbuf.str(); } 26629: # 1162 "/usr/include/c++/12/sstream" 3 26629: void 26629: str(const __string_type& __s) 26629: { _M_stringbuf.str(__s); } 26629: # 1179 "/usr/include/c++/12/sstream" 3 26629: }; 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 26629: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 26629: noexcept(noexcept(__x.swap(__y))) 26629: { __x.swap(__y); } 26629: 26629: 26629: template 26629: inline void 26629: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 26629: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 26629: { __x.swap(__y); } 26629: 26629: 26629: template 26629: inline void 26629: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 26629: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 26629: { __x.swap(__y); } 26629: 26629: 26629: template 26629: inline void 26629: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 26629: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 26629: { __x.swap(__y); } 26629: 26629: 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/sstream.tcc" 1 3 26629: # 37 "/usr/include/c++/12/bits/sstream.tcc" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/sstream.tcc" 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 26629: basic_stringbuf<_CharT, _Traits, _Alloc>:: 26629: pbackfail(int_type __c) 26629: { 26629: int_type __ret = traits_type::eof(); 26629: if (this->eback() < this->gptr()) 26629: { 26629: 26629: 26629: const bool __testeof = traits_type::eq_int_type(__c, __ret); 26629: if (!__testeof) 26629: { 26629: const bool __testeq = traits_type::eq(traits_type:: 26629: to_char_type(__c), 26629: this->gptr()[-1]); 26629: const bool __testout = this->_M_mode & ios_base::out; 26629: if (__testeq || __testout) 26629: { 26629: this->gbump(-1); 26629: if (!__testeq) 26629: *this->gptr() = traits_type::to_char_type(__c); 26629: __ret = __c; 26629: } 26629: } 26629: else 26629: { 26629: this->gbump(-1); 26629: __ret = traits_type::not_eof(__c); 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 26629: basic_stringbuf<_CharT, _Traits, _Alloc>:: 26629: overflow(int_type __c) 26629: { 26629: const bool __testout = this->_M_mode & ios_base::out; 26629: if (__builtin_expect(!__testout, false)) 26629: return traits_type::eof(); 26629: 26629: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 26629: if (__builtin_expect(__testeof, false)) 26629: return traits_type::not_eof(__c); 26629: 26629: const __size_type __capacity = _M_string.capacity(); 26629: 26629: 26629: if (size_t(this->epptr() - this->pbase()) < __capacity) 26629: { 26629: 26629: char_type* __base = const_cast(_M_string.data()); 26629: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 26629: if (_M_mode & ios_base::in) 26629: { 26629: const __size_type __nget = this->gptr() - this->eback(); 26629: const __size_type __eget = this->egptr() - this->eback(); 26629: this->setg(__base, __base + __nget, __base + __eget + 1); 26629: } 26629: *this->pptr() = traits_type::to_char_type(__c); 26629: this->pbump(1); 26629: return __c; 26629: } 26629: 26629: 26629: const __size_type __max_size = _M_string.max_size(); 26629: const bool __testput = this->pptr() < this->epptr(); 26629: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 26629: return traits_type::eof(); 26629: 26629: 26629: 26629: const char_type __conv = traits_type::to_char_type(__c); 26629: if (!__testput) 26629: { 26629: # 129 "/usr/include/c++/12/bits/sstream.tcc" 3 26629: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 26629: __size_type(512)); 26629: const __size_type __len = std::min(__opt_len, __max_size); 26629: __string_type __tmp(_M_string.get_allocator()); 26629: __tmp.reserve(__len); 26629: if (this->pbase()) 26629: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 26629: __tmp.push_back(__conv); 26629: _M_string.swap(__tmp); 26629: _M_sync(const_cast(_M_string.data()), 26629: this->gptr() - this->eback(), this->pptr() - this->pbase()); 26629: } 26629: else 26629: *this->pptr() = __conv; 26629: this->pbump(1); 26629: return __c; 26629: } 26629: 26629: template 26629: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 26629: basic_stringbuf<_CharT, _Traits, _Alloc>:: 26629: underflow() 26629: { 26629: int_type __ret = traits_type::eof(); 26629: const bool __testin = this->_M_mode & ios_base::in; 26629: if (__testin) 26629: { 26629: 26629: _M_update_egptr(); 26629: 26629: if (this->gptr() < this->egptr()) 26629: __ret = traits_type::to_int_type(*this->gptr()); 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 26629: basic_stringbuf<_CharT, _Traits, _Alloc>:: 26629: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 26629: { 26629: pos_type __ret = pos_type(off_type(-1)); 26629: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 26629: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 26629: const bool __testboth = __testin && __testout && __way != ios_base::cur; 26629: __testin &= !(__mode & ios_base::out); 26629: __testout &= !(__mode & ios_base::in); 26629: 26629: 26629: 26629: const char_type* __beg = __testin ? this->eback() : this->pbase(); 26629: if ((__beg || !__off) && (__testin || __testout || __testboth)) 26629: { 26629: _M_update_egptr(); 26629: 26629: off_type __newoffi = __off; 26629: off_type __newoffo = __newoffi; 26629: if (__way == ios_base::cur) 26629: { 26629: __newoffi += this->gptr() - __beg; 26629: __newoffo += this->pptr() - __beg; 26629: } 26629: else if (__way == ios_base::end) 26629: __newoffo = __newoffi += this->egptr() - __beg; 26629: 26629: if ((__testin || __testboth) 26629: && __newoffi >= 0 26629: && this->egptr() - __beg >= __newoffi) 26629: { 26629: this->setg(this->eback(), this->eback() + __newoffi, 26629: this->egptr()); 26629: __ret = pos_type(__newoffi); 26629: } 26629: if ((__testout || __testboth) 26629: && __newoffo >= 0 26629: && this->egptr() - __beg >= __newoffo) 26629: { 26629: _M_pbump(this->pbase(), this->epptr(), __newoffo); 26629: __ret = pos_type(__newoffo); 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 26629: basic_stringbuf<_CharT, _Traits, _Alloc>:: 26629: seekpos(pos_type __sp, ios_base::openmode __mode) 26629: { 26629: pos_type __ret = pos_type(off_type(-1)); 26629: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 26629: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 26629: 26629: const char_type* __beg = __testin ? this->eback() : this->pbase(); 26629: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 26629: { 26629: _M_update_egptr(); 26629: 26629: const off_type __pos(__sp); 26629: const bool __testpos = (0 <= __pos 26629: && __pos <= this->egptr() - __beg); 26629: if (__testpos) 26629: { 26629: if (__testin) 26629: this->setg(this->eback(), this->eback() + __pos, 26629: this->egptr()); 26629: if (__testout) 26629: _M_pbump(this->pbase(), this->epptr(), __pos); 26629: __ret = __sp; 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: void 26629: basic_stringbuf<_CharT, _Traits, _Alloc>:: 26629: _M_sync(char_type* __base, __size_type __i, __size_type __o) 26629: { 26629: const bool __testin = _M_mode & ios_base::in; 26629: const bool __testout = _M_mode & ios_base::out; 26629: char_type* __endg = __base + _M_string.size(); 26629: char_type* __endp = __base + _M_string.capacity(); 26629: 26629: if (__base != _M_string.data()) 26629: { 26629: 26629: __endg += __i; 26629: __i = 0; 26629: __endp = __endg; 26629: } 26629: 26629: if (__testin) 26629: this->setg(__base, __base + __i, __endg); 26629: if (__testout) 26629: { 26629: _M_pbump(__base, __endp, __o); 26629: 26629: 26629: 26629: if (!__testin) 26629: this->setg(__endg, __endg, __endg); 26629: } 26629: } 26629: 26629: template 26629: void 26629: basic_stringbuf<_CharT, _Traits, _Alloc>:: 26629: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 26629: { 26629: this->setp(__pbeg, __pend); 26629: while (__off > __gnu_cxx::__numeric_traits::__max) 26629: { 26629: this->pbump(__gnu_cxx::__numeric_traits::__max); 26629: __off -= __gnu_cxx::__numeric_traits::__max; 26629: } 26629: this->pbump(__off); 26629: } 26629: 26629: 26629: 26629: 26629: extern template class basic_stringbuf; 26629: extern template class basic_istringstream; 26629: extern template class basic_ostringstream; 26629: extern template class basic_stringstream; 26629: 26629: 26629: extern template class basic_stringbuf; 26629: extern template class basic_istringstream; 26629: extern template class basic_ostringstream; 26629: extern template class basic_stringstream; 26629: 26629: 26629: 26629: 26629: } 26629: # 1219 "/usr/include/c++/12/sstream" 2 3 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 2 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 1 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cstdarg" 1 3 26629: # 39 "/usr/include/c++/12/cstdarg" 3 26629: 26629: # 40 "/usr/include/c++/12/cstdarg" 3 26629: # 23 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 2 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 1 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: 26629: # 31 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: 26629: # 31 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: namespace rocksdb { 26629: 26629: 26629: class Cache; 26629: class FilterPolicy; 26629: class FlushBlockPolicyFactory; 26629: class PersistentCache; 26629: class RandomAccessFile; 26629: struct TableReaderOptions; 26629: struct TableBuilderOptions; 26629: class TableBuilder; 26629: class TableFactory; 26629: class TableReader; 26629: class WritableFileWriter; 26629: struct ConfigOptions; 26629: struct EnvOptions; 26629: 26629: 26629: 26629: 26629: enum ChecksumType : char { 26629: kNoChecksum = 0x0, 26629: kCRC32c = 0x1, 26629: kxxHash = 0x2, 26629: kxxHash64 = 0x3, 26629: kXXH3 = 0x4, 26629: }; 26629: 26629: 26629: 26629: 26629: enum class PinningTier { 26629: 26629: 26629: 26629: 26629: kFallback, 26629: 26629: 26629: kNone, 26629: 26629: 26629: 26629: 26629: 26629: 26629: kFlushedAndSimilar, 26629: 26629: 26629: kAll, 26629: }; 26629: 26629: 26629: 26629: struct MetadataCacheOptions { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: PinningTier top_level_index_pinning = PinningTier::kFallback; 26629: 26629: 26629: 26629: PinningTier partition_pinning = PinningTier::kFallback; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: PinningTier unpartitioned_pinning = PinningTier::kFallback; 26629: }; 26629: 26629: struct CacheEntryRoleOptions { 26629: enum class Decision { 26629: kEnabled, 26629: kDisabled, 26629: kFallback, 26629: }; 26629: Decision charged = Decision::kFallback; 26629: bool operator==(const CacheEntryRoleOptions& other) const { 26629: return charged == other.charged; 26629: } 26629: }; 26629: 26629: struct CacheUsageOptions { 26629: CacheEntryRoleOptions options; 26629: std::map options_overrides; 26629: }; 26629: 26629: 26629: struct BlockBasedTableOptions { 26629: static const char* kName() { return "BlockTableOptions"; }; 26629: 26629: 26629: 26629: 26629: 26629: std::shared_ptr flush_block_policy_factory; 26629: # 146 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: bool cache_index_and_filter_blocks = false; 26629: 26629: 26629: 26629: 26629: 26629: bool cache_index_and_filter_blocks_with_high_priority = true; 26629: # 175 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: bool pin_l0_filter_and_index_blocks_in_cache = false; 26629: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: bool pin_top_level_index_and_filter = true; 26629: 26629: 26629: 26629: 26629: 26629: MetadataCacheOptions metadata_cache_options; 26629: 26629: 26629: enum IndexType : char { 26629: 26629: 26629: kBinarySearch = 0x00, 26629: 26629: 26629: 26629: kHashSearch = 0x01, 26629: 26629: 26629: 26629: 26629: kTwoLevelIndexSearch = 0x02, 26629: # 231 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: kBinarySearchWithFirstKey = 0x03, 26629: }; 26629: 26629: IndexType index_type = kBinarySearch; 26629: 26629: 26629: enum DataBlockIndexType : char { 26629: kDataBlockBinarySearch = 0, 26629: kDataBlockBinaryAndHash = 1, 26629: }; 26629: 26629: DataBlockIndexType data_block_index_type = kDataBlockBinarySearch; 26629: 26629: 26629: 26629: double data_block_hash_table_util_ratio = 0.75; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ChecksumType checksum = kXXH3; 26629: 26629: 26629: 26629: 26629: bool no_block_cache = false; 26629: 26629: 26629: 26629: std::shared_ptr block_cache = nullptr; 26629: 26629: 26629: 26629: std::shared_ptr persistent_cache = nullptr; 26629: 26629: 26629: 26629: 26629: 26629: std::shared_ptr block_cache_compressed = nullptr; 26629: 26629: 26629: 26629: 26629: 26629: uint64_t block_size = 4 * 1024; 26629: 26629: 26629: 26629: 26629: 26629: 26629: int block_size_deviation = 10; 26629: 26629: 26629: 26629: 26629: 26629: int block_restart_interval = 16; 26629: 26629: 26629: int index_block_restart_interval = 1; 26629: # 306 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: uint64_t metadata_block_size = 4096; 26629: # 394 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: CacheUsageOptions cache_usage_options; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool partition_filters = false; 26629: # 437 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: bool optimize_filters_for_memory = false; 26629: 26629: 26629: 26629: 26629: 26629: bool use_delta_encoding = true; 26629: 26629: 26629: 26629: 26629: std::shared_ptr filter_policy = nullptr; 26629: 26629: 26629: 26629: bool whole_key_filtering = true; 26629: # 466 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: bool detect_filter_construct_corruption = false; 26629: 26629: 26629: 26629: 26629: bool verify_compression = false; 26629: # 494 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: uint32_t read_amp_bytes_per_bit = 0; 26629: # 521 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: uint32_t format_version = 5; 26629: 26629: 26629: 26629: 26629: bool enable_index_compression = true; 26629: 26629: 26629: bool block_align = false; 26629: # 553 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: enum class IndexShorteningMode : char { 26629: 26629: kNoShortening, 26629: 26629: 26629: kShortenSeparators, 26629: 26629: kShortenSeparatorsAndSuccessor, 26629: }; 26629: 26629: IndexShorteningMode index_shortening = 26629: IndexShorteningMode::kShortenSeparators; 26629: # 592 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: size_t max_auto_readahead_size = 256 * 1024; 26629: # 606 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: enum class PrepopulateBlockCache : char { 26629: 26629: kDisable, 26629: 26629: kFlushOnly, 26629: }; 26629: 26629: PrepopulateBlockCache prepopulate_block_cache = 26629: PrepopulateBlockCache::kDisable; 26629: # 643 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: size_t initial_auto_readahead_size = 8 * 1024; 26629: # 663 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: uint64_t num_file_reads_for_auto_readahead = 2; 26629: }; 26629: 26629: 26629: struct BlockBasedTablePropertyNames { 26629: 26629: static const std::string kIndexType; 26629: 26629: static const std::string kWholeKeyFiltering; 26629: 26629: static const std::string kPrefixFiltering; 26629: }; 26629: 26629: 26629: extern TableFactory* NewBlockBasedTableFactory( 26629: const BlockBasedTableOptions& table_options = BlockBasedTableOptions()); 26629: 26629: 26629: 26629: enum EncodingType : char { 26629: 26629: kPlain, 26629: # 696 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: kPrefix, 26629: }; 26629: 26629: 26629: struct PlainTablePropertyNames { 26629: static const std::string kEncodingType; 26629: static const std::string kBloomVersion; 26629: static const std::string kNumBloomBlocks; 26629: }; 26629: 26629: const uint32_t kPlainTableVariableLength = 0; 26629: 26629: struct PlainTableOptions { 26629: static const char* kName() { return "PlainTableOptions"; }; 26629: 26629: 26629: 26629: 26629: uint32_t user_key_len = kPlainTableVariableLength; 26629: 26629: 26629: 26629: int bloom_bits_per_key = 10; 26629: 26629: 26629: 26629: 26629: 26629: double hash_table_ratio = 0.75; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t index_sparseness = 16; 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t huge_page_tlb_size = 0; 26629: # 749 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: EncodingType encoding_type = kPlain; 26629: 26629: 26629: 26629: bool full_scan_mode = false; 26629: 26629: 26629: 26629: 26629: bool store_index_in_file = false; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern TableFactory* NewPlainTableFactory( 26629: const PlainTableOptions& options = PlainTableOptions()); 26629: 26629: struct CuckooTablePropertyNames { 26629: 26629: static const std::string kEmptyKey; 26629: 26629: static const std::string kValueLength; 26629: 26629: static const std::string kNumHashFunc; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kCuckooBlockSize; 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kHashTableSize; 26629: 26629: 26629: static const std::string kIsLastLevel; 26629: 26629: static const std::string kIdentityAsFirstHash; 26629: 26629: static const std::string kUseModuleHash; 26629: 26629: static const std::string kUserKeyLength; 26629: }; 26629: 26629: struct CuckooTableOptions { 26629: static const char* kName() { return "CuckooTableOptions"; }; 26629: 26629: 26629: 26629: double hash_table_ratio = 0.9; 26629: 26629: 26629: 26629: 26629: 26629: uint32_t max_search_depth = 100; 26629: 26629: 26629: 26629: 26629: 26629: uint32_t cuckoo_block_size = 5; 26629: 26629: 26629: 26629: 26629: bool identity_as_first_hash = false; 26629: 26629: 26629: 26629: 26629: 26629: bool use_module_hash = true; 26629: }; 26629: 26629: 26629: extern TableFactory* NewCuckooTableFactory( 26629: const CuckooTableOptions& table_options = CuckooTableOptions()); 26629: 26629: 26629: 26629: class RandomAccessFileReader; 26629: 26629: 26629: class TableFactory : public Customizable { 26629: public: 26629: virtual ~TableFactory() override {} 26629: 26629: static const char* kBlockCacheOpts() { return "BlockCache"; }; 26629: static const char* kBlockBasedTableName() { return "BlockBasedTable"; }; 26629: static const char* kPlainTableName() { return "PlainTable"; } 26629: static const char* kCuckooTableName() { return "CuckooTable"; }; 26629: 26629: 26629: static Status CreateFromString(const ConfigOptions& config_options, 26629: const std::string& id, 26629: std::shared_ptr* factory); 26629: 26629: static const char* Type() { return "TableFactory"; } 26629: # 875 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: virtual Status NewTableReader( 26629: const TableReaderOptions& table_reader_options, 26629: std::unique_ptr&& file, uint64_t file_size, 26629: std::unique_ptr* table_reader, 26629: bool prefetch_index_and_filter_in_cache = true) const { 26629: ReadOptions ro; 26629: return NewTableReader(ro, table_reader_options, std::move(file), file_size, 26629: table_reader, prefetch_index_and_filter_in_cache); 26629: } 26629: 26629: 26629: 26629: virtual Status NewTableReader( 26629: const ReadOptions& ro, const TableReaderOptions& table_reader_options, 26629: std::unique_ptr&& file, uint64_t file_size, 26629: std::unique_ptr* table_reader, 26629: bool prefetch_index_and_filter_in_cache) const = 0; 26629: # 911 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: virtual TableBuilder* NewTableBuilder( 26629: const TableBuilderOptions& table_builder_options, 26629: WritableFileWriter* file) const = 0; 26629: 26629: 26629: virtual bool IsDeleteRangeSupported() const { return false; } 26629: }; 26629: # 929 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 26629: extern TableFactory* NewAdaptiveTableFactory( 26629: std::shared_ptr table_factory_to_write = nullptr, 26629: std::shared_ptr block_based_table_factory = nullptr, 26629: std::shared_ptr plain_table_factory = nullptr, 26629: std::shared_ptr cuckoo_table_factory = nullptr); 26629: 26629: 26629: 26629: } 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class FileLock; 26629: class FSDirectory; 26629: class FSRandomAccessFile; 26629: class FSRandomRWFile; 26629: class FSSequentialFile; 26629: class FSWritableFile; 26629: class Logger; 26629: class Slice; 26629: struct ImmutableDBOptions; 26629: struct MutableDBOptions; 26629: class RateLimiter; 26629: struct ConfigOptions; 26629: 26629: using AccessPattern = RandomAccessFile::AccessPattern; 26629: using FileAttributes = Env::FileAttributes; 26629: 26629: 26629: 26629: 26629: 26629: 26629: enum class IOPriority : uint8_t { 26629: kIOLow, 26629: kIOHigh, 26629: kIOTotal, 26629: }; 26629: 26629: 26629: 26629: 26629: enum class IOType : uint8_t { 26629: kData, 26629: kFilter, 26629: kIndex, 26629: kMetadata, 26629: kWAL, 26629: kManifest, 26629: kLog, 26629: kUnknown, 26629: kInvalid, 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: struct IOOptions { 26629: 26629: std::chrono::microseconds timeout; 26629: 26629: 26629: 26629: IOPriority prio; 26629: 26629: 26629: 26629: 26629: 26629: Env::IOPriority rate_limiter_priority; 26629: 26629: 26629: IOType type; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: std::unordered_map property_bag; 26629: 26629: 26629: 26629: bool force_dir_fsync; 26629: 26629: 26629: 26629: bool do_not_recurse; 26629: 26629: IOOptions() : IOOptions(false) {} 26629: 26629: explicit IOOptions(bool force_dir_fsync_) 26629: : timeout(std::chrono::microseconds::zero()), 26629: prio(IOPriority::kIOLow), 26629: rate_limiter_priority(Env::IO_TOTAL), 26629: type(IOType::kUnknown), 26629: force_dir_fsync(force_dir_fsync_), 26629: do_not_recurse(false) {} 26629: }; 26629: 26629: struct DirFsyncOptions { 26629: enum FsyncReason : uint8_t { 26629: kNewFileSynced, 26629: kFileRenamed, 26629: kDirRenamed, 26629: kFileDeleted, 26629: kDefault, 26629: } reason; 26629: 26629: std::string renamed_new_name; 26629: 26629: 26629: DirFsyncOptions(); 26629: 26629: explicit DirFsyncOptions(std::string file_renamed_new_name); 26629: 26629: explicit DirFsyncOptions(FsyncReason fsync_reason); 26629: }; 26629: 26629: 26629: 26629: 26629: struct FileOptions : EnvOptions { 26629: 26629: 26629: IOOptions io_options; 26629: 26629: 26629: 26629: 26629: 26629: 26629: Temperature temperature = Temperature::kUnknown; 26629: 26629: 26629: 26629: ChecksumType handoff_checksum_type; 26629: 26629: FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {} 26629: 26629: FileOptions(const DBOptions& opts) 26629: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 26629: 26629: FileOptions(const EnvOptions& opts) 26629: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 26629: 26629: FileOptions(const FileOptions& opts) 26629: : EnvOptions(opts), 26629: io_options(opts.io_options), 26629: temperature(opts.temperature), 26629: handoff_checksum_type(opts.handoff_checksum_type) {} 26629: 26629: FileOptions& operator=(const FileOptions&) = default; 26629: }; 26629: 26629: 26629: 26629: struct IODebugContext { 26629: 26629: std::string file_path; 26629: 26629: 26629: std::map counters; 26629: 26629: 26629: std::string msg; 26629: 26629: 26629: std::string request_id; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: enum TraceData : char { 26629: 26629: 26629: 26629: kRequestID = 0, 26629: }; 26629: uint64_t trace_data = 0; 26629: 26629: IODebugContext() {} 26629: 26629: void AddCounter(std::string& name, uint64_t value) { 26629: counters.emplace(name, value); 26629: } 26629: 26629: 26629: 26629: void SetRequestId(const std::string& _request_id) { 26629: request_id = _request_id; 26629: trace_data |= (1 << TraceData::kRequestID); 26629: } 26629: 26629: std::string ToString() { 26629: std::ostringstream ss; 26629: ss << file_path << ", "; 26629: for (auto counter : counters) { 26629: ss << counter.first << " = " << counter.second << ","; 26629: } 26629: ss << msg; 26629: return ss.str(); 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: using IOHandleDeleter = std::function; 26629: # 263 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: class FileSystem : public Customizable { 26629: public: 26629: FileSystem(); 26629: 26629: 26629: FileSystem(const FileSystem&) = delete; 26629: 26629: virtual ~FileSystem(); 26629: 26629: static const char* Type() { return "FileSystem"; } 26629: static const char* kDefaultName() { return "DefaultFileSystem"; } 26629: 26629: 26629: 26629: 26629: static Status Load(const std::string& value, 26629: std::shared_ptr* result); 26629: # 290 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: static Status CreateFromString(const ConfigOptions& options, 26629: const std::string& value, 26629: std::shared_ptr* result); 26629: 26629: 26629: 26629: static std::shared_ptr Default(); 26629: # 313 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual Status RegisterDbPaths(const std::vector& ) { 26629: return Status::OK(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status UnregisterDbPaths(const std::vector& ) { 26629: return Status::OK(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual IOStatus NewSequentialFile(const std::string& fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) = 0; 26629: # 345 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus NewRandomAccessFile( 26629: const std::string& fname, const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) = 0; 26629: 26629: 26629: enum WriteLifeTimeHint { 26629: kWLTHNotSet = 0, 26629: kWLTHNone, 26629: kWLTHShort, 26629: kWLTHMedium, 26629: kWLTHLong, 26629: kWLTHExtreme, 26629: }; 26629: # 367 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus NewWritableFile(const std::string& fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) = 0; 26629: # 380 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus ReopenWritableFile( 26629: const std::string& , const FileOptions& , 26629: std::unique_ptr* , IODebugContext* ) { 26629: return IOStatus::NotSupported("ReopenWritableFile"); 26629: } 26629: 26629: 26629: virtual IOStatus ReuseWritableFile(const std::string& fname, 26629: const std::string& old_fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg); 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual IOStatus NewRandomRWFile(const std::string& , 26629: const FileOptions& , 26629: std::unique_ptr* , 26629: IODebugContext* ) { 26629: return IOStatus::NotSupported( 26629: "RandomRWFile is not implemented in this FileSystem"); 26629: } 26629: 26629: 26629: 26629: 26629: virtual IOStatus NewMemoryMappedFileBuffer( 26629: const std::string& , 26629: std::unique_ptr* ) { 26629: return IOStatus::NotSupported( 26629: "MemoryMappedFileBuffer is not implemented in this FileSystem"); 26629: } 26629: # 423 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus NewDirectory(const std::string& name, 26629: const IOOptions& io_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual IOStatus FileExists(const std::string& fname, 26629: const IOOptions& options, 26629: IODebugContext* dbg) = 0; 26629: # 444 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options, 26629: std::vector* result, 26629: IODebugContext* dbg) = 0; 26629: # 458 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus GetChildrenFileAttributes( 26629: const std::string& dir, const IOOptions& options, 26629: std::vector* result, IODebugContext* dbg) { 26629: 26629: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 26629: (static_cast ( 26629: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: result != nullptr 26629: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: "result != nullptr" 26629: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 26629: , "./include/rocksdb/file_system.h", 461, __extension__ __PRETTY_FUNCTION__)) 26629: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: ; 26629: std::vector child_fnames; 26629: IOStatus s = GetChildren(dir, options, &child_fnames, dbg); 26629: if (!s.ok()) { 26629: return s; 26629: } 26629: result->resize(child_fnames.size()); 26629: size_t result_size = 0; 26629: for (size_t i = 0; i < child_fnames.size(); ++i) { 26629: const std::string path = dir + "/" + child_fnames[i]; 26629: if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes, 26629: dbg)) 26629: .ok()) { 26629: if (FileExists(path, options, dbg).IsNotFound()) { 26629: 26629: continue; 26629: } 26629: return s; 26629: } 26629: (*result)[result_size].name = std::move(child_fnames[i]); 26629: result_size++; 26629: } 26629: result->resize(result_size); 26629: return IOStatus::OK(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual IOStatus DeleteFile(const std::string& fname, 26629: const IOOptions& options, 26629: IODebugContext* dbg) = 0; 26629: 26629: 26629: virtual IOStatus Truncate(const std::string& , size_t , 26629: const IOOptions& , 26629: IODebugContext* ) { 26629: return IOStatus::NotSupported("Truncate is not supported for this FileSystem"); 26629: } 26629: 26629: 26629: virtual IOStatus CreateDir(const std::string& dirname, 26629: const IOOptions& options, IODebugContext* dbg) = 0; 26629: 26629: 26629: 26629: virtual IOStatus CreateDirIfMissing(const std::string& dirname, 26629: const IOOptions& options, 26629: IODebugContext* dbg) = 0; 26629: 26629: 26629: virtual IOStatus DeleteDir(const std::string& dirname, 26629: const IOOptions& options, IODebugContext* dbg) = 0; 26629: 26629: 26629: virtual IOStatus GetFileSize(const std::string& fname, 26629: const IOOptions& options, uint64_t* file_size, 26629: IODebugContext* dbg) = 0; 26629: 26629: 26629: virtual IOStatus GetFileModificationTime(const std::string& fname, 26629: const IOOptions& options, 26629: uint64_t* file_mtime, 26629: IODebugContext* dbg) = 0; 26629: 26629: virtual IOStatus RenameFile(const std::string& src, const std::string& target, 26629: const IOOptions& options, 26629: IODebugContext* dbg) = 0; 26629: 26629: 26629: virtual IOStatus LinkFile(const std::string& , 26629: const std::string& , 26629: const IOOptions& , 26629: IODebugContext* ) { 26629: return IOStatus::NotSupported("LinkFile is not supported for this FileSystem"); 26629: } 26629: 26629: virtual IOStatus NumFileLinks(const std::string& , 26629: const IOOptions& , 26629: uint64_t* , IODebugContext* ) { 26629: return IOStatus::NotSupported( 26629: "Getting number of file links is not supported for this FileSystem"); 26629: } 26629: 26629: virtual IOStatus AreFilesSame(const std::string& , 26629: const std::string& , 26629: const IOOptions& , bool* , 26629: IODebugContext* ) { 26629: return IOStatus::NotSupported("AreFilesSame is not supported for this FileSystem"); 26629: } 26629: # 568 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus LockFile(const std::string& fname, const IOOptions& options, 26629: FileLock** lock, IODebugContext* dbg) = 0; 26629: 26629: 26629: 26629: 26629: virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options, 26629: IODebugContext* dbg) = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 26629: IODebugContext* dbg) = 0; 26629: 26629: 26629: 26629: 26629: virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts, 26629: std::shared_ptr* result, 26629: IODebugContext* dbg); 26629: 26629: 26629: virtual IOStatus GetAbsolutePath(const std::string& db_path, 26629: const IOOptions& options, 26629: std::string* output_path, 26629: IODebugContext* dbg) = 0; 26629: 26629: 26629: 26629: virtual void SanitizeFileOptions(FileOptions* ) const {} 26629: 26629: 26629: 26629: virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const; 26629: 26629: 26629: 26629: 26629: virtual FileOptions OptimizeForManifestRead( 26629: const FileOptions& file_options) const; 26629: 26629: 26629: 26629: 26629: virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options, 26629: const DBOptions& db_options) const; 26629: 26629: 26629: 26629: 26629: 26629: virtual FileOptions OptimizeForManifestWrite( 26629: const FileOptions& file_options) const; 26629: 26629: 26629: 26629: 26629: virtual FileOptions OptimizeForCompactionTableWrite( 26629: const FileOptions& file_options, 26629: const ImmutableDBOptions& immutable_ops) const; 26629: 26629: 26629: 26629: 26629: virtual FileOptions OptimizeForCompactionTableRead( 26629: const FileOptions& file_options, 26629: const ImmutableDBOptions& db_options) const; 26629: 26629: 26629: 26629: 26629: virtual FileOptions OptimizeForBlobFileRead( 26629: const FileOptions& file_options, 26629: const ImmutableDBOptions& db_options) const; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual IOStatus GetFreeSpace(const std::string& , 26629: const IOOptions& , 26629: uint64_t* , 26629: IODebugContext* ) { 26629: return IOStatus::NotSupported("GetFreeSpace"); 26629: } 26629: 26629: virtual IOStatus IsDirectory(const std::string& , 26629: const IOOptions& options, bool* is_dir, 26629: IODebugContext* ) = 0; 26629: # 673 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus Poll(std::vector& , 26629: size_t ) { 26629: return IOStatus::OK(); 26629: } 26629: # 685 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus AbortIO(std::vector& ) { 26629: return IOStatus::OK(); 26629: } 26629: 26629: 26629: 26629: private: 26629: void operator=(const FileSystem&); 26629: }; 26629: 26629: 26629: class FSSequentialFile { 26629: public: 26629: FSSequentialFile() {} 26629: 26629: virtual ~FSSequentialFile() {} 26629: # 714 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result, 26629: char* scratch, IODebugContext* dbg) = 0; 26629: # 724 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus Skip(uint64_t n) = 0; 26629: 26629: 26629: 26629: virtual bool use_direct_io() const { return false; } 26629: 26629: 26629: 26629: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 26629: 26629: 26629: 26629: 26629: virtual IOStatus InvalidateCache(size_t , size_t ) { 26629: return IOStatus::NotSupported("InvalidateCache not supported."); 26629: } 26629: 26629: 26629: 26629: virtual IOStatus PositionedRead(uint64_t , size_t , 26629: const IOOptions& , 26629: Slice* , char* , 26629: IODebugContext* ) { 26629: return IOStatus::NotSupported("PositionedRead"); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: struct FSReadRequest { 26629: 26629: uint64_t offset; 26629: 26629: 26629: 26629: size_t len; 26629: # 777 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: char* scratch; 26629: # 787 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: Slice result; 26629: 26629: 26629: 26629: IOStatus status; 26629: }; 26629: 26629: 26629: class FSRandomAccessFile { 26629: public: 26629: FSRandomAccessFile() {} 26629: 26629: virtual ~FSRandomAccessFile() {} 26629: # 815 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 26629: Slice* result, char* scratch, 26629: IODebugContext* dbg) const = 0; 26629: 26629: 26629: 26629: 26629: virtual IOStatus Prefetch(uint64_t , size_t , 26629: const IOOptions& , 26629: IODebugContext* ) { 26629: return IOStatus::NotSupported("Prefetch"); 26629: } 26629: # 836 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 26629: const IOOptions& options, IODebugContext* dbg) { 26629: 26629: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 26629: (static_cast ( 26629: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: reqs != nullptr 26629: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: "reqs != nullptr" 26629: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 26629: , "./include/rocksdb/file_system.h", 838, __extension__ __PRETTY_FUNCTION__)) 26629: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: ; 26629: for (size_t i = 0; i < num_reqs; ++i) { 26629: FSReadRequest& req = reqs[i]; 26629: req.status = 26629: Read(req.offset, req.len, options, &req.result, req.scratch, dbg); 26629: } 26629: return IOStatus::OK(); 26629: } 26629: # 862 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual size_t GetUniqueId(char* , size_t ) const { 26629: return 0; 26629: 26629: }; 26629: 26629: enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed }; 26629: 26629: virtual void Hint(AccessPattern ) {} 26629: 26629: 26629: 26629: virtual bool use_direct_io() const { return false; } 26629: 26629: 26629: 26629: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 26629: 26629: 26629: 26629: 26629: virtual IOStatus InvalidateCache(size_t , size_t ) { 26629: return IOStatus::NotSupported("InvalidateCache not supported."); 26629: } 26629: # 909 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus ReadAsync( 26629: FSReadRequest& req, const IOOptions& opts, 26629: std::function cb, void* cb_arg, 26629: void** , IOHandleDeleter* , IODebugContext* dbg) { 26629: req.status = 26629: Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg); 26629: cb(req, cb_arg); 26629: return IOStatus::OK(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 26629: 26629: 26629: 26629: }; 26629: 26629: 26629: 26629: struct DataVerificationInfo { 26629: 26629: Slice checksum; 26629: }; 26629: 26629: 26629: 26629: 26629: class FSWritableFile { 26629: public: 26629: FSWritableFile() 26629: : last_preallocated_block_(0), 26629: preallocation_block_size_(0), 26629: io_priority_(Env::IO_TOTAL), 26629: write_hint_(Env::WLTH_NOT_SET), 26629: strict_bytes_per_sync_(false) {} 26629: 26629: explicit FSWritableFile(const FileOptions& options) 26629: : last_preallocated_block_(0), 26629: preallocation_block_size_(0), 26629: io_priority_(Env::IO_TOTAL), 26629: write_hint_(Env::WLTH_NOT_SET), 26629: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 26629: 26629: virtual ~FSWritableFile() {} 26629: 26629: 26629: 26629: 26629: virtual IOStatus Append(const Slice& data, const IOOptions& options, 26629: IODebugContext* dbg) = 0; 26629: # 972 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus Append(const Slice& data, const IOOptions& options, 26629: const DataVerificationInfo& , 26629: IODebugContext* dbg) { 26629: return Append(data, options, dbg); 26629: } 26629: # 998 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus PositionedAppend(const Slice& , 26629: uint64_t , 26629: const IOOptions& , 26629: IODebugContext* ) { 26629: return IOStatus::NotSupported("PositionedAppend"); 26629: } 26629: # 1013 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus PositionedAppend( 26629: const Slice& , uint64_t , 26629: const IOOptions& , 26629: const DataVerificationInfo& , 26629: IODebugContext* ) { 26629: return IOStatus::NotSupported("PositionedAppend"); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual IOStatus Truncate(uint64_t , const IOOptions& , 26629: IODebugContext* ) { 26629: return IOStatus::OK(); 26629: } 26629: virtual IOStatus Close(const IOOptions& , 26629: IODebugContext* ) = 0; 26629: 26629: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 26629: virtual IOStatus Sync(const IOOptions& options, 26629: IODebugContext* dbg) = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 26629: return Sync(options, dbg); 26629: } 26629: 26629: 26629: 26629: virtual bool IsSyncThreadSafe() const { return false; } 26629: 26629: 26629: 26629: virtual bool use_direct_io() const { return false; } 26629: 26629: 26629: 26629: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 26629: 26629: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 26629: write_hint_ = hint; 26629: } 26629: # 1073 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 26629: 26629: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 26629: 26629: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 26629: 26629: 26629: 26629: virtual uint64_t GetFileSize(const IOOptions& , 26629: IODebugContext* ) { 26629: return 0; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void SetPreallocationBlockSize(size_t size) { 26629: preallocation_block_size_ = size; 26629: } 26629: 26629: virtual void GetPreallocationStatus(size_t* block_size, 26629: size_t* last_allocated_block) { 26629: *last_allocated_block = last_preallocated_block_; 26629: *block_size = preallocation_block_size_; 26629: } 26629: 26629: 26629: virtual size_t GetUniqueId(char* , size_t ) const { 26629: return 0; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual IOStatus InvalidateCache(size_t , size_t ) { 26629: return IOStatus::NotSupported("InvalidateCache not supported."); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual IOStatus RangeSync(uint64_t , uint64_t , 26629: const IOOptions& options, IODebugContext* dbg) { 26629: if (strict_bytes_per_sync_) { 26629: return Sync(options, dbg); 26629: } 26629: return IOStatus::OK(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 26629: IODebugContext* dbg) { 26629: if (preallocation_block_size_ == 0) { 26629: return; 26629: } 26629: 26629: 26629: 26629: const auto block_size = preallocation_block_size_; 26629: size_t new_last_preallocated_block = 26629: (offset + len + block_size - 1) / block_size; 26629: if (new_last_preallocated_block > last_preallocated_block_) { 26629: size_t num_spanned_blocks = 26629: new_last_preallocated_block - last_preallocated_block_; 26629: Allocate(block_size * last_preallocated_block_, 26629: block_size * num_spanned_blocks, options, dbg) 26629: .PermitUncheckedError(); 26629: last_preallocated_block_ = new_last_preallocated_block; 26629: } 26629: } 26629: 26629: 26629: virtual IOStatus Allocate(uint64_t , uint64_t , 26629: const IOOptions& , 26629: IODebugContext* ) { 26629: return IOStatus::OK(); 26629: } 26629: 26629: 26629: 26629: 26629: protected: 26629: size_t preallocation_block_size() { return preallocation_block_size_; } 26629: 26629: private: 26629: size_t last_preallocated_block_; 26629: size_t preallocation_block_size_; 26629: 26629: FSWritableFile(const FSWritableFile&); 26629: void operator=(const FSWritableFile&); 26629: 26629: protected: 26629: Env::IOPriority io_priority_; 26629: Env::WriteLifeTimeHint write_hint_; 26629: const bool strict_bytes_per_sync_; 26629: }; 26629: 26629: 26629: class FSRandomRWFile { 26629: public: 26629: FSRandomRWFile() {} 26629: 26629: virtual ~FSRandomRWFile() {} 26629: 26629: 26629: 26629: virtual bool use_direct_io() const { return false; } 26629: 26629: 26629: 26629: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 26629: 26629: 26629: 26629: virtual IOStatus Write(uint64_t offset, const Slice& data, 26629: const IOOptions& options, IODebugContext* dbg) = 0; 26629: # 1209 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 26629: Slice* result, char* scratch, 26629: IODebugContext* dbg) const = 0; 26629: 26629: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 26629: 26629: virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; 26629: 26629: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 26629: return Sync(options, dbg); 26629: } 26629: 26629: virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 26629: 26629: 26629: 26629: 26629: 26629: FSRandomRWFile(const RandomRWFile&) = delete; 26629: FSRandomRWFile& operator=(const RandomRWFile&) = delete; 26629: }; 26629: 26629: 26629: 26629: class FSMemoryMappedFileBuffer { 26629: public: 26629: FSMemoryMappedFileBuffer(void* _base, size_t _length) 26629: : base_(_base), length_(_length) {} 26629: 26629: virtual ~FSMemoryMappedFileBuffer() = 0; 26629: 26629: 26629: 26629: FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete; 26629: FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete; 26629: 26629: void* GetBase() const { return base_; } 26629: size_t GetLen() const { return length_; } 26629: 26629: protected: 26629: void* base_; 26629: const size_t length_; 26629: }; 26629: 26629: 26629: 26629: class FSDirectory { 26629: public: 26629: virtual ~FSDirectory() {} 26629: 26629: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0; 26629: 26629: 26629: 26629: 26629: virtual IOStatus FsyncWithDirOptions( 26629: const IOOptions& options, IODebugContext* dbg, 26629: const DirFsyncOptions& ) { 26629: return Fsync(options, dbg); 26629: } 26629: 26629: 26629: virtual IOStatus Close(const IOOptions& , 26629: IODebugContext* ) { 26629: return IOStatus::NotSupported("Close"); 26629: } 26629: 26629: virtual size_t GetUniqueId(char* , size_t ) const { 26629: return 0; 26629: } 26629: 26629: 26629: 26629: }; 26629: # 1321 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 26629: class FileSystemWrapper : public FileSystem { 26629: public: 26629: 26629: explicit FileSystemWrapper(const std::shared_ptr& t); 26629: ~FileSystemWrapper() override {} 26629: 26629: 26629: FileSystem* target() const { return target_.get(); } 26629: 26629: 26629: IOStatus NewSequentialFile(const std::string& f, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* r, 26629: IODebugContext* dbg) override { 26629: return target_->NewSequentialFile(f, file_opts, r, dbg); 26629: } 26629: IOStatus NewRandomAccessFile(const std::string& f, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* r, 26629: IODebugContext* dbg) override { 26629: return target_->NewRandomAccessFile(f, file_opts, r, dbg); 26629: } 26629: IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts, 26629: std::unique_ptr* r, 26629: IODebugContext* dbg) override { 26629: return target_->NewWritableFile(f, file_opts, r, dbg); 26629: } 26629: IOStatus ReopenWritableFile(const std::string& fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) override { 26629: return target_->ReopenWritableFile(fname, file_opts, result, dbg); 26629: } 26629: IOStatus ReuseWritableFile(const std::string& fname, 26629: const std::string& old_fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* r, 26629: IODebugContext* dbg) override { 26629: return target_->ReuseWritableFile(fname, old_fname, file_opts, r, 26629: dbg); 26629: } 26629: IOStatus NewRandomRWFile(const std::string& fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) override { 26629: return target_->NewRandomRWFile(fname, file_opts, result, dbg); 26629: } 26629: IOStatus NewMemoryMappedFileBuffer( 26629: const std::string& fname, 26629: std::unique_ptr* result) override { 26629: return target_->NewMemoryMappedFileBuffer(fname, result); 26629: } 26629: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) override { 26629: return target_->NewDirectory(name, io_opts, result, dbg); 26629: } 26629: IOStatus FileExists(const std::string& f, const IOOptions& io_opts, 26629: IODebugContext* dbg) override { 26629: return target_->FileExists(f, io_opts, dbg); 26629: } 26629: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 26629: std::vector* r, 26629: IODebugContext* dbg) override { 26629: return target_->GetChildren(dir, io_opts, r, dbg); 26629: } 26629: IOStatus GetChildrenFileAttributes(const std::string& dir, 26629: const IOOptions& options, 26629: std::vector* result, 26629: IODebugContext* dbg) override { 26629: return target_->GetChildrenFileAttributes(dir, options, result, dbg); 26629: } 26629: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->DeleteFile(f, options, dbg); 26629: } 26629: IOStatus Truncate(const std::string& fname, size_t size, 26629: const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Truncate(fname, size, options, dbg); 26629: } 26629: IOStatus CreateDir(const std::string& d, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->CreateDir(d, options, dbg); 26629: } 26629: IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->CreateDirIfMissing(d, options, dbg); 26629: } 26629: IOStatus DeleteDir(const std::string& d, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->DeleteDir(d, options, dbg); 26629: } 26629: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 26629: uint64_t* s, IODebugContext* dbg) override { 26629: return target_->GetFileSize(f, options, s, dbg); 26629: } 26629: 26629: IOStatus GetFileModificationTime(const std::string& fname, 26629: const IOOptions& options, 26629: uint64_t* file_mtime, 26629: IODebugContext* dbg) override { 26629: return target_->GetFileModificationTime(fname, options, file_mtime, dbg); 26629: } 26629: 26629: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 26629: std::string* output_path, 26629: IODebugContext* dbg) override { 26629: return target_->GetAbsolutePath(db_path, options, output_path, dbg); 26629: } 26629: 26629: IOStatus RenameFile(const std::string& s, const std::string& t, 26629: const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->RenameFile(s, t, options, dbg); 26629: } 26629: 26629: IOStatus LinkFile(const std::string& s, const std::string& t, 26629: const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->LinkFile(s, t, options, dbg); 26629: } 26629: 26629: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 26629: uint64_t* count, IODebugContext* dbg) override { 26629: return target_->NumFileLinks(fname, options, count, dbg); 26629: } 26629: 26629: IOStatus AreFilesSame(const std::string& first, const std::string& second, 26629: const IOOptions& options, bool* res, 26629: IODebugContext* dbg) override { 26629: return target_->AreFilesSame(first, second, options, res, dbg); 26629: } 26629: 26629: IOStatus LockFile(const std::string& f, const IOOptions& options, 26629: FileLock** l, IODebugContext* dbg) override { 26629: return target_->LockFile(f, options, l, dbg); 26629: } 26629: 26629: IOStatus UnlockFile(FileLock* l, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->UnlockFile(l, options, dbg); 26629: } 26629: 26629: IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 26629: IODebugContext* dbg) override { 26629: return target_->GetTestDirectory(options, path, dbg); 26629: } 26629: IOStatus NewLogger(const std::string& fname, const IOOptions& options, 26629: std::shared_ptr* result, 26629: IODebugContext* dbg) override { 26629: return target_->NewLogger(fname, options, result, dbg); 26629: } 26629: 26629: void SanitizeFileOptions(FileOptions* opts) const override { 26629: target_->SanitizeFileOptions(opts); 26629: } 26629: 26629: FileOptions OptimizeForLogRead( 26629: const FileOptions& file_options) const override { 26629: return target_->OptimizeForLogRead(file_options); 26629: } 26629: FileOptions OptimizeForManifestRead( 26629: const FileOptions& file_options) const override { 26629: return target_->OptimizeForManifestRead(file_options); 26629: } 26629: FileOptions OptimizeForLogWrite(const FileOptions& file_options, 26629: const DBOptions& db_options) const override { 26629: return target_->OptimizeForLogWrite(file_options, db_options); 26629: } 26629: FileOptions OptimizeForManifestWrite( 26629: const FileOptions& file_options) const override { 26629: return target_->OptimizeForManifestWrite(file_options); 26629: } 26629: FileOptions OptimizeForCompactionTableWrite( 26629: const FileOptions& file_options, 26629: const ImmutableDBOptions& immutable_ops) const override { 26629: return target_->OptimizeForCompactionTableWrite(file_options, 26629: immutable_ops); 26629: } 26629: FileOptions OptimizeForCompactionTableRead( 26629: const FileOptions& file_options, 26629: const ImmutableDBOptions& db_options) const override { 26629: return target_->OptimizeForCompactionTableRead(file_options, db_options); 26629: } 26629: FileOptions OptimizeForBlobFileRead( 26629: const FileOptions& file_options, 26629: const ImmutableDBOptions& db_options) const override { 26629: return target_->OptimizeForBlobFileRead(file_options, db_options); 26629: } 26629: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 26629: uint64_t* diskfree, IODebugContext* dbg) override { 26629: return target_->GetFreeSpace(path, options, diskfree, dbg); 26629: } 26629: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 26629: bool* is_dir, IODebugContext* dbg) override { 26629: return target_->IsDirectory(path, options, is_dir, dbg); 26629: } 26629: 26629: const Customizable* Inner() const override { return target_.get(); } 26629: Status PrepareOptions(const ConfigOptions& options) override; 26629: 26629: std::string SerializeOptions(const ConfigOptions& config_options, 26629: const std::string& header) const override; 26629: 26629: 26629: virtual IOStatus Poll(std::vector& io_handles, 26629: size_t min_completions) override { 26629: return target_->Poll(io_handles, min_completions); 26629: } 26629: 26629: virtual IOStatus AbortIO(std::vector& io_handles) override { 26629: return target_->AbortIO(io_handles); 26629: } 26629: 26629: protected: 26629: std::shared_ptr target_; 26629: }; 26629: 26629: class FSSequentialFileWrapper : public FSSequentialFile { 26629: public: 26629: 26629: 26629: explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {} 26629: 26629: FSSequentialFile* target() const { return target_; } 26629: 26629: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 26629: char* scratch, IODebugContext* dbg) override { 26629: return target_->Read(n, options, result, scratch, dbg); 26629: } 26629: IOStatus Skip(uint64_t n) override { return target_->Skip(n); } 26629: bool use_direct_io() const override { return target_->use_direct_io(); } 26629: size_t GetRequiredBufferAlignment() const override { 26629: return target_->GetRequiredBufferAlignment(); 26629: } 26629: IOStatus InvalidateCache(size_t offset, size_t length) override { 26629: return target_->InvalidateCache(offset, length); 26629: } 26629: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 26629: Slice* result, char* scratch, 26629: IODebugContext* dbg) override { 26629: return target_->PositionedRead(offset, n, options, result, scratch, dbg); 26629: } 26629: Temperature GetTemperature() const override { 26629: return target_->GetTemperature(); 26629: } 26629: 26629: private: 26629: FSSequentialFile* target_; 26629: }; 26629: 26629: class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper { 26629: public: 26629: 26629: 26629: explicit FSSequentialFileOwnerWrapper(std::unique_ptr&& t) 26629: : FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {} 26629: 26629: private: 26629: std::unique_ptr guard_; 26629: }; 26629: 26629: class FSRandomAccessFileWrapper : public FSRandomAccessFile { 26629: public: 26629: 26629: 26629: explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {} 26629: 26629: FSRandomAccessFile* target() const { return target_; } 26629: 26629: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 26629: Slice* result, char* scratch, 26629: IODebugContext* dbg) const override { 26629: return target_->Read(offset, n, options, result, scratch, dbg); 26629: } 26629: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 26629: const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->MultiRead(reqs, num_reqs, options, dbg); 26629: } 26629: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->Prefetch(offset, n, options, dbg); 26629: } 26629: size_t GetUniqueId(char* id, size_t max_size) const override { 26629: return target_->GetUniqueId(id, max_size); 26629: }; 26629: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 26629: bool use_direct_io() const override { return target_->use_direct_io(); } 26629: size_t GetRequiredBufferAlignment() const override { 26629: return target_->GetRequiredBufferAlignment(); 26629: } 26629: IOStatus InvalidateCache(size_t offset, size_t length) override { 26629: return target_->InvalidateCache(offset, length); 26629: } 26629: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 26629: std::function cb, 26629: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 26629: IODebugContext* dbg) override { 26629: return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg); 26629: } 26629: Temperature GetTemperature() const override { 26629: return target_->GetTemperature(); 26629: } 26629: 26629: private: 26629: std::unique_ptr guard_; 26629: FSRandomAccessFile* target_; 26629: }; 26629: 26629: class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper { 26629: public: 26629: 26629: 26629: explicit FSRandomAccessFileOwnerWrapper( 26629: std::unique_ptr&& t) 26629: : FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {} 26629: 26629: private: 26629: std::unique_ptr guard_; 26629: }; 26629: 26629: class FSWritableFileWrapper : public FSWritableFile { 26629: public: 26629: 26629: 26629: explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} 26629: 26629: FSWritableFile* target() const { return target_; } 26629: 26629: IOStatus Append(const Slice& data, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->Append(data, options, dbg); 26629: } 26629: IOStatus Append(const Slice& data, const IOOptions& options, 26629: const DataVerificationInfo& verification_info, 26629: IODebugContext* dbg) override { 26629: return target_->Append(data, options, verification_info, dbg); 26629: } 26629: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 26629: const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->PositionedAppend(data, offset, options, dbg); 26629: } 26629: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 26629: const IOOptions& options, 26629: const DataVerificationInfo& verification_info, 26629: IODebugContext* dbg) override { 26629: return target_->PositionedAppend(data, offset, options, verification_info, 26629: dbg); 26629: } 26629: IOStatus Truncate(uint64_t size, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->Truncate(size, options, dbg); 26629: } 26629: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Close(options, dbg); 26629: } 26629: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Flush(options, dbg); 26629: } 26629: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Sync(options, dbg); 26629: } 26629: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Fsync(options, dbg); 26629: } 26629: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 26629: 26629: bool use_direct_io() const override { return target_->use_direct_io(); } 26629: 26629: size_t GetRequiredBufferAlignment() const override { 26629: return target_->GetRequiredBufferAlignment(); 26629: } 26629: 26629: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 26629: target_->SetWriteLifeTimeHint(hint); 26629: } 26629: 26629: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 26629: return target_->GetWriteLifeTimeHint(); 26629: } 26629: 26629: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->GetFileSize(options, dbg); 26629: } 26629: 26629: void SetPreallocationBlockSize(size_t size) override { 26629: target_->SetPreallocationBlockSize(size); 26629: } 26629: 26629: void GetPreallocationStatus(size_t* block_size, 26629: size_t* last_allocated_block) override { 26629: target_->GetPreallocationStatus(block_size, last_allocated_block); 26629: } 26629: 26629: size_t GetUniqueId(char* id, size_t max_size) const override { 26629: return target_->GetUniqueId(id, max_size); 26629: } 26629: 26629: IOStatus InvalidateCache(size_t offset, size_t length) override { 26629: return target_->InvalidateCache(offset, length); 26629: } 26629: 26629: IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->RangeSync(offset, nbytes, options, dbg); 26629: } 26629: 26629: void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: target_->PrepareWrite(offset, len, options, dbg); 26629: } 26629: 26629: IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->Allocate(offset, len, options, dbg); 26629: } 26629: 26629: private: 26629: FSWritableFile* target_; 26629: }; 26629: 26629: class FSWritableFileOwnerWrapper : public FSWritableFileWrapper { 26629: public: 26629: 26629: 26629: explicit FSWritableFileOwnerWrapper(std::unique_ptr&& t) 26629: : FSWritableFileWrapper(t.get()), guard_(std::move(t)) {} 26629: 26629: private: 26629: std::unique_ptr guard_; 26629: }; 26629: 26629: class FSRandomRWFileWrapper : public FSRandomRWFile { 26629: public: 26629: 26629: 26629: explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {} 26629: 26629: FSRandomRWFile* target() const { return target_; } 26629: 26629: bool use_direct_io() const override { return target_->use_direct_io(); } 26629: size_t GetRequiredBufferAlignment() const override { 26629: return target_->GetRequiredBufferAlignment(); 26629: } 26629: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 26629: IODebugContext* dbg) override { 26629: return target_->Write(offset, data, options, dbg); 26629: } 26629: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 26629: Slice* result, char* scratch, 26629: IODebugContext* dbg) const override { 26629: return target_->Read(offset, n, options, result, scratch, dbg); 26629: } 26629: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Flush(options, dbg); 26629: } 26629: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Sync(options, dbg); 26629: } 26629: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Fsync(options, dbg); 26629: } 26629: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Close(options, dbg); 26629: } 26629: Temperature GetTemperature() const override { 26629: return target_->GetTemperature(); 26629: } 26629: 26629: private: 26629: FSRandomRWFile* target_; 26629: }; 26629: 26629: class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper { 26629: public: 26629: 26629: 26629: explicit FSRandomRWFileOwnerWrapper(std::unique_ptr&& t) 26629: : FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {} 26629: 26629: private: 26629: std::unique_ptr guard_; 26629: }; 26629: 26629: class FSDirectoryWrapper : public FSDirectory { 26629: public: 26629: 26629: 26629: explicit FSDirectoryWrapper(std::unique_ptr&& t) 26629: : guard_(std::move(t)) { 26629: target_ = guard_.get(); 26629: } 26629: 26629: 26629: 26629: explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {} 26629: 26629: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Fsync(options, dbg); 26629: } 26629: 26629: IOStatus FsyncWithDirOptions( 26629: const IOOptions& options, IODebugContext* dbg, 26629: const DirFsyncOptions& dir_fsync_options) override { 26629: return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options); 26629: } 26629: 26629: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 26629: return target_->Close(options, dbg); 26629: } 26629: 26629: size_t GetUniqueId(char* id, size_t max_size) const override { 26629: return target_->GetUniqueId(id, max_size); 26629: } 26629: 26629: private: 26629: std::unique_ptr guard_; 26629: FSDirectory* target_; 26629: }; 26629: 26629: 26629: extern IOStatus WriteStringToFile(FileSystem* fs, const Slice& data, 26629: const std::string& fname, 26629: bool should_sync = false); 26629: 26629: 26629: extern IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 26629: std::string* data); 26629: 26629: } 26629: # 22 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: # 23 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: inline size_t TruncateToPageBoundary(size_t page_size, size_t s) { 26629: s -= (s & (page_size - 1)); 26629: 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: (static_cast ( 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: (s % page_size) == 0 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: "(s % page_size) == 0" 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: , "./util/aligned_buffer.h", 25, __extension__ __PRETTY_FUNCTION__)) 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: ; 26629: return s; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: inline size_t Roundup(size_t x, size_t y) { 26629: return ((x + y - 1) / y) * y; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: inline size_t Rounddown(size_t x, size_t y) { return (x / y) * y; } 26629: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: class AlignedBuffer { 26629: size_t alignment_; 26629: std::unique_ptr buf_; 26629: size_t capacity_; 26629: size_t cursize_; 26629: char* bufstart_; 26629: 26629: public: 26629: AlignedBuffer() 26629: : alignment_(), 26629: capacity_(0), 26629: cursize_(0), 26629: bufstart_(nullptr) { 26629: } 26629: 26629: AlignedBuffer(AlignedBuffer&& o) noexcept { *this = std::move(o); } 26629: 26629: AlignedBuffer& operator=(AlignedBuffer&& o) noexcept { 26629: alignment_ = std::move(o.alignment_); 26629: buf_ = std::move(o.buf_); 26629: capacity_ = std::move(o.capacity_); 26629: cursize_ = std::move(o.cursize_); 26629: bufstart_ = std::move(o.bufstart_); 26629: return *this; 26629: } 26629: 26629: AlignedBuffer(const AlignedBuffer&) = delete; 26629: 26629: AlignedBuffer& operator=(const AlignedBuffer&) = delete; 26629: 26629: static bool isAligned(const void* ptr, size_t alignment) { 26629: return reinterpret_cast(ptr) % alignment == 0; 26629: } 26629: 26629: static bool isAligned(size_t n, size_t alignment) { 26629: return n % alignment == 0; 26629: } 26629: 26629: size_t Alignment() const { 26629: return alignment_; 26629: } 26629: 26629: size_t Capacity() const { 26629: return capacity_; 26629: } 26629: 26629: size_t CurrentSize() const { 26629: return cursize_; 26629: } 26629: 26629: const char* BufferStart() const { 26629: return bufstart_; 26629: } 26629: 26629: char* BufferStart() { return bufstart_; } 26629: 26629: void Clear() { 26629: cursize_ = 0; 26629: } 26629: 26629: char* Release() { 26629: cursize_ = 0; 26629: capacity_ = 0; 26629: bufstart_ = nullptr; 26629: return buf_.release(); 26629: } 26629: 26629: void Alignment(size_t alignment) { 26629: 26629: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: (static_cast ( 26629: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: alignment > 0 26629: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: "alignment > 0" 26629: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: , "./util/aligned_buffer.h", 125, __extension__ __PRETTY_FUNCTION__)) 26629: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: ; 26629: 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: (static_cast ( 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: (alignment & (alignment - 1)) == 0 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: "(alignment & (alignment - 1)) == 0" 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: , "./util/aligned_buffer.h", 126, __extension__ __PRETTY_FUNCTION__)) 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: ; 26629: alignment_ = alignment; 26629: } 26629: # 145 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: void AllocateNewBuffer(size_t requested_capacity, bool copy_data = false, 26629: uint64_t copy_offset = 0, size_t copy_len = 0) { 26629: 26629: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: (static_cast ( 26629: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: alignment_ > 0 26629: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: "alignment_ > 0" 26629: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: , "./util/aligned_buffer.h", 147, __extension__ __PRETTY_FUNCTION__)) 26629: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: ; 26629: 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: (static_cast ( 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: (alignment_ & (alignment_ - 1)) == 0 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: "(alignment_ & (alignment_ - 1)) == 0" 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: , "./util/aligned_buffer.h", 148, __extension__ __PRETTY_FUNCTION__)) 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: ; 26629: 26629: copy_len = copy_len > 0 ? copy_len : cursize_; 26629: if (copy_data && requested_capacity < copy_len) { 26629: 26629: 26629: return; 26629: } 26629: 26629: size_t new_capacity = Roundup(requested_capacity, alignment_); 26629: char* new_buf = new char[new_capacity + alignment_]; 26629: char* new_bufstart = reinterpret_cast( 26629: (reinterpret_cast(new_buf) + (alignment_ - 1)) & 26629: ~static_cast(alignment_ - 1)); 26629: 26629: if (copy_data) { 26629: 26629: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: (static_cast ( 26629: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_ 26629: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: "bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_" 26629: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: , "./util/aligned_buffer.h", 164, __extension__ __PRETTY_FUNCTION__)) 26629: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: ; 26629: memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); 26629: cursize_ = copy_len; 26629: } else { 26629: cursize_ = 0; 26629: } 26629: 26629: bufstart_ = new_bufstart; 26629: capacity_ = new_capacity; 26629: buf_.reset(new_buf); 26629: } 26629: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: size_t Append(const char* src, size_t append_size) { 26629: size_t buffer_remaining = capacity_ - cursize_; 26629: size_t to_copy = std::min(append_size, buffer_remaining); 26629: 26629: if (to_copy > 0) { 26629: memcpy(bufstart_ + cursize_, src, to_copy); 26629: cursize_ += to_copy; 26629: } 26629: return to_copy; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t Read(char* dest, size_t offset, size_t read_size) const { 26629: 26629: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: (static_cast ( 26629: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: offset < cursize_ 26629: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: "offset < cursize_" 26629: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: , "./util/aligned_buffer.h", 202, __extension__ __PRETTY_FUNCTION__)) 26629: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: ; 26629: 26629: size_t to_read = 0; 26629: if(offset < cursize_) { 26629: to_read = std::min(cursize_ - offset, read_size); 26629: } 26629: if (to_read > 0) { 26629: memcpy(dest, bufstart_ + offset, to_read); 26629: } 26629: return to_read; 26629: } 26629: 26629: 26629: void PadToAlignmentWith(int padding) { 26629: size_t total_size = Roundup(cursize_, alignment_); 26629: size_t pad_size = total_size - cursize_; 26629: 26629: if (pad_size > 0) { 26629: 26629: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: (static_cast ( 26629: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: (pad_size + cursize_) <= capacity_ 26629: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: "(pad_size + cursize_) <= capacity_" 26629: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: , "./util/aligned_buffer.h", 220, __extension__ __PRETTY_FUNCTION__)) 26629: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: ; 26629: memset(bufstart_ + cursize_, padding, pad_size); 26629: cursize_ += pad_size; 26629: } 26629: } 26629: 26629: void PadWith(size_t pad_size, int padding) { 26629: 26629: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: (static_cast ( 26629: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: (pad_size + cursize_) <= capacity_ 26629: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: "(pad_size + cursize_) <= capacity_" 26629: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 26629: , "./util/aligned_buffer.h", 227, __extension__ __PRETTY_FUNCTION__)) 26629: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 26629: ; 26629: memset(bufstart_ + cursize_, padding, pad_size); 26629: cursize_ += pad_size; 26629: } 26629: 26629: 26629: void RefitTail(size_t tail_offset, size_t tail_size) { 26629: if (tail_size > 0) { 26629: memmove(bufstart_, bufstart_ + tail_offset, tail_size); 26629: } 26629: cursize_ = tail_size; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: char* Destination() { 26629: return bufstart_ + cursize_; 26629: } 26629: 26629: void Size(size_t cursize) { 26629: cursize_ = cursize; 26629: } 26629: }; 26629: } 26629: # 24 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cassert" 1 3 26629: # 41 "/usr/include/c++/12/cassert" 3 26629: 26629: # 42 "/usr/include/c++/12/cassert" 3 26629: 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 45 "/usr/include/c++/12/cassert" 2 3 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 2 26629: 26629: # 1 "/usr/include/c++/12/iterator" 1 3 26629: # 58 "/usr/include/c++/12/iterator" 3 26629: 26629: # 59 "/usr/include/c++/12/iterator" 3 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/stream_iterator.h" 1 3 26629: # 33 "/usr/include/c++/12/bits/stream_iterator.h" 3 26629: 26629: # 34 "/usr/include/c++/12/bits/stream_iterator.h" 3 26629: 26629: 26629: 26629: 26629: # 37 "/usr/include/c++/12/bits/stream_iterator.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: #pragma GCC diagnostic push 26629: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26629: 26629: 26629: template, typename _Dist = ptrdiff_t> 26629: class istream_iterator 26629: : public iterator 26629: { 26629: public: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: typedef basic_istream<_CharT, _Traits> istream_type; 26629: 26629: private: 26629: istream_type* _M_stream; 26629: _Tp _M_value; 26629: 26629: 26629: 26629: bool _M_ok; 26629: 26629: public: 26629: 26629: constexpr istream_iterator() 26629: noexcept(is_nothrow_default_constructible<_Tp>::value) 26629: : _M_stream(0), _M_value(), _M_ok(false) {} 26629: 26629: 26629: istream_iterator(istream_type& __s) 26629: : _M_stream(std::__addressof(__s)), _M_ok(true) 26629: { _M_read(); } 26629: 26629: istream_iterator(const istream_iterator& __obj) 26629: noexcept(is_nothrow_copy_constructible<_Tp>::value) 26629: : _M_stream(__obj._M_stream), _M_value(__obj._M_value), 26629: _M_ok(__obj._M_ok) 26629: { } 26629: # 94 "/usr/include/c++/12/bits/stream_iterator.h" 3 26629: istream_iterator& operator=(const istream_iterator&) = default; 26629: ~istream_iterator() = default; 26629: 26629: 26629: [[__nodiscard__]] 26629: const _Tp& 26629: operator*() const noexcept 26629: { 26629: 26629: 26629: ; 26629: return _M_value; 26629: } 26629: 26629: [[__nodiscard__]] 26629: const _Tp* 26629: operator->() const noexcept 26629: { return std::__addressof((operator*())); } 26629: 26629: istream_iterator& 26629: operator++() 26629: { 26629: 26629: 26629: ; 26629: _M_read(); 26629: return *this; 26629: } 26629: 26629: istream_iterator 26629: operator++(int) 26629: { 26629: 26629: 26629: ; 26629: istream_iterator __tmp = *this; 26629: _M_read(); 26629: return __tmp; 26629: } 26629: 26629: private: 26629: bool 26629: _M_equal(const istream_iterator& __x) const noexcept 26629: { 26629: 26629: 26629: return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); 26629: } 26629: 26629: void 26629: _M_read() 26629: { 26629: if (_M_stream && !(*_M_stream >> _M_value)) 26629: { 26629: _M_stream = 0; 26629: _M_ok = false; 26629: } 26629: } 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator==(const istream_iterator& __x, const istream_iterator& __y) 26629: noexcept 26629: { return __x._M_equal(__y); } 26629: 26629: 26629: 26629: 26629: [[__nodiscard__]] 26629: friend bool 26629: operator!=(const istream_iterator& __x, const istream_iterator& __y) 26629: noexcept 26629: { return !__x._M_equal(__y); } 26629: # 177 "/usr/include/c++/12/bits/stream_iterator.h" 3 26629: }; 26629: # 190 "/usr/include/c++/12/bits/stream_iterator.h" 3 26629: template > 26629: class ostream_iterator 26629: : public iterator 26629: { 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: typedef basic_ostream<_CharT, _Traits> ostream_type; 26629: 26629: 26629: private: 26629: ostream_type* _M_stream; 26629: const _CharT* _M_string; 26629: 26629: public: 26629: 26629: ostream_iterator(ostream_type& __s) noexcept 26629: : _M_stream(std::__addressof(__s)), _M_string(0) {} 26629: # 225 "/usr/include/c++/12/bits/stream_iterator.h" 3 26629: ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept 26629: : _M_stream(std::__addressof(__s)), _M_string(__c) { } 26629: 26629: 26629: ostream_iterator(const ostream_iterator& __obj) noexcept 26629: : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } 26629: 26629: 26629: ostream_iterator& operator=(const ostream_iterator&) = default; 26629: 26629: 26629: 26629: 26629: ostream_iterator& 26629: operator=(const _Tp& __value) 26629: { 26629: 26629: 26629: ; 26629: *_M_stream << __value; 26629: if (_M_string) 26629: *_M_stream << _M_string; 26629: return *this; 26629: } 26629: 26629: [[__nodiscard__]] 26629: ostream_iterator& 26629: operator*() noexcept 26629: { return *this; } 26629: 26629: ostream_iterator& 26629: operator++() noexcept 26629: { return *this; } 26629: 26629: ostream_iterator& 26629: operator++(int) noexcept 26629: { return *this; } 26629: }; 26629: #pragma GCC diagnostic pop 26629: 26629: 26629: 26629: 26629: } 26629: # 66 "/usr/include/c++/12/iterator" 2 3 26629: # 11 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 2 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/lang.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 52 "/build/reproducible-path/rocksdb-7.8.3/port/lang.h" 26629: 26629: # 52 "/build/reproducible-path/rocksdb-7.8.3/port/lang.h" 26629: constexpr bool kMustFreeHeapAllocations = false; 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: # 51 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: template 26629: class autovector { 26629: public: 26629: 26629: using value_type = T; 26629: using difference_type = typename std::vector::difference_type; 26629: using size_type = typename std::vector::size_type; 26629: using reference = value_type&; 26629: using const_reference = const value_type&; 26629: using pointer = value_type*; 26629: using const_pointer = const value_type*; 26629: 26629: 26629: template 26629: class iterator_impl { 26629: public: 26629: 26629: using self_type = iterator_impl; 26629: using value_type = TValueType; 26629: using reference = TValueType&; 26629: using pointer = TValueType*; 26629: using difference_type = typename TAutoVector::difference_type; 26629: using iterator_category = std::random_access_iterator_tag; 26629: 26629: iterator_impl(TAutoVector* vect, size_t index) 26629: : vect_(vect), index_(index) {}; 26629: iterator_impl(const iterator_impl&) = default; 26629: ~iterator_impl() {} 26629: iterator_impl& operator=(const iterator_impl&) = default; 26629: 26629: 26629: 26629: self_type& operator++() { 26629: ++index_; 26629: return *this; 26629: } 26629: 26629: 26629: self_type operator++(int) { 26629: auto old = *this; 26629: ++index_; 26629: return old; 26629: } 26629: 26629: 26629: self_type& operator--() { 26629: --index_; 26629: return *this; 26629: } 26629: 26629: 26629: self_type operator--(int) { 26629: auto old = *this; 26629: --index_; 26629: return old; 26629: } 26629: 26629: self_type operator-(difference_type len) const { 26629: return self_type(vect_, index_ - len); 26629: } 26629: 26629: difference_type operator-(const self_type& other) const { 26629: 26629: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: vect_ == other.vect_ 26629: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "vect_ == other.vect_" 26629: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 113, __extension__ __PRETTY_FUNCTION__)) 26629: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return index_ - other.index_; 26629: } 26629: 26629: self_type operator+(difference_type len) const { 26629: return self_type(vect_, index_ + len); 26629: } 26629: 26629: self_type& operator+=(difference_type len) { 26629: index_ += len; 26629: return *this; 26629: } 26629: 26629: self_type& operator-=(difference_type len) { 26629: index_ -= len; 26629: return *this; 26629: } 26629: 26629: 26629: reference operator*() const { 26629: 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: vect_->size() >= index_ 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "vect_->size() >= index_" 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 133, __extension__ __PRETTY_FUNCTION__)) 26629: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return (*vect_)[index_]; 26629: } 26629: 26629: pointer operator->() const { 26629: 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: vect_->size() >= index_ 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "vect_->size() >= index_" 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 138, __extension__ __PRETTY_FUNCTION__)) 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return &(*vect_)[index_]; 26629: } 26629: 26629: reference operator[](difference_type len) const { 26629: return *(*this + len); 26629: } 26629: 26629: 26629: bool operator==(const self_type& other) const { 26629: 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: vect_ == other.vect_ 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "vect_ == other.vect_" 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 148, __extension__ __PRETTY_FUNCTION__)) 26629: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return index_ == other.index_; 26629: } 26629: 26629: bool operator!=(const self_type& other) const { return !(*this == other); } 26629: 26629: bool operator>(const self_type& other) const { 26629: 26629: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: vect_ == other.vect_ 26629: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "vect_ == other.vect_" 26629: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 155, __extension__ __PRETTY_FUNCTION__)) 26629: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return index_ > other.index_; 26629: } 26629: 26629: bool operator<(const self_type& other) const { 26629: 26629: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: vect_ == other.vect_ 26629: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "vect_ == other.vect_" 26629: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 160, __extension__ __PRETTY_FUNCTION__)) 26629: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return index_ < other.index_; 26629: } 26629: 26629: bool operator>=(const self_type& other) const { 26629: 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: vect_ == other.vect_ 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "vect_ == other.vect_" 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 165, __extension__ __PRETTY_FUNCTION__)) 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return index_ >= other.index_; 26629: } 26629: 26629: bool operator<=(const self_type& other) const { 26629: 26629: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: vect_ == other.vect_ 26629: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "vect_ == other.vect_" 26629: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 170, __extension__ __PRETTY_FUNCTION__)) 26629: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return index_ <= other.index_; 26629: } 26629: 26629: private: 26629: TAutoVector* vect_ = nullptr; 26629: size_t index_ = 0; 26629: }; 26629: 26629: using iterator = iterator_impl; 26629: using const_iterator = iterator_impl; 26629: using reverse_iterator = std::reverse_iterator; 26629: using const_reverse_iterator = std::reverse_iterator; 26629: 26629: autovector() : values_(reinterpret_cast(buf_)) {} 26629: 26629: autovector(std::initializer_list init_list) 26629: : values_(reinterpret_cast(buf_)) { 26629: for (const T& item : init_list) { 26629: push_back(item); 26629: } 26629: } 26629: 26629: ~autovector() { clear(); } 26629: 26629: 26629: 26629: bool only_in_stack() const { 26629: 26629: return vect_.capacity() == 0; 26629: } 26629: 26629: size_type size() const { return num_stack_items_ + vect_.size(); } 26629: 26629: 26629: 26629: void resize(size_type n) { 26629: if (n > kSize) { 26629: vect_.resize(n - kSize); 26629: while (num_stack_items_ < kSize) { 26629: new ((void*)(&values_[num_stack_items_++])) value_type(); 26629: } 26629: num_stack_items_ = kSize; 26629: } else { 26629: vect_.clear(); 26629: while (num_stack_items_ < n) { 26629: new ((void*)(&values_[num_stack_items_++])) value_type(); 26629: } 26629: while (num_stack_items_ > n) { 26629: values_[--num_stack_items_].~value_type(); 26629: } 26629: } 26629: } 26629: 26629: bool empty() const { return size() == 0; } 26629: 26629: size_type capacity() const { return kSize + vect_.capacity(); } 26629: 26629: void reserve(size_t cap) { 26629: if (cap > kSize) { 26629: vect_.reserve(cap - kSize); 26629: } 26629: 26629: 26629: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: cap <= capacity() 26629: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "cap <= capacity()" 26629: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 233, __extension__ __PRETTY_FUNCTION__)) 26629: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: } 26629: 26629: const_reference operator[](size_type n) const { 26629: 26629: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: n < size() 26629: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "n < size()" 26629: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 237, __extension__ __PRETTY_FUNCTION__)) 26629: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: if (n < kSize) { 26629: return values_[n]; 26629: } 26629: return vect_[n - kSize]; 26629: } 26629: 26629: reference operator[](size_type n) { 26629: 26629: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: n < size() 26629: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "n < size()" 26629: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 245, __extension__ __PRETTY_FUNCTION__)) 26629: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: if (n < kSize) { 26629: return values_[n]; 26629: } 26629: return vect_[n - kSize]; 26629: } 26629: 26629: const_reference at(size_type n) const { 26629: 26629: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: n < size() 26629: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "n < size()" 26629: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 253, __extension__ __PRETTY_FUNCTION__)) 26629: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return (*this)[n]; 26629: } 26629: 26629: reference at(size_type n) { 26629: 26629: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: n < size() 26629: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "n < size()" 26629: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 258, __extension__ __PRETTY_FUNCTION__)) 26629: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return (*this)[n]; 26629: } 26629: 26629: reference front() { 26629: 26629: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: !empty() 26629: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "!empty()" 26629: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 263, __extension__ __PRETTY_FUNCTION__)) 26629: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return *begin(); 26629: } 26629: 26629: const_reference front() const { 26629: 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: !empty() 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "!empty()" 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 268, __extension__ __PRETTY_FUNCTION__)) 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return *begin(); 26629: } 26629: 26629: reference back() { 26629: 26629: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: !empty() 26629: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "!empty()" 26629: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 273, __extension__ __PRETTY_FUNCTION__)) 26629: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return *(end() - 1); 26629: } 26629: 26629: const_reference back() const { 26629: 26629: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: !empty() 26629: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "!empty()" 26629: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 278, __extension__ __PRETTY_FUNCTION__)) 26629: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: return *(end() - 1); 26629: } 26629: 26629: 26629: void push_back(T&& item) { 26629: if (num_stack_items_ < kSize) { 26629: new ((void*)(&values_[num_stack_items_])) value_type(); 26629: values_[num_stack_items_++] = std::move(item); 26629: } else { 26629: vect_.push_back(item); 26629: } 26629: } 26629: 26629: void push_back(const T& item) { 26629: if (num_stack_items_ < kSize) { 26629: new ((void*)(&values_[num_stack_items_])) value_type(); 26629: values_[num_stack_items_++] = item; 26629: } else { 26629: vect_.push_back(item); 26629: } 26629: } 26629: 26629: template 26629: # 312 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: void emplace_back(Args&&... args) { 26629: if (num_stack_items_ < kSize) { 26629: new ((void*)(&values_[num_stack_items_++])) 26629: value_type(std::forward(args)...); 26629: } else { 26629: vect_.emplace_back(std::forward(args)...); 26629: } 26629: } 26629: 26629: 26629: 26629: void pop_back() { 26629: 26629: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: (static_cast ( 26629: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: !empty() 26629: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: "!empty()" 26629: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 26629: , "./util/autovector.h", 324, __extension__ __PRETTY_FUNCTION__)) 26629: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 26629: ; 26629: if (!vect_.empty()) { 26629: vect_.pop_back(); 26629: } else { 26629: values_[--num_stack_items_].~value_type(); 26629: } 26629: } 26629: 26629: void clear() { 26629: while (num_stack_items_ > 0) { 26629: values_[--num_stack_items_].~value_type(); 26629: } 26629: vect_.clear(); 26629: } 26629: 26629: 26629: autovector& assign(const autovector& other); 26629: 26629: autovector(const autovector& other) { assign(other); } 26629: 26629: autovector& operator=(const autovector& other) { return assign(other); } 26629: 26629: autovector(autovector&& other) noexcept { *this = std::move(other); } 26629: autovector& operator=(autovector&& other); 26629: 26629: 26629: iterator begin() { return iterator(this, 0); } 26629: 26629: const_iterator begin() const { return const_iterator(this, 0); } 26629: 26629: iterator end() { return iterator(this, this->size()); } 26629: 26629: const_iterator end() const { return const_iterator(this, this->size()); } 26629: 26629: reverse_iterator rbegin() { return reverse_iterator(end()); } 26629: 26629: const_reverse_iterator rbegin() const { 26629: return const_reverse_iterator(end()); 26629: } 26629: 26629: reverse_iterator rend() { return reverse_iterator(begin()); } 26629: 26629: const_reverse_iterator rend() const { 26629: return const_reverse_iterator(begin()); 26629: } 26629: 26629: private: 26629: size_type num_stack_items_ = 0; 26629: alignas(alignof( 26629: value_type)) char buf_[kSize * 26629: sizeof(value_type)]; 26629: pointer values_; 26629: 26629: std::vector vect_; 26629: }; 26629: 26629: template 26629: autovector& autovector::assign( 26629: const autovector& other) { 26629: values_ = reinterpret_cast(buf_); 26629: 26629: vect_.assign(other.vect_.begin(), other.vect_.end()); 26629: 26629: 26629: num_stack_items_ = other.num_stack_items_; 26629: std::copy(other.values_, other.values_ + num_stack_items_, values_); 26629: 26629: return *this; 26629: } 26629: 26629: template 26629: autovector& autovector::operator=( 26629: autovector&& other) { 26629: values_ = reinterpret_cast(buf_); 26629: vect_ = std::move(other.vect_); 26629: size_t n = other.num_stack_items_; 26629: num_stack_items_ = n; 26629: other.num_stack_items_ = 0; 26629: for (size_t i = 0; i < n; ++i) { 26629: values_[i] = std::move(other.values_[i]); 26629: } 26629: return *this; 26629: } 26629: 26629: 26629: } 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: struct IOOptions; 26629: class RandomAccessFileReader; 26629: 26629: struct BufferInfo { 26629: AlignedBuffer buffer_; 26629: 26629: uint64_t offset_ = 0; 26629: 26629: 26629: 26629: size_t async_req_len_ = 0; 26629: 26629: 26629: 26629: bool async_read_in_progress_ = false; 26629: 26629: 26629: 26629: void* io_handle_ = nullptr; 26629: 26629: IOHandleDeleter del_fn_ = nullptr; 26629: 26629: 26629: uint32_t pos_ = 0; 26629: }; 26629: 26629: 26629: class FilePrefetchBuffer { 26629: public: 26629: # 81 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: FilePrefetchBuffer(size_t readahead_size = 0, size_t max_readahead_size = 0, 26629: bool enable = true, bool track_min_offset = false, 26629: bool implicit_auto_readahead = false, 26629: uint64_t num_file_reads = 0, 26629: uint64_t num_file_reads_for_auto_readahead = 0, 26629: FileSystem* fs = nullptr, SystemClock* clock = nullptr, 26629: Statistics* stats = nullptr) 26629: : curr_(0), 26629: readahead_size_(readahead_size), 26629: initial_auto_readahead_size_(readahead_size), 26629: max_readahead_size_(max_readahead_size), 26629: min_offset_read_(std::numeric_limits::max()), 26629: enable_(enable), 26629: track_min_offset_(track_min_offset), 26629: implicit_auto_readahead_(implicit_auto_readahead), 26629: prev_offset_(0), 26629: prev_len_(0), 26629: num_file_reads_for_auto_readahead_(num_file_reads_for_auto_readahead), 26629: num_file_reads_(num_file_reads), 26629: explicit_prefetch_submitted_(false), 26629: fs_(fs), 26629: clock_(clock), 26629: stats_(stats) { 26629: 26629: # 104 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 26629: (static_cast ( 26629: # 104 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: (num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0) 26629: # 104 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 104 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: "(num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0)" 26629: # 104 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 26629: , "./file/file_prefetch_buffer.h", 104, __extension__ __PRETTY_FUNCTION__)) 26629: 26629: # 105 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: ; 26629: 26629: 26629: 26629: bufs_.resize(3); 26629: for (uint32_t i = 0; i < 2; i++) { 26629: bufs_[i].pos_ = i; 26629: } 26629: } 26629: 26629: ~FilePrefetchBuffer() { 26629: 26629: if (fs_ != nullptr) { 26629: std::vector handles; 26629: for (uint32_t i = 0; i < 2; i++) { 26629: if (bufs_[i].async_read_in_progress_ && 26629: bufs_[i].io_handle_ != nullptr) { 26629: handles.emplace_back(bufs_[i].io_handle_); 26629: } 26629: } 26629: if (!handles.empty()) { 26629: StopWatch sw(clock_, stats_, ASYNC_PREFETCH_ABORT_MICROS); 26629: Status s = fs_->AbortIO(handles); 26629: 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 26629: (static_cast ( 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: s.ok() 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: "s.ok()" 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 26629: , "./file/file_prefetch_buffer.h", 128, __extension__ __PRETTY_FUNCTION__)) 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: ; 26629: } 26629: } 26629: 26629: 26629: uint64_t bytes_discarded = 0; 26629: 26629: for (int i = 0; i < 2; i++) { 26629: int first = i; 26629: int second = i ^ 1; 26629: 26629: if (DoesBufferContainData(first)) { 26629: 26629: 26629: if (prev_offset_ >= bufs_[first].offset_ && 26629: prev_offset_ + prev_len_ < 26629: bufs_[first].offset_ + bufs_[first].buffer_.CurrentSize()) { 26629: bytes_discarded += bufs_[first].buffer_.CurrentSize() - 26629: (prev_offset_ + prev_len_ - bufs_[first].offset_); 26629: } 26629: 26629: 26629: else if (prev_offset_ < bufs_[first].offset_ && 26629: !DoesBufferContainData(second)) { 26629: 26629: 26629: if (prev_offset_ + prev_len_ <= bufs_[first].offset_) { 26629: bytes_discarded += bufs_[first].buffer_.CurrentSize(); 26629: } 26629: 26629: 26629: else if (prev_offset_ + prev_len_ > bufs_[first].offset_ && 26629: bufs_[first].offset_ + bufs_[first].buffer_.CurrentSize() == 26629: bufs_[second].offset_) { 26629: bytes_discarded += bufs_[first].buffer_.CurrentSize() - 26629: ( prev_len_ - 26629: (bufs_[first].offset_ - prev_offset_)); 26629: } 26629: } 26629: } 26629: } 26629: 26629: for (uint32_t i = 0; i < 2; i++) { 26629: 26629: DestroyAndClearIOHandle(i); 26629: } 26629: RecordInHistogram(stats_, PREFETCHED_BYTES_DISCARDED, bytes_discarded); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: Status Prefetch(const IOOptions& opts, RandomAccessFileReader* reader, 26629: uint64_t offset, size_t n, 26629: Env::IOPriority rate_limiter_priority); 26629: # 197 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: Status PrefetchAsync(const IOOptions& opts, RandomAccessFileReader* reader, 26629: uint64_t offset, size_t n, Slice* result); 26629: # 215 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: bool TryReadFromCache(const IOOptions& opts, RandomAccessFileReader* reader, 26629: uint64_t offset, size_t n, Slice* result, Status* s, 26629: Env::IOPriority rate_limiter_priority, 26629: bool for_compaction = false); 26629: 26629: bool TryReadFromCacheAsync(const IOOptions& opts, 26629: RandomAccessFileReader* reader, uint64_t offset, 26629: size_t n, Slice* result, Status* status, 26629: Env::IOPriority rate_limiter_priority); 26629: 26629: 26629: 26629: size_t min_offset_read() const { return min_offset_read_; } 26629: 26629: 26629: void UpdateReadPattern(const uint64_t& offset, const size_t& len, 26629: bool decrease_readaheadsize) { 26629: if (decrease_readaheadsize) { 26629: 26629: 26629: 26629: DecreaseReadAheadIfEligible(offset, len); 26629: } 26629: prev_offset_ = offset; 26629: prev_len_ = len; 26629: explicit_prefetch_submitted_ = false; 26629: } 26629: 26629: void GetReadaheadState(ReadaheadFileInfo::ReadaheadInfo* readahead_info) { 26629: readahead_info->readahead_size = readahead_size_; 26629: readahead_info->num_file_reads = num_file_reads_; 26629: } 26629: 26629: void DecreaseReadAheadIfEligible(uint64_t offset, size_t size, 26629: size_t value = 8 * 1024) { 26629: # 259 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: size_t curr_size = bufs_[curr_].async_read_in_progress_ 26629: ? bufs_[curr_].async_req_len_ 26629: : bufs_[curr_].buffer_.CurrentSize(); 26629: if (implicit_auto_readahead_ && readahead_size_ > 0) { 26629: if ((offset + size > bufs_[curr_].offset_ + curr_size) && 26629: IsBlockSequential(offset) && 26629: (num_file_reads_ + 1 > num_file_reads_for_auto_readahead_)) { 26629: readahead_size_ = 26629: std::max(initial_auto_readahead_size_, 26629: (readahead_size_ >= value ? readahead_size_ - value : 0)); 26629: } 26629: } 26629: } 26629: 26629: 26629: void PrefetchAsyncCallback(const FSReadRequest& req, void* cb_arg); 26629: 26629: private: 26629: 26629: 26629: 26629: void CalculateOffsetAndLen(size_t alignment, uint64_t offset, 26629: size_t roundup_len, uint32_t index, 26629: bool refit_tail, uint64_t& chunk_len); 26629: 26629: void AbortIOIfNeeded(uint64_t offset); 26629: 26629: void AbortAllIOs(); 26629: 26629: void UpdateBuffersIfNeeded(uint64_t offset); 26629: 26629: 26629: 26629: 26629: void PollAndUpdateBuffersIfNeeded(uint64_t offset); 26629: 26629: Status PrefetchAsyncInternal(const IOOptions& opts, 26629: RandomAccessFileReader* reader, uint64_t offset, 26629: size_t length, size_t readahead_size, 26629: Env::IOPriority rate_limiter_priority, 26629: bool& copy_to_third_buffer); 26629: 26629: Status Read(const IOOptions& opts, RandomAccessFileReader* reader, 26629: Env::IOPriority rate_limiter_priority, uint64_t read_len, 26629: uint64_t chunk_len, uint64_t rounddown_start, uint32_t index); 26629: 26629: Status ReadAsync(const IOOptions& opts, RandomAccessFileReader* reader, 26629: uint64_t read_len, uint64_t rounddown_start, uint32_t index); 26629: 26629: 26629: void CopyDataToBuffer(uint32_t src, uint64_t& offset, size_t& length); 26629: 26629: bool IsBlockSequential(const size_t& offset) { 26629: return (prev_len_ == 0 || (prev_offset_ + prev_len_ == offset)); 26629: } 26629: 26629: 26629: void ResetValues() { 26629: num_file_reads_ = 1; 26629: readahead_size_ = initial_auto_readahead_size_; 26629: } 26629: 26629: 26629: bool IsEligibleForPrefetch(uint64_t offset, size_t n) { 26629: 26629: 26629: if (!IsBlockSequential(offset)) { 26629: UpdateReadPattern(offset, n, false ); 26629: ResetValues(); 26629: return false; 26629: } 26629: num_file_reads_++; 26629: 26629: 26629: 26629: 26629: if (explicit_prefetch_submitted_) { 26629: return true; 26629: } 26629: if (num_file_reads_ <= num_file_reads_for_auto_readahead_) { 26629: UpdateReadPattern(offset, n, false ); 26629: return false; 26629: } 26629: return true; 26629: } 26629: 26629: 26629: bool IsDataBlockInBuffer(uint64_t offset, size_t length, uint32_t index) { 26629: return (offset >= bufs_[index].offset_ && 26629: offset + length <= 26629: bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 26629: } 26629: bool IsOffsetInBuffer(uint64_t offset, uint32_t index) { 26629: return (offset >= bufs_[index].offset_ && 26629: offset < bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 26629: } 26629: bool DoesBufferContainData(uint32_t index) { 26629: return bufs_[index].buffer_.CurrentSize() > 0; 26629: } 26629: bool IsBufferOutdated(uint64_t offset, uint32_t index) { 26629: return ( 26629: !bufs_[index].async_read_in_progress_ && DoesBufferContainData(index) && 26629: offset >= bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 26629: } 26629: bool IsBufferOutdatedWithAsyncProgress(uint64_t offset, uint32_t index) { 26629: return (bufs_[index].async_read_in_progress_ && 26629: bufs_[index].io_handle_ != nullptr && 26629: offset >= bufs_[index].offset_ + bufs_[index].async_req_len_); 26629: } 26629: bool IsOffsetInBufferWithAsyncProgress(uint64_t offset, uint32_t index) { 26629: return (bufs_[index].async_read_in_progress_ && 26629: offset >= bufs_[index].offset_ && 26629: offset < bufs_[index].offset_ + bufs_[index].async_req_len_); 26629: } 26629: 26629: bool IsSecondBuffEligibleForPrefetching() { 26629: uint32_t second = curr_ ^ 1; 26629: if (bufs_[second].async_read_in_progress_) { 26629: return false; 26629: } 26629: 26629: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 26629: (static_cast ( 26629: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: !bufs_[curr_].async_read_in_progress_ 26629: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: "!bufs_[curr_].async_read_in_progress_" 26629: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 26629: , "./file/file_prefetch_buffer.h", 379, __extension__ __PRETTY_FUNCTION__)) 26629: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 26629: ; 26629: 26629: if (DoesBufferContainData(curr_) && DoesBufferContainData(second) && 26629: (bufs_[curr_].offset_ + bufs_[curr_].buffer_.CurrentSize() == 26629: bufs_[second].offset_)) { 26629: return false; 26629: } 26629: bufs_[second].buffer_.Clear(); 26629: return true; 26629: } 26629: 26629: void DestroyAndClearIOHandle(uint32_t index) { 26629: if (bufs_[index].io_handle_ != nullptr && bufs_[index].del_fn_ != nullptr) { 26629: bufs_[index].del_fn_(bufs_[index].io_handle_); 26629: bufs_[index].io_handle_ = nullptr; 26629: bufs_[index].del_fn_ = nullptr; 26629: } 26629: bufs_[index].async_read_in_progress_ = false; 26629: } 26629: 26629: Status HandleOverlappingData(const IOOptions& opts, 26629: RandomAccessFileReader* reader, uint64_t offset, 26629: size_t length, size_t readahead_size, 26629: Env::IOPriority rate_limiter_priority, 26629: bool& copy_to_third_buffer, uint64_t& tmp_offset, 26629: size_t& tmp_length); 26629: 26629: std::vector bufs_; 26629: 26629: 26629: uint32_t curr_; 26629: 26629: size_t readahead_size_; 26629: size_t initial_auto_readahead_size_; 26629: 26629: 26629: size_t max_readahead_size_; 26629: 26629: 26629: size_t min_offset_read_; 26629: 26629: 26629: bool enable_; 26629: 26629: 26629: bool track_min_offset_; 26629: 26629: 26629: 26629: bool implicit_auto_readahead_; 26629: uint64_t prev_offset_; 26629: size_t prev_len_; 26629: 26629: 26629: uint64_t num_file_reads_for_auto_readahead_; 26629: uint64_t num_file_reads_; 26629: 26629: 26629: 26629: 26629: 26629: bool explicit_prefetch_submitted_; 26629: 26629: FileSystem* fs_; 26629: SystemClock* clock_; 26629: Statistics* stats_; 26629: }; 26629: } 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/env/file_system_tracer.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/fstream" 1 3 26629: # 36 "/usr/include/c++/12/fstream" 3 26629: 26629: # 37 "/usr/include/c++/12/fstream" 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/bits/codecvt.h" 1 3 26629: # 39 "/usr/include/c++/12/bits/codecvt.h" 3 26629: 26629: # 40 "/usr/include/c++/12/bits/codecvt.h" 3 26629: 26629: 26629: 26629: 26629: 26629: # 44 "/usr/include/c++/12/bits/codecvt.h" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: class codecvt_base 26629: { 26629: public: 26629: enum result 26629: { 26629: ok, 26629: partial, 26629: error, 26629: noconv 26629: }; 26629: }; 26629: # 70 "/usr/include/c++/12/bits/codecvt.h" 3 26629: template 26629: class __codecvt_abstract_base 26629: : public locale::facet, public codecvt_base 26629: { 26629: public: 26629: 26629: typedef codecvt_base::result result; 26629: typedef _InternT intern_type; 26629: typedef _ExternT extern_type; 26629: typedef _StateT state_type; 26629: # 118 "/usr/include/c++/12/bits/codecvt.h" 3 26629: result 26629: out(state_type& __state, const intern_type* __from, 26629: const intern_type* __from_end, const intern_type*& __from_next, 26629: extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const 26629: { 26629: return this->do_out(__state, __from, __from_end, __from_next, 26629: __to, __to_end, __to_next); 26629: } 26629: # 157 "/usr/include/c++/12/bits/codecvt.h" 3 26629: result 26629: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const 26629: { return this->do_unshift(__state, __to,__to_end,__to_next); } 26629: # 198 "/usr/include/c++/12/bits/codecvt.h" 3 26629: result 26629: in(state_type& __state, const extern_type* __from, 26629: const extern_type* __from_end, const extern_type*& __from_next, 26629: intern_type* __to, intern_type* __to_end, 26629: intern_type*& __to_next) const 26629: { 26629: return this->do_in(__state, __from, __from_end, __from_next, 26629: __to, __to_end, __to_next); 26629: } 26629: 26629: int 26629: encoding() const throw() 26629: { return this->do_encoding(); } 26629: 26629: bool 26629: always_noconv() const throw() 26629: { return this->do_always_noconv(); } 26629: 26629: int 26629: length(state_type& __state, const extern_type* __from, 26629: const extern_type* __end, size_t __max) const 26629: { return this->do_length(__state, __from, __end, __max); } 26629: 26629: int 26629: max_length() const throw() 26629: { return this->do_max_length(); } 26629: 26629: protected: 26629: explicit 26629: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 26629: 26629: virtual 26629: ~__codecvt_abstract_base() { } 26629: # 239 "/usr/include/c++/12/bits/codecvt.h" 3 26629: virtual result 26629: do_out(state_type& __state, const intern_type* __from, 26629: const intern_type* __from_end, const intern_type*& __from_next, 26629: extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const = 0; 26629: 26629: virtual result 26629: do_unshift(state_type& __state, extern_type* __to, 26629: extern_type* __to_end, extern_type*& __to_next) const = 0; 26629: 26629: virtual result 26629: do_in(state_type& __state, const extern_type* __from, 26629: const extern_type* __from_end, const extern_type*& __from_next, 26629: intern_type* __to, intern_type* __to_end, 26629: intern_type*& __to_next) const = 0; 26629: 26629: virtual int 26629: do_encoding() const throw() = 0; 26629: 26629: virtual bool 26629: do_always_noconv() const throw() = 0; 26629: 26629: virtual int 26629: do_length(state_type&, const extern_type* __from, 26629: const extern_type* __end, size_t __max) const = 0; 26629: 26629: virtual int 26629: do_max_length() const throw() = 0; 26629: }; 26629: # 276 "/usr/include/c++/12/bits/codecvt.h" 3 26629: template 26629: class codecvt 26629: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 26629: { 26629: public: 26629: 26629: typedef codecvt_base::result result; 26629: typedef _InternT intern_type; 26629: typedef _ExternT extern_type; 26629: typedef _StateT state_type; 26629: 26629: protected: 26629: __c_locale _M_c_locale_codecvt; 26629: 26629: public: 26629: static locale::id id; 26629: 26629: explicit 26629: codecvt(size_t __refs = 0) 26629: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 26629: _M_c_locale_codecvt(0) 26629: { } 26629: 26629: explicit 26629: codecvt(__c_locale __cloc, size_t __refs = 0); 26629: 26629: protected: 26629: virtual 26629: ~codecvt() { } 26629: 26629: virtual result 26629: do_out(state_type& __state, const intern_type* __from, 26629: const intern_type* __from_end, const intern_type*& __from_next, 26629: extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const; 26629: 26629: virtual result 26629: do_unshift(state_type& __state, extern_type* __to, 26629: extern_type* __to_end, extern_type*& __to_next) const; 26629: 26629: virtual result 26629: do_in(state_type& __state, const extern_type* __from, 26629: const extern_type* __from_end, const extern_type*& __from_next, 26629: intern_type* __to, intern_type* __to_end, 26629: intern_type*& __to_next) const; 26629: 26629: virtual int 26629: do_encoding() const throw(); 26629: 26629: virtual bool 26629: do_always_noconv() const throw(); 26629: 26629: virtual int 26629: do_length(state_type&, const extern_type* __from, 26629: const extern_type* __end, size_t __max) const; 26629: 26629: virtual int 26629: do_max_length() const throw(); 26629: }; 26629: 26629: template 26629: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 26629: 26629: 26629: template<> 26629: class codecvt 26629: : public __codecvt_abstract_base 26629: { 26629: friend class messages; 26629: 26629: public: 26629: 26629: typedef char intern_type; 26629: typedef char extern_type; 26629: typedef mbstate_t state_type; 26629: 26629: protected: 26629: __c_locale _M_c_locale_codecvt; 26629: 26629: public: 26629: static locale::id id; 26629: 26629: explicit 26629: codecvt(size_t __refs = 0); 26629: 26629: explicit 26629: codecvt(__c_locale __cloc, size_t __refs = 0); 26629: 26629: protected: 26629: virtual 26629: ~codecvt(); 26629: 26629: virtual result 26629: do_out(state_type& __state, const intern_type* __from, 26629: const intern_type* __from_end, const intern_type*& __from_next, 26629: extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const; 26629: 26629: virtual result 26629: do_unshift(state_type& __state, extern_type* __to, 26629: extern_type* __to_end, extern_type*& __to_next) const; 26629: 26629: virtual result 26629: do_in(state_type& __state, const extern_type* __from, 26629: const extern_type* __from_end, const extern_type*& __from_next, 26629: intern_type* __to, intern_type* __to_end, 26629: intern_type*& __to_next) const; 26629: 26629: virtual int 26629: do_encoding() const throw(); 26629: 26629: virtual bool 26629: do_always_noconv() const throw(); 26629: 26629: virtual int 26629: do_length(state_type&, const extern_type* __from, 26629: const extern_type* __end, size_t __max) const; 26629: 26629: virtual int 26629: do_max_length() const throw(); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: class codecvt 26629: : public __codecvt_abstract_base 26629: { 26629: friend class messages; 26629: 26629: public: 26629: 26629: typedef wchar_t intern_type; 26629: typedef char extern_type; 26629: typedef mbstate_t state_type; 26629: 26629: protected: 26629: __c_locale _M_c_locale_codecvt; 26629: 26629: public: 26629: static locale::id id; 26629: 26629: explicit 26629: codecvt(size_t __refs = 0); 26629: 26629: explicit 26629: codecvt(__c_locale __cloc, size_t __refs = 0); 26629: 26629: protected: 26629: virtual 26629: ~codecvt(); 26629: 26629: virtual result 26629: do_out(state_type& __state, const intern_type* __from, 26629: const intern_type* __from_end, const intern_type*& __from_next, 26629: extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const; 26629: 26629: virtual result 26629: do_unshift(state_type& __state, 26629: extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const; 26629: 26629: virtual result 26629: do_in(state_type& __state, 26629: const extern_type* __from, const extern_type* __from_end, 26629: const extern_type*& __from_next, 26629: intern_type* __to, intern_type* __to_end, 26629: intern_type*& __to_next) const; 26629: 26629: virtual 26629: int do_encoding() const throw(); 26629: 26629: virtual 26629: bool do_always_noconv() const throw(); 26629: 26629: virtual 26629: int do_length(state_type&, const extern_type* __from, 26629: const extern_type* __end, size_t __max) const; 26629: 26629: virtual int 26629: do_max_length() const throw(); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: class codecvt 26629: : public __codecvt_abstract_base 26629: { 26629: public: 26629: 26629: typedef char16_t intern_type; 26629: typedef char extern_type; 26629: typedef mbstate_t state_type; 26629: 26629: public: 26629: static locale::id id; 26629: 26629: explicit 26629: codecvt(size_t __refs = 0) 26629: : __codecvt_abstract_base(__refs) { } 26629: 26629: protected: 26629: virtual 26629: ~codecvt(); 26629: 26629: virtual result 26629: do_out(state_type& __state, const intern_type* __from, 26629: const intern_type* __from_end, const intern_type*& __from_next, 26629: extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const; 26629: 26629: virtual result 26629: do_unshift(state_type& __state, 26629: extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const; 26629: 26629: virtual result 26629: do_in(state_type& __state, 26629: const extern_type* __from, const extern_type* __from_end, 26629: const extern_type*& __from_next, 26629: intern_type* __to, intern_type* __to_end, 26629: intern_type*& __to_next) const; 26629: 26629: virtual 26629: int do_encoding() const throw(); 26629: 26629: virtual 26629: bool do_always_noconv() const throw(); 26629: 26629: virtual 26629: int do_length(state_type&, const extern_type* __from, 26629: const extern_type* __end, size_t __max) const; 26629: 26629: virtual int 26629: do_max_length() const throw(); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: template<> 26629: class codecvt 26629: : public __codecvt_abstract_base 26629: { 26629: public: 26629: 26629: typedef char32_t intern_type; 26629: typedef char extern_type; 26629: typedef mbstate_t state_type; 26629: 26629: public: 26629: static locale::id id; 26629: 26629: explicit 26629: codecvt(size_t __refs = 0) 26629: : __codecvt_abstract_base(__refs) { } 26629: 26629: protected: 26629: virtual 26629: ~codecvt(); 26629: 26629: virtual result 26629: do_out(state_type& __state, const intern_type* __from, 26629: const intern_type* __from_end, const intern_type*& __from_next, 26629: extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const; 26629: 26629: virtual result 26629: do_unshift(state_type& __state, 26629: extern_type* __to, extern_type* __to_end, 26629: extern_type*& __to_next) const; 26629: 26629: virtual result 26629: do_in(state_type& __state, 26629: const extern_type* __from, const extern_type* __from_end, 26629: const extern_type*& __from_next, 26629: intern_type* __to, intern_type* __to_end, 26629: intern_type*& __to_next) const; 26629: 26629: virtual 26629: int do_encoding() const throw(); 26629: 26629: virtual 26629: bool do_always_noconv() const throw(); 26629: 26629: virtual 26629: int do_length(state_type&, const extern_type* __from, 26629: const extern_type* __end, size_t __max) const; 26629: 26629: virtual int 26629: do_max_length() const throw(); 26629: }; 26629: # 698 "/usr/include/c++/12/bits/codecvt.h" 3 26629: template 26629: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 26629: { 26629: public: 26629: explicit 26629: codecvt_byname(const char* __s, size_t __refs = 0) 26629: : codecvt<_InternT, _ExternT, _StateT>(__refs) 26629: { 26629: if (__builtin_strcmp(__s, "C") != 0 26629: && __builtin_strcmp(__s, "POSIX") != 0) 26629: { 26629: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 26629: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 26629: } 26629: } 26629: 26629: 26629: explicit 26629: codecvt_byname(const string& __s, size_t __refs = 0) 26629: : codecvt_byname(__s.c_str(), __refs) { } 26629: 26629: 26629: protected: 26629: virtual 26629: ~codecvt_byname() { } 26629: }; 26629: 26629: 26629: template<> 26629: class codecvt_byname 26629: : public codecvt 26629: { 26629: public: 26629: explicit 26629: codecvt_byname(const char*, size_t __refs = 0) 26629: : codecvt(__refs) { } 26629: 26629: explicit 26629: codecvt_byname(const string& __s, size_t __refs = 0) 26629: : codecvt_byname(__s.c_str(), __refs) { } 26629: 26629: protected: 26629: virtual 26629: ~codecvt_byname() { } 26629: }; 26629: 26629: template<> 26629: class codecvt_byname 26629: : public codecvt 26629: { 26629: public: 26629: explicit 26629: codecvt_byname(const char*, size_t __refs = 0) 26629: : codecvt(__refs) { } 26629: 26629: explicit 26629: codecvt_byname(const string& __s, size_t __refs = 0) 26629: : codecvt_byname(__s.c_str(), __refs) { } 26629: 26629: protected: 26629: virtual 26629: ~codecvt_byname() { } 26629: }; 26629: # 805 "/usr/include/c++/12/bits/codecvt.h" 3 26629: extern template class codecvt_byname; 26629: 26629: extern template 26629: const codecvt& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: 26629: extern template class codecvt_byname; 26629: 26629: extern template 26629: const codecvt& 26629: use_facet >(const locale&); 26629: 26629: extern template 26629: bool 26629: has_facet >(const locale&); 26629: 26629: 26629: 26629: extern template class codecvt_byname; 26629: extern template class codecvt_byname; 26629: # 840 "/usr/include/c++/12/bits/codecvt.h" 3 26629: 26629: } 26629: # 41 "/usr/include/c++/12/fstream" 2 3 26629: # 1 "/usr/include/c++/12/cstdio" 1 3 26629: # 39 "/usr/include/c++/12/cstdio" 3 26629: 26629: # 40 "/usr/include/c++/12/cstdio" 3 26629: # 42 "/usr/include/c++/12/fstream" 2 3 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/basic_file.h" 1 3 26629: # 37 "/usr/include/arm-linux-gnueabihf/c++/12/bits/basic_file.h" 3 26629: 26629: # 38 "/usr/include/arm-linux-gnueabihf/c++/12/bits/basic_file.h" 3 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++io.h" 1 3 26629: # 35 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++io.h" 3 26629: # 1 "/usr/include/c++/12/cstdio" 1 3 26629: # 39 "/usr/include/c++/12/cstdio" 3 26629: 26629: # 40 "/usr/include/c++/12/cstdio" 3 26629: # 36 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++io.h" 2 3 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: typedef __gthread_mutex_t __c_lock; 26629: 26629: 26629: typedef FILE __c_file; 26629: 26629: 26629: } 26629: # 41 "/usr/include/arm-linux-gnueabihf/c++/12/bits/basic_file.h" 2 3 26629: 26629: 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: template 26629: class __basic_file; 26629: 26629: 26629: template<> 26629: class __basic_file 26629: { 26629: 26629: __c_file* _M_cfile; 26629: 26629: 26629: bool _M_cfile_created; 26629: 26629: public: 26629: __basic_file(__c_lock* __lock = 0) throw (); 26629: 26629: 26629: __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept 26629: : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) 26629: { 26629: __rv._M_cfile = nullptr; 26629: __rv._M_cfile_created = false; 26629: } 26629: 26629: __basic_file& operator=(const __basic_file&) = delete; 26629: __basic_file& operator=(__basic_file&&) = delete; 26629: 26629: void 26629: swap(__basic_file& __f) noexcept 26629: { 26629: std::swap(_M_cfile, __f._M_cfile); 26629: std::swap(_M_cfile_created, __f._M_cfile_created); 26629: } 26629: 26629: 26629: __basic_file* 26629: open(const char* __name, ios_base::openmode __mode, int __prot = 0664); 26629: 26629: 26629: 26629: 26629: 26629: 26629: __basic_file* 26629: sys_open(__c_file* __file, ios_base::openmode); 26629: 26629: __basic_file* 26629: sys_open(int __fd, ios_base::openmode __mode) throw (); 26629: 26629: __basic_file* 26629: close(); 26629: 26629: __attribute__ ((__pure__)) bool 26629: is_open() const throw (); 26629: 26629: __attribute__ ((__pure__)) int 26629: fd() throw (); 26629: 26629: __attribute__ ((__pure__)) __c_file* 26629: file() throw (); 26629: 26629: ~__basic_file(); 26629: 26629: streamsize 26629: xsputn(const char* __s, streamsize __n); 26629: 26629: streamsize 26629: xsputn_2(const char* __s1, streamsize __n1, 26629: const char* __s2, streamsize __n2); 26629: 26629: streamsize 26629: xsgetn(char* __s, streamsize __n); 26629: 26629: streamoff 26629: seekoff(streamoff __off, ios_base::seekdir __way) throw (); 26629: 26629: int 26629: sync(); 26629: 26629: streamsize 26629: showmanyc(); 26629: }; 26629: 26629: 26629: } 26629: # 43 "/usr/include/c++/12/fstream" 2 3 26629: # 52 "/usr/include/c++/12/fstream" 3 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: 26629: 26629: template().make_preferred().filename())> 26629: using _If_fs_path = enable_if_t, _Result>; 26629: # 84 "/usr/include/c++/12/fstream" 3 26629: template 26629: class basic_filebuf : public basic_streambuf<_CharT, _Traits> 26629: { 26629: 26629: template 26629: using __chk_state = __and_, 26629: is_copy_constructible<_Tp>, 26629: is_default_constructible<_Tp>>; 26629: 26629: static_assert(__chk_state::value, 26629: "state_type must be CopyAssignable, CopyConstructible" 26629: " and DefaultConstructible"); 26629: 26629: static_assert(is_same>::value, 26629: "pos_type must be fpos"); 26629: 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: typedef typename traits_type::int_type int_type; 26629: typedef typename traits_type::pos_type pos_type; 26629: typedef typename traits_type::off_type off_type; 26629: 26629: typedef basic_streambuf __streambuf_type; 26629: typedef basic_filebuf __filebuf_type; 26629: typedef __basic_file __file_type; 26629: typedef typename traits_type::state_type __state_type; 26629: typedef codecvt __codecvt_type; 26629: 26629: friend class ios_base; 26629: 26629: protected: 26629: 26629: 26629: __c_lock _M_lock; 26629: 26629: 26629: __file_type _M_file; 26629: 26629: 26629: ios_base::openmode _M_mode; 26629: 26629: 26629: __state_type _M_state_beg; 26629: 26629: 26629: 26629: 26629: __state_type _M_state_cur; 26629: 26629: 26629: 26629: __state_type _M_state_last; 26629: 26629: 26629: char_type* _M_buf; 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t _M_buf_size; 26629: 26629: 26629: bool _M_buf_allocated; 26629: # 160 "/usr/include/c++/12/fstream" 3 26629: bool _M_reading; 26629: bool _M_writing; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: char_type _M_pback; 26629: char_type* _M_pback_cur_save; 26629: char_type* _M_pback_end_save; 26629: bool _M_pback_init; 26629: 26629: 26629: 26629: const __codecvt_type* _M_codecvt; 26629: 26629: 26629: 26629: 26629: 26629: 26629: char* _M_ext_buf; 26629: 26629: 26629: 26629: 26629: streamsize _M_ext_buf_size; 26629: 26629: 26629: 26629: 26629: 26629: 26629: const char* _M_ext_next; 26629: char* _M_ext_end; 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: _M_create_pback() 26629: { 26629: if (!_M_pback_init) 26629: { 26629: _M_pback_cur_save = this->gptr(); 26629: _M_pback_end_save = this->egptr(); 26629: this->setg(&_M_pback, &_M_pback, &_M_pback + 1); 26629: _M_pback_init = true; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: void 26629: _M_destroy_pback() throw() 26629: { 26629: if (_M_pback_init) 26629: { 26629: 26629: _M_pback_cur_save += this->gptr() != this->eback(); 26629: this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); 26629: _M_pback_init = false; 26629: } 26629: } 26629: 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: basic_filebuf(); 26629: 26629: 26629: basic_filebuf(const basic_filebuf&) = delete; 26629: basic_filebuf(basic_filebuf&&); 26629: 26629: 26629: 26629: 26629: 26629: virtual 26629: ~basic_filebuf() 26629: { 26629: try 26629: { this->close(); } 26629: catch(...) 26629: { } 26629: } 26629: 26629: 26629: basic_filebuf& operator=(const basic_filebuf&) = delete; 26629: basic_filebuf& operator=(basic_filebuf&&); 26629: void swap(basic_filebuf&); 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool 26629: is_open() const throw() 26629: { return _M_file.is_open(); } 26629: # 314 "/usr/include/c++/12/fstream" 3 26629: __filebuf_type* 26629: open(const char* __s, ios_base::openmode __mode); 26629: # 335 "/usr/include/c++/12/fstream" 3 26629: __filebuf_type* 26629: open(const std::string& __s, ios_base::openmode __mode) 26629: { return open(__s.c_str(), __mode); } 26629: # 346 "/usr/include/c++/12/fstream" 3 26629: template 26629: _If_fs_path<_Path, __filebuf_type*> 26629: open(const _Path& __s, ios_base::openmode __mode) 26629: { return open(__s.c_str(), __mode); } 26629: # 365 "/usr/include/c++/12/fstream" 3 26629: __filebuf_type* 26629: close(); 26629: 26629: protected: 26629: void 26629: _M_allocate_internal_buffer(); 26629: 26629: void 26629: _M_destroy_internal_buffer() throw(); 26629: 26629: 26629: virtual streamsize 26629: showmanyc(); 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual int_type 26629: underflow(); 26629: 26629: virtual int_type 26629: pbackfail(int_type __c = _Traits::eof()); 26629: # 397 "/usr/include/c++/12/fstream" 3 26629: virtual int_type 26629: overflow(int_type __c = _Traits::eof()); 26629: 26629: 26629: 26629: bool 26629: _M_convert_to_external(char_type*, streamsize); 26629: # 417 "/usr/include/c++/12/fstream" 3 26629: virtual __streambuf_type* 26629: setbuf(char_type* __s, streamsize __n); 26629: 26629: virtual pos_type 26629: seekoff(off_type __off, ios_base::seekdir __way, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out); 26629: 26629: virtual pos_type 26629: seekpos(pos_type __pos, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out); 26629: 26629: 26629: pos_type 26629: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); 26629: 26629: int 26629: _M_get_ext_pos(__state_type &__state); 26629: 26629: virtual int 26629: sync(); 26629: 26629: virtual void 26629: imbue(const locale& __loc); 26629: 26629: virtual streamsize 26629: xsgetn(char_type* __s, streamsize __n); 26629: 26629: virtual streamsize 26629: xsputn(const char_type* __s, streamsize __n); 26629: 26629: 26629: bool 26629: _M_terminate_output(); 26629: # 463 "/usr/include/c++/12/fstream" 3 26629: void 26629: _M_set_buffer(streamsize __off) 26629: { 26629: const bool __testin = _M_mode & ios_base::in; 26629: const bool __testout = (_M_mode & ios_base::out 26629: || _M_mode & ios_base::app); 26629: 26629: if (__testin && __off > 0) 26629: this->setg(_M_buf, _M_buf, _M_buf + __off); 26629: else 26629: this->setg(_M_buf, _M_buf, _M_buf); 26629: 26629: if (__testout && __off == 0 && _M_buf_size > 1 ) 26629: this->setp(_M_buf, _M_buf + _M_buf_size - 1); 26629: else 26629: this->setp(0, 0); 26629: } 26629: }; 26629: # 496 "/usr/include/c++/12/fstream" 3 26629: template 26629: class basic_ifstream : public basic_istream<_CharT, _Traits> 26629: { 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: typedef typename traits_type::int_type int_type; 26629: typedef typename traits_type::pos_type pos_type; 26629: typedef typename traits_type::off_type off_type; 26629: 26629: 26629: typedef basic_filebuf __filebuf_type; 26629: typedef basic_istream __istream_type; 26629: 26629: private: 26629: __filebuf_type _M_filebuf; 26629: 26629: public: 26629: # 523 "/usr/include/c++/12/fstream" 3 26629: basic_ifstream() : __istream_type(), _M_filebuf() 26629: { this->init(&_M_filebuf); } 26629: # 533 "/usr/include/c++/12/fstream" 3 26629: explicit 26629: basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) 26629: : __istream_type(), _M_filebuf() 26629: { 26629: this->init(&_M_filebuf); 26629: this->open(__s, __mode); 26629: } 26629: # 566 "/usr/include/c++/12/fstream" 3 26629: explicit 26629: basic_ifstream(const std::string& __s, 26629: ios_base::openmode __mode = ios_base::in) 26629: : __istream_type(), _M_filebuf() 26629: { 26629: this->init(&_M_filebuf); 26629: this->open(__s, __mode); 26629: } 26629: # 583 "/usr/include/c++/12/fstream" 3 26629: template> 26629: basic_ifstream(const _Path& __s, 26629: ios_base::openmode __mode = ios_base::in) 26629: : basic_ifstream(__s.c_str(), __mode) 26629: { } 26629: 26629: 26629: basic_ifstream(const basic_ifstream&) = delete; 26629: 26629: basic_ifstream(basic_ifstream&& __rhs) 26629: : __istream_type(std::move(__rhs)), 26629: _M_filebuf(std::move(__rhs._M_filebuf)) 26629: { __istream_type::set_rdbuf(&_M_filebuf); } 26629: # 604 "/usr/include/c++/12/fstream" 3 26629: ~basic_ifstream() 26629: { } 26629: 26629: 26629: 26629: 26629: basic_ifstream& 26629: operator=(const basic_ifstream&) = delete; 26629: 26629: basic_ifstream& 26629: operator=(basic_ifstream&& __rhs) 26629: { 26629: __istream_type::operator=(std::move(__rhs)); 26629: _M_filebuf = std::move(__rhs._M_filebuf); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(basic_ifstream& __rhs) 26629: { 26629: __istream_type::swap(__rhs); 26629: _M_filebuf.swap(__rhs._M_filebuf); 26629: } 26629: # 636 "/usr/include/c++/12/fstream" 3 26629: __filebuf_type* 26629: rdbuf() const 26629: { return const_cast<__filebuf_type*>(&_M_filebuf); } 26629: 26629: 26629: 26629: 26629: 26629: bool 26629: is_open() 26629: { return _M_filebuf.is_open(); } 26629: 26629: 26629: 26629: bool 26629: is_open() const 26629: { return _M_filebuf.is_open(); } 26629: # 662 "/usr/include/c++/12/fstream" 3 26629: void 26629: open(const char* __s, ios_base::openmode __mode = ios_base::in) 26629: { 26629: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 26629: this->setstate(ios_base::failbit); 26629: else 26629: 26629: 26629: this->clear(); 26629: } 26629: # 701 "/usr/include/c++/12/fstream" 3 26629: void 26629: open(const std::string& __s, ios_base::openmode __mode = ios_base::in) 26629: { 26629: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 26629: this->setstate(ios_base::failbit); 26629: else 26629: 26629: 26629: this->clear(); 26629: } 26629: # 721 "/usr/include/c++/12/fstream" 3 26629: template 26629: _If_fs_path<_Path, void> 26629: open(const _Path& __s, ios_base::openmode __mode = ios_base::in) 26629: { open(__s.c_str(), __mode); } 26629: # 734 "/usr/include/c++/12/fstream" 3 26629: void 26629: close() 26629: { 26629: if (!_M_filebuf.close()) 26629: this->setstate(ios_base::failbit); 26629: } 26629: }; 26629: # 757 "/usr/include/c++/12/fstream" 3 26629: template 26629: class basic_ofstream : public basic_ostream<_CharT,_Traits> 26629: { 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: typedef typename traits_type::int_type int_type; 26629: typedef typename traits_type::pos_type pos_type; 26629: typedef typename traits_type::off_type off_type; 26629: 26629: 26629: typedef basic_filebuf __filebuf_type; 26629: typedef basic_ostream __ostream_type; 26629: 26629: private: 26629: __filebuf_type _M_filebuf; 26629: 26629: public: 26629: # 784 "/usr/include/c++/12/fstream" 3 26629: basic_ofstream(): __ostream_type(), _M_filebuf() 26629: { this->init(&_M_filebuf); } 26629: # 794 "/usr/include/c++/12/fstream" 3 26629: explicit 26629: basic_ofstream(const char* __s, 26629: ios_base::openmode __mode = ios_base::out) 26629: : __ostream_type(), _M_filebuf() 26629: { 26629: this->init(&_M_filebuf); 26629: this->open(__s, __mode); 26629: } 26629: # 829 "/usr/include/c++/12/fstream" 3 26629: explicit 26629: basic_ofstream(const std::string& __s, 26629: ios_base::openmode __mode = ios_base::out) 26629: : __ostream_type(), _M_filebuf() 26629: { 26629: this->init(&_M_filebuf); 26629: this->open(__s, __mode); 26629: } 26629: # 846 "/usr/include/c++/12/fstream" 3 26629: template> 26629: basic_ofstream(const _Path& __s, 26629: ios_base::openmode __mode = ios_base::out) 26629: : basic_ofstream(__s.c_str(), __mode) 26629: { } 26629: 26629: 26629: basic_ofstream(const basic_ofstream&) = delete; 26629: 26629: basic_ofstream(basic_ofstream&& __rhs) 26629: : __ostream_type(std::move(__rhs)), 26629: _M_filebuf(std::move(__rhs._M_filebuf)) 26629: { __ostream_type::set_rdbuf(&_M_filebuf); } 26629: # 867 "/usr/include/c++/12/fstream" 3 26629: ~basic_ofstream() 26629: { } 26629: 26629: 26629: 26629: 26629: basic_ofstream& 26629: operator=(const basic_ofstream&) = delete; 26629: 26629: basic_ofstream& 26629: operator=(basic_ofstream&& __rhs) 26629: { 26629: __ostream_type::operator=(std::move(__rhs)); 26629: _M_filebuf = std::move(__rhs._M_filebuf); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(basic_ofstream& __rhs) 26629: { 26629: __ostream_type::swap(__rhs); 26629: _M_filebuf.swap(__rhs._M_filebuf); 26629: } 26629: # 899 "/usr/include/c++/12/fstream" 3 26629: __filebuf_type* 26629: rdbuf() const 26629: { return const_cast<__filebuf_type*>(&_M_filebuf); } 26629: 26629: 26629: 26629: 26629: 26629: bool 26629: is_open() 26629: { return _M_filebuf.is_open(); } 26629: 26629: 26629: 26629: bool 26629: is_open() const 26629: { return _M_filebuf.is_open(); } 26629: # 925 "/usr/include/c++/12/fstream" 3 26629: void 26629: open(const char* __s, ios_base::openmode __mode = ios_base::out) 26629: { 26629: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 26629: this->setstate(ios_base::failbit); 26629: else 26629: 26629: 26629: this->clear(); 26629: } 26629: # 964 "/usr/include/c++/12/fstream" 3 26629: void 26629: open(const std::string& __s, ios_base::openmode __mode = ios_base::out) 26629: { 26629: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 26629: this->setstate(ios_base::failbit); 26629: else 26629: 26629: 26629: this->clear(); 26629: } 26629: # 984 "/usr/include/c++/12/fstream" 3 26629: template 26629: _If_fs_path<_Path, void> 26629: open(const _Path& __s, ios_base::openmode __mode = ios_base::out) 26629: { open(__s.c_str(), __mode); } 26629: # 997 "/usr/include/c++/12/fstream" 3 26629: void 26629: close() 26629: { 26629: if (!_M_filebuf.close()) 26629: this->setstate(ios_base::failbit); 26629: } 26629: }; 26629: # 1020 "/usr/include/c++/12/fstream" 3 26629: template 26629: class basic_fstream : public basic_iostream<_CharT, _Traits> 26629: { 26629: public: 26629: 26629: typedef _CharT char_type; 26629: typedef _Traits traits_type; 26629: typedef typename traits_type::int_type int_type; 26629: typedef typename traits_type::pos_type pos_type; 26629: typedef typename traits_type::off_type off_type; 26629: 26629: 26629: typedef basic_filebuf __filebuf_type; 26629: typedef basic_ios __ios_type; 26629: typedef basic_iostream __iostream_type; 26629: 26629: private: 26629: __filebuf_type _M_filebuf; 26629: 26629: public: 26629: # 1048 "/usr/include/c++/12/fstream" 3 26629: basic_fstream() 26629: : __iostream_type(), _M_filebuf() 26629: { this->init(&_M_filebuf); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: explicit 26629: basic_fstream(const char* __s, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out) 26629: : __iostream_type(0), _M_filebuf() 26629: { 26629: this->init(&_M_filebuf); 26629: this->open(__s, __mode); 26629: } 26629: # 1087 "/usr/include/c++/12/fstream" 3 26629: explicit 26629: basic_fstream(const std::string& __s, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out) 26629: : __iostream_type(0), _M_filebuf() 26629: { 26629: this->init(&_M_filebuf); 26629: this->open(__s, __mode); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: template> 26629: basic_fstream(const _Path& __s, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out) 26629: : basic_fstream(__s.c_str(), __mode) 26629: { } 26629: 26629: 26629: basic_fstream(const basic_fstream&) = delete; 26629: 26629: basic_fstream(basic_fstream&& __rhs) 26629: : __iostream_type(std::move(__rhs)), 26629: _M_filebuf(std::move(__rhs._M_filebuf)) 26629: { __iostream_type::set_rdbuf(&_M_filebuf); } 26629: # 1123 "/usr/include/c++/12/fstream" 3 26629: ~basic_fstream() 26629: { } 26629: 26629: 26629: 26629: 26629: basic_fstream& 26629: operator=(const basic_fstream&) = delete; 26629: 26629: basic_fstream& 26629: operator=(basic_fstream&& __rhs) 26629: { 26629: __iostream_type::operator=(std::move(__rhs)); 26629: _M_filebuf = std::move(__rhs._M_filebuf); 26629: return *this; 26629: } 26629: 26629: void 26629: swap(basic_fstream& __rhs) 26629: { 26629: __iostream_type::swap(__rhs); 26629: _M_filebuf.swap(__rhs._M_filebuf); 26629: } 26629: # 1155 "/usr/include/c++/12/fstream" 3 26629: __filebuf_type* 26629: rdbuf() const 26629: { return const_cast<__filebuf_type*>(&_M_filebuf); } 26629: 26629: 26629: 26629: 26629: 26629: bool 26629: is_open() 26629: { return _M_filebuf.is_open(); } 26629: 26629: 26629: 26629: bool 26629: is_open() const 26629: { return _M_filebuf.is_open(); } 26629: # 1181 "/usr/include/c++/12/fstream" 3 26629: void 26629: open(const char* __s, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out) 26629: { 26629: if (!_M_filebuf.open(__s, __mode)) 26629: this->setstate(ios_base::failbit); 26629: else 26629: 26629: 26629: this->clear(); 26629: } 26629: # 1222 "/usr/include/c++/12/fstream" 3 26629: void 26629: open(const std::string& __s, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out) 26629: { 26629: if (!_M_filebuf.open(__s, __mode)) 26629: this->setstate(ios_base::failbit); 26629: else 26629: 26629: 26629: this->clear(); 26629: } 26629: # 1243 "/usr/include/c++/12/fstream" 3 26629: template 26629: _If_fs_path<_Path, void> 26629: open(const _Path& __s, 26629: ios_base::openmode __mode = ios_base::in | ios_base::out) 26629: { open(__s.c_str(), __mode); } 26629: # 1257 "/usr/include/c++/12/fstream" 3 26629: void 26629: close() 26629: { 26629: if (!_M_filebuf.close()) 26629: this->setstate(ios_base::failbit); 26629: } 26629: }; 26629: 26629: 26629: 26629: template 26629: inline void 26629: swap(basic_filebuf<_CharT, _Traits>& __x, 26629: basic_filebuf<_CharT, _Traits>& __y) 26629: { __x.swap(__y); } 26629: 26629: 26629: template 26629: inline void 26629: swap(basic_ifstream<_CharT, _Traits>& __x, 26629: basic_ifstream<_CharT, _Traits>& __y) 26629: { __x.swap(__y); } 26629: 26629: 26629: template 26629: inline void 26629: swap(basic_ofstream<_CharT, _Traits>& __x, 26629: basic_ofstream<_CharT, _Traits>& __y) 26629: { __x.swap(__y); } 26629: 26629: 26629: template 26629: inline void 26629: swap(basic_fstream<_CharT, _Traits>& __x, 26629: basic_fstream<_CharT, _Traits>& __y) 26629: { __x.swap(__y); } 26629: 26629: 26629: 26629: } 26629: 26629: # 1 "/usr/include/c++/12/bits/fstream.tcc" 1 3 26629: # 37 "/usr/include/c++/12/bits/fstream.tcc" 3 26629: 26629: # 38 "/usr/include/c++/12/bits/fstream.tcc" 3 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cerrno" 1 3 26629: # 39 "/usr/include/c++/12/cerrno" 3 26629: 26629: # 40 "/usr/include/c++/12/cerrno" 3 26629: # 42 "/usr/include/c++/12/bits/fstream.tcc" 2 3 26629: 26629: namespace std __attribute__ ((__visibility__ ("default"))) 26629: { 26629: 26629: 26629: template 26629: void 26629: basic_filebuf<_CharT, _Traits>:: 26629: _M_allocate_internal_buffer() 26629: { 26629: 26629: 26629: if (!_M_buf_allocated && !_M_buf) 26629: { 26629: _M_buf = new char_type[_M_buf_size]; 26629: _M_buf_allocated = true; 26629: } 26629: } 26629: 26629: template 26629: void 26629: basic_filebuf<_CharT, _Traits>:: 26629: _M_destroy_internal_buffer() throw() 26629: { 26629: if (_M_buf_allocated) 26629: { 26629: delete [] _M_buf; 26629: _M_buf = 0; 26629: _M_buf_allocated = false; 26629: } 26629: delete [] _M_ext_buf; 26629: _M_ext_buf = 0; 26629: _M_ext_buf_size = 0; 26629: _M_ext_next = 0; 26629: _M_ext_end = 0; 26629: } 26629: 26629: template 26629: basic_filebuf<_CharT, _Traits>:: 26629: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), 26629: _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), 26629: _M_state_last(), _M_buf(0), _M_buf_size(8192), 26629: _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), 26629: _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), 26629: _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), 26629: _M_ext_end(0) 26629: { 26629: if (has_facet<__codecvt_type>(this->_M_buf_locale)) 26629: _M_codecvt = &use_facet<__codecvt_type>(this->_M_buf_locale); 26629: } 26629: 26629: 26629: template 26629: basic_filebuf<_CharT, _Traits>:: 26629: basic_filebuf(basic_filebuf&& __rhs) 26629: : __streambuf_type(__rhs), 26629: _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), 26629: _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), 26629: _M_state_beg(std::move(__rhs._M_state_beg)), 26629: _M_state_cur(std::move(__rhs._M_state_cur)), 26629: _M_state_last(std::move(__rhs._M_state_last)), 26629: _M_buf(std::__exchange(__rhs._M_buf, nullptr)), 26629: _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), 26629: _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), 26629: _M_reading(std::__exchange(__rhs._M_reading, false)), 26629: _M_writing(std::__exchange(__rhs._M_writing, false)), 26629: _M_pback(__rhs._M_pback), 26629: _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), 26629: _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), 26629: _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), 26629: _M_codecvt(__rhs._M_codecvt), 26629: _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), 26629: _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), 26629: _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), 26629: _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) 26629: { 26629: __rhs._M_set_buffer(-1); 26629: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 26629: } 26629: 26629: template 26629: basic_filebuf<_CharT, _Traits>& 26629: basic_filebuf<_CharT, _Traits>:: 26629: operator=(basic_filebuf&& __rhs) 26629: { 26629: this->close(); 26629: __streambuf_type::operator=(__rhs); 26629: _M_file.swap(__rhs._M_file); 26629: _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); 26629: _M_state_beg = std::move(__rhs._M_state_beg); 26629: _M_state_cur = std::move(__rhs._M_state_cur); 26629: _M_state_last = std::move(__rhs._M_state_last); 26629: _M_buf = std::__exchange(__rhs._M_buf, nullptr); 26629: _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); 26629: _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); 26629: _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); 26629: _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); 26629: _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); 26629: _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); 26629: _M_reading = std::__exchange(__rhs._M_reading, false); 26629: _M_writing = std::__exchange(__rhs._M_writing, false); 26629: _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); 26629: _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); 26629: _M_pback_init = std::__exchange(__rhs._M_pback_init, false); 26629: __rhs._M_set_buffer(-1); 26629: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 26629: return *this; 26629: } 26629: 26629: template 26629: void 26629: basic_filebuf<_CharT, _Traits>:: 26629: swap(basic_filebuf& __rhs) 26629: { 26629: __streambuf_type::swap(__rhs); 26629: _M_file.swap(__rhs._M_file); 26629: std::swap(_M_mode, __rhs._M_mode); 26629: std::swap(_M_state_beg, __rhs._M_state_beg); 26629: std::swap(_M_state_cur, __rhs._M_state_cur); 26629: std::swap(_M_state_last, __rhs._M_state_last); 26629: std::swap(_M_buf, __rhs._M_buf); 26629: std::swap(_M_buf_size, __rhs._M_buf_size); 26629: std::swap(_M_buf_allocated, __rhs._M_buf_allocated); 26629: std::swap(_M_ext_buf, __rhs._M_ext_buf); 26629: std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); 26629: std::swap(_M_ext_next, __rhs._M_ext_next); 26629: std::swap(_M_ext_end, __rhs._M_ext_end); 26629: std::swap(_M_reading, __rhs._M_reading); 26629: std::swap(_M_writing, __rhs._M_writing); 26629: std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); 26629: std::swap(_M_pback_end_save, __rhs._M_pback_end_save); 26629: std::swap(_M_pback_init, __rhs._M_pback_init); 26629: } 26629: 26629: 26629: template 26629: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 26629: basic_filebuf<_CharT, _Traits>:: 26629: open(const char* __s, ios_base::openmode __mode) 26629: { 26629: __filebuf_type *__ret = 0; 26629: if (!this->is_open()) 26629: { 26629: _M_file.open(__s, __mode); 26629: if (this->is_open()) 26629: { 26629: _M_allocate_internal_buffer(); 26629: _M_mode = __mode; 26629: 26629: 26629: _M_reading = false; 26629: _M_writing = false; 26629: _M_set_buffer(-1); 26629: 26629: 26629: _M_state_last = _M_state_cur = _M_state_beg; 26629: 26629: 26629: if ((__mode & ios_base::ate) 26629: && this->seekoff(0, ios_base::end, __mode) 26629: == pos_type(off_type(-1))) 26629: this->close(); 26629: else 26629: __ret = this; 26629: } 26629: } 26629: return __ret; 26629: } 26629: # 247 "/usr/include/c++/12/bits/fstream.tcc" 3 26629: template 26629: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 26629: basic_filebuf<_CharT, _Traits>:: 26629: close() 26629: { 26629: if (!this->is_open()) 26629: return 0; 26629: 26629: bool __testfail = false; 26629: { 26629: 26629: struct __close_sentry 26629: { 26629: basic_filebuf *__fb; 26629: __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } 26629: ~__close_sentry () 26629: { 26629: __fb->_M_mode = ios_base::openmode(0); 26629: __fb->_M_pback_init = false; 26629: __fb->_M_destroy_internal_buffer(); 26629: __fb->_M_reading = false; 26629: __fb->_M_writing = false; 26629: __fb->_M_set_buffer(-1); 26629: __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; 26629: } 26629: } __cs (this); 26629: 26629: try 26629: { 26629: if (!_M_terminate_output()) 26629: __testfail = true; 26629: } 26629: catch(...) 26629: { 26629: _M_file.close(); 26629: throw; 26629: } 26629: } 26629: 26629: if (!_M_file.close()) 26629: __testfail = true; 26629: 26629: if (__testfail) 26629: return 0; 26629: else 26629: return this; 26629: } 26629: 26629: template 26629: streamsize 26629: basic_filebuf<_CharT, _Traits>:: 26629: showmanyc() 26629: { 26629: streamsize __ret = -1; 26629: const bool __testin = _M_mode & ios_base::in; 26629: if (__testin && this->is_open()) 26629: { 26629: 26629: 26629: __ret = this->egptr() - this->gptr(); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: if (__check_facet(_M_codecvt).encoding() >= 0) 26629: 26629: __ret += _M_file.showmanyc() / _M_codecvt->max_length(); 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: typename basic_filebuf<_CharT, _Traits>::int_type 26629: basic_filebuf<_CharT, _Traits>:: 26629: underflow() 26629: { 26629: int_type __ret = traits_type::eof(); 26629: const bool __testin = _M_mode & ios_base::in; 26629: if (__testin) 26629: { 26629: if (_M_writing) 26629: { 26629: if (overflow() == traits_type::eof()) 26629: return __ret; 26629: _M_set_buffer(-1); 26629: _M_writing = false; 26629: } 26629: 26629: 26629: 26629: _M_destroy_pback(); 26629: 26629: if (this->gptr() < this->egptr()) 26629: return traits_type::to_int_type(*this->gptr()); 26629: 26629: 26629: const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 26629: 26629: 26629: bool __got_eof = false; 26629: 26629: streamsize __ilen = 0; 26629: codecvt_base::result __r = codecvt_base::ok; 26629: if (__check_facet(_M_codecvt).always_noconv()) 26629: { 26629: __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), 26629: __buflen); 26629: if (__ilen == 0) 26629: __got_eof = true; 26629: } 26629: else 26629: { 26629: 26629: 26629: const int __enc = _M_codecvt->encoding(); 26629: streamsize __blen; 26629: streamsize __rlen; 26629: if (__enc > 0) 26629: __blen = __rlen = __buflen * __enc; 26629: else 26629: { 26629: __blen = __buflen + _M_codecvt->max_length() - 1; 26629: __rlen = __buflen; 26629: } 26629: const streamsize __remainder = _M_ext_end - _M_ext_next; 26629: __rlen = __rlen > __remainder ? __rlen - __remainder : 0; 26629: 26629: 26629: 26629: if (_M_reading && this->egptr() == this->eback() && __remainder) 26629: __rlen = 0; 26629: 26629: 26629: 26629: if (_M_ext_buf_size < __blen) 26629: { 26629: char* __buf = new char[__blen]; 26629: if (__remainder) 26629: __builtin_memcpy(__buf, _M_ext_next, __remainder); 26629: 26629: delete [] _M_ext_buf; 26629: _M_ext_buf = __buf; 26629: _M_ext_buf_size = __blen; 26629: } 26629: else if (__remainder) 26629: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 26629: 26629: _M_ext_next = _M_ext_buf; 26629: _M_ext_end = _M_ext_buf + __remainder; 26629: _M_state_last = _M_state_cur; 26629: 26629: do 26629: { 26629: if (__rlen > 0) 26629: { 26629: 26629: 26629: 26629: if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) 26629: { 26629: __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") 26629: 26629: ); 26629: } 26629: streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); 26629: if (__elen == 0) 26629: __got_eof = true; 26629: else if (__elen == -1) 26629: break; 26629: _M_ext_end += __elen; 26629: } 26629: 26629: char_type* __iend = this->eback(); 26629: if (_M_ext_next < _M_ext_end) 26629: __r = _M_codecvt->in(_M_state_cur, _M_ext_next, 26629: _M_ext_end, _M_ext_next, 26629: this->eback(), 26629: this->eback() + __buflen, __iend); 26629: if (__r == codecvt_base::noconv) 26629: { 26629: size_t __avail = _M_ext_end - _M_ext_buf; 26629: __ilen = std::min(__avail, __buflen); 26629: traits_type::copy(this->eback(), 26629: reinterpret_cast 26629: (_M_ext_buf), __ilen); 26629: _M_ext_next = _M_ext_buf + __ilen; 26629: } 26629: else 26629: __ilen = __iend - this->eback(); 26629: 26629: 26629: 26629: 26629: if (__r == codecvt_base::error) 26629: break; 26629: 26629: __rlen = 1; 26629: } 26629: while (__ilen == 0 && !__got_eof); 26629: } 26629: 26629: if (__ilen > 0) 26629: { 26629: _M_set_buffer(__ilen); 26629: _M_reading = true; 26629: __ret = traits_type::to_int_type(*this->gptr()); 26629: } 26629: else if (__got_eof) 26629: { 26629: 26629: 26629: 26629: _M_set_buffer(-1); 26629: _M_reading = false; 26629: 26629: 26629: if (__r == codecvt_base::partial) 26629: __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") 26629: ); 26629: } 26629: else if (__r == codecvt_base::error) 26629: __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") 26629: ); 26629: else 26629: __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") 26629: , (*__errno_location ())); 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: typename basic_filebuf<_CharT, _Traits>::int_type 26629: basic_filebuf<_CharT, _Traits>:: 26629: pbackfail(int_type __i) 26629: { 26629: int_type __ret = traits_type::eof(); 26629: const bool __testin = _M_mode & ios_base::in; 26629: if (__testin) 26629: { 26629: if (_M_writing) 26629: { 26629: if (overflow() == traits_type::eof()) 26629: return __ret; 26629: _M_set_buffer(-1); 26629: _M_writing = false; 26629: } 26629: 26629: 26629: const bool __testpb = _M_pback_init; 26629: const bool __testeof = traits_type::eq_int_type(__i, __ret); 26629: int_type __tmp; 26629: if (this->eback() < this->gptr()) 26629: { 26629: this->gbump(-1); 26629: __tmp = traits_type::to_int_type(*this->gptr()); 26629: } 26629: else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) 26629: { 26629: __tmp = this->underflow(); 26629: if (traits_type::eq_int_type(__tmp, __ret)) 26629: return __ret; 26629: } 26629: else 26629: { 26629: 26629: 26629: 26629: 26629: 26629: return __ret; 26629: } 26629: 26629: 26629: 26629: if (!__testeof && traits_type::eq_int_type(__i, __tmp)) 26629: __ret = __i; 26629: else if (__testeof) 26629: __ret = traits_type::not_eof(__i); 26629: else if (!__testpb) 26629: { 26629: _M_create_pback(); 26629: _M_reading = true; 26629: *this->gptr() = traits_type::to_char_type(__i); 26629: __ret = __i; 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: typename basic_filebuf<_CharT, _Traits>::int_type 26629: basic_filebuf<_CharT, _Traits>:: 26629: overflow(int_type __c) 26629: { 26629: int_type __ret = traits_type::eof(); 26629: const bool __testeof = traits_type::eq_int_type(__c, __ret); 26629: const bool __testout = (_M_mode & ios_base::out 26629: || _M_mode & ios_base::app); 26629: if (__testout) 26629: { 26629: if (_M_reading) 26629: { 26629: _M_destroy_pback(); 26629: const int __gptr_off = _M_get_ext_pos(_M_state_last); 26629: if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) 26629: == pos_type(off_type(-1))) 26629: return __ret; 26629: } 26629: if (this->pbase() < this->pptr()) 26629: { 26629: 26629: if (!__testeof) 26629: { 26629: *this->pptr() = traits_type::to_char_type(__c); 26629: this->pbump(1); 26629: } 26629: 26629: 26629: 26629: if (_M_convert_to_external(this->pbase(), 26629: this->pptr() - this->pbase())) 26629: { 26629: _M_set_buffer(0); 26629: __ret = traits_type::not_eof(__c); 26629: } 26629: } 26629: else if (_M_buf_size > 1) 26629: { 26629: 26629: 26629: 26629: _M_set_buffer(0); 26629: _M_writing = true; 26629: if (!__testeof) 26629: { 26629: *this->pptr() = traits_type::to_char_type(__c); 26629: this->pbump(1); 26629: } 26629: __ret = traits_type::not_eof(__c); 26629: } 26629: else 26629: { 26629: 26629: char_type __conv = traits_type::to_char_type(__c); 26629: if (__testeof || _M_convert_to_external(&__conv, 1)) 26629: { 26629: _M_writing = true; 26629: __ret = traits_type::not_eof(__c); 26629: } 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: bool 26629: basic_filebuf<_CharT, _Traits>:: 26629: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) 26629: { 26629: 26629: streamsize __elen; 26629: streamsize __plen; 26629: if (__check_facet(_M_codecvt).always_noconv()) 26629: { 26629: __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); 26629: __plen = __ilen; 26629: } 26629: else 26629: { 26629: 26629: 26629: streamsize __blen = __ilen * _M_codecvt->max_length(); 26629: char* __buf = static_cast(__builtin_alloca(__blen)); 26629: 26629: char* __bend; 26629: const char_type* __iend; 26629: codecvt_base::result __r; 26629: __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, 26629: __iend, __buf, __buf + __blen, __bend); 26629: 26629: if (__r == codecvt_base::ok || __r == codecvt_base::partial) 26629: __blen = __bend - __buf; 26629: else if (__r == codecvt_base::noconv) 26629: { 26629: 26629: __buf = reinterpret_cast(__ibuf); 26629: __blen = __ilen; 26629: } 26629: else 26629: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 26629: ); 26629: 26629: __elen = _M_file.xsputn(__buf, __blen); 26629: __plen = __blen; 26629: 26629: 26629: if (__r == codecvt_base::partial && __elen == __plen) 26629: { 26629: const char_type* __iresume = __iend; 26629: streamsize __rlen = this->pptr() - __iend; 26629: __r = _M_codecvt->out(_M_state_cur, __iresume, 26629: __iresume + __rlen, __iend, __buf, 26629: __buf + __blen, __bend); 26629: if (__r != codecvt_base::error) 26629: { 26629: __rlen = __bend - __buf; 26629: __elen = _M_file.xsputn(__buf, __rlen); 26629: __plen = __rlen; 26629: } 26629: else 26629: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 26629: ); 26629: } 26629: } 26629: return __elen == __plen; 26629: } 26629: 26629: template 26629: streamsize 26629: basic_filebuf<_CharT, _Traits>:: 26629: xsgetn(_CharT* __s, streamsize __n) 26629: { 26629: 26629: streamsize __ret = 0; 26629: if (_M_pback_init) 26629: { 26629: if (__n > 0 && this->gptr() == this->eback()) 26629: { 26629: *__s++ = *this->gptr(); 26629: this->gbump(1); 26629: __ret = 1; 26629: --__n; 26629: } 26629: _M_destroy_pback(); 26629: } 26629: else if (_M_writing) 26629: { 26629: if (overflow() == traits_type::eof()) 26629: return __ret; 26629: _M_set_buffer(-1); 26629: _M_writing = false; 26629: } 26629: 26629: 26629: 26629: 26629: const bool __testin = _M_mode & ios_base::in; 26629: const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 26629: 26629: if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() 26629: && __testin) 26629: { 26629: 26629: const streamsize __avail = this->egptr() - this->gptr(); 26629: if (__avail != 0) 26629: { 26629: traits_type::copy(__s, this->gptr(), __avail); 26629: __s += __avail; 26629: this->setg(this->eback(), this->gptr() + __avail, this->egptr()); 26629: __ret += __avail; 26629: __n -= __avail; 26629: } 26629: 26629: 26629: 26629: streamsize __len; 26629: for (;;) 26629: { 26629: __len = _M_file.xsgetn(reinterpret_cast(__s), __n); 26629: if (__len == -1) 26629: __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") 26629: , (*__errno_location ())); 26629: if (__len == 0) 26629: break; 26629: 26629: __n -= __len; 26629: __ret += __len; 26629: if (__n == 0) 26629: break; 26629: 26629: __s += __len; 26629: } 26629: 26629: if (__n == 0) 26629: { 26629: 26629: _M_reading = true; 26629: } 26629: else if (__len == 0) 26629: { 26629: 26629: 26629: 26629: _M_set_buffer(-1); 26629: _M_reading = false; 26629: } 26629: } 26629: else 26629: __ret += __streambuf_type::xsgetn(__s, __n); 26629: 26629: return __ret; 26629: } 26629: 26629: template 26629: streamsize 26629: basic_filebuf<_CharT, _Traits>:: 26629: xsputn(const _CharT* __s, streamsize __n) 26629: { 26629: streamsize __ret = 0; 26629: 26629: 26629: 26629: const bool __testout = (_M_mode & ios_base::out 26629: || _M_mode & ios_base::app); 26629: if (__check_facet(_M_codecvt).always_noconv() 26629: && __testout && !_M_reading) 26629: { 26629: 26629: const streamsize __chunk = 1ul << 10; 26629: streamsize __bufavail = this->epptr() - this->pptr(); 26629: 26629: 26629: if (!_M_writing && _M_buf_size > 1) 26629: __bufavail = _M_buf_size - 1; 26629: 26629: const streamsize __limit = std::min(__chunk, __bufavail); 26629: if (__n >= __limit) 26629: { 26629: const streamsize __buffill = this->pptr() - this->pbase(); 26629: const char* __buf = reinterpret_cast(this->pbase()); 26629: __ret = _M_file.xsputn_2(__buf, __buffill, 26629: reinterpret_cast(__s), 26629: __n); 26629: if (__ret == __buffill + __n) 26629: { 26629: _M_set_buffer(0); 26629: _M_writing = true; 26629: } 26629: if (__ret > __buffill) 26629: __ret -= __buffill; 26629: else 26629: __ret = 0; 26629: } 26629: else 26629: __ret = __streambuf_type::xsputn(__s, __n); 26629: } 26629: else 26629: __ret = __streambuf_type::xsputn(__s, __n); 26629: return __ret; 26629: } 26629: 26629: template 26629: typename basic_filebuf<_CharT, _Traits>::__streambuf_type* 26629: basic_filebuf<_CharT, _Traits>:: 26629: setbuf(char_type* __s, streamsize __n) 26629: { 26629: if (!this->is_open()) 26629: { 26629: if (__s == 0 && __n == 0) 26629: _M_buf_size = 1; 26629: else if (__s && __n > 0) 26629: { 26629: # 820 "/usr/include/c++/12/bits/fstream.tcc" 3 26629: _M_buf = __s; 26629: _M_buf_size = __n; 26629: } 26629: } 26629: return this; 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: typename basic_filebuf<_CharT, _Traits>::pos_type 26629: basic_filebuf<_CharT, _Traits>:: 26629: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) 26629: { 26629: int __width = 0; 26629: if (_M_codecvt) 26629: __width = _M_codecvt->encoding(); 26629: if (__width < 0) 26629: __width = 0; 26629: 26629: pos_type __ret = pos_type(off_type(-1)); 26629: const bool __testfail = __off != 0 && __width <= 0; 26629: if (this->is_open() && !__testfail) 26629: { 26629: 26629: 26629: 26629: 26629: bool __no_movement = __way == ios_base::cur && __off == 0 26629: && (!_M_writing || _M_codecvt->always_noconv()); 26629: 26629: 26629: if (!__no_movement) 26629: _M_destroy_pback(); 26629: 26629: 26629: 26629: 26629: 26629: 26629: __state_type __state = _M_state_beg; 26629: off_type __computed_off = __off * __width; 26629: if (_M_reading && __way == ios_base::cur) 26629: { 26629: __state = _M_state_last; 26629: __computed_off += _M_get_ext_pos(__state); 26629: } 26629: if (!__no_movement) 26629: __ret = _M_seek(__computed_off, __way, __state); 26629: else 26629: { 26629: if (_M_writing) 26629: __computed_off = this->pptr() - this->pbase(); 26629: 26629: off_type __file_off = _M_file.seekoff(0, ios_base::cur); 26629: if (__file_off != off_type(-1)) 26629: { 26629: __ret = __file_off + __computed_off; 26629: __ret.state(__state); 26629: } 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: template 26629: typename basic_filebuf<_CharT, _Traits>::pos_type 26629: basic_filebuf<_CharT, _Traits>:: 26629: seekpos(pos_type __pos, ios_base::openmode) 26629: { 26629: pos_type __ret = pos_type(off_type(-1)); 26629: if (this->is_open()) 26629: { 26629: 26629: _M_destroy_pback(); 26629: __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: typename basic_filebuf<_CharT, _Traits>::pos_type 26629: basic_filebuf<_CharT, _Traits>:: 26629: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) 26629: { 26629: pos_type __ret = pos_type(off_type(-1)); 26629: if (_M_terminate_output()) 26629: { 26629: off_type __file_off = _M_file.seekoff(__off, __way); 26629: if (__file_off != off_type(-1)) 26629: { 26629: _M_reading = false; 26629: _M_writing = false; 26629: _M_ext_next = _M_ext_end = _M_ext_buf; 26629: _M_set_buffer(-1); 26629: _M_state_cur = __state; 26629: __ret = __file_off; 26629: __ret.state(_M_state_cur); 26629: } 26629: } 26629: return __ret; 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: int basic_filebuf<_CharT, _Traits>:: 26629: _M_get_ext_pos(__state_type& __state) 26629: { 26629: if (_M_codecvt->always_noconv()) 26629: return this->gptr() - this->egptr(); 26629: else 26629: { 26629: 26629: 26629: 26629: const int __gptr_off = 26629: _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, 26629: this->gptr() - this->eback()); 26629: return _M_ext_buf + __gptr_off - _M_ext_end; 26629: } 26629: } 26629: 26629: template 26629: bool 26629: basic_filebuf<_CharT, _Traits>:: 26629: _M_terminate_output() 26629: { 26629: 26629: bool __testvalid = true; 26629: if (this->pbase() < this->pptr()) 26629: { 26629: const int_type __tmp = this->overflow(); 26629: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 26629: __testvalid = false; 26629: } 26629: 26629: 26629: if (_M_writing && !__check_facet(_M_codecvt).always_noconv() 26629: && __testvalid) 26629: { 26629: 26629: 26629: 26629: const size_t __blen = 128; 26629: char __buf[__blen]; 26629: codecvt_base::result __r; 26629: streamsize __ilen = 0; 26629: 26629: do 26629: { 26629: char* __next; 26629: __r = _M_codecvt->unshift(_M_state_cur, __buf, 26629: __buf + __blen, __next); 26629: if (__r == codecvt_base::error) 26629: __testvalid = false; 26629: else if (__r == codecvt_base::ok || 26629: __r == codecvt_base::partial) 26629: { 26629: __ilen = __next - __buf; 26629: if (__ilen > 0) 26629: { 26629: const streamsize __elen = _M_file.xsputn(__buf, __ilen); 26629: if (__elen != __ilen) 26629: __testvalid = false; 26629: } 26629: } 26629: } 26629: while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); 26629: 26629: if (__testvalid) 26629: { 26629: 26629: 26629: 26629: 26629: const int_type __tmp = this->overflow(); 26629: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 26629: __testvalid = false; 26629: } 26629: } 26629: return __testvalid; 26629: } 26629: 26629: template 26629: int 26629: basic_filebuf<_CharT, _Traits>:: 26629: sync() 26629: { 26629: 26629: 26629: int __ret = 0; 26629: if (this->pbase() < this->pptr()) 26629: { 26629: const int_type __tmp = this->overflow(); 26629: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 26629: __ret = -1; 26629: } 26629: return __ret; 26629: } 26629: 26629: template 26629: void 26629: basic_filebuf<_CharT, _Traits>:: 26629: imbue(const locale& __loc) 26629: { 26629: bool __testvalid = true; 26629: 26629: const __codecvt_type* _M_codecvt_tmp = 0; 26629: if (__builtin_expect(has_facet<__codecvt_type>(__loc), true)) 26629: _M_codecvt_tmp = &use_facet<__codecvt_type>(__loc); 26629: 26629: if (this->is_open()) 26629: { 26629: 26629: if ((_M_reading || _M_writing) 26629: && __check_facet(_M_codecvt).encoding() == -1) 26629: __testvalid = false; 26629: else 26629: { 26629: if (_M_reading) 26629: { 26629: if (__check_facet(_M_codecvt).always_noconv()) 26629: { 26629: if (_M_codecvt_tmp 26629: && !__check_facet(_M_codecvt_tmp).always_noconv()) 26629: __testvalid = this->seekoff(0, ios_base::cur, _M_mode) 26629: != pos_type(off_type(-1)); 26629: } 26629: else 26629: { 26629: 26629: _M_ext_next = _M_ext_buf 26629: + _M_codecvt->length(_M_state_last, _M_ext_buf, 26629: _M_ext_next, 26629: this->gptr() - this->eback()); 26629: const streamsize __remainder = _M_ext_end - _M_ext_next; 26629: if (__remainder) 26629: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 26629: 26629: _M_ext_next = _M_ext_buf; 26629: _M_ext_end = _M_ext_buf + __remainder; 26629: _M_set_buffer(-1); 26629: _M_state_last = _M_state_cur = _M_state_beg; 26629: } 26629: } 26629: else if (_M_writing && (__testvalid = _M_terminate_output())) 26629: _M_set_buffer(-1); 26629: } 26629: } 26629: 26629: if (__testvalid) 26629: _M_codecvt = _M_codecvt_tmp; 26629: else 26629: _M_codecvt = 0; 26629: } 26629: 26629: 26629: 26629: 26629: extern template class basic_filebuf; 26629: extern template class basic_ifstream; 26629: extern template class basic_ofstream; 26629: extern template class basic_fstream; 26629: 26629: 26629: extern template class basic_filebuf; 26629: extern template class basic_ifstream; 26629: extern template class basic_ofstream; 26629: extern template class basic_fstream; 26629: 26629: 26629: 26629: 26629: } 26629: # 1299 "/usr/include/c++/12/fstream" 2 3 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/instrumented_mutex.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/monitoring/instrumented_mutex.h" 26629: 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/monitoring/instrumented_mutex.h" 26629: namespace rocksdb { 26629: class InstrumentedCondVar; 26629: 26629: 26629: 26629: class InstrumentedMutex { 26629: public: 26629: explicit InstrumentedMutex(bool adaptive = false) 26629: : mutex_(adaptive), stats_(nullptr), clock_(nullptr), stats_code_(0) {} 26629: 26629: explicit InstrumentedMutex(SystemClock* clock, bool adaptive = false) 26629: : mutex_(adaptive), stats_(nullptr), clock_(clock), stats_code_(0) {} 26629: 26629: InstrumentedMutex(Statistics* stats, SystemClock* clock, int stats_code, 26629: bool adaptive = false) 26629: : mutex_(adaptive), 26629: stats_(stats), 26629: clock_(clock), 26629: stats_code_(stats_code) {} 26629: # 45 "/build/reproducible-path/rocksdb-7.8.3/monitoring/instrumented_mutex.h" 26629: void Lock(); 26629: 26629: void Unlock() { mutex_.Unlock(); } 26629: 26629: void AssertHeld() { 26629: mutex_.AssertHeld(); 26629: } 26629: 26629: private: 26629: void LockInternal(); 26629: friend class InstrumentedCondVar; 26629: port::Mutex mutex_; 26629: Statistics* stats_; 26629: SystemClock* clock_; 26629: int stats_code_; 26629: 26629: 26629: 26629: }; 26629: 26629: class alignas(64U) CacheAlignedInstrumentedMutex 26629: : public InstrumentedMutex { 26629: using InstrumentedMutex::InstrumentedMutex; 26629: }; 26629: static_assert(alignof(CacheAlignedInstrumentedMutex) != 64U || 26629: sizeof(CacheAlignedInstrumentedMutex) % 64U == 0); 26629: 26629: 26629: class InstrumentedMutexLock { 26629: public: 26629: explicit InstrumentedMutexLock(InstrumentedMutex* mutex) : mutex_(mutex) { 26629: mutex_->Lock(); 26629: } 26629: 26629: ~InstrumentedMutexLock() { 26629: mutex_->Unlock(); 26629: } 26629: 26629: private: 26629: InstrumentedMutex* const mutex_; 26629: InstrumentedMutexLock(const InstrumentedMutexLock&) = delete; 26629: void operator=(const InstrumentedMutexLock&) = delete; 26629: }; 26629: 26629: 26629: 26629: class InstrumentedMutexUnlock { 26629: public: 26629: explicit InstrumentedMutexUnlock(InstrumentedMutex* mutex) : mutex_(mutex) { 26629: mutex_->Unlock(); 26629: } 26629: 26629: ~InstrumentedMutexUnlock() { mutex_->Lock(); } 26629: 26629: private: 26629: InstrumentedMutex* const mutex_; 26629: InstrumentedMutexUnlock(const InstrumentedMutexUnlock&) = delete; 26629: void operator=(const InstrumentedMutexUnlock&) = delete; 26629: }; 26629: 26629: class InstrumentedCondVar { 26629: public: 26629: explicit InstrumentedCondVar(InstrumentedMutex* instrumented_mutex) 26629: : cond_(&(instrumented_mutex->mutex_)), 26629: stats_(instrumented_mutex->stats_), 26629: clock_(instrumented_mutex->clock_), 26629: stats_code_(instrumented_mutex->stats_code_) {} 26629: 26629: void Wait(); 26629: 26629: bool TimedWait(uint64_t abs_time_us); 26629: 26629: void Signal() { 26629: cond_.Signal(); 26629: } 26629: 26629: void SignalAll() { 26629: cond_.SignalAll(); 26629: } 26629: 26629: private: 26629: void WaitInternal(); 26629: bool TimedWaitInternal(uint64_t abs_time_us); 26629: port::CondVar cond_; 26629: Statistics* stats_; 26629: SystemClock* clock_; 26629: int stats_code_; 26629: }; 26629: 26629: } 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 2 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/trace_record.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/trace_record.h" 26629: namespace rocksdb { 26629: 26629: class ColumnFamilyHandle; 26629: class DB; 26629: 26629: 26629: enum TraceType : char { 26629: kTraceNone = 0, 26629: kTraceBegin = 1, 26629: kTraceEnd = 2, 26629: 26629: kTraceWrite = 3, 26629: kTraceGet = 4, 26629: kTraceIteratorSeek = 5, 26629: kTraceIteratorSeekForPrev = 6, 26629: 26629: kBlockTraceIndexBlock = 7, 26629: 26629: kBlockTraceFilterBlock = 8, 26629: kBlockTraceDataBlock = 9, 26629: kBlockTraceUncompressionDictBlock = 10, 26629: kBlockTraceRangeDeletionBlock = 11, 26629: 26629: kIOTracer = 12, 26629: 26629: kTraceMultiGet = 13, 26629: 26629: kTraceMax, 26629: }; 26629: 26629: class GetQueryTraceRecord; 26629: class IteratorSeekQueryTraceRecord; 26629: class MultiGetQueryTraceRecord; 26629: class TraceRecordResult; 26629: class WriteQueryTraceRecord; 26629: 26629: 26629: class TraceRecord { 26629: public: 26629: explicit TraceRecord(uint64_t timestamp); 26629: 26629: virtual ~TraceRecord() = default; 26629: 26629: 26629: virtual TraceType GetTraceType() const = 0; 26629: 26629: 26629: virtual uint64_t GetTimestamp() const; 26629: 26629: class Handler { 26629: public: 26629: virtual ~Handler() = default; 26629: 26629: virtual Status Handle(const WriteQueryTraceRecord& record, 26629: std::unique_ptr* result) = 0; 26629: 26629: virtual Status Handle(const GetQueryTraceRecord& record, 26629: std::unique_ptr* result) = 0; 26629: 26629: virtual Status Handle(const IteratorSeekQueryTraceRecord& record, 26629: std::unique_ptr* result) = 0; 26629: 26629: virtual Status Handle(const MultiGetQueryTraceRecord& record, 26629: std::unique_ptr* result) = 0; 26629: }; 26629: 26629: 26629: virtual Status Accept(Handler* handler, 26629: std::unique_ptr* result) = 0; 26629: 26629: 26629: static Handler* NewExecutionHandler( 26629: DB* db, const std::vector& handles); 26629: 26629: private: 26629: uint64_t timestamp_; 26629: }; 26629: 26629: 26629: class QueryTraceRecord : public TraceRecord { 26629: public: 26629: explicit QueryTraceRecord(uint64_t timestamp); 26629: }; 26629: 26629: 26629: class WriteQueryTraceRecord : public QueryTraceRecord { 26629: public: 26629: WriteQueryTraceRecord(PinnableSlice&& write_batch_rep, uint64_t timestamp); 26629: 26629: WriteQueryTraceRecord(const std::string& write_batch_rep, uint64_t timestamp); 26629: 26629: virtual ~WriteQueryTraceRecord() override; 26629: 26629: TraceType GetTraceType() const override { return kTraceWrite; } 26629: 26629: 26629: virtual Slice GetWriteBatchRep() const; 26629: 26629: Status Accept(Handler* handler, 26629: std::unique_ptr* result) override; 26629: 26629: private: 26629: PinnableSlice rep_; 26629: }; 26629: 26629: 26629: class GetQueryTraceRecord : public QueryTraceRecord { 26629: public: 26629: GetQueryTraceRecord(uint32_t column_family_id, PinnableSlice&& key, 26629: uint64_t timestamp); 26629: 26629: GetQueryTraceRecord(uint32_t column_family_id, const std::string& key, 26629: uint64_t timestamp); 26629: 26629: virtual ~GetQueryTraceRecord() override; 26629: 26629: TraceType GetTraceType() const override { return kTraceGet; } 26629: 26629: 26629: virtual uint32_t GetColumnFamilyID() const; 26629: 26629: 26629: virtual Slice GetKey() const; 26629: 26629: Status Accept(Handler* handler, 26629: std::unique_ptr* result) override; 26629: 26629: private: 26629: uint32_t cf_id_; 26629: PinnableSlice key_; 26629: }; 26629: 26629: 26629: class IteratorQueryTraceRecord : public QueryTraceRecord { 26629: public: 26629: explicit IteratorQueryTraceRecord(uint64_t timestamp); 26629: 26629: IteratorQueryTraceRecord(PinnableSlice&& lower_bound, 26629: PinnableSlice&& upper_bound, uint64_t timestamp); 26629: 26629: IteratorQueryTraceRecord(const std::string& lower_bound, 26629: const std::string& upper_bound, uint64_t timestamp); 26629: 26629: virtual ~IteratorQueryTraceRecord() override; 26629: 26629: 26629: 26629: virtual Slice GetLowerBound() const; 26629: virtual Slice GetUpperBound() const; 26629: 26629: private: 26629: PinnableSlice lower_; 26629: PinnableSlice upper_; 26629: }; 26629: 26629: 26629: class IteratorSeekQueryTraceRecord : public IteratorQueryTraceRecord { 26629: public: 26629: 26629: enum SeekType { 26629: kSeek = kTraceIteratorSeek, 26629: kSeekForPrev = kTraceIteratorSeekForPrev 26629: }; 26629: 26629: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 26629: PinnableSlice&& key, uint64_t timestamp); 26629: 26629: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 26629: const std::string& key, uint64_t timestamp); 26629: 26629: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 26629: PinnableSlice&& key, PinnableSlice&& lower_bound, 26629: PinnableSlice&& upper_bound, uint64_t timestamp); 26629: 26629: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 26629: const std::string& key, 26629: const std::string& lower_bound, 26629: const std::string& upper_bound, 26629: uint64_t timestamp); 26629: 26629: virtual ~IteratorSeekQueryTraceRecord() override; 26629: 26629: 26629: TraceType GetTraceType() const override; 26629: 26629: 26629: virtual SeekType GetSeekType() const; 26629: 26629: 26629: virtual uint32_t GetColumnFamilyID() const; 26629: 26629: 26629: virtual Slice GetKey() const; 26629: 26629: Status Accept(Handler* handler, 26629: std::unique_ptr* result) override; 26629: 26629: private: 26629: SeekType type_; 26629: uint32_t cf_id_; 26629: PinnableSlice key_; 26629: }; 26629: 26629: 26629: class MultiGetQueryTraceRecord : public QueryTraceRecord { 26629: public: 26629: MultiGetQueryTraceRecord(std::vector column_family_ids, 26629: std::vector&& keys, 26629: uint64_t timestamp); 26629: 26629: MultiGetQueryTraceRecord(std::vector column_family_ids, 26629: const std::vector& keys, 26629: uint64_t timestamp); 26629: 26629: virtual ~MultiGetQueryTraceRecord() override; 26629: 26629: TraceType GetTraceType() const override { return kTraceMultiGet; } 26629: 26629: 26629: virtual std::vector GetColumnFamilyIDs() const; 26629: 26629: 26629: virtual std::vector GetKeys() const; 26629: 26629: Status Accept(Handler* handler, 26629: std::unique_ptr* result) override; 26629: 26629: private: 26629: std::vector cf_ids_; 26629: std::vector keys_; 26629: }; 26629: 26629: } 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/trace_replay.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/trace_replay.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/utilities/replayer.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/utilities/replayer.h" 26629: namespace rocksdb { 26629: 26629: class TraceRecord; 26629: class TraceRecordResult; 26629: 26629: struct ReplayOptions { 26629: 26629: 26629: uint32_t num_threads; 26629: 26629: 26629: 26629: 26629: 26629: 26629: double fast_forward; 26629: 26629: ReplayOptions() : num_threads(1), fast_forward(1.0) {} 26629: 26629: ReplayOptions(uint32_t num_of_threads, double fast_forward_ratio) 26629: : num_threads(num_of_threads), fast_forward(fast_forward_ratio) {} 26629: }; 26629: 26629: 26629: 26629: 26629: class Replayer { 26629: public: 26629: virtual ~Replayer() = default; 26629: 26629: 26629: 26629: virtual Status Prepare() = 0; 26629: 26629: 26629: virtual uint64_t GetHeaderTimestamp() const = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status Next(std::unique_ptr* record) = 0; 26629: # 72 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/utilities/replayer.h" 26629: virtual Status Execute(const std::unique_ptr& record, 26629: std::unique_ptr* result) = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status Replay( 26629: const ReplayOptions& options, 26629: const std::function&&)>& 26629: result_callback) = 0; 26629: }; 26629: 26629: } 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/trace_replay.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: class ColumnFamilyHandle; 26629: class ColumnFamilyData; 26629: class DB; 26629: class DBImpl; 26629: class Env; 26629: class Slice; 26629: class SystemClock; 26629: class TraceReader; 26629: class TraceWriter; 26629: class WriteBatch; 26629: 26629: struct ReadOptions; 26629: struct TraceOptions; 26629: struct WriteOptions; 26629: 26629: extern const std::string kTraceMagic; 26629: const unsigned int kTraceTimestampSize = 8; 26629: const unsigned int kTraceTypeSize = 1; 26629: const unsigned int kTracePayloadLengthSize = 4; 26629: const unsigned int kTraceMetadataSize = 26629: kTraceTimestampSize + kTraceTypeSize + kTracePayloadLengthSize; 26629: 26629: static const int kTraceFileMajorVersion = 0; 26629: static const int kTraceFileMinorVersion = 2; 26629: 26629: 26629: struct Trace { 26629: uint64_t ts; 26629: TraceType type; 26629: 26629: 26629: 26629: 26629: uint64_t payload_map = 0; 26629: 26629: 26629: std::string payload; 26629: 26629: void reset() { 26629: ts = 0; 26629: type = kTraceMax; 26629: payload_map = 0; 26629: payload.clear(); 26629: } 26629: }; 26629: 26629: enum TracePayloadType : char { 26629: 26629: 26629: kEmptyPayload = 0, 26629: kWriteBatchData = 1, 26629: kGetCFID = 2, 26629: kGetKey = 3, 26629: kIterCFID = 4, 26629: kIterKey = 5, 26629: kIterLowerBound = 6, 26629: kIterUpperBound = 7, 26629: kMultiGetSize = 8, 26629: kMultiGetCFIDs = 9, 26629: kMultiGetKeys = 10, 26629: }; 26629: 26629: class TracerHelper { 26629: public: 26629: 26629: static Status ParseVersionStr(std::string& v_string, int* v_num); 26629: 26629: 26629: static Status ParseTraceHeader(const Trace& header, int* trace_version, 26629: int* db_version); 26629: 26629: 26629: static void EncodeTrace(const Trace& trace, std::string* encoded_trace); 26629: 26629: 26629: static Status DecodeTrace(const std::string& encoded_trace, Trace* trace); 26629: 26629: 26629: static Status DecodeHeader(const std::string& encoded_trace, Trace* header); 26629: 26629: 26629: static bool SetPayloadMap(uint64_t& payload_map, 26629: const TracePayloadType payload_type); 26629: 26629: 26629: 26629: 26629: 26629: static Status DecodeTraceRecord(Trace* trace, int trace_file_version, 26629: std::unique_ptr* record); 26629: }; 26629: 26629: 26629: 26629: 26629: class Tracer { 26629: public: 26629: Tracer(SystemClock* clock, const TraceOptions& trace_options, 26629: std::unique_ptr&& trace_writer); 26629: ~Tracer(); 26629: 26629: 26629: Status Write(WriteBatch* write_batch); 26629: 26629: 26629: Status Get(ColumnFamilyHandle* cfname, const Slice& key); 26629: 26629: 26629: Status IteratorSeek(const uint32_t& cf_id, const Slice& key, 26629: const Slice& lower_bound, const Slice upper_bound); 26629: Status IteratorSeekForPrev(const uint32_t& cf_id, const Slice& key, 26629: const Slice& lower_bound, const Slice upper_bound); 26629: 26629: 26629: 26629: Status MultiGet(const size_t num_keys, ColumnFamilyHandle** column_families, 26629: const Slice* keys); 26629: 26629: Status MultiGet(const size_t num_keys, ColumnFamilyHandle* column_family, 26629: const Slice* keys); 26629: 26629: Status MultiGet(const std::vector& column_family, 26629: const std::vector& keys); 26629: 26629: 26629: 26629: bool IsTraceFileOverMax(); 26629: 26629: 26629: 26629: bool IsWriteOrderPreserved() { return trace_options_.preserve_write_order; } 26629: 26629: 26629: Status Close(); 26629: 26629: private: 26629: 26629: 26629: 26629: Status WriteHeader(); 26629: 26629: 26629: Status WriteFooter(); 26629: 26629: 26629: 26629: Status WriteTrace(const Trace& trace); 26629: 26629: 26629: 26629: bool ShouldSkipTrace(const TraceType& type); 26629: 26629: SystemClock* clock_; 26629: TraceOptions trace_options_; 26629: std::unique_ptr trace_writer_; 26629: uint64_t trace_request_count_; 26629: }; 26629: 26629: } 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 2 26629: 26629: namespace rocksdb { 26629: class SystemClock; 26629: class TraceReader; 26629: class TraceWriter; 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 26629: enum IOTraceOp : char { 26629: 26629: 26629: kIOFileSize = 0, 26629: kIOLen = 1, 26629: kIOOffset = 2, 26629: }; 26629: 26629: struct IOTraceRecord { 26629: 26629: uint64_t access_timestamp = 0; 26629: TraceType trace_type = TraceType::kTraceMax; 26629: 26629: 26629: 26629: uint64_t io_op_data = 0; 26629: std::string file_operation; 26629: uint64_t latency = 0; 26629: std::string io_status; 26629: 26629: std::string file_name; 26629: 26629: 26629: uint64_t len = 0; 26629: uint64_t offset = 0; 26629: uint64_t file_size = 0; 26629: 26629: 26629: uint64_t trace_data = 0; 26629: std::string request_id; 26629: 26629: IOTraceRecord() {} 26629: 26629: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 26629: const uint64_t& _io_op_data, const std::string& _file_operation, 26629: const uint64_t& _latency, const std::string& _io_status, 26629: const std::string& _file_name, const uint64_t& _file_size = 0) 26629: : access_timestamp(_access_timestamp), 26629: trace_type(_trace_type), 26629: io_op_data(_io_op_data), 26629: file_operation(_file_operation), 26629: latency(_latency), 26629: io_status(_io_status), 26629: file_name(_file_name), 26629: file_size(_file_size) {} 26629: 26629: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 26629: const uint64_t& _io_op_data, const std::string& _file_operation, 26629: const uint64_t& _latency, const std::string& _io_status, 26629: const std::string& _file_name, const uint64_t& _len, 26629: const uint64_t& _offset) 26629: : access_timestamp(_access_timestamp), 26629: trace_type(_trace_type), 26629: io_op_data(_io_op_data), 26629: file_operation(_file_operation), 26629: latency(_latency), 26629: io_status(_io_status), 26629: file_name(_file_name), 26629: len(_len), 26629: offset(_offset) {} 26629: }; 26629: 26629: struct IOTraceHeader { 26629: uint64_t start_time; 26629: uint32_t rocksdb_major_version; 26629: uint32_t rocksdb_minor_version; 26629: }; 26629: 26629: 26629: 26629: class IOTraceWriter { 26629: public: 26629: IOTraceWriter(SystemClock* clock, const TraceOptions& trace_options, 26629: std::unique_ptr&& trace_writer); 26629: ~IOTraceWriter() = default; 26629: 26629: IOTraceWriter(const IOTraceWriter&) = delete; 26629: IOTraceWriter& operator=(const IOTraceWriter&) = delete; 26629: IOTraceWriter(IOTraceWriter&&) = delete; 26629: IOTraceWriter& operator=(IOTraceWriter&&) = delete; 26629: 26629: Status WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 26629: 26629: 26629: 26629: Status WriteHeader(); 26629: 26629: private: 26629: SystemClock* clock_; 26629: TraceOptions trace_options_; 26629: std::unique_ptr trace_writer_; 26629: }; 26629: 26629: 26629: class IOTraceReader { 26629: public: 26629: explicit IOTraceReader(std::unique_ptr&& reader); 26629: ~IOTraceReader() = default; 26629: 26629: IOTraceReader(const IOTraceReader&) = delete; 26629: IOTraceReader& operator=(const IOTraceReader&) = delete; 26629: IOTraceReader(IOTraceReader&&) = delete; 26629: IOTraceReader& operator=(IOTraceReader&&) = delete; 26629: 26629: Status ReadHeader(IOTraceHeader* header); 26629: 26629: Status ReadIOOp(IOTraceRecord* record); 26629: 26629: private: 26629: std::unique_ptr trace_reader_; 26629: }; 26629: 26629: 26629: 26629: class IOTracer { 26629: public: 26629: IOTracer(); 26629: ~IOTracer(); 26629: 26629: IOTracer(const IOTracer&) = delete; 26629: IOTracer& operator=(const IOTracer&) = delete; 26629: IOTracer(IOTracer&&) = delete; 26629: IOTracer& operator=(IOTracer&&) = delete; 26629: # 163 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 26629: Status 26629: StartIOTrace(SystemClock* clock, const TraceOptions& trace_options, 26629: std::unique_ptr&& trace_writer); 26629: 26629: 26629: void EndIOTrace(); 26629: 26629: bool is_tracing_enabled() const { return tracing_enabled; } 26629: 26629: void WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 26629: 26629: private: 26629: TraceOptions trace_options_; 26629: 26629: InstrumentedMutex trace_writer_mutex_; 26629: std::atomic writer_; 26629: 26629: 26629: 26629: bool tracing_enabled; 26629: }; 26629: 26629: } 26629: # 11 "/build/reproducible-path/rocksdb-7.8.3/env/file_system_tracer.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FileSystemTracingWrapper : public FileSystemWrapper { 26629: public: 26629: FileSystemTracingWrapper(const std::shared_ptr& t, 26629: const std::shared_ptr& io_tracer) 26629: : FileSystemWrapper(t), 26629: io_tracer_(io_tracer), 26629: clock_(SystemClock::Default().get()) {} 26629: 26629: ~FileSystemTracingWrapper() override {} 26629: 26629: static const char* kClassName() { return "FileSystemTracing"; } 26629: const char* Name() const override { return kClassName(); } 26629: 26629: IOStatus NewSequentialFile(const std::string& fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus NewRandomAccessFile(const std::string& fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus NewWritableFile(const std::string& fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus ReopenWritableFile(const std::string& fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus ReuseWritableFile(const std::string& fname, 26629: const std::string& old_fname, 26629: const FileOptions& file_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus NewRandomRWFile(const std::string& fname, const FileOptions& options, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 26629: std::unique_ptr* result, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 26629: std::vector* r, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus DeleteFile(const std::string& fname, const IOOptions& options, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus CreateDir(const std::string& dirname, const IOOptions& options, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus CreateDirIfMissing(const std::string& dirname, 26629: const IOOptions& options, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus DeleteDir(const std::string& dirname, const IOOptions& options, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus GetFileSize(const std::string& fname, const IOOptions& options, 26629: uint64_t* file_size, IODebugContext* dbg) override; 26629: 26629: IOStatus Truncate(const std::string& fname, size_t size, 26629: const IOOptions& options, IODebugContext* dbg) override; 26629: 26629: private: 26629: std::shared_ptr io_tracer_; 26629: SystemClock* clock_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FileSystemPtr { 26629: public: 26629: FileSystemPtr(std::shared_ptr fs, 26629: const std::shared_ptr& io_tracer) 26629: : fs_(fs), io_tracer_(io_tracer) { 26629: fs_tracer_ = std::make_shared(fs_, io_tracer_); 26629: } 26629: 26629: std::shared_ptr operator->() const { 26629: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 26629: return fs_tracer_; 26629: } else { 26629: return fs_; 26629: } 26629: } 26629: 26629: 26629: FileSystem* get() const { 26629: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 26629: return fs_tracer_.get(); 26629: } else { 26629: return fs_.get(); 26629: } 26629: } 26629: 26629: private: 26629: std::shared_ptr fs_; 26629: std::shared_ptr io_tracer_; 26629: std::shared_ptr fs_tracer_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FSSequentialFileTracingWrapper : public FSSequentialFileOwnerWrapper { 26629: public: 26629: FSSequentialFileTracingWrapper(std::unique_ptr&& t, 26629: std::shared_ptr io_tracer, 26629: const std::string& file_name) 26629: : FSSequentialFileOwnerWrapper(std::move(t)), 26629: io_tracer_(io_tracer), 26629: clock_(SystemClock::Default().get()), 26629: file_name_(file_name) {} 26629: 26629: ~FSSequentialFileTracingWrapper() override {} 26629: 26629: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 26629: char* scratch, IODebugContext* dbg) override; 26629: 26629: IOStatus InvalidateCache(size_t offset, size_t length) override; 26629: 26629: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 26629: Slice* result, char* scratch, 26629: IODebugContext* dbg) override; 26629: 26629: private: 26629: std::shared_ptr io_tracer_; 26629: SystemClock* clock_; 26629: std::string file_name_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FSSequentialFilePtr { 26629: public: 26629: FSSequentialFilePtr() = delete; 26629: FSSequentialFilePtr(std::unique_ptr&& fs, 26629: const std::shared_ptr& io_tracer, 26629: const std::string& file_name) 26629: : io_tracer_(io_tracer), 26629: fs_tracer_(std::move(fs), io_tracer_, 26629: file_name.substr(file_name.find_last_of("/\\") + 26629: 1) ) {} 26629: 26629: FSSequentialFile* operator->() const { 26629: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 26629: return const_cast(&fs_tracer_); 26629: } else { 26629: return fs_tracer_.target(); 26629: } 26629: } 26629: 26629: FSSequentialFile* get() const { 26629: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 26629: return const_cast(&fs_tracer_); 26629: } else { 26629: return fs_tracer_.target(); 26629: } 26629: } 26629: 26629: private: 26629: std::shared_ptr io_tracer_; 26629: FSSequentialFileTracingWrapper fs_tracer_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FSRandomAccessFileTracingWrapper : public FSRandomAccessFileOwnerWrapper { 26629: public: 26629: FSRandomAccessFileTracingWrapper(std::unique_ptr&& t, 26629: std::shared_ptr io_tracer, 26629: const std::string& file_name) 26629: : FSRandomAccessFileOwnerWrapper(std::move(t)), 26629: io_tracer_(io_tracer), 26629: clock_(SystemClock::Default().get()), 26629: file_name_(file_name) {} 26629: 26629: ~FSRandomAccessFileTracingWrapper() override {} 26629: 26629: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 26629: Slice* result, char* scratch, 26629: IODebugContext* dbg) const override; 26629: 26629: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 26629: const IOOptions& options, IODebugContext* dbg) override; 26629: 26629: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus InvalidateCache(size_t offset, size_t length) override; 26629: 26629: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 26629: std::function cb, 26629: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 26629: IODebugContext* dbg) override; 26629: 26629: void ReadAsyncCallback(const FSReadRequest& req, void* cb_arg); 26629: 26629: private: 26629: std::shared_ptr io_tracer_; 26629: SystemClock* clock_; 26629: 26629: std::string file_name_; 26629: 26629: struct ReadAsyncCallbackInfo { 26629: uint64_t start_time_; 26629: std::function cb_; 26629: void* cb_arg_; 26629: std::string file_op_; 26629: }; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FSRandomAccessFilePtr { 26629: public: 26629: FSRandomAccessFilePtr(std::unique_ptr&& fs, 26629: const std::shared_ptr& io_tracer, 26629: const std::string& file_name) 26629: : io_tracer_(io_tracer), 26629: fs_tracer_(std::move(fs), io_tracer_, 26629: file_name.substr(file_name.find_last_of("/\\") + 26629: 1) ) {} 26629: 26629: FSRandomAccessFile* operator->() const { 26629: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 26629: return const_cast(&fs_tracer_); 26629: } else { 26629: return fs_tracer_.target(); 26629: } 26629: } 26629: 26629: FSRandomAccessFile* get() const { 26629: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 26629: return const_cast(&fs_tracer_); 26629: } else { 26629: return fs_tracer_.target(); 26629: } 26629: } 26629: 26629: private: 26629: std::shared_ptr io_tracer_; 26629: FSRandomAccessFileTracingWrapper fs_tracer_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FSWritableFileTracingWrapper : public FSWritableFileOwnerWrapper { 26629: public: 26629: FSWritableFileTracingWrapper(std::unique_ptr&& t, 26629: std::shared_ptr io_tracer, 26629: const std::string& file_name) 26629: : FSWritableFileOwnerWrapper(std::move(t)), 26629: io_tracer_(io_tracer), 26629: clock_(SystemClock::Default().get()), 26629: file_name_(file_name) {} 26629: 26629: ~FSWritableFileTracingWrapper() override {} 26629: 26629: IOStatus Append(const Slice& data, const IOOptions& options, 26629: IODebugContext* dbg) override; 26629: IOStatus Append(const Slice& data, const IOOptions& options, 26629: const DataVerificationInfo& , 26629: IODebugContext* dbg) override { 26629: return Append(data, options, dbg); 26629: } 26629: 26629: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 26629: const IOOptions& options, 26629: IODebugContext* dbg) override; 26629: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 26629: const IOOptions& options, 26629: const DataVerificationInfo& , 26629: IODebugContext* dbg) override { 26629: return PositionedAppend(data, offset, options, dbg); 26629: } 26629: 26629: IOStatus Truncate(uint64_t size, const IOOptions& options, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 26629: 26629: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override; 26629: 26629: IOStatus InvalidateCache(size_t offset, size_t length) override; 26629: 26629: private: 26629: std::shared_ptr io_tracer_; 26629: SystemClock* clock_; 26629: 26629: std::string file_name_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FSWritableFilePtr { 26629: public: 26629: FSWritableFilePtr(std::unique_ptr&& fs, 26629: const std::shared_ptr& io_tracer, 26629: const std::string& file_name) 26629: : io_tracer_(io_tracer) { 26629: fs_tracer_.reset(new FSWritableFileTracingWrapper( 26629: std::move(fs), io_tracer_, 26629: file_name.substr(file_name.find_last_of("/\\") + 26629: 1) )); 26629: } 26629: 26629: FSWritableFile* operator->() const { 26629: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 26629: return fs_tracer_.get(); 26629: } else { 26629: return fs_tracer_->target(); 26629: } 26629: } 26629: 26629: FSWritableFile* get() const { 26629: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 26629: return fs_tracer_.get(); 26629: } else if (fs_tracer_) { 26629: return fs_tracer_->target(); 26629: } else { 26629: return nullptr; 26629: } 26629: } 26629: 26629: void reset() { 26629: fs_tracer_.reset(); 26629: io_tracer_ = nullptr; 26629: } 26629: 26629: private: 26629: std::shared_ptr io_tracer_; 26629: std::unique_ptr fs_tracer_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FSRandomRWFileTracingWrapper : public FSRandomRWFileOwnerWrapper { 26629: public: 26629: FSRandomRWFileTracingWrapper(std::unique_ptr&& t, 26629: std::shared_ptr io_tracer, 26629: const std::string& file_name) 26629: : FSRandomRWFileOwnerWrapper(std::move(t)), 26629: io_tracer_(io_tracer), 26629: clock_(SystemClock::Default().get()), 26629: file_name_(file_name) {} 26629: 26629: ~FSRandomRWFileTracingWrapper() override {} 26629: 26629: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 26629: IODebugContext* dbg) override; 26629: 26629: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 26629: Slice* result, char* scratch, 26629: IODebugContext* dbg) const override; 26629: 26629: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 26629: 26629: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 26629: 26629: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 26629: 26629: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 26629: 26629: private: 26629: std::shared_ptr io_tracer_; 26629: SystemClock* clock_; 26629: 26629: std::string file_name_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class FSRandomRWFilePtr { 26629: public: 26629: FSRandomRWFilePtr(std::unique_ptr&& fs, 26629: std::shared_ptr io_tracer, 26629: const std::string& file_name) 26629: : io_tracer_(io_tracer), 26629: fs_tracer_(std::move(fs), io_tracer_, 26629: file_name.substr(file_name.find_last_of("/\\") + 26629: 1) ) {} 26629: 26629: FSRandomRWFile* operator->() const { 26629: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 26629: return const_cast(&fs_tracer_); 26629: } else { 26629: return fs_tracer_.target(); 26629: } 26629: } 26629: 26629: FSRandomRWFile* get() const { 26629: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 26629: return const_cast(&fs_tracer_); 26629: } else { 26629: return fs_tracer_.target(); 26629: } 26629: } 26629: 26629: private: 26629: std::shared_ptr io_tracer_; 26629: FSRandomRWFileTracingWrapper fs_tracer_; 26629: }; 26629: 26629: } 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 2 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: class RateLimiter { 26629: public: 26629: enum class OpType { 26629: kRead, 26629: kWrite, 26629: }; 26629: 26629: enum class Mode { 26629: kReadsOnly, 26629: kWritesOnly, 26629: kAllIo, 26629: }; 26629: 26629: 26629: explicit RateLimiter(Mode mode = Mode::kWritesOnly) : mode_(mode) {} 26629: 26629: virtual ~RateLimiter() {} 26629: 26629: 26629: 26629: virtual void SetBytesPerSecond(int64_t bytes_per_second) = 0; 26629: # 52 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 26629: virtual void Request(const int64_t , const Env::IOPriority ) { 26629: 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 26629: (static_cast ( 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 26629: false 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 26629: "false" 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 26629: , "./include/rocksdb/rate_limiter.h", 53, __extension__ __PRETTY_FUNCTION__)) 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 26629: ; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 26629: Statistics* ) { 26629: 26629: 26629: Request(bytes, pri); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 26629: Statistics* stats, OpType op_type) { 26629: if (IsRateLimited(op_type)) { 26629: Request(bytes, pri, stats); 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual size_t RequestToken(size_t bytes, size_t alignment, 26629: Env::IOPriority io_priority, Statistics* stats, 26629: RateLimiter::OpType op_type); 26629: 26629: 26629: virtual int64_t GetSingleBurstBytes() const = 0; 26629: 26629: 26629: virtual int64_t GetTotalBytesThrough( 26629: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 26629: 26629: 26629: virtual int64_t GetTotalRequests( 26629: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status GetTotalPendingRequests( 26629: int64_t* total_pending_requests, 26629: const Env::IOPriority pri = Env::IO_TOTAL) const { 26629: 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 26629: (static_cast ( 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 26629: total_pending_requests != nullptr 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 26629: "total_pending_requests != nullptr" 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 26629: , "./include/rocksdb/rate_limiter.h", 106, __extension__ __PRETTY_FUNCTION__)) 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 26629: ; 26629: (void)total_pending_requests; 26629: (void)pri; 26629: return Status::NotSupported(); 26629: } 26629: 26629: virtual int64_t GetBytesPerSecond() const = 0; 26629: 26629: virtual bool IsRateLimited(OpType op_type) { 26629: if ((mode_ == RateLimiter::Mode::kWritesOnly && 26629: op_type == RateLimiter::OpType::kRead) || 26629: (mode_ == RateLimiter::Mode::kReadsOnly && 26629: op_type == RateLimiter::OpType::kWrite)) { 26629: return false; 26629: } 26629: return true; 26629: } 26629: 26629: protected: 26629: Mode GetMode() { return mode_; } 26629: 26629: private: 26629: const Mode mode_; 26629: }; 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 26629: extern RateLimiter* NewGenericRateLimiter( 26629: int64_t rate_bytes_per_sec, int64_t refill_period_us = 100 * 1000, 26629: int32_t fairness = 10, 26629: RateLimiter::Mode mode = RateLimiter::Mode::kWritesOnly, 26629: bool auto_tuned = false); 26629: 26629: } 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: class Statistics; 26629: class HistogramImpl; 26629: class SystemClock; 26629: 26629: using AlignedBuf = std::unique_ptr; 26629: 26629: 26629: FSReadRequest Align(const FSReadRequest& r, size_t alignment); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool TryMerge(FSReadRequest* dest, const FSReadRequest& src); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class RandomAccessFileReader { 26629: private: 26629: 26629: void NotifyOnFileReadFinish( 26629: uint64_t offset, size_t length, 26629: const FileOperationInfo::StartTimePoint& start_ts, 26629: const FileOperationInfo::FinishTimePoint& finish_ts, 26629: const Status& status) const { 26629: FileOperationInfo info(FileOperationType::kRead, file_name_, start_ts, 26629: finish_ts, status, file_temperature_); 26629: info.offset = offset; 26629: info.length = length; 26629: 26629: for (auto& listener : listeners_) { 26629: listener->OnFileReadFinish(info); 26629: } 26629: info.status.PermitUncheckedError(); 26629: } 26629: 26629: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 26629: const std::string& file_path, size_t length, 26629: uint64_t offset) const { 26629: if (listeners_.empty()) { 26629: return; 26629: } 26629: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 26629: 26629: for (auto& listener : listeners_) { 26629: listener->OnIOError(io_error_info); 26629: } 26629: io_status.PermitUncheckedError(); 26629: } 26629: 26629: 26629: 26629: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 26629: 26629: FSRandomAccessFilePtr file_; 26629: std::string file_name_; 26629: SystemClock* clock_; 26629: Statistics* stats_; 26629: uint32_t hist_type_; 26629: HistogramImpl* file_read_hist_; 26629: RateLimiter* rate_limiter_; 26629: std::vector> listeners_; 26629: const Temperature file_temperature_; 26629: const bool is_last_level_; 26629: 26629: struct ReadAsyncInfo { 26629: ReadAsyncInfo(std::function cb, 26629: void* cb_arg, uint64_t start_time) 26629: : cb_(cb), 26629: cb_arg_(cb_arg), 26629: start_time_(start_time), 26629: user_scratch_(nullptr), 26629: user_aligned_buf_(nullptr), 26629: user_offset_(0), 26629: user_len_(0), 26629: is_aligned_(false) {} 26629: 26629: std::function cb_; 26629: void* cb_arg_; 26629: uint64_t start_time_; 26629: 26629: FileOperationInfo::StartTimePoint fs_start_ts_; 26629: 26629: 26629: char* user_scratch_; 26629: AlignedBuf* user_aligned_buf_; 26629: uint64_t user_offset_; 26629: size_t user_len_; 26629: Slice user_result_; 26629: 26629: AlignedBuffer buf_; 26629: bool is_aligned_; 26629: }; 26629: 26629: public: 26629: explicit RandomAccessFileReader( 26629: std::unique_ptr&& raf, const std::string& _file_name, 26629: SystemClock* clock = nullptr, 26629: const std::shared_ptr& io_tracer = nullptr, 26629: Statistics* stats = nullptr, uint32_t hist_type = 0, 26629: HistogramImpl* file_read_hist = nullptr, 26629: RateLimiter* rate_limiter = nullptr, 26629: const std::vector>& listeners = {}, 26629: Temperature file_temperature = Temperature::kUnknown, 26629: bool is_last_level = false) 26629: : file_(std::move(raf), io_tracer, _file_name), 26629: file_name_(std::move(_file_name)), 26629: clock_(clock), 26629: stats_(stats), 26629: hist_type_(hist_type), 26629: file_read_hist_(file_read_hist), 26629: rate_limiter_(rate_limiter), 26629: listeners_(), 26629: file_temperature_(file_temperature), 26629: is_last_level_(is_last_level) { 26629: 26629: std::for_each(listeners.begin(), listeners.end(), 26629: [this](const std::shared_ptr& e) { 26629: if (e->ShouldBeNotifiedOnFileIO()) { 26629: listeners_.emplace_back(e); 26629: } 26629: }); 26629: 26629: 26629: 26629: } 26629: 26629: static IOStatus Create(const std::shared_ptr& fs, 26629: const std::string& fname, const FileOptions& file_opts, 26629: std::unique_ptr* reader, 26629: IODebugContext* dbg); 26629: RandomAccessFileReader(const RandomAccessFileReader&) = delete; 26629: RandomAccessFileReader& operator=(const RandomAccessFileReader&) = delete; 26629: # 178 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 26629: IOStatus Read(const IOOptions& opts, uint64_t offset, size_t n, Slice* result, 26629: char* scratch, AlignedBuf* aligned_buf, 26629: Env::IOPriority rate_limiter_priority) const; 26629: # 191 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 26629: IOStatus MultiRead(const IOOptions& opts, FSReadRequest* reqs, 26629: size_t num_reqs, AlignedBuf* aligned_buf, 26629: Env::IOPriority rate_limiter_priority) const; 26629: 26629: IOStatus Prefetch(uint64_t offset, size_t n, 26629: const Env::IOPriority rate_limiter_priority) const { 26629: IOOptions opts; 26629: opts.rate_limiter_priority = rate_limiter_priority; 26629: return file_->Prefetch(offset, n, opts, nullptr); 26629: } 26629: 26629: FSRandomAccessFile* file() { return file_.get(); } 26629: 26629: const std::string& file_name() const { return file_name_; } 26629: 26629: bool use_direct_io() const { return file_->use_direct_io(); } 26629: 26629: IOStatus PrepareIOOptions(const ReadOptions& ro, IOOptions& opts); 26629: 26629: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 26629: std::function cb, 26629: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 26629: AlignedBuf* aligned_buf); 26629: 26629: void ReadAsyncCallback(const FSReadRequest& req, void* cb_arg); 26629: }; 26629: } 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/memory/memory_allocator.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: struct CustomDeleter { 26629: CustomDeleter(MemoryAllocator* a = nullptr) : allocator(a) {} 26629: 26629: void operator()(char* ptr) const { 26629: if (allocator) { 26629: allocator->Deallocate(reinterpret_cast(ptr)); 26629: } else { 26629: delete[] ptr; 26629: } 26629: } 26629: 26629: MemoryAllocator* allocator; 26629: }; 26629: 26629: using CacheAllocationPtr = std::unique_ptr; 26629: 26629: inline CacheAllocationPtr AllocateBlock(size_t size, 26629: MemoryAllocator* allocator) { 26629: if (allocator) { 26629: auto block = reinterpret_cast(allocator->Allocate(size)); 26629: return CacheAllocationPtr(block, allocator); 26629: } 26629: return CacheAllocationPtr(new char[size]); 26629: } 26629: 26629: } 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/options/cf_options.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/options/db_options.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: class SystemClock; 26629: 26629: struct ImmutableDBOptions { 26629: static const char* kName() { return "ImmutableDBOptions"; } 26629: ImmutableDBOptions(); 26629: explicit ImmutableDBOptions(const DBOptions& options); 26629: 26629: void Dump(Logger* log) const; 26629: 26629: bool create_if_missing; 26629: bool create_missing_column_families; 26629: bool error_if_exists; 26629: bool paranoid_checks; 26629: bool flush_verify_memtable_count; 26629: bool track_and_verify_wals_in_manifest; 26629: bool verify_sst_unique_id_in_manifest; 26629: Env* env; 26629: std::shared_ptr rate_limiter; 26629: std::shared_ptr sst_file_manager; 26629: std::shared_ptr info_log; 26629: InfoLogLevel info_log_level; 26629: int max_file_opening_threads; 26629: std::shared_ptr statistics; 26629: bool use_fsync; 26629: std::vector db_paths; 26629: std::string db_log_dir; 26629: 26629: 26629: 26629: std::string wal_dir; 26629: size_t max_log_file_size; 26629: size_t log_file_time_to_roll; 26629: size_t keep_log_file_num; 26629: size_t recycle_log_file_num; 26629: uint64_t max_manifest_file_size; 26629: int table_cache_numshardbits; 26629: uint64_t WAL_ttl_seconds; 26629: uint64_t WAL_size_limit_MB; 26629: uint64_t max_write_batch_group_size_bytes; 26629: size_t manifest_preallocation_size; 26629: bool allow_mmap_reads; 26629: bool allow_mmap_writes; 26629: bool use_direct_reads; 26629: bool use_direct_io_for_flush_and_compaction; 26629: bool allow_fallocate; 26629: bool is_fd_close_on_exec; 26629: bool advise_random_on_open; 26629: size_t db_write_buffer_size; 26629: std::shared_ptr write_buffer_manager; 26629: DBOptions::AccessHint access_hint_on_compaction_start; 26629: size_t random_access_max_buffer_size; 26629: bool use_adaptive_mutex; 26629: std::vector> listeners; 26629: bool enable_thread_tracking; 26629: bool enable_pipelined_write; 26629: bool unordered_write; 26629: bool allow_concurrent_memtable_write; 26629: bool enable_write_thread_adaptive_yield; 26629: uint64_t write_thread_max_yield_usec; 26629: uint64_t write_thread_slow_yield_usec; 26629: bool skip_stats_update_on_db_open; 26629: bool skip_checking_sst_file_sizes_on_db_open; 26629: WALRecoveryMode wal_recovery_mode; 26629: bool allow_2pc; 26629: std::shared_ptr row_cache; 26629: 26629: WalFilter* wal_filter; 26629: 26629: bool fail_if_options_file_error; 26629: bool dump_malloc_stats; 26629: bool avoid_flush_during_recovery; 26629: bool allow_ingest_behind; 26629: bool two_write_queues; 26629: bool manual_wal_flush; 26629: CompressionType wal_compression; 26629: bool atomic_flush; 26629: bool avoid_unnecessary_blocking_io; 26629: bool persist_stats_to_disk; 26629: bool write_dbid_to_manifest; 26629: size_t log_readahead_size; 26629: std::shared_ptr file_checksum_gen_factory; 26629: bool best_efforts_recovery; 26629: int max_bgerror_resume_count; 26629: uint64_t bgerror_resume_retry_interval; 26629: bool allow_data_in_errors; 26629: std::string db_host_id; 26629: FileTypeSet checksum_handoff_file_types; 26629: CacheTier lowest_used_cache_tier; 26629: 26629: std::shared_ptr fs; 26629: SystemClock* clock; 26629: Statistics* stats; 26629: Logger* logger; 26629: std::shared_ptr compaction_service; 26629: bool enforce_single_del_contracts; 26629: 26629: bool IsWalDirSameAsDBPath() const; 26629: bool IsWalDirSameAsDBPath(const std::string& path) const; 26629: const std::string& GetWalDir() const; 26629: const std::string& GetWalDir(const std::string& path) const; 26629: }; 26629: 26629: struct MutableDBOptions { 26629: static const char* kName() { return "MutableDBOptions"; } 26629: MutableDBOptions(); 26629: explicit MutableDBOptions(const DBOptions& options); 26629: 26629: void Dump(Logger* log) const; 26629: 26629: int max_background_jobs; 26629: int max_background_compactions; 26629: uint32_t max_subcompactions; 26629: bool avoid_flush_during_shutdown; 26629: size_t writable_file_max_buffer_size; 26629: uint64_t delayed_write_rate; 26629: uint64_t max_total_wal_size; 26629: uint64_t delete_obsolete_files_period_micros; 26629: unsigned int stats_dump_period_sec; 26629: unsigned int stats_persist_period_sec; 26629: size_t stats_history_buffer_size; 26629: int max_open_files; 26629: uint64_t bytes_per_sync; 26629: uint64_t wal_bytes_per_sync; 26629: bool strict_bytes_per_sync; 26629: size_t compaction_readahead_size; 26629: int max_background_flushes; 26629: }; 26629: 26629: 26629: Status GetStringFromMutableDBOptions(const ConfigOptions& config_options, 26629: const MutableDBOptions& mutable_opts, 26629: std::string* opt_string); 26629: 26629: Status GetMutableDBOptionsFromStrings( 26629: const MutableDBOptions& base_options, 26629: const std::unordered_map& options_map, 26629: MutableDBOptions* new_options); 26629: 26629: bool MutableDBOptionsAreEqual(const MutableDBOptions& this_options, 26629: const MutableDBOptions& that_options); 26629: 26629: 26629: } 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/options/cf_options.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/malloc.h" 1 3 4 26629: # 24 "/usr/include/malloc.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 25 "/usr/include/malloc.h" 2 3 4 26629: # 36 "/usr/include/malloc.h" 3 4 26629: 26629: # 36 "/usr/include/malloc.h" 3 4 26629: extern "C" { 26629: 26629: 26629: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 26629: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: extern void *calloc (size_t __nmemb, size_t __size) 26629: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern void *realloc (void *__ptr, size_t __size) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) 26629: __attribute__ ((__malloc__ (__builtin_free, 1))); 26629: 26629: 26629: extern void free (void *__ptr) noexcept (true); 26629: 26629: 26629: extern void *memalign (size_t __alignment, size_t __size) 26629: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 26629: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 26629: 26629: 26629: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 26629: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 26629: 26629: 26629: 26629: extern void *pvalloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 26629: 26629: 26629: 26629: struct mallinfo 26629: { 26629: int arena; 26629: int ordblks; 26629: int smblks; 26629: int hblks; 26629: int hblkhd; 26629: int usmblks; 26629: int fsmblks; 26629: int uordblks; 26629: int fordblks; 26629: int keepcost; 26629: }; 26629: 26629: 26629: 26629: 26629: struct mallinfo2 26629: { 26629: size_t arena; 26629: size_t ordblks; 26629: size_t smblks; 26629: size_t hblks; 26629: size_t hblkhd; 26629: size_t usmblks; 26629: size_t fsmblks; 26629: size_t uordblks; 26629: size_t fordblks; 26629: size_t keepcost; 26629: }; 26629: 26629: 26629: extern struct mallinfo mallinfo (void) noexcept (true) __attribute__ ((__deprecated__)); 26629: 26629: 26629: extern struct mallinfo2 mallinfo2 (void) noexcept (true); 26629: # 144 "/usr/include/malloc.h" 3 4 26629: extern int mallopt (int __param, int __val) noexcept (true); 26629: 26629: 26629: 26629: extern int malloc_trim (size_t __pad) noexcept (true); 26629: 26629: 26629: 26629: extern size_t malloc_usable_size (void *__ptr) noexcept (true); 26629: 26629: 26629: extern void malloc_stats (void) noexcept (true); 26629: 26629: 26629: extern int malloc_info (int __options, FILE *__fp) noexcept (true); 26629: 26629: } 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 8 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 2 26629: # 24 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 26629: 26629: # 24 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct KillPoint { 26629: public: 26629: 26629: 26629: int rocksdb_kill_odds = 0; 26629: 26629: std::vector rocksdb_kill_exclude_prefixes; 26629: 26629: void TestKillRandom(std::string kill_point, int odds, 26629: const std::string& srcfile, int srcline); 26629: 26629: static KillPoint* GetInstance(); 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 63 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 26629: namespace rocksdb { 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 26629: class SyncPoint { 26629: public: 26629: static SyncPoint* GetInstance(); 26629: 26629: SyncPoint(const SyncPoint&) = delete; 26629: SyncPoint& operator=(const SyncPoint&) = delete; 26629: ~SyncPoint(); 26629: 26629: struct SyncPointPair { 26629: std::string predecessor; 26629: std::string successor; 26629: }; 26629: 26629: 26629: 26629: void LoadDependency(const std::vector& dependencies); 26629: 26629: 26629: 26629: 26629: 26629: void LoadDependencyAndMarkers(const std::vector& dependencies, 26629: const std::vector& markers); 26629: 26629: 26629: 26629: 26629: void SetCallBack(const std::string& point, 26629: const std::function& callback); 26629: 26629: 26629: void ClearCallBack(const std::string& point); 26629: 26629: 26629: void ClearAllCallBacks(); 26629: 26629: 26629: void EnableProcessing(); 26629: 26629: 26629: void DisableProcessing(); 26629: 26629: 26629: void ClearTrace(); 26629: 26629: 26629: 26629: 26629: void Process(const Slice& point, void* cb_arg = nullptr); 26629: 26629: 26629: 26629: template 26629: void Process(const char (&point)[kLen], void* cb_arg = nullptr) { 26629: static_assert(kLen > 0, "Must not be empty"); 26629: 26629: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 3 4 26629: (static_cast ( 26629: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 26629: point[kLen - 1] == '\0' 26629: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 26629: "point[kLen - 1] == '\\0'" 26629: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 3 4 26629: , "./test_util/sync_point.h", 129, __extension__ __PRETTY_FUNCTION__)) 26629: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 26629: ; 26629: Process(Slice(point, kLen - 1), cb_arg); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct Data; 26629: 26629: private: 26629: 26629: SyncPoint(); 26629: Data* impl_; 26629: }; 26629: 26629: 26629: 26629: void SetupSyncPointsToMockDirectIO(); 26629: } 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/compression_context_cache.h" 1 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/util/compression_context_cache.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: class ZSTDUncompressCachedData; 26629: 26629: class CompressionContextCache { 26629: public: 26629: 26629: static CompressionContextCache* Instance(); 26629: static void InitSingleton(); 26629: CompressionContextCache(const CompressionContextCache&) = delete; 26629: CompressionContextCache& operator=(const CompressionContextCache&) = delete; 26629: 26629: ZSTDUncompressCachedData GetCachedZSTDUncompressData(); 26629: void ReturnCachedZSTDUncompressData(int64_t idx); 26629: 26629: private: 26629: 26629: CompressionContextCache(); 26629: ~CompressionContextCache(); 26629: 26629: class Rep; 26629: Rep* rep_; 26629: }; 26629: 26629: } 26629: # 29 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/string_util.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/util/string_util.h" 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: 26629: extern std::vector StringSplit(const std::string& arg, char delim); 26629: 26629: 26629: extern void AppendNumberTo(std::string* str, uint64_t num); 26629: 26629: 26629: 26629: extern void AppendEscapedStringTo(std::string* str, const Slice& value); 26629: 26629: 26629: 26629: template 26629: inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { 26629: const char* digitChars = uppercase ? "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 26629: : "0123456789abcdefghijklmnopqrstuvwxyz"; 26629: for (size_t i = n; i > 0; --i) { 26629: (*buf)[i - 1] = digitChars[static_cast(v % kBase)]; 26629: v /= kBase; 26629: } 26629: *buf += n; 26629: } 26629: # 51 "/build/reproducible-path/rocksdb-7.8.3/util/string_util.h" 26629: template 26629: inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { 26629: while (n) { 26629: char c = **buf; 26629: *v *= static_cast(kBase); 26629: if (c >= '0' && (kBase >= 10 ? c <= '9' : c < '0' + kBase)) { 26629: *v += static_cast(c - '0'); 26629: } else if (kBase > 10 && c >= 'A' && c < 'A' + kBase - 10) { 26629: *v += static_cast(c - 'A' + 10); 26629: } else if (kBase > 10 && c >= 'a' && c < 'a' + kBase - 10) { 26629: *v += static_cast(c - 'a' + 10); 26629: } else { 26629: return false; 26629: } 26629: --n; 26629: ++*buf; 26629: } 26629: return true; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: extern std::string NumberToHumanString(int64_t num); 26629: 26629: 26629: 26629: extern std::string BytesToHumanString(uint64_t bytes); 26629: 26629: 26629: 26629: extern std::string TimeToHumanString(int unixtime); 26629: 26629: 26629: int AppendHumanMicros(uint64_t micros, char* output, int len, 26629: bool fixed_format); 26629: 26629: 26629: int AppendHumanBytes(uint64_t bytes, char* output, int len); 26629: 26629: 26629: 26629: extern std::string EscapeString(const Slice& value); 26629: 26629: 26629: 26629: 26629: 26629: extern bool ConsumeDecimalNumber(Slice* in, uint64_t* val); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool isSpecialChar(const char c); 26629: 26629: 26629: 26629: 26629: char UnescapeChar(const char c); 26629: 26629: 26629: 26629: 26629: char EscapeChar(const char c); 26629: # 129 "/build/reproducible-path/rocksdb-7.8.3/util/string_util.h" 26629: std::string EscapeOptionString(const std::string& raw_string); 26629: 26629: 26629: 26629: 26629: 26629: 26629: std::string UnescapeOptionString(const std::string& escaped_string); 26629: 26629: std::string trim(const std::string& str); 26629: 26629: 26629: bool EndsWith(const std::string& string, const std::string& pattern); 26629: 26629: 26629: bool StartsWith(const std::string& string, const std::string& pattern); 26629: 26629: 26629: bool ParseBoolean(const std::string& type, const std::string& value); 26629: 26629: uint8_t ParseUint8(const std::string& value); 26629: 26629: uint32_t ParseUint32(const std::string& value); 26629: 26629: int32_t ParseInt32(const std::string& value); 26629: 26629: 26629: uint64_t ParseUint64(const std::string& value); 26629: 26629: int ParseInt(const std::string& value); 26629: 26629: int64_t ParseInt64(const std::string& value); 26629: 26629: double ParseDouble(const std::string& value); 26629: 26629: size_t ParseSizeT(const std::string& value); 26629: 26629: std::vector ParseVectorInt(const std::string& value); 26629: 26629: bool SerializeIntVector(const std::vector& vec, std::string* value); 26629: 26629: extern const std::string kNullptrString; 26629: 26629: 26629: 26629: extern std::string errnoStr(int err); 26629: 26629: } 26629: # 30 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: 26629: 26629: # 1 "/usr/include/snappy.h" 1 3 4 26629: # 42 "/usr/include/snappy.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 43 "/usr/include/snappy.h" 2 3 4 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/snappy-stubs-public.h" 1 3 4 26629: # 41 "/usr/include/snappy-stubs-public.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 1 3 4 26629: # 23 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 1 3 4 26629: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 2 3 4 26629: 26629: 26629: 26629: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 26629: struct iovec 26629: { 26629: void *iov_base; 26629: size_t iov_len; 26629: }; 26629: # 24 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern "C" { 26629: # 41 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 26629: extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: # 52 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 26629: extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: # 67 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 26629: extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, 26629: __off_t __offset) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: # 80 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 26629: extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, 26629: __off_t __offset) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: # 110 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 26629: extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, 26629: __off64_t __offset) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: # 123 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 26629: extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, 26629: __off64_t __offset) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern ssize_t preadv2 (int __fp, const struct iovec *__iovec, int __count, 26629: __off_t __offset, int ___flags) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: 26629: 26629: extern ssize_t pwritev2 (int __fd, const struct iovec *__iodev, int __count, 26629: __off_t __offset, int __flags) __attribute__ ((__warn_unused_result__)); 26629: # 161 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 26629: extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, 26629: int __count, __off64_t __offset, 26629: int ___flags) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: 26629: 26629: extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, 26629: int __count, __off64_t __offset, 26629: int __flags) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 1 3 4 26629: # 26 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 26629: extern "C" { 26629: 26629: 26629: extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, 26629: unsigned long int __liovcnt, 26629: const struct iovec *__rvec, 26629: unsigned long int __riovcnt, 26629: unsigned long int __flags) 26629: noexcept (true); 26629: 26629: 26629: extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, 26629: unsigned long int __liovcnt, 26629: const struct iovec *__rvec, 26629: unsigned long int __riovcnt, 26629: unsigned long int __flags) 26629: noexcept (true); 26629: # 51 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 26629: } 26629: # 180 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 26629: # 42 "/usr/include/snappy-stubs-public.h" 2 3 4 26629: # 50 "/usr/include/snappy-stubs-public.h" 3 4 26629: namespace snappy { 26629: # 61 "/usr/include/snappy-stubs-public.h" 3 4 26629: } 26629: # 48 "/usr/include/snappy.h" 2 3 4 26629: 26629: namespace snappy { 26629: class Source; 26629: class Sink; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t Compress(Source* source, Sink* sink); 26629: # 68 "/usr/include/snappy.h" 3 4 26629: bool GetUncompressedLength(Source* source, uint32_t* result); 26629: # 78 "/usr/include/snappy.h" 3 4 26629: size_t Compress(const char* input, size_t input_length, 26629: std::string* compressed); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool Uncompress(const char* compressed, size_t compressed_length, 26629: std::string* uncompressed); 26629: 26629: 26629: 26629: 26629: bool Uncompress(Source* compressed, Sink* uncompressed); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t UncompressAsMuchAsPossible(Source* compressed, Sink* uncompressed); 26629: # 122 "/usr/include/snappy.h" 3 4 26629: void RawCompress(const char* input, 26629: size_t input_length, 26629: char* compressed, 26629: size_t* compressed_length); 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool RawUncompress(const char* compressed, size_t compressed_length, 26629: char* uncompressed); 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool RawUncompress(Source* compressed, char* uncompressed); 26629: # 150 "/usr/include/snappy.h" 3 4 26629: bool RawUncompressToIOVec(const char* compressed, size_t compressed_length, 26629: const struct iovec* iov, size_t iov_cnt); 26629: # 161 "/usr/include/snappy.h" 3 4 26629: bool RawUncompressToIOVec(Source* compressed, const struct iovec* iov, 26629: size_t iov_cnt); 26629: 26629: 26629: 26629: size_t MaxCompressedLength(size_t source_bytes); 26629: 26629: 26629: 26629: 26629: 26629: bool GetUncompressedLength(const char* compressed, size_t compressed_length, 26629: size_t* result); 26629: 26629: 26629: 26629: 26629: 26629: bool IsValidCompressedBuffer(const char* compressed, 26629: size_t compressed_length); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool IsValidCompressed(Source* compressed); 26629: # 199 "/usr/include/snappy.h" 3 4 26629: static constexpr int kBlockLog = 16; 26629: static constexpr size_t kBlockSize = 1 << kBlockLog; 26629: 26629: static constexpr int kMinHashTableBits = 8; 26629: static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits; 26629: 26629: static constexpr int kMaxHashTableBits = 14; 26629: static constexpr size_t kMaxHashTableSize = 1 << kMaxHashTableBits; 26629: } 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: 26629: 26629: 26629: # 1 "/usr/include/zlib.h" 1 3 4 26629: # 34 "/usr/include/zlib.h" 3 4 26629: # 1 "/usr/include/zconf.h" 1 3 4 26629: # 250 "/usr/include/zconf.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 251 "/usr/include/zconf.h" 2 3 4 26629: typedef size_t z_size_t; 26629: # 397 "/usr/include/zconf.h" 3 4 26629: typedef unsigned char Byte; 26629: 26629: typedef unsigned int uInt; 26629: typedef unsigned long uLong; 26629: 26629: 26629: 26629: 26629: 26629: typedef Byte Bytef; 26629: 26629: typedef char charf; 26629: typedef int intf; 26629: typedef uInt uIntf; 26629: typedef uLong uLongf; 26629: 26629: 26629: typedef void const *voidpc; 26629: typedef void *voidpf; 26629: typedef void *voidp; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 1 3 4 26629: # 425 "/usr/include/zconf.h" 2 3 4 26629: # 435 "/usr/include/zconf.h" 3 4 26629: typedef unsigned z_crc_t; 26629: # 488 "/usr/include/zconf.h" 3 4 26629: # 1 "/usr/include/unistd.h" 1 3 4 26629: # 27 "/usr/include/unistd.h" 3 4 26629: extern "C" { 26629: # 202 "/usr/include/unistd.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix_opt.h" 1 3 4 26629: # 203 "/usr/include/unistd.h" 2 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 1 3 4 26629: # 22 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 26629: # 23 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 2 3 4 26629: # 207 "/usr/include/unistd.h" 2 3 4 26629: # 226 "/usr/include/unistd.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 227 "/usr/include/unistd.h" 2 3 4 26629: # 274 "/usr/include/unistd.h" 3 4 26629: typedef __socklen_t socklen_t; 26629: # 287 "/usr/include/unistd.h" 3 4 26629: extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: extern int euidaccess (const char *__name, int __type) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int eaccess (const char *__name, int __type) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int execveat (int __fd, const char *__path, char *const __argv[], 26629: char *const __envp[], int __flags) 26629: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int faccessat (int __fd, const char *__file, int __type, int __flag) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 26629: # 339 "/usr/include/unistd.h" 3 4 26629: extern __off_t lseek (int __fd, __off_t __offset, int __whence) noexcept (true); 26629: # 350 "/usr/include/unistd.h" 3 4 26629: extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) 26629: noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int close (int __fd); 26629: 26629: 26629: 26629: 26629: extern void closefrom (int __lowfd) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: 26629: 26629: 26629: 26629: 26629: extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: # 389 "/usr/include/unistd.h" 3 4 26629: extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, 26629: __off_t __offset) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern ssize_t pwrite (int __fd, const void *__buf, size_t __n, 26629: __off_t __offset) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: # 422 "/usr/include/unistd.h" 3 4 26629: extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, 26629: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: 26629: 26629: extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, 26629: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__read_only__, 2, 3))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int pipe (int __pipedes[2]) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: # 452 "/usr/include/unistd.h" 3 4 26629: extern unsigned int alarm (unsigned int __seconds) noexcept (true); 26629: # 464 "/usr/include/unistd.h" 3 4 26629: extern unsigned int sleep (unsigned int __seconds); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) 26629: noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int usleep (__useconds_t __useconds); 26629: # 489 "/usr/include/unistd.h" 3 4 26629: extern int pause (void); 26629: 26629: 26629: 26629: extern int chown (const char *__file, __uid_t __owner, __gid_t __group) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fchownat (int __fd, const char *__file, __uid_t __owner, 26629: __gid_t __group, int __flag) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern int fchdir (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: # 531 "/usr/include/unistd.h" 3 4 26629: extern char *getcwd (char *__buf, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: extern char *get_current_dir_name (void) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern char *getwd (char *__buf) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 1))); 26629: 26629: 26629: 26629: 26629: extern int dup (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: extern int dup2 (int __fd, int __fd2) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); 26629: 26629: 26629: 26629: extern char **__environ; 26629: 26629: extern char **environ; 26629: 26629: 26629: 26629: 26629: 26629: extern int execve (const char *__path, char *const __argv[], 26629: char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: 26629: extern int execv (const char *__path, char *const __argv[]) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: extern int execle (const char *__path, const char *__arg, ...) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: extern int execl (const char *__path, const char *__arg, ...) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: extern int execvp (const char *__file, char *const __argv[]) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: extern int execlp (const char *__file, const char *__arg, ...) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: extern int execvpe (const char *__file, char *const __argv[], 26629: char *const __envp[]) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: 26629: extern int nice (int __inc) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern void _exit (int __status) __attribute__ ((__noreturn__)); 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 3 4 26629: enum 26629: { 26629: _PC_LINK_MAX, 26629: 26629: _PC_MAX_CANON, 26629: 26629: _PC_MAX_INPUT, 26629: 26629: _PC_NAME_MAX, 26629: 26629: _PC_PATH_MAX, 26629: 26629: _PC_PIPE_BUF, 26629: 26629: _PC_CHOWN_RESTRICTED, 26629: 26629: _PC_NO_TRUNC, 26629: 26629: _PC_VDISABLE, 26629: 26629: _PC_SYNC_IO, 26629: 26629: _PC_ASYNC_IO, 26629: 26629: _PC_PRIO_IO, 26629: 26629: _PC_SOCK_MAXBUF, 26629: 26629: _PC_FILESIZEBITS, 26629: 26629: _PC_REC_INCR_XFER_SIZE, 26629: 26629: _PC_REC_MAX_XFER_SIZE, 26629: 26629: _PC_REC_MIN_XFER_SIZE, 26629: 26629: _PC_REC_XFER_ALIGN, 26629: 26629: _PC_ALLOC_SIZE_MIN, 26629: 26629: _PC_SYMLINK_MAX, 26629: 26629: _PC_2_SYMLINKS 26629: 26629: }; 26629: 26629: 26629: enum 26629: { 26629: _SC_ARG_MAX, 26629: 26629: _SC_CHILD_MAX, 26629: 26629: _SC_CLK_TCK, 26629: 26629: _SC_NGROUPS_MAX, 26629: 26629: _SC_OPEN_MAX, 26629: 26629: _SC_STREAM_MAX, 26629: 26629: _SC_TZNAME_MAX, 26629: 26629: _SC_JOB_CONTROL, 26629: 26629: _SC_SAVED_IDS, 26629: 26629: _SC_REALTIME_SIGNALS, 26629: 26629: _SC_PRIORITY_SCHEDULING, 26629: 26629: _SC_TIMERS, 26629: 26629: _SC_ASYNCHRONOUS_IO, 26629: 26629: _SC_PRIORITIZED_IO, 26629: 26629: _SC_SYNCHRONIZED_IO, 26629: 26629: _SC_FSYNC, 26629: 26629: _SC_MAPPED_FILES, 26629: 26629: _SC_MEMLOCK, 26629: 26629: _SC_MEMLOCK_RANGE, 26629: 26629: _SC_MEMORY_PROTECTION, 26629: 26629: _SC_MESSAGE_PASSING, 26629: 26629: _SC_SEMAPHORES, 26629: 26629: _SC_SHARED_MEMORY_OBJECTS, 26629: 26629: _SC_AIO_LISTIO_MAX, 26629: 26629: _SC_AIO_MAX, 26629: 26629: _SC_AIO_PRIO_DELTA_MAX, 26629: 26629: _SC_DELAYTIMER_MAX, 26629: 26629: _SC_MQ_OPEN_MAX, 26629: 26629: _SC_MQ_PRIO_MAX, 26629: 26629: _SC_VERSION, 26629: 26629: _SC_PAGESIZE, 26629: 26629: 26629: _SC_RTSIG_MAX, 26629: 26629: _SC_SEM_NSEMS_MAX, 26629: 26629: _SC_SEM_VALUE_MAX, 26629: 26629: _SC_SIGQUEUE_MAX, 26629: 26629: _SC_TIMER_MAX, 26629: 26629: 26629: 26629: 26629: _SC_BC_BASE_MAX, 26629: 26629: _SC_BC_DIM_MAX, 26629: 26629: _SC_BC_SCALE_MAX, 26629: 26629: _SC_BC_STRING_MAX, 26629: 26629: _SC_COLL_WEIGHTS_MAX, 26629: 26629: _SC_EQUIV_CLASS_MAX, 26629: 26629: _SC_EXPR_NEST_MAX, 26629: 26629: _SC_LINE_MAX, 26629: 26629: _SC_RE_DUP_MAX, 26629: 26629: _SC_CHARCLASS_NAME_MAX, 26629: 26629: 26629: _SC_2_VERSION, 26629: 26629: _SC_2_C_BIND, 26629: 26629: _SC_2_C_DEV, 26629: 26629: _SC_2_FORT_DEV, 26629: 26629: _SC_2_FORT_RUN, 26629: 26629: _SC_2_SW_DEV, 26629: 26629: _SC_2_LOCALEDEF, 26629: 26629: 26629: _SC_PII, 26629: 26629: _SC_PII_XTI, 26629: 26629: _SC_PII_SOCKET, 26629: 26629: _SC_PII_INTERNET, 26629: 26629: _SC_PII_OSI, 26629: 26629: _SC_POLL, 26629: 26629: _SC_SELECT, 26629: 26629: _SC_UIO_MAXIOV, 26629: 26629: _SC_IOV_MAX = _SC_UIO_MAXIOV, 26629: 26629: _SC_PII_INTERNET_STREAM, 26629: 26629: _SC_PII_INTERNET_DGRAM, 26629: 26629: _SC_PII_OSI_COTS, 26629: 26629: _SC_PII_OSI_CLTS, 26629: 26629: _SC_PII_OSI_M, 26629: 26629: _SC_T_IOV_MAX, 26629: 26629: 26629: 26629: _SC_THREADS, 26629: 26629: _SC_THREAD_SAFE_FUNCTIONS, 26629: 26629: _SC_GETGR_R_SIZE_MAX, 26629: 26629: _SC_GETPW_R_SIZE_MAX, 26629: 26629: _SC_LOGIN_NAME_MAX, 26629: 26629: _SC_TTY_NAME_MAX, 26629: 26629: _SC_THREAD_DESTRUCTOR_ITERATIONS, 26629: 26629: _SC_THREAD_KEYS_MAX, 26629: 26629: _SC_THREAD_STACK_MIN, 26629: 26629: _SC_THREAD_THREADS_MAX, 26629: 26629: _SC_THREAD_ATTR_STACKADDR, 26629: 26629: _SC_THREAD_ATTR_STACKSIZE, 26629: 26629: _SC_THREAD_PRIORITY_SCHEDULING, 26629: 26629: _SC_THREAD_PRIO_INHERIT, 26629: 26629: _SC_THREAD_PRIO_PROTECT, 26629: 26629: _SC_THREAD_PROCESS_SHARED, 26629: 26629: 26629: _SC_NPROCESSORS_CONF, 26629: 26629: _SC_NPROCESSORS_ONLN, 26629: 26629: _SC_PHYS_PAGES, 26629: 26629: _SC_AVPHYS_PAGES, 26629: 26629: _SC_ATEXIT_MAX, 26629: 26629: _SC_PASS_MAX, 26629: 26629: 26629: _SC_XOPEN_VERSION, 26629: 26629: _SC_XOPEN_XCU_VERSION, 26629: 26629: _SC_XOPEN_UNIX, 26629: 26629: _SC_XOPEN_CRYPT, 26629: 26629: _SC_XOPEN_ENH_I18N, 26629: 26629: _SC_XOPEN_SHM, 26629: 26629: 26629: _SC_2_CHAR_TERM, 26629: 26629: _SC_2_C_VERSION, 26629: 26629: _SC_2_UPE, 26629: 26629: 26629: _SC_XOPEN_XPG2, 26629: 26629: _SC_XOPEN_XPG3, 26629: 26629: _SC_XOPEN_XPG4, 26629: 26629: 26629: _SC_CHAR_BIT, 26629: 26629: _SC_CHAR_MAX, 26629: 26629: _SC_CHAR_MIN, 26629: 26629: _SC_INT_MAX, 26629: 26629: _SC_INT_MIN, 26629: 26629: _SC_LONG_BIT, 26629: 26629: _SC_WORD_BIT, 26629: 26629: _SC_MB_LEN_MAX, 26629: 26629: _SC_NZERO, 26629: 26629: _SC_SSIZE_MAX, 26629: 26629: _SC_SCHAR_MAX, 26629: 26629: _SC_SCHAR_MIN, 26629: 26629: _SC_SHRT_MAX, 26629: 26629: _SC_SHRT_MIN, 26629: 26629: _SC_UCHAR_MAX, 26629: 26629: _SC_UINT_MAX, 26629: 26629: _SC_ULONG_MAX, 26629: 26629: _SC_USHRT_MAX, 26629: 26629: 26629: _SC_NL_ARGMAX, 26629: 26629: _SC_NL_LANGMAX, 26629: 26629: _SC_NL_MSGMAX, 26629: 26629: _SC_NL_NMAX, 26629: 26629: _SC_NL_SETMAX, 26629: 26629: _SC_NL_TEXTMAX, 26629: 26629: 26629: _SC_XBS5_ILP32_OFF32, 26629: 26629: _SC_XBS5_ILP32_OFFBIG, 26629: 26629: _SC_XBS5_LP64_OFF64, 26629: 26629: _SC_XBS5_LPBIG_OFFBIG, 26629: 26629: 26629: _SC_XOPEN_LEGACY, 26629: 26629: _SC_XOPEN_REALTIME, 26629: 26629: _SC_XOPEN_REALTIME_THREADS, 26629: 26629: 26629: _SC_ADVISORY_INFO, 26629: 26629: _SC_BARRIERS, 26629: 26629: _SC_BASE, 26629: 26629: _SC_C_LANG_SUPPORT, 26629: 26629: _SC_C_LANG_SUPPORT_R, 26629: 26629: _SC_CLOCK_SELECTION, 26629: 26629: _SC_CPUTIME, 26629: 26629: _SC_THREAD_CPUTIME, 26629: 26629: _SC_DEVICE_IO, 26629: 26629: _SC_DEVICE_SPECIFIC, 26629: 26629: _SC_DEVICE_SPECIFIC_R, 26629: 26629: _SC_FD_MGMT, 26629: 26629: _SC_FIFO, 26629: 26629: _SC_PIPE, 26629: 26629: _SC_FILE_ATTRIBUTES, 26629: 26629: _SC_FILE_LOCKING, 26629: 26629: _SC_FILE_SYSTEM, 26629: 26629: _SC_MONOTONIC_CLOCK, 26629: 26629: _SC_MULTI_PROCESS, 26629: 26629: _SC_SINGLE_PROCESS, 26629: 26629: _SC_NETWORKING, 26629: 26629: _SC_READER_WRITER_LOCKS, 26629: 26629: _SC_SPIN_LOCKS, 26629: 26629: _SC_REGEXP, 26629: 26629: _SC_REGEX_VERSION, 26629: 26629: _SC_SHELL, 26629: 26629: _SC_SIGNALS, 26629: 26629: _SC_SPAWN, 26629: 26629: _SC_SPORADIC_SERVER, 26629: 26629: _SC_THREAD_SPORADIC_SERVER, 26629: 26629: _SC_SYSTEM_DATABASE, 26629: 26629: _SC_SYSTEM_DATABASE_R, 26629: 26629: _SC_TIMEOUTS, 26629: 26629: _SC_TYPED_MEMORY_OBJECTS, 26629: 26629: _SC_USER_GROUPS, 26629: 26629: _SC_USER_GROUPS_R, 26629: 26629: _SC_2_PBS, 26629: 26629: _SC_2_PBS_ACCOUNTING, 26629: 26629: _SC_2_PBS_LOCATE, 26629: 26629: _SC_2_PBS_MESSAGE, 26629: 26629: _SC_2_PBS_TRACK, 26629: 26629: _SC_SYMLOOP_MAX, 26629: 26629: _SC_STREAMS, 26629: 26629: _SC_2_PBS_CHECKPOINT, 26629: 26629: 26629: _SC_V6_ILP32_OFF32, 26629: 26629: _SC_V6_ILP32_OFFBIG, 26629: 26629: _SC_V6_LP64_OFF64, 26629: 26629: _SC_V6_LPBIG_OFFBIG, 26629: 26629: 26629: _SC_HOST_NAME_MAX, 26629: 26629: _SC_TRACE, 26629: 26629: _SC_TRACE_EVENT_FILTER, 26629: 26629: _SC_TRACE_INHERIT, 26629: 26629: _SC_TRACE_LOG, 26629: 26629: 26629: _SC_LEVEL1_ICACHE_SIZE, 26629: 26629: _SC_LEVEL1_ICACHE_ASSOC, 26629: 26629: _SC_LEVEL1_ICACHE_LINESIZE, 26629: 26629: _SC_LEVEL1_DCACHE_SIZE, 26629: 26629: _SC_LEVEL1_DCACHE_ASSOC, 26629: 26629: _SC_LEVEL1_DCACHE_LINESIZE, 26629: 26629: _SC_LEVEL2_CACHE_SIZE, 26629: 26629: _SC_LEVEL2_CACHE_ASSOC, 26629: 26629: _SC_LEVEL2_CACHE_LINESIZE, 26629: 26629: _SC_LEVEL3_CACHE_SIZE, 26629: 26629: _SC_LEVEL3_CACHE_ASSOC, 26629: 26629: _SC_LEVEL3_CACHE_LINESIZE, 26629: 26629: _SC_LEVEL4_CACHE_SIZE, 26629: 26629: _SC_LEVEL4_CACHE_ASSOC, 26629: 26629: _SC_LEVEL4_CACHE_LINESIZE, 26629: 26629: 26629: 26629: _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, 26629: 26629: _SC_RAW_SOCKETS, 26629: 26629: 26629: _SC_V7_ILP32_OFF32, 26629: 26629: _SC_V7_ILP32_OFFBIG, 26629: 26629: _SC_V7_LP64_OFF64, 26629: 26629: _SC_V7_LPBIG_OFFBIG, 26629: 26629: 26629: _SC_SS_REPL_MAX, 26629: 26629: 26629: _SC_TRACE_EVENT_NAME_MAX, 26629: 26629: _SC_TRACE_NAME_MAX, 26629: 26629: _SC_TRACE_SYS_MAX, 26629: 26629: _SC_TRACE_USER_EVENT_MAX, 26629: 26629: 26629: _SC_XOPEN_STREAMS, 26629: 26629: 26629: _SC_THREAD_ROBUST_PRIO_INHERIT, 26629: 26629: _SC_THREAD_ROBUST_PRIO_PROTECT, 26629: 26629: 26629: _SC_MINSIGSTKSZ, 26629: 26629: 26629: _SC_SIGSTKSZ 26629: 26629: }; 26629: 26629: 26629: enum 26629: { 26629: _CS_PATH, 26629: 26629: 26629: _CS_V6_WIDTH_RESTRICTED_ENVS, 26629: 26629: 26629: 26629: _CS_GNU_LIBC_VERSION, 26629: 26629: _CS_GNU_LIBPTHREAD_VERSION, 26629: 26629: 26629: _CS_V5_WIDTH_RESTRICTED_ENVS, 26629: 26629: 26629: 26629: _CS_V7_WIDTH_RESTRICTED_ENVS, 26629: 26629: 26629: 26629: _CS_LFS_CFLAGS = 1000, 26629: 26629: _CS_LFS_LDFLAGS, 26629: 26629: _CS_LFS_LIBS, 26629: 26629: _CS_LFS_LINTFLAGS, 26629: 26629: _CS_LFS64_CFLAGS, 26629: 26629: _CS_LFS64_LDFLAGS, 26629: 26629: _CS_LFS64_LIBS, 26629: 26629: _CS_LFS64_LINTFLAGS, 26629: 26629: 26629: _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, 26629: 26629: _CS_XBS5_ILP32_OFF32_LDFLAGS, 26629: 26629: _CS_XBS5_ILP32_OFF32_LIBS, 26629: 26629: _CS_XBS5_ILP32_OFF32_LINTFLAGS, 26629: 26629: _CS_XBS5_ILP32_OFFBIG_CFLAGS, 26629: 26629: _CS_XBS5_ILP32_OFFBIG_LDFLAGS, 26629: 26629: _CS_XBS5_ILP32_OFFBIG_LIBS, 26629: 26629: _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, 26629: 26629: _CS_XBS5_LP64_OFF64_CFLAGS, 26629: 26629: _CS_XBS5_LP64_OFF64_LDFLAGS, 26629: 26629: _CS_XBS5_LP64_OFF64_LIBS, 26629: 26629: _CS_XBS5_LP64_OFF64_LINTFLAGS, 26629: 26629: _CS_XBS5_LPBIG_OFFBIG_CFLAGS, 26629: 26629: _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, 26629: 26629: _CS_XBS5_LPBIG_OFFBIG_LIBS, 26629: 26629: _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, 26629: 26629: 26629: _CS_POSIX_V6_ILP32_OFF32_CFLAGS, 26629: 26629: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, 26629: 26629: _CS_POSIX_V6_ILP32_OFF32_LIBS, 26629: 26629: _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, 26629: 26629: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, 26629: 26629: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, 26629: 26629: _CS_POSIX_V6_ILP32_OFFBIG_LIBS, 26629: 26629: _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, 26629: 26629: _CS_POSIX_V6_LP64_OFF64_CFLAGS, 26629: 26629: _CS_POSIX_V6_LP64_OFF64_LDFLAGS, 26629: 26629: _CS_POSIX_V6_LP64_OFF64_LIBS, 26629: 26629: _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, 26629: 26629: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, 26629: 26629: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, 26629: 26629: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, 26629: 26629: _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, 26629: 26629: 26629: _CS_POSIX_V7_ILP32_OFF32_CFLAGS, 26629: 26629: _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, 26629: 26629: _CS_POSIX_V7_ILP32_OFF32_LIBS, 26629: 26629: _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, 26629: 26629: _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, 26629: 26629: _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, 26629: 26629: _CS_POSIX_V7_ILP32_OFFBIG_LIBS, 26629: 26629: _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, 26629: 26629: _CS_POSIX_V7_LP64_OFF64_CFLAGS, 26629: 26629: _CS_POSIX_V7_LP64_OFF64_LDFLAGS, 26629: 26629: _CS_POSIX_V7_LP64_OFF64_LIBS, 26629: 26629: _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, 26629: 26629: _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, 26629: 26629: _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, 26629: 26629: _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, 26629: 26629: _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, 26629: 26629: 26629: _CS_V6_ENV, 26629: 26629: _CS_V7_ENV 26629: 26629: }; 26629: # 631 "/usr/include/unistd.h" 2 3 4 26629: 26629: 26629: extern long int pathconf (const char *__path, int __name) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern long int fpathconf (int __fd, int __name) noexcept (true); 26629: 26629: 26629: extern long int sysconf (int __name) noexcept (true); 26629: 26629: 26629: 26629: extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: 26629: 26629: 26629: 26629: extern __pid_t getpid (void) noexcept (true); 26629: 26629: 26629: extern __pid_t getppid (void) noexcept (true); 26629: 26629: 26629: extern __pid_t getpgrp (void) noexcept (true); 26629: 26629: 26629: extern __pid_t __getpgid (__pid_t __pid) noexcept (true); 26629: 26629: extern __pid_t getpgid (__pid_t __pid) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); 26629: # 682 "/usr/include/unistd.h" 3 4 26629: extern int setpgrp (void) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern __pid_t setsid (void) noexcept (true); 26629: 26629: 26629: 26629: extern __pid_t getsid (__pid_t __pid) noexcept (true); 26629: 26629: 26629: 26629: extern __uid_t getuid (void) noexcept (true); 26629: 26629: 26629: extern __uid_t geteuid (void) noexcept (true); 26629: 26629: 26629: extern __gid_t getgid (void) noexcept (true); 26629: 26629: 26629: extern __gid_t getegid (void) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 2, 1))); 26629: 26629: 26629: extern int group_member (__gid_t __gid) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int setuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int seteuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int setgid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int setegid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) 26629: noexcept (true); 26629: 26629: 26629: 26629: extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) 26629: noexcept (true); 26629: 26629: 26629: 26629: extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern __pid_t fork (void) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern __pid_t vfork (void) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern __pid_t _Fork (void) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern char *ttyname (int __fd) noexcept (true); 26629: 26629: 26629: 26629: extern int ttyname_r (int __fd, char *__buf, size_t __buflen) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: 26629: 26629: 26629: extern int isatty (int __fd) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int ttyslot (void) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int link (const char *__from, const char *__to) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int linkat (int __fromfd, const char *__from, int __tofd, 26629: const char *__to, int __flags) 26629: noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern int symlink (const char *__from, const char *__to) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: extern ssize_t readlink (const char *__restrict __path, 26629: char *__restrict __buf, size_t __len) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: 26629: 26629: 26629: 26629: 26629: extern int symlinkat (const char *__from, int __tofd, 26629: const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: extern ssize_t readlinkat (int __fd, const char *__restrict __path, 26629: char *__restrict __buf, size_t __len) 26629: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 3, 4))); 26629: 26629: 26629: 26629: extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern int unlinkat (int __fd, const char *__name, int __flag) 26629: noexcept (true) __attribute__ ((__nonnull__ (2))); 26629: 26629: 26629: 26629: extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: extern __pid_t tcgetpgrp (int __fd) noexcept (true); 26629: 26629: 26629: extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern char *getlogin (void); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) 26629: __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: 26629: 26629: 26629: 26629: extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 1 3 4 26629: # 27 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 1 3 4 26629: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern char *optarg; 26629: # 50 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 26629: extern int optind; 26629: 26629: 26629: 26629: 26629: extern int opterr; 26629: 26629: 26629: 26629: extern int optopt; 26629: # 91 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 26629: extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) 26629: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 26629: 26629: } 26629: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 2 3 4 26629: 26629: extern "C" { 26629: # 49 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 26629: } 26629: # 904 "/usr/include/unistd.h" 2 3 4 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) 26629: __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int sethostname (const char *__name, size_t __len) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 26629: 26629: 26629: 26629: extern int sethostid (long int __id) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: extern int getdomainname (char *__name, size_t __len) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: extern int setdomainname (const char *__name, size_t __len) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 26629: 26629: 26629: 26629: 26629: extern int vhangup (void) noexcept (true); 26629: 26629: 26629: extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int profil (unsigned short int *__sample_buffer, size_t __size, 26629: size_t __offset, unsigned int __scale) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: extern int acct (const char *__name) noexcept (true); 26629: 26629: 26629: 26629: extern char *getusershell (void) noexcept (true); 26629: extern void endusershell (void) noexcept (true); 26629: extern void setusershell (void) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern int daemon (int __nochdir, int __noclose) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int fsync (int __fd); 26629: 26629: 26629: 26629: 26629: 26629: extern int syncfs (int __fd) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern long int gethostid (void); 26629: 26629: 26629: extern void sync (void) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: 26629: 26629: extern int getdtablesize (void) noexcept (true); 26629: # 1026 "/usr/include/unistd.h" 3 4 26629: extern int truncate (const char *__file, __off_t __length) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 1038 "/usr/include/unistd.h" 3 4 26629: extern int truncate64 (const char *__file, __off64_t __length) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 26629: # 1049 "/usr/include/unistd.h" 3 4 26629: extern int ftruncate (int __fd, __off_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: # 1059 "/usr/include/unistd.h" 3 4 26629: extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: # 1070 "/usr/include/unistd.h" 3 4 26629: extern int brk (void *__addr) noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: 26629: 26629: 26629: 26629: 26629: extern void *sbrk (intptr_t __delta) noexcept (true); 26629: # 1091 "/usr/include/unistd.h" 3 4 26629: extern long int syscall (long int __sysno, ...) noexcept (true); 26629: # 1114 "/usr/include/unistd.h" 3 4 26629: extern int lockf (int __fd, int __cmd, __off_t __len) __attribute__ ((__warn_unused_result__)); 26629: # 1124 "/usr/include/unistd.h" 3 4 26629: extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); 26629: # 1142 "/usr/include/unistd.h" 3 4 26629: ssize_t copy_file_range (int __infd, __off64_t *__pinoff, 26629: int __outfd, __off64_t *__poutoff, 26629: size_t __length, unsigned int __flags); 26629: 26629: 26629: 26629: 26629: 26629: extern int fdatasync (int __fildes); 26629: # 1159 "/usr/include/unistd.h" 3 4 26629: extern char *crypt (const char *__key, const char *__salt) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern void swab (const void *__restrict __from, void *__restrict __to, 26629: ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) 26629: __attribute__ ((__access__ (__read_only__, 1, 3))) 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: # 1198 "/usr/include/unistd.h" 3 4 26629: int getentropy (void *__buffer, size_t __length) __attribute__ ((__warn_unused_result__)) 26629: __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: # 1208 "/usr/include/unistd.h" 3 4 26629: extern int close_range (unsigned int __fd, unsigned int __max_fd, 26629: int __flags) noexcept (true); 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 1 3 4 26629: # 23 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 26629: extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, 26629: size_t __buflen) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 26629: read (int __fd, void *__buf, size_t __nbytes) 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, 26629: __off_t __offset, size_t __bufsize) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, 26629: __off64_t __offset, size_t __bufsize) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) 26629: ; 26629: extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") 26629: 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) 26629: ; 26629: 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 26629: pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset) 26629: { 26629: 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)))))) ? __pread_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)))) ? __pread_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)) : __pread_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)))) 26629: 26629: ; 26629: } 26629: # 89 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 26629: pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: 26629: 26629: extern ssize_t __readlink_chk (const char *__restrict __path, 26629: char *__restrict __buf, size_t __len, 26629: size_t __buflen) 26629: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlink") 26629: 26629: 26629: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlink_chk") 26629: 26629: 26629: 26629: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t 26629: __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) 26629: 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: 26629: extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, 26629: char *__restrict __buf, size_t __len, 26629: size_t __buflen) 26629: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 26629: extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlinkat") 26629: 26629: 26629: 26629: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 26629: 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") 26629: 26629: 26629: 26629: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) 26629: 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t 26629: __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) 26629: 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)); 26629: extern char *__getcwd_alias (char *__buf, size_t __size) noexcept (true) __asm__ ("" "getcwd") 26629: __attribute__ ((__warn_unused_result__)); 26629: extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) noexcept (true) __asm__ ("" "__getcwd_chk") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 26629: __attribute__ ((__leaf__)) getcwd (char *__buf, size_t __size) noexcept (true) 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern char *__getwd_chk (char *__buf, size_t buflen) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: extern char *__getwd_warn (char *__buf) noexcept (true) __asm__ ("" "getwd") 26629: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * 26629: __attribute__ ((__leaf__)) getwd (char *__buf) noexcept (true) 26629: { 26629: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 26629: return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); 26629: return __getwd_warn (__buf); 26629: } 26629: 26629: 26629: extern size_t __confstr_chk (int __name, char *__buf, size_t __len, 26629: size_t __buflen) noexcept (true) 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern size_t __confstr_alias (int __name, char *__buf, size_t __len) noexcept (true) __asm__ ("" "confstr") 26629: 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__confstr_chk") 26629: 26629: 26629: __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 26629: __attribute__ ((__leaf__)) confstr (int __name, char *__buf, size_t __len) noexcept (true) 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) 26629: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 26629: extern int __getgroups_alias (int __size, __gid_t __list[]) noexcept (true) __asm__ ("" "getgroups") 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 26629: extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) noexcept (true) __asm__ ("" "__getgroups_chk") 26629: 26629: 26629: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) getgroups (int __size, __gid_t __list[]) noexcept (true) 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, 26629: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 26629: __attribute__ ((__access__ (__write_only__, 2, 3))); 26629: extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ttyname_r") 26629: 26629: __attribute__ ((__nonnull__ (2))); 26629: extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ttyname_r_chk") 26629: 26629: 26629: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) ttyname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: 26629: extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) 26629: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") 26629: __attribute__ ((__nonnull__ (1))); 26629: extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") 26629: 26629: 26629: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: getlogin_r (char *__buf, size_t __buflen) 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: 26629: 26629: extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: extern int __gethostname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "gethostname") 26629: 26629: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__gethostname_chk") 26629: 26629: 26629: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) gethostname (char *__buf, size_t __buflen) noexcept (true) 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: 26629: 26629: 26629: 26629: extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: extern int __getdomainname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "getdomainname") 26629: 26629: __attribute__ ((__nonnull__ (1))) 26629: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 26629: extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__getdomainname_chk") 26629: 26629: 26629: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) 26629: 26629: ; 26629: 26629: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 26629: __attribute__ ((__leaf__)) getdomainname (char *__buf, size_t __buflen) noexcept (true) 26629: { 26629: 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)))) 26629: 26629: ; 26629: } 26629: # 1215 "/usr/include/unistd.h" 2 3 4 26629: 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 1 3 4 26629: # 34 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 3 4 26629: extern __pid_t gettid (void) noexcept (true); 26629: 26629: 26629: 26629: # 1 "/usr/include/linux/close_range.h" 1 3 4 26629: # 39 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 2 3 4 26629: # 1219 "/usr/include/unistd.h" 2 3 4 26629: 26629: } 26629: # 489 "/usr/include/zconf.h" 2 3 4 26629: # 35 "/usr/include/zlib.h" 2 3 4 26629: 26629: 26629: extern "C" { 26629: # 81 "/usr/include/zlib.h" 3 4 26629: typedef voidpf (*alloc_func) (voidpf opaque, uInt items, uInt size); 26629: typedef void (*free_func) (voidpf opaque, voidpf address); 26629: 26629: struct internal_state; 26629: 26629: typedef struct z_stream_s { 26629: Bytef *next_in; 26629: uInt avail_in; 26629: uLong total_in; 26629: 26629: Bytef *next_out; 26629: uInt avail_out; 26629: uLong total_out; 26629: 26629: char *msg; 26629: struct internal_state *state; 26629: 26629: alloc_func zalloc; 26629: free_func zfree; 26629: voidpf opaque; 26629: 26629: int data_type; 26629: 26629: uLong adler; 26629: uLong reserved; 26629: } z_stream; 26629: 26629: typedef z_stream *z_streamp; 26629: 26629: 26629: 26629: 26629: 26629: typedef struct gz_header_s { 26629: int text; 26629: uLong time; 26629: int xflags; 26629: int os; 26629: Bytef *extra; 26629: uInt extra_len; 26629: uInt extra_max; 26629: Bytef *name; 26629: uInt name_max; 26629: Bytef *comment; 26629: uInt comm_max; 26629: int hcrc; 26629: int done; 26629: 26629: } gz_header; 26629: 26629: typedef gz_header *gz_headerp; 26629: # 220 "/usr/include/zlib.h" 3 4 26629: extern const char * zlibVersion (void); 26629: # 250 "/usr/include/zlib.h" 3 4 26629: extern int deflate (z_streamp strm, int flush); 26629: # 363 "/usr/include/zlib.h" 3 4 26629: extern int deflateEnd (z_streamp strm); 26629: # 400 "/usr/include/zlib.h" 3 4 26629: extern int inflate (z_streamp strm, int flush); 26629: # 520 "/usr/include/zlib.h" 3 4 26629: extern int inflateEnd (z_streamp strm); 26629: # 610 "/usr/include/zlib.h" 3 4 26629: extern int deflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength) 26629: 26629: ; 26629: # 654 "/usr/include/zlib.h" 3 4 26629: extern int deflateGetDictionary (z_streamp strm, Bytef *dictionary, uInt *dictLength) 26629: 26629: ; 26629: # 676 "/usr/include/zlib.h" 3 4 26629: extern int deflateCopy (z_streamp dest, z_streamp source) 26629: ; 26629: # 694 "/usr/include/zlib.h" 3 4 26629: extern int deflateReset (z_streamp strm); 26629: # 705 "/usr/include/zlib.h" 3 4 26629: extern int deflateParams (z_streamp strm, int level, int strategy) 26629: 26629: ; 26629: # 743 "/usr/include/zlib.h" 3 4 26629: extern int deflateTune (z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain) 26629: 26629: 26629: 26629: ; 26629: # 760 "/usr/include/zlib.h" 3 4 26629: extern uLong deflateBound (z_streamp strm, uLong sourceLen) 26629: ; 26629: # 775 "/usr/include/zlib.h" 3 4 26629: extern int deflatePending (z_streamp strm, unsigned *pending, int *bits) 26629: 26629: ; 26629: # 790 "/usr/include/zlib.h" 3 4 26629: extern int deflatePrime (z_streamp strm, int bits, int value) 26629: 26629: ; 26629: # 807 "/usr/include/zlib.h" 3 4 26629: extern int deflateSetHeader (z_streamp strm, gz_headerp head) 26629: ; 26629: # 886 "/usr/include/zlib.h" 3 4 26629: extern int inflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength) 26629: 26629: ; 26629: # 909 "/usr/include/zlib.h" 3 4 26629: extern int inflateGetDictionary (z_streamp strm, Bytef *dictionary, uInt *dictLength) 26629: 26629: ; 26629: # 924 "/usr/include/zlib.h" 3 4 26629: extern int inflateSync (z_streamp strm); 26629: # 943 "/usr/include/zlib.h" 3 4 26629: extern int inflateCopy (z_streamp dest, z_streamp source) 26629: ; 26629: # 959 "/usr/include/zlib.h" 3 4 26629: extern int inflateReset (z_streamp strm); 26629: # 969 "/usr/include/zlib.h" 3 4 26629: extern int inflateReset2 (z_streamp strm, int windowBits) 26629: ; 26629: # 983 "/usr/include/zlib.h" 3 4 26629: extern int inflatePrime (z_streamp strm, int bits, int value) 26629: 26629: ; 26629: # 1004 "/usr/include/zlib.h" 3 4 26629: extern long inflateMark (z_streamp strm); 26629: # 1032 "/usr/include/zlib.h" 3 4 26629: extern int inflateGetHeader (z_streamp strm, gz_headerp head) 26629: ; 26629: # 1094 "/usr/include/zlib.h" 3 4 26629: typedef unsigned (*in_func) (void *, unsigned char * *) 26629: ; 26629: typedef int (*out_func) (void *, unsigned char *, unsigned); 26629: 26629: extern int inflateBack (z_streamp strm, in_func in, void *in_desc, out_func out, void *out_desc) 26629: 26629: ; 26629: # 1168 "/usr/include/zlib.h" 3 4 26629: extern int inflateBackEnd (z_streamp strm); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern uLong zlibCompileFlags (void); 26629: # 1229 "/usr/include/zlib.h" 3 4 26629: extern int compress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen) 26629: ; 26629: # 1244 "/usr/include/zlib.h" 3 4 26629: extern int compress2 (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level) 26629: 26629: ; 26629: # 1260 "/usr/include/zlib.h" 3 4 26629: extern uLong compressBound (uLong sourceLen); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen) 26629: ; 26629: # 1285 "/usr/include/zlib.h" 3 4 26629: extern int uncompress2 (Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen) 26629: ; 26629: # 1302 "/usr/include/zlib.h" 3 4 26629: typedef struct gzFile_s *gzFile; 26629: # 1342 "/usr/include/zlib.h" 3 4 26629: extern gzFile gzdopen (int fd, const char *mode); 26629: # 1365 "/usr/include/zlib.h" 3 4 26629: extern int gzbuffer (gzFile file, unsigned size); 26629: # 1381 "/usr/include/zlib.h" 3 4 26629: extern int gzsetparams (gzFile file, int level, int strategy); 26629: # 1392 "/usr/include/zlib.h" 3 4 26629: extern int gzread (gzFile file, voidp buf, unsigned len); 26629: # 1422 "/usr/include/zlib.h" 3 4 26629: extern z_size_t gzfread (voidp buf, z_size_t size, z_size_t nitems, gzFile file) 26629: ; 26629: # 1448 "/usr/include/zlib.h" 3 4 26629: extern int gzwrite (gzFile file, voidpc buf, unsigned len); 26629: 26629: 26629: 26629: 26629: 26629: extern z_size_t gzfwrite (voidpc buf, z_size_t size, z_size_t nitems, gzFile file) 26629: ; 26629: # 1468 "/usr/include/zlib.h" 3 4 26629: extern int gzprintf (gzFile file, const char *format, ...); 26629: # 1483 "/usr/include/zlib.h" 3 4 26629: extern int gzputs (gzFile file, const char *s); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern char * gzgets (gzFile file, char *buf, int len); 26629: # 1505 "/usr/include/zlib.h" 3 4 26629: extern int gzputc (gzFile file, int c); 26629: 26629: 26629: 26629: 26629: 26629: extern int gzgetc (gzFile file); 26629: # 1520 "/usr/include/zlib.h" 3 4 26629: extern int gzungetc (int c, gzFile file); 26629: # 1532 "/usr/include/zlib.h" 3 4 26629: extern int gzflush (gzFile file, int flush); 26629: # 1567 "/usr/include/zlib.h" 3 4 26629: extern int gzrewind (gzFile file); 26629: # 1595 "/usr/include/zlib.h" 3 4 26629: extern int gzeof (gzFile file); 26629: # 1610 "/usr/include/zlib.h" 3 4 26629: extern int gzdirect (gzFile file); 26629: # 1631 "/usr/include/zlib.h" 3 4 26629: extern int gzclose (gzFile file); 26629: # 1644 "/usr/include/zlib.h" 3 4 26629: extern int gzclose_r (gzFile file); 26629: extern int gzclose_w (gzFile file); 26629: # 1656 "/usr/include/zlib.h" 3 4 26629: extern const char * gzerror (gzFile file, int *errnum); 26629: # 1672 "/usr/include/zlib.h" 3 4 26629: extern void gzclearerr (gzFile file); 26629: # 1689 "/usr/include/zlib.h" 3 4 26629: extern uLong adler32 (uLong adler, const Bytef *buf, uInt len); 26629: # 1709 "/usr/include/zlib.h" 3 4 26629: extern uLong adler32_z (uLong adler, const Bytef *buf, z_size_t len) 26629: ; 26629: # 1727 "/usr/include/zlib.h" 3 4 26629: extern uLong crc32 (uLong crc, const Bytef *buf, uInt len); 26629: # 1745 "/usr/include/zlib.h" 3 4 26629: extern uLong crc32_z (uLong crc, const Bytef *buf, z_size_t len) 26629: ; 26629: # 1768 "/usr/include/zlib.h" 3 4 26629: extern uLong crc32_combine_op (uLong crc1, uLong crc2, uLong op); 26629: # 1781 "/usr/include/zlib.h" 3 4 26629: extern int deflateInit_ (z_streamp strm, int level, const char *version, int stream_size) 26629: ; 26629: extern int inflateInit_ (z_streamp strm, const char *version, int stream_size) 26629: ; 26629: extern int deflateInit2_ (z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size) 26629: 26629: 26629: ; 26629: extern int inflateInit2_ (z_streamp strm, int windowBits, const char *version, int stream_size) 26629: ; 26629: extern int inflateBackInit_ (z_streamp strm, int windowBits, unsigned char *window, const char *version, int stream_size) 26629: 26629: 26629: ; 26629: # 1834 "/usr/include/zlib.h" 3 4 26629: struct gzFile_s { 26629: unsigned have; 26629: unsigned char *next; 26629: off64_t pos; 26629: }; 26629: extern int gzgetc_ (gzFile file); 26629: # 1856 "/usr/include/zlib.h" 3 4 26629: extern gzFile gzopen64 (const char *, const char *); 26629: extern off64_t gzseek64 (gzFile, off64_t, int); 26629: extern off64_t gztell64 (gzFile); 26629: extern off64_t gzoffset64 (gzFile); 26629: extern uLong adler32_combine64 (uLong, uLong, off64_t); 26629: extern uLong crc32_combine64 (uLong, uLong, off64_t); 26629: extern uLong crc32_combine_gen64 (off64_t); 26629: # 1893 "/usr/include/zlib.h" 3 4 26629: extern gzFile gzopen (const char *, const char *); 26629: extern off_t gzseek (gzFile, off_t, int); 26629: extern off_t gztell (gzFile); 26629: extern off_t gzoffset (gzFile); 26629: extern uLong adler32_combine (uLong, uLong, off_t); 26629: extern uLong crc32_combine (uLong, uLong, off_t); 26629: extern uLong crc32_combine_gen (off_t); 26629: # 1911 "/usr/include/zlib.h" 3 4 26629: extern const char * zError (int); 26629: extern int inflateSyncPoint (z_streamp); 26629: extern const z_crc_t * get_crc_table (void); 26629: extern int inflateUndermine (z_streamp, int); 26629: extern int inflateValidate (z_streamp, int); 26629: extern unsigned long inflateCodesUsed (z_streamp); 26629: extern int inflateResetKeep (z_streamp); 26629: extern int deflateResetKeep (z_streamp); 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int gzvprintf (gzFile file, const char *format, va_list va) 26629: 26629: ; 26629: 26629: 26629: 26629: 26629: } 26629: # 37 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: 26629: 26629: 26629: # 1 "/usr/include/bzlib.h" 1 3 4 26629: # 26 "/usr/include/bzlib.h" 3 4 26629: extern "C" { 26629: # 48 "/usr/include/bzlib.h" 3 4 26629: typedef 26629: struct { 26629: char *next_in; 26629: unsigned int avail_in; 26629: unsigned int total_in_lo32; 26629: unsigned int total_in_hi32; 26629: 26629: char *next_out; 26629: unsigned int avail_out; 26629: unsigned int total_out_lo32; 26629: unsigned int total_out_hi32; 26629: 26629: void *state; 26629: 26629: void *(*bzalloc)(void *,int,int); 26629: void (*bzfree)(void *,void *); 26629: void *opaque; 26629: } 26629: bz_stream; 26629: # 100 "/usr/include/bzlib.h" 3 4 26629: extern int BZ2_bzCompressInit ( 26629: bz_stream* strm, 26629: int blockSize100k, 26629: int verbosity, 26629: int workFactor 26629: ); 26629: 26629: extern int BZ2_bzCompress ( 26629: bz_stream* strm, 26629: int action 26629: ); 26629: 26629: extern int BZ2_bzCompressEnd ( 26629: bz_stream* strm 26629: ); 26629: 26629: extern int BZ2_bzDecompressInit ( 26629: bz_stream *strm, 26629: int verbosity, 26629: int small 26629: ); 26629: 26629: extern int BZ2_bzDecompress ( 26629: bz_stream* strm 26629: ); 26629: 26629: extern int BZ2_bzDecompressEnd ( 26629: bz_stream *strm 26629: ); 26629: # 137 "/usr/include/bzlib.h" 3 4 26629: typedef void BZFILE; 26629: 26629: extern BZFILE* BZ2_bzReadOpen ( 26629: int* bzerror, 26629: FILE* f, 26629: int verbosity, 26629: int small, 26629: void* unused, 26629: int nUnused 26629: ); 26629: 26629: extern void BZ2_bzReadClose ( 26629: int* bzerror, 26629: BZFILE* b 26629: ); 26629: 26629: extern void BZ2_bzReadGetUnused ( 26629: int* bzerror, 26629: BZFILE* b, 26629: void** unused, 26629: int* nUnused 26629: ); 26629: 26629: extern int BZ2_bzRead ( 26629: int* bzerror, 26629: BZFILE* b, 26629: void* buf, 26629: int len 26629: ); 26629: 26629: extern BZFILE* BZ2_bzWriteOpen ( 26629: int* bzerror, 26629: FILE* f, 26629: int blockSize100k, 26629: int verbosity, 26629: int workFactor 26629: ); 26629: 26629: extern void BZ2_bzWrite ( 26629: int* bzerror, 26629: BZFILE* b, 26629: void* buf, 26629: int len 26629: ); 26629: 26629: extern void BZ2_bzWriteClose ( 26629: int* bzerror, 26629: BZFILE* b, 26629: int abandon, 26629: unsigned int* nbytes_in, 26629: unsigned int* nbytes_out 26629: ); 26629: 26629: extern void BZ2_bzWriteClose64 ( 26629: int* bzerror, 26629: BZFILE* b, 26629: int abandon, 26629: unsigned int* nbytes_in_lo32, 26629: unsigned int* nbytes_in_hi32, 26629: unsigned int* nbytes_out_lo32, 26629: unsigned int* nbytes_out_hi32 26629: ); 26629: 26629: 26629: 26629: 26629: 26629: extern int BZ2_bzBuffToBuffCompress ( 26629: char* dest, 26629: unsigned int* destLen, 26629: char* source, 26629: unsigned int sourceLen, 26629: int blockSize100k, 26629: int verbosity, 26629: int workFactor 26629: ); 26629: 26629: extern int BZ2_bzBuffToBuffDecompress ( 26629: char* dest, 26629: unsigned int* destLen, 26629: char* source, 26629: unsigned int sourceLen, 26629: int small, 26629: int verbosity 26629: ); 26629: # 233 "/usr/include/bzlib.h" 3 4 26629: extern const char * BZ2_bzlibVersion ( 26629: void 26629: ); 26629: 26629: 26629: extern BZFILE * BZ2_bzopen ( 26629: const char *path, 26629: const char *mode 26629: ); 26629: 26629: extern BZFILE * BZ2_bzdopen ( 26629: int fd, 26629: const char *mode 26629: ); 26629: 26629: extern int BZ2_bzread ( 26629: BZFILE* b, 26629: void* buf, 26629: int len 26629: ); 26629: 26629: extern int BZ2_bzwrite ( 26629: BZFILE* b, 26629: void* buf, 26629: int len 26629: ); 26629: 26629: extern int BZ2_bzflush ( 26629: BZFILE* b 26629: ); 26629: 26629: extern void BZ2_bzclose ( 26629: BZFILE* b 26629: ); 26629: 26629: extern const char * BZ2_bzerror ( 26629: BZFILE *b, 26629: int *errnum 26629: ); 26629: 26629: 26629: 26629: } 26629: # 41 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: 26629: 26629: 26629: # 1 "/usr/include/lz4.h" 1 3 4 26629: # 36 "/usr/include/lz4.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 44 "/usr/include/lz4.h" 2 3 4 26629: # 142 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_versionNumber (void); 26629: __attribute__ ((visibility ("default"))) const char* LZ4_versionString (void); 26629: # 189 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 26629: # 205 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity); 26629: # 223 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_compressBound(int inputSize); 26629: # 233 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 26629: # 242 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_sizeofState(void); 26629: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 26629: # 269 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_compress_destSize (const char* src, char* dst, int* srcSizePtr, int targetDstSize); 26629: # 306 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 26629: 26629: 26629: 26629: 26629: 26629: typedef union LZ4_stream_u LZ4_stream_t; 26629: # 329 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_createStream(void); 26629: __attribute__ ((visibility ("default"))) int LZ4_freeStream (LZ4_stream_t* streamPtr); 26629: # 356 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); 26629: # 369 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 26629: # 394 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 26629: # 403 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_saveDict (LZ4_stream_t* streamPtr, char* safeBuffer, int maxDictSize); 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef union LZ4_streamDecode_u LZ4_streamDecode_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) LZ4_streamDecode_t* LZ4_createStreamDecode(void); 26629: __attribute__ ((visibility ("default"))) int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream); 26629: # 430 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 26629: # 443 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_decoderRingBufferSize(int maxBlockSize); 26629: # 471 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int 26629: LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, 26629: const char* src, char* dst, 26629: int srcSize, int dstCapacity); 26629: # 485 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) int 26629: LZ4_decompress_safe_usingDict(const char* src, char* dst, 26629: int srcSize, int dstCapacity, 26629: const char* dictStart, int dictSize); 26629: 26629: __attribute__ ((visibility ("default"))) int 26629: LZ4_decompress_safe_partial_usingDict(const char* src, char* dst, 26629: int compressedSize, 26629: int targetOutputSize, int maxOutputSize, 26629: const char* dictStart, int dictSize); 26629: # 660 "/usr/include/lz4.h" 3 4 26629: typedef int8_t LZ4_i8; 26629: typedef uint8_t LZ4_byte; 26629: typedef uint16_t LZ4_u16; 26629: typedef uint32_t LZ4_u32; 26629: # 677 "/usr/include/lz4.h" 3 4 26629: typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; 26629: struct LZ4_stream_t_internal { 26629: LZ4_u32 hashTable[(1 << (14 -2))]; 26629: const LZ4_byte* dictionary; 26629: const LZ4_stream_t_internal* dictCtx; 26629: LZ4_u32 currentOffset; 26629: LZ4_u32 tableType; 26629: LZ4_u32 dictSize; 26629: 26629: }; 26629: 26629: 26629: union LZ4_stream_u { 26629: char minStateSize[((1UL << 14) + 32)]; 26629: LZ4_stream_t_internal internal_donotuse; 26629: }; 26629: # 709 "/usr/include/lz4.h" 3 4 26629: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_initStream (void* buffer, size_t size); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef struct { 26629: const LZ4_byte* externalDict; 26629: const LZ4_byte* prefixEnd; 26629: size_t extDictSize; 26629: size_t prefixSize; 26629: } LZ4_streamDecode_t_internal; 26629: 26629: 26629: union LZ4_streamDecode_u { 26629: char minStateSize[32]; 26629: LZ4_streamDecode_t_internal internal_donotuse; 26629: } ; 26629: # 765 "/usr/include/lz4.h" 3 4 26629: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress (const char* src, char* dest, int srcSize); 26629: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput (const char* src, char* dest, int srcSize, int maxOutputSize); 26629: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_withState (void* state, const char* source, char* dest, int inputSize); 26629: [[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); 26629: [[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); 26629: [[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); 26629: 26629: 26629: [[deprecated("use LZ4_decompress_fast() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress (const char* source, char* dest, int outputSize); 26629: [[deprecated("use LZ4_decompress_safe() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); 26629: # 786 "/usr/include/lz4.h" 3 4 26629: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_create (char* inputBuffer); 26629: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamState(void); 26629: [[deprecated("Use LZ4_resetStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamState(void* state, char* inputBuffer); 26629: [[deprecated("Use LZ4_saveDict() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBuffer (void* state); 26629: 26629: 26629: [[deprecated("use LZ4_decompress_safe_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); 26629: [[deprecated("use LZ4_decompress_fast_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); 26629: # 821 "/usr/include/lz4.h" 3 4 26629: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe() instead")]] 26629: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast (const char* src, char* dst, int originalSize); 26629: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_continue() instead")]] 26629: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int originalSize); 26629: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_usingDict() instead")]] 26629: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) void LZ4_resetStream (LZ4_stream_t* streamPtr); 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: # 45 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: # 1 "/usr/include/lz4hc.h" 1 3 4 26629: # 38 "/usr/include/lz4hc.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/lz4.h" 1 3 4 26629: # 36 "/usr/include/lz4.h" 3 4 26629: extern "C" { 26629: # 841 "/usr/include/lz4.h" 3 4 26629: } 26629: # 44 "/usr/include/lz4hc.h" 2 3 4 26629: # 66 "/usr/include/lz4hc.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 26629: # 79 "/usr/include/lz4hc.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_sizeofStateHC(void); 26629: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_extStateHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 26629: # 91 "/usr/include/lz4hc.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_destSize(void* stateHC, 26629: const char* src, char* dst, 26629: int* srcSizePtr, int targetDstSize, 26629: int compressionLevel); 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef union LZ4_streamHC_u LZ4_streamHC_t; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_createStreamHC(void); 26629: __attribute__ ((visibility ("default"))) int LZ4_freeStreamHC (LZ4_streamHC_t* streamHCPtr); 26629: # 155 "/usr/include/lz4hc.h" 3 4 26629: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); 26629: __attribute__ ((visibility ("default"))) int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize); 26629: 26629: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, 26629: const char* src, char* dst, 26629: int srcSize, int maxDstSize); 26629: # 172 "/usr/include/lz4hc.h" 3 4 26629: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, 26629: const char* src, char* dst, 26629: int* srcSizePtr, int targetDstSize); 26629: 26629: __attribute__ ((visibility ("default"))) int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, int maxDictSize); 26629: # 204 "/usr/include/lz4hc.h" 3 4 26629: typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal; 26629: struct LZ4HC_CCtx_internal 26629: { 26629: LZ4_u32 hashTable[(1 << 15)]; 26629: LZ4_u16 chainTable[(1<<16)]; 26629: const LZ4_byte* end; 26629: const LZ4_byte* prefixStart; 26629: const LZ4_byte* dictStart; 26629: LZ4_u32 dictLimit; 26629: LZ4_u32 lowLimit; 26629: LZ4_u32 nextToUpdate; 26629: short compressionLevel; 26629: LZ4_i8 favorDecSpeed; 26629: 26629: LZ4_i8 dirty; 26629: const LZ4HC_CCtx_internal* dictCtx; 26629: }; 26629: 26629: 26629: union LZ4_streamHC_u { 26629: char minStateSize[262200]; 26629: LZ4HC_CCtx_internal internal_donotuse; 26629: }; 26629: # 245 "/usr/include/lz4hc.h" 3 4 26629: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_initStreamHC(void* buffer, size_t size); 26629: # 254 "/usr/include/lz4hc.h" 3 4 26629: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC (const char* source, char* dest, int inputSize); 26629: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); 26629: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 26629: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 26629: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); 26629: [[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); 26629: [[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); 26629: [[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); 26629: [[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); 26629: [[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); 26629: # 274 "/usr/include/lz4hc.h" 3 4 26629: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_createHC (const char* inputBuffer); 26629: [[deprecated("use LZ4_freeStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_freeHC (void* LZ4HC_Data); 26629: 26629: [[deprecated("use LZ4_saveDictHC() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBufferHC (void* LZ4HC_Data); 26629: [[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); 26629: [[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); 26629: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamStateHC(void); 26629: [[deprecated("use LZ4_initStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamStateHC(void* state, char* inputBuffer); 26629: # 292 "/usr/include/lz4hc.h" 3 4 26629: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 26629: 26629: 26629: 26629: } 26629: # 46 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: 26629: 26629: 26629: # 1 "/usr/include/zstd.h" 1 3 4 26629: # 11 "/usr/include/zstd.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 1 3 4 26629: # 19 "/usr/include/zstd.h" 2 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 20 "/usr/include/zstd.h" 2 3 4 26629: # 114 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) unsigned ZSTD_versionNumber(void); 26629: # 123 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) const char* ZSTD_versionString(void); 26629: # 154 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_compress( void* dst, size_t dstCapacity, 26629: const void* src, size_t srcSize, 26629: int compressionLevel); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress( void* dst, size_t dstCapacity, 26629: const void* src, size_t compressedSize); 26629: # 192 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: [[deprecated("Replaced by ZSTD_getFrameContentSize")]] 26629: __attribute__ ((visibility ("default"))) 26629: unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); 26629: # 232 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_compressBound(size_t srcSize); 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) unsigned ZSTD_isError(size_t code); 26629: __attribute__ ((visibility ("default"))) const char* ZSTD_getErrorName(size_t code); 26629: __attribute__ ((visibility ("default"))) int ZSTD_minCLevel(void); 26629: __attribute__ ((visibility ("default"))) int ZSTD_maxCLevel(void); 26629: __attribute__ ((visibility ("default"))) int ZSTD_defaultCLevel(void); 26629: # 258 "/usr/include/zstd.h" 3 4 26629: typedef struct ZSTD_CCtx_s ZSTD_CCtx; 26629: __attribute__ ((visibility ("default"))) ZSTD_CCtx* ZSTD_createCCtx(void); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 26629: # 270 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 26629: void* dst, size_t dstCapacity, 26629: const void* src, size_t srcSize, 26629: int compressionLevel); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef struct ZSTD_DCtx_s ZSTD_DCtx; 26629: __attribute__ ((visibility ("default"))) ZSTD_DCtx* ZSTD_createDCtx(void); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, 26629: void* dst, size_t dstCapacity, 26629: const void* src, size_t srcSize); 26629: # 314 "/usr/include/zstd.h" 3 4 26629: typedef enum { ZSTD_fast=1, 26629: ZSTD_dfast=2, 26629: ZSTD_greedy=3, 26629: ZSTD_lazy=4, 26629: ZSTD_lazy2=5, 26629: ZSTD_btlazy2=6, 26629: ZSTD_btopt=7, 26629: ZSTD_btultra=8, 26629: ZSTD_btultra2=9 26629: 26629: 26629: } ZSTD_strategy; 26629: 26629: typedef enum { 26629: 26629: 26629: 26629: 26629: 26629: ZSTD_c_compressionLevel=100, 26629: # 346 "/usr/include/zstd.h" 3 4 26629: ZSTD_c_windowLog=101, 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ZSTD_c_hashLog=102, 26629: 26629: 26629: 26629: 26629: 26629: ZSTD_c_chainLog=103, 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ZSTD_c_searchLog=104, 26629: 26629: 26629: 26629: ZSTD_c_minMatch=105, 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ZSTD_c_targetLength=106, 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ZSTD_c_strategy=107, 26629: 26629: 26629: 26629: 26629: ZSTD_c_enableLongDistanceMatching=160, 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ZSTD_c_ldmHashLog=161, 26629: 26629: 26629: 26629: 26629: 26629: ZSTD_c_ldmMinMatch=162, 26629: 26629: 26629: 26629: ZSTD_c_ldmBucketSizeLog=163, 26629: 26629: 26629: 26629: ZSTD_c_ldmHashRateLog=164, 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ZSTD_c_contentSizeFlag=200, 26629: 26629: 26629: 26629: ZSTD_c_checksumFlag=201, 26629: ZSTD_c_dictIDFlag=202, 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: ZSTD_c_nbWorkers=400, 26629: # 445 "/usr/include/zstd.h" 3 4 26629: ZSTD_c_jobSize=401, 26629: 26629: 26629: 26629: 26629: ZSTD_c_overlapLog=402, 26629: # 487 "/usr/include/zstd.h" 3 4 26629: ZSTD_c_experimentalParam1=500, 26629: ZSTD_c_experimentalParam2=10, 26629: ZSTD_c_experimentalParam3=1000, 26629: ZSTD_c_experimentalParam4=1001, 26629: ZSTD_c_experimentalParam5=1002, 26629: ZSTD_c_experimentalParam6=1003, 26629: ZSTD_c_experimentalParam7=1004, 26629: ZSTD_c_experimentalParam8=1005, 26629: ZSTD_c_experimentalParam9=1006, 26629: ZSTD_c_experimentalParam10=1007, 26629: ZSTD_c_experimentalParam11=1008, 26629: ZSTD_c_experimentalParam12=1009, 26629: ZSTD_c_experimentalParam13=1010, 26629: ZSTD_c_experimentalParam14=1011, 26629: ZSTD_c_experimentalParam15=1012, 26629: ZSTD_c_experimentalParam16=1013, 26629: ZSTD_c_experimentalParam17=1014, 26629: ZSTD_c_experimentalParam18=1015, 26629: ZSTD_c_experimentalParam19=1016 26629: } ZSTD_cParameter; 26629: 26629: typedef struct { 26629: size_t error; 26629: int lowerBound; 26629: int upperBound; 26629: } ZSTD_bounds; 26629: # 521 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); 26629: # 534 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); 26629: # 551 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 26629: 26629: typedef enum { 26629: ZSTD_reset_session_only = 1, 26629: ZSTD_reset_parameters = 2, 26629: ZSTD_reset_session_and_parameters = 3 26629: } ZSTD_ResetDirective; 26629: # 573 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); 26629: # 585 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_compress2( ZSTD_CCtx* cctx, 26629: void* dst, size_t dstCapacity, 26629: const void* src, size_t srcSize); 26629: # 602 "/usr/include/zstd.h" 3 4 26629: typedef enum { 26629: 26629: ZSTD_d_windowLogMax=100, 26629: # 622 "/usr/include/zstd.h" 3 4 26629: ZSTD_d_experimentalParam1=1000, 26629: ZSTD_d_experimentalParam2=1001, 26629: ZSTD_d_experimentalParam3=1002, 26629: ZSTD_d_experimentalParam4=1003, 26629: ZSTD_d_experimentalParam5=1004 26629: 26629: } ZSTD_dParameter; 26629: # 637 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); 26629: # 646 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef struct ZSTD_inBuffer_s { 26629: const void* src; 26629: size_t size; 26629: size_t pos; 26629: } ZSTD_inBuffer; 26629: 26629: typedef struct ZSTD_outBuffer_s { 26629: void* dst; 26629: size_t size; 26629: size_t pos; 26629: } ZSTD_outBuffer; 26629: # 736 "/usr/include/zstd.h" 3 4 26629: typedef ZSTD_CCtx ZSTD_CStream; 26629: 26629: 26629: __attribute__ ((visibility ("default"))) ZSTD_CStream* ZSTD_createCStream(void); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCStream(ZSTD_CStream* zcs); 26629: 26629: 26629: typedef enum { 26629: ZSTD_e_continue=0, 26629: ZSTD_e_flush=1, 26629: 26629: 26629: 26629: ZSTD_e_end=2 26629: 26629: 26629: 26629: 26629: } ZSTD_EndDirective; 26629: # 778 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 26629: ZSTD_outBuffer* output, 26629: ZSTD_inBuffer* input, 26629: ZSTD_EndDirective endOp); 26629: # 797 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamInSize(void); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamOutSize(void); 26629: # 817 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 26629: # 858 "/usr/include/zstd.h" 3 4 26629: typedef ZSTD_DCtx ZSTD_DStream; 26629: 26629: 26629: __attribute__ ((visibility ("default"))) ZSTD_DStream* ZSTD_createDStream(void); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDStream(ZSTD_DStream* zds); 26629: # 874 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_initDStream(ZSTD_DStream* zds); 26629: # 891 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamInSize(void); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamOutSize(void); 26629: # 907 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, 26629: void* dst, size_t dstCapacity, 26629: const void* src, size_t srcSize, 26629: const void* dict,size_t dictSize, 26629: int compressionLevel); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, 26629: void* dst, size_t dstCapacity, 26629: const void* src, size_t srcSize, 26629: const void* dict,size_t dictSize); 26629: 26629: 26629: 26629: 26629: 26629: typedef struct ZSTD_CDict_s ZSTD_CDict; 26629: # 942 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 26629: int compressionLevel); 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 26629: void* dst, size_t dstCapacity, 26629: const void* src, size_t srcSize, 26629: const ZSTD_CDict* cdict); 26629: 26629: 26629: typedef struct ZSTD_DDict_s ZSTD_DDict; 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDDict(ZSTD_DDict* ddict); 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, 26629: void* dst, size_t dstCapacity, 26629: const void* src, size_t srcSize, 26629: const ZSTD_DDict* ddict); 26629: # 990 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); 26629: # 1014 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); 26629: # 1045 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 26629: # 1059 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 26629: # 1079 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 26629: const void* prefix, size_t prefixSize); 26629: # 1097 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 26629: # 1116 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 26629: # 1134 "/usr/include/zstd.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, 26629: const void* prefix, size_t prefixSize); 26629: 26629: 26629: 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 26629: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); 26629: # 2973 "/usr/include/zstd.h" 3 4 26629: } 26629: # 50 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: 26629: # 1 "/usr/include/zdict.h" 1 3 4 26629: # 12 "/usr/include/zdict.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 20 "/usr/include/zdict.h" 2 3 4 26629: # 210 "/usr/include/zdict.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, 26629: const void* samplesBuffer, 26629: const size_t* samplesSizes, unsigned nbSamples); 26629: 26629: typedef struct { 26629: int compressionLevel; 26629: unsigned notificationLevel; 26629: unsigned dictID; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } ZDICT_params_t; 26629: # 262 "/usr/include/zdict.h" 3 4 26629: __attribute__ ((visibility ("default"))) size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, 26629: const void* dictContent, size_t dictContentSize, 26629: const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, 26629: ZDICT_params_t parameters); 26629: 26629: 26629: 26629: __attribute__ ((visibility ("default"))) unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); 26629: __attribute__ ((visibility ("default"))) size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); 26629: __attribute__ ((visibility ("default"))) unsigned ZDICT_isError(size_t errorCode); 26629: __attribute__ ((visibility ("default"))) const char* ZDICT_getErrorName(size_t errorCode); 26629: # 473 "/usr/include/zdict.h" 3 4 26629: } 26629: # 52 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 26629: 26629: 26629: 26629: 26629: 26629: # 56 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: namespace rocksdb { 26629: # 82 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: class ZSTDUncompressCachedData { 26629: public: 26629: using ZSTDNativeContext = ZSTD_DCtx*; 26629: ZSTDUncompressCachedData() {} 26629: 26629: ZSTDUncompressCachedData(const ZSTDUncompressCachedData& o) = delete; 26629: ZSTDUncompressCachedData& operator=(const ZSTDUncompressCachedData&) = delete; 26629: ZSTDUncompressCachedData(ZSTDUncompressCachedData&& o) noexcept 26629: : ZSTDUncompressCachedData() { 26629: *this = std::move(o); 26629: } 26629: ZSTDUncompressCachedData& operator=(ZSTDUncompressCachedData&& o) noexcept { 26629: 26629: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: zstd_ctx_ == nullptr 26629: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "zstd_ctx_ == nullptr" 26629: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 94, __extension__ __PRETTY_FUNCTION__)) 26629: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: std::swap(zstd_ctx_, o.zstd_ctx_); 26629: std::swap(cache_idx_, o.cache_idx_); 26629: return *this; 26629: } 26629: ZSTDNativeContext Get() const { return zstd_ctx_; } 26629: int64_t GetCacheIndex() const { return cache_idx_; } 26629: void CreateIfNeeded() { 26629: if (zstd_ctx_ == nullptr) { 26629: 26629: 26629: 26629: 26629: zstd_ctx_ = ZSTD_createDCtx(); 26629: 26629: cache_idx_ = -1; 26629: } 26629: } 26629: void InitFromCache(const ZSTDUncompressCachedData& o, int64_t idx) { 26629: zstd_ctx_ = o.zstd_ctx_; 26629: cache_idx_ = idx; 26629: } 26629: ~ZSTDUncompressCachedData() { 26629: if (zstd_ctx_ != nullptr && cache_idx_ == -1) { 26629: ZSTD_freeDCtx(zstd_ctx_); 26629: } 26629: } 26629: 26629: private: 26629: ZSTDNativeContext zstd_ctx_ = nullptr; 26629: int64_t cache_idx_ = -1; 26629: }; 26629: 26629: } 26629: # 156 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: namespace rocksdb { 26629: 26629: 26629: 26629: struct CompressionDict { 26629: 26629: ZSTD_CDict* zstd_cdict_ = nullptr; 26629: 26629: std::string dict_; 26629: 26629: public: 26629: 26629: CompressionDict(std::string dict, CompressionType type, int level) { 26629: 26629: 26629: 26629: dict_ = std::move(dict); 26629: 26629: zstd_cdict_ = nullptr; 26629: if (!dict_.empty() && (type == kZSTD || type == kZSTDNotFinalCompression)) { 26629: if (level == CompressionOptions::kDefaultCompressionLevel) { 26629: 26629: 26629: level = 3; 26629: } 26629: 26629: 26629: zstd_cdict_ = ZSTD_createCDict(dict_.data(), dict_.size(), level); 26629: 26629: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: zstd_cdict_ != nullptr 26629: # 184 "/build/reproducible-path/rocksdb-[ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/range_del_aggregator.cc.o 7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "zstd_cdict_ != nullptr" 26629: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 184, __extension__ __PRETTY_FUNCTION__)) 26629: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: } 26629: 26629: } 26629: 26629: ~CompressionDict() { 26629: 26629: size_t res = 0; 26629: if (zstd_cdict_ != nullptr) { 26629: res = ZSTD_freeCDict(zstd_cdict_); 26629: } 26629: 26629: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: res == 0 26629: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "res == 0" 26629: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 195, __extension__ __PRETTY_FUNCTION__)) 26629: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: (void)res; 26629: 26629: } 26629: 26629: 26629: const ZSTD_CDict* GetDigestedZstdCDict() const { return zstd_cdict_; } 26629: 26629: 26629: Slice GetRawDict() const { return dict_; } 26629: 26629: static const CompressionDict& GetEmptyDict() { 26629: static CompressionDict empty_dict{}; 26629: return empty_dict; 26629: } 26629: 26629: CompressionDict() = default; 26629: 26629: CompressionDict(const CompressionDict&) = delete; 26629: CompressionDict& operator=(const CompressionDict&) = delete; 26629: CompressionDict(CompressionDict&&) = delete; 26629: CompressionDict& operator=(CompressionDict&&) = delete; 26629: }; 26629: 26629: 26629: 26629: struct UncompressionDict { 26629: 26629: 26629: std::string dict_; 26629: 26629: 26629: 26629: 26629: CacheAllocationPtr allocation_; 26629: 26629: 26629: 26629: 26629: Slice slice_; 26629: # 244 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: UncompressionDict(std::string dict, bool ) 26629: 26629: : dict_(std::move(dict)), slice_(dict_) { 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: UncompressionDict(Slice slice, CacheAllocationPtr&& allocation, 26629: bool ) 26629: 26629: : allocation_(std::move(allocation)), slice_(std::move(slice)) { 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: UncompressionDict(UncompressionDict&& rhs) 26629: : dict_(std::move(rhs.dict_)), 26629: allocation_(std::move(rhs.allocation_)), 26629: slice_(std::move(rhs.slice_)) 26629: 26629: 26629: 26629: 26629: { 26629: 26629: 26629: 26629: } 26629: 26629: ~UncompressionDict() { 26629: # 294 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: } 26629: 26629: UncompressionDict& operator=(UncompressionDict&& rhs) { 26629: if (this == &rhs) { 26629: return *this; 26629: } 26629: 26629: dict_ = std::move(rhs.dict_); 26629: allocation_ = std::move(rhs.allocation_); 26629: slice_ = std::move(rhs.slice_); 26629: 26629: 26629: 26629: 26629: 26629: 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: bool own_bytes() const { return !dict_.empty() || allocation_; } 26629: 26629: const Slice& GetRawDict() const { return slice_; } 26629: 26629: 26629: 26629: 26629: 26629: static const UncompressionDict& GetEmptyDict() { 26629: static UncompressionDict empty_dict{}; 26629: return empty_dict; 26629: } 26629: 26629: size_t ApproximateMemoryUsage() const { 26629: size_t usage = sizeof(struct UncompressionDict); 26629: usage += dict_.size(); 26629: if (allocation_) { 26629: auto allocator = allocation_.get_deleter().allocator; 26629: if (allocator) { 26629: usage += allocator->UsableSize(allocation_.get(), slice_.size()); 26629: } else { 26629: usage += slice_.size(); 26629: } 26629: } 26629: 26629: 26629: 26629: return usage; 26629: } 26629: 26629: UncompressionDict() = default; 26629: 26629: UncompressionDict(const CompressionDict&) = delete; 26629: UncompressionDict& operator=(const CompressionDict&) = delete; 26629: }; 26629: 26629: class CompressionContext { 26629: private: 26629: 26629: ZSTD_CCtx* zstd_ctx_ = nullptr; 26629: void CreateNativeContext(CompressionType type) { 26629: if (type == kZSTD || type == kZSTDNotFinalCompression) { 26629: 26629: 26629: 26629: 26629: zstd_ctx_ = ZSTD_createCCtx(); 26629: 26629: } 26629: } 26629: void DestroyNativeContext() { 26629: if (zstd_ctx_ != nullptr) { 26629: ZSTD_freeCCtx(zstd_ctx_); 26629: } 26629: } 26629: 26629: public: 26629: 26629: ZSTD_CCtx* ZSTDPreallocCtx() const { 26629: 26629: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: zstd_ctx_ != nullptr 26629: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "zstd_ctx_ != nullptr" 26629: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 376, __extension__ __PRETTY_FUNCTION__)) 26629: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: return zstd_ctx_; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: public: 26629: explicit CompressionContext(CompressionType type) { 26629: CreateNativeContext(type); 26629: } 26629: ~CompressionContext() { DestroyNativeContext(); } 26629: CompressionContext(const CompressionContext&) = delete; 26629: CompressionContext& operator=(const CompressionContext&) = delete; 26629: }; 26629: 26629: class CompressionInfo { 26629: const CompressionOptions& opts_; 26629: const CompressionContext& context_; 26629: const CompressionDict& dict_; 26629: const CompressionType type_; 26629: const uint64_t sample_for_compression_; 26629: 26629: public: 26629: CompressionInfo(const CompressionOptions& _opts, 26629: const CompressionContext& _context, 26629: const CompressionDict& _dict, CompressionType _type, 26629: uint64_t _sample_for_compression) 26629: : opts_(_opts), 26629: context_(_context), 26629: dict_(_dict), 26629: type_(_type), 26629: sample_for_compression_(_sample_for_compression) {} 26629: 26629: const CompressionOptions& options() const { return opts_; } 26629: const CompressionContext& context() const { return context_; } 26629: const CompressionDict& dict() const { return dict_; } 26629: CompressionType type() const { return type_; } 26629: uint64_t SampleForCompression() const { return sample_for_compression_; } 26629: }; 26629: 26629: class UncompressionContext { 26629: private: 26629: CompressionContextCache* ctx_cache_ = nullptr; 26629: ZSTDUncompressCachedData uncomp_cached_data_; 26629: 26629: public: 26629: explicit UncompressionContext(CompressionType type) { 26629: if (type == kZSTD || type == kZSTDNotFinalCompression) { 26629: ctx_cache_ = CompressionContextCache::Instance(); 26629: uncomp_cached_data_ = ctx_cache_->GetCachedZSTDUncompressData(); 26629: } 26629: } 26629: ~UncompressionContext() { 26629: if (uncomp_cached_data_.GetCacheIndex() != -1) { 26629: 26629: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ctx_cache_ != nullptr 26629: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "ctx_cache_ != nullptr" 26629: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 433, __extension__ __PRETTY_FUNCTION__)) 26629: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: ctx_cache_->ReturnCachedZSTDUncompressData( 26629: uncomp_cached_data_.GetCacheIndex()); 26629: } 26629: } 26629: UncompressionContext(const UncompressionContext&) = delete; 26629: UncompressionContext& operator=(const UncompressionContext&) = delete; 26629: 26629: ZSTDUncompressCachedData::ZSTDNativeContext GetZSTDContext() const { 26629: return uncomp_cached_data_.Get(); 26629: } 26629: }; 26629: 26629: class UncompressionInfo { 26629: const UncompressionContext& context_; 26629: const UncompressionDict& dict_; 26629: const CompressionType type_; 26629: 26629: public: 26629: UncompressionInfo(const UncompressionContext& _context, 26629: const UncompressionDict& _dict, CompressionType _type) 26629: : context_(_context), dict_(_dict), type_(_type) {} 26629: 26629: const UncompressionContext& context() const { return context_; } 26629: const UncompressionDict& dict() const { return dict_; } 26629: CompressionType type() const { return type_; } 26629: }; 26629: 26629: inline bool Snappy_Supported() { 26629: 26629: return true; 26629: 26629: 26629: 26629: } 26629: 26629: inline bool Zlib_Supported() { 26629: 26629: return true; 26629: 26629: 26629: 26629: } 26629: 26629: inline bool BZip2_Supported() { 26629: 26629: return true; 26629: 26629: 26629: 26629: } 26629: 26629: inline bool LZ4_Supported() { 26629: 26629: return true; 26629: 26629: 26629: 26629: } 26629: 26629: inline bool XPRESS_Supported() { 26629: 26629: 26629: 26629: return false; 26629: 26629: } 26629: 26629: inline bool ZSTD_Supported() { 26629: 26629: 26629: return (ZSTD_versionNumber() >= 800); 26629: 26629: 26629: 26629: } 26629: 26629: inline bool ZSTDNotFinal_Supported() { 26629: 26629: return true; 26629: 26629: 26629: 26629: } 26629: 26629: inline bool ZSTD_Streaming_Supported() { 26629: 26629: return true; 26629: 26629: 26629: 26629: } 26629: 26629: inline bool StreamingCompressionTypeSupported( 26629: CompressionType compression_type) { 26629: switch (compression_type) { 26629: case kNoCompression: 26629: return true; 26629: case kZSTD: 26629: return ZSTD_Streaming_Supported(); 26629: default: 26629: return false; 26629: } 26629: } 26629: 26629: inline bool CompressionTypeSupported(CompressionType compression_type) { 26629: switch (compression_type) { 26629: case kNoCompression: 26629: return true; 26629: case kSnappyCompression: 26629: return Snappy_Supported(); 26629: case kZlibCompression: 26629: return Zlib_Supported(); 26629: case kBZip2Compression: 26629: return BZip2_Supported(); 26629: case kLZ4Compression: 26629: return LZ4_Supported(); 26629: case kLZ4HCCompression: 26629: return LZ4_Supported(); 26629: case kXpressCompression: 26629: return XPRESS_Supported(); 26629: case kZSTDNotFinalCompression: 26629: return ZSTDNotFinal_Supported(); 26629: case kZSTD: 26629: return ZSTD_Supported(); 26629: default: 26629: 26629: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: false 26629: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "false" 2/usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-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-7.8.3/db/range_del_aggregator.cc 6629: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 559, __extension__ __PRETTY_FUNCTION__)) 26629: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: return false; 26629: } 26629: } 26629: 26629: inline bool DictCompressionTypeSupported(CompressionType compression_type) { 26629: switch (compression_type) { 26629: case kNoCompression: 26629: return false; 26629: case kSnappyCompression: 26629: return false; 26629: case kZlibCompression: 26629: return Zlib_Supported(); 26629: case kBZip2Compression: 26629: return false; 26629: case kLZ4Compression: 26629: case kLZ4HCCompression: 26629: 26629: return LZ4_Supported(); 26629: 26629: 26629: 26629: case kXpressCompression: 26629: return false; 26629: case kZSTDNotFinalCompression: 26629: 26629: return ZSTDNotFinal_Supported(); 26629: 26629: 26629: 26629: case kZSTD: 26629: 26629: return ZSTD_Supported(); 26629: 26629: 26629: 26629: default: 26629: 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: false 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "false" 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 596, __extension__ __PRETTY_FUNCTION__)) 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: return false; 26629: } 26629: } 26629: 26629: inline std::string CompressionTypeToString(CompressionType compression_type) { 26629: switch (compression_type) { 26629: case kNoCompression: 26629: return "NoCompression"; 26629: case kSnappyCompression: 26629: return "Snappy"; 26629: case kZlibCompression: 26629: return "Zlib"; 26629: case kBZip2Compression: 26629: return "BZip2"; 26629: case kLZ4Compression: 26629: return "LZ4"; 26629: case kLZ4HCCompression: 26629: return "LZ4HC"; 26629: case kXpressCompression: 26629: return "Xpress"; 26629: case kZSTD: 26629: return "ZSTD"; 26629: case kZSTDNotFinalCompression: 26629: return "ZSTDNotFinal"; 26629: case kDisableCompressionOption: 26629: return "DisableOption"; 26629: default: 26629: 26629: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: false 26629: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "false" 26629: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 624, __extension__ __PRETTY_FUNCTION__)) 26629: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: return ""; 26629: } 26629: } 26629: 26629: inline std::string CompressionOptionsToString( 26629: CompressionOptions& compression_options) { 26629: std::string result; 26629: result.reserve(512); 26629: result.append("window_bits=") 26629: .append(std::to_string(compression_options.window_bits)) 26629: .append("; "); 26629: result.append("level=") 26629: .append(std::to_string(compression_options.level)) 26629: .append("; "); 26629: result.append("strategy=") 26629: .append(std::to_string(compression_options.strategy)) 26629: .append("; "); 26629: result.append("max_dict_bytes=") 26629: .append(std::to_string(compression_options.max_dict_bytes)) 26629: .append("; "); 26629: result.append("zstd_max_train_bytes=") 26629: .append(std::to_string(compression_options.zstd_max_train_bytes)) 26629: .append("; "); 26629: result.append("enabled=") 26629: .append(std::to_string(compression_options.enabled)) 26629: .append("; "); 26629: result.append("max_dict_buffer_bytes=") 26629: .append(std::to_string(compression_options.max_dict_buffer_bytes)) 26629: .append("; "); 26629: result.append("use_zstd_dict_trainer=") 26629: .append(std::to_string(compression_options.use_zstd_dict_trainer)) 26629: .append("; "); 26629: return result; 26629: } 26629: # 667 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: inline bool Snappy_Compress(const CompressionInfo& , const char* input, 26629: size_t length, ::std::string* output) { 26629: 26629: output->resize(snappy::MaxCompressedLength(length)); 26629: size_t outlen; 26629: snappy::RawCompress(input, length, &(*output)[0], &outlen); 26629: output->resize(outlen); 26629: return true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: inline CacheAllocationPtr Snappy_Uncompress( 26629: const char* input, size_t length, size_t* uncompressed_size, 26629: MemoryAllocator* allocator = nullptr) { 26629: 26629: size_t uncompressed_length = 0; 26629: if (!snappy::GetUncompressedLength(input, length, &uncompressed_length)) { 26629: return nullptr; 26629: } 26629: 26629: CacheAllocationPtr output = AllocateBlock(uncompressed_length, allocator); 26629: 26629: if (!snappy::RawUncompress(input, length, output.get())) { 26629: return nullptr; 26629: } 26629: 26629: *uncompressed_size = uncompressed_length; 26629: 26629: return output; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: namespace compression { 26629: 26629: inline size_t PutDecompressedSizeInfo(std::string* output, uint32_t length) { 26629: PutVarint32(output, length); 26629: return output->size(); 26629: } 26629: 26629: inline bool GetDecompressedSizeInfo(const char** input_data, 26629: size_t* input_length, 26629: uint32_t* output_len) { 26629: auto new_input_data = 26629: GetVarint32Ptr(*input_data, *input_data + *input_length, output_len); 26629: if (new_input_data == nullptr) { 26629: return false; 26629: } 26629: *input_length -= (new_input_data - *input_data); 26629: *input_data = new_input_data; 26629: return true; 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline bool Zlib_Compress(const CompressionInfo& info, 26629: uint32_t compress_format_version, const char* input, 26629: size_t length, ::std::string* output) { 26629: 26629: if (length > std::numeric_limits::max()) { 26629: 26629: return false; 26629: } 26629: 26629: size_t output_header_len = 0; 26629: if (compress_format_version == 2) { 26629: output_header_len = compression::PutDecompressedSizeInfo( 26629: output, static_cast(length)); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: static const int memLevel = 8; 26629: int level; 26629: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 26629: level = 26629: # 760 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (-1) 26629: # 760 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: } else { 26629: level = info.options().level; 26629: } 26629: z_stream _stream; 26629: memset(&_stream, 0, sizeof(z_stream)); 26629: int st = 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: deflateInit2_(( 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: &_stream 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ),( 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: level 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ),(8),( 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: info.options().window_bits 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ),( 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: memLevel 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ), ( 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: info.options().strategy 26629: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ), "1.2.13", (int)sizeof(z_stream)) 26629: 26629: # 767 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: if (st != 26629: # 768 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 0 26629: # 768 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ) { 26629: return false; 26629: } 26629: 26629: Slice compression_dict = info.dict().GetRawDict(); 26629: if (compression_dict.size()) { 26629: 26629: st = deflateSetDictionary( 26629: &_stream, reinterpret_cast(compression_dict.data()), 26629: static_cast(compression_dict.size())); 26629: if (st != 26629: # 778 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 0 26629: # 778 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ) { 26629: deflateEnd(&_stream); 26629: return false; 26629: } 26629: } 26629: 26629: 26629: size_t upper_bound = 26629: deflateBound(&_stream, static_cast(length)); 26629: output->resize(output_header_len + upper_bound); 26629: 26629: 26629: _stream.next_in = (Bytef*)input; 26629: _stream.avail_in = static_cast(length); 26629: 26629: 26629: _stream.avail_out = static_cast(upper_bound); 26629: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 26629: 26629: bool compressed = false; 26629: st = deflate(&_stream, 26629: # 798 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 4 26629: # 798 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ); 26629: if (st == 26629: # 799 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 1 26629: # 799 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ) { 26629: compressed = true; 26629: output->resize(output->size() - _stream.avail_out); 26629: } 26629: 26629: 26629: 26629: 26629: deflateEnd(&_stream); 26629: return compressed; 26629: # 817 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline CacheAllocationPtr Zlib_Uncompress( 26629: const UncompressionInfo& info, const char* input_data, size_t input_length, 26629: size_t* uncompressed_size, uint32_t compress_format_version, 26629: MemoryAllocator* allocator = nullptr, int windowBits = -14) { 26629: 26629: uint32_t output_len = 0; 26629: if (compress_format_version == 2) { 26629: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 26629: &output_len)) { 26629: return nullptr; 26629: } 26629: } else { 26629: 26629: 26629: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 26629: output_len = static_cast( 26629: std::min(proposed_output_len, 26629: static_cast(std::numeric_limits::max()))); 26629: } 26629: 26629: z_stream _stream; 26629: memset(&_stream, 0, sizeof(z_stream)); 26629: 26629: 26629: 26629: 26629: int st = 26629: 26629: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: inflateInit2_(( 26629: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: &_stream 26629: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ), ( 26629: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: windowBits > 0 ? windowBits + 32 : windowBits 26629: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ), "1.2.13", (int)sizeof(z_stream)) 26629: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: if (st != 26629: # 853 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 0 26629: # 853 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ) { 26629: return nullptr; 26629: } 26629: 26629: const Slice& compression_dict = info.dict().GetRawDict(); 26629: if (compression_dict.size()) { 26629: 26629: st = inflateSetDictionary( 26629: &_stream, reinterpret_cast(compression_dict.data()), 26629: static_cast(compression_dict.size())); 26629: if (st != 26629: # 863 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 0 26629: # 863 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ) { 26629: return nullptr; 26629: } 26629: } 26629: 26629: _stream.next_in = (Bytef*)input_data; 26629: _stream.avail_in = static_cast(input_length); 26629: 26629: auto output = AllocateBlock(output_len, allocator); 26629: 26629: _stream.next_out = (Bytef*)output.get(); 26629: _stream.avail_out = static_cast(output_len); 26629: 26629: bool done = false; 26629: while (!done) { 26629: st = inflate(&_stream, 26629: # 878 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 2 26629: # 878 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ); 26629: switch (st) { 26629: case 26629: # 880 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 1 26629: # 880 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: : 26629: done = true; 26629: break; 26629: case 26629: # 883 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 0 26629: # 883 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: : { 26629: 26629: 26629: 26629: 26629: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: compress_format_version != 2 26629: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "compress_format_version != 2" 26629: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 887, __extension__ __PRETTY_FUNCTION__)) 26629: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: size_t old_sz = output_len; 26629: uint32_t output_len_delta = output_len / 5; 26629: output_len += output_len_delta < 10 ? 10 : output_len_delta; 26629: auto tmp = AllocateBlock(output_len, allocator); 26629: memcpy(tmp.get(), output.get(), old_sz); 26629: output = std::move(tmp); 26629: 26629: 26629: _stream.next_out = (Bytef*)(output.get() + old_sz); 26629: _stream.avail_out = static_cast(output_len - old_sz); 26629: break; 26629: } 26629: case 26629: # 900 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (-5) 26629: # 900 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: : 26629: default: 26629: inflateEnd(&_stream); 26629: return nullptr; 26629: } 26629: } 26629: 26629: 26629: 26629: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: compress_format_version != 2 || _stream.avail_out == 0 26629: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "compress_format_version != 2 || _stream.avail_out == 0" 26629: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 908, __extension__ __PRETTY_FUNCTION__)) 26629: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: 26629: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: output_len >= _stream.avail_out 26629: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "output_len >= _stream.avail_out" 26629: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 909, __extension__ __PRETTY_FUNCTION__)) 26629: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: *uncompressed_size = output_len - _stream.avail_out; 26629: inflateEnd(&_stream); 26629: return output; 26629: # 923 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: } 26629: 26629: 26629: 26629: 26629: 26629: inline bool BZip2_Compress(const CompressionInfo& , 26629: uint32_t compress_format_version, const char* input, 26629: size_t length, ::std::string* output) { 26629: 26629: if (length > std::numeric_limits::max()) { 26629: 26629: return false; 26629: } 26629: size_t output_header_len = 0; 26629: if (compress_format_version == 2) { 26629: output_header_len = compression::PutDecompressedSizeInfo( 26629: output, static_cast(length)); 26629: } 26629: 26629: 26629: output->resize(output_header_len + length); 26629: 26629: bz_stream _stream; 26629: memset(&_stream, 0, sizeof(bz_stream)); 26629: 26629: 26629: 26629: 26629: int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); 26629: if (st != 26629: # 953 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 0 26629: # 953 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ) { 26629: return false; 26629: } 26629: 26629: 26629: _stream.next_in = (char*)input; 26629: _stream.avail_in = static_cast(length); 26629: 26629: 26629: _stream.avail_out = static_cast(length); 26629: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 26629: 26629: bool compressed = false; 26629: st = BZ2_bzCompress(&_stream, 26629: # 966 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 2 26629: # 966 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ); 26629: if (st == 26629: # 967 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 4 26629: # 967 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ) { 26629: compressed = true; 26629: output->resize(output->size() - _stream.avail_out); 26629: } 26629: 26629: 26629: 26629: 26629: BZ2_bzCompressEnd(&_stream); 26629: return compressed; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: 26629: 26629: inline CacheAllocationPtr BZip2_Uncompress( 26629: const char* input_data, size_t input_length, size_t* uncompressed_size, 26629: uint32_t compress_format_version, MemoryAllocator* allocator = nullptr) { 26629: 26629: uint32_t output_len = 0; 26629: if (compress_format_version == 2) { 26629: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 26629: &output_len)) { 26629: return nullptr; 26629: } 26629: } else { 26629: 26629: 26629: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 26629: output_len = static_cast( 26629: std::min(proposed_output_len, 26629: static_cast(std::numeric_limits::max()))); 26629: } 26629: 26629: bz_stream _stream; 26629: memset(&_stream, 0, sizeof(bz_stream)); 26629: 26629: int st = BZ2_bzDecompressInit(&_stream, 0, 0); 26629: if (st != 26629: # 1013 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 0 26629: # 1013 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ) { 26629: return nullptr; 26629: } 26629: 26629: _stream.next_in = (char*)input_data; 26629: _stream.avail_in = static_cast(input_length); 26629: 26629: auto output = AllocateBlock(output_len, allocator); 26629: 26629: _stream.next_out = (char*)output.get(); 26629: _stream.avail_out = static_cast(output_len); 26629: 26629: bool done = false; 26629: while (!done) { 26629: st = BZ2_bzDecompress(&_stream); 26629: switch (st) { 26629: case 26629: # 1029 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 4 26629: # 1029 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: : 26629: done = true; 26629: break; 26629: case 26629: # 1032 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: 0 26629: # 1032 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: : { 26629: 26629: 26629: 26629: 26629: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: compress_format_version != 2 26629: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "compress_format_version != 2" 26629: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1036, __extension__ __PRETTY_FUNCTION__)) 26629: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: uint32_t old_sz = output_len; 26629: output_len = output_len * 1.2; 26629: auto tmp = AllocateBlock(output_len, allocator); 26629: memcpy(tmp.get(), output.get(), old_sz); 26629: output = std::move(tmp); 26629: 26629: 26629: _stream.next_out = (char*)(output.get() + old_sz); 26629: _stream.avail_out = static_cast(output_len - old_sz); 26629: break; 26629: } 26629: default: 26629: BZ2_bzDecompressEnd(&_stream); 26629: return nullptr; 26629: } 26629: } 26629: 26629: 26629: 26629: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: compress_format_version != 2 || _stream.avail_out == 0 26629: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "compress_format_version != 2 || _stream.avail_out == 0" 26629: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1055, __extension__ __PRETTY_FUNCTION__)) 26629: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: 26629: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: output_len >= _stream.avail_out 26629: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "output_len >= _stream.avail_out" 26629: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1056, __extension__ __PRETTY_FUNCTION__)) 26629: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: *uncompressed_size = output_len - _stream.avail_out; 26629: BZ2_bzDecompressEnd(&_stream); 26629: return output; 26629: # 1068 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline bool LZ4_Compress(const CompressionInfo& info, 26629: uint32_t compress_format_version, const char* input, 26629: size_t length, ::std::string* output) { 26629: 26629: if (length > std::numeric_limits::max()) { 26629: 26629: return false; 26629: } 26629: 26629: size_t output_header_len = 0; 26629: if (compress_format_version == 2) { 26629: 26629: output_header_len = compression::PutDecompressedSizeInfo( 26629: output, static_cast(length)); 26629: } else { 26629: 26629: 26629: output_header_len = 8; 26629: output->resize(output_header_len); 26629: char* p = const_cast(output->c_str()); 26629: memcpy(p, &length, sizeof(length)); 26629: } 26629: int compress_bound = LZ4_compressBound(static_cast(length)); 26629: output->resize(static_cast(output_header_len + compress_bound)); 26629: 26629: int outlen; 26629: 26629: LZ4_stream_t* stream = LZ4_createStream(); 26629: Slice compression_dict = info.dict().GetRawDict(); 26629: if (compression_dict.size()) { 26629: LZ4_loadDict(stream, compression_dict.data(), 26629: static_cast(compression_dict.size())); 26629: } 26629: 26629: outlen = 26629: LZ4_compress_fast_continue(stream, input, &(*output)[output_header_len], 26629: static_cast(length), compress_bound, 1); 26629: 26629: 26629: 26629: 26629: 26629: LZ4_freeStream(stream); 26629: 26629: 26629: 26629: 26629: 26629: if (outlen == 0) { 26629: return false; 26629: } 26629: output->resize(static_cast(output_header_len + outlen)); 26629: return true; 26629: # 1137 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline CacheAllocationPtr LZ4_Uncompress(const UncompressionInfo& info, 26629: const char* input_data, 26629: size_t input_length, 26629: size_t* uncompressed_size, 26629: uint32_t compress_format_version, 26629: MemoryAllocator* allocator = nullptr) { 26629: 26629: uint32_t output_len = 0; 26629: if (compress_format_version == 2) { 26629: 26629: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 26629: &output_len)) { 26629: return nullptr; 26629: } 26629: } else { 26629: 26629: 26629: if (input_length < 8) { 26629: return nullptr; 26629: } 26629: if (port::kLittleEndian) { 26629: memcpy(&output_len, input_data, sizeof(output_len)); 26629: } else { 26629: memcpy(&output_len, input_data + 4, sizeof(output_len)); 26629: } 26629: input_length -= 8; 26629: input_data += 8; 26629: } 26629: 26629: auto output = AllocateBlock(output_len, allocator); 26629: 26629: int decompress_bytes = 0; 26629: 26629: 26629: LZ4_streamDecode_t* stream = LZ4_createStreamDecode(); 26629: const Slice& compression_dict = info.dict().GetRawDict(); 26629: if (compression_dict.size()) { 26629: LZ4_setStreamDecode(stream, compression_dict.data(), 26629: static_cast(compression_dict.size())); 26629: } 26629: decompress_bytes = LZ4_decompress_safe_continue( 26629: stream, input_data, output.get(), static_cast(input_length), 26629: static_cast(output_len)); 26629: LZ4_freeStreamDecode(stream); 26629: 26629: 26629: 26629: 26629: 26629: 26629: if (decompress_bytes < 0) { 26629: return nullptr; 26629: } 26629: 26629: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: decompress_bytes == static_cast(output_len) 26629: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "decompress_bytes == static_cast(output_len)" 26629: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1198, __extension__ __PRETTY_FUNCTION__)) 26629: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: *uncompressed_size = decompress_bytes; 26629: return output; 26629: # 1210 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline bool LZ4HC_Compress(const CompressionInfo& info, 26629: uint32_t compress_format_version, const char* input, 26629: size_t length, ::std::string* output) { 26629: 26629: if (length > std::numeric_limits::max()) { 26629: 26629: return false; 26629: } 26629: 26629: size_t output_header_len = 0; 26629: if (compress_format_version == 2) { 26629: 26629: output_header_len = compression::PutDecompressedSizeInfo( 26629: output, static_cast(length)); 26629: } else { 26629: 26629: 26629: output_header_len = 8; 26629: output->resize(output_header_len); 26629: char* p = const_cast(output->c_str()); 26629: memcpy(p, &length, sizeof(length)); 26629: } 26629: int compress_bound = LZ4_compressBound(static_cast(length)); 26629: output->resize(static_cast(output_header_len + compress_bound)); 26629: 26629: int outlen; 26629: int level; 26629: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 26629: level = 0; 26629: } else { 26629: level = info.options().level; 26629: } 26629: 26629: LZ4_streamHC_t* stream = LZ4_createStreamHC(); 26629: LZ4_resetStreamHC(stream, level); 26629: Slice compression_dict = info.dict().GetRawDict(); 26629: const char* compression_dict_data = 26629: compression_dict.size() > 0 ? compression_dict.data() : nullptr; 26629: size_t compression_dict_size = compression_dict.size(); 26629: if (compression_dict_data != nullptr) { 26629: LZ4_loadDictHC(stream, compression_dict_data, 26629: static_cast(compression_dict_size)); 26629: } 26629: 26629: 26629: outlen = 26629: LZ4_compress_HC_continue(stream, input, &(*output)[output_header_len], 26629: static_cast(length), compress_bound); 26629: 26629: 26629: 26629: 26629: 26629: LZ4_freeStreamHC(stream); 26629: # 1283 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: if (outlen == 0) { 26629: return false; 26629: } 26629: output->resize(static_cast(output_header_len + outlen)); 26629: return true; 26629: # 1296 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline bool XPRESS_Compress(const char* , size_t , 26629: std::string* ) { 26629: return false; 26629: } 26629: # 1316 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: inline char* XPRESS_Uncompress(const char* , 26629: size_t , 26629: size_t* ) { 26629: return nullptr; 26629: } 26629: 26629: 26629: inline bool ZSTD_Compress(const CompressionInfo& info, const char* input, 26629: size_t length, ::std::string* output) { 26629: 26629: if (length > std::numeric_limits::max()) { 26629: 26629: return false; 26629: } 26629: 26629: size_t output_header_len = compression::PutDecompressedSizeInfo( 26629: output, static_cast(length)); 26629: 26629: size_t compressBound = ZSTD_compressBound(length); 26629: output->resize(static_cast(output_header_len + compressBound)); 26629: size_t outlen = 0; 26629: int level; 26629: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 26629: 26629: 26629: level = 3; 26629: } else { 26629: level = info.options().level; 26629: } 26629: 26629: ZSTD_CCtx* context = info.context().ZSTDPreallocCtx(); 26629: 26629: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: context != nullptr 26629: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "context != nullptr" 26629: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1347, __extension__ __PRETTY_FUNCTION__)) 26629: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: 26629: if (info.dict().GetDigestedZstdCDict() != nullptr) { 26629: outlen = ZSTD_compress_usingCDict(context, &(*output)[output_header_len], 26629: compressBound, input, length, 26629: info.dict().GetDigestedZstdCDict()); 26629: } 26629: 26629: if (outlen == 0) { 26629: outlen = ZSTD_compress_usingDict(context, &(*output)[output_header_len], 26629: compressBound, input, length, 26629: info.dict().GetRawDict().data(), 26629: info.dict().GetRawDict().size(), level); 26629: } 26629: 26629: 26629: 26629: 26629: if (outlen == 0) { 26629: return false; 26629: } 26629: output->resize(output_header_len + outlen); 26629: return true; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: 26629: 26629: inline CacheAllocationPtr ZSTD_Uncompress( 26629: const UncompressionInfo& info, const char* input_data, size_t input_length, 26629: size_t* uncompressed_size, MemoryAllocator* allocator = nullptr) { 26629: 26629: uint32_t output_len = 0; 26629: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 26629: &output_len)) { 26629: return nullptr; 26629: } 26629: 26629: auto output = AllocateBlock(output_len, allocator); 26629: size_t actual_output_length = 0; 26629: 26629: ZSTD_DCtx* context = info.context().GetZSTDContext(); 26629: 26629: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: context != nullptr 26629: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "context != nullptr" 26629: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1395, __extension__ __PRETTY_FUNCTION__)) 26629: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: if (actual_output_length == 0) { 26629: actual_output_length = ZSTD_decompress_usingDict( 26629: context, output.get(), output_len, input_data, input_length, 26629: info.dict().GetRawDict().data(), info.dict().GetRawDict().size()); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: actual_output_length == output_len 26629: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "actual_output_length == output_len" 26629: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1413, __extension__ __PRETTY_FUNCTION__)) 26629: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: *uncompressed_size = actual_output_length; 26629: return output; 26629: # 1424 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: } 26629: 26629: inline bool ZSTD_TrainDictionarySupported() { 26629: 26629: 26629: 26629: 26629: return (ZSTD_versionNumber() >= 10103); 26629: 26629: 26629: 26629: } 26629: 26629: inline std::string ZSTD_TrainDictionary(const std::string& samples, 26629: const std::vector& sample_lens, 26629: size_t max_dict_bytes) { 26629: 26629: 26629: 26629: 26629: 26629: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: samples.empty() == sample_lens.empty() 26629: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "samples.empty() == sample_lens.empty()" 26629: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1444, __extension__ __PRETTY_FUNCTION__)) 26629: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: if (samples.empty()) { 26629: return ""; 26629: } 26629: std::string dict_data(max_dict_bytes, '\0'); 26629: size_t dict_len = ZDICT_trainFromBuffer( 26629: &dict_data[0], max_dict_bytes, &samples[0], &sample_lens[0], 26629: static_cast(sample_lens.size())); 26629: if (ZDICT_isError(dict_len)) { 26629: return ""; 26629: } 26629: 26629: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: dict_len <= max_dict_bytes 26629: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "dict_len <= max_dict_bytes" 26629: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1455, __extension__ __PRETTY_FUNCTION__)) 26629: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: dict_data.resize(dict_len); 26629: return dict_data; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: inline std::string ZSTD_TrainDictionary(const std::string& samples, 26629: size_t sample_len_shift, 26629: size_t max_dict_bytes) { 26629: 26629: 26629: 26629: 26629: size_t num_samples = samples.size() >> sample_len_shift; 26629: std::vector sample_lens(num_samples, size_t(1) << sample_len_shift); 26629: return ZSTD_TrainDictionary(samples, sample_lens, max_dict_bytes); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: inline bool ZSTD_FinalizeDictionarySupported() { 26629: 26629: 26629: return (ZSTD_versionNumber() >= 10405); 26629: 26629: 26629: 26629: } 26629: 26629: inline std::string ZSTD_FinalizeDictionary( 26629: const std::string& samples, const std::vector& sample_lens, 26629: size_t max_dict_bytes, int level) { 26629: 26629: 26629: 26629: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: samples.empty() == sample_lens.empty() 26629: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "samples.empty() == sample_lens.empty()" 26629: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1500, __extension__ __PRETTY_FUNCTION__)) 26629: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: if (samples.empty()) { 26629: return ""; 26629: } 26629: if (level == CompressionOptions::kDefaultCompressionLevel) { 26629: 26629: 26629: level = 3; 26629: } 26629: std::string dict_data(max_dict_bytes, '\0'); 26629: size_t dict_len = ZDICT_finalizeDictionary( 26629: dict_data.data(), max_dict_bytes, samples.data(), 26629: std::min(static_cast(samples.size()), max_dict_bytes), 26629: samples.data(), sample_lens.data(), 26629: static_cast(sample_lens.size()), 26629: {level, 0 , 0 }); 26629: if (ZDICT_isError(dict_len)) { 26629: return ""; 26629: } else { 26629: 26629: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: dict_len <= max_dict_bytes 26629: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "dict_len <= max_dict_bytes" 26629: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1519, __extension__ __PRETTY_FUNCTION__)) 26629: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: dict_data.resize(dict_len); 26629: return dict_data; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: } 26629: 26629: inline bool CompressData(const Slice& raw, 26629: const CompressionInfo& compression_info, 26629: uint32_t compress_format_version, 26629: std::string* compressed_output) { 26629: bool ret = false; 26629: 26629: 26629: 26629: switch (compression_info.type()) { 26629: case kSnappyCompression: 26629: ret = Snappy_Compress(compression_info, raw.data(), raw.size(), 26629: compressed_output); 26629: break; 26629: case kZlibCompression: 26629: ret = Zlib_Compress(compression_info, compress_format_version, raw.data(), 26629: raw.size(), compressed_output); 26629: break; 26629: case kBZip2Compression: 26629: ret = BZip2_Compress(compression_info, compress_format_version, 26629: raw.data(), raw.size(), compressed_output); 26629: break; 26629: case kLZ4Compression: 26629: ret = LZ4_Compress(compression_info, compress_format_version, raw.data(), 26629: raw.size(), compressed_output); 26629: break; 26629: case kLZ4HCCompression: 26629: ret = LZ4HC_Compress(compression_info, compress_format_version, 26629: raw.data(), raw.size(), compressed_output); 26629: break; 26629: case kXpressCompression: 26629: ret = XPRESS_Compress(raw.data(), raw.size(), compressed_output); 26629: break; 26629: case kZSTD: 26629: case kZSTDNotFinalCompression: 26629: ret = ZSTD_Compress(compression_info, raw.data(), raw.size(), 26629: compressed_output); 26629: break; 26629: default: 26629: 26629: break; 26629: } 26629: 26629: rocksdb::SyncPoint::GetInstance()->Process("CompressData:TamperWithReturnValue", static_cast(&ret)) 26629: ; 26629: 26629: return ret; 26629: } 26629: 26629: inline CacheAllocationPtr UncompressData( 26629: const UncompressionInfo& uncompression_info, const char* data, size_t n, 26629: size_t* uncompressed_size, uint32_t compress_format_version, 26629: MemoryAllocator* allocator = nullptr) { 26629: switch (uncompression_info.type()) { 26629: case kSnappyCompression: 26629: return Snappy_Uncompress(data, n, uncompressed_size, allocator); 26629: case kZlibCompression: 26629: return Zlib_Uncompress(uncompression_info, data, n, uncompressed_size, 26629: compress_format_version, allocator); 26629: case kBZip2Compression: 26629: return BZip2_Uncompress(data, n, uncompressed_size, 26629: compress_format_version, allocator); 26629: case kLZ4Compression: 26629: case kLZ4HCCompression: 26629: return LZ4_Uncompress(uncompression_info, data, n, uncompressed_size, 26629: compress_format_version, allocator); 26629: case kXpressCompression: 26629: 26629: 26629: return CacheAllocationPtr(XPRESS_Uncompress(data, n, uncompressed_size)); 26629: case kZSTD: 26629: case kZSTDNotFinalCompression: 26629: return ZSTD_Uncompress(uncompression_info, data, n, uncompressed_size, 26629: allocator); 26629: default: 26629: return CacheAllocationPtr(); 26629: } 26629: } 26629: 26629: 26629: class CompressionTypeRecord { 26629: public: 26629: explicit CompressionTypeRecord(CompressionType compression_type) 26629: : compression_type_(compression_type) {} 26629: 26629: CompressionType GetCompressionType() const { return compression_type_; } 26629: 26629: inline void EncodeTo(std::string* dst) const { 26629: 26629: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: dst != nullptr 26629: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "dst != nullptr" 26629: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1619, __extension__ __PRETTY_FUNCTION__)) 26629: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: PutFixed32(dst, compression_type_); 26629: } 26629: 26629: inline Status DecodeFrom(Slice* src) { 26629: constexpr char class_name[] = "CompressionTypeRecord"; 26629: 26629: uint32_t val; 26629: if (!GetFixed32(src, &val)) { 26629: return Status::Corruption(class_name, 26629: "Error decoding WAL compression type"); 26629: } 26629: CompressionType compression_type = static_cast(val); 26629: if (!StreamingCompressionTypeSupported(compression_type)) { 26629: return Status::Corruption(class_name, 26629: "WAL compression type not supported"); 26629: } 26629: compression_type_ = compression_type; 26629: return Status::OK(); 26629: } 26629: 26629: inline std::string DebugString() const { 26629: return "compression_type: " + CompressionTypeToString(compression_type_); 26629: } 26629: 26629: private: 26629: CompressionType compression_type_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class StreamingCompress { 26629: public: 26629: StreamingCompress(CompressionType compression_type, 26629: const CompressionOptions& opts, 26629: uint32_t compress_format_version, size_t max_output_len) 26629: : compression_type_(compression_type), 26629: opts_(opts), 26629: compress_format_version_(compress_format_version), 26629: max_output_len_(max_output_len) {} 26629: virtual ~StreamingCompress() = default; 26629: # 1674 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: virtual int Compress(const char* input, size_t input_size, char* output, 26629: size_t* output_pos) = 0; 26629: 26629: 26629: static StreamingCompress* Create(CompressionType compression_type, 26629: const CompressionOptions& opts, 26629: uint32_t compress_format_version, 26629: size_t max_output_len); 26629: virtual void Reset() = 0; 26629: 26629: protected: 26629: const CompressionType compression_type_; 26629: const CompressionOptions opts_; 26629: const uint32_t compress_format_version_; 26629: const size_t max_output_len_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class StreamingUncompress { 26629: public: 26629: StreamingUncompress(CompressionType compression_type, 26629: uint32_t compress_format_version, size_t max_output_len) 26629: : compression_type_(compression_type), 26629: compress_format_version_(compress_format_version), 26629: max_output_len_(max_output_len) {} 26629: virtual ~StreamingUncompress() = default; 26629: # 1714 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: virtual int Uncompress(const char* input, size_t input_size, char* output, 26629: size_t* output_pos) = 0; 26629: static StreamingUncompress* Create(CompressionType compression_type, 26629: uint32_t compress_format_version, 26629: size_t max_output_len); 26629: virtual void Reset() = 0; 26629: 26629: protected: 26629: CompressionType compression_type_; 26629: uint32_t compress_format_version_; 26629: size_t max_output_len_; 26629: }; 26629: 26629: class ZSTDStreamingCompress final : public StreamingCompress { 26629: public: 26629: explicit ZSTDStreamingCompress(const CompressionOptions& opts, 26629: uint32_t compress_format_version, 26629: size_t max_output_len) 26629: : StreamingCompress(kZSTD, opts, compress_format_version, 26629: max_output_len) { 26629: 26629: cctx_ = ZSTD_createCCtx(); 26629: 26629: ZSTD_CCtx_setParameter(cctx_, ZSTD_c_checksumFlag, 1); 26629: 26629: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: cctx_ != nullptr 26629: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "cctx_ != nullptr" 26629: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1738, __extension__ __PRETTY_FUNCTION__)) 26629: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: input_buffer_ = { nullptr, 0, 0}; 26629: 26629: } 26629: ~ZSTDStreamingCompress() override { 26629: 26629: ZSTD_freeCCtx(cctx_); 26629: 26629: } 26629: int Compress(const char* input, size_t input_size, char* output, 26629: size_t* output_pos) override; 26629: void Reset() override; 26629: 26629: ZSTD_CCtx* cctx_; 26629: ZSTD_inBuffer input_buffer_; 26629: 26629: }; 26629: 26629: class ZSTDStreamingUncompress final : public StreamingUncompress { 26629: public: 26629: explicit ZSTDStreamingUncompress(uint32_t compress_format_version, 26629: size_t max_output_len) 26629: : StreamingUncompress(kZSTD, compress_format_version, max_output_len) { 26629: 26629: dctx_ = ZSTD_createDCtx(); 26629: 26629: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: (static_cast ( 26629: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: dctx_ != nullptr 26629: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: "dctx_ != nullptr" 26629: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 26629: , "./util/compression.h", 1763, __extension__ __PRETTY_FUNCTION__)) 26629: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 26629: ; 26629: input_buffer_ = { nullptr, 0, 0}; 26629: 26629: } 26629: ~ZSTDStreamingUncompress() override { 26629: 26629: ZSTD_freeDCtx(dctx_); 26629: 26629: } 26629: int Uncompress(const char* input, size_t input_size, char* output, 26629: size_t* output_size) override; 26629: void Reset() override; 26629: 26629: private: 26629: 26629: ZSTD_DCtx* dctx_; 26629: ZSTD_inBuffer input_buffer_; 26629: 26629: }; 26629: 26629: } 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/options/cf_options.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: struct ImmutableCFOptions { 26629: public: 26629: static const char* kName() { return "ImmutableCFOptions"; } 26629: explicit ImmutableCFOptions(); 26629: explicit ImmutableCFOptions(const ColumnFamilyOptions& cf_options); 26629: 26629: CompactionStyle compaction_style; 26629: 26629: CompactionPri compaction_pri; 26629: 26629: const Comparator* user_comparator; 26629: InternalKeyComparator internal_comparator; 26629: 26629: std::shared_ptr merge_operator; 26629: 26629: const CompactionFilter* compaction_filter; 26629: 26629: std::shared_ptr compaction_filter_factory; 26629: 26629: int min_write_buffer_number_to_merge; 26629: 26629: int max_write_buffer_number_to_maintain; 26629: 26629: int64_t max_write_buffer_size_to_maintain; 26629: 26629: bool inplace_update_support; 26629: 26629: UpdateStatus (*inplace_callback)(char* existing_value, 26629: uint32_t* existing_value_size, 26629: Slice delta_value, 26629: std::string* merged_value); 26629: 26629: std::shared_ptr memtable_factory; 26629: 26629: std::shared_ptr table_factory; 26629: 26629: Options::TablePropertiesCollectorFactories 26629: table_properties_collector_factories; 26629: 26629: 26629: 26629: uint32_t bloom_locality; 26629: 26629: bool level_compaction_dynamic_level_bytes; 26629: 26629: bool level_compaction_dynamic_file_size; 26629: 26629: int num_levels; 26629: 26629: bool optimize_filters_for_hits; 26629: 26629: bool force_consistency_checks; 26629: 26629: uint64_t preclude_last_level_data_seconds; 26629: 26629: uint64_t preserve_internal_time_seconds; 26629: 26629: std::shared_ptr 26629: memtable_insert_with_hint_prefix_extractor; 26629: 26629: std::vector cf_paths; 26629: 26629: std::shared_ptr compaction_thread_limiter; 26629: 26629: std::shared_ptr sst_partitioner_factory; 26629: 26629: std::shared_ptr blob_cache; 26629: }; 26629: 26629: struct ImmutableOptions : public ImmutableDBOptions, public ImmutableCFOptions { 26629: explicit ImmutableOptions(); 26629: explicit ImmutableOptions(const Options& options); 26629: 26629: ImmutableOptions(const DBOptions& db_options, 26629: const ColumnFamilyOptions& cf_options); 26629: 26629: ImmutableOptions(const ImmutableDBOptions& db_options, 26629: const ImmutableCFOptions& cf_options); 26629: 26629: ImmutableOptions(const DBOptions& db_options, 26629: const ImmutableCFOptions& cf_options); 26629: 26629: ImmutableOptions(const ImmutableDBOptions& db_options, 26629: const ColumnFamilyOptions& cf_options); 26629: }; 26629: 26629: struct MutableCFOptions { 26629: static const char* kName() { return "MutableCFOptions"; } 26629: explicit MutableCFOptions(const ColumnFamilyOptions& options) 26629: : write_buffer_size(options.write_buffer_size), 26629: max_write_buffer_number(options.max_write_buffer_number), 26629: arena_block_size(options.arena_block_size), 26629: memtable_prefix_bloom_size_ratio( 26629: options.memtable_prefix_bloom_size_ratio), 26629: memtable_whole_key_filtering(options.memtable_whole_key_filtering), 26629: memtable_huge_page_size(options.memtable_huge_page_size), 26629: max_successive_merges(options.max_successive_merges), 26629: inplace_update_num_locks(options.inplace_update_num_locks), 26629: prefix_extractor(options.prefix_extractor), 26629: experimental_mempurge_threshold( 26629: options.experimental_mempurge_threshold), 26629: disable_auto_compactions(options.disable_auto_compactions), 26629: soft_pending_compaction_bytes_limit( 26629: options.soft_pending_compaction_bytes_limit), 26629: hard_pending_compaction_bytes_limit( 26629: options.hard_pending_compaction_bytes_limit), 26629: level0_file_num_compaction_trigger( 26629: options.level0_file_num_compaction_trigger), 26629: level0_slowdown_writes_trigger(options.level0_slowdown_writes_trigger), 26629: level0_stop_writes_trigger(options.level0_stop_writes_trigger), 26629: max_compaction_bytes(options.max_compaction_bytes), 26629: ignore_max_compaction_bytes_for_input( 26629: options.ignore_max_compaction_bytes_for_input), 26629: target_file_size_base(options.target_file_size_base), 26629: target_file_size_multiplier(options.target_file_size_multiplier), 26629: max_bytes_for_level_base(options.max_bytes_for_level_base), 26629: max_bytes_for_level_multiplier(options.max_bytes_for_level_multiplier), 26629: ttl(options.ttl), 26629: periodic_compaction_seconds(options.periodic_compaction_seconds), 26629: max_bytes_for_level_multiplier_additional( 26629: options.max_bytes_for_level_multiplier_additional), 26629: compaction_options_fifo(options.compaction_options_fifo), 26629: compaction_options_universal(options.compaction_options_universal), 26629: enable_blob_files(options.enable_blob_files), 26629: min_blob_size(options.min_blob_size), 26629: blob_file_size(options.blob_file_size), 26629: blob_compression_type(options.blob_compression_type), 26629: enable_blob_garbage_collection(options.enable_blob_garbage_collection), 26629: blob_garbage_collection_age_cutoff( 26629: options.blob_garbage_collection_age_cutoff), 26629: blob_garbage_collection_force_threshold( 26629: options.blob_garbage_collection_force_threshold), 26629: blob_compaction_readahead_size(options.blob_compaction_readahead_size), 26629: blob_file_starting_level(options.blob_file_starting_level), 26629: prepopulate_blob_cache(options.prepopulate_blob_cache), 26629: max_sequential_skip_in_iterations( 26629: options.max_sequential_skip_in_iterations), 26629: check_flush_compaction_key_order( 26629: options.check_flush_compaction_key_order), 26629: paranoid_file_checks(options.paranoid_file_checks), 26629: report_bg_io_stats(options.report_bg_io_stats), 26629: compression(options.compression), 26629: bottommost_compression(options.bottommost_compression), 26629: compression_opts(options.compression_opts), 26629: bottommost_compression_opts(options.bottommost_compression_opts), 26629: last_level_temperature(options.last_level_temperature == 26629: Temperature::kUnknown 26629: ? options.bottommost_temperature 26629: : options.last_level_temperature), 26629: memtable_protection_bytes_per_key( 26629: options.memtable_protection_bytes_per_key), 26629: sample_for_compression( 26629: options.sample_for_compression), 26629: compression_per_level(options.compression_per_level) { 26629: RefreshDerivedOptions(options.num_levels, options.compaction_style); 26629: } 26629: 26629: MutableCFOptions() 26629: : write_buffer_size(0), 26629: max_write_buffer_number(0), 26629: arena_block_size(0), 26629: memtable_prefix_bloom_size_ratio(0), 26629: memtable_whole_key_filtering(false), 26629: memtable_huge_page_size(0), 26629: max_successive_merges(0), 26629: inplace_update_num_locks(0), 26629: prefix_extractor(nullptr), 26629: experimental_mempurge_threshold(0.0), 26629: disable_auto_compactions(false), 26629: soft_pending_compaction_bytes_limit(0), 26629: hard_pending_compaction_bytes_limit(0), 26629: level0_file_num_compaction_trigger(0), 26629: level0_slowdown_writes_trigger(0), 26629: level0_stop_writes_trigger(0), 26629: max_compaction_bytes(0), 26629: ignore_max_compaction_bytes_for_input(true), 26629: target_file_size_base(0), 26629: target_file_size_multiplier(0), 26629: max_bytes_for_level_base(0), 26629: max_bytes_for_level_multiplier(0), 26629: ttl(0), 26629: periodic_compaction_seconds(0), 26629: compaction_options_fifo(), 26629: enable_blob_files(false), 26629: min_blob_size(0), 26629: blob_file_size(0), 26629: blob_compression_type(kNoCompression), 26629: enable_blob_garbage_collection(false), 26629: blob_garbage_collection_age_cutoff(0.0), 26629: blob_garbage_collection_force_threshold(0.0), 26629: blob_compaction_readahead_size(0), 26629: blob_file_starting_level(0), 26629: prepopulate_blob_cache(PrepopulateBlobCache::kDisable), 26629: max_sequential_skip_in_iterations(0), 26629: check_flush_compaction_key_order(true), 26629: paranoid_file_checks(false), 26629: report_bg_io_stats(false), 26629: compression(Snappy_Supported() ? kSnappyCompression : kNoCompression), 26629: bottommost_compression(kDisableCompressionOption), 26629: last_level_temperature(Temperature::kUnknown), 26629: memtable_protection_bytes_per_key(0), 26629: sample_for_compression(0) {} 26629: 26629: explicit MutableCFOptions(const Options& options); 26629: 26629: 26629: void RefreshDerivedOptions(int num_levels, CompactionStyle compaction_style); 26629: 26629: void RefreshDerivedOptions(const ImmutableCFOptions& ioptions) { 26629: RefreshDerivedOptions(ioptions.num_levels, ioptions.compaction_style); 26629: } 26629: 26629: int MaxBytesMultiplerAdditional(int level) const { 26629: if (level >= 26629: static_cast(max_bytes_for_level_multiplier_additional.size())) { 26629: return 1; 26629: } 26629: return max_bytes_for_level_multiplier_additional[level]; 26629: } 26629: 26629: void Dump(Logger* log) const; 26629: 26629: 26629: size_t write_buffer_size; 26629: int max_write_buffer_number; 26629: size_t arena_block_size; 26629: double memtable_prefix_bloom_size_ratio; 26629: bool memtable_whole_key_filtering; 26629: size_t memtable_huge_page_size; 26629: size_t max_successive_merges; 26629: size_t inplace_update_num_locks; 26629: std::shared_ptr prefix_extractor; 26629: # 269 "/build/reproducible-path/rocksdb-7.8.3/options/cf_options.h" 26629: double experimental_mempurge_threshold; 26629: 26629: 26629: bool disable_auto_compactions; 26629: uint64_t soft_pending_compaction_bytes_limit; 26629: uint64_t hard_pending_compaction_bytes_limit; 26629: int level0_file_num_compaction_trigger; 26629: int level0_slowdown_writes_trigger; 26629: int level0_stop_writes_trigger; 26629: uint64_t max_compaction_bytes; 26629: bool ignore_max_compaction_bytes_for_input; 26629: uint64_t target_file_size_base; 26629: int target_file_size_multiplier; 26629: uint64_t max_bytes_for_level_base; 26629: double max_bytes_for_level_multiplier; 26629: uint64_t ttl; 26629: uint64_t periodic_compaction_seconds; 26629: std::vector max_bytes_for_level_multiplier_additional; 26629: CompactionOptionsFIFO compaction_options_fifo; 26629: CompactionOptionsUniversal compaction_options_universal; 26629: 26629: 26629: bool enable_blob_files; 26629: uint64_t min_blob_size; 26629: uint64_t blob_file_size; 26629: CompressionType blob_compression_type; 26629: bool enable_blob_garbage_collection; 26629: double blob_garbage_collection_age_cutoff; 26629: double blob_garbage_collection_force_threshold; 26629: uint64_t blob_compaction_readahead_size; 26629: int blob_file_starting_level; 26629: PrepopulateBlobCache prepopulate_blob_cache; 26629: 26629: 26629: uint64_t max_sequential_skip_in_iterations; 26629: bool check_flush_compaction_key_order; 26629: bool paranoid_file_checks; 26629: bool report_bg_io_stats; 26629: CompressionType compression; 26629: CompressionType bottommost_compression; 26629: CompressionOptions compression_opts; 26629: CompressionOptions bottommost_compression_opts; 26629: Temperature last_level_temperature; 26629: uint32_t memtable_protection_bytes_per_key; 26629: 26629: uint64_t sample_for_compression; 26629: std::vector compression_per_level; 26629: 26629: 26629: 26629: std::vector max_file_size; 26629: }; 26629: 26629: uint64_t MultiplyCheckOverflow(uint64_t op1, double op2); 26629: 26629: 26629: uint64_t MaxFileSizeForLevel(const MutableCFOptions& cf_options, 26629: int level, CompactionStyle compaction_style, int base_level = 1, 26629: bool level_compaction_dynamic_level_bytes = false); 26629: 26629: 26629: 26629: size_t MaxFileSizeForL0MetaPin(const MutableCFOptions& cf_options); 26629: 26629: 26629: Status GetStringFromMutableCFOptions(const ConfigOptions& config_options, 26629: const MutableCFOptions& mutable_opts, 26629: std::string* opt_string); 26629: 26629: Status GetMutableOptionsFromStrings( 26629: const MutableCFOptions& base_options, 26629: const std::unordered_map& options_map, 26629: Logger* info_log, MutableCFOptions* new_options); 26629: 26629: 26629: } 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/malloc.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/port/malloc.h" 26629: 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 2 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class RandomAccessFile; 26629: struct ReadOptions; 26629: 26629: bool ShouldReportDetailedTime(Env* env, Statistics* stats); 26629: 26629: 26629: constexpr uint32_t kMagicNumberLengthByte = 8; 26629: 26629: 26629: 26629: class BlockHandle { 26629: public: 26629: 26629: 26629: BlockHandle(); 26629: BlockHandle(uint64_t offset, uint64_t size); 26629: 26629: 26629: uint64_t offset() const { return offset_; } 26629: void set_offset(uint64_t _offset) { offset_ = _offset; } 26629: 26629: 26629: uint64_t size() const { return size_; } 26629: void set_size(uint64_t _size) { size_ = _size; } 26629: 26629: void EncodeTo(std::string* dst) const; 26629: char* EncodeTo(char* dst) const; 26629: Status DecodeFrom(Slice* input); 26629: Status DecodeSizeFrom(uint64_t offset, Slice* input); 26629: 26629: 26629: std::string ToString(bool hex = true) const; 26629: 26629: 26629: 26629: bool IsNull() const { return offset_ == 0 && size_ == 0; } 26629: 26629: static const BlockHandle& NullBlockHandle() { return kNullBlockHandle; } 26629: 26629: 26629: static constexpr uint32_t kMaxEncodedLength = 2 * kMaxVarint64Length; 26629: 26629: inline bool operator==(const BlockHandle& rhs) const { 26629: return offset_ == rhs.offset_ && size_ == rhs.size_; 26629: } 26629: inline bool operator!=(const BlockHandle& rhs) const { 26629: return !(*this == rhs); 26629: } 26629: 26629: private: 26629: uint64_t offset_; 26629: uint64_t size_; 26629: 26629: static const BlockHandle kNullBlockHandle; 26629: }; 26629: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 26629: struct IndexValue { 26629: BlockHandle handle; 26629: 26629: Slice first_internal_key; 26629: 26629: IndexValue() = default; 26629: IndexValue(BlockHandle _handle, Slice _first_internal_key) 26629: : handle(_handle), first_internal_key(_first_internal_key) {} 26629: 26629: 26629: 26629: 26629: 26629: 26629: void EncodeTo(std::string* dst, bool have_first_key, 26629: const BlockHandle* previous_handle) const; 26629: Status DecodeFrom(Slice* input, bool have_first_key, 26629: const BlockHandle* previous_handle); 26629: 26629: std::string ToString(bool hex, bool have_first_key) const; 26629: }; 26629: 26629: inline uint32_t GetCompressFormatForVersion(uint32_t format_version) { 26629: 26629: 26629: 26629: return format_version >= 2 ? 2 : 1; 26629: } 26629: 26629: constexpr uint32_t kLatestFormatVersion = 5; 26629: 26629: inline bool IsSupportedFormatVersion(uint32_t version) { 26629: return version <= kLatestFormatVersion; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class Footer { 26629: public: 26629: 26629: Footer() {} 26629: 26629: 26629: 26629: 26629: Status DecodeFrom(Slice input, uint64_t input_offset); 26629: 26629: 26629: 26629: uint64_t table_magic_number() const { return table_magic_number_; } 26629: 26629: 26629: 26629: 26629: uint32_t format_version() const { return format_version_; } 26629: 26629: 26629: const BlockHandle& metaindex_handle() const { return metaindex_handle_; } 26629: 26629: 26629: const BlockHandle& index_handle() const { return index_handle_; } 26629: 26629: 26629: ChecksumType checksum_type() const { 26629: return static_cast(checksum_type_); 26629: } 26629: 26629: 26629: 26629: 26629: inline size_t GetBlockTrailerSize() const { return block_trailer_size_; } 26629: 26629: 26629: std::string ToString() const; 26629: 26629: 26629: 26629: 26629: 26629: 26629: static constexpr uint32_t kVersion0EncodedLength = 26629: 2 * BlockHandle::kMaxEncodedLength + kMagicNumberLengthByte; 26629: static constexpr uint32_t kMinEncodedLength = kVersion0EncodedLength; 26629: 26629: 26629: 26629: 26629: 26629: static constexpr uint32_t kNewVersionsEncodedLength = 26629: 1 + 2 * BlockHandle::kMaxEncodedLength + 4 + kMagicNumberLengthByte; 26629: static constexpr uint32_t kMaxEncodedLength = kNewVersionsEncodedLength; 26629: 26629: static constexpr uint64_t kNullTableMagicNumber = 0; 26629: 26629: static constexpr uint32_t kInvalidFormatVersion = 0xffffffffU; 26629: 26629: private: 26629: static constexpr int kInvalidChecksumType = 26629: (1 << (sizeof(ChecksumType) * 8)) | kNoChecksum; 26629: 26629: uint64_t table_magic_number_ = kNullTableMagicNumber; 26629: uint32_t format_version_ = kInvalidFormatVersion; 26629: BlockHandle metaindex_handle_; 26629: BlockHandle index_handle_; 26629: int checksum_type_ = kInvalidChecksumType; 26629: uint8_t block_trailer_size_ = 0; 26629: }; 26629: 26629: 26629: class FooterBuilder { 26629: public: 26629: # 220 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 26629: void Build(uint64_t table_magic_number, uint32_t format_version, 26629: uint64_t footer_offset, ChecksumType checksum_type, 26629: const BlockHandle& metaindex_handle, 26629: const BlockHandle& index_handle = BlockHandle::NullBlockHandle()); 26629: 26629: 26629: 26629: const Slice& GetSlice() const { 26629: 26629: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 3 4 26629: (static_cast ( 26629: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 26629: slice_.size() 26629: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 26629: "slice_.size()" 26629: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 3 4 26629: , "./table/format.h", 228, __extension__ __PRETTY_FUNCTION__)) 26629: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 26629: ; 26629: return slice_; 26629: } 26629: 26629: private: 26629: Slice slice_; 26629: std::array data_; 26629: }; 26629: 26629: 26629: 26629: 26629: Status ReadFooterFromFile(const IOOptions& opts, RandomAccessFileReader* file, 26629: FilePrefetchBuffer* prefetch_buffer, 26629: uint64_t file_size, Footer* footer, 26629: uint64_t enforce_table_magic_number = 0); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint32_t ComputeBuiltinChecksum(ChecksumType type, const char* data, 26629: size_t size); 26629: uint32_t ComputeBuiltinChecksumWithLastByte(ChecksumType type, const char* data, 26629: size_t size, char last_byte); 26629: # 279 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 26629: struct BlockContents { 26629: 26629: Slice data; 26629: CacheAllocationPtr allocation; 26629: 26629: 26629: 26629: 26629: bool has_trailer = false; 26629: 26629: 26629: BlockContents() {} 26629: 26629: 26629: BlockContents(const Slice& _data) : data(_data) {} 26629: 26629: 26629: BlockContents(CacheAllocationPtr&& _data, size_t _size) 26629: : data(_data.get(), _size), allocation(std::move(_data)) {} 26629: 26629: 26629: BlockContents(std::unique_ptr&& _data, size_t _size) 26629: : data(_data.get(), _size) { 26629: allocation.reset(_data.release()); 26629: } 26629: 26629: 26629: bool own_bytes() const { return allocation.get() != nullptr; } 26629: 26629: 26629: size_t usable_size() const { 26629: if (allocation.get() != nullptr) { 26629: auto allocator = allocation.get_deleter().allocator; 26629: if (allocator) { 26629: return allocator->UsableSize(allocation.get(), data.size()); 26629: } 26629: 26629: return malloc_usable_size(allocation.get()); 26629: 26629: 26629: 26629: } else { 26629: return 0; 26629: } 26629: } 26629: 26629: size_t ApproximateMemoryUsage() const { 26629: return usable_size() + sizeof(*this); 26629: } 26629: 26629: BlockContents(BlockContents&& other) noexcept { *this = std::move(other); } 26629: 26629: BlockContents& operator=(BlockContents&& other) { 26629: data = std::move(other.data); 26629: allocation = std::move(other.allocation); 26629: 26629: has_trailer = other.has_trailer; 26629: 26629: return *this; 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: Status UncompressSerializedBlock(const UncompressionInfo& info, 26629: const char* data, size_t size, 26629: BlockContents* out_contents, 26629: uint32_t format_version, 26629: const ImmutableOptions& ioptions, 26629: MemoryAllocator* allocator = nullptr); 26629: 26629: 26629: 26629: Status UncompressBlockData(const UncompressionInfo& info, const char* data, 26629: size_t size, BlockContents* out_contents, 26629: uint32_t format_version, 26629: const ImmutableOptions& ioptions, 26629: MemoryAllocator* allocator = nullptr); 26629: 26629: 26629: Status ReifyDbHostIdProperty(Env* env, std::string* db_host_id); 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline BlockHandle::BlockHandle() : BlockHandle(~uint64_t{0}, ~uint64_t{0}) {} 26629: 26629: inline BlockHandle::BlockHandle(uint64_t _offset, uint64_t _size) 26629: : offset_(_offset), size_(_size) {} 26629: 26629: } 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class PinnedIteratorsManager; 26629: 26629: enum class IterBoundCheck : char { 26629: kUnknown = 0, 26629: kOutOfBound, 26629: kInbound, 26629: }; 26629: 26629: struct IterateResult { 26629: Slice key; 26629: IterBoundCheck bound_check_result = IterBoundCheck::kUnknown; 26629: 26629: bool value_prepared = true; 26629: }; 26629: 26629: template 26629: class InternalIteratorBase : public Cleanable { 26629: public: 26629: InternalIteratorBase() {} 26629: 26629: 26629: InternalIteratorBase(const InternalIteratorBase&) = delete; 26629: InternalIteratorBase& operator=(const InternalIteratorBase&) = delete; 26629: 26629: virtual ~InternalIteratorBase() {} 26629: 26629: 26629: 26629: 26629: virtual bool Valid() const = 0; 26629: 26629: 26629: 26629: virtual void SeekToFirst() = 0; 26629: 26629: 26629: 26629: virtual void SeekToLast() = 0; 26629: # 66 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 26629: virtual void Seek(const Slice& target) = 0; 26629: 26629: 26629: 26629: 26629: virtual void SeekForPrev(const Slice& target) = 0; 26629: 26629: 26629: 26629: 26629: virtual void Next() = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual bool NextAndGetResult(IterateResult* result) { 26629: Next(); 26629: bool is_valid = Valid(); 26629: if (is_valid) { 26629: result->key = key(); 26629: 26629: 26629: 26629: result->bound_check_result = IterBoundCheck::kUnknown; 26629: result->value_prepared = false; 26629: 26629: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 3 4 26629: (static_cast ( 26629: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 26629: UpperBoundCheckResult() != IterBoundCheck::kOutOfBound 26629: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 26629: "UpperBoundCheckResult() != IterBoundCheck::kOutOfBound" 26629: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 3 4 26629: , "./table/internal_iterator.h", 92, __extension__ __PRETTY_FUNCTION__)) 26629: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 26629: ; 26629: } 26629: return is_valid; 26629: } 26629: 26629: 26629: 26629: 26629: virtual void Prev() = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual Slice key() const = 0; 26629: 26629: 26629: 26629: virtual Slice user_key() const { return ExtractUserKey(key()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual TValue value() const = 0; 26629: 26629: 26629: 26629: 26629: virtual Status status() const = 0; 26629: # 135 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 26629: virtual bool PrepareValue() { return true; } 26629: 26629: 26629: virtual bool MayBeOutOfLowerBound() { return true; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual IterBoundCheck UpperBoundCheckResult() { 26629: return IterBoundCheck::kUnknown; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual void SetPinnedItersMgr(PinnedIteratorsManager* ) { 26629: } 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 26629: virtual bool IsKeyPinned() const { return false; } 26629: 26629: 26629: 26629: 26629: 26629: virtual bool IsValuePinned() const { return false; } 26629: 26629: virtual Status GetProperty(std::string , std::string* ) { 26629: return Status::NotSupported(""); 26629: } 26629: # 184 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 26629: virtual void GetReadaheadState(ReadaheadFileInfo* ) {} 26629: 26629: 26629: virtual void SetReadaheadState(ReadaheadFileInfo* ) {} 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual bool IsDeleteRangeSentinelKey() const { return false; } 26629: 26629: protected: 26629: void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) { 26629: Seek(target); 26629: if (!Valid()) { 26629: SeekToLast(); 26629: } 26629: while (Valid() && cmp->Compare(target, key()) < 0) { 26629: Prev(); 26629: } 26629: } 26629: 26629: bool is_mutable_; 26629: }; 26629: 26629: using InternalIterator = InternalIteratorBase; 26629: 26629: 26629: template 26629: extern InternalIteratorBase* NewEmptyInternalIterator(); 26629: 26629: 26629: template 26629: extern InternalIteratorBase* NewErrorInternalIterator( 26629: const Status& status); 26629: 26629: 26629: template 26629: extern InternalIteratorBase* NewErrorInternalIterator( 26629: const Status& status, Arena* arena); 26629: 26629: } 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: class PinnedIteratorsManager : public Cleanable { 26629: public: 26629: PinnedIteratorsManager() : pinning_enabled(false) {} 26629: ~PinnedIteratorsManager() { 26629: if (pinning_enabled) { 26629: ReleasePinnedData(); 26629: } 26629: } 26629: 26629: 26629: PinnedIteratorsManager(PinnedIteratorsManager&& other) noexcept = default; 26629: PinnedIteratorsManager& operator=(PinnedIteratorsManager&& other) noexcept = 26629: default; 26629: 26629: 26629: void StartPinning() { 26629: 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 26629: (static_cast ( 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 26629: pinning_enabled == false 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 26629: "pinning_enabled == false" 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 26629: , "./db/pinned_iterators_manager.h", 35, __extension__ __PRETTY_FUNCTION__)) 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 26629: ; 26629: pinning_enabled = true; 26629: } 26629: 26629: 26629: bool PinningEnabled() { return pinning_enabled; } 26629: 26629: 26629: void PinIterator(InternalIterator* iter, bool arena = false) { 26629: if (arena) { 26629: PinPtr(iter, &PinnedIteratorsManager::ReleaseArenaInternalIterator); 26629: } else { 26629: PinPtr(iter, &PinnedIteratorsManager::ReleaseInternalIterator); 26629: } 26629: } 26629: 26629: using ReleaseFunction = void (*)(void* arg1); 26629: void PinPtr(void* ptr, ReleaseFunction release_func) { 26629: 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 26629: (static_cast ( 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 26629: pinning_enabled 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 26629: "pinning_enabled" 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 26629: , "./db/pinned_iterators_manager.h", 53, __extension__ __PRETTY_FUNCTION__)) 26629: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 26629: ; 26629: if (ptr == nullptr) { 26629: return; 26629: } 26629: pinned_ptrs_.emplace_back(ptr, release_func); 26629: } 26629: 26629: 26629: inline void ReleasePinnedData() { 26629: 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 26629: (static_cast ( 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 26629: pinning_enabled == true 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 26629: "pinning_enabled == true" 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 26629: , "./db/pinned_iterators_manager.h", 62, __extension__ __PRETTY_FUNCTION__)) 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 26629: ; 26629: pinning_enabled = false; 26629: 26629: 26629: std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); 26629: auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); 26629: 26629: for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { 26629: void* ptr = i->first; 26629: ReleaseFunction release_func = i->second; 26629: release_func(ptr); 26629: } 26629: pinned_ptrs_.clear(); 26629: 26629: Cleanable::Reset(); 26629: } 26629: 26629: private: 26629: static void ReleaseInternalIterator(void* ptr) { 26629: delete reinterpret_cast(ptr); 26629: } 26629: 26629: static void ReleaseArenaInternalIterator(void* ptr) { 26629: reinterpret_cast(ptr)->~InternalIterator(); 26629: } 26629: 26629: bool pinning_enabled; 26629: std::vector> pinned_ptrs_; 26629: }; 26629: 26629: } 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 2 26629: 26629: 26629: 26629: namespace rocksdb { 26629: struct FragmentedRangeTombstoneList; 26629: 26629: struct FragmentedRangeTombstoneListCache { 26629: 26629: std::mutex reader_mutex; 26629: std::unique_ptr tombstones = nullptr; 26629: 26629: std::atomic initialized = false; 26629: }; 26629: 26629: struct FragmentedRangeTombstoneList { 26629: public: 26629: # 40 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 26629: struct RangeTombstoneStack { 26629: RangeTombstoneStack(const Slice& start, const Slice& end, size_t start_idx, 26629: size_t end_idx) 26629: : start_key(start), 26629: end_key(end), 26629: seq_start_idx(start_idx), 26629: seq_end_idx(end_idx) {} 26629: Slice start_key; 26629: Slice end_key; 26629: size_t seq_start_idx; 26629: size_t seq_end_idx; 26629: }; 26629: 26629: 26629: FragmentedRangeTombstoneList( 26629: std::unique_ptr unfragmented_tombstones, 26629: const InternalKeyComparator& icmp, bool for_compaction = false, 26629: const std::vector& snapshots = {}); 26629: 26629: std::vector::const_iterator begin() const { 26629: return tombstones_.begin(); 26629: } 26629: 26629: std::vector::const_iterator end() const { 26629: return tombstones_.end(); 26629: } 26629: 26629: std::vector::const_iterator seq_iter(size_t idx) const { 26629: return std::next(tombstone_seqs_.begin(), idx); 26629: } 26629: 26629: std::vector::const_iterator ts_iter(size_t idx) const { 26629: return std::next(tombstone_timestamps_.begin(), idx); 26629: } 26629: 26629: std::vector::const_iterator seq_begin() const { 26629: return tombstone_seqs_.begin(); 26629: } 26629: 26629: std::vector::const_iterator seq_end() const { 26629: return tombstone_seqs_.end(); 26629: } 26629: 26629: bool empty() const { return tombstones_.empty(); } 26629: 26629: 26629: 26629: bool ContainsRange(SequenceNumber lower, SequenceNumber upper) const; 26629: 26629: uint64_t num_unfragmented_tombstones() const { 26629: return num_unfragmented_tombstones_; 26629: } 26629: 26629: uint64_t total_tombstone_payload_bytes() const { 26629: return total_tombstone_payload_bytes_; 26629: } 26629: 26629: private: 26629: # 108 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 26629: void FragmentTombstones( 26629: std::unique_ptr unfragmented_tombstones, 26629: const InternalKeyComparator& icmp, bool for_compaction, 26629: const std::vector& snapshots); 26629: 26629: std::vector tombstones_; 26629: std::vector tombstone_seqs_; 26629: std::vector tombstone_timestamps_; 26629: std::set seq_set_; 26629: std::list pinned_slices_; 26629: PinnedIteratorsManager pinned_iters_mgr_; 26629: uint64_t num_unfragmented_tombstones_; 26629: uint64_t total_tombstone_payload_bytes_; 26629: }; 26629: # 132 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 26629: class FragmentedRangeTombstoneIterator : public InternalIterator { 26629: public: 26629: FragmentedRangeTombstoneIterator( 26629: const FragmentedRangeTombstoneList* tombstones, 26629: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 26629: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 26629: FragmentedRangeTombstoneIterator( 26629: const std::shared_ptr& tombstones, 26629: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 26629: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 26629: FragmentedRangeTombstoneIterator( 26629: const std::shared_ptr& tombstones, 26629: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 26629: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 26629: 26629: void SeekToFirst() override; 26629: void SeekToLast() override; 26629: 26629: void SeekToTopFirst(); 26629: void SeekToTopLast(); 26629: # 161 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 26629: void Seek(const Slice& target) override; 26629: 26629: 26629: 26629: void SeekForPrev(const Slice& target) override; 26629: 26629: void Next() override; 26629: void Prev() override; 26629: 26629: void TopNext(); 26629: void TopPrev(); 26629: 26629: bool Valid() const override; 26629: 26629: 26629: Slice key() const override { 26629: MaybePinKey(); 26629: return current_start_key_.Encode(); 26629: } 26629: Slice value() const override { return pos_->end_key; } 26629: bool IsKeyPinned() const override { return false; } 26629: bool IsValuePinned() const override { return true; } 26629: Status status() const override { return Status::OK(); } 26629: 26629: bool empty() const { return tombstones_->empty(); } 26629: void Invalidate() { 26629: pos_ = tombstones_->end(); 26629: seq_pos_ = tombstones_->seq_end(); 26629: pinned_pos_ = tombstones_->end(); 26629: pinned_seq_pos_ = tombstones_->seq_end(); 26629: } 26629: 26629: RangeTombstone Tombstone() const { 26629: 26629: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 3 4 26629: (static_cast ( 26629: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 26629: Valid() 26629: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 26629: "Valid()" 26629: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 3 4 26629: , "./db/range_tombstone_fragmenter.h", 194, __extension__ __PRETTY_FUNCTION__)) 26629: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 26629: ; 26629: if (icmp_->user_comparator()->timestamp_size()) { 26629: return RangeTombstone(start_key(), end_key(), seq(), timestamp()); 26629: } 26629: return RangeTombstone(start_key(), end_key(), seq()); 26629: } 26629: 26629: 26629: 26629: Slice start_key() const { return pos_->start_key; } 26629: Slice end_key() const { return pos_->end_key; } 26629: SequenceNumber seq() const { return *seq_pos_; } 26629: Slice timestamp() const { 26629: 26629: return *tombstones_->ts_iter(seq_pos_ - tombstones_->seq_begin()); 26629: } 26629: 26629: 26629: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 26629: ts_upper_bound_ = ts_upper_bound; 26629: } 26629: 26629: ParsedInternalKey parsed_start_key() const { 26629: return ParsedInternalKey(pos_->start_key, kMaxSequenceNumber, 26629: kTypeRangeDeletion); 26629: } 26629: ParsedInternalKey parsed_end_key() const { 26629: return ParsedInternalKey(pos_->end_key, kMaxSequenceNumber, 26629: kTypeRangeDeletion); 26629: } 26629: 26629: 26629: 26629: 26629: SequenceNumber MaxCoveringTombstoneSeqnum(const Slice& user_key); 26629: # 239 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 26629: std::map> 26629: SplitBySnapshot(const std::vector& snapshots); 26629: 26629: SequenceNumber upper_bound() const { return upper_bound_; } 26629: SequenceNumber lower_bound() const { return lower_bound_; } 26629: 26629: uint64_t num_unfragmented_tombstones() const { 26629: return tombstones_->num_unfragmented_tombstones(); 26629: } 26629: uint64_t total_tombstone_payload_bytes() const { 26629: return tombstones_->total_tombstone_payload_bytes(); 26629: } 26629: 26629: private: 26629: using RangeTombstoneStack = FragmentedRangeTombstoneList::RangeTombstoneStack; 26629: 26629: struct RangeTombstoneStackStartComparator { 26629: explicit RangeTombstoneStackStartComparator(const Comparator* c) : cmp(c) {} 26629: 26629: bool operator()(const RangeTombstoneStack& a, 26629: const RangeTombstoneStack& b) const { 26629: return cmp->CompareWithoutTimestamp(a.start_key, b.start_key) < 0; 26629: } 26629: 26629: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 26629: return cmp->CompareWithoutTimestamp(a.start_key, b) < 0; 26629: } 26629: 26629: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 26629: return cmp->CompareWithoutTimestamp(a, b.start_key) < 0; 26629: } 26629: 26629: const Comparator* cmp; 26629: }; 26629: 26629: struct RangeTombstoneStackEndComparator { 26629: explicit RangeTombstoneStackEndComparator(const Comparator* c) : cmp(c) {} 26629: 26629: bool operator()(const RangeTombstoneStack& a, 26629: const RangeTombstoneStack& b) const { 26629: return cmp->CompareWithoutTimestamp(a.end_key, b.end_key) < 0; 26629: } 26629: 26629: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 26629: return cmp->CompareWithoutTimestamp(a.end_key, b) < 0; 26629: } 26629: 26629: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 26629: return cmp->CompareWithoutTimestamp(a, b.end_key) < 0; 26629: } 26629: 26629: const Comparator* cmp; 26629: }; 26629: 26629: void MaybePinKey() const { 26629: if (pos_ != tombstones_->end() && seq_pos_ != tombstones_->seq_end() && 26629: (pinned_pos_ != pos_ || pinned_seq_pos_ != seq_pos_)) { 26629: current_start_key_.Set(pos_->start_key, *seq_pos_, kTypeRangeDeletion); 26629: pinned_pos_ = pos_; 26629: pinned_seq_pos_ = seq_pos_; 26629: } 26629: } 26629: 26629: void SeekToCoveringTombstone(const Slice& key); 26629: void SeekForPrevToCoveringTombstone(const Slice& key); 26629: void ScanForwardToVisibleTombstone(); 26629: void ScanBackwardToVisibleTombstone(); 26629: bool ValidPos() const { 26629: return Valid() && seq_pos_ != tombstones_->seq_iter(pos_->seq_end_idx); 26629: } 26629: 26629: const RangeTombstoneStackStartComparator tombstone_start_cmp_; 26629: const RangeTombstoneStackEndComparator tombstone_end_cmp_; 26629: const InternalKeyComparator* icmp_; 26629: const Comparator* ucmp_; 26629: std::shared_ptr tombstones_ref_; 26629: std::shared_ptr tombstones_cache_ref_; 26629: const FragmentedRangeTombstoneList* tombstones_; 26629: SequenceNumber upper_bound_; 26629: SequenceNumber lower_bound_; 26629: 26629: const Slice* ts_upper_bound_; 26629: std::vector::const_iterator pos_; 26629: std::vector::const_iterator seq_pos_; 26629: mutable std::vector::const_iterator pinned_pos_; 26629: mutable std::vector::const_iterator pinned_seq_pos_; 26629: mutable InternalKey current_start_key_; 26629: 26629: 26629: 26629: 26629: 26629: void SetMaxVisibleSeqAndTimestamp() { 26629: seq_pos_ = std::lower_bound(tombstones_->seq_iter(pos_->seq_start_idx), 26629: tombstones_->seq_iter(pos_->seq_end_idx), 26629: upper_bound_, std::greater()); 26629: if (ts_upper_bound_ && !ts_upper_bound_->empty()) { 26629: auto ts_pos = std::lower_bound( 26629: tombstones_->ts_iter(pos_->seq_start_idx), 26629: tombstones_->ts_iter(pos_->seq_end_idx), *ts_upper_bound_, 26629: [this](const Slice& s1, const Slice& s2) { 26629: return ucmp_->CompareTimestamp(s1, s2) > 0; 26629: }); 26629: auto ts_idx = ts_pos - tombstones_->ts_iter(pos_->seq_start_idx); 26629: auto seq_idx = seq_pos_ - tombstones_->seq_iter(pos_->seq_start_idx); 26629: if (seq_idx < ts_idx) { 26629: 26629: 26629: seq_pos_ = tombstones_->seq_iter(pos_->seq_start_idx + ts_idx); 26629: } 26629: } 26629: } 26629: }; 26629: 26629: } 26629: # 22 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class ReadCallback { 26629: public: 26629: explicit ReadCallback(SequenceNumber last_visible_seq) 26629: : max_visible_seq_(last_visible_seq) {} 26629: ReadCallback(SequenceNumber last_visible_seq, SequenceNumber min_uncommitted) 26629: : max_visible_seq_(last_visible_seq), min_uncommitted_(min_uncommitted) {} 26629: 26629: virtual ~ReadCallback() {} 26629: 26629: 26629: 26629: virtual bool IsVisibleFullCheck(SequenceNumber seq) = 0; 26629: 26629: inline bool IsVisible(SequenceNumber seq) { 26629: 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: (static_cast ( 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: min_uncommitted_ > 0 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: "min_uncommitted_ > 0" 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: , "./db/read_callback.h", 27, __extension__ __PRETTY_FUNCTION__)) 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: ; 26629: 26629: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: (static_cast ( 26629: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: min_uncommitted_ >= kMinUnCommittedSeq 26629: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: "min_uncommitted_ >= kMinUnCommittedSeq" 26629: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: , "./db/read_callback.h", 28, __extension__ __PRETTY_FUNCTION__)) 26629: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: ; 26629: if (seq < min_uncommitted_) { 26629: 26629: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: (static_cast ( 26629: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: seq <= max_visible_seq_ 26629: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: "seq <= max_visible_seq_" 26629: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: , "./db/read_callback.h", 30, __extension__ __PRETTY_FUNCTION__)) 26629: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: ; 26629: return true; 26629: } else if (max_visible_seq_ < seq) { 26629: 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: (static_cast ( 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: seq != 0 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: "seq != 0" 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: , "./db/read_callback.h", 33, __extension__ __PRETTY_FUNCTION__)) 26629: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: ; 26629: return false; 26629: } else { 26629: 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: (static_cast ( 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: seq != 0 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: "seq != 0" 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 26629: , "./db/read_callback.h", 36, __extension__ __PRETTY_FUNCTION__)) 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 26629: ; 26629: return IsVisibleFullCheck(seq); 26629: } 26629: } 26629: 26629: inline SequenceNumber max_visible_seq() { return max_visible_seq_; } 26629: 26629: 26629: virtual void Refresh(SequenceNumber seq) { max_visible_seq_ = seq; } 26629: 26629: protected: 26629: 26629: 26629: SequenceNumber max_visible_seq_ = kMaxSequenceNumber; 26629: 26629: const SequenceNumber min_uncommitted_ = kMinUnCommittedSeq; 26629: }; 26629: 26629: } 26629: # 23 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cassert" 1 3 26629: # 41 "/usr/include/c++/12/cassert" 3 26629: 26629: # 42 "/usr/include/c++/12/cassert" 3 26629: 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 45 "/usr/include/c++/12/cassert" 2 3 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 2 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_constants.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: constexpr uint64_t kInvalidBlobFileNumber = 0; 26629: 26629: } 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class JSONWriter; 26629: class Slice; 26629: class Status; 26629: 26629: class BlobFileAddition { 26629: public: 26629: BlobFileAddition() = default; 26629: 26629: BlobFileAddition(uint64_t blob_file_number, uint64_t total_blob_count, 26629: uint64_t total_blob_bytes, std::string checksum_method, 26629: std::string checksum_value) 26629: : blob_file_number_(blob_file_number), 26629: total_blob_count_(total_blob_count), 26629: total_blob_bytes_(total_blob_bytes), 26629: checksum_method_(std::move(checksum_method)), 26629: checksum_value_(std::move(checksum_value)) { 26629: 26629: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 3 4 26629: (static_cast ( 26629: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 26629: checksum_method_.empty() == checksum_value_.empty() 26629: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 26629: "checksum_method_.empty() == checksum_value_.empty()" 26629: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 3 4 26629: , "./db/blob/blob_file_addition.h", 34, __extension__ __PRETTY_FUNCTION__)) 26629: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 26629: ; 26629: } 26629: 26629: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 26629: uint64_t GetTotalBlobCount() const { return total_blob_count_; } 26629: uint64_t GetTotalBlobBytes() const { return total_blob_bytes_; } 26629: const std::string& GetChecksumMethod() const { return checksum_method_; } 26629: const std::string& GetChecksumValue() const { return checksum_value_; } 26629: 26629: void EncodeTo(std::string* output) const; 26629: Status DecodeFrom(Slice* input); 26629: 26629: std::string DebugString() const; 26629: std::string DebugJSON() const; 26629: 26629: private: 26629: enum CustomFieldTags : uint32_t; 26629: 26629: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 26629: uint64_t total_blob_count_ = 0; 26629: uint64_t total_blob_bytes_ = 0; 26629: std::string checksum_method_; 26629: std::string checksum_value_; 26629: }; 26629: 26629: bool operator==(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 26629: bool operator!=(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 26629: 26629: std::ostream& operator<<(std::ostream& os, 26629: const BlobFileAddition& blob_file_addition); 26629: JSONWriter& operator<<(JSONWriter& jw, 26629: const BlobFileAddition& blob_file_addition); 26629: 26629: } 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_garbage.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_garbage.h" 26629: namespace rocksdb { 26629: 26629: class JSONWriter; 26629: class Slice; 26629: class Status; 26629: 26629: class BlobFileGarbage { 26629: public: 26629: BlobFileGarbage() = default; 26629: 26629: BlobFileGarbage(uint64_t blob_file_number, uint64_t garbage_blob_count, 26629: uint64_t garbage_blob_bytes) 26629: : blob_file_number_(blob_file_number), 26629: garbage_blob_count_(garbage_blob_count), 26629: garbage_blob_bytes_(garbage_blob_bytes) {} 26629: 26629: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 26629: uint64_t GetGarbageBlobCount() const { return garbage_blob_count_; } 26629: uint64_t GetGarbageBlobBytes() const { return garbage_blob_bytes_; } 26629: 26629: void EncodeTo(std::string* output) const; 26629: Status DecodeFrom(Slice* input); 26629: 26629: std::string DebugString() const; 26629: std::string DebugJSON() const; 26629: 26629: private: 26629: enum CustomFieldTags : uint32_t; 26629: 26629: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 26629: uint64_t garbage_blob_count_ = 0; 26629: uint64_t garbage_blob_bytes_ = 0; 26629: }; 26629: 26629: bool operator==(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 26629: bool operator!=(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 26629: 26629: std::ostream& operator<<(std::ostream& os, 26629: const BlobFileGarbage& blob_file_garbage); 26629: JSONWriter& operator<<(JSONWriter& jw, 26629: const BlobFileGarbage& blob_file_garbage); 26629: 26629: } 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/wal_edit.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/wal_edit.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/logging/log_buffer.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/ctime" 1 3 26629: # 39 "/usr/include/c++/12/ctime" 3 26629: 26629: # 40 "/usr/include/c++/12/ctime" 3 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/logging/log_buffer.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 1 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 1 3 4 26629: # 25 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 26629: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 26629: # 26 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 26629: # 41 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 1 3 4 26629: # 29 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-map-flags-generic.h" 1 3 4 26629: # 30 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 1 3 4 26629: # 119 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 3 4 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 1 3 4 26629: # 47 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 26629: 26629: # 47 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 26629: extern "C" { 26629: 26629: 26629: 26629: int memfd_create (const char *__name, unsigned int __flags) noexcept (true); 26629: 26629: 26629: 26629: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); 26629: 26629: 26629: 26629: int pkey_set (int __key, unsigned int __access_rights) noexcept (true); 26629: 26629: 26629: 26629: int pkey_get (int __key) noexcept (true); 26629: 26629: 26629: 26629: int pkey_free (int __key) noexcept (true); 26629: 26629: 26629: 26629: int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); 26629: 26629: } 26629: # 120 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 2 3 4 26629: # 33 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 26629: # 42 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 26629: 26629: 26629: 26629: 26629: extern "C" { 26629: # 57 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 26629: extern void *mmap (void *__addr, size_t __len, int __prot, 26629: int __flags, int __fd, __off_t __offset) noexcept (true); 26629: # 70 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 26629: extern void *mmap64 (void *__addr, size_t __len, int __prot, 26629: int __flags, int __fd, __off64_t __offset) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int munmap (void *__addr, size_t __len) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int msync (void *__addr, size_t __len, int __flags); 26629: 26629: 26629: 26629: 26629: extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); 26629: 26629: 26629: 26629: extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int mlock (const void *__addr, size_t __len) noexcept (true); 26629: 26629: 26629: extern int munlock (const void *__addr, size_t __len) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int mlockall (int __flags) noexcept (true); 26629: 26629: 26629: 26629: extern int munlockall (void) noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: extern int mincore (void *__start, size_t __len, unsigned char *__vec) 26629: noexcept (true); 26629: # 133 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 26629: extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 26629: int __flags, ...) noexcept (true); 26629: 26629: 26629: 26629: extern int remap_file_pages (void *__start, size_t __size, int __prot, 26629: size_t __pgoff, int __flags) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int shm_open (const char *__name, int __oflag, mode_t __mode); 26629: 26629: 26629: extern int shm_unlink (const char *__name); 26629: 26629: 26629: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 1 3 4 26629: # 24 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 3 4 26629: struct iovec; 26629: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, 26629: size_t __count, int __advice, 26629: unsigned __flags) 26629: noexcept (true); 26629: 26629: extern int process_mrelease (int pidfd, unsigned int flags) noexcept (true); 26629: # 151 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 26629: 26629: } 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 2 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 2 26629: 26629: # 1 "/usr/include/c++/12/cerrno" 1 3 26629: # 39 "/usr/include/c++/12/cerrno" 3 26629: 26629: # 40 "/usr/include/c++/12/cerrno" 3 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 2 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/memory/allocator.h" 1 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/memory/allocator.h" 26629: 26629: # 1 "/usr/include/c++/12/cerrno" 1 3 26629: # 39 "/usr/include/c++/12/cerrno" 3 26629: 26629: # 40 "/usr/include/c++/12/cerrno" 3 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/memory/allocator.h" 2 26629: 26629: 26629: 26629: 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/memory/allocator.h" 26629: namespace rocksdb { 26629: 26629: class Logger; 26629: 26629: class Allocator { 26629: public: 26629: virtual ~Allocator() {} 26629: 26629: virtual char* Allocate(size_t bytes) = 0; 26629: virtual char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 26629: Logger* logger = nullptr) = 0; 26629: 26629: virtual size_t BlockSize() const = 0; 26629: }; 26629: 26629: class AllocTracker { 26629: public: 26629: explicit AllocTracker(WriteBufferManager* write_buffer_manager); 26629: 26629: AllocTracker(const AllocTracker&) = delete; 26629: void operator=(const AllocTracker&) = delete; 26629: 26629: ~AllocTracker(); 26629: void Allocate(size_t bytes); 26629: 26629: 26629: void DoneAllocating(); 26629: 26629: void FreeMem(); 26629: 26629: bool is_freed() const { return write_buffer_manager_ == nullptr || freed_; } 26629: 26629: private: 26629: WriteBufferManager* write_buffer_manager_; 26629: std::atomic bytes_allocated_; 26629: bool done_allocating_; 26629: bool freed_; 26629: }; 26629: 26629: } 26629: # 24 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class Arena : public Allocator { 26629: public: 26629: 26629: Arena(const Arena&) = delete; 26629: void operator=(const Arena&) = delete; 26629: 26629: static const size_t kInlineSize = 2048; 26629: static const size_t kMinBlockSize; 26629: static const size_t kMaxBlockSize; 26629: 26629: 26629: 26629: 26629: explicit Arena(size_t block_size = kMinBlockSize, 26629: AllocTracker* tracker = nullptr, size_t huge_page_size = 0); 26629: ~Arena(); 26629: 26629: char* Allocate(size_t bytes) override; 26629: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 26629: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 26629: Logger* logger = nullptr) override; 26629: 26629: 26629: 26629: 26629: size_t ApproximateMemoryUsage() const { 26629: return blocks_memory_ + blocks_.capacity() * sizeof(char*) - 26629: alloc_bytes_remaining_; 26629: } 26629: 26629: size_t MemoryAllocatedBytes() const { return blocks_memory_; } 26629: 26629: size_t AllocatedAndUnused() const { return alloc_bytes_remaining_; } 26629: 26629: 26629: 26629: size_t IrregularBlockNum() const { return irregular_block_num; } 26629: 26629: size_t BlockSize() const override { return kBlockSize; } 26629: 26629: bool IsInInlineBlock() const { 26629: return blocks_.empty() && huge_blocks_.empty(); 26629: } 26629: 26629: private: 26629: char inline_block_[kInlineSize] __attribute__((__aligned__(alignof(max_align_t)))); 26629: 26629: const size_t kBlockSize; 26629: 26629: using Blocks = std::vector; 26629: Blocks blocks_; 26629: 26629: struct MmapInfo { 26629: void* addr_; 26629: size_t length_; 26629: 26629: MmapInfo(void* addr, size_t length) : addr_(addr), length_(length) {} 26629: }; 26629: std::vector huge_blocks_; 26629: size_t irregular_block_num = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: char* unaligned_alloc_ptr_ = nullptr; 26629: char* aligned_alloc_ptr_ = nullptr; 26629: 26629: size_t alloc_bytes_remaining_ = 0; 26629: 26629: 26629: size_t hugetlb_size_ = 0; 26629: 26629: char* AllocateFromHugePage(size_t bytes); 26629: char* AllocateFallback(size_t bytes, bool aligned); 26629: char* AllocateNewBlock(size_t block_bytes); 26629: 26629: 26629: size_t blocks_memory_ = 0; 26629: AllocTracker* tracker_; 26629: }; 26629: 26629: inline char* Arena::Allocate(size_t bytes) { 26629: 26629: 26629: 26629: 26629: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 3 4 26629: (static_cast ( 26629: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 26629: bytes > 0 26629: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 26629: "bytes > 0" 26629: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 3 4 26629: , "./memory/arena.h", 127, __extension__ __PRETTY_FUNCTION__)) 26629: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 26629: ; 26629: if (bytes <= alloc_bytes_remaining_) { 26629: unaligned_alloc_ptr_ -= bytes; 26629: alloc_bytes_remaining_ -= bytes; 26629: return unaligned_alloc_ptr_; 26629: } 26629: return AllocateFallback(bytes, false ); 26629: } 26629: 26629: 26629: 26629: 26629: extern size_t OptimizeBlockSize(size_t block_size); 26629: 26629: } 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/logging/log_buffer.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/sys_time.h" 1 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/port/sys_time.h" 26629: 26629: # 43 "/build/reproducible-path/rocksdb-7.8.3/port/sys_time.h" 26629: # 1 "/usr/include/arm-linux-gnueabihf/sys/time.h" 1 3 4 26629: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 26629: 26629: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 26629: extern "C" { 26629: # 52 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 26629: struct timezone 26629: { 26629: int tz_minuteswest; 26629: int tz_dsttime; 26629: }; 26629: # 67 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 26629: extern int gettimeofday (struct timeval *__restrict __tv, 26629: void *__restrict __tz) noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: # 86 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 26629: extern int settimeofday (const struct timeval *__tv, 26629: const struct timezone *__tz) 26629: noexcept (true); 26629: 26629: 26629: 26629: 26629: 26629: extern int adjtime (const struct timeval *__delta, 26629: struct timeval *__olddelta) noexcept (true); 26629: # 114 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 26629: enum __itimer_which 26629: { 26629: 26629: ITIMER_REAL = 0, 26629: 26629: 26629: ITIMER_VIRTUAL = 1, 26629: 26629: 26629: 26629: ITIMER_PROF = 2 26629: 26629: }; 26629: 26629: 26629: 26629: struct itimerval 26629: { 26629: 26629: struct timeval it_interval; 26629: 26629: struct timeval it_value; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: typedef int __itimer_which_t; 26629: 26629: 26629: 26629: 26629: 26629: extern int getitimer (__itimer_which_t __which, 26629: struct itimerval *__value) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int setitimer (__itimer_which_t __which, 26629: const struct itimerval *__restrict __new, 26629: struct itimerval *__restrict __old) noexcept (true); 26629: 26629: 26629: 26629: 26629: extern int utimes (const char *__file, const struct timeval __tvp[2]) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: # 189 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 26629: extern int lutimes (const char *__file, const struct timeval __tvp[2]) 26629: noexcept (true) __attribute__ ((__nonnull__ (1))); 26629: 26629: 26629: extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true); 26629: # 214 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 26629: extern int futimesat (int __fd, const char *__file, 26629: const struct timeval __tvp[2]) noexcept (true); 26629: # 258 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 26629: } 26629: # 44 "/build/reproducible-path/rocksdb-7.8.3/port/sys_time.h" 2 26629: 26629: 26629: # 45 "/build/reproducible-path/rocksdb-7.8.3/port/sys_time.h" 26629: namespace rocksdb { 26629: 26629: namespace port { 26629: 26629: using TimeVal = struct timeval; 26629: 26629: inline void GetTimeOfDay(TimeVal* tv, struct timezone* tz) { 26629: gettimeofday(tv, tz); 26629: } 26629: 26629: inline struct tm* LocalTimeR(const time_t* timep, struct tm* result) { 26629: return localtime_r(timep, result); 26629: } 26629: 26629: } 26629: 26629: } 26629: # 11 "/build/reproducible-path/rocksdb-7.8.3/logging/log_buffer.h" 2 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class Logger; 26629: 26629: 26629: class LogBuffer { 26629: public: 26629: 26629: 26629: LogBuffer(const InfoLogLevel log_level, Logger* info_log); 26629: 26629: 26629: 26629: void AddLogToBuffer(size_t max_log_size, const char* format, va_list ap); 26629: 26629: size_t IsEmpty() const { return logs_.empty(); } 26629: 26629: 26629: void FlushBufferToLog(); 26629: static const size_t kDefaultMaxLogSize = 512; 26629: 26629: private: 26629: 26629: struct BufferedLog { 26629: port::TimeVal now_tv; 26629: char message[1]; 26629: }; 26629: 26629: const InfoLogLevel log_level_; 26629: Logger* info_log_; 26629: Arena arena_; 26629: autovector logs_; 26629: }; 26629: 26629: 26629: 26629: 26629: extern void LogToBuffer(LogBuffer* log_buffer, size_t max_log_size, 26629: const char* format, ...); 26629: 26629: extern void LogToBuffer(LogBuffer* log_buffer, const char* format, ...); 26629: 26629: } 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class JSONWriter { 26629: public: 26629: JSONWriter() : state_(kExpectKey), first_element_(true), in_array_(false) { 26629: stream_ << "{"; 26629: } 26629: 26629: void AddKey(const std::string& key) { 26629: 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: (static_cast ( 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: state_ == kExpectKey 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: "state_ == kExpectKey" 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: , "./logging/event_logger.h", 25, __extension__ __PRETTY_FUNCTION__)) 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: ; 26629: if (!first_element_) { 26629: stream_ << ", "; 26629: } 26629: stream_ << "\"" << key << "\": "; 26629: state_ = kExpectValue; 26629: first_element_ = false; 26629: } 26629: 26629: void AddValue(const char* value) { 26629: 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: (static_cast ( 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: state_ == kExpectValue || state_ == kInArray 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: "state_ == kExpectValue || state_ == kInArray" 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: , "./logging/event_logger.h", 35, __extension__ __PRETTY_FUNCTION__)) 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: ; 26629: if (state_ == kInArray && !first_element_) { 26629: stream_ << ", "; 26629: } 26629: stream_ << "\"" << value << "\""; 26629: if (state_ != kInArray) { 26629: state_ = kExpectKey; 26629: } 26629: first_element_ = false; 26629: } 26629: 26629: template 26629: void AddValue(const T& value) { 26629: 26629: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: (static_cast ( 26629: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: state_ == kExpectValue || state_ == kInArray 26629: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: "state_ == kExpectValue || state_ == kInArray" 26629: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: , "./logging/event_logger.h", 48, __extension__ __PRETTY_FUNCTION__)) 26629: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: ; 26629: if (state_ == kInArray && !first_element_) { 26629: stream_ << ", "; 26629: } 26629: stream_ << value; 26629: if (state_ != kInArray) { 26629: state_ = kExpectKey; 26629: } 26629: first_element_ = false; 26629: } 26629: 26629: void StartArray() { 26629: 26629: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: (static_cast ( 26629: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: state_ == kExpectValue 26629: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: "state_ == kExpectValue" 26629: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: , "./logging/event_logger.h", 60, __extension__ __PRETTY_FUNCTION__)) 26629: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: ; 26629: state_ = kInArray; 26629: in_array_ = true; 26629: stream_ << "["; 26629: first_element_ = true; 26629: } 26629: 26629: void EndArray() { 26629: 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: (static_cast ( 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: state_ == kInArray 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: "state_ == kInArray" 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: , "./logging/event_logger.h", 68, __extension__ __PRETTY_FUNCTION__)) 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: ; 26629: state_ = kExpectKey; 26629: in_array_ = false; 26629: stream_ << "]"; 26629: first_element_ = false; 26629: } 26629: 26629: void StartObject() { 26629: 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: (static_cast ( 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: state_ == kExpectValue 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: "state_ == kExpectValue" 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: , "./logging/event_logger.h", 76, __extension__ __PRETTY_FUNCTION__)) 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: ; 26629: state_ = kExpectKey; 26629: stream_ << "{"; 26629: first_element_ = true; 26629: } 26629: 26629: void EndObject() { 26629: 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: (static_cast ( 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: state_ == kExpectKey 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: "state_ == kExpectKey" 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: , "./logging/event_logger.h", 83, __extension__ __PRETTY_FUNCTION__)) 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: ; 26629: stream_ << "}"; 26629: first_element_ = false; 26629: } 26629: 26629: void StartArrayedObject() { 26629: 26629: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: (static_cast ( 26629: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: state_ == kInArray && in_array_ 26629: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: "state_ == kInArray && in_array_" 26629: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: , "./logging/event_logger.h", 89, __extension__ __PRETTY_FUNCTION__)) 26629: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: ; 26629: state_ = kExpectValue; 26629: if (!first_element_) { 26629: stream_ << ", "; 26629: } 26629: StartObject(); 26629: } 26629: 26629: void EndArrayedObject() { 26629: 26629: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: (static_cast ( 26629: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: in_array_ 26629: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: "in_array_" 26629: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: , "./logging/event_logger.h", 98, __extension__ __PRETTY_FUNCTION__)) 26629: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: ; 26629: EndObject(); 26629: state_ = kInArray; 26629: } 26629: 26629: std::string Get() const { return stream_.str(); } 26629: 26629: JSONWriter& operator<<(const char* val) { 26629: if (state_ == kExpectKey) { 26629: AddKey(val); 26629: } else { 26629: AddValue(val); 26629: } 26629: return *this; 26629: } 26629: 26629: JSONWriter& operator<<(const std::string& val) { 26629: return *this << val.c_str(); 26629: } 26629: 26629: template 26629: JSONWriter& operator<<(const T& val) { 26629: 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: (static_cast ( 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: state_ != kExpectKey 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: "state_ != kExpectKey" 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 26629: , "./logging/event_logger.h", 120, __extension__ __PRETTY_FUNCTION__)) 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 26629: ; 26629: AddValue(val); 26629: return *this; 26629: } 26629: 26629: private: 26629: enum JSONWriterState { 26629: kExpectKey, 26629: kExpectValue, 26629: kInArray, 26629: kInArrayedObject, 26629: }; 26629: JSONWriterState state_; 26629: bool first_element_; 26629: bool in_array_; 26629: std::ostringstream stream_; 26629: }; 26629: 26629: class EventLoggerStream { 26629: public: 26629: template 26629: EventLoggerStream& operator<<(const T& val) { 26629: MakeStream(); 26629: *json_writer_ << val; 26629: return *this; 26629: } 26629: 26629: void StartArray() { json_writer_->StartArray(); } 26629: void EndArray() { json_writer_->EndArray(); } 26629: void StartObject() { json_writer_->StartObject(); } 26629: void EndObject() { json_writer_->EndObject(); } 26629: 26629: ~EventLoggerStream(); 26629: 26629: private: 26629: void MakeStream() { 26629: if (!json_writer_) { 26629: json_writer_ = new JSONWriter(); 26629: *this << "time_micros" 26629: << std::chrono::duration_cast( 26629: std::chrono::system_clock::now().time_since_epoch()).count(); 26629: } 26629: } 26629: friend class EventLogger; 26629: explicit EventLoggerStream(Logger* logger); 26629: explicit EventLoggerStream(LogBuffer* log_buffer, const size_t max_log_size); 26629: 26629: Logger* const logger_; 26629: LogBuffer* const log_buffer_; 26629: const size_t max_log_size_; 26629: 26629: JSONWriter* json_writer_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: class EventLogger { 26629: public: 26629: static const char* Prefix() { 26629: return "EVENT_LOG_v1"; 26629: } 26629: 26629: explicit EventLogger(Logger* logger) : logger_(logger) {} 26629: EventLoggerStream Log() { return EventLoggerStream(logger_); } 26629: EventLoggerStream LogToBuffer(LogBuffer* log_buffer) { 26629: return EventLoggerStream(log_buffer, LogBuffer::kDefaultMaxLogSize); 26629: } 26629: EventLoggerStream LogToBuffer(LogBuffer* log_buffer, 26629: const size_t max_log_size) { 26629: return EventLoggerStream(log_buffer, max_log_size); 26629: } 26629: void Log(const JSONWriter& jwriter); 26629: static void Log(Logger* logger, const JSONWriter& jwriter); 26629: static void LogToBuffer( 26629: LogBuffer* log_buffer, const JSONWriter& jwriter, 26629: const size_t max_log_size = LogBuffer::kDefaultMaxLogSize); 26629: 26629: private: 26629: Logger* logger_; 26629: }; 26629: 26629: } 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/db/wal_edit.h" 2 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class JSONWriter; 26629: class Slice; 26629: class Status; 26629: 26629: using WalNumber = uint64_t; 26629: 26629: 26629: class WalMetadata { 26629: public: 26629: WalMetadata() = default; 26629: 26629: explicit WalMetadata(uint64_t synced_size_bytes) 26629: : synced_size_bytes_(synced_size_bytes) {} 26629: 26629: bool HasSyncedSize() const { return synced_size_bytes_ != kUnknownWalSize; } 26629: 26629: void SetSyncedSizeInBytes(uint64_t bytes) { synced_size_bytes_ = bytes; } 26629: 26629: uint64_t GetSyncedSizeInBytes() const { return synced_size_bytes_; } 26629: 26629: private: 26629: friend bool operator==(const WalMetadata& lhs, const WalMetadata& rhs); 26629: friend bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs); 26629: 26629: 26629: constexpr static uint64_t kUnknownWalSize = 26629: std::numeric_limits::max(); 26629: 26629: 26629: uint64_t synced_size_bytes_ = kUnknownWalSize; 26629: }; 26629: 26629: inline bool operator==(const WalMetadata& lhs, const WalMetadata& rhs) { 26629: return lhs.synced_size_bytes_ == rhs.synced_size_bytes_; 26629: } 26629: 26629: inline bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs) { 26629: return !(lhs == rhs); 26629: } 26629: 26629: 26629: enum class WalAdditionTag : uint32_t { 26629: 26629: kTerminate = 1, 26629: 26629: kSyncedSize = 2, 26629: 26629: }; 26629: 26629: 26629: class WalAddition { 26629: public: 26629: WalAddition() : number_(0), metadata_() {} 26629: 26629: explicit WalAddition(WalNumber number) : number_(number), metadata_() {} 26629: 26629: WalAddition(WalNumber number, WalMetadata meta) 26629: : number_(number), metadata_(std::move(meta)) {} 26629: 26629: WalNumber GetLogNumber() const { return number_; } 26629: 26629: const WalMetadata& GetMetadata() const { return metadata_; } 26629: 26629: void EncodeTo(std::string* dst) const; 26629: 26629: Status DecodeFrom(Slice* src); 26629: 26629: std::string DebugString() const; 26629: 26629: private: 26629: WalNumber number_; 26629: WalMetadata metadata_; 26629: }; 26629: 26629: std::ostream& operator<<(std::ostream& os, const WalAddition& wal); 26629: JSONWriter& operator<<(JSONWriter& jw, const WalAddition& wal); 26629: 26629: using WalAdditions = std::vector; 26629: 26629: 26629: class WalDeletion { 26629: public: 26629: WalDeletion() : number_(kEmpty) {} 26629: 26629: explicit WalDeletion(WalNumber number) : number_(number) {} 26629: 26629: WalNumber GetLogNumber() const { return number_; } 26629: 26629: void EncodeTo(std::string* dst) const; 26629: 26629: Status DecodeFrom(Slice* src); 26629: 26629: std::string DebugString() const; 26629: 26629: bool IsEmpty() const { return number_ == kEmpty; } 26629: 26629: void Reset() { number_ = kEmpty; } 26629: 26629: private: 26629: static constexpr WalNumber kEmpty = 0; 26629: 26629: WalNumber number_; 26629: }; 26629: 26629: std::ostream& operator<<(std::ostream& os, const WalDeletion& wal); 26629: JSONWriter& operator<<(JSONWriter& jw, const WalDeletion& wal); 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/db/wal_edit.h" 26629: class WalSet { 26629: public: 26629: 26629: 26629: 26629: 26629: 26629: Status AddWal(const WalAddition& wal); 26629: Status AddWals(const WalAdditions& wals); 26629: 26629: 26629: 26629: Status DeleteWalsBefore(WalNumber wal); 26629: 26629: 26629: void Reset(); 26629: 26629: 26629: WalNumber GetMinWalNumberToKeep() const { return min_wal_number_to_keep_; } 26629: 26629: const std::map& GetWals() const { return wals_; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: Status CheckWals( 26629: Env* env, 26629: const std::unordered_map& logs_on_disk) const; 26629: 26629: private: 26629: std::map wals_; 26629: 26629: 26629: WalNumber min_wal_number_to_keep_ = 0; 26629: }; 26629: 26629: } 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 2 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_reader_caller.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: enum TableReaderCaller : char { 26629: kUserGet = 1, 26629: kUserMultiGet = 2, 26629: kUserIterator = 3, 26629: kUserApproximateSize = 4, 26629: kUserVerifyChecksum = 5, 26629: kSSTDumpTool = 6, 26629: kExternalSSTIngestion = 7, 26629: kRepair = 8, 26629: kPrefetch = 9, 26629: kCompaction = 10, 26629: 26629: 26629: kCompactionRefill = 11, 26629: 26629: 26629: kFlush = 12, 26629: 26629: kSSTFileReader = 13, 26629: 26629: 26629: kUncategorized = 14, 26629: 26629: kMaxBlockCacheLookupCaller 26629: }; 26629: } 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: class BlobFetcher; 26629: class Comparator; 26629: class Logger; 26629: class MergeContext; 26629: class MergeOperator; 26629: class PinnableWideColumns; 26629: class PinnedIteratorsManager; 26629: class Statistics; 26629: class SystemClock; 26629: struct ParsedInternalKey; 26629: 26629: 26629: 26629: 26629: struct GetContextStats { 26629: uint64_t num_cache_hit = 0; 26629: uint64_t num_cache_index_hit = 0; 26629: uint64_t num_cache_data_hit = 0; 26629: uint64_t num_cache_filter_hit = 0; 26629: uint64_t num_cache_compression_dict_hit = 0; 26629: uint64_t num_cache_index_miss = 0; 26629: uint64_t num_cache_filter_miss = 0; 26629: uint64_t num_cache_data_miss = 0; 26629: uint64_t num_cache_compression_dict_miss = 0; 26629: uint64_t num_cache_bytes_read = 0; 26629: uint64_t num_cache_miss = 0; 26629: uint64_t num_cache_add = 0; 26629: uint64_t num_cache_add_redundant = 0; 26629: uint64_t num_cache_bytes_write = 0; 26629: uint64_t num_cache_index_add = 0; 26629: uint64_t num_cache_index_add_redundant = 0; 26629: uint64_t num_cache_index_bytes_insert = 0; 26629: uint64_t num_cache_data_add = 0; 26629: uint64_t num_cache_data_add_redundant = 0; 26629: uint64_t num_cache_data_bytes_insert = 0; 26629: uint64_t num_cache_filter_add = 0; 26629: uint64_t num_cache_filter_add_redundant = 0; 26629: uint64_t num_cache_filter_bytes_insert = 0; 26629: uint64_t num_cache_compression_dict_add = 0; 26629: uint64_t num_cache_compression_dict_add_redundant = 0; 26629: uint64_t num_cache_compression_dict_bytes_insert = 0; 26629: 26629: uint64_t num_filter_read = 0; 26629: uint64_t num_index_read = 0; 26629: uint64_t num_sst_read = 0; 26629: }; 26629: # 67 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 26629: class GetContext { 26629: public: 26629: 26629: 26629: enum GetState { 26629: kNotFound, 26629: kFound, 26629: kDeleted, 26629: kCorrupt, 26629: kMerge, 26629: kUnexpectedBlobIndex, 26629: 26629: kUnexpectedWideColumnEntity, 26629: }; 26629: GetContextStats get_context_stats_; 26629: # 103 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 26629: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 26629: Logger* logger, Statistics* statistics, GetState init_state, 26629: const Slice& user_key, PinnableSlice* value, 26629: PinnableWideColumns* columns, bool* value_found, 26629: MergeContext* merge_context, bool do_merge, 26629: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 26629: SequenceNumber* seq = nullptr, 26629: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 26629: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 26629: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 26629: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 26629: Logger* logger, Statistics* statistics, GetState init_state, 26629: const Slice& user_key, PinnableSlice* value, 26629: PinnableWideColumns* columns, std::string* timestamp, 26629: bool* value_found, MergeContext* merge_context, bool do_merge, 26629: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 26629: SequenceNumber* seq = nullptr, 26629: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 26629: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 26629: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 26629: 26629: GetContext() = delete; 26629: 26629: 26629: 26629: void MarkKeyMayExist(); 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 26629: bool SaveValue(const ParsedInternalKey& parsed_key, const Slice& value, 26629: bool* matched, Cleanable* value_pinner = nullptr); 26629: 26629: 26629: 26629: void SaveValue(const Slice& value, SequenceNumber seq); 26629: 26629: GetState State() const { return state_; } 26629: 26629: SequenceNumber* max_covering_tombstone_seq() { 26629: return max_covering_tombstone_seq_; 26629: } 26629: 26629: bool NeedTimestamp() { return timestamp_ != nullptr; } 26629: 26629: void SetTimestampFromRangeTombstone(const Slice& timestamp) { 26629: 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 3 4 26629: (static_cast ( 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 26629: timestamp_ 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 26629: "timestamp_" 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 3 4 26629: , "./table/get_context.h", 154, __extension__ __PRETTY_FUNCTION__)) 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 26629: ; 26629: timestamp_->assign(timestamp.data(), timestamp.size()); 26629: ts_from_rangetombstone_ = true; 26629: } 26629: 26629: PinnedIteratorsManager* pinned_iters_mgr() { return pinned_iters_mgr_; } 26629: 26629: 26629: 26629: 26629: void SetReplayLog(std::string* replay_log) { replay_log_ = replay_log; } 26629: 26629: 26629: bool NeedToReadSequence() const { return (seq_ != nullptr); } 26629: 26629: bool sample() const { return sample_; } 26629: 26629: bool CheckCallback(SequenceNumber seq) { 26629: if (callback_) { 26629: return callback_->IsVisible(seq); 26629: } 26629: return true; 26629: } 26629: 26629: void ReportCounters(); 26629: 26629: bool has_callback() const { return callback_ != nullptr; } 26629: 26629: uint64_t get_tracing_get_id() const { return tracing_get_id_; } 26629: 26629: void push_operand(const Slice& value, Cleanable* value_pinner); 26629: 26629: private: 26629: void Merge(const Slice* value); 26629: bool GetBlobValue(const Slice& blob_index, PinnableSlice* blob_value); 26629: 26629: const Comparator* ucmp_; 26629: const MergeOperator* merge_operator_; 26629: 26629: Logger* logger_; 26629: Statistics* statistics_; 26629: 26629: GetState state_; 26629: Slice user_key_; 26629: PinnableSlice* pinnable_val_; 26629: PinnableWideColumns* columns_; 26629: std::string* timestamp_; 26629: bool ts_from_rangetombstone_{false}; 26629: bool* value_found_; 26629: MergeContext* merge_context_; 26629: SequenceNumber* max_covering_tombstone_seq_; 26629: SystemClock* clock_; 26629: 26629: 26629: SequenceNumber* seq_; 26629: std::string* replay_log_; 26629: 26629: PinnedIteratorsManager* pinned_iters_mgr_; 26629: ReadCallback* callback_; 26629: bool sample_; 26629: 26629: 26629: 26629: bool do_merge_; 26629: bool* is_blob_index_; 26629: 26629: 26629: const uint64_t tracing_get_id_; 26629: BlobFetcher* blob_fetcher_; 26629: }; 26629: 26629: 26629: 26629: 26629: void replayGetContextLog(const Slice& replay_log, const Slice& user_key, 26629: GetContext* get_context, 26629: Cleanable* value_pinner = nullptr); 26629: 26629: } 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/lookup_key.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/lookup_key.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: class LookupKey { 26629: public: 26629: 26629: 26629: LookupKey(const Slice& _user_key, SequenceNumber sequence, 26629: const Slice* ts = nullptr); 26629: 26629: ~LookupKey(); 26629: 26629: 26629: Slice memtable_key() const { 26629: return Slice(start_, static_cast(end_ - start_)); 26629: } 26629: 26629: 26629: Slice internal_key() const { 26629: return Slice(kstart_, static_cast(end_ - kstart_)); 26629: } 26629: 26629: 26629: Slice user_key() const { 26629: return Slice(kstart_, static_cast(end_ - kstart_ - 8)); 26629: } 26629: 26629: private: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: const char* start_; 26629: const char* kstart_; 26629: const char* end_; 26629: char space_[200]; 26629: 26629: 26629: LookupKey(const LookupKey&); 26629: void operator=(const LookupKey&); 26629: }; 26629: 26629: inline LookupKey::~LookupKey() { 26629: if (start_ != space_) delete[] start_; 26629: } 26629: 26629: } 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: const std::vector empty_operand_list; 26629: 26629: 26629: 26629: 26629: 26629: class MergeContext { 26629: public: 26629: 26629: void Clear() { 26629: if (operand_list_) { 26629: operand_list_->clear(); 26629: copied_operands_->clear(); 26629: } 26629: } 26629: 26629: 26629: void PushOperand(const Slice& operand_slice, bool operand_pinned = false) { 26629: Initialize(); 26629: SetDirectionBackward(); 26629: 26629: if (operand_pinned) { 26629: operand_list_->push_back(operand_slice); 26629: } else { 26629: 26629: copied_operands_->emplace_back( 26629: new std::string(operand_slice.data(), operand_slice.size())); 26629: operand_list_->push_back(*copied_operands_->back()); 26629: } 26629: } 26629: 26629: 26629: void PushOperandBack(const Slice& operand_slice, 26629: bool operand_pinned = false) { 26629: Initialize(); 26629: SetDirectionForward(); 26629: 26629: if (operand_pinned) { 26629: operand_list_->push_back(operand_slice); 26629: } else { 26629: 26629: copied_operands_->emplace_back( 26629: new std::string(operand_slice.data(), operand_slice.size())); 26629: operand_list_->push_back(*copied_operands_->back()); 26629: } 26629: } 26629: 26629: 26629: size_t GetNumOperands() const { 26629: if (!operand_list_) { 26629: return 0; 26629: } 26629: return operand_list_->size(); 26629: } 26629: 26629: 26629: Slice GetOperand(int index) const { 26629: 26629: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 3 4 26629: (static_cast ( 26629: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 26629: operand_list_ 26629: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 26629: "operand_list_" 26629: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 3 4 26629: , "./db/merge_context.h", 72, __extension__ __PRETTY_FUNCTION__)) 26629: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 26629: ; 26629: 26629: SetDirectionForward(); 26629: return (*operand_list_)[index]; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: const std::vector& GetOperands() const { 26629: return GetOperandsDirectionForward(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: const std::vector& GetOperandsDirectionForward() const { 26629: if (!operand_list_) { 26629: return empty_operand_list; 26629: } 26629: 26629: SetDirectionForward(); 26629: return *operand_list_; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: const std::vector& GetOperandsDirectionBackward() const { 26629: if (!operand_list_) { 26629: return empty_operand_list; 26629: } 26629: 26629: SetDirectionBackward(); 26629: return *operand_list_; 26629: } 26629: 26629: private: 26629: void Initialize() { 26629: if (!operand_list_) { 26629: operand_list_.reset(new std::vector()); 26629: copied_operands_.reset(new std::vector>()); 26629: } 26629: } 26629: 26629: void SetDirectionForward() const { 26629: if (operands_reversed_ == true) { 26629: std::reverse(operand_list_->begin(), operand_list_->end()); 26629: operands_reversed_ = false; 26629: } 26629: } 26629: 26629: void SetDirectionBackward() const { 26629: if (operands_reversed_ == false) { 26629: std::reverse(operand_list_->begin(), operand_list_->end()); 26629: operands_reversed_ = true; 26629: } 26629: } 26629: 26629: 26629: mutable std::unique_ptr> operand_list_; 26629: 26629: std::unique_ptr>> copied_operands_; 26629: mutable bool operands_reversed_ = true; 26629: }; 26629: 26629: } 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 2 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/async_file_reader.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 2 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: namespace rocksdb { 26629: 26629: 26629: 26629: template 26629: inline int FloorLog2(T v) { 26629: static_assert(std::is_integral::value, "non-integral type"); 26629: 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 26629: (static_cast ( 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: v > 0 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: "v > 0" 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 26629: , "./util/math.h", 25, __extension__ __PRETTY_FUNCTION__)) 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: ; 26629: # 46 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 26629: if (sizeof(T) <= sizeof(unsigned int)) { 26629: int lz = __builtin_clz(static_cast(v)); 26629: return int{sizeof(unsigned int)} * 8 - 1 - lz; 26629: } else if (sizeof(T) <= sizeof(unsigned long)) { 26629: int lz = __builtin_clzl(static_cast(v)); 26629: return int{sizeof(unsigned long)} * 8 - 1 - lz; 26629: } else { 26629: int lz = __builtin_clzll(static_cast(v)); 26629: return int{sizeof(unsigned long long)} * 8 - 1 - lz; 26629: } 26629: 26629: } 26629: 26629: 26629: template 26629: constexpr int ConstexprFloorLog2(T v) { 26629: int rv = 0; 26629: while (v > T{1}) { 26629: ++rv; 26629: v >>= 1; 26629: } 26629: return rv; 26629: } 26629: 26629: 26629: template 26629: inline int CountTrailingZeroBits(T v) { 26629: static_assert(std::is_integral::value, "non-integral type"); 26629: 26629: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 26629: (static_cast ( 26629: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: v != 0 26629: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: "v != 0" 26629: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 26629: , "./util/math.h", 75, __extension__ __PRETTY_FUNCTION__)) 26629: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: ; 26629: # 95 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 26629: if (sizeof(T) <= sizeof(unsigned int)) { 26629: return __builtin_ctz(static_cast(v)); 26629: } else if (sizeof(T) <= sizeof(unsigned long)) { 26629: return __builtin_ctzl(static_cast(v)); 26629: } else { 26629: return __builtin_ctzll(static_cast(v)); 26629: } 26629: 26629: } 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: template 26629: inline int BitsSetToOne(T v) { 26629: static_assert(std::is_integral::value, "non-integral type"); 26629: # 171 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 26629: if (sizeof(T) < sizeof(unsigned int)) { 26629: 26629: constexpr auto mm = 8 * sizeof(unsigned int) - 1; 26629: 26629: constexpr unsigned int m = (1U << ((8 * sizeof(T)) & mm)) - 1; 26629: return __builtin_popcount(static_cast(v) & m); 26629: } else if (sizeof(T) == sizeof(unsigned int)) { 26629: return __builtin_popcount(static_cast(v)); 26629: } else if (sizeof(T) <= sizeof(unsigned long)) { 26629: return __builtin_popcountl(static_cast(v)); 26629: } else { 26629: return __builtin_popcountll(static_cast(v)); 26629: } 26629: 26629: } 26629: 26629: template 26629: inline int BitParity(T v) { 26629: static_assert(std::is_integral::value, "non-integral type"); 26629: 26629: 26629: 26629: 26629: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 26629: if (sizeof(T) <= sizeof(unsigned int)) { 26629: 26629: return __builtin_parity(static_cast(v)); 26629: } else if (sizeof(T) <= sizeof(unsigned long)) { 26629: return __builtin_parityl(static_cast(v)); 26629: } else { 26629: return __builtin_parityll(static_cast(v)); 26629: } 26629: 26629: } 26629: 26629: 26629: 26629: 26629: template 26629: inline T EndianSwapValue(T v) { 26629: static_assert(std::is_integral::value, "non-integral type"); 26629: # 223 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: if (sizeof(T) == 2) { 26629: return static_cast(__builtin_bswap16(static_cast(v))); 26629: } else if (sizeof(T) == 4) { 26629: return static_cast(__builtin_bswap32(static_cast(v))); 26629: } else if (sizeof(T) == 8) { 26629: return static_cast(__builtin_bswap64(static_cast(v))); 26629: } 26629: 26629: 26629: T ret_val = 0; 26629: for (std::size_t i = 0; i < sizeof(T); ++i) { 26629: ret_val |= ((v >> (8 * i)) & 0xff) << (8 * (sizeof(T) - 1 - i)); 26629: } 26629: return ret_val; 26629: } 26629: 26629: 26629: template 26629: inline T ReverseBits(T v) { 26629: T r = EndianSwapValue(v); 26629: const T kHighestByte = T{1} << ((sizeof(T) - 1) * 8); 26629: const T kEveryByte = kHighestByte | (kHighestByte / 255); 26629: 26629: r = ((r & (kEveryByte * 0x0f)) << 4) | ((r >> 4) & (kEveryByte * 0x0f)); 26629: r = ((r & (kEveryByte * 0x33)) << 2) | ((r >> 2) & (kEveryByte * 0x33)); 26629: r = ((r & (kEveryByte * 0x55)) << 1) | ((r >> 1) & (kEveryByte * 0x55)); 26629: 26629: return r; 26629: } 26629: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 26629: template 26629: inline T DownwardInvolution(T v) { 26629: static_assert(std::is_integral::value, "non-integral type"); 26629: static_assert(sizeof(T) <= 8, "only supported up to 64 bits"); 26629: 26629: uint64_t r = static_cast(v); 26629: if constexpr (sizeof(T) > 4) { 26629: r ^= r >> 32; 26629: } 26629: if constexpr (sizeof(T) > 2) { 26629: r ^= (r & 0xffff0000ffff0000U) >> 16; 26629: } 26629: if constexpr (sizeof(T) > 1) { 26629: r ^= (r & 0xff00ff00ff00ff00U) >> 8; 26629: } 26629: r ^= (r & 0xf0f0f0f0f0f0f0f0U) >> 4; 26629: r ^= (r & 0xccccccccccccccccU) >> 2; 26629: r ^= (r & 0xaaaaaaaaaaaaaaaaU) >> 1; 26629: return static_cast(r); 26629: } 26629: 26629: } 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/single_thread_executor.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 2 26629: 26629: namespace rocksdb { 26629: class GetContext; 26629: 26629: struct KeyContext { 26629: const Slice* key; 26629: LookupKey* lkey; 26629: Slice ukey_with_ts; 26629: Slice ukey_without_ts; 26629: Slice ikey; 26629: ColumnFamilyHandle* column_family; 26629: Status* s; 26629: MergeContext merge_context; 26629: SequenceNumber max_covering_tombstone_seq; 26629: bool key_exists; 26629: bool is_blob_index; 26629: void* cb_arg; 26629: PinnableSlice* value; 26629: std::string* timestamp; 26629: GetContext* get_context; 26629: 26629: KeyContext(ColumnFamilyHandle* col_family, const Slice& user_key, 26629: PinnableSlice* val, std::string* ts, Status* stat) 26629: : key(&user_key), 26629: lkey(nullptr), 26629: column_family(col_family), 26629: s(stat), 26629: max_covering_tombstone_seq(0), 26629: key_exists(false), 26629: is_blob_index(false), 26629: cb_arg(nullptr), 26629: value(val), 26629: timestamp(ts), 26629: get_context(nullptr) {} 26629: 26629: KeyContext() = default; 26629: }; 26629: # 94 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: class MultiGetContext { 26629: public: 26629: 26629: 26629: 26629: 26629: static const int MAX_BATCH_SIZE = 32; 26629: 26629: 26629: 26629: using Mask = uint64_t; 26629: static_assert(MAX_BATCH_SIZE < sizeof(Mask) * 8); 26629: 26629: MultiGetContext(autovector* sorted_keys, 26629: size_t begin, size_t num_keys, SequenceNumber snapshot, 26629: const ReadOptions& read_opts, FileSystem* fs, 26629: Statistics* stats) 26629: : num_keys_(num_keys), 26629: value_mask_(0), 26629: value_size_(0), 26629: lookup_key_ptr_(reinterpret_cast(lookup_key_stack_buf)) 26629: 26629: 26629: 26629: 26629: 26629: { 26629: (void)fs; 26629: (void)stats; 26629: 26629: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: num_keys <= MAX_BATCH_SIZE 26629: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "num_keys <= MAX_BATCH_SIZE" 26629: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 123, __extension__ __PRETTY_FUNCTION__)) 26629: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: if (num_keys > MAX_LOOKUP_KEYS_ON_STACK) { 26629: lookup_key_heap_buf.reset(new char[sizeof(LookupKey) * num_keys]); 26629: lookup_key_ptr_ = reinterpret_cast( 26629: lookup_key_heap_buf.get()); 26629: } 26629: 26629: for (size_t iter = 0; iter != num_keys_; ++iter) { 26629: 26629: sorted_keys_[iter] = (*sorted_keys)[begin + iter]; 26629: sorted_keys_[iter]->lkey = new (&lookup_key_ptr_[iter]) 26629: LookupKey(*sorted_keys_[iter]->key, snapshot, read_opts.timestamp); 26629: sorted_keys_[iter]->ukey_with_ts = sorted_keys_[iter]->lkey->user_key(); 26629: sorted_keys_[iter]->ukey_without_ts = StripTimestampFromUserKey( 26629: sorted_keys_[iter]->lkey->user_key(), 26629: read_opts.timestamp == nullptr ? 0 : read_opts.timestamp->size()); 26629: sorted_keys_[iter]->ikey = sorted_keys_[iter]->lkey->internal_key(); 26629: sorted_keys_[iter]->timestamp = (*sorted_keys)[begin + iter]->timestamp; 26629: sorted_keys_[iter]->get_context = 26629: (*sorted_keys)[begin + iter]->get_context; 26629: } 26629: } 26629: 26629: ~MultiGetContext() { 26629: for (size_t i = 0; i < num_keys_; ++i) { 26629: lookup_key_ptr_[i].~LookupKey(); 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: private: 26629: static const int MAX_LOOKUP_KEYS_ON_STACK = 16; 26629: alignas(alignof(LookupKey)) 26629: char lookup_key_stack_buf[sizeof(LookupKey) * MAX_LOOKUP_KEYS_ON_STACK]; 26629: std::array sorted_keys_; 26629: size_t num_keys_; 26629: Mask value_mask_; 26629: uint64_t value_size_; 26629: std::unique_ptr lookup_key_heap_buf; 26629: LookupKey* lookup_key_ptr_; 26629: 26629: 26629: 26629: 26629: 26629: public: 26629: # 183 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: class Range { 26629: public: 26629: 26629: 26629: 26629: class Iterator { 26629: public: 26629: 26629: using self_type = Iterator; 26629: using value_type = KeyContext; 26629: using reference = KeyContext&; 26629: using pointer = KeyContext*; 26629: using difference_type = int; 26629: using iterator_category = std::forward_iterator_tag; 26629: 26629: Iterator(const Range* range, size_t idx) 26629: : range_(range), ctx_(range->ctx_), index_(idx) { 26629: while (index_ < range_->end_ && 26629: (Mask{1} << index_) & 26629: (range_->ctx_->value_mask_ | range_->skip_mask_ | 26629: range_->invalid_mask_)) 26629: index_++; 26629: } 26629: 26629: Iterator(const Iterator&) = default; 26629: 26629: Iterator(const Iterator& other, const Range* range) 26629: : range_(range), ctx_(other.ctx_), index_(other.index_) { 26629: 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: range->ctx_ == other.ctx_ 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "range->ctx_ == other.ctx_" 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 211, __extension__ __PRETTY_FUNCTION__)) 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: } 26629: Iterator& operator=(const Iterator&) = default; 26629: 26629: Iterator& operator++() { 26629: while (++index_ < range_->end_ && 26629: (Mask{1} << index_) & 26629: (range_->ctx_->value_mask_ | range_->skip_mask_ | 26629: range_->invalid_mask_)) 26629: ; 26629: return *this; 26629: } 26629: 26629: bool operator==(Iterator other) const { 26629: 26629: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: range_->ctx_ == other.range_->ctx_ 26629: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "range_->ctx_ == other.range_->ctx_" 26629: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 225, __extension__ __PRETTY_FUNCTION__)) 26629: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: return index_ == other.index_; 26629: } 26629: 26629: bool operator!=(Iterator other) const { 26629: 26629: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: range_->ctx_ == other.range_->ctx_ 26629: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "range_->ctx_ == other.range_->ctx_" 26629: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 230, __extension__ __PRETTY_FUNCTION__)) 26629: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: return index_ != other.index_; 26629: } 26629: 26629: KeyContext& operator*() { 26629: 26629: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: index_ < range_->end_ && index_ >= range_->start_ 26629: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "index_ < range_->end_ && index_ >= range_->start_" 26629: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 235, __extension__ __PRETTY_FUNCTION__)) 26629: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: return *(ctx_->sorted_keys_[index_]); 26629: } 26629: 26629: KeyContext* operator->() { 26629: 26629: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: index_ < range_->end_ && index_ >= range_->start_ 26629: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "index_ < range_->end_ && index_ >= range_->start_" 26629: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 240, __extension__ __PRETTY_FUNCTION__)) 26629: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: return ctx_->sorted_keys_[index_]; 26629: } 26629: 26629: size_t index() { return index_; } 26629: 26629: private: 26629: friend Range; 26629: const Range* range_; 26629: const MultiGetContext* ctx_; 26629: size_t index_; 26629: }; 26629: 26629: Range(const Range& mget_range, 26629: const Iterator& first, 26629: const Iterator& last) { 26629: ctx_ = mget_range.ctx_; 26629: if (first == last) { 26629: 26629: 26629: start_ = mget_range.start_; 26629: end_ = start_; 26629: } else { 26629: start_ = first.index_; 26629: end_ = last.index_; 26629: } 26629: skip_mask_ = mget_range.skip_mask_; 26629: invalid_mask_ = mget_range.invalid_mask_; 26629: 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: start_ < 64 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "start_ < 64" 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 268, __extension__ __PRETTY_FUNCTION__)) 26629: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: 26629: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: end_ < 64 26629: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "end_ < 64" 26629: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 269, __extension__ __PRETTY_FUNCTION__)) 26629: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: } 26629: 26629: Range() = default; 26629: 26629: Iterator begin() const { return Iterator(this, start_); } 26629: 26629: Iterator end() const { return Iterator(this, end_); } 26629: 26629: bool empty() const { return RemainingMask() == 0; } 26629: 26629: void SkipIndex(size_t index) { skip_mask_ |= Mask{1} << index; } 26629: 26629: void SkipKey(const Iterator& iter) { SkipIndex(iter.index_); } 26629: 26629: bool IsKeySkipped(const Iterator& iter) const { 26629: return skip_mask_ & (Mask{1} << iter.index_); 26629: } 26629: 26629: 26629: 26629: void MarkKeyDone(Iterator& iter) { 26629: ctx_->value_mask_ |= (Mask{1} << iter.index_); 26629: } 26629: 26629: bool CheckKeyDone(Iterator& iter) const { 26629: return ctx_->value_mask_ & (Mask{1} << iter.index_); 26629: } 26629: 26629: uint64_t KeysLeft() const { return BitsSetToOne(RemainingMask()); } 26629: 26629: void AddSkipsFrom(const Range& other) { 26629: 26629: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ctx_ == other.ctx_ 26629: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "ctx_ == other.ctx_" 26629: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 301, __extension__ __PRETTY_FUNCTION__)) 26629: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: skip_mask_ |= other.skip_mask_; 26629: } 26629: 26629: uint64_t GetValueSize() { return ctx_->value_size_; } 26629: 26629: void AddValueSize(uint64_t value_size) { ctx_->value_size_ += value_size; } 26629: 26629: MultiGetContext* context() const { return ctx_; } 26629: 26629: Range Suffix(const Range& other) const { 26629: size_t other_last = other.FindLastRemaining(); 26629: size_t my_last = FindLastRemaining(); 26629: 26629: if (my_last > other_last) { 26629: return Range(*this, Iterator(this, other_last), 26629: Iterator(this, my_last)); 26629: } else { 26629: return Range(*this, begin(), begin()); 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: Range& operator+=(const Range& rhs) { 26629: 26629: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: rhs.start_ >= end_ 26629: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "rhs.start_ >= end_" 26629: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 328, __extension__ __PRETTY_FUNCTION__)) 26629: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: 26629: if (end_ < rhs.start_) { 26629: invalid_mask_ |= RangeMask(end_, rhs.start_); 26629: skip_mask_ |= RangeMask(end_, rhs.start_); 26629: } 26629: start_ = std::min(start_, rhs.start_); 26629: end_ = std::max(end_, rhs.end_); 26629: skip_mask_ |= rhs.skip_mask_ & RangeMask(rhs.start_, rhs.end_); 26629: invalid_mask_ |= (rhs.invalid_mask_ | rhs.skip_mask_) & 26629: RangeMask(rhs.start_, rhs.end_); 26629: 26629: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: start_ < 64 26629: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "start_ < 64" 26629: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 339, __extension__ __PRETTY_FUNCTION__)) 26629: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: 26629: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: end_ < 64 26629: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "end_ < 64" 26629: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 340, __extension__ __PRETTY_FUNCTION__)) 26629: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: return *this; 26629: } 26629: 26629: 26629: 26629: 26629: Range& operator-=(const Range& rhs) { 26629: 26629: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: start_ <= rhs.start_ && end_ >= rhs.end_ 26629: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "start_ <= rhs.start_ && end_ >= rhs.end_" 26629: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 348, __extension__ __PRETTY_FUNCTION__)) 26629: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: skip_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 26629: RangeMask(rhs.start_, rhs.end_); 26629: invalid_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 26629: RangeMask(rhs.start_, rhs.end_); 26629: return *this; 26629: } 26629: 26629: 26629: Range operator~() { 26629: Range res = *this; 26629: res.skip_mask_ = ~skip_mask_ & RangeMask(start_, end_); 26629: return res; 26629: } 26629: 26629: private: 26629: friend MultiGetContext; 26629: MultiGetContext* ctx_; 26629: size_t start_; 26629: size_t end_; 26629: Mask skip_mask_; 26629: Mask invalid_mask_; 26629: 26629: Range(MultiGetContext* ctx, size_t num_keys) 26629: : ctx_(ctx), 26629: start_(0), 26629: end_(num_keys), 26629: skip_mask_(0), 26629: invalid_mask_(0) { 26629: 26629: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: (static_cast ( 26629: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: num_keys < 64 26629: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: "num_keys < 64" 26629: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 26629: , "./table/multiget_context.h", 377, __extension__ __PRETTY_FUNCTION__)) 26629: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 26629: ; 26629: } 26629: 26629: static Mask RangeMask(size_t start, size_t end) { 26629: return (((Mask{1} << (end - start)) - 1) << start); 26629: } 26629: 26629: Mask RemainingMask() const { 26629: return (((Mask{1} << end_) - 1) & ~((Mask{1} << start_) - 1) & 26629: ~(ctx_->value_mask_ | skip_mask_)); 26629: } 26629: 26629: size_t FindLastRemaining() const { 26629: Mask mask = RemainingMask(); 26629: size_t index = (mask >>= start_) ? start_ : 0; 26629: while (mask >>= 1) { 26629: index++; 26629: } 26629: return index; 26629: } 26629: }; 26629: 26629: 26629: Range GetMultiGetRange() { return Range(this, num_keys_); } 26629: }; 26629: 26629: } 26629: # 22 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class Iterator; 26629: struct ParsedInternalKey; 26629: class Slice; 26629: class Arena; 26629: struct ReadOptions; 26629: struct TableProperties; 26629: class GetContext; 26629: class MultiGetContext; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class TableReader { 26629: public: 26629: virtual ~TableReader() {} 26629: # 56 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 26629: virtual InternalIterator* NewIterator( 26629: const ReadOptions& read_options, const SliceTransform* prefix_extractor, 26629: Arena* arena, bool skip_filters, TableReaderCaller caller, 26629: size_t compaction_readahead_size = 0, 26629: bool allow_unprepared_value = false) = 0; 26629: 26629: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 26629: const ReadOptions& ) { 26629: return nullptr; 26629: } 26629: # 78 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 26629: virtual uint64_t ApproximateOffsetOf(const Slice& key, 26629: TableReaderCaller caller) = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual uint64_t ApproximateSize(const Slice& start, const Slice& end, 26629: TableReaderCaller caller) = 0; 26629: 26629: struct Anchor { 26629: Anchor(const Slice& _user_key, size_t _range_size) 26629: : user_key(_user_key.ToStringView()), range_size(_range_size) {} 26629: std::string user_key; 26629: size_t range_size; 26629: }; 26629: 26629: 26629: 26629: virtual Status ApproximateKeyAnchors(const ReadOptions& , 26629: std::vector& ) { 26629: return Status::NotSupported("ApproximateKeyAnchors() not supported."); 26629: } 26629: 26629: 26629: 26629: virtual void SetupForCompaction() = 0; 26629: 26629: virtual std::shared_ptr GetTableProperties() const = 0; 26629: 26629: 26629: virtual void Prepare(const Slice& ) {} 26629: 26629: 26629: virtual size_t ApproximateMemoryUsage() const = 0; 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 26629: virtual Status Get(const ReadOptions& readOptions, const Slice& key, 26629: GetContext* get_context, 26629: const SliceTransform* prefix_extractor, 26629: bool skip_filters = false) = 0; 26629: 26629: 26629: 26629: 26629: virtual Status MultiGetFilter(const ReadOptions& , 26629: const SliceTransform* , 26629: MultiGetContext::Range* ) { 26629: return Status::NotSupported(); 26629: } 26629: 26629: virtual void MultiGet(const ReadOptions& readOptions, 26629: const MultiGetContext::Range* mget_range, 26629: const SliceTransform* prefix_extractor, 26629: bool skip_filters = false) { 26629: for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) { 26629: *iter->s = Get(readOptions, iter->ikey, iter->get_context, 26629: prefix_extractor, skip_filters); 26629: } 26629: } 26629: # 162 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 26629: virtual Status Prefetch(const Slice* begin = nullptr, 26629: const Slice* end = nullptr) { 26629: (void) begin; 26629: (void) end; 26629: 26629: 26629: return Status::OK(); 26629: } 26629: 26629: 26629: virtual Status DumpTable(WritableFile* ) { 26629: return Status::NotSupported("DumpTable() not supported"); 26629: } 26629: 26629: 26629: virtual Status VerifyChecksum(const ReadOptions& , 26629: TableReaderCaller ) { 26629: return Status::NotSupported("VerifyChecksum() not supported"); 26629: } 26629: }; 26629: 26629: } 26629: # 26 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/unique_id_impl.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/unique_id.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/unique_id.h" 26629: Status GetUniqueIdFromTableProperties(const TableProperties &props, 26629: std::string *out_id); 26629: # 47 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/unique_id.h" 26629: Status GetExtendedUniqueIdFromTableProperties(const TableProperties &props, 26629: std::string *out_id); 26629: 26629: 26629: 26629: 26629: std::string UniqueIdToHumanString(const std::string &id); 26629: 26629: } 26629: # 11 "/build/reproducible-path/rocksdb-7.8.3/table/unique_id_impl.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: 26629: using UniqueId64x2 = std::array; 26629: 26629: 26629: constexpr UniqueId64x2 kNullUniqueId64x2 = {}; 26629: 26629: 26629: 26629: using UniqueId64x3 = std::array; 26629: 26629: 26629: constexpr UniqueId64x3 kNullUniqueId64x3 = {}; 26629: 26629: 26629: struct UniqueIdPtr { 26629: uint64_t *ptr = nullptr; 26629: bool extended = false; 26629: 26629: UniqueIdPtr(UniqueId64x2 *id) { 26629: ptr = (*id).data(); 26629: extended = false; 26629: } 26629: UniqueIdPtr(UniqueId64x3 *id) { 26629: ptr = (*id).data(); 26629: extended = true; 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: Status GetSstInternalUniqueId(const std::string &db_id, 26629: const std::string &db_session_id, 26629: uint64_t file_number, UniqueIdPtr out, 26629: bool force = false); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: void InternalUniqueIdToExternal(UniqueIdPtr in_out); 26629: 26629: 26629: 26629: void ExternalUniqueIdToInternal(UniqueIdPtr in_out); 26629: 26629: 26629: std::string EncodeUniqueIdBytes(UniqueIdPtr in); 26629: 26629: 26629: Status DecodeUniqueIdBytes(const std::string &unique_id, UniqueIdPtr out); 26629: 26629: 26629: 26629: std::string InternalUniqueIdToHumanString(UniqueIdPtr in); 26629: # 85 "/build/reproducible-path/rocksdb-7.8.3/table/unique_id_impl.h" 26629: std::string EncodeSessionId(uint64_t upper, uint64_t lower); 26629: 26629: 26629: 26629: 26629: Status DecodeSessionId(const std::string &db_session_id, uint64_t *upper, 26629: uint64_t *lower); 26629: 26629: } 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: enum Tag : uint32_t { 26629: kComparator = 1, 26629: kLogNumber = 2, 26629: kNextFileNumber = 3, 26629: kLastSequence = 4, 26629: kCompactCursor = 5, 26629: kDeletedFile = 6, 26629: kNewFile = 7, 26629: 26629: kPrevLogNumber = 9, 26629: kMinLogNumberToKeep = 10, 26629: 26629: 26629: kNewFile2 = 100, 26629: kNewFile3 = 102, 26629: kNewFile4 = 103, 26629: kColumnFamily = 200, 26629: kColumnFamilyAdd = 201, 26629: kColumnFamilyDrop = 202, 26629: kMaxColumnFamily = 203, 26629: 26629: kInAtomicGroup = 300, 26629: 26629: kBlobFileAddition = 400, 26629: kBlobFileGarbage, 26629: 26629: 26629: kTagSafeIgnoreMask = 1 << 13, 26629: 26629: 26629: kDbId, 26629: kBlobFileAddition_DEPRECATED, 26629: kBlobFileGarbage_DEPRECATED, 26629: kWalAddition, 26629: kWalDeletion, 26629: kFullHistoryTsLow, 26629: kWalAddition2, 26629: kWalDeletion2, 26629: }; 26629: 26629: enum NewFileCustomTag : uint32_t { 26629: kTerminate = 1, 26629: kNeedCompaction = 2, 26629: 26629: 26629: 26629: kMinLogNumberToKeepHack = 3, 26629: kOldestBlobFileNumber = 4, 26629: kOldestAncesterTime = 5, 26629: kFileCreationTime = 6, 26629: kFileChecksum = 7, 26629: kFileChecksumFuncName = 8, 26629: kTemperature = 9, 26629: kMinTimestamp = 10, 26629: kMaxTimestamp = 11, 26629: kUniqueId = 12, 26629: 26629: 26629: 26629: kCustomTagNonSafeIgnoreMask = 1 << 6, 26629: 26629: 26629: kPathId, 26629: }; 26629: 26629: class VersionSet; 26629: 26629: constexpr uint64_t kFileNumberMask = 0x3FFFFFFFFFFFFFFF; 26629: constexpr uint64_t kUnknownOldestAncesterTime = 0; 26629: constexpr uint64_t kUnknownFileCreationTime = 0; 26629: 26629: extern uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id); 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct FileDescriptor { 26629: 26629: TableReader* table_reader; 26629: uint64_t packed_number_and_path_id; 26629: uint64_t file_size; 26629: SequenceNumber smallest_seqno; 26629: SequenceNumber largest_seqno; 26629: 26629: FileDescriptor() : FileDescriptor(0, 0, 0) {} 26629: 26629: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size) 26629: : FileDescriptor(number, path_id, _file_size, kMaxSequenceNumber, 0) {} 26629: 26629: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size, 26629: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno) 26629: : table_reader(nullptr), 26629: packed_number_and_path_id(PackFileNumberAndPathId(number, path_id)), 26629: file_size(_file_size), 26629: smallest_seqno(_smallest_seqno), 26629: largest_seqno(_largest_seqno) {} 26629: 26629: FileDescriptor(const FileDescriptor& fd) { *this = fd; } 26629: 26629: FileDescriptor& operator=(const FileDescriptor& fd) { 26629: table_reader = fd.table_reader; 26629: packed_number_and_path_id = fd.packed_number_and_path_id; 26629: file_size = fd.file_size; 26629: smallest_seqno = fd.smallest_seqno; 26629: largest_seqno = fd.largest_seqno; 26629: return *this; 26629: } 26629: 26629: uint64_t GetNumber() const { 26629: return packed_number_and_path_id & kFileNumberMask; 26629: } 26629: uint32_t GetPathId() const { 26629: return static_cast( 26629: packed_number_and_path_id / (kFileNumberMask + 1)); 26629: } 26629: uint64_t GetFileSize() const { return file_size; } 26629: }; 26629: 26629: struct FileSampledStats { 26629: FileSampledStats() : num_reads_sampled(0) {} 26629: FileSampledStats(const FileSampledStats& other) { *this = other; } 26629: FileSampledStats& operator=(const FileSampledStats& other) { 26629: num_reads_sampled = other.num_reads_sampled.load(); 26629: return *this; 26629: } 26629: 26629: 26629: mutable std::atomic num_reads_sampled; 26629: }; 26629: 26629: struct FileMetaData { 26629: FileDescriptor fd; 26629: InternalKey smallest; 26629: InternalKey largest; 26629: 26629: 26629: Cache::Handle* table_reader_handle = nullptr; 26629: 26629: FileSampledStats stats; 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint64_t compensated_file_size = 0; 26629: 26629: 26629: uint64_t num_entries = 0; 26629: uint64_t num_deletions = 0; 26629: uint64_t raw_key_size = 0; 26629: uint64_t raw_value_size = 0; 26629: 26629: int refs = 0; 26629: 26629: bool being_compacted = false; 26629: bool init_stats_from_file = false; 26629: 26629: 26629: bool marked_for_compaction = false; 26629: 26629: Temperature temperature = Temperature::kUnknown; 26629: 26629: 26629: 26629: uint64_t oldest_blob_file_number = kInvalidBlobFileNumber; 26629: 26629: 26629: 26629: 26629: 26629: uint64_t oldest_ancester_time = kUnknownOldestAncesterTime; 26629: 26629: 26629: uint64_t file_creation_time = kUnknownFileCreationTime; 26629: 26629: 26629: std::string file_checksum = kUnknownFileChecksum; 26629: 26629: 26629: std::string file_checksum_func_name = kUnknownFileChecksumFuncName; 26629: 26629: 26629: UniqueId64x2 unique_id{}; 26629: 26629: FileMetaData() = default; 26629: 26629: FileMetaData(uint64_t file, uint32_t file_path_id, uint64_t file_size, 26629: const InternalKey& smallest_key, const InternalKey& largest_key, 26629: const SequenceNumber& smallest_seq, 26629: const SequenceNumber& largest_seq, bool marked_for_compact, 26629: Temperature _temperature, uint64_t oldest_blob_file, 26629: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 26629: const std::string& _file_checksum, 26629: const std::string& _file_checksum_func_name, 26629: UniqueId64x2 _unique_id) 26629: : fd(file, file_path_id, file_size, smallest_seq, largest_seq), 26629: smallest(smallest_key), 26629: largest(largest_key), 26629: marked_for_compaction(marked_for_compact), 26629: temperature(_temperature), 26629: oldest_blob_file_number(oldest_blob_file), 26629: oldest_ancester_time(_oldest_ancester_time), 26629: file_creation_time(_file_creation_time), 26629: file_checksum(_file_checksum), 26629: file_checksum_func_name(_file_checksum_func_name), 26629: unique_id(std::move(_unique_id)) { 26629: rocksdb::SyncPoint::GetInstance()->Process("FileMetaData::FileMetaData", this); 26629: } 26629: 26629: 26629: 26629: Status UpdateBoundaries(const Slice& key, const Slice& value, 26629: SequenceNumber seqno, ValueType value_type); 26629: 26629: 26629: 26629: void UpdateBoundariesForRange(const InternalKey& start, 26629: const InternalKey& end, SequenceNumber seqno, 26629: const InternalKeyComparator& icmp) { 26629: if (smallest.size() == 0 || icmp.Compare(start, smallest) < 0) { 26629: smallest = start; 26629: } 26629: if (largest.size() == 0 || icmp.Compare(largest, end) < 0) { 26629: largest = end; 26629: } 26629: fd.smallest_seqno = std::min(fd.smallest_seqno, seqno); 26629: fd.largest_seqno = std::max(fd.largest_seqno, seqno); 26629: } 26629: 26629: 26629: 26629: 26629: uint64_t TryGetOldestAncesterTime() { 26629: if (oldest_ancester_time != kUnknownOldestAncesterTime) { 26629: return oldest_ancester_time; 26629: } else if (fd.table_reader != nullptr && 26629: fd.table_reader->GetTableProperties() != nullptr) { 26629: return fd.table_reader->GetTableProperties()->creation_time; 26629: } 26629: return kUnknownOldestAncesterTime; 26629: } 26629: 26629: uint64_t TryGetFileCreationTime() { 26629: if (file_creation_time != kUnknownFileCreationTime) { 26629: return file_creation_time; 26629: } else if (fd.table_reader != nullptr && 26629: fd.table_reader->GetTableProperties() != nullptr) { 26629: return fd.table_reader->GetTableProperties()->file_creation_time; 26629: } 26629: return kUnknownFileCreationTime; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t ApproximateMemoryUsage() const { 26629: size_t usage = 0; 26629: 26629: usage += malloc_usable_size(const_cast(this)); 26629: 26629: 26629: 26629: usage += smallest.size() + largest.size() + file_checksum.size() + 26629: file_checksum_func_name.size(); 26629: return usage; 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: struct FdWithKeyRange { 26629: FileDescriptor fd; 26629: FileMetaData* file_metadata; 26629: Slice smallest_key; 26629: Slice largest_key; 26629: 26629: FdWithKeyRange() 26629: : fd(), 26629: file_metadata(nullptr), 26629: smallest_key(), 26629: largest_key() { 26629: } 26629: 26629: FdWithKeyRange(FileDescriptor _fd, Slice _smallest_key, Slice _largest_key, 26629: FileMetaData* _file_metadata) 26629: : fd(_fd), 26629: file_metadata(_file_metadata), 26629: smallest_key(_smallest_key), 26629: largest_key(_largest_key) {} 26629: }; 26629: 26629: 26629: 26629: struct LevelFilesBrief { 26629: size_t num_files; 26629: FdWithKeyRange* files; 26629: LevelFilesBrief() { 26629: num_files = 0; 26629: files = nullptr; 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: class VersionEdit { 26629: public: 26629: void Clear(); 26629: 26629: void SetDBId(const std::string& db_id) { 26629: has_db_id_ = true; 26629: db_id_ = db_id; 26629: } 26629: bool HasDbId() const { return has_db_id_; } 26629: const std::string& GetDbId() const { return db_id_; } 26629: 26629: void SetComparatorName(const Slice& name) { 26629: has_comparator_ = true; 26629: comparator_ = name.ToString(); 26629: } 26629: bool HasComparatorName() const { return has_comparator_; } 26629: const std::string& GetComparatorName() const { return comparator_; } 26629: 26629: void SetLogNumber(uint64_t num) { 26629: has_log_number_ = true; 26629: log_number_ = num; 26629: } 26629: bool HasLogNumber() const { return has_log_number_; } 26629: uint64_t GetLogNumber() const { return log_number_; } 26629: 26629: void SetPrevLogNumber(uint64_t num) { 26629: has_prev_log_number_ = true; 26629: prev_log_number_ = num; 26629: } 26629: bool HasPrevLogNumber() const { return has_prev_log_number_; } 26629: uint64_t GetPrevLogNumber() const { return prev_log_number_; } 26629: 26629: void SetNextFile(uint64_t num) { 26629: has_next_file_number_ = true; 26629: next_file_number_ = num; 26629: } 26629: bool HasNextFile() const { return has_next_file_number_; } 26629: uint64_t GetNextFile() const { return next_file_number_; } 26629: 26629: void SetMaxColumnFamily(uint32_t max_column_family) { 26629: has_max_column_family_ = true; 26629: max_column_family_ = max_column_family; 26629: } 26629: bool HasMaxColumnFamily() const { return has_max_column_family_; } 26629: uint32_t GetMaxColumnFamily() const { return max_column_family_; } 26629: 26629: void SetMinLogNumberToKeep(uint64_t num) { 26629: has_min_log_number_to_keep_ = true; 26629: min_log_number_to_keep_ = num; 26629: } 26629: bool HasMinLogNumberToKeep() const { return has_min_log_number_to_keep_; } 26629: uint64_t GetMinLogNumberToKeep() const { return min_log_number_to_keep_; } 26629: 26629: void SetLastSequence(SequenceNumber seq) { 26629: has_last_sequence_ = true; 26629: last_sequence_ = seq; 26629: } 26629: bool HasLastSequence() const { return has_last_sequence_; } 26629: SequenceNumber GetLastSequence() const { return last_sequence_; } 26629: 26629: 26629: void DeleteFile(int level, uint64_t file) { 26629: deleted_files_.emplace(level, file); 26629: } 26629: 26629: 26629: using DeletedFiles = std::set>; 26629: const DeletedFiles& GetDeletedFiles() const { return deleted_files_; } 26629: 26629: 26629: 26629: 26629: 26629: void AddFile(int level, uint64_t file, uint32_t file_path_id, 26629: uint64_t file_size, const InternalKey& smallest, 26629: const InternalKey& largest, const SequenceNumber& smallest_seqno, 26629: const SequenceNumber& largest_seqno, bool marked_for_compaction, 26629: Temperature temperature, uint64_t oldest_blob_file_number, 26629: uint64_t oldest_ancester_time, uint64_t file_creation_time, 26629: const std::string& file_checksum, 26629: const std::string& file_checksum_func_name, 26629: const UniqueId64x2& unique_id) { 26629: 26629: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: smallest_seqno <= largest_seqno 26629: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "smallest_seqno <= largest_seqno" 26629: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 430, __extension__ __PRETTY_FUNCTION__)) 26629: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: new_files_.emplace_back( 26629: level, 26629: FileMetaData(file, file_path_id, file_size, smallest, largest, 26629: smallest_seqno, largest_seqno, marked_for_compaction, 26629: temperature, oldest_blob_file_number, oldest_ancester_time, 26629: file_creation_time, file_checksum, file_checksum_func_name, 26629: unique_id)); 26629: if (!HasLastSequence() || largest_seqno > GetLastSequence()) { 26629: SetLastSequence(largest_seqno); 26629: } 26629: } 26629: 26629: void AddFile(int level, const FileMetaData& f) { 26629: 26629: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: f.fd.smallest_seqno <= f.fd.largest_seqno 26629: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "f.fd.smallest_seqno <= f.fd.largest_seqno" 26629: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 444, __extension__ __PRETTY_FUNCTION__)) 26629: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: new_files_.emplace_back(level, f); 26629: if (!HasLastSequence() || f.fd.largest_seqno > GetLastSequence()) { 26629: SetLastSequence(f.fd.largest_seqno); 26629: } 26629: } 26629: 26629: 26629: using NewFiles = std::vector>; 26629: const NewFiles& GetNewFiles() const { return new_files_; } 26629: 26629: 26629: using CompactCursors = std::vector>; 26629: const CompactCursors& GetCompactCursors() const { return compact_cursors_; } 26629: void AddCompactCursor(int level, const InternalKey& cursor) { 26629: compact_cursors_.push_back(std::make_pair(level, cursor)); 26629: } 26629: void SetCompactCursors( 26629: const std::vector& compact_cursors_by_level) { 26629: compact_cursors_.clear(); 26629: compact_cursors_.reserve(compact_cursors_by_level.size()); 26629: for (int i = 0; i < (int)compact_cursors_by_level.size(); i++) { 26629: if (compact_cursors_by_level[i].Valid()) { 26629: compact_cursors_.push_back( 26629: std::make_pair(i, compact_cursors_by_level[i])); 26629: } 26629: } 26629: } 26629: 26629: 26629: void AddBlobFile(uint64_t blob_file_number, uint64_t total_blob_count, 26629: uint64_t total_blob_bytes, std::string checksum_method, 26629: std::string checksum_value) { 26629: blob_file_additions_.emplace_back( 26629: blob_file_number, total_blob_count, total_blob_bytes, 26629: std::move(checksum_method), std::move(checksum_value)); 26629: } 26629: 26629: void AddBlobFile(BlobFileAddition blob_file_addition) { 26629: blob_file_additions_.emplace_back(std::move(blob_file_addition)); 26629: } 26629: 26629: 26629: using BlobFileAdditions = std::vector; 26629: const BlobFileAdditions& GetBlobFileAdditions() const { 26629: return blob_file_additions_; 26629: } 26629: 26629: void SetBlobFileAdditions(BlobFileAdditions blob_file_additions) { 26629: 26629: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: blob_file_additions_.empty() 26629: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "blob_file_additions_.empty()" 26629: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 493, __extension__ __PRETTY_FUNCTION__)) 26629: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: blob_file_additions_ = std::move(blob_file_additions); 26629: } 26629: 26629: 26629: 26629: void AddBlobFileGarbage(uint64_t blob_file_number, 26629: uint64_t garbage_blob_count, 26629: uint64_t garbage_blob_bytes) { 26629: blob_file_garbages_.emplace_back(blob_file_number, garbage_blob_count, 26629: garbage_blob_bytes); 26629: } 26629: 26629: void AddBlobFileGarbage(BlobFileGarbage blob_file_garbage) { 26629: blob_file_garbages_.emplace_back(std::move(blob_file_garbage)); 26629: } 26629: 26629: 26629: using BlobFileGarbages = std::vector; 26629: const BlobFileGarbages& GetBlobFileGarbages() const { 26629: return blob_file_garbages_; 26629: } 26629: 26629: void SetBlobFileGarbages(BlobFileGarbages blob_file_garbages) { 26629: 26629: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: blob_file_garbages_.empty() 26629: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "blob_file_garbages_.empty()" 26629: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 517, __extension__ __PRETTY_FUNCTION__)) 26629: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: blob_file_garbages_ = std::move(blob_file_garbages); 26629: } 26629: 26629: 26629: 26629: void AddWal(WalNumber number, WalMetadata metadata = WalMetadata()) { 26629: 26629: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: NumEntries() == wal_additions_.size() 26629: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "NumEntries() == wal_additions_.size()" 26629: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 524, __extension__ __PRETTY_FUNCTION__)) 26629: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: wal_additions_.emplace_back(number, std::move(metadata)); 26629: } 26629: 26629: 26629: const WalAdditions& GetWalAdditions() const { return wal_additions_; } 26629: 26629: bool IsWalAddition() const { return !wal_additions_.empty(); } 26629: 26629: 26629: 26629: void DeleteWalsBefore(WalNumber number) { 26629: 26629: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: (NumEntries() == 1) == !wal_deletion_.IsEmpty() 26629: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "(NumEntries() == 1) == !wal_deletion_.IsEmpty()" 26629: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 536, __extension__ __PRETTY_FUNCTION__)) 26629: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: wal_deletion_ = WalDeletion(number); 26629: } 26629: 26629: const WalDeletion& GetWalDeletion() const { return wal_deletion_; } 26629: 26629: bool IsWalDeletion() const { return !wal_deletion_.IsEmpty(); } 26629: 26629: bool IsWalManipulation() const { 26629: size_t entries = NumEntries(); 26629: return (entries > 0) && ((entries == wal_additions_.size()) || 26629: (entries == !wal_deletion_.IsEmpty())); 26629: } 26629: 26629: 26629: size_t NumEntries() const { 26629: return new_files_.size() + deleted_files_.size() + 26629: blob_file_additions_.size() + blob_file_garbages_.size() + 26629: wal_additions_.size() + !wal_deletion_.IsEmpty(); 26629: } 26629: 26629: void SetColumnFamily(uint32_t column_family_id) { 26629: column_family_ = column_family_id; 26629: } 26629: uint32_t GetColumnFamily() const { return column_family_; } 26629: 26629: 26629: void AddColumnFamily(const std::string& name) { 26629: 26629: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: !is_column_family_drop_ 26629: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "!is_column_family_drop_" 26629: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 564, __extension__ __PRETTY_FUNCTION__)) 26629: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: 26629: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: !is_column_family_add_ 26629: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "!is_column_family_add_" 26629: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 565, __extension__ __PRETTY_FUNCTION__)) 26629: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: 26629: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: NumEntries() == 0 26629: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "NumEntries() == 0" 26629: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 566, __extension__ __PRETTY_FUNCTION__)) 26629: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: is_column_family_add_ = true; 26629: column_family_name_ = name; 26629: } 26629: 26629: 26629: void DropColumnFamily() { 26629: 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: !is_column_family_drop_ 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "!is_column_family_drop_" 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 573, __extension__ __PRETTY_FUNCTION__)) 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: 26629: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: !is_column_family_add_ 26629: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "!is_column_family_add_" 26629: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 574, __extension__ __PRETTY_FUNCTION__)) 26629: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: 26629: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: NumEntries() == 0 26629: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "NumEntries() == 0" 26629: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 575, __extension__ __PRETTY_FUNCTION__)) 26629: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: is_column_family_drop_ = true; 26629: } 26629: 26629: bool IsColumnFamilyManipulation() const { 26629: return is_column_family_add_ || is_column_family_drop_; 26629: } 26629: 26629: bool IsColumnFamilyAdd() const { return is_column_family_add_; } 26629: 26629: bool IsColumnFamilyDrop() const { return is_column_family_drop_; } 26629: 26629: void MarkAtomicGroup(uint32_t remaining_entries) { 26629: is_in_atomic_group_ = true; 26629: remaining_entries_ = remaining_entries; 26629: } 26629: bool IsInAtomicGroup() const { return is_in_atomic_group_; } 26629: uint32_t GetRemainingEntries() const { return remaining_entries_; } 26629: 26629: bool HasFullHistoryTsLow() const { return !full_history_ts_low_.empty(); } 26629: const std::string& GetFullHistoryTsLow() const { 26629: 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: HasFullHistoryTsLow() 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "HasFullHistoryTsLow()" 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 596, __extension__ __PRETTY_FUNCTION__)) 26629: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: return full_history_ts_low_; 26629: } 26629: void SetFullHistoryTsLow(std::string full_history_ts_low) { 26629: 26629: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: (static_cast ( 26629: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: !full_history_ts_low.empty() 26629: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: "!full_history_ts_low.empty()" 26629: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 26629: , "./db/version_edit.h", 600, __extension__ __PRETTY_FUNCTION__)) 26629: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 26629: ; 26629: full_history_ts_low_ = std::move(full_history_ts_low); 26629: } 26629: 26629: 26629: bool EncodeTo(std::string* dst) const; 26629: Status DecodeFrom(const Slice& src); 26629: 26629: std::string DebugString(bool hex_key = false) const; 26629: std::string DebugJSON(int edit_num, bool hex_key = false) const; 26629: 26629: private: 26629: friend class ReactiveVersionSet; 26629: friend class VersionEditHandlerBase; 26629: friend class ListColumnFamiliesHandler; 26629: friend class VersionEditHandler; 26629: friend class VersionEditHandlerPointInTime; 26629: friend class DumpManifestHandler; 26629: friend class VersionSet; 26629: friend class Version; 26629: friend class AtomicGroupReadBuffer; 26629: 26629: bool GetLevel(Slice* input, int* level, const char** msg); 26629: 26629: const char* DecodeNewFile4From(Slice* input); 26629: 26629: int max_level_ = 0; 26629: std::string db_id_; 26629: std::string comparator_; 26629: uint64_t log_number_ = 0; 26629: uint64_t prev_log_number_ = 0; 26629: uint64_t next_file_number_ = 0; 26629: uint32_t max_column_family_ = 0; 26629: 26629: uint64_t min_log_number_to_keep_ = 0; 26629: SequenceNumber last_sequence_ = 0; 26629: bool has_db_id_ = false; 26629: bool has_comparator_ = false; 26629: bool has_log_number_ = false; 26629: bool has_prev_log_number_ = false; 26629: bool has_next_file_number_ = false; 26629: bool has_max_column_family_ = false; 26629: bool has_min_log_number_to_keep_ = false; 26629: bool has_last_sequence_ = false; 26629: 26629: 26629: CompactCursors compact_cursors_; 26629: 26629: DeletedFiles deleted_files_; 26629: NewFiles new_files_; 26629: 26629: BlobFileAdditions blob_file_additions_; 26629: BlobFileGarbages blob_file_garbages_; 26629: 26629: WalAdditions wal_additions_; 26629: WalDeletion wal_deletion_; 26629: 26629: 26629: 26629: uint32_t column_family_ = 0; 26629: 26629: 26629: 26629: bool is_column_family_drop_ = false; 26629: bool is_column_family_add_ = false; 26629: std::string column_family_name_; 26629: 26629: bool is_in_atomic_group_ = false; 26629: uint32_t remaining_entries_ = 0; 26629: 26629: std::string full_history_ts_low_; 26629: }; 26629: 26629: } 26629: # 24 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 26629: 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 26629: namespace rocksdb { 26629: # 34 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 26629: using UnrefHandler = void (*)(void* ptr); 26629: # 44 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 26629: class ThreadLocalPtr { 26629: public: 26629: explicit ThreadLocalPtr(UnrefHandler handler = nullptr); 26629: 26629: ThreadLocalPtr(const ThreadLocalPtr&) = delete; 26629: ThreadLocalPtr& operator=(const ThreadLocalPtr&) = delete; 26629: 26629: ~ThreadLocalPtr(); 26629: 26629: 26629: void* Get() const; 26629: 26629: 26629: void Reset(void* ptr); 26629: 26629: 26629: void* Swap(void* ptr); 26629: 26629: 26629: 26629: 26629: 26629: bool CompareAndSwap(void* ptr, void*& expected); 26629: 26629: 26629: 26629: void Scrape(autovector* ptrs, void* const replacement); 26629: 26629: using FoldFunc = std::function; 26629: 26629: 26629: 26629: 26629: void Fold(FoldFunc func, void* res); 26629: 26629: 26629: 26629: static uint32_t TEST_PeekId(); 26629: # 90 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 26629: static void InitSingletons(); 26629: 26629: class StaticMeta; 26629: 26629: private: 26629: 26629: static StaticMeta* Instance(); 26629: 26629: const uint32_t id_; 26629: }; 26629: 26629: } 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 2 26629: # 30 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: namespace rocksdb { 26629: 26629: class Logger; 26629: # 41 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: class ConcurrentArena : public Allocator { 26629: public: 26629: 26629: 26629: 26629: 26629: explicit ConcurrentArena(size_t block_size = Arena::kMinBlockSize, 26629: AllocTracker* tracker = nullptr, 26629: size_t huge_page_size = 0); 26629: 26629: char* Allocate(size_t bytes) override { 26629: return AllocateImpl(bytes, false , 26629: [this, bytes]() { return arena_.Allocate(bytes); }); 26629: } 26629: 26629: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 26629: Logger* logger = nullptr) override { 26629: size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1; 26629: 26629: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 26629: (static_cast ( 26629: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0 26629: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: "rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0" 26629: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 26629: , "./memory/concurrent_arena.h", 59, __extension__ __PRETTY_FUNCTION__)) 26629: 26629: # 60 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: ; 26629: 26629: return AllocateImpl(rounded_up, huge_page_size != 0 , 26629: [this, rounded_up, huge_page_size, logger]() { 26629: return arena_.AllocateAligned(rounded_up, 26629: huge_page_size, logger); 26629: }); 26629: } 26629: 26629: size_t ApproximateMemoryUsage() const { 26629: std::unique_lock lock(arena_mutex_, std::defer_lock); 26629: lock.lock(); 26629: return arena_.ApproximateMemoryUsage() - ShardAllocatedAndUnused(); 26629: } 26629: 26629: size_t MemoryAllocatedBytes() const { 26629: return memory_allocated_bytes_.load(std::memory_order_relaxed); 26629: } 26629: 26629: size_t AllocatedAndUnused() const { 26629: return arena_allocated_and_unused_.load(std::memory_order_relaxed) + 26629: ShardAllocatedAndUnused(); 26629: } 26629: 26629: size_t IrregularBlockNum() const { 26629: return irregular_block_num_.load(std::memory_order_relaxed); 26629: } 26629: 26629: size_t BlockSize() const override { return arena_.BlockSize(); } 26629: 26629: private: 26629: struct Shard { 26629: char padding[40] ; 26629: mutable SpinMutex mutex; 26629: char* free_begin_; 26629: std::atomic allocated_and_unused_; 26629: 26629: Shard() : free_begin_(nullptr), allocated_and_unused_(0) {} 26629: }; 26629: 26629: static thread_local size_t tls_cpuid; 26629: 26629: char padding0[56] ; 26629: 26629: size_t shard_block_size_; 26629: 26629: CoreLocalArray shards_; 26629: 26629: Arena arena_; 26629: mutable SpinMutex arena_mutex_; 26629: std::atomic arena_allocated_and_unused_; 26629: std::atomic memory_allocated_bytes_; 26629: std::atomic irregular_block_num_; 26629: 26629: char padding1[56] ; 26629: 26629: Shard* Repick(); 26629: 26629: size_t ShardAllocatedAndUnused() const { 26629: size_t total = 0; 26629: for (size_t i = 0; i < shards_.Size(); ++i) { 26629: total += shards_.AccessAtCore(i)->allocated_and_unused_.load( 26629: std::memory_order_relaxed); 26629: } 26629: return total; 26629: } 26629: 26629: template 26629: char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { 26629: size_t cpu; 26629: 26629: 26629: 26629: 26629: 26629: std::unique_lock arena_lock(arena_mutex_, std::defer_lock); 26629: if (bytes > shard_block_size_ / 4 || force_arena || 26629: ((cpu = tls_cpuid) == 0 && 26629: !shards_.AccessAtCore(0)->allocated_and_unused_.load( 26629: std::memory_order_relaxed) && 26629: arena_lock.try_lock())) { 26629: if (!arena_lock.owns_lock()) { 26629: arena_lock.lock(); 26629: } 26629: auto rv = func(); 26629: Fixup(); 26629: return rv; 26629: } 26629: 26629: 26629: Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); 26629: if (!s->mutex.try_lock()) { 26629: s = Repick(); 26629: s->mutex.lock(); 26629: } 26629: std::unique_lock lock(s->mutex, std::adopt_lock); 26629: 26629: size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); 26629: if (avail < bytes) { 26629: 26629: std::lock_guard reload_lock(arena_mutex_); 26629: 26629: 26629: 26629: auto exact = arena_allocated_and_unused_.load(std::memory_order_relaxed); 26629: 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 26629: (static_cast ( 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: exact == arena_.AllocatedAndUnused() 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: "exact == arena_.AllocatedAndUnused()" 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 26629: , "./memory/concurrent_arena.h", 165, __extension__ __PRETTY_FUNCTION__)) 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: ; 26629: 26629: if (exact >= bytes && arena_.IsInInlineBlock()) { 26629: # 176 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 26629: auto rv = func(); 26629: Fixup(); 26629: return rv; 26629: } 26629: 26629: avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 26629: ? exact 26629: : shard_block_size_; 26629: s->free_begin_ = arena_.AllocateAligned(avail); 26629: Fixup(); 26629: } 26629: s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); 26629: 26629: char* rv; 26629: if ((bytes % sizeof(void*)) == 0) { 26629: 26629: rv = s->free_begin_; 26629: s->free_begin_ += bytes; 26629: } else { 26629: 26629: rv = s->free_begin_ + avail - bytes; 26629: } 26629: return rv; 26629: } 26629: 26629: void Fixup() { 26629: arena_allocated_and_unused_.store(arena_.AllocatedAndUnused(), 26629: std::memory_order_relaxed); 26629: memory_allocated_bytes_.store(arena_.MemoryAllocatedBytes(), 26629: std::memory_order_relaxed); 26629: irregular_block_num_.store(arena_.IrregularBlockNum(), 26629: std::memory_order_relaxed); 26629: } 26629: 26629: ConcurrentArena(const ConcurrentArena&) = delete; 26629: ConcurrentArena& operator=(const ConcurrentArena&) = delete; 26629: }; 26629: 26629: } 26629: # 26 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/block_cache_trace_writer.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/trace_reader_writer.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/trace_reader_writer.h" 26629: class TraceWriter { 26629: public: 26629: virtual ~TraceWriter() = default; 26629: 26629: virtual Status Write(const Slice& data) = 0; 26629: virtual Status Close() = 0; 26629: virtual uint64_t GetFileSize() = 0; 26629: }; 26629: 26629: 26629: 26629: class TraceReader { 26629: public: 26629: virtual ~TraceReader() = default; 26629: 26629: virtual Status Read(std::string* data) = 0; 26629: virtual Status Close() = 0; 26629: 26629: 26629: 26629: virtual Status Reset() = 0; 26629: }; 26629: 26629: 26629: 26629: Status NewFileTraceWriter(Env* env, const EnvOptions& env_options, 26629: const std::string& trace_filename, 26629: std::unique_ptr* trace_writer); 26629: Status NewFileTraceReader(Env* env, const EnvOptions& env_options, 26629: const std::string& trace_filename, 26629: std::unique_ptr* trace_reader); 26629: 26629: } 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/block_cache_trace_writer.h" 2 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: struct BlockCacheTraceRecord { 26629: 26629: uint64_t access_timestamp = 0; 26629: 26629: 26629: 26629: 26629: std::string block_key; 26629: 26629: 26629: TraceType block_type = TraceType::kTraceMax; 26629: 26629: 26629: uint64_t block_size = 0; 26629: 26629: 26629: 26629: 26629: uint64_t cf_id = 0; 26629: 26629: 26629: std::string cf_name; 26629: 26629: 26629: uint32_t level = 0; 26629: 26629: 26629: uint64_t sst_fd_number = 0; 26629: 26629: 26629: 26629: 26629: TableReaderCaller caller = TableReaderCaller::kMaxBlockCacheLookupCaller; 26629: 26629: 26629: bool is_cache_hit = false; 26629: 26629: 26629: bool no_insert = false; 26629: 26629: 26629: 26629: 26629: uint64_t get_id = kReservedGetId; 26629: 26629: 26629: bool get_from_user_specified_snapshot = false; 26629: 26629: 26629: std::string referenced_key; 26629: 26629: 26629: 26629: 26629: uint64_t referenced_data_size = 0; 26629: 26629: 26629: uint64_t num_keys_in_block = 0; 26629: 26629: 26629: bool referenced_key_exist_in_block = false; 26629: 26629: static const uint64_t kReservedGetId; 26629: 26629: BlockCacheTraceRecord() {} 26629: 26629: BlockCacheTraceRecord(uint64_t _access_timestamp, std::string _block_key, 26629: TraceType _block_type, uint64_t _block_size, 26629: uint64_t _cf_id, std::string _cf_name, uint32_t _level, 26629: uint64_t _sst_fd_number, TableReaderCaller _caller, 26629: bool _is_cache_hit, bool _no_insert, uint64_t _get_id, 26629: bool _get_from_user_specified_snapshot = false, 26629: std::string _referenced_key = "", 26629: uint64_t _referenced_data_size = 0, 26629: uint64_t _num_keys_in_block = 0, 26629: bool _referenced_key_exist_in_block = false) 26629: : access_timestamp(_access_timestamp), 26629: block_key(_block_key), 26629: block_type(_block_type), 26629: block_size(_block_size), 26629: cf_id(_cf_id), 26629: cf_name(_cf_name), 26629: level(_level), 26629: sst_fd_number(_sst_fd_number), 26629: caller(_caller), 26629: is_cache_hit(_is_cache_hit), 26629: no_insert(_no_insert), 26629: get_id(_get_id), 26629: get_from_user_specified_snapshot(_get_from_user_specified_snapshot), 26629: referenced_key(_referenced_key), 26629: referenced_data_size(_referenced_data_size), 26629: num_keys_in_block(_num_keys_in_block), 26629: referenced_key_exist_in_block(_referenced_key_exist_in_block) {} 26629: }; 26629: 26629: 26629: struct BlockCacheTraceOptions { 26629: 26629: 26629: uint64_t sampling_frequency = 1; 26629: }; 26629: 26629: 26629: struct BlockCacheTraceWriterOptions { 26629: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 26629: }; 26629: 26629: 26629: 26629: 26629: class BlockCacheTraceWriter { 26629: public: 26629: virtual ~BlockCacheTraceWriter() {} 26629: 26629: 26629: virtual Status WriteBlockAccess(const BlockCacheTraceRecord& record, 26629: const Slice& block_key, const Slice& cf_name, 26629: const Slice& referenced_key) = 0; 26629: 26629: 26629: 26629: virtual Status WriteHeader() = 0; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: std::unique_ptr NewBlockCacheTraceWriter( 26629: SystemClock* clock, const BlockCacheTraceWriterOptions& trace_options, 26629: std::unique_ptr&& trace_writer); 26629: 26629: } 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 2 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct FileStorageInfo { 26629: 26629: std::string relative_filename; 26629: 26629: 26629: std::string directory; 26629: 26629: 26629: 26629: uint64_t file_number = 0; 26629: 26629: FileType file_type = kTempFile; 26629: 26629: 26629: uint64_t size = 0; 26629: 26629: 26629: Temperature temperature = Temperature::kUnknown; 26629: 26629: 26629: 26629: 26629: 26629: std::string file_checksum; 26629: 26629: 26629: 26629: 26629: 26629: std::string file_checksum_func_name; 26629: }; 26629: 26629: 26629: 26629: struct LiveFileStorageInfo : public FileStorageInfo { 26629: 26629: 26629: 26629: 26629: 26629: std::string replacement_contents; 26629: 26629: 26629: 26629: 26629: bool trim_to_size = false; 26629: }; 26629: 26629: 26629: 26629: struct SstFileMetaData : public FileStorageInfo { 26629: SstFileMetaData() { file_type = kTableFile; } 26629: 26629: SstFileMetaData(const std::string& _file_name, uint64_t _file_number, 26629: const std::string& _directory, uint64_t _size, 26629: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno, 26629: const std::string& _smallestkey, 26629: const std::string& _largestkey, uint64_t _num_reads_sampled, 26629: bool _being_compacted, Temperature _temperature, 26629: uint64_t _oldest_blob_file_number, 26629: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 26629: std::string& _file_checksum, 26629: std::string& _file_checksum_func_name) 26629: : smallest_seqno(_smallest_seqno), 26629: largest_seqno(_largest_seqno), 26629: smallestkey(_smallestkey), 26629: largestkey(_largestkey), 26629: num_reads_sampled(_num_reads_sampled), 26629: being_compacted(_being_compacted), 26629: num_entries(0), 26629: num_deletions(0), 26629: oldest_blob_file_number(_oldest_blob_file_number), 26629: oldest_ancester_time(_oldest_ancester_time), 26629: file_creation_time(_file_creation_time) { 26629: if (!_file_name.empty()) { 26629: if (_file_name[0] == '/') { 26629: relative_filename = _file_name.substr(1); 26629: name = _file_name; 26629: } else { 26629: relative_filename = _file_name; 26629: name = std::string("/") + _file_name; 26629: } 26629: 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 26629: (static_cast ( 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: relative_filename.size() + 1 == name.size() 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: "relative_filename.size() + 1 == name.size()" 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 26629: , "./include/rocksdb/metadata.h", 106, __extension__ __PRETTY_FUNCTION__)) 26629: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: ; 26629: 26629: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 26629: (static_cast ( 26629: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: relative_filename[0] != '/' 26629: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: "relative_filename[0] != '/'" 26629: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 26629: , "./include/rocksdb/metadata.h", 107, __extension__ __PRETTY_FUNCTION__)) 26629: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: ; 26629: 26629: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 26629: (static_cast ( 26629: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: name[0] == '/' 26629: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: "name[0] == '/'" 26629: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 26629: , "./include/rocksdb/metadata.h", 108, __extension__ __PRETTY_FUNCTION__)) 26629: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: ; 26629: } 26629: directory = _directory; 26629: db_path = _directory; 26629: file_number = _file_number; 26629: file_type = kTableFile; 26629: size = _size; 26629: temperature = _temperature; 26629: file_checksum = _file_checksum; 26629: file_checksum_func_name = _file_checksum_func_name; 26629: } 26629: 26629: SequenceNumber smallest_seqno = 0; 26629: SequenceNumber largest_seqno = 0; 26629: std::string smallestkey; 26629: std::string largestkey; 26629: uint64_t num_reads_sampled = 0; 26629: bool being_compacted = 26629: false; 26629: 26629: uint64_t num_entries = 0; 26629: uint64_t num_deletions = 0; 26629: 26629: uint64_t oldest_blob_file_number = 0; 26629: # 140 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 26629: uint64_t oldest_ancester_time = 0; 26629: 26629: 26629: uint64_t file_creation_time = 0; 26629: 26629: 26629: 26629: 26629: std::string name; 26629: 26629: 26629: std::string db_path; 26629: }; 26629: 26629: 26629: struct LiveFileMetaData : SstFileMetaData { 26629: std::string column_family_name; 26629: int level; 26629: LiveFileMetaData() : column_family_name(), level(0) {} 26629: }; 26629: 26629: 26629: struct BlobMetaData { 26629: BlobMetaData() 26629: : blob_file_number(0), 26629: blob_file_size(0), 26629: total_blob_count(0), 26629: total_blob_bytes(0), 26629: garbage_blob_count(0), 26629: garbage_blob_bytes(0) {} 26629: 26629: BlobMetaData(uint64_t _file_number, const std::string& _file_name, 26629: const std::string& _file_path, uint64_t _file_size, 26629: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 26629: uint64_t _garbage_blob_count, uint64_t _garbage_blob_bytes, 26629: const std::string& _file_checksum, 26629: const std::string& _file_checksum_func_name) 26629: : blob_file_number(_file_number), 26629: blob_file_name(_file_name), 26629: blob_file_path(_file_path), 26629: blob_file_size(_file_size), 26629: total_blob_count(_total_blob_count), 26629: total_blob_bytes(_total_blob_bytes), 26629: garbage_blob_count(_garbage_blob_count), 26629: garbage_blob_bytes(_garbage_blob_bytes), 26629: checksum_method(_file_checksum), 26629: checksum_value(_file_checksum_func_name) {} 26629: uint64_t blob_file_number; 26629: std::string blob_file_name; 26629: std::string blob_file_path; 26629: uint64_t blob_file_size; 26629: uint64_t total_blob_count; 26629: uint64_t total_blob_bytes; 26629: uint64_t garbage_blob_count; 26629: uint64_t garbage_blob_bytes; 26629: std::string checksum_method; 26629: std::string checksum_value; 26629: }; 26629: 26629: 26629: struct LevelMetaData { 26629: LevelMetaData(int _level, uint64_t _size, 26629: const std::vector&& _files) 26629: : level(_level), size(_size), files(_files) {} 26629: 26629: 26629: const int level; 26629: 26629: 26629: const uint64_t size; 26629: 26629: const std::vector files; 26629: }; 26629: 26629: 26629: struct ColumnFamilyMetaData { 26629: ColumnFamilyMetaData() : size(0), file_count(0), name("") {} 26629: ColumnFamilyMetaData(const std::string& _name, uint64_t _size, 26629: const std::vector&& _levels) 26629: : size(_size), name(_name), levels(_levels) {} 26629: 26629: 26629: 26629: uint64_t size; 26629: 26629: size_t file_count; 26629: 26629: std::string name; 26629: 26629: std::vector levels; 26629: 26629: 26629: uint64_t blob_file_size = 0; 26629: 26629: size_t blob_file_count = 0; 26629: 26629: std::vector blob_files; 26629: }; 26629: 26629: 26629: 26629: struct ExportImportFilesMetaData { 26629: std::string db_comparator_name; 26629: std::vector files; 26629: }; 26629: } 26629: # 24 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/snapshot.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class DB; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class Snapshot { 26629: public: 26629: virtual SequenceNumber GetSequenceNumber() const = 0; 26629: 26629: 26629: 26629: virtual int64_t GetUnixTime() const = 0; 26629: 26629: virtual uint64_t GetTimestamp() const = 0; 26629: 26629: protected: 26629: virtual ~Snapshot(); 26629: }; 26629: 26629: 26629: 26629: 26629: class ManagedSnapshot { 26629: public: 26629: explicit ManagedSnapshot(DB* db); 26629: 26629: 26629: ManagedSnapshot(DB* db, const Snapshot* _snapshot); 26629: 26629: ~ManagedSnapshot(); 26629: 26629: const Snapshot* snapshot(); 26629: 26629: private: 26629: DB* db_; 26629: const Snapshot* snapshot_; 26629: }; 26629: 26629: } 26629: # 26 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/sst_file_writer.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 24 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/sst_file_writer.h" 26629: namespace rocksdb { 26629: 26629: class Comparator; 26629: 26629: 26629: 26629: struct ExternalSstFileInfo { 26629: ExternalSstFileInfo() 26629: : file_path(""), 26629: smallest_key(""), 26629: largest_key(""), 26629: smallest_range_del_key(""), 26629: largest_range_del_key(""), 26629: file_checksum(""), 26629: file_checksum_func_name(""), 26629: sequence_number(0), 26629: file_size(0), 26629: num_entries(0), 26629: num_range_del_entries(0), 26629: version(0) {} 26629: 26629: ExternalSstFileInfo(const std::string& _file_path, 26629: const std::string& _smallest_key, 26629: const std::string& _largest_key, 26629: SequenceNumber _sequence_number, uint64_t _file_size, 26629: int32_t _num_entries, int32_t _version) 26629: : file_path(_file_path), 26629: smallest_key(_smallest_key), 26629: largest_key(_largest_key), 26629: smallest_range_del_key(""), 26629: largest_range_del_key(""), 26629: file_checksum(""), 26629: file_checksum_func_name(""), 26629: sequence_number(_sequence_number), 26629: file_size(_file_size), 26629: num_entries(_num_entries), 26629: num_range_del_entries(0), 26629: version(_version) {} 26629: 26629: std::string file_path; 26629: std::string smallest_key; 26629: std::string largest_key; 26629: std::string 26629: smallest_range_del_key; 26629: std::string largest_range_del_key; 26629: std::string file_checksum; 26629: std::string file_checksum_func_name; 26629: SequenceNumber sequence_number; 26629: uint64_t file_size; 26629: uint64_t num_entries; 26629: uint64_t num_range_del_entries; 26629: int32_t version; 26629: }; 26629: 26629: 26629: 26629: class SstFileWriter { 26629: public: 26629: # 92 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/sst_file_writer.h" 26629: SstFileWriter(const EnvOptions& env_options, const Options& options, 26629: ColumnFamilyHandle* column_family = nullptr, 26629: bool invalidate_page_cache = true, 26629: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 26629: bool skip_filters = false) 26629: : SstFileWriter(env_options, options, options.comparator, column_family, 26629: invalidate_page_cache, io_priority, skip_filters) {} 26629: 26629: 26629: SstFileWriter(const EnvOptions& env_options, const Options& options, 26629: const Comparator* user_comparator, 26629: ColumnFamilyHandle* column_family = nullptr, 26629: bool invalidate_page_cache = true, 26629: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 26629: bool skip_filters = false); 26629: 26629: ~SstFileWriter(); 26629: 26629: 26629: Status Open(const std::string& file_path); 26629: 26629: 26629: 26629: 26629: __attribute__((__deprecated__)) Status Add(const Slice& user_key, const Slice& value); 26629: 26629: 26629: 26629: 26629: Status Put(const Slice& user_key, const Slice& value); 26629: 26629: 26629: 26629: 26629: 26629: 26629: Status Put(const Slice& user_key, const Slice& timestamp, const Slice& value); 26629: 26629: 26629: 26629: 26629: Status Merge(const Slice& user_key, const Slice& value); 26629: 26629: 26629: 26629: 26629: Status Delete(const Slice& user_key); 26629: 26629: 26629: 26629: 26629: 26629: 26629: Status Delete(const Slice& user_key, const Slice& timestamp); 26629: 26629: 26629: 26629: Status DeleteRange(const Slice& begin_key, const Slice& end_key); 26629: 26629: 26629: 26629: 26629: 26629: Status DeleteRange(const Slice& begin_key, const Slice& end_key, 26629: const Slice& timestamp); 26629: 26629: 26629: 26629: 26629: 26629: Status Finish(ExternalSstFileInfo* file_info = nullptr); 26629: 26629: 26629: uint64_t FileSize(); 26629: 26629: private: 26629: void InvalidatePageCache(bool closing); 26629: struct Rep; 26629: std::unique_ptr rep_; 26629: }; 26629: } 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/transaction_log.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 1 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 26629: 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch_base.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch_base.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: class Status; 26629: class ColumnFamilyHandle; 26629: class WriteBatch; 26629: struct SliceParts; 26629: 26629: 26629: 26629: 26629: class WriteBatchBase { 26629: public: 26629: virtual ~WriteBatchBase() {} 26629: 26629: 26629: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& value) = 0; 26629: virtual Status Put(const Slice& key, const Slice& value) = 0; 26629: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& ts, const Slice& value) = 0; 26629: 26629: 26629: 26629: 26629: virtual Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 26629: const SliceParts& value); 26629: virtual Status Put(const SliceParts& key, const SliceParts& value); 26629: 26629: 26629: 26629: virtual Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 26629: const WideColumns& columns) = 0; 26629: 26629: 26629: 26629: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& value) = 0; 26629: virtual Status Merge(const Slice& key, const Slice& value) = 0; 26629: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& ts, const Slice& value) = 0; 26629: 26629: 26629: virtual Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 26629: const SliceParts& value); 26629: virtual Status Merge(const SliceParts& key, const SliceParts& value); 26629: 26629: 26629: virtual Status Delete(ColumnFamilyHandle* column_family, 26629: const Slice& key) = 0; 26629: virtual Status Delete(const Slice& key) = 0; 26629: virtual Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& ts) = 0; 26629: 26629: 26629: virtual Status Delete(ColumnFamilyHandle* column_family, 26629: const SliceParts& key); 26629: virtual Status Delete(const SliceParts& key); 26629: 26629: 26629: 26629: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 26629: const Slice& key) = 0; 26629: virtual Status SingleDelete(const Slice& key) = 0; 26629: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 26629: const Slice& key, const Slice& ts) = 0; 26629: 26629: 26629: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 26629: const SliceParts& key); 26629: virtual Status SingleDelete(const SliceParts& key); 26629: 26629: 26629: 26629: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 26629: const Slice& begin_key, const Slice& end_key) = 0; 26629: virtual Status DeleteRange(const Slice& begin_key, const Slice& end_key) = 0; 26629: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 26629: const Slice& begin_key, const Slice& end_key, 26629: const Slice& ts) = 0; 26629: 26629: 26629: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 26629: const SliceParts& begin_key, 26629: const SliceParts& end_key); 26629: virtual Status DeleteRange(const SliceParts& begin_key, 26629: const SliceParts& end_key); 26629: # 114 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch_base.h" 26629: virtual Status PutLogData(const Slice& blob) = 0; 26629: 26629: 26629: virtual void Clear() = 0; 26629: 26629: 26629: 26629: 26629: virtual WriteBatch* GetWriteBatch() = 0; 26629: 26629: 26629: 26629: virtual void SetSavePoint() = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual Status RollbackToSavePoint() = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual Status PopSavePoint() = 0; 26629: 26629: 26629: virtual void SetMaxBytes(size_t max_bytes) = 0; 26629: }; 26629: 26629: } 26629: # 37 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: class ColumnFamilyHandle; 26629: struct SavePoints; 26629: struct SliceParts; 26629: 26629: struct SavePoint { 26629: size_t size; 26629: int count; 26629: uint32_t content_flags; 26629: 26629: SavePoint() : size(0), count(0), content_flags(0) {} 26629: 26629: SavePoint(size_t _size, int _count, uint32_t _flags) 26629: : size(_size), count(_count), content_flags(_flags) {} 26629: 26629: void clear() { 26629: size = 0; 26629: count = 0; 26629: content_flags = 0; 26629: } 26629: 26629: bool is_cleared() const { return (size | count | content_flags) == 0; } 26629: }; 26629: 26629: class WriteBatch : public WriteBatchBase { 26629: public: 26629: explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0) 26629: : WriteBatch(reserved_bytes, max_bytes, 0, 0) {} 26629: 26629: 26629: 26629: 26629: explicit WriteBatch(size_t reserved_bytes, size_t max_bytes, 26629: size_t protection_bytes_per_key, size_t default_cf_ts_sz); 26629: ~WriteBatch() override; 26629: 26629: using WriteBatchBase::Put; 26629: 26629: 26629: 26629: 26629: 26629: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& value) override; 26629: Status Put(const Slice& key, const Slice& value) override { 26629: return Put(nullptr, key, value); 26629: } 26629: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& ts, const Slice& value) override; 26629: # 97 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 26629: Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 26629: const SliceParts& value) override; 26629: Status Put(const SliceParts& key, const SliceParts& value) override { 26629: return Put(nullptr, key, value); 26629: } 26629: 26629: 26629: 26629: using WriteBatchBase::PutEntity; 26629: Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 26629: const WideColumns& columns) override; 26629: 26629: using WriteBatchBase::Delete; 26629: 26629: 26629: 26629: 26629: 26629: Status Delete(ColumnFamilyHandle* column_family, const Slice& key) override; 26629: Status Delete(const Slice& key) override { return Delete(nullptr, key); } 26629: Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& ts) override; 26629: 26629: 26629: 26629: 26629: 26629: 26629: Status Delete(ColumnFamilyHandle* column_family, 26629: const SliceParts& key) override; 26629: Status Delete(const SliceParts& key) override { return Delete(nullptr, key); } 26629: 26629: using WriteBatchBase::SingleDelete; 26629: 26629: Status SingleDelete(ColumnFamilyHandle* column_family, 26629: const Slice& key) override; 26629: Status SingleDelete(const Slice& key) override { 26629: return SingleDelete(nullptr, key); 26629: } 26629: Status SingleDelete(ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& ts) override; 26629: 26629: 26629: Status SingleDelete(ColumnFamilyHandle* column_family, 26629: const SliceParts& key) override; 26629: Status SingleDelete(const SliceParts& key) override { 26629: return SingleDelete(nullptr, key); 26629: } 26629: 26629: using WriteBatchBase::DeleteRange; 26629: 26629: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 26629: const Slice& end_key) override; 26629: Status DeleteRange(const Slice& begin_key, const Slice& end_key) override { 26629: return DeleteRange(nullptr, begin_key, end_key); 26629: } 26629: 26629: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 26629: const Slice& end_key, const Slice& ts) override; 26629: 26629: 26629: Status DeleteRange(ColumnFamilyHandle* column_family, 26629: const SliceParts& begin_key, 26629: const SliceParts& end_key) override; 26629: Status DeleteRange(const SliceParts& begin_key, 26629: const SliceParts& end_key) override { 26629: return DeleteRange(nullptr, begin_key, end_key); 26629: } 26629: 26629: using WriteBatchBase::Merge; 26629: 26629: 26629: Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& value) override; 26629: Status Merge(const Slice& key, const Slice& value) override { 26629: return Merge(nullptr, key, value); 26629: } 26629: Status Merge(ColumnFamilyHandle* , const Slice& , 26629: const Slice& , const Slice& ) override { 26629: return Status::NotSupported( 26629: "Merge does not support user-defined timestamp"); 26629: } 26629: 26629: 26629: Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 26629: const SliceParts& value) override; 26629: Status Merge(const SliceParts& key, const SliceParts& value) override { 26629: return Merge(nullptr, key, value); 26629: } 26629: 26629: using WriteBatchBase::PutLogData; 26629: # 198 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 26629: Status PutLogData(const Slice& blob) override; 26629: 26629: using WriteBatchBase::Clear; 26629: 26629: void Clear() override; 26629: 26629: 26629: 26629: void SetSavePoint() override; 26629: 26629: 26629: 26629: 26629: 26629: 26629: Status RollbackToSavePoint() override; 26629: 26629: 26629: 26629: 26629: 26629: Status PopSavePoint() override; 26629: 26629: 26629: class Handler { 26629: public: 26629: virtual ~Handler(); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status PutCF(uint32_t column_family_id, const Slice& key, 26629: const Slice& value) { 26629: if (column_family_id == 0) { 26629: 26629: 26629: 26629: Put(key, value); 26629: return Status::OK(); 26629: } 26629: return Status::InvalidArgument( 26629: "non-default column family and PutCF not implemented"); 26629: } 26629: virtual void Put(const Slice& , const Slice& ) {} 26629: 26629: virtual Status PutEntityCF(uint32_t , 26629: const Slice& , 26629: const Slice& ) { 26629: return Status::NotSupported("PutEntityCF not implemented"); 26629: } 26629: 26629: virtual Status DeleteCF(uint32_t column_family_id, const Slice& key) { 26629: if (column_family_id == 0) { 26629: Delete(key); 26629: return Status::OK(); 26629: } 26629: return Status::InvalidArgument( 26629: "non-default column family and DeleteCF not implemented"); 26629: } 26629: virtual void Delete(const Slice& ) {} 26629: 26629: virtual Status SingleDeleteCF(uint32_t column_family_id, const Slice& key) { 26629: if (column_family_id == 0) { 26629: SingleDelete(key); 26629: return Status::OK(); 26629: } 26629: return Status::InvalidArgument( 26629: "non-default column family and SingleDeleteCF not implemented"); 26629: } 26629: virtual void SingleDelete(const Slice& ) {} 26629: 26629: virtual Status DeleteRangeCF(uint32_t , 26629: const Slice& , 26629: const Slice& ) { 26629: return Status::InvalidArgument("DeleteRangeCF not implemented"); 26629: } 26629: 26629: virtual Status MergeCF(uint32_t column_family_id, const Slice& key, 26629: const Slice& value) { 26629: if (column_family_id == 0) { 26629: Merge(key, value); 26629: return Status::OK(); 26629: } 26629: return Status::InvalidArgument( 26629: "non-default column family and MergeCF not implemented"); 26629: } 26629: virtual void Merge(const Slice& , const Slice& ) {} 26629: 26629: virtual Status PutBlobIndexCF(uint32_t , 26629: const Slice& , 26629: const Slice& ) { 26629: return Status::InvalidArgument("PutBlobIndexCF not implemented"); 26629: } 26629: 26629: 26629: virtual void LogData(const Slice& blob); 26629: 26629: virtual Status MarkBeginPrepare(bool = false) { 26629: return Status::InvalidArgument("MarkBeginPrepare() handler not defined."); 26629: } 26629: 26629: virtual Status MarkEndPrepare(const Slice& ) { 26629: return Status::InvalidArgument("MarkEndPrepare() handler not defined."); 26629: } 26629: 26629: virtual Status MarkNoop(bool ) { 26629: return Status::InvalidArgument("MarkNoop() handler not defined."); 26629: } 26629: 26629: virtual Status MarkRollback(const Slice& ) { 26629: return Status::InvalidArgument( 26629: "MarkRollbackPrepare() handler not defined."); 26629: } 26629: 26629: virtual Status MarkCommit(const Slice& ) { 26629: return Status::InvalidArgument("MarkCommit() handler not defined."); 26629: } 26629: 26629: virtual Status MarkCommitWithTimestamp(const Slice& , 26629: const Slice& ) { 26629: return Status::InvalidArgument( 26629: "MarkCommitWithTimestamp() handler not defined."); 26629: } 26629: 26629: 26629: 26629: 26629: virtual bool Continue(); 26629: 26629: protected: 26629: friend class WriteBatchInternal; 26629: enum class OptionState { 26629: kUnknown, 26629: kDisabled, 26629: kEnabled, 26629: }; 26629: virtual OptionState WriteAfterCommit() const { 26629: return OptionState::kUnknown; 26629: } 26629: virtual OptionState WriteBeforePrepare() const { 26629: return OptionState::kUnknown; 26629: } 26629: }; 26629: Status Iterate(Handler* handler) const; 26629: 26629: 26629: const std::string& Data() const { return rep_; } 26629: 26629: 26629: size_t GetDataSize() const { return rep_.size(); } 26629: 26629: 26629: uint32_t Count() const; 26629: 26629: 26629: bool HasPut() const; 26629: 26629: 26629: bool HasPutEntity() const; 26629: 26629: 26629: bool HasDelete() const; 26629: 26629: 26629: bool HasSingleDelete() const; 26629: 26629: 26629: bool HasDeleteRange() const; 26629: 26629: 26629: bool HasMerge() const; 26629: 26629: 26629: bool HasBeginPrepare() const; 26629: 26629: 26629: bool HasEndPrepare() const; 26629: 26629: 26629: bool HasCommit() const; 26629: 26629: 26629: bool HasRollback() const; 26629: # 403 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 26629: Status UpdateTimestamps(const Slice& ts, 26629: std::function ts_sz_func); 26629: 26629: 26629: 26629: 26629: 26629: Status VerifyChecksum() const; 26629: 26629: using WriteBatchBase::GetWriteBatch; 26629: WriteBatch* GetWriteBatch() override { return this; } 26629: 26629: 26629: explicit WriteBatch(const std::string& rep); 26629: explicit WriteBatch(std::string&& rep); 26629: 26629: WriteBatch(const WriteBatch& src); 26629: WriteBatch(WriteBatch&& src) noexcept; 26629: WriteBatch& operator=(const WriteBatch& src); 26629: WriteBatch& operator=(WriteBatch&& src); 26629: 26629: 26629: 26629: void MarkWalTerminationPoint(); 26629: const SavePoint& GetWalTerminationPoint() const { return wal_term_point_; } 26629: 26629: void SetMaxBytes(size_t max_bytes) override { max_bytes_ = max_bytes; } 26629: 26629: struct ProtectionInfo; 26629: size_t GetProtectionBytesPerKey() const; 26629: 26629: private: 26629: friend class WriteBatchInternal; 26629: friend class LocalSavePoint; 26629: 26629: 26629: 26629: friend class WriteBatchWithIndex; 26629: std::unique_ptr save_points_; 26629: 26629: 26629: 26629: 26629: SavePoint wal_term_point_; 26629: 26629: 26629: 26629: 26629: 26629: bool is_latest_persistent_state_ = false; 26629: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 26629: bool needs_in_place_update_ts_ = false; 26629: 26629: 26629: 26629: bool has_key_with_ts_ = false; 26629: 26629: 26629: mutable std::atomic content_flags_; 26629: 26629: 26629: uint32_t ComputeContentFlags() const; 26629: 26629: 26629: size_t max_bytes_; 26629: 26629: std::unique_ptr prot_info_; 26629: 26629: size_t default_cf_ts_sz_ = 0; 26629: 26629: protected: 26629: std::string rep_; 26629: }; 26629: 26629: } 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/transaction_log.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class LogFile; 26629: using VectorLogPtr = std::vector>; 26629: 26629: enum WalFileType { 26629: 26629: 26629: 26629: 26629: 26629: 26629: kArchivedLogFile = 0, 26629: 26629: 26629: kAliveLogFile = 1 26629: }; 26629: 26629: class LogFile { 26629: public: 26629: LogFile() {} 26629: virtual ~LogFile() {} 26629: 26629: 26629: 26629: 26629: virtual std::string PathName() const = 0; 26629: 26629: 26629: 26629: virtual uint64_t LogNumber() const = 0; 26629: 26629: 26629: virtual WalFileType Type() const = 0; 26629: 26629: 26629: virtual SequenceNumber StartSequence() const = 0; 26629: 26629: 26629: virtual uint64_t SizeFileBytes() const = 0; 26629: }; 26629: 26629: struct BatchResult { 26629: SequenceNumber sequence = 0; 26629: std::unique_ptr writeBatchPtr; 26629: 26629: 26629: 26629: 26629: BatchResult() {} 26629: 26629: ~BatchResult() {} 26629: 26629: BatchResult(const BatchResult&) = delete; 26629: 26629: BatchResult& operator=(const BatchResult&) = delete; 26629: 26629: BatchResult(BatchResult&& bResult) 26629: : sequence(std::move(bResult.sequence)), 26629: writeBatchPtr(std::move(bResult.writeBatchPtr)) {} 26629: 26629: BatchResult& operator=(BatchResult&& bResult) { 26629: sequence = std::move(bResult.sequence); 26629: writeBatchPtr = std::move(bResult.writeBatchPtr); 26629: return *this; 26629: } 26629: }; 26629: 26629: 26629: 26629: 26629: class TransactionLogIterator { 26629: public: 26629: TransactionLogIterator() {} 26629: virtual ~TransactionLogIterator() {} 26629: 26629: 26629: 26629: 26629: virtual bool Valid() = 0; 26629: 26629: 26629: 26629: virtual void Next() = 0; 26629: 26629: 26629: 26629: virtual Status status() = 0; 26629: 26629: 26629: 26629: 26629: virtual BatchResult GetBatch() = 0; 26629: 26629: 26629: struct ReadOptions { 26629: 26629: 26629: 26629: bool verify_checksums_; 26629: 26629: ReadOptions() : verify_checksums_(true) {} 26629: 26629: explicit ReadOptions(bool verify_checksums) 26629: : verify_checksums_(verify_checksums) {} 26629: }; 26629: }; 26629: } 26629: # 29 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 2 26629: # 44 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: namespace rocksdb { 26629: 26629: struct ColumnFamilyOptions; 26629: struct CompactionOptions; 26629: struct CompactRangeOptions; 26629: struct DBOptions; 26629: struct ExternalSstFileInfo; 26629: struct FlushOptions; 26629: struct Options; 26629: struct ReadOptions; 26629: struct TableProperties; 26629: struct WriteOptions; 26629: 26629: 26629: 26629: class Env; 26629: class EventListener; 26629: class FileSystem; 26629: 26629: class Replayer; 26629: 26629: class StatsHistoryIterator; 26629: 26629: class TraceReader; 26629: class TraceWriter; 26629: 26629: class WriteBatch; 26629: 26629: extern const std::string kDefaultColumnFamilyName; 26629: extern const std::string kPersistentStatsColumnFamilyName; 26629: struct ColumnFamilyDescriptor { 26629: std::string name; 26629: ColumnFamilyOptions options; 26629: ColumnFamilyDescriptor() 26629: : name(kDefaultColumnFamilyName), options(ColumnFamilyOptions()) {} 26629: ColumnFamilyDescriptor(const std::string& _name, 26629: const ColumnFamilyOptions& _options) 26629: : name(_name), options(_options) {} 26629: }; 26629: 26629: class ColumnFamilyHandle { 26629: public: 26629: virtual ~ColumnFamilyHandle() {} 26629: 26629: virtual const std::string& GetName() const = 0; 26629: 26629: virtual uint32_t GetID() const = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status GetDescriptor(ColumnFamilyDescriptor* desc) = 0; 26629: 26629: 26629: virtual const Comparator* GetComparator() const = 0; 26629: }; 26629: 26629: static const int kMajorVersion = 7; 26629: static const int kMinorVersion = 8; 26629: 26629: 26629: struct Range { 26629: Slice start; 26629: Slice limit; 26629: 26629: Range() {} 26629: Range(const Slice& s, const Slice& l) : start(s), limit(l) {} 26629: }; 26629: 26629: struct RangePtr { 26629: const Slice* start; 26629: const Slice* limit; 26629: 26629: RangePtr() : start(nullptr), limit(nullptr) {} 26629: RangePtr(const Slice* s, const Slice* l) : start(s), limit(l) {} 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: struct IngestExternalFileArg { 26629: ColumnFamilyHandle* column_family = nullptr; 26629: std::vector external_files; 26629: IngestExternalFileOptions options; 26629: std::vector files_checksums; 26629: std::vector files_checksum_func_names; 26629: Temperature file_temperature = Temperature::kUnknown; 26629: }; 26629: 26629: struct GetMergeOperandsOptions { 26629: int expected_max_number_of_operands = 0; 26629: }; 26629: 26629: 26629: 26629: 26629: using TablePropertiesCollection = 26629: std::unordered_map>; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class DB { 26629: public: 26629: # 165 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: static Status Open(const Options& options, const std::string& name, 26629: DB** dbptr); 26629: # 182 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: static Status Open(const DBOptions& db_options, const std::string& name, 26629: const std::vector& column_families, 26629: std::vector* handles, DB** dbptr); 26629: # 202 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: static Status OpenForReadOnly(const Options& options, const std::string& name, 26629: DB** dbptr, 26629: bool error_if_wal_file_exists = false); 26629: # 215 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: static Status OpenForReadOnly( 26629: const DBOptions& db_options, const std::string& name, 26629: const std::vector& column_families, 26629: std::vector* handles, DB** dbptr, 26629: bool error_if_wal_file_exists = false); 26629: # 245 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: static Status OpenAsSecondary(const Options& options, const std::string& name, 26629: const std::string& secondary_path, DB** dbptr); 26629: # 280 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: static Status OpenAsSecondary( 26629: const DBOptions& db_options, const std::string& name, 26629: const std::string& secondary_path, 26629: const std::vector& column_families, 26629: std::vector* handles, DB** dbptr); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: static Status OpenAndCompact( 26629: const std::string& name, const std::string& output_directory, 26629: const std::string& input, std::string* output, 26629: const CompactionServiceOptionsOverride& override_options); 26629: 26629: static Status OpenAndCompact( 26629: const OpenAndCompactOptions& options, const std::string& name, 26629: const std::string& output_directory, const std::string& input, 26629: std::string* output, 26629: const CompactionServiceOptionsOverride& override_options); 26629: # 310 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: static Status OpenAndTrimHistory( 26629: const DBOptions& db_options, const std::string& dbname, 26629: const std::vector& column_families, 26629: std::vector* handles, DB** dbptr, 26629: std::string trim_ts); 26629: 26629: virtual Status Resume() { return Status::NotSupported(); } 26629: # 330 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status Close() { return Status::NotSupported(); } 26629: 26629: 26629: 26629: 26629: 26629: static Status ListColumnFamilies(const DBOptions& db_options, 26629: const std::string& name, 26629: std::vector* column_families); 26629: 26629: 26629: DB() {} 26629: 26629: DB(const DB&) = delete; 26629: void operator=(const DB&) = delete; 26629: 26629: virtual ~DB(); 26629: 26629: 26629: 26629: virtual Status CreateColumnFamily(const ColumnFamilyOptions& options, 26629: const std::string& column_family_name, 26629: ColumnFamilyHandle** handle); 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status CreateColumnFamilies( 26629: const ColumnFamilyOptions& options, 26629: const std::vector& column_family_names, 26629: std::vector* handles); 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status CreateColumnFamilies( 26629: const std::vector& column_families, 26629: std::vector* handles); 26629: 26629: 26629: 26629: 26629: virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); 26629: 26629: 26629: 26629: 26629: 26629: virtual Status DropColumnFamilies( 26629: const std::vector& column_families); 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status DestroyColumnFamilyHandle(ColumnFamilyHandle* column_family); 26629: 26629: 26629: 26629: 26629: 26629: virtual Status Put(const WriteOptions& options, 26629: ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& value) = 0; 26629: virtual Status Put(const WriteOptions& options, 26629: ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& ts, const Slice& value) = 0; 26629: virtual Status Put(const WriteOptions& options, const Slice& key, 26629: const Slice& value) { 26629: return Put(options, DefaultColumnFamily(), key, value); 26629: } 26629: virtual Status Put(const WriteOptions& options, const Slice& key, 26629: const Slice& ts, const Slice& value) { 26629: return Put(options, DefaultColumnFamily(), key, ts, value); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status PutEntity(const WriteOptions& options, 26629: ColumnFamilyHandle* column_family, const Slice& key, 26629: const WideColumns& columns); 26629: 26629: 26629: 26629: 26629: 26629: virtual Status Delete(const WriteOptions& options, 26629: ColumnFamilyHandle* column_family, 26629: const Slice& key) = 0; 26629: virtual Status Delete(const WriteOptions& options, 26629: ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& ts) = 0; 26629: virtual Status Delete(const WriteOptions& options, const Slice& key) { 26629: return Delete(options, DefaultColumnFamily(), key); 26629: } 26629: virtual Status Delete(const WriteOptions& options, const Slice& key, 26629: const Slice& ts) { 26629: return Delete(options, DefaultColumnFamily(), key, ts); 26629: } 26629: # 454 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status SingleDelete(const WriteOptions& options, 26629: ColumnFamilyHandle* column_family, 26629: const Slice& key) = 0; 26629: virtual Status SingleDelete(const WriteOptions& options, 26629: ColumnFamilyHandle* column_family, 26629: const Slice& key, const Slice& ts) = 0; 26629: virtual Status SingleDelete(const WriteOptions& options, const Slice& key) { 26629: return SingleDelete(options, DefaultColumnFamily(), key); 26629: } 26629: virtual Status SingleDelete(const WriteOptions& options, const Slice& key, 26629: const Slice& ts) { 26629: return SingleDelete(options, DefaultColumnFamily(), key, ts); 26629: } 26629: # 482 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status DeleteRange(const WriteOptions& options, 26629: ColumnFamilyHandle* column_family, 26629: const Slice& begin_key, const Slice& end_key); 26629: virtual Status DeleteRange(const WriteOptions& options, 26629: ColumnFamilyHandle* column_family, 26629: const Slice& begin_key, const Slice& end_key, 26629: const Slice& ts); 26629: 26629: 26629: 26629: 26629: 26629: virtual Status Merge(const WriteOptions& options, 26629: ColumnFamilyHandle* column_family, const Slice& key, 26629: const Slice& value) = 0; 26629: virtual Status Merge(const WriteOptions& options, const Slice& key, 26629: const Slice& value) { 26629: return Merge(options, DefaultColumnFamily(), key, value); 26629: } 26629: virtual Status Merge(const WriteOptions& , 26629: ColumnFamilyHandle* , 26629: const Slice& , const Slice& , 26629: const Slice& ) { 26629: return Status::NotSupported( 26629: "Merge does not support user-defined timestamp yet"); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; 26629: # 527 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual inline Status Get(const ReadOptions& options, 26629: ColumnFamilyHandle* column_family, const Slice& key, 26629: std::string* value) { 26629: 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: (static_cast ( 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: value != nullptr 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: "value != nullptr" 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: , "./include/rocksdb/db.h", 530, __extension__ __PRETTY_FUNCTION__)) 26629: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: ; 26629: PinnableSlice pinnable_val(value); 26629: 26629: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: (static_cast ( 26629: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: !pinnable_val.IsPinned() 26629: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: "!pinnable_val.IsPinned()" 26629: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: , "./include/rocksdb/db.h", 532, __extension__ __PRETTY_FUNCTION__)) 26629: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: ; 26629: auto s = Get(options, column_family, key, &pinnable_val); 26629: if (s.ok() && pinnable_val.IsPinned()) { 26629: value->assign(pinnable_val.data(), pinnable_val.size()); 26629: } 26629: return s; 26629: } 26629: virtual Status Get(const ReadOptions& options, 26629: ColumnFamilyHandle* column_family, const Slice& key, 26629: PinnableSlice* value) = 0; 26629: virtual Status Get(const ReadOptions& options, const Slice& key, 26629: std::string* value) { 26629: return Get(options, DefaultColumnFamily(), key, value); 26629: } 26629: 26629: 26629: 26629: virtual inline Status Get(const ReadOptions& options, 26629: ColumnFamilyHandle* column_family, const Slice& key, 26629: std::string* value, std::string* timestamp) { 26629: 26629: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: (static_cast ( 26629: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: value != nullptr 26629: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: "value != nullptr" 26629: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: , "./include/rocksdb/db.h", 552, __extension__ __PRETTY_FUNCTION__)) 26629: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: ; 26629: PinnableSlice pinnable_val(value); 26629: 26629: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: (static_cast ( 26629: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: !pinnable_val.IsPinned() 26629: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: "!pinnable_val.IsPinned()" 26629: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 26629: , "./include/rocksdb/db.h", 554, __extension__ __PRETTY_FUNCTION__)) 26629: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: ; 26629: auto s = Get(options, column_family, key, &pinnable_val, timestamp); 26629: if (s.ok() && pinnable_val.IsPinned()) { 26629: value->assign(pinnable_val.data(), pinnable_val.size()); 26629: } 26629: return s; 26629: } 26629: virtual Status Get(const ReadOptions& , 26629: ColumnFamilyHandle* , 26629: const Slice& , PinnableSlice* , 26629: std::string* ) { 26629: return Status::NotSupported( 26629: "Get() that returns timestamp is not implemented."); 26629: } 26629: virtual Status Get(const ReadOptions& options, const Slice& key, 26629: std::string* value, std::string* timestamp) { 26629: return Get(options, DefaultColumnFamily(), key, value, timestamp); 26629: } 26629: # 582 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status GetEntity(const ReadOptions& , 26629: ColumnFamilyHandle* , 26629: const Slice& , 26629: PinnableWideColumns* ) { 26629: return Status::NotSupported("GetEntity not supported"); 26629: } 26629: # 607 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status GetMergeOperands( 26629: const ReadOptions& options, ColumnFamilyHandle* column_family, 26629: const Slice& key, PinnableSlice* merge_operands, 26629: GetMergeOperandsOptions* get_merge_operands_options, 26629: int* number_of_operands) = 0; 26629: # 628 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual std::vector MultiGet( 26629: const ReadOptions& options, 26629: const std::vector& column_family, 26629: const std::vector& keys, std::vector* values) = 0; 26629: virtual std::vector MultiGet(const ReadOptions& options, 26629: const std::vector& keys, 26629: std::vector* values) { 26629: return MultiGet( 26629: options, 26629: std::vector(keys.size(), DefaultColumnFamily()), 26629: keys, values); 26629: } 26629: 26629: virtual std::vector MultiGet( 26629: const ReadOptions& , 26629: const std::vector& , 26629: const std::vector& keys, std::vector* , 26629: std::vector* ) { 26629: return std::vector( 26629: keys.size(), Status::NotSupported( 26629: "MultiGet() returning timestamps not implemented.")); 26629: } 26629: virtual std::vector MultiGet(const ReadOptions& options, 26629: const std::vector& keys, 26629: std::vector* values, 26629: std::vector* timestamps) { 26629: return MultiGet( 26629: options, 26629: std::vector(keys.size(), DefaultColumnFamily()), 26629: keys, values, timestamps); 26629: } 26629: # 679 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual void MultiGet(const ReadOptions& options, 26629: ColumnFamilyHandle* column_family, 26629: const size_t num_keys, const Slice* keys, 26629: PinnableSlice* values, Status* statuses, 26629: const bool = false) { 26629: std::vector cf; 26629: std::vector user_keys; 26629: std::vector status; 26629: std::vector vals; 26629: 26629: for (size_t i = 0; i < num_keys; ++i) { 26629: cf.emplace_back(column_family); 26629: user_keys.emplace_back(keys[i]); 26629: } 26629: status = MultiGet(options, cf, user_keys, &vals); 26629: std::copy(status.begin(), status.end(), statuses); 26629: for (auto& value : vals) { 26629: values->PinSelf(value); 26629: values++; 26629: } 26629: } 26629: 26629: virtual void MultiGet(const ReadOptions& options, 26629: ColumnFamilyHandle* column_family, 26629: const size_t num_keys, const Slice* keys, 26629: PinnableSlice* values, std::string* timestamps, 26629: Status* statuses, const bool = false) { 26629: std::vector cf; 26629: std::vector user_keys; 26629: std::vector status; 26629: std::vector vals; 26629: std::vector tss; 26629: 26629: for (size_t i = 0; i < num_keys; ++i) { 26629: cf.emplace_back(column_family); 26629: user_keys.emplace_back(keys[i]); 26629: } 26629: status = MultiGet(options, cf, user_keys, &vals, &tss); 26629: std::copy(status.begin(), status.end(), statuses); 26629: std::copy(tss.begin(), tss.end(), timestamps); 26629: for (auto& value : vals) { 26629: values->PinSelf(value); 26629: values++; 26629: } 26629: } 26629: # 744 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 26629: ColumnFamilyHandle** column_families, const Slice* keys, 26629: PinnableSlice* values, Status* statuses, 26629: const bool = false) { 26629: std::vector cf; 26629: std::vector user_keys; 26629: std::vector status; 26629: std::vector vals; 26629: 26629: for (size_t i = 0; i < num_keys; ++i) { 26629: cf.emplace_back(column_families[i]); 26629: user_keys.emplace_back(keys[i]); 26629: } 26629: status = MultiGet(options, cf, user_keys, &vals); 26629: std::copy(status.begin(), status.end(), statuses); 26629: for (auto& value : vals) { 26629: values->PinSelf(value); 26629: values++; 26629: } 26629: } 26629: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 26629: ColumnFamilyHandle** column_families, const Slice* keys, 26629: PinnableSlice* values, std::string* timestamps, 26629: Status* statuses, const bool = false) { 26629: std::vector cf; 26629: std::vector user_keys; 26629: std::vector status; 26629: std::vector vals; 26629: std::vector tss; 26629: 26629: for (size_t i = 0; i < num_keys; ++i) { 26629: cf.emplace_back(column_families[i]); 26629: user_keys.emplace_back(keys[i]); 26629: } 26629: status = MultiGet(options, cf, user_keys, &vals, &tss); 26629: std::copy(status.begin(), status.end(), statuses); 26629: std::copy(tss.begin(), tss.end(), timestamps); 26629: for (auto& value : vals) { 26629: values->PinSelf(value); 26629: values++; 26629: } 26629: } 26629: # 794 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual bool KeyMayExist(const ReadOptions& , 26629: ColumnFamilyHandle* , 26629: const Slice& , std::string* , 26629: std::string* , 26629: bool* value_found = nullptr) { 26629: if (value_found != nullptr) { 26629: *value_found = false; 26629: } 26629: return true; 26629: } 26629: 26629: virtual bool KeyMayExist(const ReadOptions& options, 26629: ColumnFamilyHandle* column_family, const Slice& key, 26629: std::string* value, bool* value_found = nullptr) { 26629: return KeyMayExist(options, column_family, key, value, 26629: nullptr, value_found); 26629: } 26629: 26629: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 26629: std::string* value, bool* value_found = nullptr) { 26629: return KeyMayExist(options, DefaultColumnFamily(), key, value, value_found); 26629: } 26629: 26629: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 26629: std::string* value, std::string* timestamp, 26629: bool* value_found = nullptr) { 26629: return KeyMayExist(options, DefaultColumnFamily(), key, value, timestamp, 26629: value_found); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Iterator* NewIterator(const ReadOptions& options, 26629: ColumnFamilyHandle* column_family) = 0; 26629: virtual Iterator* NewIterator(const ReadOptions& options) { 26629: return NewIterator(options, DefaultColumnFamily()); 26629: } 26629: 26629: 26629: 26629: virtual Status NewIterators( 26629: const ReadOptions& options, 26629: const std::vector& column_families, 26629: std::vector* iterators) = 0; 26629: # 850 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual const Snapshot* GetSnapshot() = 0; 26629: 26629: 26629: 26629: virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0; 26629: # 863 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: struct Properties { 26629: 26629: 26629: 26629: static const std::string kNumFilesAtLevelPrefix; 26629: 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kCompressionRatioAtLevelPrefix; 26629: 26629: 26629: 26629: static const std::string kStats; 26629: 26629: 26629: 26629: static const std::string kSSTables; 26629: 26629: 26629: 26629: static const std::string kCFStats; 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kCFStatsNoFileHistogram; 26629: 26629: 26629: 26629: static const std::string kCFFileHistogram; 26629: 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kDBStats; 26629: 26629: 26629: 26629: static const std::string kLevelStats; 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kBlockCacheEntryStats; 26629: 26629: 26629: 26629: static const std::string kFastBlockCacheEntryStats; 26629: 26629: 26629: 26629: static const std::string kNumImmutableMemTable; 26629: 26629: 26629: 26629: static const std::string kNumImmutableMemTableFlushed; 26629: 26629: 26629: 26629: static const std::string kMemTableFlushPending; 26629: 26629: 26629: 26629: static const std::string kNumRunningFlushes; 26629: 26629: 26629: 26629: static const std::string kCompactionPending; 26629: 26629: 26629: 26629: static const std::string kNumRunningCompactions; 26629: 26629: 26629: 26629: static const std::string kBackgroundErrors; 26629: 26629: 26629: 26629: static const std::string kCurSizeActiveMemTable; 26629: 26629: 26629: 26629: static const std::string kCurSizeAllMemTables; 26629: 26629: 26629: 26629: static const std::string kSizeAllMemTables; 26629: 26629: 26629: 26629: static const std::string kNumEntriesActiveMemTable; 26629: 26629: 26629: 26629: static const std::string kNumEntriesImmMemTables; 26629: 26629: 26629: 26629: static const std::string kNumDeletesActiveMemTable; 26629: 26629: 26629: 26629: static const std::string kNumDeletesImmMemTables; 26629: 26629: 26629: 26629: static const std::string kEstimateNumKeys; 26629: 26629: 26629: 26629: 26629: static const std::string kEstimateTableReadersMem; 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kIsFileDeletionsEnabled; 26629: 26629: 26629: 26629: static const std::string kNumSnapshots; 26629: 26629: 26629: 26629: static const std::string kOldestSnapshotTime; 26629: 26629: 26629: 26629: static const std::string kOldestSnapshotSequence; 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kNumLiveVersions; 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kCurrentSuperVersionNumber; 26629: 26629: 26629: 26629: 26629: static const std::string kEstimateLiveDataSize; 26629: 26629: 26629: 26629: static const std::string kMinLogNumberToKeep; 26629: 26629: 26629: 26629: 26629: static const std::string kMinObsoleteSstNumberToKeep; 26629: 26629: 26629: 26629: 26629: static const std::string kTotalSstFilesSize; 26629: 26629: 26629: 26629: static const std::string kLiveSstFilesSize; 26629: 26629: 26629: 26629: static const std::string kLiveSstFilesSizeAtTemperature; 26629: 26629: 26629: 26629: static const std::string kBaseLevel; 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kEstimatePendingCompactionBytes; 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kAggregatedTableProperties; 26629: 26629: 26629: 26629: 26629: static const std::string kAggregatedTablePropertiesAtLevel; 26629: 26629: 26629: 26629: static const std::string kActualDelayedWriteRate; 26629: 26629: 26629: static const std::string kIsWriteStopped; 26629: 26629: 26629: 26629: 26629: 26629: static const std::string kEstimateOldestKeyTime; 26629: 26629: 26629: static const std::string kBlockCacheCapacity; 26629: 26629: 26629: 26629: static const std::string kBlockCacheUsage; 26629: 26629: 26629: 26629: static const std::string kBlockCachePinnedUsage; 26629: 26629: 26629: 26629: static const std::string kOptionsStatistics; 26629: 26629: 26629: 26629: static const std::string kNumBlobFiles; 26629: 26629: 26629: 26629: 26629: static const std::string kBlobStats; 26629: 26629: 26629: 26629: static const std::string kTotalBlobFileSize; 26629: 26629: 26629: 26629: static const std::string kLiveBlobFileSize; 26629: 26629: 26629: 26629: static const std::string kLiveBlobFileGarbageSize; 26629: 26629: 26629: static const std::string kBlobCacheCapacity; 26629: 26629: 26629: 26629: static const std::string kBlobCacheUsage; 26629: 26629: 26629: 26629: static const std::string kBlobCachePinnedUsage; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual bool GetProperty(ColumnFamilyHandle* column_family, 26629: const Slice& property, std::string* value) = 0; 26629: virtual bool GetProperty(const Slice& property, std::string* value) { 26629: return GetProperty(DefaultColumnFamily(), property, value); 26629: } 26629: 26629: 26629: 26629: virtual bool GetMapProperty(ColumnFamilyHandle* column_family, 26629: const Slice& property, 26629: std::map* value) = 0; 26629: virtual bool GetMapProperty(const Slice& property, 26629: std::map* value) { 26629: return GetMapProperty(DefaultColumnFamily(), property, value); 26629: } 26629: # 1189 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual bool GetIntProperty(ColumnFamilyHandle* column_family, 26629: const Slice& property, uint64_t* value) = 0; 26629: virtual bool GetIntProperty(const Slice& property, uint64_t* value) { 26629: return GetIntProperty(DefaultColumnFamily(), property, value); 26629: } 26629: 26629: 26629: 26629: 26629: virtual Status ResetStats() { 26629: return Status::NotSupported("Not implemented"); 26629: } 26629: 26629: 26629: 26629: virtual bool GetAggregatedIntProperty(const Slice& property, 26629: uint64_t* value) = 0; 26629: 26629: 26629: 26629: enum class SizeApproximationFlags : uint8_t { 26629: NONE = 0, 26629: INCLUDE_MEMTABLES = 1 << 0, 26629: INCLUDE_FILES = 1 << 1 26629: }; 26629: # 1222 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status GetApproximateSizes(const SizeApproximationOptions& options, 26629: ColumnFamilyHandle* column_family, 26629: const Range* ranges, int n, 26629: uint64_t* sizes) = 0; 26629: 26629: 26629: 26629: 26629: virtual Status GetApproximateSizes(ColumnFamilyHandle* column_family, 26629: const Range* ranges, int n, 26629: uint64_t* sizes, 26629: SizeApproximationFlags include_flags = 26629: SizeApproximationFlags::INCLUDE_FILES); 26629: 26629: virtual Status GetApproximateSizes( 26629: const Range* ranges, int n, uint64_t* sizes, 26629: SizeApproximationFlags include_flags = 26629: SizeApproximationFlags::INCLUDE_FILES) { 26629: return GetApproximateSizes(DefaultColumnFamily(), ranges, n, sizes, 26629: include_flags); 26629: } 26629: 26629: 26629: 26629: virtual void GetApproximateMemTableStats(ColumnFamilyHandle* column_family, 26629: const Range& range, 26629: uint64_t* const count, 26629: uint64_t* const size) = 0; 26629: virtual void GetApproximateMemTableStats(const Range& range, 26629: uint64_t* const count, 26629: uint64_t* const size) { 26629: GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); 26629: } 26629: # 1275 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status CompactRange(const CompactRangeOptions& options, 26629: ColumnFamilyHandle* column_family, 26629: const Slice* begin, const Slice* end) = 0; 26629: virtual Status CompactRange(const CompactRangeOptions& options, 26629: const Slice* begin, const Slice* end) { 26629: return CompactRange(options, DefaultColumnFamily(), begin, end); 26629: } 26629: # 1301 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status SetOptions( 26629: ColumnFamilyHandle* , 26629: const std::unordered_map& ) { 26629: return Status::NotSupported("Not implemented"); 26629: } 26629: 26629: virtual Status SetOptions( 26629: const std::unordered_map& new_options) { 26629: return SetOptions(DefaultColumnFamily(), new_options); 26629: } 26629: # 1321 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status SetDBOptions( 26629: const std::unordered_map& new_options) = 0; 26629: # 1331 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status CompactFiles( 26629: const CompactionOptions& compact_options, 26629: ColumnFamilyHandle* column_family, 26629: const std::vector& input_file_names, const int output_level, 26629: const int output_path_id = -1, 26629: std::vector* const output_file_names = nullptr, 26629: CompactionJobInfo* compaction_job_info = nullptr) = 0; 26629: 26629: virtual Status CompactFiles( 26629: const CompactionOptions& compact_options, 26629: const std::vector& input_file_names, const int output_level, 26629: const int output_path_id = -1, 26629: std::vector* const output_file_names = nullptr, 26629: CompactionJobInfo* compaction_job_info = nullptr) { 26629: return CompactFiles(compact_options, DefaultColumnFamily(), 26629: input_file_names, output_level, output_path_id, 26629: output_file_names, compaction_job_info); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: virtual Status PauseBackgroundWork() = 0; 26629: virtual Status ContinueBackgroundWork() = 0; 26629: # 1366 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status EnableAutoCompaction( 26629: const std::vector& column_family_handles) = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual void DisableManualCompaction() = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual void EnableManualCompaction() = 0; 26629: 26629: 26629: virtual int NumberLevels(ColumnFamilyHandle* column_family) = 0; 26629: virtual int NumberLevels() { return NumberLevels(DefaultColumnFamily()); } 26629: 26629: 26629: 26629: virtual int MaxMemCompactionLevel(ColumnFamilyHandle* column_family) = 0; 26629: virtual int MaxMemCompactionLevel() { 26629: return MaxMemCompactionLevel(DefaultColumnFamily()); 26629: } 26629: 26629: 26629: virtual int Level0StopWriteTrigger(ColumnFamilyHandle* column_family) = 0; 26629: virtual int Level0StopWriteTrigger() { 26629: return Level0StopWriteTrigger(DefaultColumnFamily()); 26629: } 26629: 26629: 26629: 26629: virtual const std::string& GetName() const = 0; 26629: 26629: 26629: virtual Env* GetEnv() const = 0; 26629: 26629: 26629: 26629: virtual FileSystem* GetFileSystem() const; 26629: 26629: 26629: 26629: 26629: 26629: virtual Options GetOptions(ColumnFamilyHandle* column_family) const = 0; 26629: virtual Options GetOptions() const { 26629: return GetOptions(DefaultColumnFamily()); 26629: } 26629: 26629: virtual DBOptions GetDBOptions() const = 0; 26629: 26629: 26629: 26629: 26629: virtual Status Flush(const FlushOptions& options, 26629: ColumnFamilyHandle* column_family) = 0; 26629: virtual Status Flush(const FlushOptions& options) { 26629: return Flush(options, DefaultColumnFamily()); 26629: } 26629: # 1436 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status Flush( 26629: const FlushOptions& options, 26629: const std::vector& column_families) = 0; 26629: 26629: 26629: 26629: virtual Status FlushWAL(bool ) { 26629: return Status::NotSupported("FlushWAL not implemented"); 26629: } 26629: 26629: 26629: 26629: 26629: virtual Status SyncWAL() = 0; 26629: 26629: 26629: virtual Status LockWAL() { 26629: return Status::NotSupported("LockWAL not implemented"); 26629: } 26629: 26629: 26629: virtual Status UnlockWAL() { 26629: return Status::NotSupported("UnlockWAL not implemented"); 26629: } 26629: 26629: 26629: virtual SequenceNumber GetLatestSequenceNumber() const = 0; 26629: 26629: 26629: 26629: 26629: virtual Status DisableFileDeletions() = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual Status IncreaseFullHistoryTsLow(ColumnFamilyHandle* column_family, 26629: std::string ts_low) = 0; 26629: 26629: 26629: virtual Status GetFullHistoryTsLow(ColumnFamilyHandle* column_family, 26629: std::string* ts_low) = 0; 26629: # 1489 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status EnableFileDeletions(bool force = true) = 0; 26629: # 1502 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status GetCreationTimeOfOldestFile(uint64_t* creation_time) = 0; 26629: # 1516 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status GetUpdatesSince( 26629: SequenceNumber seq_number, std::unique_ptr* iter, 26629: const TransactionLogIterator::ReadOptions& read_options = 26629: TransactionLogIterator::ReadOptions()) = 0; 26629: # 1534 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status DeleteFile(std::string name) = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual void GetLiveFilesMetaData( 26629: std::vector* ) {} 26629: 26629: 26629: 26629: 26629: 26629: virtual Status GetLiveFilesChecksumInfo(FileChecksumList* checksum_list) = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status GetLiveFilesStorageInfo( 26629: const LiveFilesStorageInfoOptions& opts, 26629: std::vector* files) = 0; 26629: 26629: 26629: 26629: virtual void GetColumnFamilyMetaData(ColumnFamilyHandle* , 26629: ColumnFamilyMetaData* ) {} 26629: 26629: 26629: void GetColumnFamilyMetaData(ColumnFamilyMetaData* metadata) { 26629: GetColumnFamilyMetaData(DefaultColumnFamily(), metadata); 26629: } 26629: 26629: 26629: 26629: virtual void GetAllColumnFamilyMetaData( 26629: std::vector* ) {} 26629: # 1589 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status GetLiveFiles(std::vector&, 26629: uint64_t* manifest_file_size, 26629: bool flush_memtable = true) = 0; 26629: 26629: 26629: virtual Status GetSortedWalFiles(VectorLogPtr& files) = 0; 26629: # 1603 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status GetCurrentWalFile( 26629: std::unique_ptr* current_log_file) = 0; 26629: # 1628 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status IngestExternalFile( 26629: ColumnFamilyHandle* column_family, 26629: const std::vector& external_files, 26629: const IngestExternalFileOptions& options) = 0; 26629: 26629: virtual Status IngestExternalFile( 26629: const std::vector& external_files, 26629: const IngestExternalFileOptions& options) { 26629: return IngestExternalFile(DefaultColumnFamily(), external_files, options); 26629: } 26629: # 1654 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status IngestExternalFiles( 26629: const std::vector& args) = 0; 26629: # 1673 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status CreateColumnFamilyWithImport( 26629: const ColumnFamilyOptions& options, const std::string& column_family_name, 26629: const ImportColumnFamilyOptions& import_options, 26629: const ExportImportFilesMetaData& metadata, 26629: ColumnFamilyHandle** handle) = 0; 26629: 26629: 26629: 26629: virtual Status VerifyFileChecksums(const ReadOptions& ) { 26629: return Status::NotSupported("File verification not supported"); 26629: } 26629: 26629: 26629: 26629: virtual Status VerifyChecksum(const ReadOptions& read_options) = 0; 26629: 26629: virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status GetDbIdentity(std::string& identity) const = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Status GetDbSessionId(std::string& session_id) const = 0; 26629: 26629: 26629: virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0; 26629: 26629: 26629: 26629: virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family, 26629: TablePropertiesCollection* props) = 0; 26629: virtual Status GetPropertiesOfAllTables(TablePropertiesCollection* props) { 26629: return GetPropertiesOfAllTables(DefaultColumnFamily(), props); 26629: } 26629: virtual Status GetPropertiesOfTablesInRange( 26629: ColumnFamilyHandle* column_family, const Range* range, std::size_t n, 26629: TablePropertiesCollection* props) = 0; 26629: 26629: virtual Status SuggestCompactRange(ColumnFamilyHandle* , 26629: const Slice* , 26629: const Slice* ) { 26629: return Status::NotSupported("SuggestCompactRange() is not implemented."); 26629: } 26629: 26629: virtual Status PromoteL0(ColumnFamilyHandle* , 26629: int ) { 26629: return Status::NotSupported("PromoteL0() is not implemented."); 26629: } 26629: 26629: 26629: virtual Status StartTrace(const TraceOptions& , 26629: std::unique_ptr&& ) { 26629: return Status::NotSupported("StartTrace() is not implemented."); 26629: } 26629: 26629: virtual Status EndTrace() { 26629: return Status::NotSupported("EndTrace() is not implemented."); 26629: } 26629: 26629: 26629: virtual Status StartIOTrace(const TraceOptions& , 26629: std::unique_ptr&& ) { 26629: return Status::NotSupported("StartIOTrace() is not implemented."); 26629: } 26629: 26629: virtual Status EndIOTrace() { 26629: return Status::NotSupported("EndIOTrace() is not implemented."); 26629: } 26629: 26629: 26629: virtual Status StartBlockCacheTrace( 26629: const TraceOptions& , 26629: std::unique_ptr&& ) { 26629: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 26629: } 26629: 26629: virtual Status StartBlockCacheTrace( 26629: const BlockCacheTraceOptions& , 26629: std::unique_ptr&& ) { 26629: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 26629: } 26629: 26629: virtual Status EndBlockCacheTrace() { 26629: return Status::NotSupported("EndBlockCacheTrace() is not implemented."); 26629: } 26629: 26629: 26629: virtual Status NewDefaultReplayer( 26629: const std::vector& , 26629: std::unique_ptr&& , 26629: std::unique_ptr* ) { 26629: return Status::NotSupported("NewDefaultReplayer() is not implemented."); 26629: } 26629: 26629: 26629: 26629: 26629: virtual DB* GetRootDB() { return this; } 26629: 26629: 26629: 26629: 26629: virtual Status GetStatsHistory( 26629: uint64_t , uint64_t , 26629: std::unique_ptr* ) { 26629: return Status::NotSupported("GetStatsHistory() is not implemented."); 26629: } 26629: # 1800 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: virtual Status TryCatchUpWithPrimary() { 26629: return Status::NotSupported("Supported only by secondary instance"); 26629: } 26629: 26629: }; 26629: 26629: 26629: inline DB::SizeApproximationFlags operator&(DB::SizeApproximationFlags lhs, 26629: DB::SizeApproximationFlags rhs) { 26629: return static_cast(static_cast(lhs) & 26629: static_cast(rhs)); 26629: } 26629: inline DB::SizeApproximationFlags operator|(DB::SizeApproximationFlags lhs, 26629: DB::SizeApproximationFlags rhs) { 26629: return static_cast(static_cast(lhs) | 26629: static_cast(rhs)); 26629: } 26629: 26629: inline Status DB::GetApproximateSizes(ColumnFamilyHandle* column_family, 26629: const Range* ranges, int n, 26629: uint64_t* sizes, 26629: SizeApproximationFlags include_flags) { 26629: SizeApproximationOptions options; 26629: options.include_memtables = 26629: ((include_flags & SizeApproximationFlags::INCLUDE_MEMTABLES) != 26629: SizeApproximationFlags::NONE); 26629: options.include_files = 26629: ((include_flags & SizeApproximationFlags::INCLUDE_FILES) != 26629: SizeApproximationFlags::NONE); 26629: return GetApproximateSizes(options, column_family, ranges, n, sizes); 26629: } 26629: 26629: 26629: 26629: Status DestroyDB(const std::string& name, const Options& options, 26629: const std::vector& column_families = 26629: std::vector()); 26629: # 1848 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 26629: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 26629: const std::vector& column_families); 26629: 26629: 26629: 26629: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 26629: const std::vector& column_families, 26629: const ColumnFamilyOptions& unknown_cf_opts); 26629: 26629: 26629: 26629: Status RepairDB(const std::string& dbname, const Options& options); 26629: 26629: 26629: 26629: } 26629: # 29 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/dynamic_bloom.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/util/dynamic_bloom.h" 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: class Allocator; 26629: class Logger; 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/util/dynamic_bloom.h" 26629: class DynamicBloom { 26629: public: 26629: # 47 "/build/reproducible-path/rocksdb-7.8.3/util/dynamic_bloom.h" 26629: explicit DynamicBloom(Allocator* allocator, uint32_t total_bits, 26629: uint32_t num_probes = 6, size_t huge_page_tlb_size = 0, 26629: Logger* logger = nullptr); 26629: 26629: ~DynamicBloom() {} 26629: 26629: 26629: void Add(const Slice& key); 26629: 26629: 26629: void AddConcurrently(const Slice& key); 26629: 26629: 26629: void AddHash(uint32_t hash); 26629: 26629: 26629: void AddHashConcurrently(uint32_t hash); 26629: 26629: 26629: bool MayContain(const Slice& key) const; 26629: 26629: void MayContain(int num_keys, Slice* keys, bool* may_match) const; 26629: 26629: 26629: bool MayContainHash(uint32_t hash) const; 26629: 26629: void Prefetch(uint32_t h); 26629: 26629: private: 26629: 26629: 26629: uint32_t kLen; 26629: 26629: 26629: const uint32_t kNumDoubleProbes; 26629: 26629: std::atomic* data_; 26629: 26629: 26629: 26629: template 26629: void AddHash(uint32_t hash, const OrFunc& or_func); 26629: 26629: bool DoubleProbe(uint32_t h32, size_t a) const; 26629: }; 26629: 26629: inline void DynamicBloom::Add(const Slice& key) { AddHash(BloomHash(key)); } 26629: 26629: inline void DynamicBloom::AddConcurrently(const Slice& key) { 26629: AddHashConcurrently(BloomHash(key)); 26629: } 26629: 26629: inline void DynamicBloom::AddHash(uint32_t hash) { 26629: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 26629: ptr->store(ptr->load(std::memory_order_relaxed) | mask, 26629: std::memory_order_relaxed); 26629: }); 26629: } 26629: 26629: inline void DynamicBloom::AddHashConcurrently(uint32_t hash) { 26629: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 26629: 26629: 26629: 26629: 26629: 26629: if ((mask & ptr->load(std::memory_order_relaxed)) != mask) { 26629: ptr->fetch_or(mask, std::memory_order_relaxed); 26629: } 26629: }); 26629: } 26629: 26629: inline bool DynamicBloom::MayContain(const Slice& key) const { 26629: return (MayContainHash(BloomHash(key))); 26629: } 26629: 26629: inline void DynamicBloom::MayContain(int num_keys, Slice* keys, 26629: bool* may_match) const { 26629: std::array hashes; 26629: std::array byte_offsets; 26629: for (int i = 0; i < num_keys; ++i) { 26629: hashes[i] = BloomHash(keys[i]); 26629: size_t a = FastRange32(kLen, hashes[i]); 26629: __builtin_prefetch(data_ + a, 0, 3); 26629: byte_offsets[i] = a; 26629: } 26629: 26629: for (int i = 0; i < num_keys; i++) { 26629: may_match[i] = DoubleProbe(hashes[i], byte_offsets[i]); 26629: } 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline void DynamicBloom::Prefetch(uint32_t h32) { 26629: size_t a = FastRange32(kLen, h32); 26629: __builtin_prefetch(data_ + a, 0, 3); 26629: } 26629: # 173 "/build/reproducible-path/rocksdb-7.8.3/util/dynamic_bloom.h" 26629: inline bool DynamicBloom::MayContainHash(uint32_t h32) const { 26629: size_t a = FastRange32(kLen, h32); 26629: __builtin_prefetch(data_ + a, 0, 3); 26629: return DoubleProbe(h32, a); 26629: } 26629: 26629: inline bool DynamicBloom::DoubleProbe(uint32_t h32, size_t byte_offset) const { 26629: 26629: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 26629: for (unsigned i = 0;; ++i) { 26629: 26629: uint64_t mask = 26629: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 26629: uint64_t val = data_[byte_offset ^ i].load(std::memory_order_relaxed); 26629: if (i + 1 >= kNumDoubleProbes) { 26629: return (val & mask) == mask; 26629: } else if ((val & mask) != mask) { 26629: return false; 26629: } 26629: h = (h >> 12) | (h << 52); 26629: } 26629: } 26629: 26629: template 26629: inline void DynamicBloom::AddHash(uint32_t h32, const OrFunc& or_func) { 26629: size_t a = FastRange32(kLen, h32); 26629: __builtin_prefetch(data_ + a, 0, 3); 26629: 26629: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 26629: for (unsigned i = 0;; ++i) { 26629: 26629: uint64_t mask = 26629: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 26629: or_func(&data_[a ^ i], mask); 26629: if (i + 1 >= kNumDoubleProbes) { 26629: return; 26629: } 26629: h = (h >> 12) | (h << 52); 26629: } 26629: } 26629: 26629: } 26629: # 32 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/hash_containers.h" 1 26629: # 11 "/build/reproducible-path/rocksdb-7.8.3/util/hash_containers.h" 26629: 26629: # 38 "/build/reproducible-path/rocksdb-7.8.3/util/hash_containers.h" 26629: namespace rocksdb { 26629: 26629: template 26629: using UnorderedMap = std::unordered_map; 26629: 26629: template 26629: using UnorderedMapH = std::unordered_map; 26629: 26629: template 26629: using UnorderedSet = std::unordered_set; 26629: 26629: } 26629: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: struct FlushJobInfo; 26629: class Mutex; 26629: class MemTableIterator; 26629: class MergeContext; 26629: class SystemClock; 26629: 26629: struct ImmutableMemTableOptions { 26629: explicit ImmutableMemTableOptions(const ImmutableOptions& ioptions, 26629: const MutableCFOptions& mutable_cf_options); 26629: size_t arena_block_size; 26629: uint32_t memtable_prefix_bloom_bits; 26629: size_t memtable_huge_page_size; 26629: bool memtable_whole_key_filtering; 26629: bool inplace_update_support; 26629: size_t inplace_update_num_locks; 26629: UpdateStatus (*inplace_callback)(char* existing_value, 26629: uint32_t* existing_value_size, 26629: Slice delta_value, 26629: std::string* merged_value); 26629: size_t max_successive_merges; 26629: Statistics* statistics; 26629: MergeOperator* merge_operator; 26629: Logger* info_log; 26629: bool allow_data_in_errors; 26629: uint32_t protection_bytes_per_key; 26629: }; 26629: 26629: 26629: 26629: 26629: struct MemTablePostProcessInfo { 26629: uint64_t data_size = 0; 26629: uint64_t num_entries = 0; 26629: uint64_t num_deletes = 0; 26629: }; 26629: 26629: using MultiGetRange = MultiGetContext::Range; 26629: # 87 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: class MemTable { 26629: public: 26629: struct KeyComparator : public MemTableRep::KeyComparator { 26629: const InternalKeyComparator comparator; 26629: explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) { } 26629: virtual int operator()(const char* prefix_len_key1, 26629: const char* prefix_len_key2) const override; 26629: virtual int operator()(const char* prefix_len_key, 26629: const DecodedType& key) const override; 26629: }; 26629: # 107 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: explicit MemTable(const InternalKeyComparator& comparator, 26629: const ImmutableOptions& ioptions, 26629: const MutableCFOptions& mutable_cf_options, 26629: WriteBufferManager* write_buffer_manager, 26629: SequenceNumber earliest_seq, uint32_t column_family_id); 26629: 26629: MemTable(const MemTable&) = delete; 26629: MemTable& operator=(const MemTable&) = delete; 26629: 26629: 26629: ~MemTable(); 26629: 26629: 26629: 26629: 26629: void Ref() { ++refs_; } 26629: 26629: 26629: 26629: 26629: 26629: MemTable* Unref() { 26629: --refs_; 26629: 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 3 4 26629: (static_cast ( 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: refs_ >= 0 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: "refs_ >= 0" 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 3 4 26629: , "./db/memtable.h", 130, __extension__ __PRETTY_FUNCTION__)) 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: ; 26629: if (refs_ <= 0) { 26629: return this; 26629: } 26629: return nullptr; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: size_t ApproximateMemoryUsage(); 26629: 26629: 26629: 26629: size_t ApproximateMemoryUsageFast() const { 26629: return approximate_memory_usage_.load(std::memory_order_relaxed); 26629: } 26629: 26629: 26629: size_t MemoryAllocatedBytes() const { 26629: return table_->ApproximateMemoryUsage() + 26629: range_del_table_->ApproximateMemoryUsage() + 26629: arena_.MemoryAllocatedBytes(); 26629: } 26629: # 170 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: void UniqueRandomSample(const uint64_t& target_sample_size, 26629: std::unordered_set* entries) { 26629: 26629: 26629: table_->UniqueRandomSample(num_entries(), target_sample_size, entries); 26629: } 26629: 26629: 26629: 26629: bool ShouldScheduleFlush() const { 26629: return flush_state_.load(std::memory_order_relaxed) == FLUSH_REQUESTED; 26629: } 26629: 26629: 26629: 26629: bool MarkFlushScheduled() { 26629: auto before = FLUSH_REQUESTED; 26629: return flush_state_.compare_exchange_strong(before, FLUSH_SCHEDULED, 26629: std::memory_order_relaxed, 26629: std::memory_order_relaxed); 26629: } 26629: # 204 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: InternalIterator* NewIterator(const ReadOptions& read_options, Arena* arena); 26629: # 216 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 26629: const ReadOptions& read_options, SequenceNumber read_seq, 26629: bool immutable_memtable); 26629: 26629: Status VerifyEncodedEntry(Slice encoded, 26629: const ProtectionInfoKVOS64& kv_prot_info); 26629: # 233 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: Status Add(SequenceNumber seq, ValueType type, const Slice& key, 26629: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info, 26629: bool allow_concurrent = false, 26629: MemTablePostProcessInfo* post_process_info = nullptr, 26629: void** hint = nullptr); 26629: # 262 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: bool Get(const LookupKey& key, std::string* value, 26629: PinnableWideColumns* columns, std::string* timestamp, Status* s, 26629: MergeContext* merge_context, 26629: SequenceNumber* max_covering_tombstone_seq, SequenceNumber* seq, 26629: const ReadOptions& read_opts, bool immutable_memtable, 26629: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 26629: bool do_merge = true); 26629: 26629: bool Get(const LookupKey& key, std::string* value, 26629: PinnableWideColumns* columns, std::string* timestamp, Status* s, 26629: MergeContext* merge_context, 26629: SequenceNumber* max_covering_tombstone_seq, 26629: const ReadOptions& read_opts, bool immutable_memtable, 26629: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 26629: bool do_merge = true) { 26629: SequenceNumber seq; 26629: return Get(key, value, columns, timestamp, s, merge_context, 26629: max_covering_tombstone_seq, &seq, read_opts, immutable_memtable, 26629: callback, is_blob_index, do_merge); 26629: } 26629: 26629: 26629: 26629: 26629: void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 26629: ReadCallback* callback, bool immutable_memtable); 26629: # 299 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: Status Update(SequenceNumber seq, ValueType value_type, const Slice& key, 26629: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info); 26629: # 316 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: Status UpdateCallback(SequenceNumber seq, const Slice& key, 26629: const Slice& delta, 26629: const ProtectionInfoKVOS64* kv_prot_info); 26629: 26629: 26629: 26629: 26629: size_t CountSuccessiveMergeEntries(const LookupKey& key); 26629: 26629: 26629: 26629: void BatchPostProcess(const MemTablePostProcessInfo& update_counters) { 26629: num_entries_.fetch_add(update_counters.num_entries, 26629: std::memory_order_relaxed); 26629: data_size_.fetch_add(update_counters.data_size, std::memory_order_relaxed); 26629: if (update_counters.num_deletes != 0) { 26629: num_deletes_.fetch_add(update_counters.num_deletes, 26629: std::memory_order_relaxed); 26629: } 26629: UpdateFlushState(); 26629: } 26629: 26629: 26629: 26629: 26629: uint64_t num_entries() const { 26629: return num_entries_.load(std::memory_order_relaxed); 26629: } 26629: 26629: 26629: 26629: 26629: uint64_t num_deletes() const { 26629: return num_deletes_.load(std::memory_order_relaxed); 26629: } 26629: 26629: uint64_t get_data_size() const { 26629: return data_size_.load(std::memory_order_relaxed); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: void UpdateWriteBufferSize(size_t new_write_buffer_size) { 26629: if (bloom_filter_ == nullptr || 26629: new_write_buffer_size < write_buffer_size_) { 26629: write_buffer_size_.store(new_write_buffer_size, 26629: std::memory_order_relaxed); 26629: } 26629: } 26629: 26629: 26629: VersionEdit* GetEdits() { return &edit_; } 26629: 26629: 26629: 26629: 26629: bool IsEmpty() const { return first_seqno_ == 0; } 26629: 26629: 26629: 26629: 26629: 26629: SequenceNumber GetFirstSequenceNumber() { 26629: return first_seqno_.load(std::memory_order_relaxed); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: void SetFirstSequenceNumber(SequenceNumber first_seqno) { 26629: return first_seqno_.store(first_seqno, std::memory_order_relaxed); 26629: } 26629: # 399 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 26629: SequenceNumber GetEarliestSequenceNumber() { 26629: return earliest_seqno_.load(std::memory_order_relaxed); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: void SetEarliestSequenceNumber(SequenceNumber earliest_seqno) { 26629: return earliest_seqno_.store(earliest_seqno, std::memory_order_relaxed); 26629: } 26629: 26629: 26629: 26629: SequenceNumber GetCreationSeq() const { return creation_seq_; } 26629: 26629: void SetCreationSeq(SequenceNumber sn) { creation_seq_ = sn; } 26629: 26629: 26629: 26629: 26629: 26629: uint64_t GetNextLogNumber() { return mem_next_logfile_number_; } 26629: 26629: 26629: 26629: 26629: 26629: void SetNextLogNumber(uint64_t num) { mem_next_logfile_number_ = num; } 26629: 26629: 26629: 26629: 26629: 26629: void RefLogContainingPrepSection(uint64_t log); 26629: uint64_t GetMinLogContainingPrepSection(); 26629: 26629: 26629: 26629: 26629: 26629: 26629: void MarkImmutable() { 26629: table_->MarkReadOnly(); 26629: mem_tracker_.DoneAllocating(); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: void MarkFlushed() { 26629: table_->MarkFlushed(); 26629: } 26629: 26629: 26629: bool IsMergeOperatorSupported() const { 26629: return table_->IsMergeOperatorSupported(); 26629: } 26629: 26629: 26629: 26629: bool IsSnapshotSupported() const { 26629: return table_->IsSnapshotSupported() && !moptions_.inplace_update_support; 26629: } 26629: 26629: struct MemTableStats { 26629: uint64_t size; 26629: uint64_t count; 26629: }; 26629: 26629: MemTableStats ApproximateStats(const Slice& start_ikey, 26629: const Slice& end_ikey); 26629: 26629: 26629: port::RWMutex* GetLock(const Slice& key); 26629: 26629: const InternalKeyComparator& GetInternalKeyComparator() const { 26629: return comparator_.comparator; 26629: } 26629: 26629: const ImmutableMemTableOptions* GetImmutableMemTableOptions() const { 26629: return &moptions_; 26629: } 26629: 26629: uint64_t ApproximateOldestKeyTime() const { 26629: return oldest_key_time_.load(std::memory_order_relaxed); 26629: } 26629: 26629: 26629: void SetID(uint64_t id) { id_ = id; } 26629: 26629: uint64_t GetID() const { return id_; } 26629: 26629: void SetFlushCompleted(bool completed) { flush_completed_ = completed; } 26629: 26629: uint64_t GetFileNumber() const { return file_number_; } 26629: 26629: void SetFileNumber(uint64_t file_num) { file_number_ = file_num; } 26629: 26629: void SetFlushInProgress(bool in_progress) { 26629: flush_in_progress_ = in_progress; 26629: } 26629: 26629: 26629: void SetFlushJobInfo(std::unique_ptr&& info) { 26629: flush_job_info_ = std::move(info); 26629: } 26629: 26629: std::unique_ptr ReleaseFlushJobInfo() { 26629: return std::move(flush_job_info_); 26629: } 26629: 26629: 26629: 26629: bool ShouldFlushNow(); 26629: 26629: void ConstructFragmentedRangeTombstones(); 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: bool IsFragmentedRangeTombstonesConstructed(bool allow_empty = true) const { 26629: if (allow_empty) { 26629: return fragmented_range_tombstone_list_.get() != nullptr || 26629: is_range_del_table_empty_; 26629: } else { 26629: return fragmented_range_tombstone_list_.get() != nullptr; 26629: } 26629: } 26629: 26629: 26629: static Status VerifyEntryChecksum(const char* entry, 26629: size_t protection_bytes_per_key, 26629: bool allow_data_in_errors = false); 26629: 26629: private: 26629: enum FlushStateEnum { FLUSH_NOT_REQUESTED, FLUSH_REQUESTED, FLUSH_SCHEDULED }; 26629: 26629: friend class MemTableIterator; 26629: friend class MemTableBackwardIterator; 26629: friend class MemTableList; 26629: 26629: KeyComparator comparator_; 26629: const ImmutableMemTableOptions moptions_; 26629: int refs_; 26629: const size_t kArenaBlockSize; 26629: AllocTracker mem_tracker_; 26629: ConcurrentArena arena_; 26629: std::unique_ptr table_; 26629: std::unique_ptr range_del_table_; 26629: std::atomic_bool is_range_del_table_empty_; 26629: 26629: 26629: std::atomic data_size_; 26629: std::atomic num_entries_; 26629: std::atomic num_deletes_; 26629: 26629: 26629: std::atomic write_buffer_size_; 26629: 26629: 26629: bool flush_in_progress_; 26629: bool flush_completed_; 26629: uint64_t file_number_; 26629: 26629: 26629: 26629: VersionEdit edit_; 26629: 26629: 26629: std::atomic first_seqno_; 26629: 26629: 26629: 26629: std::atomic earliest_seqno_; 26629: 26629: SequenceNumber creation_seq_; 26629: 26629: 26629: uint64_t mem_next_logfile_number_; 26629: 26629: 26629: 26629: std::atomic min_prep_log_referenced_; 26629: 26629: 26629: std::vector locks_; 26629: 26629: const SliceTransform* const prefix_extractor_; 26629: std::unique_ptr bloom_filter_; 26629: 26629: std::atomic flush_state_; 26629: 26629: SystemClock* clock_; 26629: 26629: 26629: const SliceTransform* insert_with_hint_prefix_extractor_; 26629: 26629: 26629: UnorderedMapH insert_hints_; 26629: 26629: 26629: std::atomic oldest_key_time_; 26629: 26629: 26629: uint64_t id_ = 0; 26629: 26629: 26629: 26629: 26629: 26629: SequenceNumber atomic_flush_seqno_; 26629: 26629: 26629: 26629: std::atomic approximate_memory_usage_; 26629: 26629: 26629: 26629: std::unique_ptr flush_job_info_; 26629: 26629: 26629: 26629: void UpdateFlushState(); 26629: 26629: void UpdateOldestKeyTime(); 26629: 26629: void GetFromTable(const LookupKey& key, 26629: SequenceNumber max_covering_tombstone_seq, bool do_merge, 26629: ReadCallback* callback, bool* is_blob_index, 26629: std::string* value, PinnableWideColumns* columns, 26629: std::string* timestamp, Status* s, 26629: MergeContext* merge_context, SequenceNumber* seq, 26629: bool* found_final_value, bool* merge_in_progress); 26629: 26629: 26629: 26629: 26629: 26629: 26629: FragmentedRangeTombstoneIterator* NewRangeTombstoneIteratorInternal( 26629: const ReadOptions& read_options, SequenceNumber read_seq, 26629: bool immutable_memtable); 26629: 26629: 26629: 26629: 26629: std::unique_ptr 26629: fragmented_range_tombstone_list_; 26629: 26629: 26629: std::mutex range_del_mutex_; 26629: CoreLocalArray> 26629: cached_range_tombstone_; 26629: 26629: void UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 26629: const Slice& key, const Slice& value, ValueType type, 26629: SequenceNumber s, char* checksum_ptr); 26629: }; 26629: 26629: extern const char* EncodeKey(std::string* scratch, const Slice& target); 26629: 26629: } 26629: # 11 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_iteration_stats.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: struct CompactionIterationStats { 26629: 26629: 26629: 26629: 26629: int64_t num_record_drop_user = 0; 26629: 26629: int64_t num_record_drop_hidden = 0; 26629: int64_t num_record_drop_obsolete = 0; 26629: int64_t num_record_drop_range_del = 0; 26629: int64_t num_range_del_drop_obsolete = 0; 26629: 26629: int64_t num_optimized_del_drop_obsolete = 0; 26629: uint64_t total_filter_time = 0; 26629: 26629: 26629: 26629: 26629: uint64_t num_input_records = 0; 26629: uint64_t num_input_deletion_records = 0; 26629: uint64_t num_input_corrupt_records = 0; 26629: uint64_t total_input_raw_key_bytes = 0; 26629: uint64_t total_input_raw_value_bytes = 0; 26629: 26629: 26629: uint64_t num_single_del_fallthru = 0; 26629: uint64_t num_single_del_mismatch = 0; 26629: 26629: 26629: uint64_t num_blobs_read = 0; 26629: uint64_t total_blob_bytes_read = 0; 26629: uint64_t num_blobs_relocated = 0; 26629: uint64_t total_blob_bytes_relocated = 0; 26629: }; 26629: 26629: } 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 2 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: class ScopedArenaIterator { 26629: void reset(InternalIterator* iter) noexcept { 26629: if (iter_ != nullptr) { 26629: iter_->~InternalIterator(); 26629: } 26629: iter_ = iter; 26629: } 26629: 26629: public: 26629: 26629: explicit ScopedArenaIterator(InternalIterator* iter = nullptr) 26629: : iter_(iter) {} 26629: 26629: ScopedArenaIterator(const ScopedArenaIterator&) = delete; 26629: ScopedArenaIterator& operator=(const ScopedArenaIterator&) = delete; 26629: 26629: ScopedArenaIterator(ScopedArenaIterator&& o) noexcept { 26629: iter_ = o.iter_; 26629: o.iter_ = nullptr; 26629: } 26629: 26629: ScopedArenaIterator& operator=(ScopedArenaIterator&& o) noexcept { 26629: reset(o.iter_); 26629: o.iter_ = nullptr; 26629: return *this; 26629: } 26629: 26629: InternalIterator* operator->() { return iter_; } 26629: InternalIterator* get() { return iter_; } 26629: 26629: void set(InternalIterator* iter) { reset(iter); } 26629: 26629: InternalIterator* release() { 26629: 26629: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 3 4 26629: (static_cast ( 26629: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 26629: iter_ != nullptr 26629: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 26629: "iter_ != nullptr" 26629: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 3 4 26629: , "./table/scoped_arena_iterator.h", 47, __extension__ __PRETTY_FUNCTION__)) 26629: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 26629: ; 26629: auto* res = iter_; 26629: iter_ = nullptr; 26629: return res; 26629: } 26629: 26629: ~ScopedArenaIterator() { 26629: reset(nullptr); 26629: } 26629: 26629: private: 26629: InternalIterator* iter_; 26629: }; 26629: } 26629: # 26 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 26629: 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 1 "/usr/include/c++/12/cinttypes" 1 3 26629: # 32 "/usr/include/c++/12/cinttypes" 3 26629: 26629: # 33 "/usr/include/c++/12/cinttypes" 3 26629: # 46 "/usr/include/c++/12/cinttypes" 3 26629: # 1 "/usr/include/inttypes.h" 1 3 4 26629: # 266 "/usr/include/inttypes.h" 3 4 26629: 26629: # 266 "/usr/include/inttypes.h" 3 4 26629: extern "C" { 26629: # 280 "/usr/include/inttypes.h" 3 4 26629: typedef struct 26629: { 26629: __extension__ long long int quot; 26629: __extension__ long long int rem; 26629: } imaxdiv_t; 26629: 26629: 26629: 26629: 26629: 26629: extern intmax_t imaxabs (intmax_t __n) noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) 26629: noexcept (true) __attribute__ ((__const__)); 26629: 26629: 26629: extern intmax_t strtoimax (const char *__restrict __nptr, 26629: char **__restrict __endptr, int __base) noexcept (true); 26629: 26629: 26629: extern uintmax_t strtoumax (const char *__restrict __nptr, 26629: char ** __restrict __endptr, int __base) noexcept (true); 26629: 26629: 26629: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, 26629: wchar_t **__restrict __endptr, int __base) 26629: noexcept (true); 26629: 26629: 26629: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, 26629: wchar_t ** __restrict __endptr, int __base) 26629: noexcept (true); 26629: 26629: } 26629: # 47 "/usr/include/c++/12/cinttypes" 2 3 26629: # 55 "/usr/include/c++/12/cinttypes" 3 26629: namespace std 26629: { 26629: 26629: using ::imaxdiv_t; 26629: 26629: 26629: using ::imaxabs; 26629: using ::imaxdiv; 26629: 26629: 26629: 26629: 26629: 26629: using ::strtoimax; 26629: using ::strtoumax; 26629: 26629: 26629: using ::wcstoimax; 26629: using ::wcstoumax; 26629: 26629: } 26629: # 11 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 2 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 26629: 26629: # 19 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 26629: namespace rocksdb { 26629: 26629: constexpr uint64_t kUnknownSeqnoTime = 0; 26629: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 26629: class SeqnoToTimeMapping { 26629: public: 26629: 26629: 26629: static constexpr uint64_t kMaxSeqnoTimePairsPerSST = 100; 26629: # 49 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 26629: static constexpr uint64_t kMaxSeqnoTimePairsPerCF = 100; 26629: 26629: 26629: struct SeqnoTimePair { 26629: SequenceNumber seqno = 0; 26629: uint64_t time = 0; 26629: 26629: SeqnoTimePair() = default; 26629: SeqnoTimePair(SequenceNumber _seqno, uint64_t _time) 26629: : seqno(_seqno), time(_time) {} 26629: 26629: 26629: void Encode(std::string& dest) const; 26629: 26629: 26629: Status Decode(Slice& input); 26629: 26629: 26629: SeqnoTimePair operator-(const SeqnoTimePair& other) const; 26629: 26629: 26629: void Add(const SeqnoTimePair& obj) { 26629: seqno += obj.seqno; 26629: time += obj.time; 26629: } 26629: 26629: 26629: 26629: bool operator<(const SequenceNumber& other) const { return seqno < other; } 26629: 26629: 26629: bool operator<(const SeqnoTimePair& other) const { 26629: return std::tie(seqno, time) < std::tie(other.seqno, other.time); 26629: } 26629: 26629: 26629: bool operator==(const SeqnoTimePair& other) const { 26629: return std::tie(seqno, time) == std::tie(other.seqno, other.time); 26629: } 26629: }; 26629: # 98 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 26629: explicit SeqnoToTimeMapping(uint64_t max_time_duration = 0, 26629: uint64_t max_capacity = 0) 26629: : max_time_duration_(max_time_duration), max_capacity_(max_capacity) {} 26629: 26629: 26629: 26629: bool Append(SequenceNumber seqno, uint64_t time); 26629: 26629: 26629: uint64_t GetOldestApproximateTime(SequenceNumber seqno) const; 26629: 26629: 26629: void TruncateOldEntries(uint64_t now); 26629: 26629: 26629: SequenceNumber GetOldestSequenceNum(uint64_t time); 26629: 26629: 26629: void Encode(std::string& des, SequenceNumber start, SequenceNumber end, 26629: uint64_t now, 26629: uint64_t output_size = kMaxSeqnoTimePairsPerSST) const; 26629: 26629: 26629: 26629: void Add(SequenceNumber seqno, uint64_t time); 26629: 26629: 26629: Status Add(const std::string& seqno_time_mapping_str); 26629: 26629: 26629: size_t Size() const { return seqno_time_mapping_.size(); } 26629: 26629: 26629: bool Resize(uint64_t min_time_duration, uint64_t max_time_duration); 26629: 26629: 26629: void SetMaxTimeDuration(uint64_t max_time_duration) { 26629: max_time_duration_ = max_time_duration; 26629: } 26629: 26629: uint64_t GetCapacity() const { return max_capacity_; } 26629: 26629: 26629: 26629: Status Sort(); 26629: 26629: 26629: SeqnoToTimeMapping Copy(SequenceNumber smallest_seqno) const; 26629: 26629: 26629: bool Empty() const { return seqno_time_mapping_.empty(); } 26629: 26629: 26629: void Clear() { seqno_time_mapping_.clear(); } 26629: 26629: 26629: 26629: std::string ToHumanString() const; 26629: 26629: 26629: const std::deque& TEST_GetInternalMapping() const { 26629: return seqno_time_mapping_; 26629: } 26629: 26629: 26629: private: 26629: static constexpr uint64_t kMaxSeqnoToTimeEntries = 26629: kMaxSeqnoTimePairsPerCF * 10; 26629: 26629: uint64_t max_time_duration_; 26629: uint64_t max_capacity_; 26629: 26629: std::deque seqno_time_mapping_; 26629: 26629: bool is_sorted_ = true; 26629: 26629: static uint64_t CalculateMaxCapacity(uint64_t min_time_duration, 26629: uint64_t max_time_duration); 26629: 26629: SeqnoTimePair& Last() { 26629: 26629: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 3 4 26629: (static_cast ( 26629: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 26629: !Empty() 26629: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 26629: "!Empty()" 26629: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 3 4 26629: , "./db/seqno_to_time_mapping.h", 178, __extension__ __PRETTY_FUNCTION__)) 26629: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 26629: ; 26629: return seqno_time_mapping_.back(); 26629: } 26629: }; 26629: 26629: 26629: inline bool operator<(const SequenceNumber& seqno, 26629: const SeqnoToTimeMapping::SeqnoTimePair& other) { 26629: return seqno < other.seqno; 26629: } 26629: 26629: } 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 17 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 26629: namespace rocksdb { 26629: 26629: 26629: class IntTblPropCollector { 26629: public: 26629: virtual ~IntTblPropCollector() {} 26629: virtual Status Finish(UserCollectedProperties* properties) = 0; 26629: 26629: virtual const char* Name() const = 0; 26629: 26629: 26629: 26629: virtual Status InternalAdd(const Slice& key, const Slice& value, 26629: uint64_t file_size) = 0; 26629: 26629: virtual void BlockAdd(uint64_t block_uncomp_bytes, 26629: uint64_t block_compressed_bytes_fast, 26629: uint64_t block_compressed_bytes_slow) = 0; 26629: 26629: virtual UserCollectedProperties GetReadableProperties() const = 0; 26629: 26629: virtual bool NeedCompact() const { return false; } 26629: }; 26629: 26629: 26629: class IntTblPropCollectorFactory { 26629: public: 26629: virtual ~IntTblPropCollectorFactory() {} 26629: 26629: virtual IntTblPropCollector* CreateIntTblPropCollector( 26629: uint32_t column_family_id, int level_at_creation) = 0; 26629: 26629: 26629: virtual const char* Name() const = 0; 26629: }; 26629: 26629: using IntTblPropCollectorFactories = 26629: std::vector>; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class UserKeyTablePropertiesCollector : public IntTblPropCollector { 26629: public: 26629: 26629: explicit UserKeyTablePropertiesCollector(TablePropertiesCollector* collector) 26629: : collector_(collector) {} 26629: 26629: virtual ~UserKeyTablePropertiesCollector() {} 26629: 26629: virtual Status InternalAdd(const Slice& key, const Slice& value, 26629: uint64_t file_size) override; 26629: 26629: virtual void BlockAdd(uint64_t block_uncomp_bytes, 26629: uint64_t block_compressed_bytes_fast, 26629: uint64_t block_compressed_bytes_slow) override; 26629: 26629: virtual Status Finish(UserCollectedProperties* properties) override; 26629: 26629: virtual const char* Name() const override { return collector_->Name(); } 26629: 26629: UserCollectedProperties GetReadableProperties() const override; 26629: 26629: virtual bool NeedCompact() const override { 26629: return collector_->NeedCompact(); 26629: } 26629: 26629: protected: 26629: std::unique_ptr collector_; 26629: }; 26629: 26629: class UserKeyTablePropertiesCollectorFactory 26629: : public IntTblPropCollectorFactory { 26629: public: 26629: explicit UserKeyTablePropertiesCollectorFactory( 26629: std::shared_ptr user_collector_factory) 26629: : user_collector_factory_(user_collector_factory) {} 26629: virtual IntTblPropCollector* CreateIntTblPropCollector( 26629: uint32_t column_family_id, int level_at_creation) override { 26629: TablePropertiesCollectorFactory::Context context; 26629: context.column_family_id = column_family_id; 26629: context.level_at_creation = level_at_creation; 26629: return new UserKeyTablePropertiesCollector( 26629: user_collector_factory_->CreateTablePropertiesCollector(context)); 26629: } 26629: 26629: virtual const char* Name() const override { 26629: return user_collector_factory_->Name(); 26629: } 26629: 26629: private: 26629: std::shared_ptr user_collector_factory_; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: 26629: class TimestampTablePropertiesCollector : public IntTblPropCollector { 26629: public: 26629: explicit TimestampTablePropertiesCollector(const Comparator* cmp) 26629: : cmp_(cmp), 26629: timestamp_min_(kDisableUserTimestamp), 26629: timestamp_max_(kDisableUserTimestamp) {} 26629: 26629: Status InternalAdd(const Slice& key, const Slice& , 26629: uint64_t ) override { 26629: auto user_key = ExtractUserKey(key); 26629: 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 26629: (static_cast ( 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 26629: cmp_ && cmp_->timestamp_size() > 0 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 26629: "cmp_ && cmp_->timestamp_size() > 0" 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 26629: , "./db/table_properties_collector.h", 128, __extension__ __PRETTY_FUNCTION__)) 26629: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 26629: ; 26629: if (user_key.size() < cmp_->timestamp_size()) { 26629: return Status::Corruption( 26629: "User key size mismatch when comparing to timestamp size."); 26629: } 26629: auto timestamp_in_key = 26629: ExtractTimestampFromUserKey(user_key, cmp_->timestamp_size()); 26629: if (timestamp_max_ == kDisableUserTimestamp || 26629: cmp_->CompareTimestamp(timestamp_in_key, timestamp_max_) > 0) { 26629: timestamp_max_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 26629: } 26629: if (timestamp_min_ == kDisableUserTimestamp || 26629: cmp_->CompareTimestamp(timestamp_min_, timestamp_in_key) > 0) { 26629: timestamp_min_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 26629: } 26629: return Status::OK(); 26629: } 26629: 26629: void BlockAdd(uint64_t , 26629: uint64_t , 26629: uint64_t ) override { 26629: return; 26629: } 26629: 26629: Status Finish(UserCollectedProperties* properties) override { 26629: 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 26629: (static_cast ( 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 26629: timestamp_min_.size() == timestamp_max_.size() && timestamp_max_.size() == cmp_->timestamp_size() 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 26629: "timestamp_min_.size() == timestamp_max_.size() && timestamp_max_.size() == cmp_->timestamp_size()" 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 26629: , "./db/table_properties_collector.h", 153, __extension__ __PRETTY_FUNCTION__)) 26629: 26629: # 154 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 26629: ; 26629: properties->insert({"rocksdb.timestamp_min", timestamp_min_}); 26629: properties->insert({"rocksdb.timestamp_max", timestamp_max_}); 26629: return Status::OK(); 26629: } 26629: 26629: const char* Name() const override { 26629: return "TimestampTablePropertiesCollector"; 26629: } 26629: 26629: UserCollectedProperties GetReadableProperties() const override { 26629: return {{"rocksdb.timestamp_min", Slice(timestamp_min_).ToString(true)}, 26629: {"rocksdb.timestamp_max", Slice(timestamp_max_).ToString(true)}}; 26629: } 26629: 26629: protected: 26629: const Comparator* const cmp_; 26629: std::string timestamp_min_; 26629: std::string timestamp_max_; 26629: }; 26629: 26629: } 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 26629: 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 26629: namespace rocksdb { 26629: class Statistics; 26629: class SystemClock; 26629: # 36 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 26629: class WritableFileWriter { 26629: private: 26629: 26629: void NotifyOnFileWriteFinish( 26629: uint64_t offset, size_t length, 26629: const FileOperationInfo::StartTimePoint& start_ts, 26629: const FileOperationInfo::FinishTimePoint& finish_ts, 26629: const IOStatus& io_status) { 26629: FileOperationInfo info(FileOperationType::kWrite, file_name_, start_ts, 26629: finish_ts, io_status, temperature_); 26629: info.offset = offset; 26629: info.length = length; 26629: 26629: for (auto& listener : listeners_) { 26629: listener->OnFileWriteFinish(info); 26629: } 26629: info.status.PermitUncheckedError(); 26629: } 26629: void NotifyOnFileFlushFinish( 26629: const FileOperationInfo::StartTimePoint& start_ts, 26629: const FileOperationInfo::FinishTimePoint& finish_ts, 26629: const IOStatus& io_status) { 26629: FileOperationInfo info(FileOperationType::kFlush, file_name_, start_ts, 26629: finish_ts, io_status, temperature_); 26629: 26629: for (auto& listener : listeners_) { 26629: listener->OnFileFlushFinish(info); 26629: } 26629: info.status.PermitUncheckedError(); 26629: } 26629: void NotifyOnFileSyncFinish( 26629: const FileOperationInfo::StartTimePoint& start_ts, 26629: const FileOperationInfo::FinishTimePoint& finish_ts, 26629: const IOStatus& io_status, 26629: FileOperationType type = FileOperationType::kSync) { 26629: FileOperationInfo info(type, file_name_, start_ts, finish_ts, io_status, 26629: temperature_); 26629: 26629: for (auto& listener : listeners_) { 26629: listener->OnFileSyncFinish(info); 26629: } 26629: info.status.PermitUncheckedError(); 26629: } 26629: void NotifyOnFileRangeSyncFinish( 26629: uint64_t offset, size_t length, 26629: const FileOperationInfo::StartTimePoint& start_ts, 26629: const FileOperationInfo::FinishTimePoint& finish_ts, 26629: const IOStatus& io_status) { 26629: FileOperationInfo info(FileOperationType::kRangeSync, file_name_, start_ts, 26629: finish_ts, io_status, temperature_); 26629: info.offset = offset; 26629: info.length = length; 26629: 26629: for (auto& listener : listeners_) { 26629: listener->OnFileRangeSyncFinish(info); 26629: } 26629: info.status.PermitUncheckedError(); 26629: } 26629: void NotifyOnFileTruncateFinish( 26629: const FileOperationInfo::StartTimePoint& start_ts, 26629: const FileOperationInfo::FinishTimePoint& finish_ts, 26629: const IOStatus& io_status) { 26629: FileOperationInfo info(FileOperationType::kTruncate, file_name_, start_ts, 26629: finish_ts, io_status, temperature_); 26629: 26629: for (auto& listener : listeners_) { 26629: listener->OnFileTruncateFinish(info); 26629: } 26629: info.status.PermitUncheckedError(); 26629: } 26629: void NotifyOnFileCloseFinish( 26629: const FileOperationInfo::StartTimePoint& start_ts, 26629: const FileOperationInfo::FinishTimePoint& finish_ts, 26629: const IOStatus& io_status) { 26629: FileOperationInfo info(FileOperationType::kClose, file_name_, start_ts, 26629: finish_ts, io_status, temperature_); 26629: 26629: for (auto& listener : listeners_) { 26629: listener->OnFileCloseFinish(info); 26629: } 26629: info.status.PermitUncheckedError(); 26629: } 26629: 26629: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 26629: const std::string& file_path, size_t length = 0, 26629: uint64_t offset = 0) { 26629: if (listeners_.empty()) { 26629: return; 26629: } 26629: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 26629: for (auto& listener : listeners_) { 26629: listener->OnIOError(io_error_info); 26629: } 26629: io_error_info.io_status.PermitUncheckedError(); 26629: } 26629: 26629: 26629: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 26629: void UpdateFileChecksum(const Slice& data); 26629: void Crc32cHandoffChecksumCalculation(const char* data, size_t size, 26629: char* buf); 26629: 26629: std::string file_name_; 26629: FSWritableFilePtr writable_file_; 26629: SystemClock* clock_; 26629: AlignedBuffer buf_; 26629: size_t max_buffer_size_; 26629: 26629: 26629: std::atomic filesize_; 26629: std::atomic flushed_size_; 26629: 26629: 26629: 26629: 26629: uint64_t next_write_offset_; 26629: 26629: bool pending_sync_; 26629: std::atomic seen_error_; 26629: 26629: 26629: 26629: 26629: 26629: std::atomic sync_without_flush_called_ = false; 26629: 26629: uint64_t last_sync_size_; 26629: uint64_t bytes_per_sync_; 26629: RateLimiter* rate_limiter_; 26629: Statistics* stats_; 26629: std::vector> listeners_; 26629: std::unique_ptr checksum_generator_; 26629: bool checksum_finalized_; 26629: bool perform_data_verification_; 26629: uint32_t buffered_data_crc32c_checksum_; 26629: bool buffered_data_with_checksum_; 26629: 26629: Temperature temperature_; 26629: 26629: 26629: public: 26629: WritableFileWriter( 26629: std::unique_ptr&& file, const std::string& _file_name, 26629: const FileOptions& options, SystemClock* clock = nullptr, 26629: const std::shared_ptr& io_tracer = nullptr, 26629: Statistics* stats = nullptr, 26629: const std::vector>& listeners = {}, 26629: FileChecksumGenFactory* file_checksum_gen_factory = nullptr, 26629: bool perform_data_verification = false, 26629: bool buffered_data_with_checksum = false) 26629: : file_name_(_file_name), 26629: writable_file_(std::move(file), io_tracer, _file_name), 26629: clock_(clock), 26629: buf_(), 26629: max_buffer_size_(options.writable_file_max_buffer_size), 26629: filesize_(0), 26629: flushed_size_(0), 26629: 26629: next_write_offset_(0), 26629: 26629: pending_sync_(false), 26629: seen_error_(false), 26629: last_sync_size_(0), 26629: bytes_per_sync_(options.bytes_per_sync), 26629: rate_limiter_(options.rate_limiter), 26629: stats_(stats), 26629: listeners_(), 26629: checksum_generator_(nullptr), 26629: checksum_finalized_(false), 26629: perform_data_verification_(perform_data_verification), 26629: buffered_data_crc32c_checksum_(0), 26629: buffered_data_with_checksum_(buffered_data_with_checksum) { 26629: 26629: temperature_ = options.temperature; 26629: 26629: 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 26629: (static_cast ( 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 26629: !use_direct_io() || max_buffer_size_ > 0 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 26629: "!use_direct_io() || max_buffer_size_ > 0" 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 26629: , "./file/writable_file_writer.h", 211, __extension__ __PRETTY_FUNCTION__)) 26629: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 26629: ; 26629: rocksdb::SyncPoint::GetInstance()->Process("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_)) 26629: ; 26629: buf_.Alignment(writable_file_->GetRequiredBufferAlignment()); 26629: buf_.AllocateNewBuffer(std::min((size_t)65536, max_buffer_size_)); 26629: 26629: std::for_each(listeners.begin(), listeners.end(), 26629: [this](const std::shared_ptr& e) { 26629: if (e->ShouldBeNotifiedOnFileIO()) { 26629: listeners_.emplace_back(e); 26629: } 26629: }); 26629: 26629: 26629: 26629: if (file_checksum_gen_factory != nullptr) { 26629: FileChecksumGenContext checksum_gen_context; 26629: checksum_gen_context.file_name = _file_name; 26629: checksum_generator_ = 26629: file_checksum_gen_factory->CreateFileChecksumGenerator( 26629: checksum_gen_context); 26629: } 26629: } 26629: 26629: static IOStatus Create(const std::shared_ptr& fs, 26629: const std::string& fname, const FileOptions& file_opts, 26629: std::unique_ptr* writer, 26629: IODebugContext* dbg); 26629: WritableFileWriter(const WritableFileWriter&) = delete; 26629: 26629: WritableFileWriter& operator=(const WritableFileWriter&) = delete; 26629: 26629: ~WritableFileWriter() { 26629: auto s = Close(); 26629: s.PermitUncheckedError(); 26629: } 26629: 26629: std::string file_name() const { return file_name_; } 26629: 26629: 26629: 26629: IOStatus Append(const Slice& data, uint32_t crc32c_checksum = 0, 26629: Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 26629: 26629: IOStatus Pad(const size_t pad_bytes, 26629: Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 26629: 26629: IOStatus Flush(Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 26629: 26629: IOStatus Close(); 26629: 26629: IOStatus Sync(bool use_fsync); 26629: 26629: 26629: 26629: 26629: IOStatus SyncWithoutFlush(bool use_fsync); 26629: 26629: uint64_t GetFileSize() const { 26629: return filesize_.load(std::memory_order_acquire); 26629: } 26629: 26629: 26629: 26629: 26629: 26629: uint64_t GetFlushedSize() const { 26629: return flushed_size_.load(std::memory_order_acquire); 26629: } 26629: 26629: IOStatus InvalidateCache(size_t offset, size_t length) { 26629: return writable_file_->InvalidateCache(offset, length); 26629: } 26629: 26629: FSWritableFile* writable_file() const { return writable_file_.get(); } 26629: 26629: bool use_direct_io() { return writable_file_->use_direct_io(); } 26629: 26629: bool BufferIsEmpty() { return buf_.CurrentSize() == 0; } 26629: 26629: void TEST_SetFileChecksumGenerator( 26629: FileChecksumGenerator* checksum_generator) { 26629: checksum_generator_.reset(checksum_generator); 26629: } 26629: 26629: std::string GetFileChecksum(); 26629: 26629: const char* GetFileChecksumFuncName() const; 26629: 26629: bool seen_error() const { 26629: return seen_error_.load(std::memory_order_relaxed); 26629: } 26629: 26629: 26629: void reset_seen_error() { 26629: seen_error_.store(false, std::memory_order_relaxed); 26629: } 26629: void set_seen_error() { seen_error_.store(true, std::memory_order_relaxed); } 26629: 26629: IOStatus AssertFalseAndGetStatusForPrevError() { 26629: 26629: 26629: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 26629: (static_cast ( 26629: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 26629: sync_without_flush_called_ 26629: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 26629: "sync_without_flush_called_" 26629: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 26629: , "./file/writable_file_writer.h", 312, __extension__ __PRETTY_FUNCTION__)) 26629: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 26629: ; 26629: return IOStatus::IOError("Writer has previous error."); 26629: } 26629: 26629: private: 26629: 26629: static Env::IOPriority DecideRateLimiterPriority( 26629: Env::IOPriority writable_file_io_priority, 26629: Env::IOPriority op_rate_limiter_priority); 26629: 26629: 26629: 26629: 26629: IOStatus WriteDirect(Env::IOPriority op_rate_limiter_priority); 26629: IOStatus WriteDirectWithChecksum(Env::IOPriority op_rate_limiter_priority); 26629: 26629: 26629: IOStatus WriteBuffered(const char* data, size_t size, 26629: Env::IOPriority op_rate_limiter_priority); 26629: IOStatus WriteBufferedWithChecksum(const char* data, size_t size, 26629: Env::IOPriority op_rate_limiter_priority); 26629: IOStatus RangeSync(uint64_t offset, uint64_t nbytes); 26629: IOStatus SyncInternal(bool use_fsync); 26629: }; 26629: } 26629: # 22 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 2 26629: 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/block_cache_tracer.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/block_cache_tracer.h" 26629: namespace rocksdb { 26629: class Env; 26629: class SystemClock; 26629: 26629: extern const uint64_t kMicrosInSecond; 26629: extern const uint64_t kSecondInMinute; 26629: extern const uint64_t kSecondInHour; 26629: 26629: struct BlockCacheTraceRecord; 26629: 26629: class BlockCacheTraceHelper { 26629: public: 26629: static bool IsGetOrMultiGetOnDataBlock(TraceType block_type, 26629: TableReaderCaller caller); 26629: static bool IsGetOrMultiGet(TableReaderCaller caller); 26629: static bool IsUserAccess(TableReaderCaller caller); 26629: 26629: 26629: static std::string ComputeRowKey(const BlockCacheTraceRecord& access); 26629: 26629: 26629: static uint64_t GetTableId(const BlockCacheTraceRecord& access); 26629: 26629: 26629: static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); 26629: 26629: static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); 26629: 26629: static const std::string kUnknownColumnFamilyName; 26629: static const uint64_t kReservedGetId; 26629: }; 26629: # 69 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/block_cache_tracer.h" 26629: struct BlockCacheLookupContext { 26629: BlockCacheLookupContext(const TableReaderCaller& _caller) : caller(_caller) {} 26629: BlockCacheLookupContext(const TableReaderCaller& _caller, uint64_t _get_id, 26629: bool _get_from_user_specified_snapshot) 26629: : caller(_caller), 26629: get_id(_get_id), 26629: get_from_user_specified_snapshot(_get_from_user_specified_snapshot) {} 26629: const TableReaderCaller caller; 26629: 26629: 26629: 26629: bool is_cache_hit = false; 26629: bool no_insert = false; 26629: TraceType block_type = TraceType::kTraceMax; 26629: uint64_t block_size = 0; 26629: std::string block_key; 26629: uint64_t num_keys_in_block = 0; 26629: 26629: 26629: 26629: uint64_t get_id = 0; 26629: std::string referenced_key; 26629: bool get_from_user_specified_snapshot = false; 26629: 26629: void FillLookupContext(bool _is_cache_hit, bool _no_insert, 26629: TraceType _block_type, uint64_t _block_size, 26629: const std::string& _block_key, 26629: uint64_t _num_keys_in_block) { 26629: is_cache_hit = _is_cache_hit; 26629: no_insert = _no_insert; 26629: block_type = _block_type; 26629: block_size = _block_size; 26629: block_key = _block_key; 26629: num_keys_in_block = _num_keys_in_block; 26629: } 26629: }; 26629: 26629: struct BlockCacheTraceHeader { 26629: uint64_t start_time; 26629: uint32_t rocksdb_major_version; 26629: uint32_t rocksdb_minor_version; 26629: }; 26629: 26629: 26629: 26629: 26629: 26629: class BlockCacheTraceWriterImpl : public BlockCacheTraceWriter { 26629: public: 26629: BlockCacheTraceWriterImpl(SystemClock* clock, 26629: const BlockCacheTraceWriterOptions& trace_options, 26629: std::unique_ptr&& trace_writer); 26629: ~BlockCacheTraceWriterImpl() = default; 26629: 26629: BlockCacheTraceWriterImpl(const BlockCacheTraceWriterImpl&) = delete; 26629: BlockCacheTraceWriterImpl& operator=(const BlockCacheTraceWriterImpl&) = 26629: delete; 26629: BlockCacheTraceWriterImpl(BlockCacheTraceWriterImpl&&) = delete; 26629: BlockCacheTraceWriterImpl& operator=(BlockCacheTraceWriterImpl&&) = delete; 26629: 26629: 26629: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 26629: const Slice& block_key, const Slice& cf_name, 26629: const Slice& referenced_key); 26629: 26629: 26629: 26629: Status WriteHeader(); 26629: 26629: private: 26629: SystemClock* clock_; 26629: BlockCacheTraceWriterOptions trace_options_; 26629: std::unique_ptr trace_writer_; 26629: }; 26629: 26629: 26629: 26629: 26629: class BlockCacheHumanReadableTraceWriter { 26629: public: 26629: ~BlockCacheHumanReadableTraceWriter(); 26629: 26629: Status NewWritableFile(const std::string& human_readable_trace_file_path, 26629: rocksdb::Env* env); 26629: 26629: Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, 26629: uint64_t block_id, uint64_t get_key_id); 26629: 26629: private: 26629: char trace_record_buffer_[1024 * 1024]; 26629: std::unique_ptr 26629: human_readable_trace_file_writer_; 26629: }; 26629: 26629: 26629: 26629: class BlockCacheTraceReader { 26629: public: 26629: BlockCacheTraceReader(std::unique_ptr&& reader); 26629: virtual ~BlockCacheTraceReader() = default; 26629: 26629: BlockCacheTraceReader(const BlockCacheTraceReader&) = delete; 26629: BlockCacheTraceReader& operator=(const BlockCacheTraceReader&) = delete; 26629: BlockCacheTraceReader(BlockCacheTraceReader&&) = delete; 26629: BlockCacheTraceReader& operator=(BlockCacheTraceReader&&) = delete; 26629: 26629: Status ReadHeader(BlockCacheTraceHeader* header); 26629: 26629: Status ReadAccess(BlockCacheTraceRecord* record); 26629: 26629: private: 26629: std::unique_ptr trace_reader_; 26629: }; 26629: 26629: 26629: 26629: 26629: class BlockCacheHumanReadableTraceReader : public BlockCacheTraceReader { 26629: public: 26629: BlockCacheHumanReadableTraceReader(const std::string& trace_file_path); 26629: 26629: ~BlockCacheHumanReadableTraceReader(); 26629: 26629: Status ReadHeader(BlockCacheTraceHeader* header); 26629: 26629: Status ReadAccess(BlockCacheTraceRecord* record); 26629: 26629: private: 26629: std::ifstream human_readable_trace_reader_; 26629: }; 26629: 26629: 26629: 26629: 26629: class BlockCacheTracer { 26629: public: 26629: BlockCacheTracer(); 26629: ~BlockCacheTracer(); 26629: 26629: BlockCacheTracer(const BlockCacheTracer&) = delete; 26629: BlockCacheTracer& operator=(const BlockCacheTracer&) = delete; 26629: BlockCacheTracer(BlockCacheTracer&&) = delete; 26629: BlockCacheTracer& operator=(BlockCacheTracer&&) = delete; 26629: 26629: 26629: Status StartTrace(const BlockCacheTraceOptions& trace_options, 26629: std::unique_ptr&& trace_writer); 26629: 26629: 26629: void EndTrace(); 26629: 26629: bool is_tracing_enabled() const { 26629: return writer_.load(std::memory_order_relaxed); 26629: } 26629: 26629: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 26629: const Slice& block_key, const Slice& cf_name, 26629: const Slice& referenced_key); 26629: 26629: 26629: uint64_t NextGetId(); 26629: 26629: private: 26629: BlockCacheTraceOptions trace_options_; 26629: 26629: InstrumentedMutex trace_writer_mutex_; 26629: std::atomic writer_; 26629: std::atomic get_id_counter_; 26629: }; 26629: 26629: } 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: class Status; 26629: 26629: struct TableReaderOptions { 26629: 26629: TableReaderOptions( 26629: const ImmutableOptions& _ioptions, 26629: const std::shared_ptr& _prefix_extractor, 26629: const EnvOptions& _env_options, 26629: const InternalKeyComparator& _internal_comparator, 26629: bool _skip_filters = false, bool _immortal = false, 26629: bool _force_direct_prefetch = false, int _level = -1, 26629: BlockCacheTracer* const _block_cache_tracer = nullptr, 26629: size_t _max_file_size_for_l0_meta_pin = 0, 26629: const std::string& _cur_db_session_id = "", uint64_t _cur_file_num = 0, 26629: UniqueId64x2 _unique_id = {}, SequenceNumber _largest_seqno = 0) 26629: : ioptions(_ioptions), 26629: prefix_extractor(_prefix_extractor), 26629: env_options(_env_options), 26629: internal_comparator(_internal_comparator), 26629: skip_filters(_skip_filters), 26629: immortal(_immortal), 26629: force_direct_prefetch(_force_direct_prefetch), 26629: level(_level), 26629: largest_seqno(_largest_seqno), 26629: block_cache_tracer(_block_cache_tracer), 26629: max_file_size_for_l0_meta_pin(_max_file_size_for_l0_meta_pin), 26629: cur_db_session_id(_cur_db_session_id), 26629: cur_file_num(_cur_file_num), 26629: unique_id(_unique_id) {} 26629: 26629: const ImmutableOptions& ioptions; 26629: const std::shared_ptr& prefix_extractor; 26629: const EnvOptions& env_options; 26629: const InternalKeyComparator& internal_comparator; 26629: 26629: bool skip_filters; 26629: 26629: bool immortal; 26629: 26629: 26629: 26629: bool force_direct_prefetch; 26629: 26629: 26629: int level; 26629: 26629: SequenceNumber largest_seqno; 26629: BlockCacheTracer* const block_cache_tracer; 26629: 26629: 26629: const size_t max_file_size_for_l0_meta_pin; 26629: 26629: std::string cur_db_session_id; 26629: 26629: uint64_t cur_file_num; 26629: 26629: 26629: UniqueId64x2 unique_id; 26629: }; 26629: 26629: struct TableBuilderOptions { 26629: TableBuilderOptions( 26629: const ImmutableOptions& _ioptions, const MutableCFOptions& _moptions, 26629: const InternalKeyComparator& _internal_comparator, 26629: const IntTblPropCollectorFactories* _int_tbl_prop_collector_factories, 26629: CompressionType _compression_type, 26629: const CompressionOptions& _compression_opts, uint32_t _column_family_id, 26629: const std::string& _column_family_name, int _level, 26629: bool _is_bottommost = false, 26629: TableFileCreationReason _reason = TableFileCreationReason::kMisc, 26629: const int64_t _oldest_key_time = 0, 26629: const uint64_t _file_creation_time = 0, const std::string& _db_id = "", 26629: const std::string& _db_session_id = "", 26629: const uint64_t _target_file_size = 0, const uint64_t _cur_file_num = 0) 26629: : ioptions(_ioptions), 26629: moptions(_moptions), 26629: internal_comparator(_internal_comparator), 26629: int_tbl_prop_collector_factories(_int_tbl_prop_collector_factories), 26629: compression_type(_compression_type), 26629: compression_opts(_compression_opts), 26629: column_family_id(_column_family_id), 26629: column_family_name(_column_family_name), 26629: oldest_key_time(_oldest_key_time), 26629: target_file_size(_target_file_size), 26629: file_creation_time(_file_creation_time), 26629: db_id(_db_id), 26629: db_session_id(_db_session_id), 26629: level_at_creation(_level), 26629: is_bottommost(_is_bottommost), 26629: reason(_reason), 26629: cur_file_num(_cur_file_num) {} 26629: 26629: const ImmutableOptions& ioptions; 26629: const MutableCFOptions& moptions; 26629: const InternalKeyComparator& internal_comparator; 26629: const IntTblPropCollectorFactories* int_tbl_prop_collector_factories; 26629: const CompressionType compression_type; 26629: const CompressionOptions& compression_opts; 26629: const uint32_t column_family_id; 26629: const std::string& column_family_name; 26629: const int64_t oldest_key_time; 26629: const uint64_t target_file_size; 26629: const uint64_t file_creation_time; 26629: const std::string db_id; 26629: const std::string db_session_id; 26629: 26629: const int level_at_creation; 26629: const bool is_bottommost; 26629: const TableFileCreationReason reason; 26629: 26629: 26629: 26629: 26629: 26629: bool skip_filters = false; 26629: const uint64_t cur_file_num; 26629: }; 26629: # 156 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 26629: class TableBuilder { 26629: public: 26629: 26629: virtual ~TableBuilder() {} 26629: 26629: 26629: 26629: 26629: virtual void Add(const Slice& key, const Slice& value) = 0; 26629: 26629: 26629: virtual Status status() const = 0; 26629: 26629: 26629: virtual IOStatus io_status() const = 0; 26629: 26629: 26629: 26629: virtual Status Finish() = 0; 26629: 26629: 26629: 26629: 26629: 26629: virtual void Abandon() = 0; 26629: 26629: 26629: virtual uint64_t NumEntries() const = 0; 26629: 26629: 26629: 26629: virtual bool IsEmpty() const { 26629: return NumEntries() == 0 && GetTableProperties().num_range_deletions == 0; 26629: } 26629: 26629: 26629: 26629: virtual uint64_t FileSize() const = 0; 26629: 26629: 26629: 26629: 26629: virtual uint64_t EstimatedFileSize() const { return FileSize(); } 26629: 26629: 26629: 26629: virtual bool NeedCompact() const { return false; } 26629: 26629: 26629: virtual TableProperties GetTableProperties() const = 0; 26629: 26629: 26629: virtual std::string GetFileChecksum() const = 0; 26629: 26629: 26629: virtual const char* GetFileChecksumFuncName() const = 0; 26629: 26629: 26629: virtual void SetSeqnoTimeTableProperties( 26629: const std::string& , 26629: uint64_t ){}; 26629: }; 26629: 26629: } 26629: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: # 40 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: template> 26629: class BinaryHeap { 26629: public: 26629: BinaryHeap() { } 26629: explicit BinaryHeap(Compare cmp) : cmp_(std::move(cmp)) { } 26629: 26629: void push(const T& value) { 26629: data_.push_back(value); 26629: upheap(data_.size() - 1); 26629: } 26629: 26629: void push(T&& value) { 26629: data_.push_back(std::move(value)); 26629: upheap(data_.size() - 1); 26629: } 26629: 26629: const T& top() const { 26629: 26629: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: (static_cast ( 26629: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: !empty() 26629: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: "!empty()" 26629: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: , "./util/heap.h", 57, __extension__ __PRETTY_FUNCTION__)) 26629: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: ; 26629: return data_.front(); 26629: } 26629: 26629: void replace_top(const T& value) { 26629: 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: (static_cast ( 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: !empty() 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: "!empty()" 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: , "./util/heap.h", 62, __extension__ __PRETTY_FUNCTION__)) 26629: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: ; 26629: data_.front() = value; 26629: downheap(get_root()); 26629: } 26629: 26629: void replace_top(T&& value) { 26629: 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: (static_cast ( 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: !empty() 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: "!empty()" 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: , "./util/heap.h", 68, __extension__ __PRETTY_FUNCTION__)) 26629: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: ; 26629: data_.front() = std::move(value); 26629: downheap(get_root()); 26629: } 26629: 26629: void pop() { 26629: 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: (static_cast ( 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: !empty() 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: "!empty()" 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: , "./util/heap.h", 74, __extension__ __PRETTY_FUNCTION__)) 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: ; 26629: if (data_.size() > 1) { 26629: 26629: 26629: 26629: data_.front() = std::move(data_.back()); 26629: } 26629: data_.pop_back(); 26629: if (!empty()) { 26629: downheap(get_root()); 26629: } else { 26629: reset_root_cmp_cache(); 26629: } 26629: } 26629: 26629: void swap(BinaryHeap &other) { 26629: std::swap(cmp_, other.cmp_); 26629: data_.swap(other.data_); 26629: std::swap(root_cmp_cache_, other.root_cmp_cache_); 26629: } 26629: 26629: void clear() { 26629: data_.clear(); 26629: reset_root_cmp_cache(); 26629: } 26629: 26629: bool empty() const { return data_.empty(); } 26629: 26629: size_t size() const { return data_.size(); } 26629: 26629: void reset_root_cmp_cache() { 26629: root_cmp_cache_ = std::numeric_limits::max(); 26629: } 26629: 26629: private: 26629: static inline size_t get_root() { return 0; } 26629: static inline size_t get_parent(size_t index) { return (index - 1) / 2; } 26629: static inline size_t get_left(size_t index) { return 2 * index + 1; } 26629: static inline size_t get_right(size_t index) { return 2 * index + 2; } 26629: 26629: void upheap(size_t index) { 26629: T v = std::move(data_[index]); 26629: while (index > get_root()) { 26629: const size_t parent = get_parent(index); 26629: if (!cmp_(data_[parent], v)) { 26629: break; 26629: } 26629: data_[index] = std::move(data_[parent]); 26629: index = parent; 26629: } 26629: data_[index] = std::move(v); 26629: reset_root_cmp_cache(); 26629: } 26629: 26629: void downheap(size_t index) { 26629: T v = std::move(data_[index]); 26629: 26629: size_t picked_child = std::numeric_limits::max(); 26629: while (1) { 26629: const size_t left_child = get_left(index); 26629: if (get_left(index) >= data_.size()) { 26629: break; 26629: } 26629: const size_t right_child = left_child + 1; 26629: 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: (static_cast ( 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: right_child == get_right(index) 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: "right_child == get_right(index)" 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 26629: , "./util/heap.h", 138, __extension__ __PRETTY_FUNCTION__)) 26629: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 26629: ; 26629: picked_child = left_child; 26629: if (index == 0 && root_cmp_cache_ < data_.size()) { 26629: picked_child = root_cmp_cache_; 26629: } else if (right_child < data_.size() && 26629: cmp_(data_[left_child], data_[right_child])) { 26629: picked_child = right_child; 26629: } 26629: if (!cmp_(v, data_[picked_child])) { 26629: break; 26629: } 26629: data_[index] = std::move(data_[picked_child]); 26629: index = picked_child; 26629: } 26629: 26629: if (index == 0) { 26629: 26629: 26629: 26629: 26629: root_cmp_cache_ = picked_child; 26629: } else { 26629: 26629: reset_root_cmp_cache(); 26629: } 26629: 26629: data_[index] = std::move(v); 26629: } 26629: 26629: Compare cmp_; 26629: autovector data_; 26629: 26629: size_t root_cmp_cache_ = std::numeric_limits::max(); 26629: }; 26629: 26629: } 26629: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/kv_map.h" 1 26629: 26629: 26629: 26629: 26629: 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/util/kv_map.h" 26629: namespace rocksdb { 26629: namespace stl_wrappers { 26629: 26629: struct LessOfComparator { 26629: explicit LessOfComparator(const Comparator* c = BytewiseComparator()) 26629: : cmp(c) {} 26629: 26629: bool operator()(const std::string& a, const std::string& b) const { 26629: return cmp->Compare(Slice(a), Slice(b)) < 0; 26629: } 26629: bool operator()(const Slice& a, const Slice& b) const { 26629: return cmp->Compare(a, b) < 0; 26629: } 26629: 26629: const Comparator* cmp; 26629: }; 26629: 26629: using KVMap = std::map; 26629: } 26629: } 26629: # 29 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 2 26629: 26629: namespace rocksdb { 26629: 26629: class TruncatedRangeDelIterator { 26629: public: 26629: TruncatedRangeDelIterator( 26629: std::unique_ptr iter, 26629: const InternalKeyComparator* icmp, const InternalKey* smallest, 26629: const InternalKey* largest); 26629: 26629: bool Valid() const; 26629: 26629: void Next() { iter_->TopNext(); } 26629: void Prev() { iter_->TopPrev(); } 26629: 26629: void InternalNext() { iter_->Next(); } 26629: 26629: 26629: 26629: 26629: 26629: void Seek(const Slice& target); 26629: 26629: 26629: 26629: 26629: void SeekForPrev(const Slice& target); 26629: 26629: void SeekToFirst(); 26629: void SeekToLast(); 26629: 26629: ParsedInternalKey start_key() const { 26629: return (smallest_ == nullptr || 26629: icmp_->Compare(*smallest_, iter_->parsed_start_key()) <= 0) 26629: ? iter_->parsed_start_key() 26629: : *smallest_; 26629: } 26629: 26629: ParsedInternalKey end_key() const { 26629: return (largest_ == nullptr || 26629: icmp_->Compare(iter_->parsed_end_key(), *largest_) <= 0) 26629: ? iter_->parsed_end_key() 26629: : *largest_; 26629: } 26629: 26629: SequenceNumber seq() const { return iter_->seq(); } 26629: Slice timestamp() const { 26629: 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: (static_cast ( 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: icmp_->user_comparator()->timestamp_size() 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: "icmp_->user_comparator()->timestamp_size()" 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: , "./db/range_del_aggregator.h", 76, __extension__ __PRETTY_FUNCTION__)) 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: ; 26629: return iter_->timestamp(); 26629: } 26629: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 26629: iter_->SetTimestampUpperBound(ts_upper_bound); 26629: } 26629: 26629: std::map> 26629: SplitBySnapshot(const std::vector& snapshots); 26629: 26629: SequenceNumber upper_bound() const { return iter_->upper_bound(); } 26629: 26629: SequenceNumber lower_bound() const { return iter_->lower_bound(); } 26629: 26629: private: 26629: std::unique_ptr iter_; 26629: const InternalKeyComparator* icmp_; 26629: const ParsedInternalKey* smallest_ = nullptr; 26629: const ParsedInternalKey* largest_ = nullptr; 26629: std::list pinned_bounds_; 26629: 26629: const InternalKey* smallest_ikey_; 26629: const InternalKey* largest_ikey_; 26629: }; 26629: 26629: struct SeqMaxComparator { 26629: bool operator()(const TruncatedRangeDelIterator* a, 26629: const TruncatedRangeDelIterator* b) const { 26629: return a->seq() > b->seq(); 26629: } 26629: }; 26629: 26629: struct StartKeyMinComparator { 26629: explicit StartKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 26629: 26629: bool operator()(const TruncatedRangeDelIterator* a, 26629: const TruncatedRangeDelIterator* b) const { 26629: return icmp->Compare(a->start_key(), b->start_key()) > 0; 26629: } 26629: 26629: const InternalKeyComparator* icmp; 26629: }; 26629: 26629: class ForwardRangeDelIterator { 26629: public: 26629: explicit ForwardRangeDelIterator(const InternalKeyComparator* icmp); 26629: 26629: bool ShouldDelete(const ParsedInternalKey& parsed); 26629: void Invalidate(); 26629: 26629: void AddNewIter(TruncatedRangeDelIterator* iter, 26629: const ParsedInternalKey& parsed) { 26629: iter->Seek(parsed.user_key); 26629: PushIter(iter, parsed); 26629: 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: (static_cast ( 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: active_iters_.size() == active_seqnums_.size() 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: "active_iters_.size() == active_seqnums_.size()" 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: , "./db/range_del_aggregator.h", 130, __extension__ __PRETTY_FUNCTION__)) 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: ; 26629: } 26629: 26629: size_t UnusedIdx() const { return unused_idx_; } 26629: void IncUnusedIdx() { unused_idx_++; } 26629: 26629: private: 26629: using ActiveSeqSet = 26629: std::multiset; 26629: 26629: struct EndKeyMinComparator { 26629: explicit EndKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 26629: 26629: bool operator()(const ActiveSeqSet::const_iterator& a, 26629: const ActiveSeqSet::const_iterator& b) const { 26629: return icmp->Compare((*a)->end_key(), (*b)->end_key()) > 0; 26629: } 26629: 26629: const InternalKeyComparator* icmp; 26629: }; 26629: 26629: void PushIter(TruncatedRangeDelIterator* iter, 26629: const ParsedInternalKey& parsed) { 26629: if (!iter->Valid()) { 26629: 26629: 26629: return; 26629: } 26629: int cmp = icmp_->Compare(parsed, iter->start_key()); 26629: if (cmp < 0) { 26629: PushInactiveIter(iter); 26629: } else { 26629: PushActiveIter(iter); 26629: } 26629: } 26629: 26629: void PushActiveIter(TruncatedRangeDelIterator* iter) { 26629: auto seq_pos = active_seqnums_.insert(iter); 26629: active_iters_.push(seq_pos); 26629: } 26629: 26629: TruncatedRangeDelIterator* PopActiveIter() { 26629: auto active_top = active_iters_.top(); 26629: auto iter = *active_top; 26629: active_iters_.pop(); 26629: active_seqnums_.erase(active_top); 26629: return iter; 26629: } 26629: 26629: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 26629: inactive_iters_.push(iter); 26629: } 26629: 26629: TruncatedRangeDelIterator* PopInactiveIter() { 26629: auto* iter = inactive_iters_.top(); 26629: inactive_iters_.pop(); 26629: return iter; 26629: } 26629: 26629: const InternalKeyComparator* icmp_; 26629: size_t unused_idx_; 26629: ActiveSeqSet active_seqnums_; 26629: BinaryHeap active_iters_; 26629: BinaryHeap inactive_iters_; 26629: }; 26629: 26629: class ReverseRangeDelIterator { 26629: public: 26629: explicit ReverseRangeDelIterator(const InternalKeyComparator* icmp); 26629: 26629: bool ShouldDelete(const ParsedInternalKey& parsed); 26629: void Invalidate(); 26629: 26629: void AddNewIter(TruncatedRangeDelIterator* iter, 26629: const ParsedInternalKey& parsed) { 26629: iter->SeekForPrev(parsed.user_key); 26629: PushIter(iter, parsed); 26629: 26629: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: (static_cast ( 26629: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: active_iters_.size() == active_seqnums_.size() 26629: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: "active_iters_.size() == active_seqnums_.size()" 26629: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: , "./db/range_del_aggregator.h", 207, __extension__ __PRETTY_FUNCTION__)) 26629: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: ; 26629: } 26629: 26629: size_t UnusedIdx() const { return unused_idx_; } 26629: void IncUnusedIdx() { unused_idx_++; } 26629: 26629: private: 26629: using ActiveSeqSet = 26629: std::multiset; 26629: 26629: struct EndKeyMaxComparator { 26629: explicit EndKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 26629: 26629: bool operator()(const TruncatedRangeDelIterator* a, 26629: const TruncatedRangeDelIterator* b) const { 26629: return icmp->Compare(a->end_key(), b->end_key()) < 0; 26629: } 26629: 26629: const InternalKeyComparator* icmp; 26629: }; 26629: struct StartKeyMaxComparator { 26629: explicit StartKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 26629: 26629: bool operator()(const ActiveSeqSet::const_iterator& a, 26629: const ActiveSeqSet::const_iterator& b) const { 26629: return icmp->Compare((*a)->start_key(), (*b)->start_key()) < 0; 26629: } 26629: 26629: const InternalKeyComparator* icmp; 26629: }; 26629: 26629: void PushIter(TruncatedRangeDelIterator* iter, 26629: const ParsedInternalKey& parsed) { 26629: if (!iter->Valid()) { 26629: 26629: 26629: } else if (icmp_->Compare(iter->end_key(), parsed) <= 0) { 26629: PushInactiveIter(iter); 26629: } else { 26629: PushActiveIter(iter); 26629: } 26629: } 26629: 26629: void PushActiveIter(TruncatedRangeDelIterator* iter) { 26629: auto seq_pos = active_seqnums_.insert(iter); 26629: active_iters_.push(seq_pos); 26629: } 26629: 26629: TruncatedRangeDelIterator* PopActiveIter() { 26629: auto active_top = active_iters_.top(); 26629: auto iter = *active_top; 26629: active_iters_.pop(); 26629: active_seqnums_.erase(active_top); 26629: return iter; 26629: } 26629: 26629: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 26629: inactive_iters_.push(iter); 26629: } 26629: 26629: TruncatedRangeDelIterator* PopInactiveIter() { 26629: auto* iter = inactive_iters_.top(); 26629: inactive_iters_.pop(); 26629: return iter; 26629: } 26629: 26629: const InternalKeyComparator* icmp_; 26629: size_t unused_idx_; 26629: ActiveSeqSet active_seqnums_; 26629: BinaryHeap active_iters_; 26629: BinaryHeap inactive_iters_; 26629: }; 26629: 26629: enum class RangeDelPositioningMode { kForwardTraversal, kBackwardTraversal }; 26629: class RangeDelAggregator { 26629: public: 26629: explicit RangeDelAggregator(const InternalKeyComparator* icmp) 26629: : icmp_(icmp) {} 26629: virtual ~RangeDelAggregator() {} 26629: 26629: virtual void AddTombstones( 26629: std::unique_ptr input_iter, 26629: const InternalKey* smallest = nullptr, 26629: const InternalKey* largest = nullptr) = 0; 26629: 26629: bool ShouldDelete(const Slice& ikey, RangeDelPositioningMode mode) { 26629: ParsedInternalKey parsed; 26629: 26629: Status pik_status = 26629: ParseInternalKey(ikey, &parsed, false ); 26629: 26629: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: (static_cast ( 26629: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: pik_status.ok() 26629: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: "pik_status.ok()" 26629: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 26629: , "./db/range_del_aggregator.h", 297, __extension__ __PRETTY_FUNCTION__)) 26629: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: ; 26629: if (!pik_status.ok()) { 26629: return false; 26629: } 26629: 26629: return ShouldDelete(parsed, mode); 26629: } 26629: virtual bool ShouldDelete(const ParsedInternalKey& parsed, 26629: RangeDelPositioningMode mode) = 0; 26629: 26629: virtual void InvalidateRangeDelMapPositions() = 0; 26629: 26629: virtual bool IsEmpty() const = 0; 26629: 26629: bool AddFile(uint64_t file_number) { 26629: return files_seen_.insert(file_number).second; 26629: } 26629: 26629: protected: 26629: class StripeRep { 26629: public: 26629: StripeRep(const InternalKeyComparator* icmp, SequenceNumber upper_bound, 26629: SequenceNumber lower_bound) 26629: : icmp_(icmp), 26629: forward_iter_(icmp), 26629: reverse_iter_(icmp), 26629: upper_bound_(upper_bound), 26629: lower_bound_(lower_bound) {} 26629: 26629: void AddTombstones(std::unique_ptr input_iter) { 26629: iters_.push_back(std::move(input_iter)); 26629: } 26629: 26629: bool IsEmpty() const { return iters_.empty(); } 26629: 26629: bool ShouldDelete(const ParsedInternalKey& parsed, 26629: RangeDelPositioningMode mode); 26629: 26629: void Invalidate() { 26629: if (!IsEmpty()) { 26629: InvalidateForwardIter(); 26629: InvalidateReverseIter(); 26629: } 26629: } 26629: 26629: 26629: 26629: bool IsRangeOverlapped(const Slice& start, const Slice& end); 26629: 26629: private: 26629: bool InStripe(SequenceNumber seq) const { 26629: return lower_bound_ <= seq && seq <= upper_bound_; 26629: } 26629: 26629: void InvalidateForwardIter() { forward_iter_.Invalidate(); } 26629: 26629: void InvalidateReverseIter() { reverse_iter_.Invalidate(); } 26629: 26629: const InternalKeyComparator* icmp_; 26629: std::vector> iters_; 26629: ForwardRangeDelIterator forward_iter_; 26629: ReverseRangeDelIterator reverse_iter_; 26629: SequenceNumber upper_bound_; 26629: SequenceNumber lower_bound_; 26629: }; 26629: 26629: const InternalKeyComparator* icmp_; 26629: 26629: private: 26629: std::set files_seen_; 26629: }; 26629: 26629: class ReadRangeDelAggregator final : public RangeDelAggregator { 26629: public: 26629: ReadRangeDelAggregator(const InternalKeyComparator* icmp, 26629: SequenceNumber upper_bound) 26629: : RangeDelAggregator(icmp), 26629: rep_(icmp, upper_bound, 0 ) {} 26629: ~ReadRangeDelAggregator() override {} 26629: 26629: using RangeDelAggregator::ShouldDelete; 26629: void AddTombstones( 26629: std::unique_ptr input_iter, 26629: const InternalKey* smallest = nullptr, 26629: const InternalKey* largest = nullptr) override; 26629: 26629: bool ShouldDelete(const ParsedInternalKey& parsed, 26629: RangeDelPositioningMode mode) final override { 26629: if (rep_.IsEmpty()) { 26629: return false; 26629: } 26629: return ShouldDeleteImpl(parsed, mode); 26629: } 26629: 26629: bool IsRangeOverlapped(const Slice& start, const Slice& end); 26629: 26629: void InvalidateRangeDelMapPositions() override { rep_.Invalidate(); } 26629: 26629: bool IsEmpty() const override { return rep_.IsEmpty(); } 26629: 26629: private: 26629: StripeRep rep_; 26629: 26629: bool ShouldDeleteImpl(const ParsedInternalKey& parsed, 26629: RangeDelPositioningMode mode); 26629: }; 26629: 26629: class CompactionRangeDelAggregator : public RangeDelAggregator { 26629: public: 26629: CompactionRangeDelAggregator(const InternalKeyComparator* icmp, 26629: const std::vector& snapshots, 26629: const std::string* full_history_ts_low = nullptr, 26629: const std::string* trim_ts = nullptr) 26629: : RangeDelAggregator(icmp), snapshots_(&snapshots) { 26629: if (full_history_ts_low) { 26629: ts_upper_bound_ = *full_history_ts_low; 26629: } 26629: if (trim_ts) { 26629: trim_ts_ = *trim_ts; 26629: 26629: 26629: if (ts_upper_bound_.empty()) { 26629: ts_upper_bound_ = trim_ts_; 26629: } else if (!trim_ts_.empty() && icmp->user_comparator()->CompareTimestamp( 26629: trim_ts_, ts_upper_bound_) < 0) { 26629: ts_upper_bound_ = trim_ts_; 26629: } 26629: } 26629: } 26629: ~CompactionRangeDelAggregator() override {} 26629: 26629: void AddTombstones( 26629: std::unique_ptr input_iter, 26629: const InternalKey* smallest = nullptr, 26629: const InternalKey* largest = nullptr) override; 26629: 26629: using RangeDelAggregator::ShouldDelete; 26629: bool ShouldDelete(const ParsedInternalKey& parsed, 26629: RangeDelPositioningMode mode) override; 26629: 26629: bool IsRangeOverlapped(const Slice& start, const Slice& end); 26629: 26629: void InvalidateRangeDelMapPositions() override { 26629: for (auto& rep : reps_) { 26629: rep.second.Invalidate(); 26629: } 26629: } 26629: 26629: bool IsEmpty() const override { 26629: for (const auto& rep : reps_) { 26629: if (!rep.second.IsEmpty()) { 26629: return false; 26629: } 26629: } 26629: return true; 26629: } 26629: # 462 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 26629: std::unique_ptr NewIterator( 26629: const Slice* lower_bound = nullptr, const Slice* upper_bound = nullptr, 26629: bool upper_bound_inclusive = false); 26629: 26629: private: 26629: std::vector> parent_iters_; 26629: std::map reps_; 26629: 26629: const std::vector* snapshots_; 26629: 26629: Slice ts_upper_bound_{}; 26629: Slice trim_ts_{}; 26629: }; 26629: 26629: } 26629: # 14 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/snapshot_checker.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: enum class SnapshotCheckerResult : int { 26629: kInSnapshot = 0, 26629: kNotInSnapshot = 1, 26629: 26629: 26629: kSnapshotReleased = 2, 26629: }; 26629: 26629: 26629: class SnapshotChecker { 26629: public: 26629: virtual ~SnapshotChecker() {} 26629: virtual SnapshotCheckerResult CheckInSnapshot( 26629: SequenceNumber sequence, SequenceNumber snapshot_sequence) const = 0; 26629: }; 26629: 26629: class DisableGCSnapshotChecker : public SnapshotChecker { 26629: public: 26629: virtual ~DisableGCSnapshotChecker() {} 26629: virtual SnapshotCheckerResult CheckInSnapshot( 26629: SequenceNumber , 26629: SequenceNumber ) const override { 26629: 26629: return SnapshotCheckerResult::kNotInSnapshot; 26629: } 26629: static DisableGCSnapshotChecker* Instance(); 26629: 26629: protected: 26629: explicit DisableGCSnapshotChecker() {} 26629: }; 26629: 26629: class WritePreparedTxnDB; 26629: 26629: 26629: 26629: class WritePreparedSnapshotChecker : public SnapshotChecker { 26629: public: 26629: explicit WritePreparedSnapshotChecker(WritePreparedTxnDB* txn_db); 26629: virtual ~WritePreparedSnapshotChecker() {} 26629: 26629: virtual SnapshotCheckerResult CheckInSnapshot( 26629: SequenceNumber sequence, SequenceNumber snapshot_sequence) const override; 26629: 26629: private: 26629: 26629: const WritePreparedTxnDB* const txn_db_; 26629: 26629: }; 26629: 26629: } 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 1 26629: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 26629: 26629: 26629: # 1 "/usr/include/c++/12/cassert" 1 3 26629: # 41 "/usr/include/c++/12/cassert" 3 26629: 26629: # 42 "/usr/include/c++/12/cassert" 3 26629: 26629: 26629: # 1 "/usr/include/assert.h" 1 3 4 26629: # 45 "/usr/include/c++/12/cassert" 2 3 26629: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 2 26629: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: class SliceTransform; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: class CompactionFilter : public Customizable { 26629: public: 26629: enum ValueType { 26629: kValue, 26629: kMergeOperand, 26629: kBlobIndex, 26629: }; 26629: 26629: enum class Decision { 26629: kKeep, 26629: kRemove, 26629: kChangeValue, 26629: kRemoveAndSkipUntil, 26629: kChangeBlobIndex, 26629: kIOError, 26629: kPurge, 26629: kUndetermined, 26629: }; 26629: 26629: enum class BlobDecision { kKeep, kChangeValue, kCorruption, kIOError }; 26629: 26629: 26629: struct Context { 26629: 26629: 26629: bool is_full_compaction; 26629: 26629: 26629: bool is_manual_compaction; 26629: 26629: uint32_t column_family_id; 26629: 26629: TableFileCreationReason reason; 26629: }; 26629: 26629: virtual ~CompactionFilter() {} 26629: static const char* Type() { return "CompactionFilter"; } 26629: static Status CreateFromString(const ConfigOptions& config_options, 26629: const std::string& name, 26629: const CompactionFilter** result); 26629: # 104 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 26629: virtual bool Filter(int , const Slice& , 26629: const Slice& , 26629: std::string* , 26629: bool* ) const { 26629: return false; 26629: } 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 26629: virtual bool FilterMergeOperand(int , const Slice& , 26629: const Slice& ) const { 26629: return false; 26629: } 26629: # 166 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 26629: virtual Decision FilterV2(int level, const Slice& key, ValueType value_type, 26629: const Slice& existing_value, std::string* new_value, 26629: std::string* ) const { 26629: switch (value_type) { 26629: case ValueType::kValue: { 26629: bool value_changed = false; 26629: bool rv = Filter(level, key, existing_value, new_value, &value_changed); 26629: if (rv) { 26629: return Decision::kRemove; 26629: } 26629: return value_changed ? Decision::kChangeValue : Decision::kKeep; 26629: } 26629: case ValueType::kMergeOperand: { 26629: bool rv = FilterMergeOperand(level, key, existing_value); 26629: return rv ? Decision::kRemove : Decision::kKeep; 26629: } 26629: case ValueType::kBlobIndex: 26629: return Decision::kKeep; 26629: } 26629: 26629: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 3 4 26629: (static_cast ( 26629: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 26629: false 26629: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 26629: "false" 26629: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 3 4 26629: , "./include/rocksdb/compaction_filter.h", 185, __extension__ __PRETTY_FUNCTION__)) 26629: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 26629: ; 26629: return Decision::kKeep; 26629: } 26629: 26629: 26629: virtual BlobDecision PrepareBlobOutput(const Slice& , 26629: const Slice& , 26629: std::string* ) const { 26629: return BlobDecision::kKeep; 26629: } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual bool IgnoreSnapshots() const { return true; } 26629: 26629: 26629: 26629: const char* Name() const override = 0; 26629: 26629: 26629: virtual bool IsStackedBlobDbInternalCompactionFilter() const { return false; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual Decision FilterBlobByKey(int , const Slice& , 26629: std::string* , 26629: std::string* ) const { 26629: return Decision::kUndetermined; 26629: } 26629: }; 26629: # 230 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 26629: class CompactionFilterFactory : public Customizable { 26629: public: 26629: virtual ~CompactionFilterFactory() {} 26629: static const char* Type() { return "CompactionFilterFactory"; } 26629: static Status CreateFromString( 26629: const ConfigOptions& config_options, const std::string& name, 26629: std::shared_ptr* result); 26629: 26629: 26629: 26629: 26629: virtual bool ShouldFilterTableFileCreation( 26629: TableFileCreationReason reason) const { 26629: 26629: 26629: return reason == TableFileCreationReason::kCompaction; 26629: } 26629: 26629: virtual std::unique_ptr CreateCompactionFilter( 26629: const CompactionFilter::Context& context) = 0; 26629: 26629: 26629: virtual const char* Name() const override = 0; 26629: }; 26629: 26629: } 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: class Logger; 26629: # 50 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: class MergeOperator : public Customizable { 26629: public: 26629: virtual ~MergeOperator() {} 26629: static const char* Type() { return "MergeOperator"; } 26629: static Status CreateFromString(const ConfigOptions& opts, 26629: const std::string& id, 26629: std::shared_ptr* result); 26629: # 76 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: virtual bool FullMerge(const Slice& , const Slice* , 26629: const std::deque& , 26629: std::string* , Logger* ) const { 26629: 26629: 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 3 4 26629: (static_cast ( 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: false 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: "false" 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 3 4 26629: , "./include/rocksdb/merge_operator.h", 80, __extension__ __PRETTY_FUNCTION__)) 26629: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: ; 26629: return false; 26629: } 26629: 26629: struct MergeOperationInput { 26629: explicit MergeOperationInput(const Slice& _key, 26629: const Slice* _existing_value, 26629: const std::vector& _operand_list, 26629: Logger* _logger) 26629: : key(_key), 26629: existing_value(_existing_value), 26629: operand_list(_operand_list), 26629: logger(_logger) {} 26629: 26629: 26629: const Slice& key; 26629: 26629: 26629: const Slice* existing_value; 26629: 26629: const std::vector& operand_list; 26629: 26629: 26629: Logger* logger; 26629: }; 26629: 26629: struct MergeOperationOutput { 26629: explicit MergeOperationOutput(std::string& _new_value, 26629: Slice& _existing_operand) 26629: : new_value(_new_value), existing_operand(_existing_operand) {} 26629: 26629: 26629: std::string& new_value; 26629: 26629: 26629: 26629: Slice& existing_operand; 26629: }; 26629: # 136 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: virtual bool FullMergeV2(const MergeOperationInput& merge_in, 26629: MergeOperationOutput* merge_out) const; 26629: # 170 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: virtual bool PartialMerge(const Slice& , const Slice& , 26629: const Slice& , 26629: std::string* , 26629: Logger* ) const { 26629: return false; 26629: } 26629: # 198 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: virtual bool PartialMergeMulti(const Slice& key, 26629: const std::deque& operand_list, 26629: std::string* new_value, Logger* logger) const; 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual const char* Name() const override = 0; 26629: 26629: 26629: 26629: 26629: 26629: 26629: virtual bool AllowSingleOperand() const { return false; } 26629: # 227 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: virtual bool ShouldMerge(const std::vector& ) const { 26629: return false; 26629: } 26629: }; 26629: 26629: 26629: class AssociativeMergeOperator : public MergeOperator { 26629: public: 26629: ~AssociativeMergeOperator() override {} 26629: # 250 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 26629: virtual bool Merge(const Slice& key, const Slice* existing_value, 26629: const Slice& value, std::string* new_value, 26629: Logger* logger) const = 0; 26629: 26629: private: 26629: 26629: bool FullMergeV2(const MergeOperationInput& merge_in, 26629: MergeOperationOutput* merge_out) const override; 26629: 26629: bool PartialMerge(const Slice& key, const Slice& left_operand, 26629: const Slice& right_operand, std::string* new_value, 26629: Logger* logger) const override; 26629: }; 26629: 26629: } 26629: # 18 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 2 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class Comparator; 26629: class Iterator; 26629: class Logger; 26629: class MergeOperator; 26629: class Statistics; 26629: class SystemClock; 26629: class BlobFetcher; 26629: class PrefetchBufferCollection; 26629: struct CompactionIterationStats; 26629: 26629: class MergeHelper { 26629: public: 26629: MergeHelper(Env* env, const Comparator* user_comparator, 26629: const MergeOperator* user_merge_operator, 26629: const CompactionFilter* compaction_filter, Logger* logger, 26629: bool assert_valid_internal_key, SequenceNumber latest_snapshot, 26629: const SnapshotChecker* snapshot_checker = nullptr, int level = 0, 26629: Statistics* stats = nullptr, 26629: const std::atomic* shutting_down = nullptr); 26629: # 51 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: static Status TimedFullMerge(const MergeOperator* merge_operator, 26629: const Slice& key, const Slice* value, 26629: const std::vector& operands, 26629: std::string* result, Logger* logger, 26629: Statistics* statistics, SystemClock* clock, 26629: Slice* result_operand = nullptr, 26629: bool update_num_ops_stats = false); 26629: # 90 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: Status MergeUntil(InternalIterator* iter, 26629: CompactionRangeDelAggregator* range_del_agg, 26629: const SequenceNumber stop_before, const bool at_bottom, 26629: const bool allow_data_in_errors, 26629: const BlobFetcher* blob_fetcher, 26629: PrefetchBufferCollection* prefetch_buffers, 26629: CompactionIterationStats* c_iter_stats); 26629: 26629: 26629: 26629: 26629: 26629: CompactionFilter::Decision FilterMerge(const Slice& user_key, 26629: const Slice& value_slice); 26629: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: const std::deque& keys() const { return keys_; } 26629: const std::vector& values() const { 26629: return merge_context_.GetOperands(); 26629: } 26629: uint64_t TotalFilterTime() const { return total_filter_time_; } 26629: bool HasOperator() const { return user_merge_operator_ != nullptr; } 26629: 26629: 26629: 26629: 26629: bool FilteredUntil(Slice* skip_until) const { 26629: if (!has_compaction_filter_skip_until_) { 26629: return false; 26629: } 26629: 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 26629: (static_cast ( 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: compaction_filter_ != nullptr 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: "compaction_filter_ != nullptr" 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 26629: , "./db/merge_helper.h", 144, __extension__ __PRETTY_FUNCTION__)) 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: ; 26629: 26629: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 26629: (static_cast ( 26629: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: skip_until != nullptr 26629: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: "skip_until != nullptr" 26629: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 26629: , "./db/merge_helper.h", 145, __extension__ __PRETTY_FUNCTION__)) 26629: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: ; 26629: 26629: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 26629: (static_cast ( 26629: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: compaction_filter_skip_until_.Valid() 26629: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: "compaction_filter_skip_until_.Valid()" 26629: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 26629: , "./db/merge_helper.h", 146, __extension__ __PRETTY_FUNCTION__)) 26629: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 26629: ; 26629: *skip_until = compaction_filter_skip_until_.Encode(); 26629: return true; 26629: } 26629: 26629: private: 26629: Env* env_; 26629: SystemClock* clock_; 26629: const Comparator* user_comparator_; 26629: const MergeOperator* user_merge_operator_; 26629: const CompactionFilter* compaction_filter_; 26629: const std::atomic* shutting_down_; 26629: Logger* logger_; 26629: bool assert_valid_internal_key_; 26629: bool allow_single_operand_; 26629: SequenceNumber latest_snapshot_; 26629: const SnapshotChecker* const snapshot_checker_; 26629: int level_; 26629: 26629: 26629: 26629: 26629: 26629: std::deque keys_; 26629: 26629: mutable MergeContext merge_context_; 26629: 26629: StopWatchNano filter_timer_; 26629: uint64_t total_filter_time_; 26629: Statistics* stats_; 26629: 26629: bool has_compaction_filter_skip_until_ = false; 26629: std::string compaction_filter_value_; 26629: InternalKey compaction_filter_skip_until_; 26629: 26629: bool IsShuttingDown() { 26629: 26629: return shutting_down_ && shutting_down_->load(std::memory_order_relaxed); 26629: } 26629: }; 26629: 26629: 26629: class MergeOutputIterator { 26629: public: 26629: 26629: explicit MergeOutputIterator(const MergeHelper* merge_helper); 26629: 26629: 26629: void SeekToFirst(); 26629: 26629: void Next(); 26629: 26629: Slice key() { return Slice(*it_keys_); } 26629: Slice value() { return Slice(*it_values_); } 26629: bool Valid() { return it_keys_ != merge_helper_->keys().rend(); } 26629: 26629: private: 26629: const MergeHelper* merge_helper_; 26629: std::deque::const_reverse_iterator it_keys_; 26629: std::vector::const_reverse_iterator it_values_; 26629: }; 26629: 26629: } 26629: # 21 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 26629: 26629: 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/wide/wide_column_serialization.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 15 "/build/reproducible-path/rocksdb-7.8.3/db/wide/wide_column_serialization.h" 26629: namespace rocksdb { 26629: 26629: class Slice; 26629: # 44 "/build/reproducible-path/rocksdb-7.8.3/db/wide/wide_column_serialization.h" 26629: class WideColumnSerialization { 26629: public: 26629: static Status Serialize(const WideColumns& columns, std::string& output); 26629: static Status Serialize(const Slice& value_of_default, 26629: const WideColumns& other_columns, 26629: std::string& output); 26629: 26629: static Status Deserialize(Slice& input, WideColumns& columns); 26629: 26629: static WideColumns::const_iterator Find(const WideColumns& columns, 26629: const Slice& column_name); 26629: static Status GetValueOfDefaultColumn(Slice& input, Slice& value); 26629: 26629: static constexpr uint32_t kCurrentVersion = 1; 26629: 26629: private: 26629: static Status SerializeImpl(const Slice* value_of_default, 26629: const WideColumns& columns, std::string& output); 26629: }; 26629: 26629: inline Status WideColumnSerialization::Serialize(const WideColumns& columns, 26629: std::string& output) { 26629: constexpr Slice* value_of_default = nullptr; 26629: 26629: return SerializeImpl(value_of_default, columns, output); 26629: } 26629: 26629: inline Status WideColumnSerialization::Serialize( 26629: const Slice& value_of_default, const WideColumns& other_columns, 26629: std::string& output) { 26629: return SerializeImpl(&value_of_default, other_columns, output); 26629: } 26629: 26629: } 26629: # 25 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/logging/logging.h" 1 26629: # 13 "/build/reproducible-path/rocksdb-7.8.3/logging/logging.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: inline const char* RocksLogShorterFileName(const char* file) 26629: { 26629: 26629: 26629: return file + (sizeof("./logging/logging.h") > 18 ? sizeof("./logging/logging.h") - 18 : 0); 26629: } 26629: # 26 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 26629: 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/memory/memory_usage.h" 1 26629: 26629: 26629: 26629: 26629: 26629: 26629: # 16 "/build/reproducible-path/rocksdb-7.8.3/memory/memory_usage.h" 26629: namespace rocksdb { 26629: 26629: 26629: 26629: template 26629: size_t ApproximateMemoryUsage( 26629: const std::unordered_map& umap) { 26629: using Map = std::unordered_map; 26629: return sizeof(umap) + 26629: 26629: (sizeof(typename Map::value_type) + sizeof(void*)) * umap.size() + 26629: 26629: umap.bucket_count() * sizeof(void*); 26629: } 26629: # 38 "/build/reproducible-path/rocksdb-7.8.3/memory/memory_usage.h" 26629: } 26629: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 26629: # 40 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: 26629: 26629: 26629: 26629: template 26629: class IteratorWrapperBase { 26629: public: 26629: IteratorWrapperBase() : iter_(nullptr), valid_(false) {} 26629: explicit IteratorWrapperBase(InternalIteratorBase* _iter) 26629: : iter_(nullptr) { 26629: Set(_iter); 26629: } 26629: ~IteratorWrapperBase() {} 26629: InternalIteratorBase* iter() const { return iter_; } 26629: 26629: 26629: 26629: InternalIteratorBase* Set(InternalIteratorBase* _iter) { 26629: InternalIteratorBase* old_iter = iter_; 26629: 26629: iter_ = _iter; 26629: if (iter_ == nullptr) { 26629: valid_ = false; 26629: } else { 26629: Update(); 26629: } 26629: return old_iter; 26629: } 26629: 26629: void DeleteIter(bool is_arena_mode) { 26629: if (iter_) { 26629: if (!is_arena_mode) { 26629: delete iter_; 26629: } else { 26629: iter_->~InternalIteratorBase(); 26629: } 26629: } 26629: } 26629: 26629: 26629: bool Valid() const { return valid_; } 26629: Slice key() const { 26629: 26629: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: Valid() 26629: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "Valid()" 26629: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 61, __extension__ __PRETTY_FUNCTION__)) 26629: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: return result_.key; 26629: } 26629: TValue value() const { 26629: 26629: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: Valid() 26629: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "Valid()" 26629: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 65, __extension__ __PRETTY_FUNCTION__)) 26629: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: return iter_->value(); 26629: } 26629: 26629: Status status() const { 26629: 26629: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: iter_ 26629: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "iter_" 26629: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 70, __extension__ __PRETTY_FUNCTION__)) 26629: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: return iter_->status(); 26629: } 26629: bool PrepareValue() { 26629: 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: Valid() 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "Valid()" 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 74, __extension__ __PRETTY_FUNCTION__)) 26629: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: if (result_.value_prepared) { 26629: return true; 26629: } 26629: if (iter_->PrepareValue()) { 26629: result_.value_prepared = true; 26629: return true; 26629: } 26629: 26629: 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: !iter_->Valid() 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "!iter_->Valid()" 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 83, __extension__ __PRETTY_FUNCTION__)) 26629: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: valid_ = false; 26629: return false; 26629: } 26629: void Next() { 26629: 26629: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: iter_ 26629: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "iter_" 26629: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 88, __extension__ __PRETTY_FUNCTION__)) 26629: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: valid_ = iter_->NextAndGetResult(&result_); 26629: 26629: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: !valid_ || iter_->status().ok() 26629: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "!valid_ || iter_->status().ok()" 26629: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 90, __extension__ __PRETTY_FUNCTION__)) 26629: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: } 26629: bool NextAndGetResult(IterateResult* result) { 26629: 26629: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: iter_ 26629: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "iter_" 26629: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 93, __extension__ __PRETTY_FUNCTION__)) 26629: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: valid_ = iter_->NextAndGetResult(&result_); 26629: *result = result_; 26629: 26629: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: !valid_ || iter_->status().ok() 26629: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "!valid_ || iter_->status().ok()" 26629: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 96, __extension__ __PRETTY_FUNCTION__)) 26629: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: return valid_; 26629: } 26629: void Prev() { 26629: 26629: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: iter_ 26629: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "iter_" 26629: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 100, __extension__ __PRETTY_FUNCTION__)) 26629: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: iter_->Prev(); 26629: Update(); 26629: } 26629: void Seek(const Slice& k) { 26629: 26629: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: iter_ 26629: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "iter_" 26629: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 105, __extension__ __PRETTY_FUNCTION__)) 26629: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: iter_->Seek(k); 26629: Update(); 26629: } 26629: void SeekForPrev(const Slice& k) { 26629: 26629: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: iter_ 26629: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "iter_" 26629: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 110, __extension__ __PRETTY_FUNCTION__)) 26629: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: iter_->SeekForPrev(k); 26629: Update(); 26629: } 26629: void SeekToFirst() { 26629: 26629: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: iter_ 26629: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "iter_" 26629: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 115, __extension__ __PRETTY_FUNCTION__)) 26629: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: iter_->SeekToFirst(); 26629: Update(); 26629: } 26629: void SeekToLast() { 26629: 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: iter_ 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "iter_" 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 120, __extension__ __PRETTY_FUNCTION__)) 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: iter_->SeekToLast(); 26629: Update(); 26629: } 26629: 26629: bool MayBeOutOfLowerBound() { 26629: 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: Valid() 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "Valid()" 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 126, __extension__ __PRETTY_FUNCTION__)) 26629: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: return iter_->MayBeOutOfLowerBound(); 26629: } 26629: 26629: IterBoundCheck UpperBoundCheckResult() { 26629: 26629: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: Valid() 26629: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "Valid()" 26629: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 131, __extension__ __PRETTY_FUNCTION__)) 26629: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: return result_.bound_check_result; 26629: } 26629: 26629: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) { 26629: 26629: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: iter_ 26629: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "iter_" 26629: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 136, __extension__ __PRETTY_FUNCTION__)) 26629: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: iter_->SetPinnedItersMgr(pinned_iters_mgr); 26629: } 26629: bool IsKeyPinned() const { 26629: 26629: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: Valid() 26629: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "Valid()" 26629: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 140, __extension__ __PRETTY_FUNCTION__)) 26629: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: return iter_->IsKeyPinned(); 26629: } 26629: bool IsValuePinned() const { 26629: 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: Valid() 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "Valid()" 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 144, __extension__ __PRETTY_FUNCTION__)) 26629: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: return iter_->IsValuePinned(); 26629: } 26629: 26629: bool IsValuePrepared() const { 26629: return result_.value_prepared; 26629: } 26629: 26629: Slice user_key() const { 26629: 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: Valid() 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "Valid()" 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 153, __extension__ __PRETTY_FUNCTION__)) 26629: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: return iter_->user_key(); 26629: } 26629: 26629: void UpdateReadaheadState(InternalIteratorBase* old_iter) { 26629: if (old_iter && iter_) { 26629: ReadaheadFileInfo readahead_file_info; 26629: old_iter->GetReadaheadState(&readahead_file_info); 26629: iter_->SetReadaheadState(&readahead_file_info); 26629: } 26629: } 26629: 26629: bool IsDeleteRangeSentinelKey() const { 26629: return iter_->IsDeleteRangeSentinelKey(); 26629: } 26629: 26629: private: 26629: void Update() { 26629: valid_ = iter_->Valid(); 26629: if (valid_) { 26629: 26629: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: (static_cast ( 26629: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: iter_->status().ok() 26629: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: "iter_->status().ok()" 26629: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 26629: , "./table/iterator_wrapper.h", 173, __extension__ __PRETTY_FUNCTION__)) 26629: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 26629: ; 26629: result_.key = iter_->key(); 26629: result_.bound_check_result = IterBoundCheck::kUnknown; 26629: result_.value_prepared = false; 26629: } 26629: } 26629: 26629: InternalIteratorBase* iter_; 26629: IterateResult result_; 26629: bool valid_; 26629: }; 26629: 26629: using IteratorWrapper = IteratorWrapperBase; 26629: 26629: class Arena; 26629: 26629: template 26629: extern InternalIteratorBase* NewEmptyInternalIterator(Arena* arena); 26629: 26629: } 26629: # 41 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 26629: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/merging_iterator.h" 1 26629: # 10 "/build/reproducible-path/rocksdb-7.8.3/table/merging_iterator.h" 26629: 26629: 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: class Arena; 26629: class ArenaWrappedDBIter; 26629: class InternalKeyComparator; 26629: 26629: template 26629: class InternalIteratorBase; 26629: using InternalIterator = InternalIteratorBase; 26629: # 34 "/build/reproducible-path/rocksdb-7.8.3/table/merging_iterator.h" 26629: extern InternalIterator* NewMergingIterator( 26629: const InternalKeyComparator* comparator, InternalIterator** children, int n, 26629: Arena* arena = nullptr, bool prefix_seek_mode = false); 26629: 26629: class MergingIterator; 26629: 26629: 26629: 26629: 26629: class MergeIteratorBuilder { 26629: public: 26629: 26629: 26629: explicit MergeIteratorBuilder(const InternalKeyComparator* comparator, 26629: Arena* arena, bool prefix_seek_mode = false, 26629: const Slice* iterate_upper_bound = nullptr); 26629: ~MergeIteratorBuilder(); 26629: 26629: 26629: void AddIterator(InternalIterator* iter); 26629: # 66 "/build/reproducible-path/rocksdb-7.8.3/table/merging_iterator.h" 26629: void AddPointAndTombstoneIterator( 26629: InternalIterator* point_iter, TruncatedRangeDelIterator* tombstone_iter, 26629: TruncatedRangeDelIterator*** tombstone_iter_ptr = nullptr); 26629: 26629: 26629: 26629: Arena* GetArena() { return arena; } 26629: 26629: 26629: 26629: 26629: 26629: 26629: InternalIterator* Finish(ArenaWrappedDBIter* db_iter = nullptr); 26629: 26629: private: 26629: MergingIterator* merge_iter; 26629: InternalIterator* first_iter; 26629: bool use_merging_iter; 26629: Arena* arena; 26629: 26629: 26629: std::vector> 26629: range_del_iter_ptrs_; 26629: }; 26629: 26629: } 26629: # 42 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 26629: 26629: 26629: 26629: 26629: namespace rocksdb { 26629: 26629: ImmutableMemTableOptions::ImmutableMemTableOptions( 26629: const ImmutableOptions& ioptions, 26629: const MutableCFOptions& mutable_cf_options) 26629: : arena_block_size(mutable_cf_options.arena_block_size), 26629: memtable_prefix_bloom_bits( 26629: static_cast( 26629: static_cast(mutable_cf_options.write_buffer_size) * 26629: mutable_cf_options.memtable_prefix_bloom_size_ratio) * 26629: 8u), 26629: memtable_huge_page_size(mutable_cf_options.memtable_huge_page_size), 26629: memtable_whole_key_filtering( 26629: mutable_cf_options.memtable_whole_key_filtering), 26629: inplace_update_support(ioptions.inplace_update_support), 26629: inplace_update_num_locks(mutable_cf_options.inplace_update_num_locks), 26629: inplace_callback(ioptions.inplace_callback), 26629: max_successive_merges(mutable_cf_options.max_successive_merges), 26629: statistics(ioptions.stats), 26629: merge_operator(ioptions.merge_operator.get()), 26629: info_log(ioptions.logger), 26629: allow_data_in_errors(ioptions.allow_data_in_errors), 26629: protection_bytes_per_key( 26629: mutable_cf_options.memtable_protection_bytes_per_key) {} 26629: 26629: MemTable::MemTable(const InternalKeyComparator& cmp, 26629: const ImmutableOptions& ioptions, 26629: const MutableCFOptions& mutable_cf_options, 26629: WriteBufferManager* write_buffer_manager, 26629: SequenceNumber latest_seq, uint32_t column_family_id) 26629: : comparator_(cmp), 26629: moptions_(ioptions, mutable_cf_options), 26629: refs_(0), 26629: kArenaBlockSize(OptimizeBlockSize(moptions_.arena_block_size)), 26629: mem_tracker_(write_buffer_manager), 26629: arena_(moptions_.arena_block_size, 26629: (write_buffer_manager != nullptr && 26629: (write_buffer_manager->enabled() || 26629: write_buffer_manager->cost_to_cache())) 26629: ? &mem_tracker_ 26629: : nullptr, 26629: mutable_cf_options.memtable_huge_page_size), 26629: table_(ioptions.memtable_factory->CreateMemTableRep( 26629: comparator_, &arena_, mutable_cf_options.prefix_extractor.get(), 26629: ioptions.logger, column_family_id)), 26629: range_del_table_(SkipListFactory().CreateMemTableRep( 26629: comparator_, &arena_, nullptr , ioptions.logger, 26629: column_family_id)), 26629: is_range_del_table_empty_(true), 26629: data_size_(0), 26629: num_entries_(0), 26629: num_deletes_(0), 26629: write_buffer_size_(mutable_cf_options.write_buffer_size), 26629: flush_in_progress_(false), 26629: flush_completed_(false), 26629: file_number_(0), 26629: first_seqno_(0), 26629: earliest_seqno_(latest_seq), 26629: creation_seq_(latest_seq), 26629: mem_next_logfile_number_(0), 26629: min_prep_log_referenced_(0), 26629: locks_(moptions_.inplace_update_support 26629: ? moptions_.inplace_update_num_locks 26629: : 0), 26629: prefix_extractor_(mutable_cf_options.prefix_extractor.get()), 26629: flush_state_(FLUSH_NOT_REQUESTED), 26629: clock_(ioptions.clock), 26629: insert_with_hint_prefix_extractor_( 26629: ioptions.memtable_insert_with_hint_prefix_extractor.get()), 26629: oldest_key_time_(std::numeric_limits::max()), 26629: atomic_flush_seqno_(kMaxSequenceNumber), 26629: approximate_memory_usage_(0) { 26629: UpdateFlushState(); 26629: 26629: 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: !ShouldScheduleFlush() 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "!ShouldScheduleFlush()" 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 120, __extension__ __PRETTY_FUNCTION__)) 26629: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: 26629: 26629: if ((prefix_extractor_ || moptions_.memtable_whole_key_filtering) && 26629: moptions_.memtable_prefix_bloom_bits > 0) { 26629: bloom_filter_.reset( 26629: new DynamicBloom(&arena_, moptions_.memtable_prefix_bloom_bits, 26629: 6 , 26629: moptions_.memtable_huge_page_size, ioptions.logger)); 26629: } 26629: 26629: 26629: 26629: auto new_cache = std::make_shared(); 26629: size_t size = cached_range_tombstone_.Size(); 26629: for (size_t i = 0; i < size; ++i) { 26629: std::shared_ptr* local_cache_ref_ptr = 26629: cached_range_tombstone_.AccessAtCore(i); 26629: auto new_local_cache_ref = std::make_shared< 26629: const std::shared_ptr>(new_cache); 26629: std::atomic_store_explicit( 26629: local_cache_ref_ptr, 26629: std::shared_ptr(new_local_cache_ref, 26629: new_cache.get()), 26629: std::memory_order_relaxed); 26629: } 26629: } 26629: 26629: MemTable::~MemTable() { 26629: mem_tracker_.FreeMem(); 26629: 26629: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: refs_ == 0 26629: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "refs_ == 0" 26629: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 150, __extension__ __PRETTY_FUNCTION__)) 26629: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: } 26629: 26629: size_t MemTable::ApproximateMemoryUsage() { 26629: autovector usages = { 26629: arena_.ApproximateMemoryUsage(), table_->ApproximateMemoryUsage(), 26629: range_del_table_->ApproximateMemoryUsage(), 26629: rocksdb::ApproximateMemoryUsage(insert_hints_)}; 26629: size_t total_usage = 0; 26629: for (size_t usage : usages) { 26629: 26629: 26629: if (usage >= std::numeric_limits::max() - total_usage) { 26629: return std::numeric_limits::max(); 26629: } 26629: total_usage += usage; 26629: } 26629: approximate_memory_usage_.store(total_usage, std::memory_order_relaxed); 26629: 26629: return total_usage; 26629: } 26629: 26629: bool MemTable::ShouldFlushNow() { 26629: size_t write_buffer_size = write_buffer_size_.load(std::memory_order_relaxed); 26629: 26629: 26629: 26629: 26629: 26629: 26629: const double kAllowOverAllocationRatio = 0.6; 26629: 26629: 26629: 26629: auto allocated_memory = table_->ApproximateMemoryUsage() + 26629: range_del_table_->ApproximateMemoryUsage() + 26629: arena_.MemoryAllocatedBytes(); 26629: 26629: approximate_memory_usage_.store(allocated_memory, std::memory_order_relaxed); 26629: 26629: 26629: 26629: if (allocated_memory + kArenaBlockSize < 26629: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 26629: return false; 26629: } 26629: 26629: 26629: 26629: if (allocated_memory > 26629: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 26629: return true; 26629: } 26629: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: return arena_.AllocatedAndUnused() < kArenaBlockSize / 4; 26629: } 26629: 26629: void MemTable::UpdateFlushState() { 26629: auto state = flush_state_.load(std::memory_order_relaxed); 26629: if (state == FLUSH_NOT_REQUESTED && ShouldFlushNow()) { 26629: 26629: 26629: flush_state_.compare_exchange_strong(state, FLUSH_REQUESTED, 26629: std::memory_order_relaxed, 26629: std::memory_order_relaxed); 26629: } 26629: } 26629: 26629: void MemTable::UpdateOldestKeyTime() { 26629: uint64_t oldest_key_time = oldest_key_time_.load(std::memory_order_relaxed); 26629: if (oldest_key_time == std::numeric_limits::max()) { 26629: int64_t current_time = 0; 26629: auto s = clock_->GetCurrentTime(¤t_time); 26629: if (s.ok()) { 26629: 26629: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: current_time >= 0 26629: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "current_time >= 0" 26629: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 249, __extension__ __PRETTY_FUNCTION__)) 26629: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: 26629: oldest_key_time_.compare_exchange_strong( 26629: oldest_key_time, static_cast(current_time), 26629: std::memory_order_relaxed, std::memory_order_relaxed); 26629: } 26629: } 26629: } 26629: 26629: Status MemTable::VerifyEntryChecksum(const char* entry, 26629: size_t protection_bytes_per_key, 26629: bool allow_data_in_errors) { 26629: if (protection_bytes_per_key == 0) { 26629: return Status::OK(); 26629: } 26629: uint32_t key_length; 26629: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 26629: if (key_ptr == nullptr) { 26629: return Status::Corruption("Unable to parse internal key length"); 26629: } 26629: if (key_length < 8) { 26629: return Status::Corruption("Memtable entry internal key length too short."); 26629: } 26629: Slice user_key = Slice(key_ptr, key_length - 8); 26629: 26629: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 26629: ValueType type; 26629: SequenceNumber seq; 26629: UnPackSequenceAndType(tag, &seq, &type); 26629: 26629: uint32_t value_length = 0; 26629: const char* value_ptr = GetVarint32Ptr( 26629: key_ptr + key_length, key_ptr + key_length + 5, &value_length); 26629: if (value_ptr == nullptr) { 26629: return Status::Corruption("Unable to parse internal key value"); 26629: } 26629: Slice value = Slice(value_ptr, value_length); 26629: 26629: const char* checksum_ptr = value_ptr + value_length; 26629: uint64_t expected = ProtectionInfo64() 26629: .ProtectKVO(user_key, value, type) 26629: .ProtectS(seq) 26629: .GetVal(); 26629: bool match = true; 26629: switch (protection_bytes_per_key) { 26629: case 1: 26629: match = static_cast(checksum_ptr[0]) == 26629: static_cast(expected); 26629: break; 26629: case 2: 26629: match = DecodeFixed16(checksum_ptr) == static_cast(expected); 26629: break; 26629: case 4: 26629: match = DecodeFixed32(checksum_ptr) == static_cast(expected); 26629: break; 26629: case 8: 26629: match = DecodeFixed64(checksum_ptr) == expected; 26629: break; 26629: default: 26629: 26629: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: false 26629: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "false" 26629: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 308, __extension__ __PRETTY_FUNCTION__)) 26629: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: } 26629: if (!match) { 26629: std::string msg( 26629: "Corrupted memtable entry, per key-value checksum verification " 26629: "failed."); 26629: if (allow_data_in_errors) { 26629: msg.append("Unrecognized value type: " + 26629: std::to_string(static_cast(type)) + ". "); 26629: msg.append("User key: " + user_key.ToString( true) + ". "); 26629: msg.append("seq: " + std::to_string(seq) + "."); 26629: } 26629: return Status::Corruption(msg.c_str()); 26629: } 26629: return Status::OK(); 26629: } 26629: 26629: int MemTable::KeyComparator::operator()(const char* prefix_len_key1, 26629: const char* prefix_len_key2) const { 26629: 26629: Slice k1 = GetLengthPrefixedSlice(prefix_len_key1); 26629: Slice k2 = GetLengthPrefixedSlice(prefix_len_key2); 26629: return comparator.CompareKeySeq(k1, k2); 26629: } 26629: 26629: int MemTable::KeyComparator::operator()(const char* prefix_len_key, 26629: const KeyComparator::DecodedType& key) 26629: const { 26629: 26629: Slice a = GetLengthPrefixedSlice(prefix_len_key); 26629: return comparator.CompareKeySeq(a, key); 26629: } 26629: 26629: void MemTableRep::InsertConcurrently(KeyHandle ) { 26629: 26629: throw std::runtime_error("concurrent insert not supported"); 26629: 26629: 26629: 26629: } 26629: 26629: Slice MemTableRep::UserKey(const char* key) const { 26629: Slice slice = GetLengthPrefixedSlice(key); 26629: return Slice(slice.data(), slice.size() - 8); 26629: } 26629: 26629: KeyHandle MemTableRep::Allocate(const size_t len, char** buf) { 26629: *buf = allocator_->Allocate(len); 26629: return static_cast(*buf); 26629: } 26629: 26629: 26629: 26629: 26629: const char* EncodeKey(std::string* scratch, const Slice& target) { 26629: scratch->clear(); 26629: PutVarint32(scratch, static_cast(target.size())); 26629: scratch->append(target.data(), target.size()); 26629: return scratch->data(); 26629: } 26629: 26629: class MemTableIterator : public InternalIterator { 26629: public: 26629: MemTableIterator(const MemTable& mem, const ReadOptions& read_options, 26629: Arena* arena, bool use_range_del_table = false) 26629: : bloom_(nullptr), 26629: prefix_extractor_(mem.prefix_extractor_), 26629: comparator_(mem.comparator_), 26629: valid_(false), 26629: arena_mode_(arena != nullptr), 26629: value_pinned_( 26629: !mem.GetImmutableMemTableOptions()->inplace_update_support), 26629: protection_bytes_per_key_(mem.moptions_.protection_bytes_per_key), 26629: status_(Status::OK()), 26629: logger_(mem.moptions_.info_log) { 26629: if (use_range_del_table) { 26629: iter_ = mem.range_del_table_->GetIterator(arena); 26629: } else if (prefix_extractor_ != nullptr && !read_options.total_order_seek && 26629: !read_options.auto_prefix_mode) { 26629: 26629: bloom_ = mem.bloom_filter_.get(); 26629: iter_ = mem.table_->GetDynamicPrefixIterator(arena); 26629: } else { 26629: iter_ = mem.table_->GetIterator(arena); 26629: } 26629: status_.PermitUncheckedError(); 26629: } 26629: 26629: MemTableIterator(const MemTableIterator&) = delete; 26629: void operator=(const MemTableIterator&) = delete; 26629: 26629: ~MemTableIterator() override { 26629: 26629: 26629: 26629: 26629: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: !pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled() 26629: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "!pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled()" 26629: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 403, __extension__ __PRETTY_FUNCTION__)) 26629: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: 26629: if (arena_mode_) { 26629: iter_->~Iterator(); 26629: } else { 26629: delete iter_; 26629: } 26629: } 26629: 26629: 26629: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 26629: pinned_iters_mgr_ = pinned_iters_mgr; 26629: } 26629: PinnedIteratorsManager* pinned_iters_mgr_ = nullptr; 26629: 26629: 26629: bool Valid() const override { return valid_ && status_.ok(); } 26629: void Seek(const Slice& k) override { 26629: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; }; 26629: if (bloom_) { 26629: 26629: auto ts_sz = comparator_.comparator.user_comparator()->timestamp_size(); 26629: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz)); 26629: if (prefix_extractor_->InDomain(user_k_without_ts)) { 26629: if (!bloom_->MayContain( 26629: prefix_extractor_->Transform(user_k_without_ts))) { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 26629: valid_ = false; 26629: return; 26629: } else { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 26629: } 26629: } 26629: } 26629: iter_->Seek(k, nullptr); 26629: valid_ = iter_->Valid(); 26629: VerifyEntryChecksum(); 26629: } 26629: void SeekForPrev(const Slice& k) override { 26629: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; }; 26629: if (bloom_) { 26629: auto ts_sz = comparator_.comparator.user_comparator()->timestamp_size(); 26629: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz)); 26629: if (prefix_extractor_->InDomain(user_k_without_ts)) { 26629: if (!bloom_->MayContain( 26629: prefix_extractor_->Transform(user_k_without_ts))) { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 26629: valid_ = false; 26629: return; 26629: } else { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 26629: } 26629: } 26629: } 26629: iter_->Seek(k, nullptr); 26629: valid_ = iter_->Valid(); 26629: VerifyEntryChecksum(); 26629: if (!Valid() && status().ok()) { 26629: SeekToLast(); 26629: } 26629: while (Valid() && comparator_.comparator.Compare(k, key()) < 0) { 26629: Prev(); 26629: } 26629: } 26629: void SeekToFirst() override { 26629: iter_->SeekToFirst(); 26629: valid_ = iter_->Valid(); 26629: VerifyEntryChecksum(); 26629: } 26629: void SeekToLast() override { 26629: iter_->SeekToLast(); 26629: valid_ = iter_->Valid(); 26629: VerifyEntryChecksum(); 26629: } 26629: void Next() override { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.next_on_memtable_count += 1; }; 26629: 26629: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: Valid() 26629: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "Valid()" 26629: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 481, __extension__ __PRETTY_FUNCTION__)) 26629: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: iter_->Next(); 26629: rocksdb::SyncPoint::GetInstance()->Process("MemTableIterator::Next:0", iter_); 26629: valid_ = iter_->Valid(); 26629: VerifyEntryChecksum(); 26629: } 26629: bool NextAndGetResult(IterateResult* result) override { 26629: Next(); 26629: bool is_valid = Valid(); 26629: if (is_valid) { 26629: result->key = key(); 26629: result->bound_check_result = IterBoundCheck::kUnknown; 26629: result->value_prepared = true; 26629: } 26629: return is_valid; 26629: } 26629: void Prev() override { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.prev_on_memtable_count += 1; }; 26629: 26629: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: Valid() 26629: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "Valid()" 26629: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 499, __extension__ __PRETTY_FUNCTION__)) 26629: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: iter_->Prev(); 26629: valid_ = iter_->Valid(); 26629: VerifyEntryChecksum(); 26629: } 26629: Slice key() const override { 26629: 26629: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: Valid() 26629: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "Valid()" 26629: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 505, __extension__ __PRETTY_FUNCTION__)) 26629: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: return GetLengthPrefixedSlice(iter_->key()); 26629: } 26629: Slice value() const override { 26629: 26629: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: Valid() 26629: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "Valid()" 26629: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 509, __extension__ __PRETTY_FUNCTION__)) 26629: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: Slice key_slice = GetLengthPrefixedSlice(iter_->key()); 26629: return GetLengthPrefixedSlice(key_slice.data() + key_slice.size()); 26629: } 26629: 26629: Status status() const override { return status_; } 26629: 26629: bool IsKeyPinned() const override { 26629: 26629: return true; 26629: } 26629: 26629: bool IsValuePinned() const override { 26629: 26629: return value_pinned_; 26629: } 26629: 26629: private: 26629: DynamicBloom* bloom_; 26629: const SliceTransform* const prefix_extractor_; 26629: const MemTable::KeyComparator comparator_; 26629: MemTableRep::Iterator* iter_; 26629: bool valid_; 26629: bool arena_mode_; 26629: bool value_pinned_; 26629: size_t protection_bytes_per_key_; 26629: Status status_; 26629: Logger* logger_; 26629: 26629: void VerifyEntryChecksum() { 26629: if (protection_bytes_per_key_ > 0 && Valid()) { 26629: status_ = MemTable::VerifyEntryChecksum(iter_->key(), 26629: protection_bytes_per_key_); 26629: if (!status_.ok()) { 26629: rocksdb::Log(InfoLogLevel::ERROR_LEVEL, logger_, ("[%s:" "543" "] " "In MemtableIterator: %s"), RocksLogShorterFileName("./db/memtable.cc"), status_.getState()); 26629: } 26629: } 26629: } 26629: }; 26629: 26629: InternalIterator* MemTable::NewIterator(const ReadOptions& read_options, 26629: Arena* arena) { 26629: 26629: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: arena != nullptr 26629: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "arena != nullptr" 26629: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 551, __extension__ __PRETTY_FUNCTION__)) 26629: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: auto mem = arena->AllocateAligned(sizeof(MemTableIterator)); 26629: return new (mem) MemTableIterator(*this, read_options, arena); 26629: } 26629: 26629: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIterator( 26629: const ReadOptions& read_options, SequenceNumber read_seq, 26629: bool immutable_memtable) { 26629: if (read_options.ignore_range_deletions || 26629: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 26629: return nullptr; 26629: } 26629: return NewRangeTombstoneIteratorInternal(read_options, read_seq, 26629: immutable_memtable); 26629: } 26629: 26629: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIteratorInternal( 26629: const ReadOptions& read_options, SequenceNumber read_seq, 26629: bool immutable_memtable) { 26629: if (immutable_memtable) { 26629: 26629: 26629: 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: IsFragmentedRangeTombstonesConstructed() 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "IsFragmentedRangeTombstonesConstructed()" 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 573, __extension__ __PRETTY_FUNCTION__)) 26629: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: return new FragmentedRangeTombstoneIterator( 26629: fragmented_range_tombstone_list_.get(), comparator_.comparator, 26629: read_seq, read_options.timestamp); 26629: } 26629: 26629: 26629: std::shared_ptr cache = 26629: std::atomic_load_explicit(cached_range_tombstone_.Access(), 26629: std::memory_order_relaxed); 26629: 26629: if (!cache->initialized.load(std::memory_order_acquire)) { 26629: cache->reader_mutex.lock(); 26629: if (!cache->tombstones) { 26629: auto* unfragmented_iter = 26629: new MemTableIterator(*this, read_options, nullptr , 26629: true ); 26629: cache->tombstones = std::make_unique( 26629: FragmentedRangeTombstoneList( 26629: std::unique_ptr(unfragmented_iter), 26629: comparator_.comparator)); 26629: cache->initialized.store(true, std::memory_order_release); 26629: } 26629: cache->reader_mutex.unlock(); 26629: } 26629: 26629: auto* fragmented_iter = new FragmentedRangeTombstoneIterator( 26629: cache, comparator_.comparator, read_seq, read_options.timestamp); 26629: return fragmented_iter; 26629: } 26629: 26629: void MemTable::ConstructFragmentedRangeTombstones() { 26629: 26629: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: !IsFragmentedRangeTombstonesConstructed(false) 26629: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "!IsFragmentedRangeTombstonesConstructed(false)" 26629: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 605, __extension__ __PRETTY_FUNCTION__)) 26629: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: 26629: if (!is_range_del_table_empty_.load(std::memory_order_relaxed)) { 26629: auto* unfragmented_iter = 26629: new MemTableIterator(*this, ReadOptions(), nullptr , 26629: true ); 26629: 26629: fragmented_range_tombstone_list_ = 26629: std::make_unique( 26629: std::unique_ptr(unfragmented_iter), 26629: comparator_.comparator); 26629: } 26629: } 26629: 26629: port::RWMutex* MemTable::GetLock(const Slice& key) { 26629: return &locks_[GetSliceRangedNPHash(key, locks_.size())]; 26629: } 26629: 26629: MemTable::MemTableStats MemTable::ApproximateStats(const Slice& start_ikey, 26629: const Slice& end_ikey) { 26629: uint64_t entry_count = table_->ApproximateNumEntries(start_ikey, end_ikey); 26629: entry_count += range_del_table_->ApproximateNumEntries(start_ikey, end_ikey); 26629: if (entry_count == 0) { 26629: return {0, 0}; 26629: } 26629: uint64_t n = num_entries_.load(std::memory_order_relaxed); 26629: if (n == 0) { 26629: return {0, 0}; 26629: } 26629: if (entry_count > n) { 26629: 26629: 26629: 26629: entry_count = n; 26629: } 26629: uint64_t data_size = data_size_.load(std::memory_order_relaxed); 26629: return {entry_count * (data_size / n), entry_count}; 26629: } 26629: 26629: Status MemTable::VerifyEncodedEntry(Slice encoded, 26629: const ProtectionInfoKVOS64& kv_prot_info) { 26629: uint32_t ikey_len = 0; 26629: if (!GetVarint32(&encoded, &ikey_len)) { 26629: return Status::Corruption("Unable to parse internal key length"); 26629: } 26629: size_t ts_sz = GetInternalKeyComparator().user_comparator()->timestamp_size(); 26629: if (ikey_len < 8 + ts_sz) { 26629: return Status::Corruption("Internal key length too short"); 26629: } 26629: if (ikey_len > encoded.size()) { 26629: return Status::Corruption("Internal key length too long"); 26629: } 26629: uint32_t value_len = 0; 26629: const size_t user_key_len = ikey_len - 8; 26629: Slice key(encoded.data(), user_key_len); 26629: encoded.remove_prefix(user_key_len); 26629: 26629: uint64_t packed = DecodeFixed64(encoded.data()); 26629: ValueType value_type = kMaxValue; 26629: SequenceNumber sequence_number = kMaxSequenceNumber; 26629: UnPackSequenceAndType(packed, &sequence_number, &value_type); 26629: encoded.remove_prefix(8); 26629: 26629: if (!GetVarint32(&encoded, &value_len)) { 26629: return Status::Corruption("Unable to parse value length"); 26629: } 26629: if (value_len < encoded.size()) { 26629: return Status::Corruption("Value length too short"); 26629: } 26629: if (value_len > encoded.size()) { 26629: return Status::Corruption("Value length too long"); 26629: } 26629: Slice value(encoded.data(), value_len); 26629: 26629: return kv_prot_info.StripS(sequence_number) 26629: .StripKVO(key, value, value_type) 26629: .GetStatus(); 26629: } 26629: 26629: void MemTable::UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 26629: const Slice& key, const Slice& value, 26629: ValueType type, SequenceNumber s, 26629: char* checksum_ptr) { 26629: if (moptions_.protection_bytes_per_key == 0) { 26629: return; 26629: } 26629: 26629: uint64_t checksum = 0; 26629: if (kv_prot_info == nullptr) { 26629: checksum = 26629: ProtectionInfo64().ProtectKVO(key, value, type).ProtectS(s).GetVal(); 26629: } else { 26629: checksum = kv_prot_info->GetVal(); 26629: } 26629: switch (moptions_.protection_bytes_per_key) { 26629: case 1: 26629: checksum_ptr[0] = static_cast(checksum); 26629: break; 26629: case 2: 26629: EncodeFixed16(checksum_ptr, static_cast(checksum)); 26629: break; 26629: case 4: 26629: EncodeFixed32(checksum_ptr, static_cast(checksum)); 26629: break; 26629: case 8: 26629: EncodeFixed64(checksum_ptr, checksum); 26629: break; 26629: default: 26629: 26629: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: false 26629: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "false" 26629: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 713, __extension__ __PRETTY_FUNCTION__)) 26629: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: } 26629: } 26629: 26629: Status MemTable::Add(SequenceNumber s, ValueType type, 26629: const Slice& key, 26629: const Slice& value, 26629: const ProtectionInfoKVOS64* kv_prot_info, 26629: bool allow_concurrent, 26629: MemTablePostProcessInfo* post_process_info, void** hint) { 26629: 26629: 26629: 26629: 26629: 26629: 26629: uint32_t key_size = static_cast(key.size()); 26629: uint32_t val_size = static_cast(value.size()); 26629: uint32_t internal_key_size = key_size + 8; 26629: const uint32_t encoded_len = VarintLength(internal_key_size) + 26629: internal_key_size + VarintLength(val_size) + 26629: val_size + moptions_.protection_bytes_per_key; 26629: char* buf = nullptr; 26629: std::unique_ptr& table = 26629: type == kTypeRangeDeletion ? range_del_table_ : table_; 26629: KeyHandle handle = table->Allocate(encoded_len, &buf); 26629: 26629: char* p = EncodeVarint32(buf, internal_key_size); 26629: memcpy(p, key.data(), key_size); 26629: Slice key_slice(p, key_size); 26629: p += key_size; 26629: uint64_t packed = PackSequenceAndType(s, type); 26629: EncodeFixed64(p, packed); 26629: p += 8; 26629: p = EncodeVarint32(p, val_size); 26629: memcpy(p, value.data(), val_size); 26629: 26629: # 749 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 749 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: (unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len 26629: # 749 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 749 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "(unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len" 26629: # 749 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 749, __extension__ __PRETTY_FUNCTION__)) 26629: 26629: # 750 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: 26629: UpdateEntryChecksum(kv_prot_info, key, value, type, s, 26629: buf + encoded_len - moptions_.protection_bytes_per_key); 26629: Slice encoded(buf, encoded_len - moptions_.protection_bytes_per_key); 26629: if (kv_prot_info != nullptr) { 26629: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:Encoded", &encoded); 26629: Status status = VerifyEncodedEntry(encoded, *kv_prot_info); 26629: if (!status.ok()) { 26629: return status; 26629: } 26629: } 26629: 26629: size_t ts_sz = GetInternalKeyComparator().user_comparator()->timestamp_size(); 26629: Slice key_without_ts = StripTimestampFromUserKey(key, ts_sz); 26629: 26629: if (!allow_concurrent) { 26629: 26629: if (insert_with_hint_prefix_extractor_ != nullptr && 26629: insert_with_hint_prefix_extractor_->InDomain(key_slice)) { 26629: Slice prefix = insert_with_hint_prefix_extractor_->Transform(key_slice); 26629: bool res = table->InsertKeyWithHint(handle, &insert_hints_[prefix]); 26629: if ((__builtin_expect((!res), 0))) { 26629: return Status::TryAgain("key+seq exists"); 26629: } 26629: } else { 26629: bool res = table->InsertKey(handle); 26629: if ((__builtin_expect((!res), 0))) { 26629: return Status::TryAgain("key+seq exists"); 26629: } 26629: } 26629: 26629: 26629: 26629: num_entries_.store(num_entries_.load(std::memory_order_relaxed) + 1, 26629: std::memory_order_relaxed); 26629: data_size_.store(data_size_.load(std::memory_order_relaxed) + encoded_len, 26629: std::memory_order_relaxed); 26629: if (type == kTypeDeletion) { 26629: num_deletes_.store(num_deletes_.load(std::memory_order_relaxed) + 1, 26629: std::memory_order_relaxed); 26629: } 26629: 26629: if (bloom_filter_ && prefix_extractor_ && 26629: prefix_extractor_->InDomain(key_without_ts)) { 26629: bloom_filter_->Add(prefix_extractor_->Transform(key_without_ts)); 26629: } 26629: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 26629: bloom_filter_->Add(key_without_ts); 26629: } 26629: 26629: 26629: 26629: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: first_seqno_ == 0 || s >= first_seqno_ 26629: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "first_seqno_ == 0 || s >= first_seqno_" 26629: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 802, __extension__ __PRETTY_FUNCTION__)) 26629: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: if (first_seqno_ == 0) { 26629: first_seqno_.store(s, std::memory_order_relaxed); 26629: 26629: if (earliest_seqno_ == kMaxSequenceNumber) { 26629: earliest_seqno_.store(GetFirstSequenceNumber(), 26629: std::memory_order_relaxed); 26629: } 26629: 26629: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: first_seqno_.load() >= earliest_seqno_.load() 26629: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "first_seqno_.load() >= earliest_seqno_.load()" 26629: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 810, __extension__ __PRETTY_FUNCTION__)) 26629: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: } 26629: 26629: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: post_process_info == nullptr 26629: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "post_process_info == nullptr" 26629: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 812, __extension__ __PRETTY_FUNCTION__)) 26629: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: UpdateFlushState(); 26629: } else { 26629: bool res = (hint == nullptr) 26629: ? table->InsertKeyConcurrently(handle) 26629: : table->InsertKeyWithHintConcurrently(handle, hint); 26629: if ((__builtin_expect((!res), 0))) { 26629: return Status::TryAgain("key+seq exists"); 26629: } 26629: 26629: 26629: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: post_process_info != nullptr 26629: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "post_process_info != nullptr" 26629: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 822, __extension__ __PRETTY_FUNCTION__)) 26629: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: post_process_info->num_entries++; 26629: post_process_info->data_size += encoded_len; 26629: if (type == kTypeDeletion) { 26629: post_process_info->num_deletes++; 26629: } 26629: 26629: if (bloom_filter_ && prefix_extractor_ && 26629: prefix_extractor_->InDomain(key_without_ts)) { 26629: bloom_filter_->AddConcurrently( 26629: prefix_extractor_->Transform(key_without_ts)); 26629: } 26629: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 26629: bloom_filter_->AddConcurrently(key_without_ts); 26629: } 26629: 26629: 26629: uint64_t cur_seq_num = first_seqno_.load(std::memory_order_relaxed); 26629: while ((cur_seq_num == 0 || s < cur_seq_num) && 26629: !first_seqno_.compare_exchange_weak(cur_seq_num, s)) { 26629: } 26629: uint64_t cur_earliest_seqno = 26629: earliest_seqno_.load(std::memory_order_relaxed); 26629: while ( 26629: (cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) && 26629: !first_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) { 26629: } 26629: } 26629: if (type == kTypeRangeDeletion) { 26629: auto new_cache = std::make_shared(); 26629: size_t size = cached_range_tombstone_.Size(); 26629: if (allow_concurrent) { 26629: range_del_mutex_.lock(); 26629: } 26629: for (size_t i = 0; i < size; ++i) { 26629: std::shared_ptr* local_cache_ref_ptr = 26629: cached_range_tombstone_.AccessAtCore(i); 26629: auto new_local_cache_ref = std::make_shared< 26629: const std::shared_ptr>(new_cache); 26629: 26629: 26629: 26629: 26629: 26629: std::atomic_store_explicit( 26629: local_cache_ref_ptr, 26629: std::shared_ptr( 26629: new_local_cache_ref, new_cache.get()), 26629: std::memory_order_relaxed); 26629: } 26629: if (allow_concurrent) { 26629: range_del_mutex_.unlock(); 26629: } 26629: is_range_del_table_empty_.store(false, std::memory_order_relaxed); 26629: } 26629: UpdateOldestKeyTime(); 26629: 26629: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:BeforeReturn:Encoded", &encoded); 26629: return Status::OK(); 26629: } 26629: 26629: 26629: namespace { 26629: 26629: struct Saver { 26629: Status* status; 26629: const LookupKey* key; 26629: bool* found_final_value; 26629: bool* merge_in_progress; 26629: std::string* value; 26629: PinnableWideColumns* columns; 26629: SequenceNumber seq; 26629: std::string* timestamp; 26629: const MergeOperator* merge_operator; 26629: 26629: MergeContext* merge_context; 26629: SequenceNumber max_covering_tombstone_seq; 26629: MemTable* mem; 26629: Logger* logger; 26629: Statistics* statistics; 26629: bool inplace_update_support; 26629: bool do_merge; 26629: SystemClock* clock; 26629: 26629: ReadCallback* callback_; 26629: bool* is_blob_index; 26629: bool allow_data_in_errors; 26629: size_t protection_bytes_per_key; 26629: bool CheckCallback(SequenceNumber _seq) { 26629: if (callback_) { 26629: return callback_->IsVisible(_seq); 26629: } 26629: return true; 26629: } 26629: }; 26629: } 26629: 26629: static bool SaveValue(void* arg, const char* entry) { 26629: rocksdb::SyncPoint::GetInstance()->Process("Memtable::SaveValue:Begin:entry", &entry); 26629: Saver* s = reinterpret_cast(arg); 26629: 26629: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: s != nullptr 26629: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "s != nullptr" 26629: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 922, __extension__ __PRETTY_FUNCTION__)) 26629: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: 26629: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: !s->value || !s->columns 26629: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "!s->value || !s->columns" 26629: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 923, __extension__ __PRETTY_FUNCTION__)) 26629: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: 26629: if (s->protection_bytes_per_key > 0) { 26629: *(s->status) = MemTable::VerifyEntryChecksum( 26629: entry, s->protection_bytes_per_key, s->allow_data_in_errors); 26629: if (!s->status->ok()) { 26629: rocksdb::Log(InfoLogLevel::ERROR_LEVEL, s->logger, ("[%s:" "929" "] " "In SaveValue: %s"), RocksLogShorterFileName("./db/memtable.cc"), s->status->getState()); 26629: 26629: return false; 26629: } 26629: } 26629: 26629: MergeContext* merge_context = s->merge_context; 26629: SequenceNumber max_covering_tombstone_seq = s->max_covering_tombstone_seq; 26629: const MergeOperator* merge_operator = s->merge_operator; 26629: 26629: 26629: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: merge_context != nullptr 26629: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "merge_context != nullptr" 26629: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 939, __extension__ __PRETTY_FUNCTION__)) 26629: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: 26629: 26629: 26629: uint32_t key_length = 0; 26629: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 26629: 26629: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: key_length >= 8 26629: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "key_length >= 8" 26629: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 945, __extension__ __PRETTY_FUNCTION__)) 26629: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: Slice user_key_slice = Slice(key_ptr, key_length - 8); 26629: const Comparator* user_comparator = 26629: s->mem->GetInternalKeyComparator().user_comparator(); 26629: size_t ts_sz = user_comparator->timestamp_size(); 26629: if (ts_sz && s->timestamp && max_covering_tombstone_seq > 0) { 26629: 26629: 26629: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: s->timestamp->size() == ts_sz 26629: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "s->timestamp->size() == ts_sz" 26629: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 952, __extension__ __PRETTY_FUNCTION__)) 26629: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: } 26629: if (user_comparator->EqualWithoutTimestamp(user_key_slice, 26629: s->key->user_key())) { 26629: 26629: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 26629: ValueType type; 26629: SequenceNumber seq; 26629: UnPackSequenceAndType(tag, &seq, &type); 26629: 26629: if (!s->CheckCallback(seq)) { 26629: return true; 26629: } 26629: 26629: if (s->seq == kMaxSequenceNumber) { 26629: s->seq = seq; 26629: if (s->seq > max_covering_tombstone_seq) { 26629: if (ts_sz && s->timestamp != nullptr) { 26629: 26629: 26629: 26629: 26629: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 26629: s->timestamp->assign(ts.data(), ts_sz); 26629: } 26629: } else { 26629: s->seq = max_covering_tombstone_seq; 26629: } 26629: } 26629: 26629: if (ts_sz > 0 && s->timestamp != nullptr) { 26629: if (!s->timestamp->empty()) { 26629: 26629: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ts_sz == s->timestamp->size() 26629: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "ts_sz == s->timestamp->size()" 26629: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 984, __extension__ __PRETTY_FUNCTION__)) 26629: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: } 26629: 26629: const std::string kMaxTs(ts_sz, '\xff'); 26629: if (s->timestamp->empty() || 26629: user_comparator->CompareTimestamp(*(s->timestamp), kMaxTs) == 0) { 26629: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 26629: s->timestamp->assign(ts.data(), ts_sz); 26629: } 26629: } 26629: 26629: if ((type == kTypeValue || type == kTypeMerge || type == kTypeBlobIndex || 26629: type == kTypeWideColumnEntity || type == kTypeDeletion || 26629: type == kTypeSingleDeletion || type == kTypeDeletionWithTimestamp) && 26629: max_covering_tombstone_seq > seq) { 26629: type = kTypeRangeDeletion; 26629: } 26629: switch (type) { 26629: case kTypeBlobIndex: { 26629: if (!s->do_merge) { 26629: *(s->status) = Status::NotSupported( 26629: "GetMergeOperands not supported by stacked BlobDB"); 26629: *(s->found_final_value) = true; 26629: return false; 26629: } 26629: 26629: if (*(s->merge_in_progress)) { 26629: *(s->status) = Status::NotSupported( 26629: "Merge operator not supported by stacked BlobDB"); 26629: *(s->found_final_value) = true; 26629: return false; 26629: } 26629: 26629: if (s->is_blob_index == nullptr) { 26629: rocksdb::Log(InfoLogLevel::ERROR_LEVEL, s->logger, ("[%s:" "1018" "] " "Encountered unexpected blob index."), RocksLogShorterFileName("./db/memtable.cc")); 26629: *(s->status) = Status::NotSupported( 26629: "Encountered unexpected blob index. Please open DB with " 26629: "ROCKSDB_NAMESPACE::blob_db::BlobDB."); 26629: *(s->found_final_value) = true; 26629: return false; 26629: } 26629: 26629: if (s->inplace_update_support) { 26629: s->mem->GetLock(s->key->user_key())->ReadLock(); 26629: } 26629: 26629: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 26629: 26629: *(s->status) = Status::OK(); 26629: 26629: if (s->value) { 26629: s->value->assign(v.data(), v.size()); 26629: } else if (s->columns) { 26629: s->columns->SetPlainValue(v); 26629: } 26629: 26629: if (s->inplace_update_support) { 26629: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 26629: } 26629: 26629: *(s->found_final_value) = true; 26629: *(s->is_blob_index) = true; 26629: 26629: return false; 26629: } 26629: case kTypeValue: { 26629: if (s->inplace_update_support) { 26629: s->mem->GetLock(s->key->user_key())->ReadLock(); 26629: } 26629: 26629: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 26629: 26629: *(s->status) = Status::OK(); 26629: 26629: if (!s->do_merge) { 26629: 26629: 26629: 26629: merge_context->PushOperand( 26629: v, s->inplace_update_support == false ); 26629: } else if (*(s->merge_in_progress)) { 26629: 26629: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: s->do_merge 26629: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "s->do_merge" 26629: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 1065, __extension__ __PRETTY_FUNCTION__)) 26629: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: 26629: if (s->value || s->columns) { 26629: std::string result; 26629: *(s->status) = MergeHelper::TimedFullMerge( 26629: merge_operator, s->key->user_key(), &v, 26629: merge_context->GetOperands(), &result, s->logger, s->statistics, 26629: s->clock, nullptr , true); 26629: 26629: if (s->status->ok()) { 26629: if (s->value) { 26629: *(s->value) = std::move(result); 26629: } else { 26629: 26629: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: s->columns 26629: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "s->columns" 26629: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 1078, __extension__ __PRETTY_FUNCTION__)) 26629: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: s->columns->SetPlainValue(result); 26629: } 26629: } 26629: } 26629: } else if (s->value) { 26629: s->value->assign(v.data(), v.size()); 26629: } else if (s->columns) { 26629: s->columns->SetPlainValue(v); 26629: } 26629: 26629: if (s->inplace_update_support) { 26629: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 26629: } 26629: 26629: *(s->found_final_value) = true; 26629: 26629: if (s->is_blob_index != nullptr) { 26629: *(s->is_blob_index) = false; 26629: } 26629: 26629: return false; 26629: } 26629: case kTypeWideColumnEntity: { 26629: if (!s->do_merge) { 26629: *(s->status) = Status::NotSupported( 26629: "GetMergeOperands not supported for wide-column entities"); 26629: *(s->found_final_value) = true; 26629: return false; 26629: } 26629: 26629: if (*(s->merge_in_progress)) { 26629: *(s->status) = Status::NotSupported( 26629: "Merge not supported for wide-column entities"); 26629: *(s->found_final_value) = true; 26629: return false; 26629: } 26629: 26629: if (s->inplace_update_support) { 26629: s->mem->GetLock(s->key->user_key())->ReadLock(); 26629: } 26629: 26629: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 26629: 26629: *(s->status) = Status::OK(); 26629: 26629: if (s->value) { 26629: Slice value_of_default; 26629: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 26629: v, value_of_default); 26629: if (s->status->ok()) { 26629: s->value->assign(value_of_default.data(), value_of_default.size()); 26629: } 26629: } else if (s->columns) { 26629: *(s->status) = s->columns->SetWideColumnValue(v); 26629: } 26629: 26629: if (s->inplace_update_support) { 26629: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 26629: } 26629: 26629: *(s->found_final_value) = true; 26629: 26629: if (s->is_blob_index != nullptr) { 26629: *(s->is_blob_index) = false; 26629: } 26629: 26629: return false; 26629: } 26629: case kTypeDeletion: 26629: case kTypeDeletionWithTimestamp: 26629: case kTypeSingleDeletion: 26629: case kTypeRangeDeletion: { 26629: if (*(s->merge_in_progress)) { 26629: if (s->value != nullptr) { 26629: *(s->status) = MergeHelper::TimedFullMerge( 26629: merge_operator, s->key->user_key(), nullptr, 26629: merge_context->GetOperands(), s->value, s->logger, 26629: s->statistics, s->clock, nullptr , true); 26629: } 26629: } else { 26629: *(s->status) = Status::NotFound(); 26629: } 26629: *(s->found_final_value) = true; 26629: return false; 26629: } 26629: case kTypeMerge: { 26629: if (!merge_operator) { 26629: *(s->status) = Status::InvalidArgument( 26629: "merge_operator is not properly initialized."); 26629: 26629: 26629: 26629: 26629: *(s->found_final_value) = true; 26629: return false; 26629: } 26629: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 26629: *(s->merge_in_progress) = true; 26629: merge_context->PushOperand( 26629: v, s->inplace_update_support == false ); 26629: if (s->do_merge && merge_operator->ShouldMerge( 26629: merge_context->GetOperandsDirectionBackward())) { 26629: *(s->status) = MergeHelper::TimedFullMerge( 26629: merge_operator, s->key->user_key(), nullptr, 26629: merge_context->GetOperands(), s->value, s->logger, s->statistics, 26629: s->clock, nullptr , true); 26629: *(s->found_final_value) = true; 26629: return false; 26629: } 26629: return true; 26629: } 26629: default: { 26629: std::string msg("Corrupted value not expected."); 26629: if (s->allow_data_in_errors) { 26629: msg.append("Unrecognized value type: " + 26629: std::to_string(static_cast(type)) + ". "); 26629: msg.append("User key: " + user_key_slice.ToString( true) + 26629: ". "); 26629: msg.append("seq: " + std::to_string(seq) + "."); 26629: } 26629: *(s->status) = Status::Corruption(msg.c_str()); 26629: return false; 26629: } 26629: } 26629: } 26629: 26629: 26629: return false; 26629: } 26629: 26629: bool MemTable::Get(const LookupKey& key, std::string* value, 26629: PinnableWideColumns* columns, std::string* timestamp, 26629: Status* s, MergeContext* merge_context, 26629: SequenceNumber* max_covering_tombstone_seq, 26629: SequenceNumber* seq, const ReadOptions& read_opts, 26629: bool immutable_memtable, ReadCallback* callback, 26629: bool* is_blob_index, bool do_merge) { 26629: 26629: if (IsEmpty()) { 26629: 26629: return false; 26629: } 26629: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 26629: 26629: std::unique_ptr range_del_iter( 26629: NewRangeTombstoneIterator(read_opts, 26629: GetInternalKeySeqno(key.internal_key()), 26629: immutable_memtable)); 26629: if (range_del_iter != nullptr) { 26629: SequenceNumber covering_seq = 26629: range_del_iter->MaxCoveringTombstoneSeqnum(key.user_key()); 26629: if (covering_seq > *max_covering_tombstone_seq) { 26629: *max_covering_tombstone_seq = covering_seq; 26629: if (timestamp) { 26629: 26629: 26629: timestamp->assign(range_del_iter->timestamp().data(), 26629: range_del_iter->timestamp().size()); 26629: } 26629: } 26629: } 26629: 26629: bool found_final_value = false; 26629: bool merge_in_progress = s->IsMergeInProgress(); 26629: bool may_contain = true; 26629: size_t ts_sz = GetInternalKeyComparator().user_comparator()->timestamp_size(); 26629: Slice user_key_without_ts = StripTimestampFromUserKey(key.user_key(), ts_sz); 26629: bool bloom_checked = false; 26629: if (bloom_filter_) { 26629: 26629: 26629: if (moptions_.memtable_whole_key_filtering) { 26629: may_contain = bloom_filter_->MayContain(user_key_without_ts); 26629: bloom_checked = true; 26629: } else { 26629: 26629: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: prefix_extractor_ 26629: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "prefix_extractor_" 26629: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 1254, __extension__ __PRETTY_FUNCTION__)) 26629: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: if (prefix_extractor_->InDomain(user_key_without_ts)) { 26629: may_contain = bloom_filter_->MayContain( 26629: prefix_extractor_->Transform(user_key_without_ts)); 26629: bloom_checked = true; 26629: } 26629: } 26629: } 26629: 26629: if (bloom_filter_ && !may_contain) { 26629: 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 26629: *seq = kMaxSequenceNumber; 26629: } else { 26629: if (bloom_checked) { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 26629: } 26629: GetFromTable(key, *max_covering_tombstone_seq, do_merge, callback, 26629: is_blob_index, value, columns, timestamp, s, merge_context, 26629: seq, &found_final_value, &merge_in_progress); 26629: } 26629: 26629: 26629: 26629: if (!found_final_value && merge_in_progress && !s->IsCorruption()) { 26629: *s = Status::MergeInProgress(); 26629: } 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; }; 26629: return found_final_value; 26629: } 26629: 26629: void MemTable::GetFromTable(const LookupKey& key, 26629: SequenceNumber max_covering_tombstone_seq, 26629: bool do_merge, ReadCallback* callback, 26629: bool* is_blob_index, std::string* value, 26629: PinnableWideColumns* columns, 26629: std::string* timestamp, Status* s, 26629: MergeContext* merge_context, SequenceNumber* seq, 26629: bool* found_final_value, bool* merge_in_progress) { 26629: Saver saver; 26629: saver.status = s; 26629: saver.found_final_value = found_final_value; 26629: saver.merge_in_progress = merge_in_progress; 26629: saver.key = &key; 26629: saver.value = value; 26629: saver.columns = columns; 26629: saver.timestamp = timestamp; 26629: saver.seq = kMaxSequenceNumber; 26629: saver.mem = this; 26629: saver.merge_context = merge_context; 26629: saver.max_covering_tombstone_seq = max_covering_tombstone_seq; 26629: saver.merge_operator = moptions_.merge_operator; 26629: saver.logger = moptions_.info_log; 26629: saver.inplace_update_support = moptions_.inplace_update_support; 26629: saver.statistics = moptions_.statistics; 26629: saver.clock = clock_; 26629: saver.callback_ = callback; 26629: saver.is_blob_index = is_blob_index; 26629: saver.do_merge = do_merge; 26629: saver.allow_data_in_errors = moptions_.allow_data_in_errors; 26629: saver.protection_bytes_per_key = moptions_.protection_bytes_per_key; 26629: table_->Get(key, &saver, SaveValue); 26629: *seq = saver.seq; 26629: } 26629: 26629: void MemTable::MultiGet(const ReadOptions& read_options, MultiGetRange* range, 26629: ReadCallback* callback, bool immutable_memtable) { 26629: 26629: if (IsEmpty()) { 26629: 26629: return; 26629: } 26629: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 26629: 26629: 26629: 26629: 26629: bool no_range_del = read_options.ignore_range_deletions || 26629: is_range_del_table_empty_.load(std::memory_order_relaxed); 26629: MultiGetRange temp_range(*range, range->begin(), range->end()); 26629: if (bloom_filter_ && no_range_del) { 26629: bool whole_key = 26629: !prefix_extractor_ || moptions_.memtable_whole_key_filtering; 26629: std::array bloom_keys; 26629: std::array may_match; 26629: std::array range_indexes; 26629: int num_keys = 0; 26629: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 26629: if (whole_key) { 26629: bloom_keys[num_keys] = iter->ukey_without_ts; 26629: range_indexes[num_keys++] = iter.index(); 26629: } else if (prefix_extractor_->InDomain(iter->ukey_without_ts)) { 26629: bloom_keys[num_keys] = 26629: prefix_extractor_->Transform(iter->ukey_without_ts); 26629: range_indexes[num_keys++] = iter.index(); 26629: } 26629: } 26629: bloom_filter_->MayContain(num_keys, &bloom_keys[0], &may_match[0]); 26629: for (int i = 0; i < num_keys; ++i) { 26629: if (!may_match[i]) { 26629: temp_range.SkipIndex(range_indexes[i]); 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 26629: } else { 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 26629: } 26629: } 26629: } 26629: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 26629: bool found_final_value{false}; 26629: bool merge_in_progress = iter->s->IsMergeInProgress(); 26629: if (!no_range_del) { 26629: std::unique_ptr range_del_iter( 26629: NewRangeTombstoneIteratorInternal( 26629: read_options, GetInternalKeySeqno(iter->lkey->internal_key()), 26629: immutable_memtable)); 26629: SequenceNumber covering_seq = 26629: range_del_iter->MaxCoveringTombstoneSeqnum(iter->lkey->user_key()); 26629: if (covering_seq > iter->max_covering_tombstone_seq) { 26629: iter->max_covering_tombstone_seq = covering_seq; 26629: if (iter->timestamp) { 26629: 26629: 26629: iter->timestamp->assign(range_del_iter->timestamp().data(), 26629: range_del_iter->timestamp().size()); 26629: } 26629: } 26629: } 26629: SequenceNumber dummy_seq; 26629: GetFromTable(*(iter->lkey), iter->max_covering_tombstone_seq, true, 26629: callback, &iter->is_blob_index, iter->value->GetSelf(), 26629: nullptr, iter->timestamp, iter->s, 26629: &(iter->merge_context), &dummy_seq, &found_final_value, 26629: &merge_in_progress); 26629: 26629: if (!found_final_value && merge_in_progress) { 26629: *(iter->s) = Status::MergeInProgress(); 26629: } 26629: 26629: if (found_final_value) { 26629: iter->value->PinSelf(); 26629: range->AddValueSize(iter->value->size()); 26629: range->MarkKeyDone(iter); 26629: RecordTick(moptions_.statistics, MEMTABLE_HIT); 26629: if (range->GetValueSize() > read_options.value_size_soft_limit) { 26629: 26629: for (auto range_iter = range->begin(); range_iter != range->end(); 26629: ++range_iter) { 26629: range->MarkKeyDone(range_iter); 26629: *(range_iter->s) = Status::Aborted(); 26629: } 26629: break; 26629: } 26629: } 26629: } 26629: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; }; 26629: } 26629: 26629: Status MemTable::Update(SequenceNumber seq, ValueType value_type, 26629: const Slice& key, const Slice& value, 26629: const ProtectionInfoKVOS64* kv_prot_info) { 26629: LookupKey lkey(key, seq); 26629: Slice mem_key = lkey.memtable_key(); 26629: 26629: std::unique_ptr iter( 26629: table_->GetDynamicPrefixIterator()); 26629: iter->Seek(lkey.internal_key(), mem_key.data()); 26629: 26629: if (iter->Valid()) { 26629: 26629: 26629: 26629: 26629: const char* entry = iter->key(); 26629: uint32_t key_length = 0; 26629: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 26629: if (comparator_.comparator.user_comparator()->Equal( 26629: Slice(key_ptr, key_length - 8), lkey.user_key())) { 26629: 26629: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 26629: ValueType type; 26629: SequenceNumber existing_seq; 26629: UnPackSequenceAndType(tag, &existing_seq, &type); 26629: 26629: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: existing_seq != seq 26629: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "existing_seq != seq" 26629: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 1436, __extension__ __PRETTY_FUNCTION__)) 26629: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: if (type == value_type) { 26629: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 26629: uint32_t prev_size = static_cast(prev_value.size()); 26629: uint32_t new_size = static_cast(value.size()); 26629: 26629: 26629: if (new_size <= prev_size) { 26629: char* p = 26629: EncodeVarint32(const_cast(key_ptr) + key_length, new_size); 26629: WriteLock wl(GetLock(lkey.user_key())); 26629: memcpy(p, value.data(), value.size()); 26629: 26629: # 1448 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 1448 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: (unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size()) 26629: # 1448 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1448 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "(unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size())" 26629: # 1448 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 1448, __extension__ __PRETTY_FUNCTION__)) 26629: 26629: 26629: # 1450 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 26629: if (kv_prot_info != nullptr) { 26629: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 26629: 26629: updated_kv_prot_info.UpdateS(seq, existing_seq); 26629: UpdateEntryChecksum(&updated_kv_prot_info, key, value, type, 26629: existing_seq, p + value.size()); 26629: Slice encoded(entry, p + value.size() - entry); 26629: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 26629: } else { 26629: UpdateEntryChecksum(nullptr, key, value, type, existing_seq, 26629: p + value.size()); 26629: } 26629: return Status::OK(); 26629: } 26629: } 26629: } 26629: } 26629: 26629: 26629: return Add(seq, value_type, key, value, kv_prot_info); 26629: } 26629: 26629: Status MemTable::UpdateCallback(SequenceNumber seq, const Slice& key, 26629: const Slice& delta, 26629: const ProtectionInfoKVOS64* kv_prot_info) { 26629: LookupKey lkey(key, seq); 26629: Slice memkey = lkey.memtable_key(); 26629: 26629: std::unique_ptr iter( 26629: table_->GetDynamicPrefixIterator()); 26629: iter->Seek(lkey.internal_key(), memkey.data()); 26629: 26629: if (iter->Valid()) { 26629: 26629: 26629: 26629: 26629: const char* entry = iter->key(); 26629: uint32_t key_length = 0; 26629: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 26629: if (comparator_.comparator.user_comparator()->Equal( 26629: Slice(key_ptr, key_length - 8), lkey.user_key())) { 26629: 26629: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 26629: ValueType type; 26629: uint64_t existing_seq; 26629: UnPackSequenceAndType(tag, &existing_seq, &type); 26629: if (type == kTypeValue) { 26629: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 26629: uint32_t prev_size = static_cast(prev_value.size()); 26629: 26629: char* prev_buffer = const_cast(prev_value.data()); 26629: uint32_t new_prev_size = prev_size; 26629: 26629: std::string str_value; 26629: WriteLock wl(GetLock(lkey.user_key())); 26629: auto status = moptions_.inplace_callback(prev_buffer, &new_prev_size, 26629: delta, &str_value); 26629: if (status == UpdateStatus::UPDATED_INPLACE) { 26629: 26629: 26629: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: new_prev_size <= prev_size 26629: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "new_prev_size <= prev_size" 26629: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 1512, __extension__ __PRETTY_FUNCTION__)) 26629: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: if (new_prev_size < prev_size) { 26629: 26629: char* p = EncodeVarint32(const_cast(key_ptr) + key_length, 26629: new_prev_size); 26629: if (VarintLength(new_prev_size) < VarintLength(prev_size)) { 26629: 26629: memcpy(p, prev_buffer, new_prev_size); 26629: prev_buffer = p; 26629: } 26629: } 26629: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 26629: UpdateFlushState(); 26629: Slice new_value(prev_buffer, new_prev_size); 26629: if (kv_prot_info != nullptr) { 26629: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 26629: 26629: updated_kv_prot_info.UpdateS(seq, existing_seq); 26629: updated_kv_prot_info.UpdateV(delta, new_value); 26629: Slice encoded(entry, prev_buffer + new_prev_size - entry); 26629: UpdateEntryChecksum(&updated_kv_prot_info, key, new_value, type, 26629: existing_seq, prev_buffer + new_prev_size); 26629: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 26629: } else { 26629: UpdateEntryChecksum(nullptr, key, new_value, type, existing_seq, 26629: prev_buffer + new_prev_size); 26629: } 26629: return Status::OK(); 26629: } else if (status == UpdateStatus::UPDATED) { 26629: Status s; 26629: if (kv_prot_info != nullptr) { 26629: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 26629: updated_kv_prot_info.UpdateV(delta, str_value); 26629: s = Add(seq, kTypeValue, key, Slice(str_value), 26629: &updated_kv_prot_info); 26629: } else { 26629: s = Add(seq, kTypeValue, key, Slice(str_value), 26629: nullptr ); 26629: } 26629: RecordTick(moptions_.statistics, NUMBER_KEYS_WRITTEN); 26629: UpdateFlushState(); 26629: return s; 26629: } else if (status == UpdateStatus::UPDATE_FAILED) { 26629: 26629: 26629: UpdateFlushState(); 26629: return Status::OK(); 26629: } 26629: } 26629: } 26629: } 26629: 26629: return Status::NotFound(); 26629: } 26629: 26629: size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key) { 26629: Slice memkey = key.memtable_key(); 26629: 26629: 26629: 26629: 26629: std::unique_ptr iter( 26629: table_->GetDynamicPrefixIterator()); 26629: iter->Seek(key.internal_key(), memkey.data()); 26629: 26629: size_t num_successive_merges = 0; 26629: 26629: for (; iter->Valid(); iter->Next()) { 26629: const char* entry = iter->key(); 26629: uint32_t key_length = 0; 26629: const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 26629: if (!comparator_.comparator.user_comparator()->Equal( 26629: Slice(iter_key_ptr, key_length - 8), key.user_key())) { 26629: break; 26629: } 26629: 26629: const uint64_t tag = DecodeFixed64(iter_key_ptr + key_length - 8); 26629: ValueType type; 26629: uint64_t unused; 26629: UnPackSequenceAndType(tag, &unused, &type); 26629: if (type != kTypeMerge) { 26629: break; 26629: } 26629: 26629: ++num_successive_merges; 26629: } 26629: 26629: return num_successive_merges; 26629: } 26629: 26629: void MemTableRep::Get(const LookupKey& k, void* callback_args, 26629: bool (*callback_func)(void* arg, const char* entry)) { 26629: auto iter = GetDynamicPrefixIterator(); 26629: for (iter->Seek(k.internal_key(), k.memtable_key().data()); 26629: iter->Valid() && callback_func(callback_args, iter->key()); 26629: iter->Next()) { 26629: } 26629: } 26629: 26629: void MemTable::RefLogContainingPrepSection(uint64_t log) { 26629: 26629: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: (static_cast ( 26629: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: log > 0 26629: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: ) ? void (0) : __assert_fail ( 26629: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: "log > 0" 26629: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 26629: , "./db/memtable.cc", 1612, __extension__ __PRETTY_FUNCTION__)) 26629: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 26629: ; 26629: auto cur = min_prep_log_referenced_.load(); 26629: while ((log < cur || cur == 0) && 26629: !min_prep_log_referenced_.compare_exchange_strong(cur, log)) { 26629: cur = min_prep_log_referenced_.load(); 26629: } 26629: } 26629: 26629: uint64_t MemTable::GetMinLogContainingPrepSection() { 26629: return min_prep_log_referenced_.load(); 26629: } 26629: 26629: } === END GCC DUMP === make[3]: *** [CMakeFiles/rocksdb.dir/build.make:1045: CMakeFiles/rocksdb.dir/db/memtable.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... [ 19%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_impl/db_impl_secondary.cc [ 19%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_info_dumper.cc [ 19%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/db_iter.cc In file included from /usr/include/c++/12/map:60, from /build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h:11, from /build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.cc:6: /usr/include/c++/12/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++/12/bits/stl_tree.h:2457:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 2457 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/map:61: 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++/12/bits/stl_map.h:599:22, inlined from 'virtual void rocksdb::CompactionRangeDelAggregator::AddTombstones(std::unique_ptr, const rocksdb::InternalKey*, const rocksdb::InternalKey*)' at /build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.cc:365:45: /usr/include/c++/12/bits/stl_map.h:638: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 638 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 639 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' make[2]: *** [CMakeFiles/Makefile2:176: CMakeFiles/rocksdb.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... [ 19%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/dbformat.cc In file included from /usr/include/c++/12/bits/stl_algo.h:60, from /usr/include/c++/12/functional:64, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:6: /usr/include/c++/12/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++/12/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++/12/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++/12/bits/stl_algo.h:1802:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1802 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1802:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/12/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++/12/bits/stl_algo.h:1908:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1908 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1908:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/12/bits/stl_algo.h:1922:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1922 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 19%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/error_handler.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.h:11: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:127:22: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/12/bits/stl_algo.h:4820:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:132:14: /usr/include/c++/12/bits/stl_algo.h:1937:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1937 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1938 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1939 | __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++/12/bits/stl_algo.h:1940:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/12/bits/stl_algo.h:4820:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:132:14: /usr/include/c++/12/bits/stl_algo.h:1849:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1849 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_algo.h:1854:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1854 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/map:60, from /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl.h:16: /usr/include/c++/12/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++/12/bits/stl_tree.h:2488:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2488 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/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++/12/bits/stl_tree.h:2457:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2457 | _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++/12/bits/stl_map.h:1086:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:145:25: /usr/include/c++/12/bits/stl_tree.h:1209:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1209 | _M_erase_aux(__position); | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/12/map:61: 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, _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++/12/bits/stl_map.h:858:27, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:175:24: /usr/include/c++/12/bits/stl_map.h:638: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 638 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 639 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/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++/12/bits/stl_tree.h:2502:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2502 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_tree.h:2502:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, rocksdb::ColumnFamilyOptions&}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, rocksdb::ColumnFamilyOptions&}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'static rocksdb::Status rocksdb::DB::OpenAsSecondary(const rocksdb::Options&, const std::string&, const std::string&, rocksdb::DB**)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:674:31: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const rocksdb::ColumnFamilyDescriptor&}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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++/12/bits/stl_map.h:1137:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::RecoverLogFiles(const std::vector&, rocksdb::SequenceNumber*, std::unordered_set*, rocksdb::JobContext*)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:327:23: /usr/include/c++/12/bits/stl_tree.h:1238:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1238 | _M_erase_aux(__first, __last); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'static rocksdb::Status rocksdb::DB::OpenAndCompact(const rocksdb::OpenAndCompactOptions&, const std::string&, const std::string&, const std::string&, std::string*, const rocksdb::CompactionServiceOptionsOverride&)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:906:28: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, rocksdb::ColumnFamilyOptions&}; _Tp = rocksdb::ColumnFamilyDescriptor; _Alloc = std::allocator]', inlined from 'static rocksdb::Status rocksdb::DB::OpenAndCompact(const rocksdb::OpenAndCompactOptions&, const std::string&, const std::string&, const std::string&, std::string*, const rocksdb::CompactionServiceOptionsOverride&)' at /build/reproducible-path/rocksdb-7.8.3/db/db_impl/db_impl_secondary.cc:911:33: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 19%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/event_helpers.cc [ 20%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/experimental.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/external_sst_file_ingestion_job.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/file_indexer.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h:18, from /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/experimental.h:8, from /build/reproducible-path/rocksdb-7.8.3/db/experimental.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, int}; _Tp = rocksdb::DbPath; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, int}; _Tp = rocksdb::DbPath; _Alloc = std::allocator]', inlined from 'static rocksdb::ImmutableDBOptions rocksdb::OfflineManifestWriter::WithDbPath(const rocksdb::DBOptions&, const std::string&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_util.h:65:31, inlined from 'rocksdb::OfflineManifestWriter::OfflineManifestWriter(const rocksdb::DBOptions&, const std::string&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_util.h:23:9: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28, inlined from 'rocksdb::Status rocksdb::experimental::UpdateManifestForFilesState(const rocksdb::DBOptions&, const std::string&, const std::vector&, const UpdateManifestForFilesStateOptions&)' at /build/reproducible-path/rocksdb-7.8.3/db/experimental.cc:110:27: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/flush_job.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/flush_scheduler.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/external_sst_file_ingestion_job.h:9, from /build/reproducible-path/rocksdb-7.8.3/db/external_sst_file_ingestion_job.cc:8: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, const rocksdb::FileMetaData&}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::IngestedFileInfo}; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::IngestedFileInfo}; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {rocksdb::IngestedFileInfo}; T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:317:25, inlined from 'rocksdb::Status rocksdb::ExternalSstFileIngestionJob::Prepare(const std::vector >&, const std::vector >&, const std::vector >&, const rocksdb::Temperature&, uint64_t, rocksdb::SuperVersion*)' at /build/reproducible-path/rocksdb-7.8.3/db/external_sst_file_ingestion_job.cc:65:34: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, const rocksdb::FileMetaData&}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:445:28, inlined from 'rocksdb::Status rocksdb::ExternalSstFileIngestionJob::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/external_sst_file_ingestion_job.cc:476:18: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 20%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/forward_iterator.cc [ 20%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/import_column_family_job.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/flush_job.h:18, from /build/reproducible-path/rocksdb-7.8.3/db/flush_job.cc:10: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::BlobFileAdditionInfo}; _Tp = rocksdb::BlobFileAdditionInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {rocksdb::BlobFileAdditionInfo}; _Tp = rocksdb::BlobFileAdditionInfo; _Alloc = std::allocator]', inlined from 'std::unique_ptr rocksdb::FlushJob::GetFlushJobInfo() const' at /build/reproducible-path/rocksdb-7.8.3/db/flush_job.cc:1093:48: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 20%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/internal_stats.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/import_column_family_job.h:10, from /build/reproducible-path/rocksdb-7.8.3/db/import_column_family_job.cc:9: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/import_column_family_job.cc:163:18: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const rocksdb::IngestedFileInfo&}; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::push_back(const T&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:297:22, inlined from 'rocksdb::Status rocksdb::ImportColumnFamilyJob::Prepare(uint64_t, rocksdb::SuperVersion*)' at /build/reproducible-path/rocksdb-7.8.3/db/import_column_family_job.cc:42:31: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 21%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/logs_with_prep_tracker.cc [ 21%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/log_reader.cc In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/logs_with_prep_tracker.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/logs_with_prep_tracker.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {rocksdb::LogsWithPrepTracker::LogCnt}; _Tp = rocksdb::LogsWithPrepTracker::LogCnt; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = rocksdb::LogsWithPrepTracker::LogCnt; _Alloc = std::allocator]', inlined from 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = rocksdb::LogsWithPrepTracker::LogCnt; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:1389:30, inlined from 'void rocksdb::LogsWithPrepTracker::MarkLogAsContainingPrepSection(uint64_t)' at /build/reproducible-path/rocksdb-7.8.3/db/logs_with_prep_tracker.cc:39:27: /usr/include/c++/12/bits/vector.tcc:366:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 366 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 21%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/log_writer.cc [ 21%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/malloc_stats.cc [ 21%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/memtable.cc [ 21%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/memtable_list.cc In file included from /usr/include/c++/12/map:60, from /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.h:13, from /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:11: /usr/include/c++/12/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::tuple<>}; _Key = rocksdb::LevelStatType; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /usr/include/c++/12/bits/stl_tree.h:2457:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 2457 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/map:61: /usr/include/c++/12/bits/stl_map.h: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]': /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:130:42: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:131:48: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:132:43: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:133:38: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:135:38: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:137:40: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:138:41: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:139:41: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:140:41: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:142:42: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:143:43: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:144:41: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:145:45: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:146:43: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:149:39: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:151:41: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:153:42: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = rocksdb::LevelStatType; _Tp = double; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'void rocksdb::{anonymous}::PrepareLevelStats(std::map*, int, int, double, double, double, const rocksdb::InternalStats::CompactionStats&)' at /build/reproducible-path/rocksdb-7.8.3/db/internal_stats.cc:154:42: /usr/include/c++/12/bits/stl_map.h:530:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 530 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 531 | std::forward_as_tuple(std::move(__k)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 532 | std::tuple<>()); | ~~~~~~~~~~~~~~~ /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc:256:1: error: insn does not satisfy its constraints: 256 | } | ^ (insn 277 276 278 13 (set (reg:CC_DNE 100 cc) (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [163]) (const_int -1 [0xffffffffffffffff])) (ne:SI (reg:SI 1 r1 [+4 ]) (const_int -1 [0xffffffffffffffff]))) (const_int 0 [0]))) "/usr/include/c++/12/bits/atomic_base.h":560:36 339 {*cmp_ior} (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) (expr_list:REG_DEAD (reg:SI 0 r0 [163]) (nil)))) during RTL pass: cprop_hardreg /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc:256:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692 0xe3a41b internal_error(char const*, ...) ???:0 0x1e07f3 fancy_abort(char const*, int, char const*) ???:0 0x1df453 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x1df485 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x67304f 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. [ 21%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/merge_helper.cc [ 22%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/merge_operator.cc [ 22%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/output_validator.cc [ 22%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/periodic_task_scheduler.cc [ 22%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/range_del_aggregator.cc [ 22%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/range_tombstone_fragmenter.cc In file included from /usr/include/c++/12/map:60, from /build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h:11, from /build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.cc:6: /usr/include/c++/12/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++/12/bits/stl_tree.h:2457:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 2457 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/map:61: 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++/12/bits/stl_map.h:599:22, inlined from 'virtual void rocksdb::CompactionRangeDelAggregator::AddTombstones(std::unique_ptr, const rocksdb::InternalKey*, const rocksdb::InternalKey*)' at /build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.cc:365:45: /usr/include/c++/12/bits/stl_map.h:638: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 638 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 639 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 22%] 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_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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-7.8.3 -I/build/reproducible-path/rocksdb-7.8.3/include -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-7.8.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -fPIC -std=gnu++17 -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-7.8.3/db/repair.cc Preprocessed source stored into /tmp/cc51A48s.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 27002: // Target: arm-linux-gnueabihf 27002: // Configured with: ../src/configure -v --with-pkgversion='Debian 12.2.0-14' --with-bugurl=file:///usr/share/doc/gcc-12/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-12 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --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 27002: // Thread model: posix 27002: // Supported LTO compression algorithms: zlib zstd 27002: // gcc version 12.2.0 (Debian 12.2.0-14) 27002: // 27002: // /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': 27002: // /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc:256:1: error: insn does not satisfy its constraints: 27002: // 256 | } 27002: // | ^ 27002: // (insn 277 276 278 13 (set (reg:CC_DNE 100 cc) 27002: // (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [163]) 27002: // (const_int -1 [0xffffffffffffffff])) 27002: // (ne:SI (reg:SI 1 r1 [+4 ]) 27002: // (const_int -1 [0xffffffffffffffff]))) 27002: // (const_int 0 [0]))) "/usr/include/c++/12/bits/atomic_base.h":560:36 339 {*cmp_ior} 27002: // (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) 27002: // (expr_list:REG_DEAD (reg:SI 0 r0 [163]) 27002: // (nil)))) 27002: // during RTL pass: cprop_hardreg 27002: // /build/reproducible-path/rocksdb-7.8.3/db/memtable.cc:256:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692 27002: // 0xe3a41b internal_error(char const*, ...) 27002: // ???:0 27002: // 0x1e07f3 fancy_abort(char const*, int, char const*) 27002: // ???:0 27002: // 0x1df453 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) 27002: // ???:0 27002: // 0x1df485 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) 27002: // ???:0 27002: // 0x67304f extract_constrain_insn(rtx_insn*) 27002: // ???:0 27002: // Please submit a full bug report, with preprocessed source (by using -freport-bug). 27002: // Please include the complete backtrace with any bug report. 27002: // See for instructions. 27002: 27002: // /usr/lib/gcc/arm-linux-gnueabihf/12/cc1plus -quiet -I /build/reproducible-path/rocksdb-7.8.3 -I /build/reproducible-path/rocksdb-7.8.3/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_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 _FORTIFY_SOURCE=2 -isystem /build/reproducible-path/rocksdb-7.8.3/third-party/gtest-1.8.1/fused-src /build/reproducible-path/rocksdb-7.8.3/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 -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-7.8.3=. -fstack-protector-strong -fno-omit-frame-pointer -fno-builtin-memcmp -fPIC -o - -frandom-seed=0 -fdump-noaddr 27002: 27002: # 0 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf//" 27002: # 0 "" 27002: # 0 "" 27002: # 1 "/usr/include/stdc-predef.h" 1 3 4 27002: # 0 "" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: 27002: # 1 "/usr/include/c++/12/atomic" 1 3 27002: # 35 "/usr/include/c++/12/atomic" 3 27002: 27002: # 36 "/usr/include/c++/12/atomic" 3 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/atomic_base.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 1 3 27002: # 296 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 27002: 27002: # 296 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 27002: namespace std 27002: { 27002: typedef unsigned int size_t; 27002: typedef int ptrdiff_t; 27002: 27002: 27002: typedef decltype(nullptr) nullptr_t; 27002: 27002: 27002: #pragma GCC visibility push(default) 27002: 27002: 27002: extern "C++" __attribute__ ((__noreturn__, __always_inline__)) 27002: inline void __terminate() noexcept 27002: { 27002: void terminate() noexcept __attribute__ ((__noreturn__)); 27002: terminate(); 27002: } 27002: #pragma GCC visibility pop 27002: } 27002: # 329 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 27002: namespace std 27002: { 27002: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 27002: } 27002: namespace __gnu_cxx 27002: { 27002: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 27002: } 27002: # 508 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 27002: namespace std 27002: { 27002: #pragma GCC visibility push(default) 27002: 27002: 27002: 27002: 27002: constexpr inline bool 27002: __is_constant_evaluated() noexcept 27002: { 27002: 27002: 27002: 27002: 27002: 27002: return __builtin_is_constant_evaluated(); 27002: 27002: 27002: 27002: } 27002: #pragma GCC visibility pop 27002: } 27002: # 655 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/os_defines.h" 1 3 27002: # 39 "/usr/include/arm-linux-gnueabihf/c++/12/bits/os_defines.h" 3 27002: # 1 "/usr/include/features.h" 1 3 4 27002: # 392 "/usr/include/features.h" 3 4 27002: # 1 "/usr/include/features-time64.h" 1 3 4 27002: # 20 "/usr/include/features-time64.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 27002: # 21 "/usr/include/features-time64.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 27002: # 22 "/usr/include/features-time64.h" 2 3 4 27002: # 393 "/usr/include/features.h" 2 3 4 27002: # 489 "/usr/include/features.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4 27002: # 561 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 27002: # 562 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 27002: # 563 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 27002: # 490 "/usr/include/features.h" 2 3 4 27002: # 513 "/usr/include/features.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4 27002: # 10 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs-hard.h" 1 3 4 27002: # 11 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 2 3 4 27002: # 514 "/usr/include/features.h" 2 3 4 27002: # 40 "/usr/include/arm-linux-gnueabihf/c++/12/bits/os_defines.h" 2 3 27002: # 656 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 2 3 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/cpu_defines.h" 1 3 27002: # 659 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 2 3 27002: # 841 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 3 27002: # 1 "/usr/include/c++/12/pstl/pstl_config.h" 1 3 27002: # 842 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++config.h" 2 3 27002: # 36 "/usr/include/c++/12/bits/atomic_base.h" 2 3 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdint.h" 1 3 4 27002: # 9 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdint.h" 3 4 27002: # 1 "/usr/include/stdint.h" 1 3 4 27002: # 26 "/usr/include/stdint.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 27002: # 27 "/usr/include/stdint.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 27002: # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 27002: # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 27002: 27002: 27002: typedef unsigned char __u_char; 27002: typedef unsigned short int __u_short; 27002: typedef unsigned int __u_int; 27002: typedef unsigned long int __u_long; 27002: 27002: 27002: typedef signed char __int8_t; 27002: typedef unsigned char __uint8_t; 27002: typedef signed short int __int16_t; 27002: typedef unsigned short int __uint16_t; 27002: typedef signed int __int32_t; 27002: typedef unsigned int __uint32_t; 27002: 27002: 27002: 27002: 27002: __extension__ typedef signed long long int __int64_t; 27002: __extension__ typedef unsigned long long int __uint64_t; 27002: 27002: 27002: 27002: typedef __int8_t __int_least8_t; 27002: typedef __uint8_t __uint_least8_t; 27002: typedef __int16_t __int_least16_t; 27002: typedef __uint16_t __uint_least16_t; 27002: typedef __int32_t __int_least32_t; 27002: typedef __uint32_t __uint_least32_t; 27002: typedef __int64_t __int_least64_t; 27002: typedef __uint64_t __uint_least64_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: __extension__ typedef long long int __quad_t; 27002: __extension__ typedef unsigned long long int __u_quad_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __extension__ typedef long long int __intmax_t; 27002: __extension__ typedef unsigned long long int __uintmax_t; 27002: # 141 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4 27002: # 142 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/time64.h" 1 3 4 27002: # 143 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 27002: 27002: 27002: __extension__ typedef __uint64_t __dev_t; 27002: __extension__ typedef unsigned int __uid_t; 27002: __extension__ typedef unsigned int __gid_t; 27002: __extension__ typedef unsigned long int __ino_t; 27002: __extension__ typedef __uint64_t __ino64_t; 27002: __extension__ typedef unsigned int __mode_t; 27002: __extension__ typedef unsigned int __nlink_t; 27002: __extension__ typedef long int __off_t; 27002: __extension__ typedef __int64_t __off64_t; 27002: __extension__ typedef int __pid_t; 27002: __extension__ typedef struct { int __val[2]; } __fsid_t; 27002: __extension__ typedef long int __clock_t; 27002: __extension__ typedef unsigned long int __rlim_t; 27002: __extension__ typedef __uint64_t __rlim64_t; 27002: __extension__ typedef unsigned int __id_t; 27002: __extension__ typedef long int __time_t; 27002: __extension__ typedef unsigned int __useconds_t; 27002: __extension__ typedef long int __suseconds_t; 27002: __extension__ typedef __int64_t __suseconds64_t; 27002: 27002: __extension__ typedef int __daddr_t; 27002: __extension__ typedef int __key_t; 27002: 27002: 27002: __extension__ typedef int __clockid_t; 27002: 27002: 27002: __extension__ typedef void * __timer_t; 27002: 27002: 27002: __extension__ typedef long int __blksize_t; 27002: 27002: 27002: 27002: 27002: __extension__ typedef long int __blkcnt_t; 27002: __extension__ typedef __int64_t __blkcnt64_t; 27002: 27002: 27002: __extension__ typedef unsigned long int __fsblkcnt_t; 27002: __extension__ typedef __uint64_t __fsblkcnt64_t; 27002: 27002: 27002: __extension__ typedef unsigned long int __fsfilcnt_t; 27002: __extension__ typedef __uint64_t __fsfilcnt64_t; 27002: 27002: 27002: __extension__ typedef int __fsword_t; 27002: 27002: __extension__ typedef int __ssize_t; 27002: 27002: 27002: __extension__ typedef long int __syscall_slong_t; 27002: 27002: __extension__ typedef unsigned long int __syscall_ulong_t; 27002: 27002: 27002: 27002: typedef __off64_t __loff_t; 27002: typedef char *__caddr_t; 27002: 27002: 27002: __extension__ typedef int __intptr_t; 27002: 27002: 27002: __extension__ typedef unsigned int __socklen_t; 27002: 27002: 27002: 27002: 27002: typedef int __sig_atomic_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __extension__ typedef __int64_t __time64_t; 27002: # 28 "/usr/include/stdint.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4 27002: # 29 "/usr/include/stdint.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 27002: # 30 "/usr/include/stdint.h" 2 3 4 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 3 4 27002: typedef __int8_t int8_t; 27002: typedef __int16_t int16_t; 27002: typedef __int32_t int32_t; 27002: typedef __int64_t int64_t; 27002: # 35 "/usr/include/stdint.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 3 4 27002: typedef __uint8_t uint8_t; 27002: typedef __uint16_t uint16_t; 27002: typedef __uint32_t uint32_t; 27002: typedef __uint64_t uint64_t; 27002: # 38 "/usr/include/stdint.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: typedef __int_least8_t int_least8_t; 27002: typedef __int_least16_t int_least16_t; 27002: typedef __int_least32_t int_least32_t; 27002: typedef __int_least64_t int_least64_t; 27002: 27002: 27002: typedef __uint_least8_t uint_least8_t; 27002: typedef __uint_least16_t uint_least16_t; 27002: typedef __uint_least32_t uint_least32_t; 27002: typedef __uint_least64_t uint_least64_t; 27002: 27002: 27002: 27002: 27002: 27002: typedef signed char int_fast8_t; 27002: 27002: 27002: 27002: 27002: 27002: typedef int int_fast16_t; 27002: typedef int int_fast32_t; 27002: __extension__ 27002: typedef long long int int_fast64_t; 27002: 27002: 27002: 27002: typedef unsigned char uint_fast8_t; 27002: 27002: 27002: 27002: 27002: 27002: typedef unsigned int uint_fast16_t; 27002: typedef unsigned int uint_fast32_t; 27002: __extension__ 27002: typedef unsigned long long int uint_fast64_t; 27002: # 93 "/usr/include/stdint.h" 3 4 27002: typedef int intptr_t; 27002: 27002: 27002: typedef unsigned int uintptr_t; 27002: 27002: 27002: 27002: 27002: typedef __intmax_t intmax_t; 27002: typedef __uintmax_t uintmax_t; 27002: # 10 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdint.h" 2 3 4 27002: # 37 "/usr/include/c++/12/bits/atomic_base.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/atomic_lockfree_defines.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/atomic_lockfree_defines.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/atomic_lockfree_defines.h" 3 27002: # 38 "/usr/include/c++/12/bits/atomic_base.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/move.h" 1 3 27002: # 38 "/usr/include/c++/12/bits/move.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline constexpr _Tp* 27002: __addressof(_Tp& __r) noexcept 27002: { return __builtin_addressof(__r); } 27002: 27002: 27002: 27002: 27002: } 27002: 27002: # 1 "/usr/include/c++/12/type_traits" 1 3 27002: # 32 "/usr/include/c++/12/type_traits" 3 27002: 27002: # 33 "/usr/include/c++/12/type_traits" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: class reference_wrapper; 27002: # 61 "/usr/include/c++/12/type_traits" 3 27002: template 27002: struct integral_constant 27002: { 27002: static constexpr _Tp value = __v; 27002: typedef _Tp value_type; 27002: typedef integral_constant<_Tp, __v> type; 27002: constexpr operator value_type() const noexcept { return value; } 27002: 27002: 27002: 27002: 27002: constexpr value_type operator()() const noexcept { return value; } 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: using true_type = integral_constant; 27002: 27002: 27002: using false_type = integral_constant; 27002: 27002: 27002: 27002: template 27002: using __bool_constant = integral_constant; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: using bool_constant = integral_constant; 27002: 27002: 27002: 27002: 27002: template 27002: struct __conditional 27002: { 27002: template 27002: using type = _Tp; 27002: }; 27002: 27002: template<> 27002: struct __conditional 27002: { 27002: template 27002: using type = _Up; 27002: }; 27002: 27002: 27002: template 27002: using __conditional_t 27002: = typename __conditional<_Cond>::template type<_If, _Else>; 27002: 27002: 27002: template 27002: struct __type_identity 27002: { using type = _Type; }; 27002: 27002: template 27002: using __type_identity_t = typename __type_identity<_Tp>::type; 27002: 27002: template 27002: struct __or_; 27002: 27002: template<> 27002: struct __or_<> 27002: : public false_type 27002: { }; 27002: 27002: template 27002: struct __or_<_B1> 27002: : public _B1 27002: { }; 27002: 27002: template 27002: struct __or_<_B1, _B2> 27002: : public __conditional_t<_B1::value, _B1, _B2> 27002: { }; 27002: 27002: template 27002: struct __or_<_B1, _B2, _B3, _Bn...> 27002: : public __conditional_t<_B1::value, _B1, __or_<_B2, _B3, _Bn...>> 27002: { }; 27002: 27002: template 27002: struct __and_; 27002: 27002: template<> 27002: struct __and_<> 27002: : public true_type 27002: { }; 27002: 27002: template 27002: struct __and_<_B1> 27002: : public _B1 27002: { }; 27002: 27002: template 27002: struct __and_<_B1, _B2> 27002: : public __conditional_t<_B1::value, _B2, _B1> 27002: { }; 27002: 27002: template 27002: struct __and_<_B1, _B2, _B3, _Bn...> 27002: : public __conditional_t<_B1::value, __and_<_B2, _B3, _Bn...>, _B1> 27002: { }; 27002: 27002: template 27002: struct __not_ 27002: : public __bool_constant 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline constexpr bool __or_v = __or_<_Bn...>::value; 27002: template 27002: inline constexpr bool __and_v = __and_<_Bn...>::value; 27002: 27002: 27002: 27002: 27002: template 27002: struct conjunction 27002: : __and_<_Bn...> 27002: { }; 27002: 27002: template 27002: struct disjunction 27002: : __or_<_Bn...> 27002: { }; 27002: 27002: template 27002: struct negation 27002: : __not_<_Pp> 27002: { }; 27002: 27002: 27002: 27002: 27002: template 27002: inline constexpr bool conjunction_v = conjunction<_Bn...>::value; 27002: 27002: template 27002: inline constexpr bool disjunction_v = disjunction<_Bn...>::value; 27002: 27002: template 27002: inline constexpr bool negation_v = negation<_Pp>::value; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_reference; 27002: template 27002: struct is_function; 27002: template 27002: struct is_void; 27002: template 27002: struct remove_cv; 27002: template 27002: struct is_const; 27002: 27002: 27002: template 27002: struct __is_array_unknown_bounds; 27002: 27002: 27002: 27002: 27002: template 27002: constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) 27002: { return {}; } 27002: 27002: template 27002: constexpr typename __or_< 27002: is_reference<_NestedType>, 27002: is_function<_NestedType>, 27002: is_void<_NestedType>, 27002: __is_array_unknown_bounds<_NestedType> 27002: >::type __is_complete_or_unbounded(_TypeIdentity) 27002: { return {}; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __success_type 27002: { typedef _Tp type; }; 27002: 27002: struct __failure_type 27002: { }; 27002: 27002: 27002: template 27002: using __remove_cv_t = typename remove_cv<_Tp>::type; 27002: 27002: 27002: 27002: template 27002: struct __is_void_helper 27002: : public false_type { }; 27002: 27002: template<> 27002: struct __is_void_helper 27002: : public true_type { }; 27002: 27002: 27002: 27002: template 27002: struct is_void 27002: : public __is_void_helper<__remove_cv_t<_Tp>>::type 27002: { }; 27002: 27002: 27002: template 27002: struct __is_integral_helper 27002: : public false_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: 27002: 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_integral_helper 27002: : public true_type { }; 27002: # 412 "/usr/include/c++/12/type_traits" 3 27002: template 27002: struct is_integral 27002: : public __is_integral_helper<__remove_cv_t<_Tp>>::type 27002: { }; 27002: 27002: 27002: template 27002: struct __is_floating_point_helper 27002: : public false_type { }; 27002: 27002: template<> 27002: struct __is_floating_point_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_floating_point_helper 27002: : public true_type { }; 27002: 27002: template<> 27002: struct __is_floating_point_helper 27002: : public true_type { }; 27002: # 442 "/usr/include/c++/12/type_traits" 3 27002: template 27002: struct is_floating_point 27002: : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type 27002: { }; 27002: 27002: 27002: template 27002: struct is_array 27002: : public false_type { }; 27002: 27002: template 27002: struct is_array<_Tp[_Size]> 27002: : public true_type { }; 27002: 27002: template 27002: struct is_array<_Tp[]> 27002: : public true_type { }; 27002: 27002: template 27002: struct __is_pointer_helper 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_pointer_helper<_Tp*> 27002: : public true_type { }; 27002: 27002: 27002: template 27002: struct is_pointer 27002: : public __is_pointer_helper<__remove_cv_t<_Tp>>::type 27002: { }; 27002: 27002: 27002: template 27002: struct is_lvalue_reference 27002: : public false_type { }; 27002: 27002: template 27002: struct is_lvalue_reference<_Tp&> 27002: : public true_type { }; 27002: 27002: 27002: template 27002: struct is_rvalue_reference 27002: : public false_type { }; 27002: 27002: template 27002: struct is_rvalue_reference<_Tp&&> 27002: : public true_type { }; 27002: 27002: template 27002: struct __is_member_object_pointer_helper 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_member_object_pointer_helper<_Tp _Cp::*> 27002: : public __not_>::type { }; 27002: 27002: 27002: template 27002: struct is_member_object_pointer 27002: : public __is_member_object_pointer_helper<__remove_cv_t<_Tp>>::type 27002: { }; 27002: 27002: template 27002: struct __is_member_function_pointer_helper 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_member_function_pointer_helper<_Tp _Cp::*> 27002: : public is_function<_Tp>::type { }; 27002: 27002: 27002: template 27002: struct is_member_function_pointer 27002: : public __is_member_function_pointer_helper<__remove_cv_t<_Tp>>::type 27002: { }; 27002: 27002: 27002: template 27002: struct is_enum 27002: : public integral_constant 27002: { }; 27002: 27002: 27002: template 27002: struct is_union 27002: : public integral_constant 27002: { }; 27002: 27002: 27002: template 27002: struct is_class 27002: : public integral_constant 27002: { }; 27002: 27002: 27002: template 27002: struct is_function 27002: : public __bool_constant::value> { }; 27002: 27002: template 27002: struct is_function<_Tp&> 27002: : public false_type { }; 27002: 27002: template 27002: struct is_function<_Tp&&> 27002: : public false_type { }; 27002: 27002: 27002: 27002: template 27002: struct __is_null_pointer_helper 27002: : public false_type { }; 27002: 27002: template<> 27002: struct __is_null_pointer_helper 27002: : public true_type { }; 27002: 27002: 27002: template 27002: struct is_null_pointer 27002: : public __is_null_pointer_helper<__remove_cv_t<_Tp>>::type 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct __is_nullptr_t 27002: : public is_null_pointer<_Tp> 27002: { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); 27002: 27002: 27002: 27002: 27002: template 27002: struct is_reference 27002: : public __or_, 27002: is_rvalue_reference<_Tp>>::type 27002: { }; 27002: 27002: 27002: template 27002: struct is_arithmetic 27002: : public __or_, is_floating_point<_Tp>>::type 27002: { }; 27002: 27002: 27002: template 27002: struct is_fundamental 27002: : public __or_, is_void<_Tp>, 27002: is_null_pointer<_Tp>>::type 27002: { }; 27002: 27002: 27002: template 27002: struct is_object 27002: : public __not_<__or_, is_reference<_Tp>, 27002: is_void<_Tp>>>::type 27002: { }; 27002: 27002: template 27002: struct is_member_pointer; 27002: 27002: 27002: template 27002: struct is_scalar 27002: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 27002: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 27002: { }; 27002: 27002: 27002: template 27002: struct is_compound 27002: : public __not_>::type { }; 27002: 27002: 27002: template 27002: struct __is_member_pointer_helper 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_member_pointer_helper<_Tp _Cp::*> 27002: : public true_type { }; 27002: 27002: 27002: 27002: template 27002: struct is_member_pointer 27002: : public __is_member_pointer_helper<__remove_cv_t<_Tp>>::type 27002: { }; 27002: 27002: template 27002: struct is_same; 27002: 27002: 27002: template 27002: using __is_one_of = __or_...>; 27002: 27002: 27002: __extension__ 27002: template 27002: using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, 27002: signed char, signed short, signed int, signed long, 27002: signed long long 27002: # 659 "/usr/include/c++/12/type_traits" 3 27002: >; 27002: 27002: 27002: __extension__ 27002: template 27002: using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, 27002: unsigned char, unsigned short, unsigned int, unsigned long, 27002: unsigned long long 27002: # 679 "/usr/include/c++/12/type_traits" 3 27002: >; 27002: 27002: 27002: template 27002: using __is_standard_integer 27002: = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; 27002: 27002: 27002: template using __void_t = void; 27002: 27002: 27002: 27002: template 27002: struct __is_referenceable 27002: : public false_type 27002: { }; 27002: 27002: template 27002: struct __is_referenceable<_Tp, __void_t<_Tp&>> 27002: : public true_type 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_const 27002: : public false_type { }; 27002: 27002: template 27002: struct is_const<_Tp const> 27002: : public true_type { }; 27002: 27002: 27002: template 27002: struct is_volatile 27002: : public false_type { }; 27002: 27002: template 27002: struct is_volatile<_Tp volatile> 27002: : public true_type { }; 27002: 27002: 27002: template 27002: struct is_trivial 27002: : public integral_constant 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_trivially_copyable 27002: : public integral_constant 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_standard_layout 27002: : public integral_constant 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct 27002: 27002: is_pod 27002: : public integral_constant 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct 27002: [[__deprecated__]] 27002: is_literal_type 27002: : public integral_constant 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_empty 27002: : public integral_constant 27002: { }; 27002: 27002: 27002: template 27002: struct is_polymorphic 27002: : public integral_constant 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_final 27002: : public integral_constant 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct is_abstract 27002: : public integral_constant 27002: { }; 27002: 27002: 27002: template::value> 27002: struct __is_signed_helper 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_signed_helper<_Tp, true> 27002: : public integral_constant 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct is_signed 27002: : public __is_signed_helper<_Tp>::type 27002: { }; 27002: 27002: 27002: template 27002: struct is_unsigned 27002: : public __and_, __not_>> 27002: { }; 27002: 27002: 27002: template 27002: _Up 27002: __declval(int); 27002: 27002: template 27002: _Tp 27002: __declval(long); 27002: 27002: 27002: template 27002: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 27002: 27002: template 27002: struct extent; 27002: 27002: template 27002: struct remove_all_extents; 27002: 27002: 27002: template 27002: struct __is_array_known_bounds 27002: : public integral_constant::value > 0)> 27002: { }; 27002: 27002: template 27002: struct __is_array_unknown_bounds 27002: : public __and_, __not_>> 27002: { }; 27002: # 867 "/usr/include/c++/12/type_traits" 3 27002: struct __do_is_destructible_impl 27002: { 27002: template().~_Tp())> 27002: static true_type __test(int); 27002: 27002: template 27002: static false_type __test(...); 27002: }; 27002: 27002: template 27002: struct __is_destructible_impl 27002: : public __do_is_destructible_impl 27002: { 27002: typedef decltype(__test<_Tp>(0)) type; 27002: }; 27002: 27002: template, 27002: __is_array_unknown_bounds<_Tp>, 27002: is_function<_Tp>>::value, 27002: bool = __or_, is_scalar<_Tp>>::value> 27002: struct __is_destructible_safe; 27002: 27002: template 27002: struct __is_destructible_safe<_Tp, false, false> 27002: : public __is_destructible_impl::type>::type 27002: { }; 27002: 27002: template 27002: struct __is_destructible_safe<_Tp, true, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_destructible_safe<_Tp, false, true> 27002: : public true_type { }; 27002: 27002: 27002: 27002: template 27002: struct is_destructible 27002: : public __is_destructible_safe<_Tp>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct __do_is_nt_destructible_impl 27002: { 27002: template 27002: static __bool_constant().~_Tp())> 27002: __test(int); 27002: 27002: template 27002: static false_type __test(...); 27002: }; 27002: 27002: template 27002: struct __is_nt_destructible_impl 27002: : public __do_is_nt_destructible_impl 27002: { 27002: typedef decltype(__test<_Tp>(0)) type; 27002: }; 27002: 27002: template, 27002: __is_array_unknown_bounds<_Tp>, 27002: is_function<_Tp>>::value, 27002: bool = __or_, is_scalar<_Tp>>::value> 27002: struct __is_nt_destructible_safe; 27002: 27002: template 27002: struct __is_nt_destructible_safe<_Tp, false, false> 27002: : public __is_nt_destructible_impl::type>::type 27002: { }; 27002: 27002: template 27002: struct __is_nt_destructible_safe<_Tp, true, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_nt_destructible_safe<_Tp, false, true> 27002: : public true_type { }; 27002: 27002: 27002: 27002: template 27002: struct is_nothrow_destructible 27002: : public __is_nt_destructible_safe<_Tp>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct __is_constructible_impl 27002: : public __bool_constant<__is_constructible(_Tp, _Args...)> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct is_constructible 27002: : public __is_constructible_impl<_Tp, _Args...> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_default_constructible 27002: : public __is_constructible_impl<_Tp>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template::value> 27002: struct __is_copy_constructible_impl; 27002: 27002: template 27002: struct __is_copy_constructible_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_copy_constructible_impl<_Tp, true> 27002: : public __is_constructible_impl<_Tp, const _Tp&> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct is_copy_constructible 27002: : public __is_copy_constructible_impl<_Tp> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template::value> 27002: struct __is_move_constructible_impl; 27002: 27002: template 27002: struct __is_move_constructible_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_move_constructible_impl<_Tp, true> 27002: : public __is_constructible_impl<_Tp, _Tp&&> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct is_move_constructible 27002: : public __is_move_constructible_impl<_Tp> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: using __is_nothrow_constructible_impl 27002: = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; 27002: 27002: 27002: 27002: template 27002: struct is_nothrow_constructible 27002: : public __is_nothrow_constructible_impl<_Tp, _Args...>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_nothrow_default_constructible 27002: : public __bool_constant<__is_nothrow_constructible(_Tp)> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template::value> 27002: struct __is_nothrow_copy_constructible_impl; 27002: 27002: template 27002: struct __is_nothrow_copy_constructible_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_nothrow_copy_constructible_impl<_Tp, true> 27002: : public __is_nothrow_constructible_impl<_Tp, const _Tp&> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct is_nothrow_copy_constructible 27002: : public __is_nothrow_copy_constructible_impl<_Tp>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template::value> 27002: struct __is_nothrow_move_constructible_impl; 27002: 27002: template 27002: struct __is_nothrow_move_constructible_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_nothrow_move_constructible_impl<_Tp, true> 27002: : public __is_nothrow_constructible_impl<_Tp, _Tp&&> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct is_nothrow_move_constructible 27002: : public __is_nothrow_move_constructible_impl<_Tp>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_assignable 27002: : public __bool_constant<__is_assignable(_Tp, _Up)> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: template::value> 27002: struct __is_copy_assignable_impl; 27002: 27002: template 27002: struct __is_copy_assignable_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_copy_assignable_impl<_Tp, true> 27002: : public __bool_constant<__is_assignable(_Tp&, const _Tp&)> 27002: { }; 27002: 27002: 27002: template 27002: struct is_copy_assignable 27002: : public __is_copy_assignable_impl<_Tp>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: template::value> 27002: struct __is_move_assignable_impl; 27002: 27002: template 27002: struct __is_move_assignable_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_move_assignable_impl<_Tp, true> 27002: : public __bool_constant<__is_assignable(_Tp&, _Tp&&)> 27002: { }; 27002: 27002: 27002: template 27002: struct is_move_assignable 27002: : public __is_move_assignable_impl<_Tp>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: template 27002: using __is_nothrow_assignable_impl 27002: = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; 27002: 27002: 27002: template 27002: struct is_nothrow_assignable 27002: : public __is_nothrow_assignable_impl<_Tp, _Up> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: template::value> 27002: struct __is_nt_copy_assignable_impl; 27002: 27002: template 27002: struct __is_nt_copy_assignable_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_nt_copy_assignable_impl<_Tp, true> 27002: : public __is_nothrow_assignable_impl<_Tp&, const _Tp&> 27002: { }; 27002: 27002: 27002: template 27002: struct is_nothrow_copy_assignable 27002: : public __is_nt_copy_assignable_impl<_Tp> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: template::value> 27002: struct __is_nt_move_assignable_impl; 27002: 27002: template 27002: struct __is_nt_move_assignable_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_nt_move_assignable_impl<_Tp, true> 27002: : public __is_nothrow_assignable_impl<_Tp&, _Tp&&> 27002: { }; 27002: 27002: 27002: template 27002: struct is_nothrow_move_assignable 27002: : public __is_nt_move_assignable_impl<_Tp> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_trivially_constructible 27002: : public __bool_constant<__is_trivially_constructible(_Tp, _Args...)> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_trivially_default_constructible 27002: : public __bool_constant<__is_trivially_constructible(_Tp)> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: struct __do_is_implicitly_default_constructible_impl 27002: { 27002: template 27002: static void __helper(const _Tp&); 27002: 27002: template 27002: static true_type __test(const _Tp&, 27002: decltype(__helper({}))* = 0); 27002: 27002: static false_type __test(...); 27002: }; 27002: 27002: template 27002: struct __is_implicitly_default_constructible_impl 27002: : public __do_is_implicitly_default_constructible_impl 27002: { 27002: typedef decltype(__test(declval<_Tp>())) type; 27002: }; 27002: 27002: template 27002: struct __is_implicitly_default_constructible_safe 27002: : public __is_implicitly_default_constructible_impl<_Tp>::type 27002: { }; 27002: 27002: template 27002: struct __is_implicitly_default_constructible 27002: : public __and_<__is_constructible_impl<_Tp>, 27002: __is_implicitly_default_constructible_safe<_Tp>> 27002: { }; 27002: 27002: template::value> 27002: struct __is_trivially_copy_constructible_impl; 27002: 27002: template 27002: struct __is_trivially_copy_constructible_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_trivially_copy_constructible_impl<_Tp, true> 27002: : public __and_<__is_copy_constructible_impl<_Tp>, 27002: integral_constant> 27002: { }; 27002: 27002: 27002: template 27002: struct is_trivially_copy_constructible 27002: : public __is_trivially_copy_constructible_impl<_Tp> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: template::value> 27002: struct __is_trivially_move_constructible_impl; 27002: 27002: template 27002: struct __is_trivially_move_constructible_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_trivially_move_constructible_impl<_Tp, true> 27002: : public __and_<__is_move_constructible_impl<_Tp>, 27002: integral_constant> 27002: { }; 27002: 27002: 27002: template 27002: struct is_trivially_move_constructible 27002: : public __is_trivially_move_constructible_impl<_Tp> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_trivially_assignable 27002: : public __bool_constant<__is_trivially_assignable(_Tp, _Up)> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: template::value> 27002: struct __is_trivially_copy_assignable_impl; 27002: 27002: template 27002: struct __is_trivially_copy_assignable_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_trivially_copy_assignable_impl<_Tp, true> 27002: : public __bool_constant<__is_trivially_assignable(_Tp&, const _Tp&)> 27002: { }; 27002: 27002: 27002: template 27002: struct is_trivially_copy_assignable 27002: : public __is_trivially_copy_assignable_impl<_Tp> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: template::value> 27002: struct __is_trivially_move_assignable_impl; 27002: 27002: template 27002: struct __is_trivially_move_assignable_impl<_Tp, false> 27002: : public false_type { }; 27002: 27002: template 27002: struct __is_trivially_move_assignable_impl<_Tp, true> 27002: : public __bool_constant<__is_trivially_assignable(_Tp&, _Tp&&)> 27002: { }; 27002: 27002: 27002: template 27002: struct is_trivially_move_assignable 27002: : public __is_trivially_move_assignable_impl<_Tp> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_trivially_destructible 27002: : public __and_<__is_destructible_safe<_Tp>, 27002: __bool_constant<__has_trivial_destructor(_Tp)>> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: 27002: template 27002: struct has_virtual_destructor 27002: : public integral_constant 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct alignment_of 27002: : public integral_constant 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct rank 27002: : public integral_constant { }; 27002: 27002: template 27002: struct rank<_Tp[_Size]> 27002: : public integral_constant::value> { }; 27002: 27002: template 27002: struct rank<_Tp[]> 27002: : public integral_constant::value> { }; 27002: 27002: 27002: template 27002: struct extent 27002: : public integral_constant { }; 27002: 27002: template 27002: struct extent<_Tp[_Size], _Uint> 27002: : public integral_constant::value> 27002: { }; 27002: 27002: template 27002: struct extent<_Tp[], _Uint> 27002: : public integral_constant::value> 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_same 27002: 27002: : public integral_constant 27002: 27002: 27002: 27002: { }; 27002: # 1445 "/usr/include/c++/12/type_traits" 3 27002: template 27002: struct is_base_of 27002: : public integral_constant 27002: { }; 27002: 27002: template, is_function<_To>, 27002: is_array<_To>>::value> 27002: struct __is_convertible_helper 27002: { 27002: typedef typename is_void<_To>::type type; 27002: }; 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 27002: template 27002: class __is_convertible_helper<_From, _To, false> 27002: { 27002: template 27002: static void __test_aux(_To1) noexcept; 27002: 27002: template(std::declval<_From1>()))> 27002: static true_type 27002: __test(int); 27002: 27002: template 27002: static false_type 27002: __test(...); 27002: 27002: public: 27002: typedef decltype(__test<_From, _To>(0)) type; 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: template 27002: struct is_convertible 27002: : public __is_convertible_helper<_From, _To>::type 27002: { }; 27002: 27002: 27002: template 27002: using __is_array_convertible 27002: = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; 27002: 27002: template, is_function<_To>, 27002: is_array<_To>>::value> 27002: struct __is_nt_convertible_helper 27002: : is_void<_To> 27002: { }; 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 27002: template 27002: class __is_nt_convertible_helper<_From, _To, false> 27002: { 27002: template 27002: static void __test_aux(_To1) noexcept; 27002: 27002: template 27002: static 27002: __bool_constant(std::declval<_From1>()))> 27002: __test(int); 27002: 27002: template 27002: static false_type 27002: __test(...); 27002: 27002: public: 27002: using type = decltype(__test<_From, _To>(0)); 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: template 27002: struct __is_nothrow_convertible 27002: : public __is_nt_convertible_helper<_From, _To>::type 27002: { }; 27002: # 1543 "/usr/include/c++/12/type_traits" 3 27002: template 27002: struct remove_const 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct remove_const<_Tp const> 27002: { typedef _Tp type; }; 27002: 27002: 27002: template 27002: struct remove_volatile 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct remove_volatile<_Tp volatile> 27002: { typedef _Tp type; }; 27002: 27002: 27002: template 27002: struct remove_cv 27002: { using type = _Tp; }; 27002: 27002: template 27002: struct remove_cv 27002: { using type = _Tp; }; 27002: 27002: template 27002: struct remove_cv 27002: { using type = _Tp; }; 27002: 27002: template 27002: struct remove_cv 27002: { using type = _Tp; }; 27002: 27002: 27002: template 27002: struct add_const 27002: { typedef _Tp const type; }; 27002: 27002: 27002: template 27002: struct add_volatile 27002: { typedef _Tp volatile type; }; 27002: 27002: 27002: template 27002: struct add_cv 27002: { 27002: typedef typename 27002: add_const::type>::type type; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: using remove_const_t = typename remove_const<_Tp>::type; 27002: 27002: 27002: template 27002: using remove_volatile_t = typename remove_volatile<_Tp>::type; 27002: 27002: 27002: template 27002: using remove_cv_t = typename remove_cv<_Tp>::type; 27002: 27002: 27002: template 27002: using add_const_t = typename add_const<_Tp>::type; 27002: 27002: 27002: template 27002: using add_volatile_t = typename add_volatile<_Tp>::type; 27002: 27002: 27002: template 27002: using add_cv_t = typename add_cv<_Tp>::type; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct remove_reference 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct remove_reference<_Tp&> 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct remove_reference<_Tp&&> 27002: { typedef _Tp type; }; 27002: 27002: template::value> 27002: struct __add_lvalue_reference_helper 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct __add_lvalue_reference_helper<_Tp, true> 27002: { typedef _Tp& type; }; 27002: 27002: 27002: template 27002: struct add_lvalue_reference 27002: : public __add_lvalue_reference_helper<_Tp> 27002: { }; 27002: 27002: template::value> 27002: struct __add_rvalue_reference_helper 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct __add_rvalue_reference_helper<_Tp, true> 27002: { typedef _Tp&& type; }; 27002: 27002: 27002: template 27002: struct add_rvalue_reference 27002: : public __add_rvalue_reference_helper<_Tp> 27002: { }; 27002: 27002: 27002: 27002: template 27002: using remove_reference_t = typename remove_reference<_Tp>::type; 27002: 27002: 27002: template 27002: using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; 27002: 27002: 27002: template 27002: using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __cv_selector; 27002: 27002: template 27002: struct __cv_selector<_Unqualified, false, false> 27002: { typedef _Unqualified __type; }; 27002: 27002: template 27002: struct __cv_selector<_Unqualified, false, true> 27002: { typedef volatile _Unqualified __type; }; 27002: 27002: template 27002: struct __cv_selector<_Unqualified, true, false> 27002: { typedef const _Unqualified __type; }; 27002: 27002: template 27002: struct __cv_selector<_Unqualified, true, true> 27002: { typedef const volatile _Unqualified __type; }; 27002: 27002: template::value, 27002: bool _IsVol = is_volatile<_Qualified>::value> 27002: class __match_cv_qualifiers 27002: { 27002: typedef __cv_selector<_Unqualified, _IsConst, _IsVol> __match; 27002: 27002: public: 27002: typedef typename __match::__type __type; 27002: }; 27002: 27002: 27002: template 27002: struct __make_unsigned 27002: { typedef _Tp __type; }; 27002: 27002: template<> 27002: struct __make_unsigned 27002: { typedef unsigned char __type; }; 27002: 27002: template<> 27002: struct __make_unsigned 27002: { typedef unsigned char __type; }; 27002: 27002: template<> 27002: struct __make_unsigned 27002: { typedef unsigned short __type; }; 27002: 27002: template<> 27002: struct __make_unsigned 27002: { typedef unsigned int __type; }; 27002: 27002: template<> 27002: struct __make_unsigned 27002: { typedef unsigned long __type; }; 27002: 27002: template<> 27002: struct __make_unsigned 27002: { typedef unsigned long long __type; }; 27002: # 1771 "/usr/include/c++/12/type_traits" 3 27002: template::value, 27002: bool _IsEnum = is_enum<_Tp>::value> 27002: class __make_unsigned_selector; 27002: 27002: template 27002: class __make_unsigned_selector<_Tp, true, false> 27002: { 27002: using __unsigned_type 27002: = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; 27002: 27002: public: 27002: using __type 27002: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 27002: }; 27002: 27002: class __make_unsigned_selector_base 27002: { 27002: protected: 27002: template struct _List { }; 27002: 27002: template 27002: struct _List<_Tp, _Up...> : _List<_Up...> 27002: { static constexpr size_t __size = sizeof(_Tp); }; 27002: 27002: template 27002: struct __select; 27002: 27002: template 27002: struct __select<_Sz, _List<_Uint, _UInts...>, true> 27002: { using __type = _Uint; }; 27002: 27002: template 27002: struct __select<_Sz, _List<_Uint, _UInts...>, false> 27002: : __select<_Sz, _List<_UInts...>> 27002: { }; 27002: }; 27002: 27002: 27002: template 27002: class __make_unsigned_selector<_Tp, false, true> 27002: : __make_unsigned_selector_base 27002: { 27002: 27002: using _UInts = _List; 27002: 27002: using __unsigned_type = typename __select::__type; 27002: 27002: public: 27002: using __type 27002: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct __make_unsigned 27002: { 27002: using __type 27002: = typename __make_unsigned_selector::__type; 27002: }; 27002: # 1845 "/usr/include/c++/12/type_traits" 3 27002: template<> 27002: struct __make_unsigned 27002: { 27002: using __type 27002: = typename __make_unsigned_selector::__type; 27002: }; 27002: 27002: template<> 27002: struct __make_unsigned 27002: { 27002: using __type 27002: = typename __make_unsigned_selector::__type; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct make_unsigned 27002: { typedef typename __make_unsigned_selector<_Tp>::__type type; }; 27002: 27002: 27002: template<> 27002: struct make_unsigned; 27002: 27002: 27002: 27002: 27002: template 27002: struct __make_signed 27002: { typedef _Tp __type; }; 27002: 27002: template<> 27002: struct __make_signed 27002: { typedef signed char __type; }; 27002: 27002: template<> 27002: struct __make_signed 27002: { typedef signed char __type; }; 27002: 27002: template<> 27002: struct __make_signed 27002: { typedef signed short __type; }; 27002: 27002: template<> 27002: struct __make_signed 27002: { typedef signed int __type; }; 27002: 27002: template<> 27002: struct __make_signed 27002: { typedef signed long __type; }; 27002: 27002: template<> 27002: struct __make_signed 27002: { typedef signed long long __type; }; 27002: # 1929 "/usr/include/c++/12/type_traits" 3 27002: template::value, 27002: bool _IsEnum = is_enum<_Tp>::value> 27002: class __make_signed_selector; 27002: 27002: template 27002: class __make_signed_selector<_Tp, true, false> 27002: { 27002: using __signed_type 27002: = typename __make_signed<__remove_cv_t<_Tp>>::__type; 27002: 27002: public: 27002: using __type 27002: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 27002: }; 27002: 27002: 27002: template 27002: class __make_signed_selector<_Tp, false, true> 27002: { 27002: typedef typename __make_unsigned_selector<_Tp>::__type __unsigned_type; 27002: 27002: public: 27002: typedef typename __make_signed_selector<__unsigned_type>::__type __type; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct __make_signed 27002: { 27002: using __type 27002: = typename __make_signed_selector::__type; 27002: }; 27002: # 1975 "/usr/include/c++/12/type_traits" 3 27002: template<> 27002: struct __make_signed 27002: { 27002: using __type 27002: = typename __make_signed_selector::__type; 27002: }; 27002: 27002: template<> 27002: struct __make_signed 27002: { 27002: using __type 27002: = typename __make_signed_selector::__type; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct make_signed 27002: { typedef typename __make_signed_selector<_Tp>::__type type; }; 27002: 27002: 27002: template<> 27002: struct make_signed; 27002: 27002: 27002: 27002: template 27002: using make_signed_t = typename make_signed<_Tp>::type; 27002: 27002: 27002: template 27002: using make_unsigned_t = typename make_unsigned<_Tp>::type; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct remove_extent 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct remove_extent<_Tp[_Size]> 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct remove_extent<_Tp[]> 27002: { typedef _Tp type; }; 27002: 27002: 27002: template 27002: struct remove_all_extents 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct remove_all_extents<_Tp[_Size]> 27002: { typedef typename remove_all_extents<_Tp>::type type; }; 27002: 27002: template 27002: struct remove_all_extents<_Tp[]> 27002: { typedef typename remove_all_extents<_Tp>::type type; }; 27002: 27002: 27002: 27002: template 27002: using remove_extent_t = typename remove_extent<_Tp>::type; 27002: 27002: 27002: template 27002: using remove_all_extents_t = typename remove_all_extents<_Tp>::type; 27002: 27002: 27002: 27002: 27002: template 27002: struct __remove_pointer_helper 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct __remove_pointer_helper<_Tp, _Up*> 27002: { typedef _Up type; }; 27002: 27002: 27002: template 27002: struct remove_pointer 27002: : public __remove_pointer_helper<_Tp, __remove_cv_t<_Tp>> 27002: { }; 27002: 27002: template, 27002: is_void<_Tp>>::value> 27002: struct __add_pointer_helper 27002: { typedef _Tp type; }; 27002: 27002: template 27002: struct __add_pointer_helper<_Tp, true> 27002: { typedef typename remove_reference<_Tp>::type* type; }; 27002: 27002: 27002: template 27002: struct add_pointer 27002: : public __add_pointer_helper<_Tp> 27002: { }; 27002: 27002: 27002: 27002: template 27002: using remove_pointer_t = typename remove_pointer<_Tp>::type; 27002: 27002: 27002: template 27002: using add_pointer_t = typename add_pointer<_Tp>::type; 27002: 27002: 27002: template 27002: struct __aligned_storage_msa 27002: { 27002: union __type 27002: { 27002: unsigned char __data[_Len]; 27002: struct __attribute__((__aligned__)) { } __align; 27002: }; 27002: }; 27002: # 2111 "/usr/include/c++/12/type_traits" 3 27002: template::__type)> 27002: struct aligned_storage 27002: { 27002: union type 27002: { 27002: unsigned char __data[_Len]; 27002: struct __attribute__((__aligned__((_Align)))) { } __align; 27002: }; 27002: }; 27002: 27002: template 27002: struct __strictest_alignment 27002: { 27002: static const size_t _S_alignment = 0; 27002: static const size_t _S_size = 0; 27002: }; 27002: 27002: template 27002: struct __strictest_alignment<_Tp, _Types...> 27002: { 27002: static const size_t _S_alignment = 27002: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 27002: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 27002: static const size_t _S_size = 27002: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 27002: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 27002: }; 27002: # 2150 "/usr/include/c++/12/type_traits" 3 27002: template 27002: struct aligned_union 27002: { 27002: private: 27002: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 27002: 27002: using __strictest = __strictest_alignment<_Types...>; 27002: static const size_t _S_len = _Len > __strictest::_S_size 27002: ? _Len : __strictest::_S_size; 27002: public: 27002: 27002: static const size_t alignment_value = __strictest::_S_alignment; 27002: 27002: typedef typename aligned_storage<_S_len, alignment_value>::type type; 27002: }; 27002: 27002: template 27002: const size_t aligned_union<_Len, _Types...>::alignment_value; 27002: 27002: 27002: 27002: 27002: 27002: template::value, 27002: bool _IsFunction = is_function<_Up>::value> 27002: struct __decay_selector; 27002: 27002: 27002: template 27002: struct __decay_selector<_Up, false, false> 27002: { typedef __remove_cv_t<_Up> __type; }; 27002: 27002: template 27002: struct __decay_selector<_Up, true, false> 27002: { typedef typename remove_extent<_Up>::type* __type; }; 27002: 27002: template 27002: struct __decay_selector<_Up, false, true> 27002: { typedef typename add_pointer<_Up>::type __type; }; 27002: 27002: 27002: 27002: template 27002: class decay 27002: { 27002: typedef typename remove_reference<_Tp>::type __remove_type; 27002: 27002: public: 27002: typedef typename __decay_selector<__remove_type>::__type type; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __strip_reference_wrapper 27002: { 27002: typedef _Tp __type; 27002: }; 27002: 27002: template 27002: struct __strip_reference_wrapper > 27002: { 27002: typedef _Tp& __type; 27002: }; 27002: 27002: 27002: template 27002: using __decay_t = typename decay<_Tp>::type; 27002: 27002: template 27002: using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; 27002: 27002: 27002: 27002: 27002: template 27002: struct enable_if 27002: { }; 27002: 27002: 27002: template 27002: struct enable_if 27002: { typedef _Tp type; }; 27002: 27002: 27002: 27002: 27002: template 27002: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 27002: 27002: 27002: template 27002: using _Require = __enable_if_t<__and_<_Cond...>::value>; 27002: 27002: 27002: template 27002: using __remove_cvref_t 27002: = typename remove_cv::type>::type; 27002: 27002: 27002: 27002: 27002: template 27002: struct conditional 27002: { typedef _Iftrue type; }; 27002: 27002: 27002: template 27002: struct conditional 27002: { typedef _Iffalse type; }; 27002: 27002: 27002: template 27002: struct common_type; 27002: 27002: 27002: 27002: 27002: struct __do_common_type_impl 27002: { 27002: template 27002: using __cond_t 27002: = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); 27002: 27002: 27002: 27002: template 27002: static __success_type<__decay_t<__cond_t<_Tp, _Up>>> 27002: _S_test(int); 27002: # 2290 "/usr/include/c++/12/type_traits" 3 27002: template 27002: static __failure_type 27002: _S_test_2(...); 27002: 27002: template 27002: static decltype(_S_test_2<_Tp, _Up>(0)) 27002: _S_test(...); 27002: }; 27002: 27002: 27002: template<> 27002: struct common_type<> 27002: { }; 27002: 27002: 27002: template 27002: struct common_type<_Tp0> 27002: : public common_type<_Tp0, _Tp0> 27002: { }; 27002: 27002: 27002: template, typename _Dp2 = __decay_t<_Tp2>> 27002: struct __common_type_impl 27002: { 27002: 27002: 27002: using type = common_type<_Dp1, _Dp2>; 27002: }; 27002: 27002: template 27002: struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> 27002: : private __do_common_type_impl 27002: { 27002: 27002: 27002: using type = decltype(_S_test<_Tp1, _Tp2>(0)); 27002: }; 27002: 27002: 27002: template 27002: struct common_type<_Tp1, _Tp2> 27002: : public __common_type_impl<_Tp1, _Tp2>::type 27002: { }; 27002: 27002: template 27002: struct __common_type_pack 27002: { }; 27002: 27002: template 27002: struct __common_type_fold; 27002: 27002: 27002: template 27002: struct common_type<_Tp1, _Tp2, _Rp...> 27002: : public __common_type_fold, 27002: __common_type_pack<_Rp...>> 27002: { }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, 27002: __void_t> 27002: : public common_type 27002: { }; 27002: 27002: 27002: template 27002: struct __common_type_fold<_CTp, _Rp, void> 27002: { }; 27002: 27002: template::value> 27002: struct __underlying_type_impl 27002: { 27002: using type = __underlying_type(_Tp); 27002: }; 27002: 27002: template 27002: struct __underlying_type_impl<_Tp, false> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct underlying_type 27002: : public __underlying_type_impl<_Tp> 27002: { }; 27002: 27002: 27002: template 27002: struct __declval_protector 27002: { 27002: static const bool __stop = false; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 27002: { 27002: static_assert(__declval_protector<_Tp>::__stop, 27002: "declval() must not be used!"); 27002: return __declval<_Tp>(0); 27002: } 27002: 27002: 27002: template 27002: struct result_of; 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct __invoke_memfun_ref { }; 27002: struct __invoke_memfun_deref { }; 27002: struct __invoke_memobj_ref { }; 27002: struct __invoke_memobj_deref { }; 27002: struct __invoke_other { }; 27002: 27002: 27002: template 27002: struct __result_of_success : __success_type<_Tp> 27002: { using __invoke_type = _Tag; }; 27002: 27002: 27002: struct __result_of_memfun_ref_impl 27002: { 27002: template 27002: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 27002: ), __invoke_memfun_ref> _S_test(int); 27002: 27002: template 27002: static __failure_type _S_test(...); 27002: }; 27002: 27002: template 27002: struct __result_of_memfun_ref 27002: : private __result_of_memfun_ref_impl 27002: { 27002: typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; 27002: }; 27002: 27002: 27002: struct __result_of_memfun_deref_impl 27002: { 27002: template 27002: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 27002: ), __invoke_memfun_deref> _S_test(int); 27002: 27002: template 27002: static __failure_type _S_test(...); 27002: }; 27002: 27002: template 27002: struct __result_of_memfun_deref 27002: : private __result_of_memfun_deref_impl 27002: { 27002: typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; 27002: }; 27002: 27002: 27002: struct __result_of_memobj_ref_impl 27002: { 27002: template 27002: static __result_of_success().*std::declval<_Fp>() 27002: ), __invoke_memobj_ref> _S_test(int); 27002: 27002: template 27002: static __failure_type _S_test(...); 27002: }; 27002: 27002: template 27002: struct __result_of_memobj_ref 27002: : private __result_of_memobj_ref_impl 27002: { 27002: typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; 27002: }; 27002: 27002: 27002: struct __result_of_memobj_deref_impl 27002: { 27002: template 27002: static __result_of_success()).*std::declval<_Fp>() 27002: ), __invoke_memobj_deref> _S_test(int); 27002: 27002: template 27002: static __failure_type _S_test(...); 27002: }; 27002: 27002: template 27002: struct __result_of_memobj_deref 27002: : private __result_of_memobj_deref_impl 27002: { 27002: typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; 27002: }; 27002: 27002: template 27002: struct __result_of_memobj; 27002: 27002: template 27002: struct __result_of_memobj<_Res _Class::*, _Arg> 27002: { 27002: typedef __remove_cvref_t<_Arg> _Argval; 27002: typedef _Res _Class::* _MemPtr; 27002: typedef typename __conditional_t<__or_, 27002: is_base_of<_Class, _Argval>>::value, 27002: __result_of_memobj_ref<_MemPtr, _Arg>, 27002: __result_of_memobj_deref<_MemPtr, _Arg> 27002: >::type type; 27002: }; 27002: 27002: template 27002: struct __result_of_memfun; 27002: 27002: template 27002: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 27002: { 27002: typedef typename remove_reference<_Arg>::type _Argval; 27002: typedef _Res _Class::* _MemPtr; 27002: typedef typename __conditional_t::value, 27002: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 27002: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 27002: >::type type; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: struct __inv_unwrap 27002: { 27002: using type = _Tp; 27002: }; 27002: 27002: template 27002: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 27002: { 27002: using type = _Up&; 27002: }; 27002: 27002: template 27002: struct __result_of_impl 27002: { 27002: typedef __failure_type type; 27002: }; 27002: 27002: template 27002: struct __result_of_impl 27002: : public __result_of_memobj<__decay_t<_MemPtr>, 27002: typename __inv_unwrap<_Arg>::type> 27002: { }; 27002: 27002: template 27002: struct __result_of_impl 27002: : public __result_of_memfun<__decay_t<_MemPtr>, 27002: typename __inv_unwrap<_Arg>::type, _Args...> 27002: { }; 27002: 27002: 27002: struct __result_of_other_impl 27002: { 27002: template 27002: static __result_of_success()(std::declval<_Args>()...) 27002: ), __invoke_other> _S_test(int); 27002: 27002: template 27002: static __failure_type _S_test(...); 27002: }; 27002: 27002: template 27002: struct __result_of_impl 27002: : private __result_of_other_impl 27002: { 27002: typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type; 27002: }; 27002: 27002: 27002: template 27002: struct __invoke_result 27002: : public __result_of_impl< 27002: is_member_object_pointer< 27002: typename remove_reference<_Functor>::type 27002: >::value, 27002: is_member_function_pointer< 27002: typename remove_reference<_Functor>::type 27002: >::value, 27002: _Functor, _ArgTypes... 27002: >::type 27002: { }; 27002: 27002: 27002: template 27002: struct result_of<_Functor(_ArgTypes...)> 27002: : public __invoke_result<_Functor, _ArgTypes...> 27002: { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); 27002: 27002: 27002: 27002: template::__type)> 27002: using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; 27002: 27002: template 27002: using aligned_union_t = typename aligned_union<_Len, _Types...>::type; 27002: 27002: 27002: template 27002: using decay_t = typename decay<_Tp>::type; 27002: 27002: 27002: template 27002: using enable_if_t = typename enable_if<_Cond, _Tp>::type; 27002: 27002: 27002: template 27002: using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; 27002: 27002: 27002: template 27002: using common_type_t = typename common_type<_Tp...>::type; 27002: 27002: 27002: template 27002: using underlying_type_t = typename underlying_type<_Tp>::type; 27002: 27002: 27002: template 27002: using result_of_t = typename result_of<_Tp>::type; 27002: 27002: 27002: 27002: 27002: 27002: template using void_t = void; 27002: 27002: 27002: 27002: 27002: 27002: template class _Op, typename... _Args> 27002: struct __detector 27002: { 27002: using value_t = false_type; 27002: using type = _Default; 27002: }; 27002: 27002: 27002: template class _Op, 27002: typename... _Args> 27002: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 27002: { 27002: using value_t = true_type; 27002: using type = _Op<_Args...>; 27002: }; 27002: 27002: 27002: template class _Op, 27002: typename... _Args> 27002: using __detected_or = __detector<_Default, void, _Op, _Args...>; 27002: 27002: 27002: template class _Op, 27002: typename... _Args> 27002: using __detected_or_t 27002: = typename __detected_or<_Default, _Op, _Args...>::type; 27002: # 2684 "/usr/include/c++/12/type_traits" 3 27002: template 27002: struct __is_swappable; 27002: 27002: template 27002: struct __is_nothrow_swappable; 27002: 27002: template 27002: struct __is_tuple_like_impl : false_type 27002: { }; 27002: 27002: 27002: template 27002: struct __is_tuple_like 27002: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 27002: { }; 27002: 27002: 27002: template 27002: 27002: inline 27002: _Require<__not_<__is_tuple_like<_Tp>>, 27002: is_move_constructible<_Tp>, 27002: is_move_assignable<_Tp>> 27002: swap(_Tp&, _Tp&) 27002: noexcept(__and_, 27002: is_nothrow_move_assignable<_Tp>>::value); 27002: 27002: template 27002: 27002: inline 27002: __enable_if_t<__is_swappable<_Tp>::value> 27002: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 27002: noexcept(__is_nothrow_swappable<_Tp>::value); 27002: 27002: 27002: namespace __swappable_details { 27002: using std::swap; 27002: 27002: struct __do_is_swappable_impl 27002: { 27002: template(), std::declval<_Tp&>()))> 27002: static true_type __test(int); 27002: 27002: template 27002: static false_type __test(...); 27002: }; 27002: 27002: struct __do_is_nothrow_swappable_impl 27002: { 27002: template 27002: static __bool_constant< 27002: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 27002: > __test(int); 27002: 27002: template 27002: static false_type __test(...); 27002: }; 27002: 27002: } 27002: 27002: template 27002: struct __is_swappable_impl 27002: : public __swappable_details::__do_is_swappable_impl 27002: { 27002: typedef decltype(__test<_Tp>(0)) type; 27002: }; 27002: 27002: template 27002: struct __is_nothrow_swappable_impl 27002: : public __swappable_details::__do_is_nothrow_swappable_impl 27002: { 27002: typedef decltype(__test<_Tp>(0)) type; 27002: }; 27002: 27002: template 27002: struct __is_swappable 27002: : public __is_swappable_impl<_Tp>::type 27002: { }; 27002: 27002: template 27002: struct __is_nothrow_swappable 27002: : public __is_nothrow_swappable_impl<_Tp>::type 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_swappable 27002: : public __is_swappable_impl<_Tp>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_nothrow_swappable 27002: : public __is_nothrow_swappable_impl<_Tp>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: 27002: template 27002: inline constexpr bool is_swappable_v = 27002: is_swappable<_Tp>::value; 27002: 27002: 27002: template 27002: inline constexpr bool is_nothrow_swappable_v = 27002: is_nothrow_swappable<_Tp>::value; 27002: 27002: 27002: 27002: namespace __swappable_with_details { 27002: using std::swap; 27002: 27002: struct __do_is_swappable_with_impl 27002: { 27002: template(), std::declval<_Up>())), 27002: typename 27002: = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> 27002: static true_type __test(int); 27002: 27002: template 27002: static false_type __test(...); 27002: }; 27002: 27002: struct __do_is_nothrow_swappable_with_impl 27002: { 27002: template 27002: static __bool_constant< 27002: noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) 27002: && 27002: noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) 27002: > __test(int); 27002: 27002: template 27002: static false_type __test(...); 27002: }; 27002: 27002: } 27002: 27002: template 27002: struct __is_swappable_with_impl 27002: : public __swappable_with_details::__do_is_swappable_with_impl 27002: { 27002: typedef decltype(__test<_Tp, _Up>(0)) type; 27002: }; 27002: 27002: 27002: template 27002: struct __is_swappable_with_impl<_Tp&, _Tp&> 27002: : public __swappable_details::__do_is_swappable_impl 27002: { 27002: typedef decltype(__test<_Tp&>(0)) type; 27002: }; 27002: 27002: template 27002: struct __is_nothrow_swappable_with_impl 27002: : public __swappable_with_details::__do_is_nothrow_swappable_with_impl 27002: { 27002: typedef decltype(__test<_Tp, _Up>(0)) type; 27002: }; 27002: 27002: 27002: template 27002: struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> 27002: : public __swappable_details::__do_is_nothrow_swappable_impl 27002: { 27002: typedef decltype(__test<_Tp&>(0)) type; 27002: }; 27002: 27002: 27002: 27002: template 27002: struct is_swappable_with 27002: : public __is_swappable_with_impl<_Tp, _Up>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "first template argument must be a complete class or an unbounded array"); 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 27002: "second template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_nothrow_swappable_with 27002: : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "first template argument must be a complete class or an unbounded array"); 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 27002: "second template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: 27002: template 27002: inline constexpr bool is_swappable_with_v = 27002: is_swappable_with<_Tp, _Up>::value; 27002: 27002: 27002: template 27002: inline constexpr bool is_nothrow_swappable_with_v = 27002: is_nothrow_swappable_with<_Tp, _Up>::value; 27002: # 2907 "/usr/include/c++/12/type_traits" 3 27002: template::value, typename = void> 27002: struct __is_invocable_impl : false_type { }; 27002: 27002: 27002: template 27002: struct __is_invocable_impl<_Result, _Ret, 27002: true, 27002: __void_t> 27002: : true_type 27002: { }; 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 27002: 27002: template 27002: struct __is_invocable_impl<_Result, _Ret, 27002: false, 27002: __void_t> 27002: { 27002: private: 27002: 27002: 27002: static typename _Result::type _S_get(); 27002: 27002: template 27002: static void _S_conv(_Tp); 27002: 27002: 27002: template(_S_get()))> 27002: static true_type 27002: _S_test(int); 27002: 27002: template 27002: static false_type 27002: _S_test(...); 27002: 27002: public: 27002: using type = decltype(_S_test<_Ret>(1)); 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: template 27002: struct __is_invocable 27002: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 27002: { }; 27002: 27002: template 27002: constexpr bool __call_is_nt(__invoke_memfun_ref) 27002: { 27002: using _Up = typename __inv_unwrap<_Tp>::type; 27002: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 27002: std::declval<_Args>()...)); 27002: } 27002: 27002: template 27002: constexpr bool __call_is_nt(__invoke_memfun_deref) 27002: { 27002: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 27002: std::declval<_Args>()...)); 27002: } 27002: 27002: template 27002: constexpr bool __call_is_nt(__invoke_memobj_ref) 27002: { 27002: using _Up = typename __inv_unwrap<_Tp>::type; 27002: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 27002: } 27002: 27002: template 27002: constexpr bool __call_is_nt(__invoke_memobj_deref) 27002: { 27002: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 27002: } 27002: 27002: template 27002: constexpr bool __call_is_nt(__invoke_other) 27002: { 27002: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 27002: } 27002: 27002: template 27002: struct __call_is_nothrow 27002: : __bool_constant< 27002: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 27002: > 27002: { }; 27002: 27002: template 27002: using __call_is_nothrow_ 27002: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 27002: 27002: 27002: template 27002: struct __is_nothrow_invocable 27002: : __and_<__is_invocable<_Fn, _Args...>, 27002: __call_is_nothrow_<_Fn, _Args...>>::type 27002: { }; 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 27002: struct __nonesuchbase {}; 27002: struct __nonesuch : private __nonesuchbase { 27002: ~__nonesuch() = delete; 27002: __nonesuch(__nonesuch const&) = delete; 27002: void operator=(__nonesuch const&) = delete; 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct invoke_result 27002: : public __invoke_result<_Functor, _ArgTypes...> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), 27002: "_Functor must be a complete class or an unbounded array"); 27002: static_assert((std::__is_complete_or_unbounded( 27002: __type_identity<_ArgTypes>{}) && ...), 27002: "each argument type must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; 27002: 27002: 27002: template 27002: struct is_invocable 27002: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 27002: "_Fn must be a complete class or an unbounded array"); 27002: static_assert((std::__is_complete_or_unbounded( 27002: __type_identity<_ArgTypes>{}) && ...), 27002: "each argument type must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_invocable_r 27002: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 27002: "_Fn must be a complete class or an unbounded array"); 27002: static_assert((std::__is_complete_or_unbounded( 27002: __type_identity<_ArgTypes>{}) && ...), 27002: "each argument type must be a complete class or an unbounded array"); 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 27002: "_Ret must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct is_nothrow_invocable 27002: : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, 27002: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 27002: "_Fn must be a complete class or an unbounded array"); 27002: static_assert((std::__is_complete_or_unbounded( 27002: __type_identity<_ArgTypes>{}) && ...), 27002: "each argument type must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: struct __is_nt_invocable_impl : false_type { }; 27002: 27002: template 27002: struct __is_nt_invocable_impl<_Result, _Ret, 27002: __void_t> 27002: : __or_, 27002: __is_nothrow_convertible> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct is_nothrow_invocable_r 27002: : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, 27002: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 27002: "_Fn must be a complete class or an unbounded array"); 27002: static_assert((std::__is_complete_or_unbounded( 27002: __type_identity<_ArgTypes>{}) && ...), 27002: "each argument type must be a complete class or an unbounded array"); 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 27002: "_Ret must be a complete class or an unbounded array"); 27002: }; 27002: # 3119 "/usr/include/c++/12/type_traits" 3 27002: template 27002: inline constexpr bool is_void_v = is_void<_Tp>::value; 27002: template 27002: inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; 27002: template 27002: inline constexpr bool is_integral_v = is_integral<_Tp>::value; 27002: template 27002: inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; 27002: template 27002: inline constexpr bool is_array_v = is_array<_Tp>::value; 27002: template 27002: inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; 27002: template 27002: inline constexpr bool is_lvalue_reference_v = 27002: is_lvalue_reference<_Tp>::value; 27002: template 27002: inline constexpr bool is_rvalue_reference_v = 27002: is_rvalue_reference<_Tp>::value; 27002: template 27002: inline constexpr bool is_member_object_pointer_v = 27002: is_member_object_pointer<_Tp>::value; 27002: template 27002: inline constexpr bool is_member_function_pointer_v = 27002: is_member_function_pointer<_Tp>::value; 27002: template 27002: inline constexpr bool is_enum_v = is_enum<_Tp>::value; 27002: template 27002: inline constexpr bool is_union_v = is_union<_Tp>::value; 27002: template 27002: inline constexpr bool is_class_v = is_class<_Tp>::value; 27002: template 27002: inline constexpr bool is_function_v = is_function<_Tp>::value; 27002: template 27002: inline constexpr bool is_reference_v = is_reference<_Tp>::value; 27002: template 27002: inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; 27002: template 27002: inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; 27002: template 27002: inline constexpr bool is_object_v = is_object<_Tp>::value; 27002: template 27002: inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; 27002: template 27002: inline constexpr bool is_compound_v = is_compound<_Tp>::value; 27002: template 27002: inline constexpr bool is_member_pointer_v = is_member_pointer<_Tp>::value; 27002: template 27002: inline constexpr bool is_const_v = is_const<_Tp>::value; 27002: template 27002: inline constexpr bool is_volatile_v = is_volatile<_Tp>::value; 27002: template 27002: inline constexpr bool is_trivial_v = is_trivial<_Tp>::value; 27002: template 27002: inline constexpr bool is_trivially_copyable_v = 27002: is_trivially_copyable<_Tp>::value; 27002: template 27002: inline constexpr bool is_standard_layout_v = is_standard_layout<_Tp>::value; 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: template 27002: 27002: inline constexpr bool is_pod_v = is_pod<_Tp>::value; 27002: template 27002: [[__deprecated__]] 27002: inline constexpr bool is_literal_type_v = is_literal_type<_Tp>::value; 27002: #pragma GCC diagnostic pop 27002: template 27002: inline constexpr bool is_empty_v = is_empty<_Tp>::value; 27002: template 27002: inline constexpr bool is_polymorphic_v = is_polymorphic<_Tp>::value; 27002: template 27002: inline constexpr bool is_abstract_v = is_abstract<_Tp>::value; 27002: template 27002: inline constexpr bool is_final_v = is_final<_Tp>::value; 27002: template 27002: inline constexpr bool is_signed_v = is_signed<_Tp>::value; 27002: template 27002: inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; 27002: template 27002: inline constexpr bool is_constructible_v = 27002: is_constructible<_Tp, _Args...>::value; 27002: template 27002: inline constexpr bool is_default_constructible_v = 27002: is_default_constructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_copy_constructible_v = 27002: is_copy_constructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_move_constructible_v = 27002: is_move_constructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_assignable_v = is_assignable<_Tp, _Up>::value; 27002: template 27002: inline constexpr bool is_copy_assignable_v = is_copy_assignable<_Tp>::value; 27002: template 27002: inline constexpr bool is_move_assignable_v = is_move_assignable<_Tp>::value; 27002: template 27002: inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_trivially_constructible_v = 27002: is_trivially_constructible<_Tp, _Args...>::value; 27002: template 27002: inline constexpr bool is_trivially_default_constructible_v = 27002: is_trivially_default_constructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_trivially_copy_constructible_v = 27002: is_trivially_copy_constructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_trivially_move_constructible_v = 27002: is_trivially_move_constructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_trivially_assignable_v = 27002: is_trivially_assignable<_Tp, _Up>::value; 27002: template 27002: inline constexpr bool is_trivially_copy_assignable_v = 27002: is_trivially_copy_assignable<_Tp>::value; 27002: template 27002: inline constexpr bool is_trivially_move_assignable_v = 27002: is_trivially_move_assignable<_Tp>::value; 27002: template 27002: inline constexpr bool is_trivially_destructible_v = 27002: is_trivially_destructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_nothrow_constructible_v = 27002: is_nothrow_constructible<_Tp, _Args...>::value; 27002: template 27002: inline constexpr bool is_nothrow_default_constructible_v = 27002: is_nothrow_default_constructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_nothrow_copy_constructible_v = 27002: is_nothrow_copy_constructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_nothrow_move_constructible_v = 27002: is_nothrow_move_constructible<_Tp>::value; 27002: template 27002: inline constexpr bool is_nothrow_assignable_v = 27002: is_nothrow_assignable<_Tp, _Up>::value; 27002: template 27002: inline constexpr bool is_nothrow_copy_assignable_v = 27002: is_nothrow_copy_assignable<_Tp>::value; 27002: template 27002: inline constexpr bool is_nothrow_move_assignable_v = 27002: is_nothrow_move_assignable<_Tp>::value; 27002: template 27002: inline constexpr bool is_nothrow_destructible_v = 27002: is_nothrow_destructible<_Tp>::value; 27002: template 27002: inline constexpr bool has_virtual_destructor_v = 27002: has_virtual_destructor<_Tp>::value; 27002: template 27002: inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; 27002: template 27002: inline constexpr size_t rank_v = rank<_Tp>::value; 27002: template 27002: inline constexpr size_t extent_v = extent<_Tp, _Idx>::value; 27002: 27002: template 27002: inline constexpr bool is_same_v = __is_same(_Tp, _Up); 27002: 27002: 27002: 27002: 27002: template 27002: inline constexpr bool is_base_of_v = is_base_of<_Base, _Derived>::value; 27002: template 27002: inline constexpr bool is_convertible_v = is_convertible<_From, _To>::value; 27002: template 27002: inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; 27002: template 27002: inline constexpr bool is_nothrow_invocable_v 27002: = is_nothrow_invocable<_Fn, _Args...>::value; 27002: template 27002: inline constexpr bool is_invocable_r_v 27002: = is_invocable_r<_Ret, _Fn, _Args...>::value; 27002: template 27002: inline constexpr bool is_nothrow_invocable_r_v 27002: = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct has_unique_object_representations 27002: : bool_constant<__has_unique_object_representations( 27002: remove_cv_t> 27002: )> 27002: { 27002: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 27002: "template argument must be a complete class or an unbounded array"); 27002: }; 27002: 27002: 27002: template 27002: inline constexpr bool has_unique_object_representations_v 27002: = has_unique_object_representations<_Tp>::value; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_aggregate 27002: : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> 27002: { }; 27002: 27002: 27002: template 27002: inline constexpr bool is_aggregate_v = is_aggregate<_Tp>::value; 27002: # 3703 "/usr/include/c++/12/type_traits" 3 27002: 27002: } 27002: # 58 "/usr/include/c++/12/bits/move.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 74 "/usr/include/c++/12/bits/move.h" 3 27002: template 27002: [[__nodiscard__]] 27002: constexpr _Tp&& 27002: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 27002: { return static_cast<_Tp&&>(__t); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: constexpr _Tp&& 27002: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 27002: { 27002: static_assert(!std::is_lvalue_reference<_Tp>::value, 27002: "std::forward must not be used to convert an rvalue to an lvalue"); 27002: return static_cast<_Tp&&>(__t); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: constexpr typename std::remove_reference<_Tp>::type&& 27002: move(_Tp&& __t) noexcept 27002: { return static_cast::type&&>(__t); } 27002: 27002: 27002: template 27002: struct __move_if_noexcept_cond 27002: : public __and_<__not_>, 27002: is_copy_constructible<_Tp>>::type { }; 27002: # 121 "/usr/include/c++/12/bits/move.h" 3 27002: template 27002: [[__nodiscard__]] 27002: constexpr 27002: __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> 27002: move_if_noexcept(_Tp& __x) noexcept 27002: { return std::move(__x); } 27002: # 142 "/usr/include/c++/12/bits/move.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr _Tp* 27002: addressof(_Tp& __r) noexcept 27002: { return std::__addressof(__r); } 27002: 27002: 27002: 27002: template 27002: const _Tp* addressof(const _Tp&&) = delete; 27002: 27002: 27002: template 27002: 27002: inline _Tp 27002: __exchange(_Tp& __obj, _Up&& __new_val) 27002: { 27002: _Tp __old_val = std::move(__obj); 27002: __obj = std::forward<_Up>(__new_val); 27002: return __old_val; 27002: } 27002: # 186 "/usr/include/c++/12/bits/move.h" 3 27002: template 27002: 27002: inline 27002: 27002: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 27002: is_move_constructible<_Tp>, 27002: is_move_assignable<_Tp>>::value>::type 27002: 27002: 27002: 27002: swap(_Tp& __a, _Tp& __b) 27002: noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) 27002: 27002: { 27002: 27002: 27002: 27002: 27002: _Tp __tmp = std::move(__a); 27002: __a = std::move(__b); 27002: __b = std::move(__tmp); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline 27002: 27002: typename enable_if<__is_swappable<_Tp>::value>::type 27002: 27002: 27002: 27002: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 27002: noexcept(__is_nothrow_swappable<_Tp>::value) 27002: { 27002: for (size_t __n = 0; __n < _Nm; ++__n) 27002: swap(__a[__n], __b[__n]); 27002: } 27002: 27002: 27002: 27002: } 27002: # 39 "/usr/include/c++/12/bits/atomic_base.h" 2 3 27002: # 48 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 78 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: typedef enum memory_order 27002: { 27002: memory_order_relaxed, 27002: memory_order_consume, 27002: memory_order_acquire, 27002: memory_order_release, 27002: memory_order_acq_rel, 27002: memory_order_seq_cst 27002: } memory_order; 27002: 27002: 27002: enum __memory_order_modifier 27002: { 27002: __memory_order_mask = 0x0ffff, 27002: __memory_order_modifier_mask = 0xffff0000, 27002: __memory_order_hle_acquire = 0x10000, 27002: __memory_order_hle_release = 0x20000 27002: }; 27002: 27002: constexpr memory_order 27002: operator|(memory_order __m, __memory_order_modifier __mod) 27002: { 27002: return memory_order(int(__m) | int(__mod)); 27002: } 27002: 27002: constexpr memory_order 27002: operator&(memory_order __m, __memory_order_modifier __mod) 27002: { 27002: return memory_order(int(__m) & int(__mod)); 27002: } 27002: 27002: 27002: constexpr memory_order 27002: __cmpexch_failure_order2(memory_order __m) noexcept 27002: { 27002: return __m == memory_order_acq_rel ? memory_order_acquire 27002: : __m == memory_order_release ? memory_order_relaxed : __m; 27002: } 27002: 27002: constexpr memory_order 27002: __cmpexch_failure_order(memory_order __m) noexcept 27002: { 27002: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 27002: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 27002: } 27002: 27002: constexpr bool 27002: __is_valid_cmpexch_failure_order(memory_order __m) noexcept 27002: { 27002: return (__m & __memory_order_mask) != memory_order_release 27002: && (__m & __memory_order_mask) != memory_order_acq_rel; 27002: } 27002: 27002: inline __attribute__((__always_inline__)) void 27002: atomic_thread_fence(memory_order __m) noexcept 27002: { __atomic_thread_fence(int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) void 27002: atomic_signal_fence(memory_order __m) noexcept 27002: { __atomic_signal_fence(int(__m)); } 27002: 27002: 27002: template 27002: inline _Tp 27002: kill_dependency(_Tp __y) noexcept 27002: { 27002: _Tp __ret(__y); 27002: return __ret; 27002: } 27002: 27002: 27002: template 27002: struct __atomic_base; 27002: # 161 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: template 27002: struct atomic; 27002: 27002: template 27002: struct atomic<_Tp*>; 27002: 27002: 27002: 27002: typedef bool __atomic_flag_data_type; 27002: # 184 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: extern "C" { 27002: 27002: struct __atomic_flag_base 27002: { 27002: __atomic_flag_data_type _M_i ; 27002: }; 27002: 27002: } 27002: 27002: 27002: 27002: 27002: struct atomic_flag : public __atomic_flag_base 27002: { 27002: atomic_flag() noexcept = default; 27002: ~atomic_flag() noexcept = default; 27002: atomic_flag(const atomic_flag&) = delete; 27002: atomic_flag& operator=(const atomic_flag&) = delete; 27002: atomic_flag& operator=(const atomic_flag&) volatile = delete; 27002: 27002: 27002: constexpr atomic_flag(bool __i) noexcept 27002: : __atomic_flag_base{ _S_init(__i) } 27002: { } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: return __atomic_test_and_set (&_M_i, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: return __atomic_test_and_set (&_M_i, int(__m)); 27002: } 27002: # 268 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: inline __attribute__((__always_inline__)) void 27002: clear(memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: memory_order __b __attribute__ ((__unused__)) 27002: = __m & __memory_order_mask; 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 27002: 27002: __atomic_clear (&_M_i, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) void 27002: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: memory_order __b __attribute__ ((__unused__)) 27002: = __m & __memory_order_mask; 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 27002: 27002: __atomic_clear (&_M_i, int(__m)); 27002: } 27002: 27002: private: 27002: static constexpr __atomic_flag_data_type 27002: _S_init(bool __i) 27002: { return __i ? 1 : 0; } 27002: }; 27002: # 323 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: template 27002: struct __atomic_base 27002: { 27002: using value_type = _ITp; 27002: using difference_type = value_type; 27002: 27002: private: 27002: typedef _ITp __int_type; 27002: 27002: static constexpr int _S_alignment = 27002: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 27002: 27002: alignas(_S_alignment) __int_type _M_i ; 27002: 27002: public: 27002: __atomic_base() noexcept = default; 27002: ~__atomic_base() noexcept = default; 27002: __atomic_base(const __atomic_base&) = delete; 27002: __atomic_base& operator=(const __atomic_base&) = delete; 27002: __atomic_base& operator=(const __atomic_base&) volatile = delete; 27002: 27002: 27002: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 27002: 27002: operator __int_type() const noexcept 27002: { return load(); } 27002: 27002: operator __int_type() const volatile noexcept 27002: { return load(); } 27002: 27002: __int_type 27002: operator=(__int_type __i) noexcept 27002: { 27002: store(__i); 27002: return __i; 27002: } 27002: 27002: __int_type 27002: operator=(__int_type __i) volatile noexcept 27002: { 27002: store(__i); 27002: return __i; 27002: } 27002: 27002: __int_type 27002: operator++(int) noexcept 27002: { return fetch_add(1); } 27002: 27002: __int_type 27002: operator++(int) volatile noexcept 27002: { return fetch_add(1); } 27002: 27002: __int_type 27002: operator--(int) noexcept 27002: { return fetch_sub(1); } 27002: 27002: __int_type 27002: operator--(int) volatile noexcept 27002: { return fetch_sub(1); } 27002: 27002: __int_type 27002: operator++() noexcept 27002: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator++() volatile noexcept 27002: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator--() noexcept 27002: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator--() volatile noexcept 27002: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator+=(__int_type __i) noexcept 27002: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator+=(__int_type __i) volatile noexcept 27002: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator-=(__int_type __i) noexcept 27002: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator-=(__int_type __i) volatile noexcept 27002: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator&=(__int_type __i) noexcept 27002: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator&=(__int_type __i) volatile noexcept 27002: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator|=(__int_type __i) noexcept 27002: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator|=(__int_type __i) volatile noexcept 27002: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator^=(__int_type __i) noexcept 27002: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 27002: 27002: __int_type 27002: operator^=(__int_type __i) volatile noexcept 27002: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 27002: 27002: bool 27002: is_lock_free() const noexcept 27002: { 27002: 27002: return __atomic_is_lock_free(sizeof(_M_i), 27002: reinterpret_cast(-_S_alignment)); 27002: } 27002: 27002: bool 27002: is_lock_free() const volatile noexcept 27002: { 27002: 27002: return __atomic_is_lock_free(sizeof(_M_i), 27002: reinterpret_cast(-_S_alignment)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) void 27002: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: memory_order __b __attribute__ ((__unused__)) 27002: = __m & __memory_order_mask; 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 27002: 27002: __atomic_store_n(&_M_i, __i, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) void 27002: store(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: memory_order __b __attribute__ ((__unused__)) 27002: = __m & __memory_order_mask; 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 27002: 27002: __atomic_store_n(&_M_i, __i, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: load(memory_order __m = memory_order_seq_cst) const noexcept 27002: { 27002: memory_order __b __attribute__ ((__unused__)) 27002: = __m & __memory_order_mask; 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_load_n(&_M_i, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 27002: { 27002: memory_order __b __attribute__ ((__unused__)) 27002: = __m & __memory_order_mask; 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_load_n(&_M_i, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: exchange(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: return __atomic_exchange_n(&_M_i, __i, int(__m)); 27002: } 27002: 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: exchange(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: return __atomic_exchange_n(&_M_i, __i, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_weak(__int_type& __i1, __int_type __i2, 27002: memory_order __m1, memory_order __m2) noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 27002: int(__m1), int(__m2)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_weak(__int_type& __i1, __int_type __i2, 27002: memory_order __m1, 27002: memory_order __m2) volatile noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 27002: int(__m1), int(__m2)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_weak(__int_type& __i1, __int_type __i2, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: return compare_exchange_weak(__i1, __i2, __m, 27002: __cmpexch_failure_order(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_weak(__int_type& __i1, __int_type __i2, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: return compare_exchange_weak(__i1, __i2, __m, 27002: __cmpexch_failure_order(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_strong(__int_type& __i1, __int_type __i2, 27002: memory_order __m1, memory_order __m2) noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 27002: int(__m1), int(__m2)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_strong(__int_type& __i1, __int_type __i2, 27002: memory_order __m1, 27002: memory_order __m2) volatile noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 27002: int(__m1), int(__m2)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_strong(__int_type& __i1, __int_type __i2, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: return compare_exchange_strong(__i1, __i2, __m, 27002: __cmpexch_failure_order(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_strong(__int_type& __i1, __int_type __i2, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: return compare_exchange_strong(__i1, __i2, __m, 27002: __cmpexch_failure_order(__m)); 27002: } 27002: # 615 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: inline __attribute__((__always_inline__)) __int_type 27002: fetch_add(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: fetch_add(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: fetch_sub(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: fetch_sub(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: fetch_and(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: fetch_and(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: fetch_or(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: fetch_or(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: fetch_xor(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __int_type 27002: fetch_xor(__int_type __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 27002: }; 27002: 27002: 27002: 27002: template 27002: struct __atomic_base<_PTp*> 27002: { 27002: private: 27002: typedef _PTp* __pointer_type; 27002: 27002: __pointer_type _M_p ; 27002: 27002: 27002: constexpr ptrdiff_t 27002: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 27002: 27002: constexpr ptrdiff_t 27002: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 27002: 27002: public: 27002: __atomic_base() noexcept = default; 27002: ~__atomic_base() noexcept = default; 27002: __atomic_base(const __atomic_base&) = delete; 27002: __atomic_base& operator=(const __atomic_base&) = delete; 27002: __atomic_base& operator=(const __atomic_base&) volatile = delete; 27002: 27002: 27002: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 27002: 27002: operator __pointer_type() const noexcept 27002: { return load(); } 27002: 27002: operator __pointer_type() const volatile noexcept 27002: { return load(); } 27002: 27002: __pointer_type 27002: operator=(__pointer_type __p) noexcept 27002: { 27002: store(__p); 27002: return __p; 27002: } 27002: 27002: __pointer_type 27002: operator=(__pointer_type __p) volatile noexcept 27002: { 27002: store(__p); 27002: return __p; 27002: } 27002: 27002: __pointer_type 27002: operator++(int) noexcept 27002: { return fetch_add(1); } 27002: 27002: __pointer_type 27002: operator++(int) volatile noexcept 27002: { return fetch_add(1); } 27002: 27002: __pointer_type 27002: operator--(int) noexcept 27002: { return fetch_sub(1); } 27002: 27002: __pointer_type 27002: operator--(int) volatile noexcept 27002: { return fetch_sub(1); } 27002: 27002: __pointer_type 27002: operator++() noexcept 27002: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 27002: int(memory_order_seq_cst)); } 27002: 27002: __pointer_type 27002: operator++() volatile noexcept 27002: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 27002: int(memory_order_seq_cst)); } 27002: 27002: __pointer_type 27002: operator--() noexcept 27002: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 27002: int(memory_order_seq_cst)); } 27002: 27002: __pointer_type 27002: operator--() volatile noexcept 27002: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 27002: int(memory_order_seq_cst)); } 27002: 27002: __pointer_type 27002: operator+=(ptrdiff_t __d) noexcept 27002: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 27002: int(memory_order_seq_cst)); } 27002: 27002: __pointer_type 27002: operator+=(ptrdiff_t __d) volatile noexcept 27002: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 27002: int(memory_order_seq_cst)); } 27002: 27002: __pointer_type 27002: operator-=(ptrdiff_t __d) noexcept 27002: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 27002: int(memory_order_seq_cst)); } 27002: 27002: __pointer_type 27002: operator-=(ptrdiff_t __d) volatile noexcept 27002: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 27002: int(memory_order_seq_cst)); } 27002: 27002: bool 27002: is_lock_free() const noexcept 27002: { 27002: 27002: return __atomic_is_lock_free(sizeof(_M_p), 27002: reinterpret_cast(-__alignof(_M_p))); 27002: } 27002: 27002: bool 27002: is_lock_free() const volatile noexcept 27002: { 27002: 27002: return __atomic_is_lock_free(sizeof(_M_p), 27002: reinterpret_cast(-__alignof(_M_p))); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) void 27002: store(__pointer_type __p, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: memory_order __b __attribute__ ((__unused__)) 27002: = __m & __memory_order_mask; 27002: 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 27002: 27002: __atomic_store_n(&_M_p, __p, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) void 27002: store(__pointer_type __p, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: memory_order __b __attribute__ ((__unused__)) 27002: = __m & __memory_order_mask; 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); 27002: 27002: __atomic_store_n(&_M_p, __p, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) __pointer_type 27002: load(memory_order __m = memory_order_seq_cst) const noexcept 27002: { 27002: memory_order __b __attribute__ ((__unused__)) 27002: = __m & __memory_order_mask; 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_load_n(&_M_p, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) __pointer_type 27002: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 27002: { 27002: memory_order __b __attribute__ ((__unused__)) 27002: = __m & __memory_order_mask; 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_load_n(&_M_p, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) __pointer_type 27002: exchange(__pointer_type __p, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: return __atomic_exchange_n(&_M_p, __p, int(__m)); 27002: } 27002: 27002: 27002: inline __attribute__((__always_inline__)) __pointer_type 27002: exchange(__pointer_type __p, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: return __atomic_exchange_n(&_M_p, __p, int(__m)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m1, 27002: memory_order __m2) noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 27002: int(__m1), int(__m2)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m1, 27002: memory_order __m2) volatile noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 27002: int(__m1), int(__m2)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m1, 27002: memory_order __m2) noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 27002: int(__m1), int(__m2)); 27002: } 27002: 27002: inline __attribute__((__always_inline__)) bool 27002: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m1, 27002: memory_order __m2) volatile noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 27002: int(__m1), int(__m2)); 27002: } 27002: # 918 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: inline __attribute__((__always_inline__)) __pointer_type 27002: fetch_add(ptrdiff_t __d, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __pointer_type 27002: fetch_add(ptrdiff_t __d, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __pointer_type 27002: fetch_sub(ptrdiff_t __d, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 27002: 27002: inline __attribute__((__always_inline__)) __pointer_type 27002: fetch_sub(ptrdiff_t __d, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 27002: }; 27002: # 1943 "/usr/include/c++/12/bits/atomic_base.h" 3 27002: 27002: } 27002: # 42 "/usr/include/c++/12/atomic" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 56 "/usr/include/c++/12/atomic" 3 27002: template 27002: struct atomic; 27002: 27002: 27002: 27002: template<> 27002: struct atomic 27002: { 27002: using value_type = bool; 27002: 27002: private: 27002: __atomic_base _M_base; 27002: 27002: public: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(bool __i) noexcept : _M_base(__i) { } 27002: 27002: bool 27002: operator=(bool __i) noexcept 27002: { return _M_base.operator=(__i); } 27002: 27002: bool 27002: operator=(bool __i) volatile noexcept 27002: { return _M_base.operator=(__i); } 27002: 27002: operator bool() const noexcept 27002: { return _M_base.load(); } 27002: 27002: operator bool() const volatile noexcept 27002: { return _M_base.load(); } 27002: 27002: bool 27002: is_lock_free() const noexcept { return _M_base.is_lock_free(); } 27002: 27002: bool 27002: is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: 27002: void 27002: store(bool __i, memory_order __m = memory_order_seq_cst) noexcept 27002: { _M_base.store(__i, __m); } 27002: 27002: void 27002: store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { _M_base.store(__i, __m); } 27002: 27002: bool 27002: load(memory_order __m = memory_order_seq_cst) const noexcept 27002: { return _M_base.load(__m); } 27002: 27002: bool 27002: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 27002: { return _M_base.load(__m); } 27002: 27002: bool 27002: exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept 27002: { return _M_base.exchange(__i, __m); } 27002: 27002: bool 27002: exchange(bool __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return _M_base.exchange(__i, __m); } 27002: 27002: bool 27002: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 27002: memory_order __m2) noexcept 27002: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 27002: 27002: bool 27002: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 27002: memory_order __m2) volatile noexcept 27002: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 27002: 27002: bool 27002: compare_exchange_weak(bool& __i1, bool __i2, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 27002: 27002: bool 27002: compare_exchange_weak(bool& __i1, bool __i2, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 27002: 27002: bool 27002: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 27002: memory_order __m2) noexcept 27002: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 27002: 27002: bool 27002: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 27002: memory_order __m2) volatile noexcept 27002: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 27002: 27002: bool 27002: compare_exchange_strong(bool& __i1, bool __i2, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 27002: 27002: bool 27002: compare_exchange_strong(bool& __i1, bool __i2, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 27002: # 182 "/usr/include/c++/12/atomic" 3 27002: }; 27002: # 195 "/usr/include/c++/12/atomic" 3 27002: template 27002: struct atomic 27002: { 27002: using value_type = _Tp; 27002: 27002: private: 27002: 27002: static constexpr int _S_min_alignment 27002: = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 27002: ? 0 : sizeof(_Tp); 27002: 27002: static constexpr int _S_alignment 27002: = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); 27002: 27002: alignas(_S_alignment) _Tp _M_i ; 27002: 27002: static_assert(__is_trivially_copyable(_Tp), 27002: "std::atomic requires a trivially copyable type"); 27002: 27002: static_assert(sizeof(_Tp) > 0, 27002: "Incomplete or zero-sized types are not supported"); 27002: # 224 "/usr/include/c++/12/atomic" 3 27002: public: 27002: atomic() = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(_Tp __i) noexcept : _M_i(__i) { } 27002: 27002: operator _Tp() const noexcept 27002: { return load(); } 27002: 27002: operator _Tp() const volatile noexcept 27002: { return load(); } 27002: 27002: _Tp 27002: operator=(_Tp __i) noexcept 27002: { store(__i); return __i; } 27002: 27002: _Tp 27002: operator=(_Tp __i) volatile noexcept 27002: { store(__i); return __i; } 27002: 27002: bool 27002: is_lock_free() const noexcept 27002: { 27002: 27002: return __atomic_is_lock_free(sizeof(_M_i), 27002: reinterpret_cast(-_S_alignment)); 27002: } 27002: 27002: bool 27002: is_lock_free() const volatile noexcept 27002: { 27002: 27002: return __atomic_is_lock_free(sizeof(_M_i), 27002: reinterpret_cast(-_S_alignment)); 27002: } 27002: 27002: 27002: static constexpr bool is_always_lock_free 27002: = __atomic_always_lock_free(sizeof(_M_i), 0); 27002: 27002: 27002: void 27002: store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: __atomic_store(std::__addressof(_M_i), std::__addressof(__i), int(__m)); 27002: } 27002: 27002: void 27002: store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: __atomic_store(std::__addressof(_M_i), std::__addressof(__i), int(__m)); 27002: } 27002: 27002: _Tp 27002: load(memory_order __m = memory_order_seq_cst) const noexcept 27002: { 27002: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 27002: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 27002: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 27002: return *__ptr; 27002: } 27002: 27002: _Tp 27002: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 27002: { 27002: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 27002: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 27002: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 27002: return *__ptr; 27002: } 27002: 27002: _Tp 27002: exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 27002: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 27002: __atomic_exchange(std::__addressof(_M_i), std::__addressof(__i), 27002: __ptr, int(__m)); 27002: return *__ptr; 27002: } 27002: 27002: _Tp 27002: exchange(_Tp __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 27002: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 27002: __atomic_exchange(std::__addressof(_M_i), std::__addressof(__i), 27002: __ptr, int(__m)); 27002: return *__ptr; 27002: } 27002: 27002: bool 27002: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 27002: memory_order __f) noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange(std::__addressof(_M_i), 27002: std::__addressof(__e), 27002: std::__addressof(__i), 27002: true, int(__s), int(__f)); 27002: } 27002: 27002: bool 27002: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 27002: memory_order __f) volatile noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange(std::__addressof(_M_i), 27002: std::__addressof(__e), 27002: std::__addressof(__i), 27002: true, int(__s), int(__f)); 27002: } 27002: 27002: bool 27002: compare_exchange_weak(_Tp& __e, _Tp __i, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return compare_exchange_weak(__e, __i, __m, 27002: __cmpexch_failure_order(__m)); } 27002: 27002: bool 27002: compare_exchange_weak(_Tp& __e, _Tp __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return compare_exchange_weak(__e, __i, __m, 27002: __cmpexch_failure_order(__m)); } 27002: 27002: bool 27002: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 27002: memory_order __f) noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange(std::__addressof(_M_i), 27002: std::__addressof(__e), 27002: std::__addressof(__i), 27002: false, int(__s), int(__f)); 27002: } 27002: 27002: bool 27002: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 27002: memory_order __f) volatile noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); 27002: 27002: return __atomic_compare_exchange(std::__addressof(_M_i), 27002: std::__addressof(__e), 27002: std::__addressof(__i), 27002: false, int(__s), int(__f)); 27002: } 27002: 27002: bool 27002: compare_exchange_strong(_Tp& __e, _Tp __i, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return compare_exchange_strong(__e, __i, __m, 27002: __cmpexch_failure_order(__m)); } 27002: 27002: bool 27002: compare_exchange_strong(_Tp& __e, _Tp __i, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return compare_exchange_strong(__e, __i, __m, 27002: __cmpexch_failure_order(__m)); } 27002: # 410 "/usr/include/c++/12/atomic" 3 27002: }; 27002: 27002: 27002: 27002: template 27002: struct atomic<_Tp*> 27002: { 27002: using value_type = _Tp*; 27002: using difference_type = ptrdiff_t; 27002: 27002: typedef _Tp* __pointer_type; 27002: typedef __atomic_base<_Tp*> __base_type; 27002: __base_type _M_b; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } 27002: 27002: operator __pointer_type() const noexcept 27002: { return __pointer_type(_M_b); } 27002: 27002: operator __pointer_type() const volatile noexcept 27002: { return __pointer_type(_M_b); } 27002: 27002: __pointer_type 27002: operator=(__pointer_type __p) noexcept 27002: { return _M_b.operator=(__p); } 27002: 27002: __pointer_type 27002: operator=(__pointer_type __p) volatile noexcept 27002: { return _M_b.operator=(__p); } 27002: 27002: __pointer_type 27002: operator++(int) noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b++; 27002: } 27002: 27002: __pointer_type 27002: operator++(int) volatile noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b++; 27002: } 27002: 27002: __pointer_type 27002: operator--(int) noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b--; 27002: } 27002: 27002: __pointer_type 27002: operator--(int) volatile noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b--; 27002: } 27002: 27002: __pointer_type 27002: operator++() noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return ++_M_b; 27002: } 27002: 27002: __pointer_type 27002: operator++() volatile noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return ++_M_b; 27002: } 27002: 27002: __pointer_type 27002: operator--() noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return --_M_b; 27002: } 27002: 27002: __pointer_type 27002: operator--() volatile noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return --_M_b; 27002: } 27002: 27002: __pointer_type 27002: operator+=(ptrdiff_t __d) noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b.operator+=(__d); 27002: } 27002: 27002: __pointer_type 27002: operator+=(ptrdiff_t __d) volatile noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b.operator+=(__d); 27002: } 27002: 27002: __pointer_type 27002: operator-=(ptrdiff_t __d) noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b.operator-=(__d); 27002: } 27002: 27002: __pointer_type 27002: operator-=(ptrdiff_t __d) volatile noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b.operator-=(__d); 27002: } 27002: 27002: bool 27002: is_lock_free() const noexcept 27002: { return _M_b.is_lock_free(); } 27002: 27002: bool 27002: is_lock_free() const volatile noexcept 27002: { return _M_b.is_lock_free(); } 27002: 27002: 27002: static constexpr bool is_always_lock_free 27002: = 2 == 2; 27002: 27002: 27002: void 27002: store(__pointer_type __p, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return _M_b.store(__p, __m); } 27002: 27002: void 27002: store(__pointer_type __p, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return _M_b.store(__p, __m); } 27002: 27002: __pointer_type 27002: load(memory_order __m = memory_order_seq_cst) const noexcept 27002: { return _M_b.load(__m); } 27002: 27002: __pointer_type 27002: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 27002: { return _M_b.load(__m); } 27002: 27002: __pointer_type 27002: exchange(__pointer_type __p, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { return _M_b.exchange(__p, __m); } 27002: 27002: __pointer_type 27002: exchange(__pointer_type __p, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { return _M_b.exchange(__p, __m); } 27002: 27002: bool 27002: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m1, memory_order __m2) noexcept 27002: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 27002: 27002: bool 27002: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m1, 27002: memory_order __m2) volatile noexcept 27002: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 27002: 27002: bool 27002: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: return compare_exchange_weak(__p1, __p2, __m, 27002: __cmpexch_failure_order(__m)); 27002: } 27002: 27002: bool 27002: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: return compare_exchange_weak(__p1, __p2, __m, 27002: __cmpexch_failure_order(__m)); 27002: } 27002: 27002: bool 27002: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m1, memory_order __m2) noexcept 27002: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 27002: 27002: bool 27002: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m1, 27002: memory_order __m2) volatile noexcept 27002: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 27002: 27002: bool 27002: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: return _M_b.compare_exchange_strong(__p1, __p2, __m, 27002: __cmpexch_failure_order(__m)); 27002: } 27002: 27002: bool 27002: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: return _M_b.compare_exchange_strong(__p1, __p2, __m, 27002: __cmpexch_failure_order(__m)); 27002: } 27002: # 665 "/usr/include/c++/12/atomic" 3 27002: __pointer_type 27002: fetch_add(ptrdiff_t __d, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b.fetch_add(__d, __m); 27002: } 27002: 27002: __pointer_type 27002: fetch_add(ptrdiff_t __d, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b.fetch_add(__d, __m); 27002: } 27002: 27002: __pointer_type 27002: fetch_sub(ptrdiff_t __d, 27002: memory_order __m = memory_order_seq_cst) noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b.fetch_sub(__d, __m); 27002: } 27002: 27002: __pointer_type 27002: fetch_sub(ptrdiff_t __d, 27002: memory_order __m = memory_order_seq_cst) volatile noexcept 27002: { 27002: 27002: static_assert( is_object<_Tp>::value, "pointer to object type" ); 27002: 27002: return _M_b.fetch_sub(__d, __m); 27002: } 27002: }; 27002: 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef char __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef signed char __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept= default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef unsigned char __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept= default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef short __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef unsigned short __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef int __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef unsigned int __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef long __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef unsigned long __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef long long __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef unsigned long long __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef wchar_t __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free = 2 == 2; 27002: 27002: }; 27002: # 1010 "/usr/include/c++/12/atomic" 3 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef char16_t __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free 27002: = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: template<> 27002: struct atomic : __atomic_base 27002: { 27002: typedef char32_t __integral_type; 27002: typedef __atomic_base __base_type; 27002: 27002: atomic() noexcept = default; 27002: ~atomic() noexcept = default; 27002: atomic(const atomic&) = delete; 27002: atomic& operator=(const atomic&) = delete; 27002: atomic& operator=(const atomic&) volatile = delete; 27002: 27002: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 27002: 27002: using __base_type::operator __integral_type; 27002: using __base_type::operator=; 27002: 27002: 27002: static constexpr bool is_always_lock_free 27002: = 2 == 2; 27002: 27002: }; 27002: 27002: 27002: 27002: typedef atomic atomic_bool; 27002: 27002: 27002: typedef atomic atomic_char; 27002: 27002: 27002: typedef atomic atomic_schar; 27002: 27002: 27002: typedef atomic atomic_uchar; 27002: 27002: 27002: typedef atomic atomic_short; 27002: 27002: 27002: typedef atomic atomic_ushort; 27002: 27002: 27002: typedef atomic atomic_int; 27002: 27002: 27002: typedef atomic atomic_uint; 27002: 27002: 27002: typedef atomic atomic_long; 27002: 27002: 27002: typedef atomic atomic_ulong; 27002: 27002: 27002: typedef atomic atomic_llong; 27002: 27002: 27002: typedef atomic atomic_ullong; 27002: 27002: 27002: typedef atomic atomic_wchar_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef atomic atomic_char16_t; 27002: 27002: 27002: typedef atomic atomic_char32_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef atomic atomic_int8_t; 27002: 27002: 27002: typedef atomic atomic_uint8_t; 27002: 27002: 27002: typedef atomic atomic_int16_t; 27002: 27002: 27002: typedef atomic atomic_uint16_t; 27002: 27002: 27002: typedef atomic atomic_int32_t; 27002: 27002: 27002: typedef atomic atomic_uint32_t; 27002: 27002: 27002: typedef atomic atomic_int64_t; 27002: 27002: 27002: typedef atomic atomic_uint64_t; 27002: 27002: 27002: 27002: typedef atomic atomic_int_least8_t; 27002: 27002: 27002: typedef atomic atomic_uint_least8_t; 27002: 27002: 27002: typedef atomic atomic_int_least16_t; 27002: 27002: 27002: typedef atomic atomic_uint_least16_t; 27002: 27002: 27002: typedef atomic atomic_int_least32_t; 27002: 27002: 27002: typedef atomic atomic_uint_least32_t; 27002: 27002: 27002: typedef atomic atomic_int_least64_t; 27002: 27002: 27002: typedef atomic atomic_uint_least64_t; 27002: 27002: 27002: 27002: typedef atomic atomic_int_fast8_t; 27002: 27002: 27002: typedef atomic atomic_uint_fast8_t; 27002: 27002: 27002: typedef atomic atomic_int_fast16_t; 27002: 27002: 27002: typedef atomic atomic_uint_fast16_t; 27002: 27002: 27002: typedef atomic atomic_int_fast32_t; 27002: 27002: 27002: typedef atomic atomic_uint_fast32_t; 27002: 27002: 27002: typedef atomic atomic_int_fast64_t; 27002: 27002: 27002: typedef atomic atomic_uint_fast64_t; 27002: 27002: 27002: 27002: 27002: typedef atomic atomic_intptr_t; 27002: 27002: 27002: typedef atomic atomic_uintptr_t; 27002: 27002: 27002: typedef atomic atomic_size_t; 27002: 27002: 27002: typedef atomic atomic_ptrdiff_t; 27002: 27002: 27002: 27002: typedef atomic atomic_intmax_t; 27002: 27002: 27002: typedef atomic atomic_uintmax_t; 27002: 27002: 27002: 27002: inline bool 27002: atomic_flag_test_and_set_explicit(atomic_flag* __a, 27002: memory_order __m) noexcept 27002: { return __a->test_and_set(__m); } 27002: 27002: inline bool 27002: atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 27002: memory_order __m) noexcept 27002: { return __a->test_and_set(__m); } 27002: 27002: inline void 27002: atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept 27002: { __a->clear(__m); } 27002: 27002: inline void 27002: atomic_flag_clear_explicit(volatile atomic_flag* __a, 27002: memory_order __m) noexcept 27002: { __a->clear(__m); } 27002: 27002: inline bool 27002: atomic_flag_test_and_set(atomic_flag* __a) noexcept 27002: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 27002: 27002: inline bool 27002: atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept 27002: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 27002: 27002: inline void 27002: atomic_flag_clear(atomic_flag* __a) noexcept 27002: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 27002: 27002: inline void 27002: atomic_flag_clear(volatile atomic_flag* __a) noexcept 27002: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 27002: 27002: 27002: 27002: template 27002: using __atomic_val_t = __type_identity_t<_Tp>; 27002: template 27002: using __atomic_diff_t = typename atomic<_Tp>::difference_type; 27002: 27002: 27002: 27002: template 27002: inline bool 27002: atomic_is_lock_free(const atomic<_ITp>* __a) noexcept 27002: { return __a->is_lock_free(); } 27002: 27002: template 27002: inline bool 27002: atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept 27002: { return __a->is_lock_free(); } 27002: 27002: template 27002: inline void 27002: atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 27002: { __a->store(__i, memory_order_relaxed); } 27002: 27002: template 27002: inline void 27002: atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 27002: { __a->store(__i, memory_order_relaxed); } 27002: 27002: template 27002: inline void 27002: atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { __a->store(__i, __m); } 27002: 27002: template 27002: inline void 27002: atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { __a->store(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept 27002: { return __a->load(__m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_load_explicit(const volatile atomic<_ITp>* __a, 27002: memory_order __m) noexcept 27002: { return __a->load(__m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->exchange(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_exchange_explicit(volatile atomic<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->exchange(__i, __m); } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, 27002: __atomic_val_t<_ITp>* __i1, 27002: __atomic_val_t<_ITp> __i2, 27002: memory_order __m1, 27002: memory_order __m2) noexcept 27002: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, 27002: __atomic_val_t<_ITp>* __i1, 27002: __atomic_val_t<_ITp> __i2, 27002: memory_order __m1, 27002: memory_order __m2) noexcept 27002: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, 27002: __atomic_val_t<_ITp>* __i1, 27002: __atomic_val_t<_ITp> __i2, 27002: memory_order __m1, 27002: memory_order __m2) noexcept 27002: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, 27002: __atomic_val_t<_ITp>* __i1, 27002: __atomic_val_t<_ITp> __i2, 27002: memory_order __m1, 27002: memory_order __m2) noexcept 27002: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 27002: 27002: 27002: template 27002: inline void 27002: atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 27002: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline void 27002: atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 27002: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_load(const atomic<_ITp>* __a) noexcept 27002: { return atomic_load_explicit(__a, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_load(const volatile atomic<_ITp>* __a) noexcept 27002: { return atomic_load_explicit(__a, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 27002: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_exchange(volatile atomic<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i) noexcept 27002: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_weak(atomic<_ITp>* __a, 27002: __atomic_val_t<_ITp>* __i1, 27002: __atomic_val_t<_ITp> __i2) noexcept 27002: { 27002: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 27002: memory_order_seq_cst, 27002: memory_order_seq_cst); 27002: } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, 27002: __atomic_val_t<_ITp>* __i1, 27002: __atomic_val_t<_ITp> __i2) noexcept 27002: { 27002: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 27002: memory_order_seq_cst, 27002: memory_order_seq_cst); 27002: } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_strong(atomic<_ITp>* __a, 27002: __atomic_val_t<_ITp>* __i1, 27002: __atomic_val_t<_ITp> __i2) noexcept 27002: { 27002: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 27002: memory_order_seq_cst, 27002: memory_order_seq_cst); 27002: } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, 27002: __atomic_val_t<_ITp>* __i1, 27002: __atomic_val_t<_ITp> __i2) noexcept 27002: { 27002: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 27002: memory_order_seq_cst, 27002: memory_order_seq_cst); 27002: } 27002: # 1451 "/usr/include/c++/12/atomic" 3 27002: template 27002: inline _ITp 27002: atomic_fetch_add_explicit(atomic<_ITp>* __a, 27002: __atomic_diff_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->fetch_add(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, 27002: __atomic_diff_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->fetch_add(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_sub_explicit(atomic<_ITp>* __a, 27002: __atomic_diff_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->fetch_sub(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, 27002: __atomic_diff_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->fetch_sub(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->fetch_and(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->fetch_and(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->fetch_or(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->fetch_or(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->fetch_xor(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i, 27002: memory_order __m) noexcept 27002: { return __a->fetch_xor(__i, __m); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_add(atomic<_ITp>* __a, 27002: __atomic_diff_t<_ITp> __i) noexcept 27002: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_add(volatile atomic<_ITp>* __a, 27002: __atomic_diff_t<_ITp> __i) noexcept 27002: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_sub(atomic<_ITp>* __a, 27002: __atomic_diff_t<_ITp> __i) noexcept 27002: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_sub(volatile atomic<_ITp>* __a, 27002: __atomic_diff_t<_ITp> __i) noexcept 27002: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_and(__atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i) noexcept 27002: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_and(volatile __atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i) noexcept 27002: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_or(__atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i) noexcept 27002: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_or(volatile __atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i) noexcept 27002: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_xor(__atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i) noexcept 27002: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 27002: 27002: template 27002: inline _ITp 27002: atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, 27002: __atomic_val_t<_ITp> __i) noexcept 27002: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 27002: # 1649 "/usr/include/c++/12/atomic" 3 27002: 27002: } 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: # 1 "/usr/include/c++/12/deque" 1 3 27002: # 58 "/usr/include/c++/12/deque" 3 27002: 27002: # 59 "/usr/include/c++/12/deque" 3 27002: 27002: # 1 "/usr/include/c++/12/bits/stl_algobase.h" 1 3 27002: # 60 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: # 1 "/usr/include/c++/12/bits/functexcept.h" 1 3 27002: # 40 "/usr/include/c++/12/bits/functexcept.h" 3 27002: # 1 "/usr/include/c++/12/bits/exception_defines.h" 1 3 27002: # 41 "/usr/include/c++/12/bits/functexcept.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: void 27002: __throw_bad_exception(void) __attribute__((__noreturn__)); 27002: 27002: 27002: void 27002: __throw_bad_alloc(void) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_bad_array_new_length(void) __attribute__((__noreturn__)); 27002: 27002: 27002: void 27002: __throw_bad_cast(void) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_bad_typeid(void) __attribute__((__noreturn__)); 27002: 27002: 27002: void 27002: __throw_logic_error(const char*) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_domain_error(const char*) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_invalid_argument(const char*) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_length_error(const char*) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_out_of_range(const char*) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__)) 27002: __attribute__((__format__(__gnu_printf__, 1, 2))); 27002: 27002: void 27002: __throw_runtime_error(const char*) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_range_error(const char*) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_overflow_error(const char*) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_underflow_error(const char*) __attribute__((__noreturn__)); 27002: 27002: 27002: void 27002: __throw_ios_failure(const char*) __attribute__((__noreturn__)); 27002: 27002: void 27002: __throw_ios_failure(const char*, int) __attribute__((__noreturn__)); 27002: 27002: 27002: void 27002: __throw_system_error(int) __attribute__((__noreturn__)); 27002: 27002: 27002: void 27002: __throw_future_error(int) __attribute__((__noreturn__)); 27002: 27002: 27002: void 27002: __throw_bad_function_call() __attribute__((__noreturn__)); 27002: 27002: 27002: } 27002: # 61 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/cpp_type_traits.h" 1 3 27002: # 35 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 27002: 27002: # 36 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 27002: # 67 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 27002: extern "C++" { 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: struct __true_type { }; 27002: struct __false_type { }; 27002: 27002: template 27002: struct __truth_type 27002: { typedef __false_type __type; }; 27002: 27002: template<> 27002: struct __truth_type 27002: { typedef __true_type __type; }; 27002: 27002: 27002: 27002: template 27002: struct __traitor 27002: { 27002: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 27002: typedef typename __truth_type<__value>::__type __type; 27002: }; 27002: 27002: 27002: template 27002: struct __are_same 27002: { 27002: enum { __value = 0 }; 27002: typedef __false_type __type; 27002: }; 27002: 27002: template 27002: struct __are_same<_Tp, _Tp> 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: 27002: template 27002: struct __is_void 27002: { 27002: enum { __value = 0 }; 27002: typedef __false_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_void 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_integer 27002: { 27002: enum { __value = 0 }; 27002: typedef __false_type __type; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: # 184 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_integer 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: # 289 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 27002: template 27002: struct __is_floating 27002: { 27002: enum { __value = 0 }; 27002: typedef __false_type __type; 27002: }; 27002: 27002: 27002: template<> 27002: struct __is_floating 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_floating 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_floating 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_pointer 27002: { 27002: enum { __value = 0 }; 27002: typedef __false_type __type; 27002: }; 27002: 27002: template 27002: struct __is_pointer<_Tp*> 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_arithmetic 27002: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 27002: { }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_scalar 27002: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 27002: { }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_char 27002: { 27002: enum { __value = 0 }; 27002: typedef __false_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_char 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: 27002: template<> 27002: struct __is_char 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: 27002: template 27002: struct __is_byte 27002: { 27002: enum { __value = 0 }; 27002: typedef __false_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_byte 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_byte 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template<> 27002: struct __is_byte 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: 27002: enum class byte : unsigned char; 27002: 27002: template<> 27002: struct __is_byte 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: # 425 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 27002: template struct iterator_traits; 27002: 27002: 27002: template 27002: struct __is_nonvolatile_trivially_copyable 27002: { 27002: enum { __value = __is_trivially_copyable(_Tp) }; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_nonvolatile_trivially_copyable 27002: { 27002: enum { __value = 0 }; 27002: }; 27002: 27002: 27002: template 27002: struct __memcpyable 27002: { 27002: enum { __value = 0 }; 27002: }; 27002: 27002: template 27002: struct __memcpyable<_Tp*, _Tp*> 27002: : __is_nonvolatile_trivially_copyable<_Tp> 27002: { }; 27002: 27002: template 27002: struct __memcpyable<_Tp*, const _Tp*> 27002: : __is_nonvolatile_trivially_copyable<_Tp> 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __memcmpable 27002: { 27002: enum { __value = 0 }; 27002: }; 27002: 27002: 27002: template 27002: struct __memcmpable<_Tp*, _Tp*> 27002: : __is_nonvolatile_trivially_copyable<_Tp> 27002: { }; 27002: 27002: template 27002: struct __memcmpable 27002: : __is_nonvolatile_trivially_copyable<_Tp> 27002: { }; 27002: 27002: template 27002: struct __memcmpable<_Tp*, const _Tp*> 27002: : __is_nonvolatile_trivially_copyable<_Tp> 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template::__value 27002: 27002: > 27002: struct __is_memcmp_ordered 27002: { 27002: static const bool __value = _Tp(-1) > _Tp(1); 27002: }; 27002: 27002: template 27002: struct __is_memcmp_ordered<_Tp, false> 27002: { 27002: static const bool __value = false; 27002: }; 27002: 27002: 27002: template 27002: struct __is_memcmp_ordered_with 27002: { 27002: static const bool __value = __is_memcmp_ordered<_Tp>::__value 27002: && __is_memcmp_ordered<_Up>::__value; 27002: }; 27002: 27002: template 27002: struct __is_memcmp_ordered_with<_Tp, _Up, false> 27002: { 27002: static const bool __value = false; 27002: }; 27002: # 534 "/usr/include/c++/12/bits/cpp_type_traits.h" 3 27002: template<> 27002: struct __is_memcmp_ordered_with 27002: { static constexpr bool __value = true; }; 27002: 27002: template 27002: struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> 27002: { static constexpr bool __value = false; }; 27002: 27002: template 27002: struct __is_memcmp_ordered_with 27002: { static constexpr bool __value = false; }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_move_iterator 27002: { 27002: enum { __value = 0 }; 27002: typedef __false_type __type; 27002: }; 27002: 27002: 27002: 27002: template 27002: 27002: inline _Iterator 27002: __miter_base(_Iterator __it) 27002: { return __it; } 27002: 27002: 27002: } 27002: } 27002: # 62 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 27002: # 1 "/usr/include/c++/12/ext/type_traits.h" 1 3 27002: # 32 "/usr/include/c++/12/ext/type_traits.h" 3 27002: 27002: # 33 "/usr/include/c++/12/ext/type_traits.h" 3 27002: 27002: 27002: 27002: 27002: extern "C++" { 27002: 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: struct __enable_if 27002: { }; 27002: 27002: template 27002: struct __enable_if 27002: { typedef _Tp __type; }; 27002: 27002: 27002: 27002: template 27002: struct __conditional_type 27002: { typedef _Iftrue __type; }; 27002: 27002: template 27002: struct __conditional_type 27002: { typedef _Iffalse __type; }; 27002: 27002: 27002: 27002: template 27002: struct __add_unsigned 27002: { 27002: private: 27002: typedef __enable_if::__value, _Tp> __if_type; 27002: 27002: public: 27002: typedef typename __if_type::__type __type; 27002: }; 27002: 27002: template<> 27002: struct __add_unsigned 27002: { typedef unsigned char __type; }; 27002: 27002: template<> 27002: struct __add_unsigned 27002: { typedef unsigned char __type; }; 27002: 27002: template<> 27002: struct __add_unsigned 27002: { typedef unsigned short __type; }; 27002: 27002: template<> 27002: struct __add_unsigned 27002: { typedef unsigned int __type; }; 27002: 27002: template<> 27002: struct __add_unsigned 27002: { typedef unsigned long __type; }; 27002: 27002: template<> 27002: struct __add_unsigned 27002: { typedef unsigned long long __type; }; 27002: 27002: 27002: template<> 27002: struct __add_unsigned; 27002: 27002: template<> 27002: struct __add_unsigned; 27002: 27002: 27002: 27002: template 27002: struct __remove_unsigned 27002: { 27002: private: 27002: typedef __enable_if::__value, _Tp> __if_type; 27002: 27002: public: 27002: typedef typename __if_type::__type __type; 27002: }; 27002: 27002: template<> 27002: struct __remove_unsigned 27002: { typedef signed char __type; }; 27002: 27002: template<> 27002: struct __remove_unsigned 27002: { typedef signed char __type; }; 27002: 27002: template<> 27002: struct __remove_unsigned 27002: { typedef short __type; }; 27002: 27002: template<> 27002: struct __remove_unsigned 27002: { typedef int __type; }; 27002: 27002: template<> 27002: struct __remove_unsigned 27002: { typedef long __type; }; 27002: 27002: template<> 27002: struct __remove_unsigned 27002: { typedef long long __type; }; 27002: 27002: 27002: template<> 27002: struct __remove_unsigned; 27002: 27002: template<> 27002: struct __remove_unsigned; 27002: 27002: 27002: 27002: template 27002: constexpr 27002: inline bool 27002: __is_null_pointer(_Type* __ptr) 27002: { return __ptr == 0; } 27002: 27002: template 27002: constexpr 27002: inline bool 27002: __is_null_pointer(_Type) 27002: { return false; } 27002: 27002: 27002: constexpr bool 27002: __is_null_pointer(std::nullptr_t) 27002: { return true; } 27002: 27002: 27002: 27002: 27002: template::__value> 27002: struct __promote 27002: { typedef double __type; }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __promote<_Tp, false> 27002: { }; 27002: 27002: template<> 27002: struct __promote 27002: { typedef long double __type; }; 27002: 27002: template<> 27002: struct __promote 27002: { typedef double __type; }; 27002: 27002: template<> 27002: struct __promote 27002: { typedef float __type; }; 27002: 27002: 27002: 27002: template 27002: using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); 27002: 27002: 27002: 27002: template 27002: using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; 27002: 27002: template 27002: using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; 27002: 27002: template 27002: using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; 27002: # 239 "/usr/include/c++/12/ext/type_traits.h" 3 27002: 27002: } 27002: } 27002: # 63 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 27002: # 1 "/usr/include/c++/12/ext/numeric_traits.h" 1 3 27002: # 32 "/usr/include/c++/12/ext/numeric_traits.h" 3 27002: 27002: # 33 "/usr/include/c++/12/ext/numeric_traits.h" 3 27002: 27002: 27002: 27002: 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 50 "/usr/include/c++/12/ext/numeric_traits.h" 3 27002: template 27002: struct __is_integer_nonstrict 27002: : public std::__is_integer<_Tp> 27002: { 27002: using std::__is_integer<_Tp>::__value; 27002: 27002: 27002: enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; 27002: }; 27002: 27002: template 27002: struct __numeric_traits_integer 27002: { 27002: 27002: static_assert(__is_integer_nonstrict<_Value>::__value, 27002: "invalid specialization"); 27002: 27002: 27002: 27002: 27002: static const bool __is_signed = (_Value)(-1) < 0; 27002: static const int __digits 27002: = __is_integer_nonstrict<_Value>::__width - __is_signed; 27002: 27002: 27002: static const _Value __max = __is_signed 27002: ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) 27002: : ~(_Value)0; 27002: static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; 27002: }; 27002: 27002: template 27002: const _Value __numeric_traits_integer<_Value>::__min; 27002: 27002: template 27002: const _Value __numeric_traits_integer<_Value>::__max; 27002: 27002: template 27002: const bool __numeric_traits_integer<_Value>::__is_signed; 27002: 27002: template 27002: const int __numeric_traits_integer<_Value>::__digits; 27002: # 137 "/usr/include/c++/12/ext/numeric_traits.h" 3 27002: template 27002: using __int_traits = __numeric_traits_integer<_Tp>; 27002: # 157 "/usr/include/c++/12/ext/numeric_traits.h" 3 27002: template 27002: struct __numeric_traits_floating 27002: { 27002: 27002: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 53) * 643L / 2136); 27002: 27002: 27002: static const bool __is_signed = true; 27002: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 15); 27002: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 308); 27002: }; 27002: 27002: template 27002: const int __numeric_traits_floating<_Value>::__max_digits10; 27002: 27002: template 27002: const bool __numeric_traits_floating<_Value>::__is_signed; 27002: 27002: template 27002: const int __numeric_traits_floating<_Value>::__digits10; 27002: 27002: template 27002: const int __numeric_traits_floating<_Value>::__max_exponent10; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __numeric_traits 27002: : public __numeric_traits_integer<_Value> 27002: { }; 27002: 27002: template<> 27002: struct __numeric_traits 27002: : public __numeric_traits_floating 27002: { }; 27002: 27002: template<> 27002: struct __numeric_traits 27002: : public __numeric_traits_floating 27002: { }; 27002: 27002: template<> 27002: struct __numeric_traits 27002: : public __numeric_traits_floating 27002: { }; 27002: # 238 "/usr/include/c++/12/ext/numeric_traits.h" 3 27002: 27002: } 27002: # 64 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_pair.h" 1 3 27002: # 62 "/usr/include/c++/12/bits/stl_pair.h" 3 27002: # 1 "/usr/include/c++/12/bits/utility.h" 1 3 27002: # 36 "/usr/include/c++/12/bits/utility.h" 3 27002: 27002: # 37 "/usr/include/c++/12/bits/utility.h" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: struct tuple_size; 27002: 27002: 27002: 27002: 27002: 27002: template::type, 27002: typename = typename enable_if::value>::type, 27002: size_t = tuple_size<_Tp>::value> 27002: using __enable_if_has_tuple_size = _Tp; 27002: 27002: template 27002: struct tuple_size> 27002: : public tuple_size<_Tp> { }; 27002: 27002: template 27002: struct tuple_size> 27002: : public tuple_size<_Tp> { }; 27002: 27002: template 27002: struct tuple_size> 27002: : public tuple_size<_Tp> { }; 27002: 27002: 27002: template 27002: inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; 27002: 27002: 27002: 27002: template 27002: struct tuple_element; 27002: 27002: 27002: template 27002: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 27002: 27002: template 27002: struct tuple_element<__i, const _Tp> 27002: { 27002: typedef typename add_const<__tuple_element_t<__i, _Tp>>::type type; 27002: }; 27002: 27002: template 27002: struct tuple_element<__i, volatile _Tp> 27002: { 27002: typedef typename add_volatile<__tuple_element_t<__i, _Tp>>::type type; 27002: }; 27002: 27002: template 27002: struct tuple_element<__i, const volatile _Tp> 27002: { 27002: typedef typename add_cv<__tuple_element_t<__i, _Tp>>::type type; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr size_t 27002: __find_uniq_type_in_pack() 27002: { 27002: constexpr size_t __sz = sizeof...(_Types); 27002: constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; 27002: size_t __n = __sz; 27002: for (size_t __i = 0; __i < __sz; ++__i) 27002: { 27002: if (__found[__i]) 27002: { 27002: if (__n < __sz) 27002: return __sz; 27002: __n = __i; 27002: } 27002: } 27002: return __n; 27002: } 27002: # 134 "/usr/include/c++/12/bits/utility.h" 3 27002: template 27002: using tuple_element_t = typename tuple_element<__i, _Tp>::type; 27002: 27002: 27002: 27002: 27002: template struct _Index_tuple { }; 27002: 27002: 27002: template 27002: struct _Build_index_tuple 27002: { 27002: # 154 "/usr/include/c++/12/bits/utility.h" 3 27002: using __type = _Index_tuple<__integer_pack(_Num)...>; 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct integer_sequence 27002: { 27002: typedef _Tp value_type; 27002: static constexpr size_t size() noexcept { return sizeof...(_Idx); } 27002: }; 27002: 27002: 27002: template 27002: using make_integer_sequence 27002: 27002: 27002: 27002: = integer_sequence<_Tp, __integer_pack(_Num)...>; 27002: 27002: 27002: 27002: template 27002: using index_sequence = integer_sequence; 27002: 27002: 27002: template 27002: using make_index_sequence = make_integer_sequence; 27002: 27002: 27002: template 27002: using index_sequence_for = make_index_sequence; 27002: 27002: 27002: 27002: struct in_place_t { 27002: explicit in_place_t() = default; 27002: }; 27002: 27002: inline constexpr in_place_t in_place{}; 27002: 27002: template struct in_place_type_t 27002: { 27002: explicit in_place_type_t() = default; 27002: }; 27002: 27002: template 27002: inline constexpr in_place_type_t<_Tp> in_place_type{}; 27002: 27002: template struct in_place_index_t 27002: { 27002: explicit in_place_index_t() = default; 27002: }; 27002: 27002: template 27002: inline constexpr in_place_index_t<_Idx> in_place_index{}; 27002: 27002: template 27002: inline constexpr bool __is_in_place_type_v = false; 27002: 27002: template 27002: inline constexpr bool __is_in_place_type_v> = true; 27002: 27002: template 27002: using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; 27002: 27002: 27002: 27002: 27002: template 27002: struct _Nth_type 27002: { }; 27002: 27002: template 27002: struct _Nth_type<0, _Tp0, _Rest...> 27002: { using type = _Tp0; }; 27002: 27002: template 27002: struct _Nth_type<1, _Tp0, _Tp1, _Rest...> 27002: { using type = _Tp1; }; 27002: 27002: template 27002: struct _Nth_type<2, _Tp0, _Tp1, _Tp2, _Rest...> 27002: { using type = _Tp2; }; 27002: 27002: template 27002: 27002: 27002: 27002: struct _Nth_type<_Np, _Tp0, _Tp1, _Tp2, _Rest...> 27002: : _Nth_type<_Np - 3, _Rest...> 27002: { }; 27002: 27002: 27002: template 27002: struct _Nth_type<0, _Tp0, _Tp1, _Rest...> 27002: { using type = _Tp0; }; 27002: 27002: template 27002: struct _Nth_type<0, _Tp0, _Tp1, _Tp2, _Rest...> 27002: { using type = _Tp0; }; 27002: 27002: template 27002: struct _Nth_type<1, _Tp0, _Tp1, _Tp2, _Rest...> 27002: { using type = _Tp1; }; 27002: 27002: 27002: 27002: } 27002: # 63 "/usr/include/c++/12/bits/stl_pair.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 80 "/usr/include/c++/12/bits/stl_pair.h" 3 27002: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 27002: 27002: 27002: inline constexpr piecewise_construct_t piecewise_construct = 27002: piecewise_construct_t(); 27002: 27002: 27002: 27002: 27002: template 27002: class tuple; 27002: 27002: template 27002: struct _Index_tuple; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _PCC 27002: { 27002: template 27002: static constexpr bool _ConstructiblePair() 27002: { 27002: return __and_, 27002: is_constructible<_T2, const _U2&>>::value; 27002: } 27002: 27002: template 27002: static constexpr bool _ImplicitlyConvertiblePair() 27002: { 27002: return __and_, 27002: is_convertible>::value; 27002: } 27002: 27002: template 27002: static constexpr bool _MoveConstructiblePair() 27002: { 27002: return __and_, 27002: is_constructible<_T2, _U2&&>>::value; 27002: } 27002: 27002: template 27002: static constexpr bool _ImplicitlyMoveConvertiblePair() 27002: { 27002: return __and_, 27002: is_convertible<_U2&&, _T2>>::value; 27002: } 27002: }; 27002: 27002: template 27002: struct _PCC 27002: { 27002: template 27002: static constexpr bool _ConstructiblePair() 27002: { 27002: return false; 27002: } 27002: 27002: template 27002: static constexpr bool _ImplicitlyConvertiblePair() 27002: { 27002: return false; 27002: } 27002: 27002: template 27002: static constexpr bool _MoveConstructiblePair() 27002: { 27002: return false; 27002: } 27002: 27002: template 27002: static constexpr bool _ImplicitlyMoveConvertiblePair() 27002: { 27002: return false; 27002: } 27002: }; 27002: 27002: 27002: 27002: template class __pair_base 27002: { 27002: 27002: template friend struct pair; 27002: __pair_base() = default; 27002: ~__pair_base() = default; 27002: __pair_base(const __pair_base&) = default; 27002: __pair_base& operator=(const __pair_base&) = delete; 27002: 27002: }; 27002: # 184 "/usr/include/c++/12/bits/stl_pair.h" 3 27002: template 27002: struct pair 27002: : public __pair_base<_T1, _T2> 27002: { 27002: typedef _T1 first_type; 27002: typedef _T2 second_type; 27002: 27002: _T1 first; 27002: _T2 second; 27002: 27002: 27002: constexpr pair(const pair&) = default; 27002: constexpr pair(pair&&) = default; 27002: 27002: template 27002: 27002: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 27002: 27002: 27002: void 27002: swap(pair& __p) 27002: noexcept(__and_<__is_nothrow_swappable<_T1>, 27002: __is_nothrow_swappable<_T2>>::value) 27002: { 27002: using std::swap; 27002: swap(first, __p.first); 27002: swap(second, __p.second); 27002: } 27002: 27002: private: 27002: template 27002: 27002: pair(tuple<_Args1...>&, tuple<_Args2...>&, 27002: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 27002: public: 27002: # 378 "/usr/include/c++/12/bits/stl_pair.h" 3 27002: template , 27002: __is_implicitly_default_constructible<_U2>> 27002: ::value, bool>::type = true> 27002: constexpr pair() 27002: : first(), second() { } 27002: 27002: template , 27002: is_default_constructible<_U2>, 27002: __not_< 27002: __and_<__is_implicitly_default_constructible<_U1>, 27002: __is_implicitly_default_constructible<_U2>>>> 27002: ::value, bool>::type = false> 27002: explicit constexpr pair() 27002: : first(), second() { } 27002: 27002: 27002: 27002: using _PCCP = _PCC; 27002: 27002: 27002: 27002: template() 27002: && _PCCP::template 27002: _ImplicitlyConvertiblePair<_U1, _U2>(), 27002: bool>::type=true> 27002: constexpr pair(const _T1& __a, const _T2& __b) 27002: : first(__a), second(__b) { } 27002: 27002: 27002: template() 27002: && !_PCCP::template 27002: _ImplicitlyConvertiblePair<_U1, _U2>(), 27002: bool>::type=false> 27002: explicit constexpr pair(const _T1& __a, const _T2& __b) 27002: : first(__a), second(__b) { } 27002: 27002: 27002: 27002: template 27002: using _PCCFP = _PCC::value 27002: || !is_same<_T2, _U2>::value, 27002: _T1, _T2>; 27002: 27002: 27002: template::template 27002: _ConstructiblePair<_U1, _U2>() 27002: && _PCCFP<_U1, _U2>::template 27002: _ImplicitlyConvertiblePair<_U1, _U2>(), 27002: bool>::type=true> 27002: constexpr pair(const pair<_U1, _U2>& __p) 27002: : first(__p.first), second(__p.second) { } 27002: 27002: template::template 27002: _ConstructiblePair<_U1, _U2>() 27002: && !_PCCFP<_U1, _U2>::template 27002: _ImplicitlyConvertiblePair<_U1, _U2>(), 27002: bool>::type=false> 27002: explicit constexpr pair(const pair<_U1, _U2>& __p) 27002: : first(__p.first), second(__p.second) { } 27002: # 460 "/usr/include/c++/12/bits/stl_pair.h" 3 27002: private: 27002: 27002: 27002: 27002: struct __zero_as_null_pointer_constant 27002: { 27002: __zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) 27002: { } 27002: template::value>> 27002: __zero_as_null_pointer_constant(_Tp) = delete; 27002: }; 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: template>, 27002: is_pointer<_T2>, 27002: is_constructible<_T1, _U1>, 27002: __not_>, 27002: is_convertible<_U1, _T1>>::value, 27002: bool> = true> 27002: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 27002: constexpr 27002: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 27002: : first(std::forward<_U1>(__x)), second(nullptr) { } 27002: 27002: template>, 27002: is_pointer<_T2>, 27002: is_constructible<_T1, _U1>, 27002: __not_>, 27002: __not_>>::value, 27002: bool> = false> 27002: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 27002: explicit constexpr 27002: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 27002: : first(std::forward<_U1>(__x)), second(nullptr) { } 27002: 27002: template, 27002: __not_>, 27002: is_constructible<_T2, _U2>, 27002: __not_>, 27002: is_convertible<_U2, _T2>>::value, 27002: bool> = true> 27002: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 27002: constexpr 27002: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 27002: : first(nullptr), second(std::forward<_U2>(__y)) { } 27002: 27002: template, 27002: __not_>, 27002: is_constructible<_T2, _U2>, 27002: __not_>, 27002: __not_>>::value, 27002: bool> = false> 27002: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 27002: explicit constexpr 27002: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 27002: : first(nullptr), second(std::forward<_U2>(__y)) { } 27002: 27002: 27002: 27002: template() 27002: && _PCCP::template 27002: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 27002: bool>::type=true> 27002: constexpr pair(_U1&& __x, _U2&& __y) 27002: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { } 27002: 27002: template() 27002: && !_PCCP::template 27002: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 27002: bool>::type=false> 27002: explicit constexpr pair(_U1&& __x, _U2&& __y) 27002: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { } 27002: 27002: 27002: template::template 27002: _MoveConstructiblePair<_U1, _U2>() 27002: && _PCCFP<_U1, _U2>::template 27002: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 27002: bool>::type=true> 27002: constexpr pair(pair<_U1, _U2>&& __p) 27002: : first(std::forward<_U1>(__p.first)), 27002: second(std::forward<_U2>(__p.second)) { } 27002: 27002: template::template 27002: _MoveConstructiblePair<_U1, _U2>() 27002: && !_PCCFP<_U1, _U2>::template 27002: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 27002: bool>::type=false> 27002: explicit constexpr pair(pair<_U1, _U2>&& __p) 27002: : first(std::forward<_U1>(__p.first)), 27002: second(std::forward<_U2>(__p.second)) { } 27002: 27002: pair& 27002: operator=(__conditional_t<__and_, 27002: is_copy_assignable<_T2>>::value, 27002: const pair&, const __nonesuch&> __p) 27002: { 27002: first = __p.first; 27002: second = __p.second; 27002: return *this; 27002: } 27002: 27002: pair& 27002: operator=(__conditional_t<__and_, 27002: is_move_assignable<_T2>>::value, 27002: pair&&, __nonesuch&&> __p) 27002: noexcept(__and_, 27002: is_nothrow_move_assignable<_T2>>::value) 27002: { 27002: first = std::forward(__p.first); 27002: second = std::forward(__p.second); 27002: return *this; 27002: } 27002: 27002: template 27002: typename enable_if<__and_, 27002: is_assignable<_T2&, const _U2&>>::value, 27002: pair&>::type 27002: operator=(const pair<_U1, _U2>& __p) 27002: { 27002: first = __p.first; 27002: second = __p.second; 27002: return *this; 27002: } 27002: 27002: template 27002: typename enable_if<__and_, 27002: is_assignable<_T2&, _U2&&>>::value, 27002: pair&>::type 27002: operator=(pair<_U1, _U2>&& __p) 27002: { 27002: first = std::forward<_U1>(__p.first); 27002: second = std::forward<_U2>(__p.second); 27002: return *this; 27002: } 27002: # 629 "/usr/include/c++/12/bits/stl_pair.h" 3 27002: }; 27002: 27002: 27002: 27002: 27002: template pair(_T1, _T2) -> pair<_T1, _T2>; 27002: 27002: 27002: 27002: template 27002: inline constexpr bool 27002: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 27002: { return __x.first == __y.first && __x.second == __y.second; } 27002: # 661 "/usr/include/c++/12/bits/stl_pair.h" 3 27002: template 27002: inline constexpr bool 27002: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 27002: { return __x.first < __y.first 27002: || (!(__y.first < __x.first) && __x.second < __y.second); } 27002: 27002: 27002: template 27002: inline constexpr bool 27002: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: inline constexpr bool 27002: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 27002: { return __y < __x; } 27002: 27002: 27002: template 27002: inline constexpr bool 27002: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 27002: { return !(__y < __x); } 27002: 27002: 27002: template 27002: inline constexpr bool 27002: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 27002: { return !(__x < __y); } 27002: # 698 "/usr/include/c++/12/bits/stl_pair.h" 3 27002: template 27002: inline 27002: 27002: 27002: typename enable_if<__and_<__is_swappable<_T1>, 27002: __is_swappable<_T2>>::value>::type 27002: 27002: 27002: 27002: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: 27002: template 27002: typename enable_if, 27002: __is_swappable<_T2>>::value>::type 27002: swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; 27002: # 738 "/usr/include/c++/12/bits/stl_pair.h" 3 27002: template 27002: constexpr pair::__type, 27002: typename __decay_and_strip<_T2>::__type> 27002: make_pair(_T1&& __x, _T2&& __y) 27002: { 27002: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 27002: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 27002: typedef pair<__ds_type1, __ds_type2> __pair_type; 27002: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 27002: } 27002: # 760 "/usr/include/c++/12/bits/stl_pair.h" 3 27002: template 27002: struct __is_tuple_like_impl> : true_type 27002: { }; 27002: 27002: 27002: template 27002: struct tuple_size> 27002: : public integral_constant { }; 27002: 27002: 27002: template 27002: struct tuple_element<0, pair<_Tp1, _Tp2>> 27002: { typedef _Tp1 type; }; 27002: 27002: 27002: template 27002: struct tuple_element<1, pair<_Tp1, _Tp2>> 27002: { typedef _Tp2 type; }; 27002: 27002: 27002: template 27002: inline constexpr size_t tuple_size_v> = 2; 27002: 27002: template 27002: inline constexpr size_t tuple_size_v> = 2; 27002: 27002: template 27002: inline constexpr bool __is_pair = false; 27002: 27002: template 27002: inline constexpr bool __is_pair> = true; 27002: 27002: template 27002: inline constexpr bool __is_pair> = true; 27002: 27002: 27002: 27002: template 27002: struct __pair_get; 27002: 27002: template<> 27002: struct __pair_get<0> 27002: { 27002: template 27002: static constexpr _Tp1& 27002: __get(pair<_Tp1, _Tp2>& __pair) noexcept 27002: { return __pair.first; } 27002: 27002: template 27002: static constexpr _Tp1&& 27002: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 27002: { return std::forward<_Tp1>(__pair.first); } 27002: 27002: template 27002: static constexpr const _Tp1& 27002: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 27002: { return __pair.first; } 27002: 27002: template 27002: static constexpr const _Tp1&& 27002: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 27002: { return std::forward(__pair.first); } 27002: }; 27002: 27002: template<> 27002: struct __pair_get<1> 27002: { 27002: template 27002: static constexpr _Tp2& 27002: __get(pair<_Tp1, _Tp2>& __pair) noexcept 27002: { return __pair.second; } 27002: 27002: template 27002: static constexpr _Tp2&& 27002: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 27002: { return std::forward<_Tp2>(__pair.second); } 27002: 27002: template 27002: static constexpr const _Tp2& 27002: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 27002: { return __pair.second; } 27002: 27002: template 27002: static constexpr const _Tp2&& 27002: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 27002: { return std::forward(__pair.second); } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 27002: get(pair<_Tp1, _Tp2>& __in) noexcept 27002: { return __pair_get<_Int>::__get(__in); } 27002: 27002: template 27002: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 27002: get(pair<_Tp1, _Tp2>&& __in) noexcept 27002: { return __pair_get<_Int>::__move_get(std::move(__in)); } 27002: 27002: template 27002: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 27002: get(const pair<_Tp1, _Tp2>& __in) noexcept 27002: { return __pair_get<_Int>::__const_get(__in); } 27002: 27002: template 27002: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 27002: get(const pair<_Tp1, _Tp2>&& __in) noexcept 27002: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr _Tp& 27002: get(pair<_Tp, _Up>& __p) noexcept 27002: { return __p.first; } 27002: 27002: template 27002: constexpr const _Tp& 27002: get(const pair<_Tp, _Up>& __p) noexcept 27002: { return __p.first; } 27002: 27002: template 27002: constexpr _Tp&& 27002: get(pair<_Tp, _Up>&& __p) noexcept 27002: { return std::move(__p.first); } 27002: 27002: template 27002: constexpr const _Tp&& 27002: get(const pair<_Tp, _Up>&& __p) noexcept 27002: { return std::move(__p.first); } 27002: 27002: template 27002: constexpr _Tp& 27002: get(pair<_Up, _Tp>& __p) noexcept 27002: { return __p.second; } 27002: 27002: template 27002: constexpr const _Tp& 27002: get(const pair<_Up, _Tp>& __p) noexcept 27002: { return __p.second; } 27002: 27002: template 27002: constexpr _Tp&& 27002: get(pair<_Up, _Tp>&& __p) noexcept 27002: { return std::move(__p.second); } 27002: 27002: template 27002: constexpr const _Tp&& 27002: get(const pair<_Up, _Tp>&& __p) noexcept 27002: { return std::move(__p.second); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 65 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 1 3 27002: # 62 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 27002: 27002: # 63 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 27002: # 74 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 93 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 27002: struct input_iterator_tag { }; 27002: 27002: 27002: struct output_iterator_tag { }; 27002: 27002: 27002: struct forward_iterator_tag : public input_iterator_tag { }; 27002: 27002: 27002: 27002: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 27002: 27002: 27002: 27002: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 27002: # 125 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 27002: template 27002: struct [[__deprecated__]] iterator 27002: { 27002: 27002: typedef _Category iterator_category; 27002: 27002: typedef _Tp value_type; 27002: 27002: typedef _Distance difference_type; 27002: 27002: typedef _Pointer pointer; 27002: 27002: typedef _Reference reference; 27002: }; 27002: # 149 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 27002: template 27002: struct iterator_traits; 27002: 27002: 27002: 27002: 27002: template> 27002: struct __iterator_traits { }; 27002: 27002: 27002: 27002: template 27002: struct __iterator_traits<_Iterator, 27002: __void_t> 27002: { 27002: typedef typename _Iterator::iterator_category iterator_category; 27002: typedef typename _Iterator::value_type value_type; 27002: typedef typename _Iterator::difference_type difference_type; 27002: typedef typename _Iterator::pointer pointer; 27002: typedef typename _Iterator::reference reference; 27002: }; 27002: 27002: 27002: template 27002: struct iterator_traits 27002: : public __iterator_traits<_Iterator> { }; 27002: # 209 "/usr/include/c++/12/bits/stl_iterator_base_types.h" 3 27002: template 27002: struct iterator_traits<_Tp*> 27002: { 27002: typedef random_access_iterator_tag iterator_category; 27002: typedef _Tp value_type; 27002: typedef ptrdiff_t difference_type; 27002: typedef _Tp* pointer; 27002: typedef _Tp& reference; 27002: }; 27002: 27002: 27002: template 27002: struct iterator_traits 27002: { 27002: typedef random_access_iterator_tag iterator_category; 27002: typedef _Tp value_type; 27002: typedef ptrdiff_t difference_type; 27002: typedef const _Tp* pointer; 27002: typedef const _Tp& reference; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline constexpr 27002: typename iterator_traits<_Iter>::iterator_category 27002: __iterator_category(const _Iter&) 27002: { return typename iterator_traits<_Iter>::iterator_category(); } 27002: 27002: 27002: 27002: 27002: template 27002: using __iterator_category_t 27002: = typename iterator_traits<_Iter>::iterator_category; 27002: 27002: template 27002: using _RequireInputIter = 27002: __enable_if_t, 27002: input_iterator_tag>::value>; 27002: 27002: template> 27002: struct __is_random_access_iter 27002: : is_base_of 27002: { 27002: typedef is_base_of _Base; 27002: enum { __value = _Base::value }; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 66 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 1 3 27002: # 62 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 3 27002: 27002: # 63 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 3 27002: 27002: # 1 "/usr/include/c++/12/bits/concept_check.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/concept_check.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/concept_check.h" 3 27002: # 65 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 2 3 27002: # 1 "/usr/include/c++/12/debug/assertions.h" 1 3 27002: # 66 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 2 3 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: template struct _List_iterator; 27002: template struct _List_const_iterator; 27002: 27002: 27002: template 27002: inline constexpr 27002: typename iterator_traits<_InputIterator>::difference_type 27002: __distance(_InputIterator __first, _InputIterator __last, 27002: input_iterator_tag) 27002: { 27002: 27002: 27002: 27002: typename iterator_traits<_InputIterator>::difference_type __n = 0; 27002: while (__first != __last) 27002: { 27002: ++__first; 27002: ++__n; 27002: } 27002: return __n; 27002: } 27002: 27002: template 27002: inline constexpr 27002: typename iterator_traits<_RandomAccessIterator>::difference_type 27002: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: random_access_iterator_tag) 27002: { 27002: 27002: 27002: 27002: return __last - __first; 27002: } 27002: 27002: 27002: 27002: template 27002: ptrdiff_t 27002: __distance(std::_List_iterator<_Tp>, 27002: std::_List_iterator<_Tp>, 27002: input_iterator_tag); 27002: 27002: template 27002: ptrdiff_t 27002: __distance(std::_List_const_iterator<_Tp>, 27002: std::_List_const_iterator<_Tp>, 27002: input_iterator_tag); 27002: 27002: 27002: 27002: 27002: template 27002: void 27002: __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; 27002: # 143 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr 27002: typename iterator_traits<_InputIterator>::difference_type 27002: distance(_InputIterator __first, _InputIterator __last) 27002: { 27002: 27002: return std::__distance(__first, __last, 27002: std::__iterator_category(__first)); 27002: } 27002: 27002: template 27002: inline constexpr void 27002: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 27002: { 27002: 27002: 27002: do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); 27002: while (__n--) 27002: ++__i; 27002: } 27002: 27002: template 27002: inline constexpr void 27002: __advance(_BidirectionalIterator& __i, _Distance __n, 27002: bidirectional_iterator_tag) 27002: { 27002: 27002: 27002: 27002: if (__n > 0) 27002: while (__n--) 27002: ++__i; 27002: else 27002: while (__n++) 27002: --__i; 27002: } 27002: 27002: template 27002: inline constexpr void 27002: __advance(_RandomAccessIterator& __i, _Distance __n, 27002: random_access_iterator_tag) 27002: { 27002: 27002: 27002: 27002: if (__builtin_constant_p(__n) && __n == 1) 27002: ++__i; 27002: else if (__builtin_constant_p(__n) && __n == -1) 27002: --__i; 27002: else 27002: __i += __n; 27002: } 27002: 27002: 27002: 27002: template 27002: void 27002: __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; 27002: # 216 "/usr/include/c++/12/bits/stl_iterator_base_funcs.h" 3 27002: template 27002: inline constexpr void 27002: advance(_InputIterator& __i, _Distance __n) 27002: { 27002: 27002: typename iterator_traits<_InputIterator>::difference_type __d = __n; 27002: std::__advance(__i, __d, std::__iterator_category(__i)); 27002: } 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr _InputIterator 27002: next(_InputIterator __x, typename 27002: iterator_traits<_InputIterator>::difference_type __n = 1) 27002: { 27002: 27002: 27002: std::advance(__x, __n); 27002: return __x; 27002: } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr _BidirectionalIterator 27002: prev(_BidirectionalIterator __x, typename 27002: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 27002: { 27002: 27002: 27002: 27002: std::advance(__x, -__n); 27002: return __x; 27002: } 27002: 27002: 27002: 27002: 27002: } 27002: # 67 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_iterator.h" 1 3 27002: # 67 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: # 1 "/usr/include/c++/12/bits/ptr_traits.h" 1 3 27002: # 46 "/usr/include/c++/12/bits/ptr_traits.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: class __undefined; 27002: 27002: 27002: 27002: template 27002: struct __get_first_arg 27002: { using type = __undefined; }; 27002: 27002: template class _SomeTemplate, typename _Tp, 27002: typename... _Types> 27002: struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> 27002: { using type = _Tp; }; 27002: 27002: 27002: 27002: template 27002: struct __replace_first_arg 27002: { }; 27002: 27002: template class _SomeTemplate, typename _Up, 27002: typename _Tp, typename... _Types> 27002: struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> 27002: { using type = _SomeTemplate<_Up, _Types...>; }; 27002: # 81 "/usr/include/c++/12/bits/ptr_traits.h" 3 27002: template 27002: struct __ptr_traits_elem : __get_first_arg<_Ptr> 27002: { }; 27002: 27002: 27002: template 27002: struct __ptr_traits_elem<_Ptr, __void_t> 27002: { using type = typename _Ptr::element_type; }; 27002: 27002: template 27002: using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; 27002: 27002: 27002: 27002: template::value> 27002: struct __ptr_traits_ptr_to 27002: { 27002: using pointer = _Ptr; 27002: using element_type = _Elt; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: static pointer 27002: pointer_to(element_type& __e) 27002: 27002: 27002: 27002: 27002: 27002: { return pointer::pointer_to(__e); } 27002: }; 27002: 27002: 27002: template 27002: struct __ptr_traits_ptr_to<_Ptr, _Elt, true> 27002: { }; 27002: 27002: 27002: template 27002: struct __ptr_traits_ptr_to<_Tp*, _Tp, false> 27002: { 27002: using pointer = _Tp*; 27002: using element_type = _Tp; 27002: 27002: 27002: 27002: 27002: 27002: 27002: static pointer 27002: pointer_to(element_type& __r) noexcept 27002: { return std::addressof(__r); } 27002: }; 27002: 27002: template 27002: struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> 27002: { 27002: private: 27002: template 27002: struct __difference { using type = ptrdiff_t; }; 27002: 27002: template 27002: 27002: 27002: 27002: 27002: struct __difference<_Tp, __void_t> 27002: 27002: { using type = typename _Tp::difference_type; }; 27002: 27002: template 27002: struct __rebind : __replace_first_arg<_Tp, _Up> { }; 27002: 27002: template 27002: 27002: 27002: 27002: 27002: struct __rebind<_Tp, _Up, __void_t>> 27002: 27002: { using type = typename _Tp::template rebind<_Up>; }; 27002: 27002: public: 27002: 27002: using pointer = _Ptr; 27002: 27002: 27002: using element_type = _Elt; 27002: 27002: 27002: using difference_type = typename __difference<_Ptr>::type; 27002: 27002: 27002: template 27002: using rebind = typename __rebind<_Ptr, _Up>::type; 27002: }; 27002: 27002: 27002: 27002: template 27002: struct __ptr_traits_impl<_Ptr, __undefined> 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> 27002: { }; 27002: # 209 "/usr/include/c++/12/bits/ptr_traits.h" 3 27002: template 27002: struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> 27002: { 27002: 27002: typedef _Tp* pointer; 27002: 27002: typedef _Tp element_type; 27002: 27002: typedef ptrdiff_t difference_type; 27002: 27002: template using rebind = _Up*; 27002: }; 27002: 27002: 27002: template 27002: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 27002: 27002: template 27002: constexpr _Tp* 27002: __to_address(_Tp* __ptr) noexcept 27002: { 27002: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 27002: return __ptr; 27002: } 27002: 27002: 27002: template 27002: constexpr typename std::pointer_traits<_Ptr>::element_type* 27002: __to_address(const _Ptr& __ptr) 27002: { return std::__to_address(__ptr.operator->()); } 27002: # 282 "/usr/include/c++/12/bits/ptr_traits.h" 3 27002: 27002: } 27002: # 68 "/usr/include/c++/12/bits/stl_iterator.h" 2 3 27002: # 88 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 109 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: # 131 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: class reverse_iterator 27002: : public iterator::iterator_category, 27002: typename iterator_traits<_Iterator>::value_type, 27002: typename iterator_traits<_Iterator>::difference_type, 27002: typename iterator_traits<_Iterator>::pointer, 27002: typename iterator_traits<_Iterator>::reference> 27002: { 27002: template 27002: friend class reverse_iterator; 27002: # 150 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: protected: 27002: _Iterator current; 27002: 27002: typedef iterator_traits<_Iterator> __traits_type; 27002: 27002: public: 27002: typedef _Iterator iterator_type; 27002: typedef typename __traits_type::pointer pointer; 27002: 27002: typedef typename __traits_type::difference_type difference_type; 27002: typedef typename __traits_type::reference reference; 27002: # 181 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: constexpr 27002: reverse_iterator() 27002: noexcept(noexcept(_Iterator())) 27002: : current() 27002: { } 27002: 27002: 27002: 27002: 27002: explicit constexpr 27002: reverse_iterator(iterator_type __x) 27002: noexcept(noexcept(_Iterator(__x))) 27002: : current(__x) 27002: { } 27002: 27002: 27002: 27002: 27002: constexpr 27002: reverse_iterator(const reverse_iterator& __x) 27002: noexcept(noexcept(_Iterator(__x.current))) 27002: : current(__x.current) 27002: { } 27002: 27002: 27002: reverse_iterator& operator=(const reverse_iterator&) = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: 27002: 27002: constexpr 27002: reverse_iterator(const reverse_iterator<_Iter>& __x) 27002: noexcept(noexcept(_Iterator(__x.current))) 27002: : current(__x.current) 27002: { } 27002: 27002: 27002: template 27002: 27002: 27002: 27002: 27002: constexpr 27002: reverse_iterator& 27002: operator=(const reverse_iterator<_Iter>& __x) 27002: noexcept(noexcept(current = __x.current)) 27002: { 27002: current = __x.current; 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: constexpr iterator_type 27002: base() const 27002: noexcept(noexcept(_Iterator(current))) 27002: { return current; } 27002: # 258 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: [[__nodiscard__]] 27002: constexpr reference 27002: operator*() const 27002: { 27002: _Iterator __tmp = current; 27002: return *--__tmp; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: constexpr pointer 27002: operator->() const 27002: 27002: 27002: 27002: 27002: { 27002: 27002: 27002: _Iterator __tmp = current; 27002: --__tmp; 27002: return _S_to_pointer(__tmp); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: constexpr reverse_iterator& 27002: operator++() 27002: { 27002: --current; 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: constexpr reverse_iterator 27002: operator++(int) 27002: { 27002: reverse_iterator __tmp = *this; 27002: --current; 27002: return __tmp; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: constexpr reverse_iterator& 27002: operator--() 27002: { 27002: ++current; 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: constexpr reverse_iterator 27002: operator--(int) 27002: { 27002: reverse_iterator __tmp = *this; 27002: ++current; 27002: return __tmp; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: constexpr reverse_iterator 27002: operator+(difference_type __n) const 27002: { return reverse_iterator(current - __n); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: constexpr reverse_iterator& 27002: operator+=(difference_type __n) 27002: { 27002: current -= __n; 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: constexpr reverse_iterator 27002: operator-(difference_type __n) const 27002: { return reverse_iterator(current + __n); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: constexpr reverse_iterator& 27002: operator-=(difference_type __n) 27002: { 27002: current += __n; 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: constexpr reference 27002: operator[](difference_type __n) const 27002: { return *(*this + __n); } 27002: # 418 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: private: 27002: template 27002: static constexpr _Tp* 27002: _S_to_pointer(_Tp* __p) 27002: { return __p; } 27002: 27002: template 27002: static constexpr pointer 27002: _S_to_pointer(_Tp __t) 27002: { return __t.operator->(); } 27002: }; 27002: # 441 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator==(const reverse_iterator<_Iterator>& __x, 27002: const reverse_iterator<_Iterator>& __y) 27002: { return __x.base() == __y.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator<(const reverse_iterator<_Iterator>& __x, 27002: const reverse_iterator<_Iterator>& __y) 27002: { return __y.base() < __x.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator!=(const reverse_iterator<_Iterator>& __x, 27002: const reverse_iterator<_Iterator>& __y) 27002: { return !(__x == __y); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator>(const reverse_iterator<_Iterator>& __x, 27002: const reverse_iterator<_Iterator>& __y) 27002: { return __y < __x; } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator<=(const reverse_iterator<_Iterator>& __x, 27002: const reverse_iterator<_Iterator>& __y) 27002: { return !(__y < __x); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator>=(const reverse_iterator<_Iterator>& __x, 27002: const reverse_iterator<_Iterator>& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator==(const reverse_iterator<_IteratorL>& __x, 27002: const reverse_iterator<_IteratorR>& __y) 27002: { return __x.base() == __y.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator<(const reverse_iterator<_IteratorL>& __x, 27002: const reverse_iterator<_IteratorR>& __y) 27002: { return __x.base() > __y.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator!=(const reverse_iterator<_IteratorL>& __x, 27002: const reverse_iterator<_IteratorR>& __y) 27002: { return __x.base() != __y.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator>(const reverse_iterator<_IteratorL>& __x, 27002: const reverse_iterator<_IteratorR>& __y) 27002: { return __x.base() < __y.base(); } 27002: 27002: template 27002: inline constexpr bool 27002: operator<=(const reverse_iterator<_IteratorL>& __x, 27002: const reverse_iterator<_IteratorR>& __y) 27002: { return __x.base() >= __y.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator>=(const reverse_iterator<_IteratorL>& __x, 27002: const reverse_iterator<_IteratorR>& __y) 27002: { return __x.base() <= __y.base(); } 27002: # 618 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: operator-(const reverse_iterator<_IteratorL>& __x, 27002: const reverse_iterator<_IteratorR>& __y) 27002: -> decltype(__y.base() - __x.base()) 27002: { return __y.base() - __x.base(); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr reverse_iterator<_Iterator> 27002: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 27002: const reverse_iterator<_Iterator>& __x) 27002: { return reverse_iterator<_Iterator>(__x.base() - __n); } 27002: 27002: 27002: 27002: template 27002: inline constexpr reverse_iterator<_Iterator> 27002: __make_reverse_iterator(_Iterator __i) 27002: { return reverse_iterator<_Iterator>(__i); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr reverse_iterator<_Iterator> 27002: make_reverse_iterator(_Iterator __i) 27002: { return reverse_iterator<_Iterator>(__i); } 27002: # 662 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: 27002: auto 27002: __niter_base(reverse_iterator<_Iterator> __it) 27002: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 27002: { return __make_reverse_iterator(__niter_base(__it.base())); } 27002: 27002: template 27002: struct __is_move_iterator > 27002: : __is_move_iterator<_Iterator> 27002: { }; 27002: 27002: template 27002: 27002: auto 27002: __miter_base(reverse_iterator<_Iterator> __it) 27002: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 27002: { return __make_reverse_iterator(__miter_base(__it.base())); } 27002: # 693 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: class back_insert_iterator 27002: : public iterator 27002: { 27002: protected: 27002: _Container* container; 27002: 27002: public: 27002: 27002: typedef _Container container_type; 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: back_insert_iterator(_Container& __x) 27002: : container(std::__addressof(__x)) { } 27002: # 731 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: 27002: back_insert_iterator& 27002: operator=(const typename _Container::value_type& __value) 27002: { 27002: container->push_back(__value); 27002: return *this; 27002: } 27002: 27002: 27002: back_insert_iterator& 27002: operator=(typename _Container::value_type&& __value) 27002: { 27002: container->push_back(std::move(__value)); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: back_insert_iterator& 27002: operator*() 27002: { return *this; } 27002: 27002: 27002: 27002: back_insert_iterator& 27002: operator++() 27002: { return *this; } 27002: 27002: 27002: 27002: back_insert_iterator 27002: operator++(int) 27002: { return *this; } 27002: }; 27002: # 778 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline back_insert_iterator<_Container> 27002: back_inserter(_Container& __x) 27002: { return back_insert_iterator<_Container>(__x); } 27002: # 794 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: class front_insert_iterator 27002: : public iterator 27002: { 27002: protected: 27002: _Container* container; 27002: 27002: public: 27002: 27002: typedef _Container container_type; 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: front_insert_iterator(_Container& __x) 27002: : container(std::__addressof(__x)) { } 27002: # 832 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: 27002: front_insert_iterator& 27002: operator=(const typename _Container::value_type& __value) 27002: { 27002: container->push_front(__value); 27002: return *this; 27002: } 27002: 27002: 27002: front_insert_iterator& 27002: operator=(typename _Container::value_type&& __value) 27002: { 27002: container->push_front(std::move(__value)); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: front_insert_iterator& 27002: operator*() 27002: { return *this; } 27002: 27002: 27002: 27002: front_insert_iterator& 27002: operator++() 27002: { return *this; } 27002: 27002: 27002: 27002: front_insert_iterator 27002: operator++(int) 27002: { return *this; } 27002: }; 27002: # 879 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline front_insert_iterator<_Container> 27002: front_inserter(_Container& __x) 27002: { return front_insert_iterator<_Container>(__x); } 27002: # 899 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: class insert_iterator 27002: : public iterator 27002: { 27002: 27002: 27002: 27002: typedef typename _Container::iterator _Iter; 27002: 27002: protected: 27002: _Container* container; 27002: _Iter iter; 27002: 27002: public: 27002: 27002: typedef _Container container_type; 27002: # 924 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: 27002: insert_iterator(_Container& __x, _Iter __i) 27002: : container(std::__addressof(__x)), iter(__i) {} 27002: # 960 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: 27002: insert_iterator& 27002: operator=(const typename _Container::value_type& __value) 27002: { 27002: iter = container->insert(iter, __value); 27002: ++iter; 27002: return *this; 27002: } 27002: 27002: 27002: insert_iterator& 27002: operator=(typename _Container::value_type&& __value) 27002: { 27002: iter = container->insert(iter, std::move(__value)); 27002: ++iter; 27002: return *this; 27002: } 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: insert_iterator& 27002: operator*() 27002: { return *this; } 27002: 27002: 27002: 27002: insert_iterator& 27002: operator++() 27002: { return *this; } 27002: 27002: 27002: 27002: insert_iterator& 27002: operator++(int) 27002: { return *this; } 27002: }; 27002: 27002: #pragma GCC diagnostic pop 27002: # 1019 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline insert_iterator<_Container> 27002: inserter(_Container& __x, typename _Container::iterator __i) 27002: { return insert_iterator<_Container>(__x, __i); } 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 1042 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: class __normal_iterator 27002: { 27002: protected: 27002: _Iterator _M_current; 27002: 27002: typedef std::iterator_traits<_Iterator> __traits_type; 27002: 27002: 27002: template 27002: using __convertible_from 27002: = std::__enable_if_t::value>; 27002: 27002: 27002: public: 27002: typedef _Iterator iterator_type; 27002: typedef typename __traits_type::iterator_category iterator_category; 27002: typedef typename __traits_type::value_type value_type; 27002: typedef typename __traits_type::difference_type difference_type; 27002: typedef typename __traits_type::reference reference; 27002: typedef typename __traits_type::pointer pointer; 27002: 27002: 27002: 27002: 27002: 27002: constexpr __normal_iterator() noexcept 27002: : _M_current(_Iterator()) { } 27002: 27002: explicit 27002: __normal_iterator(const _Iterator& __i) noexcept 27002: : _M_current(__i) { } 27002: 27002: 27002: 27002: template> 27002: 27002: __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) 27002: noexcept 27002: # 1090 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: : _M_current(__i.base()) { } 27002: 27002: 27002: 27002: reference 27002: operator*() const noexcept 27002: { return *_M_current; } 27002: 27002: 27002: pointer 27002: operator->() const noexcept 27002: { return _M_current; } 27002: 27002: 27002: __normal_iterator& 27002: operator++() noexcept 27002: { 27002: ++_M_current; 27002: return *this; 27002: } 27002: 27002: 27002: __normal_iterator 27002: operator++(int) noexcept 27002: { return __normal_iterator(_M_current++); } 27002: 27002: 27002: 27002: __normal_iterator& 27002: operator--() noexcept 27002: { 27002: --_M_current; 27002: return *this; 27002: } 27002: 27002: 27002: __normal_iterator 27002: operator--(int) noexcept 27002: { return __normal_iterator(_M_current--); } 27002: 27002: 27002: 27002: reference 27002: operator[](difference_type __n) const noexcept 27002: { return _M_current[__n]; } 27002: 27002: 27002: __normal_iterator& 27002: operator+=(difference_type __n) noexcept 27002: { _M_current += __n; return *this; } 27002: 27002: 27002: __normal_iterator 27002: operator+(difference_type __n) const noexcept 27002: { return __normal_iterator(_M_current + __n); } 27002: 27002: 27002: __normal_iterator& 27002: operator-=(difference_type __n) noexcept 27002: { _M_current -= __n; return *this; } 27002: 27002: 27002: __normal_iterator 27002: operator-(difference_type __n) const noexcept 27002: { return __normal_iterator(_M_current - __n); } 27002: 27002: 27002: const _Iterator& 27002: base() const noexcept 27002: { return _M_current; } 27002: }; 27002: # 1210 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 27002: const __normal_iterator<_IteratorR, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() == __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 27002: const __normal_iterator<_Iterator, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() == __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 27002: const __normal_iterator<_IteratorR, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() != __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 27002: const __normal_iterator<_Iterator, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() != __rhs.base(); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 27002: const __normal_iterator<_IteratorR, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() < __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 27002: const __normal_iterator<_Iterator, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() < __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 27002: const __normal_iterator<_IteratorR, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() > __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 27002: const __normal_iterator<_Iterator, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() > __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 27002: const __normal_iterator<_IteratorR, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() <= __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 27002: const __normal_iterator<_Iterator, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() <= __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 27002: const __normal_iterator<_IteratorR, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() >= __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 27002: const __normal_iterator<_Iterator, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() >= __rhs.base(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: 27002: [[__nodiscard__]] 27002: inline auto 27002: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 27002: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 27002: -> decltype(__lhs.base() - __rhs.base()) 27002: 27002: 27002: 27002: 27002: 27002: { return __lhs.base() - __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline typename __normal_iterator<_Iterator, _Container>::difference_type 27002: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 27002: const __normal_iterator<_Iterator, _Container>& __rhs) 27002: noexcept 27002: { return __lhs.base() - __rhs.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline __normal_iterator<_Iterator, _Container> 27002: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 27002: __n, const __normal_iterator<_Iterator, _Container>& __i) 27002: noexcept 27002: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 27002: 27002: 27002: } 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: 27002: _Iterator 27002: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 27002: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 27002: { return __it.base(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr auto 27002: __to_address(const __gnu_cxx::__normal_iterator<_Iterator, 27002: _Container>& __it) noexcept 27002: -> decltype(std::__to_address(__it.base())) 27002: { return std::__to_address(__it.base()); } 27002: # 1417 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: namespace __detail 27002: { 27002: # 1433 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: } 27002: # 1444 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: class move_iterator 27002: 27002: 27002: 27002: { 27002: _Iterator _M_current; 27002: 27002: using __traits_type = iterator_traits<_Iterator>; 27002: 27002: using __base_ref = typename __traits_type::reference; 27002: 27002: 27002: template 27002: friend class move_iterator; 27002: # 1468 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: public: 27002: using iterator_type = _Iterator; 27002: # 1479 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: typedef typename __traits_type::iterator_category iterator_category; 27002: typedef typename __traits_type::value_type value_type; 27002: typedef typename __traits_type::difference_type difference_type; 27002: 27002: typedef _Iterator pointer; 27002: 27002: 27002: using reference 27002: = __conditional_t::value, 27002: typename remove_reference<__base_ref>::type&&, 27002: __base_ref>; 27002: 27002: 27002: constexpr 27002: move_iterator() 27002: : _M_current() { } 27002: 27002: explicit constexpr 27002: move_iterator(iterator_type __i) 27002: : _M_current(std::move(__i)) { } 27002: 27002: template 27002: 27002: 27002: 27002: constexpr 27002: move_iterator(const move_iterator<_Iter>& __i) 27002: : _M_current(__i._M_current) { } 27002: 27002: template 27002: 27002: 27002: 27002: 27002: constexpr 27002: move_iterator& operator=(const move_iterator<_Iter>& __i) 27002: { 27002: _M_current = __i._M_current; 27002: return *this; 27002: } 27002: 27002: 27002: [[__nodiscard__]] 27002: constexpr iterator_type 27002: base() const 27002: { return _M_current; } 27002: # 1537 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: [[__nodiscard__]] 27002: constexpr reference 27002: operator*() const 27002: 27002: 27002: 27002: { return static_cast(*_M_current); } 27002: 27002: 27002: [[__nodiscard__]] 27002: constexpr pointer 27002: operator->() const 27002: { return _M_current; } 27002: 27002: constexpr move_iterator& 27002: operator++() 27002: { 27002: ++_M_current; 27002: return *this; 27002: } 27002: 27002: constexpr move_iterator 27002: operator++(int) 27002: { 27002: move_iterator __tmp = *this; 27002: ++_M_current; 27002: return __tmp; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: constexpr move_iterator& 27002: operator--() 27002: { 27002: --_M_current; 27002: return *this; 27002: } 27002: 27002: constexpr move_iterator 27002: operator--(int) 27002: { 27002: move_iterator __tmp = *this; 27002: --_M_current; 27002: return __tmp; 27002: } 27002: 27002: [[__nodiscard__]] 27002: constexpr move_iterator 27002: operator+(difference_type __n) const 27002: { return move_iterator(_M_current + __n); } 27002: 27002: constexpr move_iterator& 27002: operator+=(difference_type __n) 27002: { 27002: _M_current += __n; 27002: return *this; 27002: } 27002: 27002: [[__nodiscard__]] 27002: constexpr move_iterator 27002: operator-(difference_type __n) const 27002: { return move_iterator(_M_current - __n); } 27002: 27002: constexpr move_iterator& 27002: operator-=(difference_type __n) 27002: { 27002: _M_current -= __n; 27002: return *this; 27002: } 27002: 27002: [[__nodiscard__]] 27002: constexpr reference 27002: operator[](difference_type __n) const 27002: 27002: 27002: 27002: { return std::move(_M_current[__n]); } 27002: # 1651 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: }; 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator==(const move_iterator<_IteratorL>& __x, 27002: const move_iterator<_IteratorR>& __y) 27002: 27002: 27002: 27002: { return __x.base() == __y.base(); } 27002: # 1672 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator!=(const move_iterator<_IteratorL>& __x, 27002: const move_iterator<_IteratorR>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator<(const move_iterator<_IteratorL>& __x, 27002: const move_iterator<_IteratorR>& __y) 27002: 27002: 27002: 27002: { return __x.base() < __y.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator<=(const move_iterator<_IteratorL>& __x, 27002: const move_iterator<_IteratorR>& __y) 27002: 27002: 27002: 27002: { return !(__y < __x); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator>(const move_iterator<_IteratorL>& __x, 27002: const move_iterator<_IteratorR>& __y) 27002: 27002: 27002: 27002: { return __y < __x; } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator>=(const move_iterator<_IteratorL>& __x, 27002: const move_iterator<_IteratorR>& __y) 27002: 27002: 27002: 27002: { return !(__x < __y); } 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator==(const move_iterator<_Iterator>& __x, 27002: const move_iterator<_Iterator>& __y) 27002: { return __x.base() == __y.base(); } 27002: # 1738 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator!=(const move_iterator<_Iterator>& __x, 27002: const move_iterator<_Iterator>& __y) 27002: { return !(__x == __y); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator<(const move_iterator<_Iterator>& __x, 27002: const move_iterator<_Iterator>& __y) 27002: { return __x.base() < __y.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator<=(const move_iterator<_Iterator>& __x, 27002: const move_iterator<_Iterator>& __y) 27002: { return !(__y < __x); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator>(const move_iterator<_Iterator>& __x, 27002: const move_iterator<_Iterator>& __y) 27002: { return __y < __x; } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr bool 27002: operator>=(const move_iterator<_Iterator>& __x, 27002: const move_iterator<_Iterator>& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: operator-(const move_iterator<_IteratorL>& __x, 27002: const move_iterator<_IteratorR>& __y) 27002: -> decltype(__x.base() - __y.base()) 27002: { return __x.base() - __y.base(); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr move_iterator<_Iterator> 27002: operator+(typename move_iterator<_Iterator>::difference_type __n, 27002: const move_iterator<_Iterator>& __x) 27002: { return __x + __n; } 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr move_iterator<_Iterator> 27002: make_move_iterator(_Iterator __i) 27002: { return move_iterator<_Iterator>(std::move(__i)); } 27002: 27002: template::value_type>::value, 27002: _Iterator, move_iterator<_Iterator>>> 27002: inline constexpr _ReturnType 27002: __make_move_if_noexcept_iterator(_Iterator __i) 27002: { return _ReturnType(__i); } 27002: 27002: 27002: 27002: template::value, 27002: const _Tp*, move_iterator<_Tp*>>> 27002: inline constexpr _ReturnType 27002: __make_move_if_noexcept_iterator(_Tp* __i) 27002: { return _ReturnType(__i); } 27002: # 2552 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: 27002: auto 27002: __niter_base(move_iterator<_Iterator> __it) 27002: -> decltype(make_move_iterator(__niter_base(__it.base()))) 27002: { return make_move_iterator(__niter_base(__it.base())); } 27002: 27002: template 27002: struct __is_move_iterator > 27002: { 27002: enum { __value = 1 }; 27002: typedef __true_type __type; 27002: }; 27002: 27002: template 27002: 27002: auto 27002: __miter_base(move_iterator<_Iterator> __it) 27002: -> decltype(__miter_base(__it.base())) 27002: { return __miter_base(__it.base()); } 27002: # 2584 "/usr/include/c++/12/bits/stl_iterator.h" 3 27002: template 27002: using __iter_key_t = remove_const_t< 27002: typename iterator_traits<_InputIterator>::value_type::first_type>; 27002: 27002: template 27002: using __iter_val_t = 27002: typename iterator_traits<_InputIterator>::value_type::second_type; 27002: 27002: template 27002: struct pair; 27002: 27002: template 27002: using __iter_to_alloc_t = 27002: pair>, 27002: __iter_val_t<_InputIterator>>; 27002: 27002: 27002: 27002: } 27002: # 68 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 27002: 27002: # 1 "/usr/include/c++/12/debug/debug.h" 1 3 27002: # 48 "/usr/include/c++/12/debug/debug.h" 3 27002: namespace std 27002: { 27002: namespace __debug { } 27002: } 27002: 27002: 27002: 27002: 27002: namespace __gnu_debug 27002: { 27002: using namespace std::__debug; 27002: 27002: template 27002: struct _Safe_iterator; 27002: } 27002: # 70 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 27002: 27002: # 1 "/usr/include/c++/12/bits/predefined_ops.h" 1 3 27002: # 35 "/usr/include/c++/12/bits/predefined_ops.h" 3 27002: namespace __gnu_cxx 27002: { 27002: namespace __ops 27002: { 27002: struct _Iter_less_iter 27002: { 27002: template 27002: constexpr 27002: bool 27002: operator()(_Iterator1 __it1, _Iterator2 __it2) const 27002: { return *__it1 < *__it2; } 27002: }; 27002: 27002: constexpr 27002: inline _Iter_less_iter 27002: __iter_less_iter() 27002: { return _Iter_less_iter(); } 27002: 27002: struct _Iter_less_val 27002: { 27002: 27002: constexpr _Iter_less_val() = default; 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: _Iter_less_val(_Iter_less_iter) { } 27002: 27002: template 27002: 27002: bool 27002: operator()(_Iterator __it, _Value& __val) const 27002: { return *__it < __val; } 27002: }; 27002: 27002: 27002: inline _Iter_less_val 27002: __iter_less_val() 27002: { return _Iter_less_val(); } 27002: 27002: 27002: inline _Iter_less_val 27002: __iter_comp_val(_Iter_less_iter) 27002: { return _Iter_less_val(); } 27002: 27002: struct _Val_less_iter 27002: { 27002: 27002: constexpr _Val_less_iter() = default; 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: _Val_less_iter(_Iter_less_iter) { } 27002: 27002: template 27002: 27002: bool 27002: operator()(_Value& __val, _Iterator __it) const 27002: { return __val < *__it; } 27002: }; 27002: 27002: 27002: inline _Val_less_iter 27002: __val_less_iter() 27002: { return _Val_less_iter(); } 27002: 27002: 27002: inline _Val_less_iter 27002: __val_comp_iter(_Iter_less_iter) 27002: { return _Val_less_iter(); } 27002: 27002: struct _Iter_equal_to_iter 27002: { 27002: template 27002: 27002: bool 27002: operator()(_Iterator1 __it1, _Iterator2 __it2) const 27002: { return *__it1 == *__it2; } 27002: }; 27002: 27002: 27002: inline _Iter_equal_to_iter 27002: __iter_equal_to_iter() 27002: { return _Iter_equal_to_iter(); } 27002: 27002: struct _Iter_equal_to_val 27002: { 27002: template 27002: 27002: bool 27002: operator()(_Iterator __it, _Value& __val) const 27002: { return *__it == __val; } 27002: }; 27002: 27002: 27002: inline _Iter_equal_to_val 27002: __iter_equal_to_val() 27002: { return _Iter_equal_to_val(); } 27002: 27002: 27002: inline _Iter_equal_to_val 27002: __iter_comp_val(_Iter_equal_to_iter) 27002: { return _Iter_equal_to_val(); } 27002: 27002: template 27002: struct _Iter_comp_iter 27002: { 27002: _Compare _M_comp; 27002: 27002: explicit constexpr 27002: _Iter_comp_iter(_Compare __comp) 27002: : _M_comp(std::move(__comp)) 27002: { } 27002: 27002: template 27002: constexpr 27002: bool 27002: operator()(_Iterator1 __it1, _Iterator2 __it2) 27002: { return bool(_M_comp(*__it1, *__it2)); } 27002: }; 27002: 27002: template 27002: constexpr 27002: inline _Iter_comp_iter<_Compare> 27002: __iter_comp_iter(_Compare __comp) 27002: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 27002: 27002: template 27002: struct _Iter_comp_val 27002: { 27002: _Compare _M_comp; 27002: 27002: 27002: explicit 27002: _Iter_comp_val(_Compare __comp) 27002: : _M_comp(std::move(__comp)) 27002: { } 27002: 27002: 27002: explicit 27002: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 27002: : _M_comp(__comp._M_comp) 27002: { } 27002: 27002: 27002: 27002: explicit 27002: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 27002: : _M_comp(std::move(__comp._M_comp)) 27002: { } 27002: 27002: 27002: template 27002: 27002: bool 27002: operator()(_Iterator __it, _Value& __val) 27002: { return bool(_M_comp(*__it, __val)); } 27002: }; 27002: 27002: template 27002: 27002: inline _Iter_comp_val<_Compare> 27002: __iter_comp_val(_Compare __comp) 27002: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 27002: 27002: template 27002: 27002: inline _Iter_comp_val<_Compare> 27002: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 27002: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 27002: 27002: template 27002: struct _Val_comp_iter 27002: { 27002: _Compare _M_comp; 27002: 27002: 27002: explicit 27002: _Val_comp_iter(_Compare __comp) 27002: : _M_comp(std::move(__comp)) 27002: { } 27002: 27002: 27002: explicit 27002: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 27002: : _M_comp(__comp._M_comp) 27002: { } 27002: 27002: 27002: 27002: explicit 27002: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 27002: : _M_comp(std::move(__comp._M_comp)) 27002: { } 27002: 27002: 27002: template 27002: 27002: bool 27002: operator()(_Value& __val, _Iterator __it) 27002: { return bool(_M_comp(__val, *__it)); } 27002: }; 27002: 27002: template 27002: 27002: inline _Val_comp_iter<_Compare> 27002: __val_comp_iter(_Compare __comp) 27002: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 27002: 27002: template 27002: 27002: inline _Val_comp_iter<_Compare> 27002: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 27002: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 27002: 27002: template 27002: struct _Iter_equals_val 27002: { 27002: _Value& _M_value; 27002: 27002: 27002: explicit 27002: _Iter_equals_val(_Value& __value) 27002: : _M_value(__value) 27002: { } 27002: 27002: template 27002: 27002: bool 27002: operator()(_Iterator __it) 27002: { return *__it == _M_value; } 27002: }; 27002: 27002: template 27002: 27002: inline _Iter_equals_val<_Value> 27002: __iter_equals_val(_Value& __val) 27002: { return _Iter_equals_val<_Value>(__val); } 27002: 27002: template 27002: struct _Iter_equals_iter 27002: { 27002: _Iterator1 _M_it1; 27002: 27002: 27002: explicit 27002: _Iter_equals_iter(_Iterator1 __it1) 27002: : _M_it1(__it1) 27002: { } 27002: 27002: template 27002: 27002: bool 27002: operator()(_Iterator2 __it2) 27002: { return *__it2 == *_M_it1; } 27002: }; 27002: 27002: template 27002: 27002: inline _Iter_equals_iter<_Iterator> 27002: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 27002: { return _Iter_equals_iter<_Iterator>(__it); } 27002: 27002: template 27002: struct _Iter_pred 27002: { 27002: _Predicate _M_pred; 27002: 27002: 27002: explicit 27002: _Iter_pred(_Predicate __pred) 27002: : _M_pred(std::move(__pred)) 27002: { } 27002: 27002: template 27002: 27002: bool 27002: operator()(_Iterator __it) 27002: { return bool(_M_pred(*__it)); } 27002: }; 27002: 27002: template 27002: 27002: inline _Iter_pred<_Predicate> 27002: __pred_iter(_Predicate __pred) 27002: { return _Iter_pred<_Predicate>(std::move(__pred)); } 27002: 27002: template 27002: struct _Iter_comp_to_val 27002: { 27002: _Compare _M_comp; 27002: _Value& _M_value; 27002: 27002: 27002: _Iter_comp_to_val(_Compare __comp, _Value& __value) 27002: : _M_comp(std::move(__comp)), _M_value(__value) 27002: { } 27002: 27002: template 27002: 27002: bool 27002: operator()(_Iterator __it) 27002: { return bool(_M_comp(*__it, _M_value)); } 27002: }; 27002: 27002: template 27002: _Iter_comp_to_val<_Compare, _Value> 27002: 27002: __iter_comp_val(_Compare __comp, _Value &__val) 27002: { 27002: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 27002: } 27002: 27002: template 27002: struct _Iter_comp_to_iter 27002: { 27002: _Compare _M_comp; 27002: _Iterator1 _M_it1; 27002: 27002: 27002: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 27002: : _M_comp(std::move(__comp)), _M_it1(__it1) 27002: { } 27002: 27002: template 27002: 27002: bool 27002: operator()(_Iterator2 __it2) 27002: { return bool(_M_comp(*__it2, *_M_it1)); } 27002: }; 27002: 27002: template 27002: 27002: inline _Iter_comp_to_iter<_Compare, _Iterator> 27002: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 27002: { 27002: return _Iter_comp_to_iter<_Compare, _Iterator>( 27002: std::move(__comp._M_comp), __it); 27002: } 27002: 27002: template 27002: struct _Iter_negate 27002: { 27002: _Predicate _M_pred; 27002: 27002: 27002: explicit 27002: _Iter_negate(_Predicate __pred) 27002: : _M_pred(std::move(__pred)) 27002: { } 27002: 27002: template 27002: 27002: bool 27002: operator()(_Iterator __it) 27002: { return !bool(_M_pred(*__it)); } 27002: }; 27002: 27002: template 27002: 27002: inline _Iter_negate<_Predicate> 27002: __negate(_Iter_pred<_Predicate> __pred) 27002: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 27002: 27002: } 27002: } 27002: # 72 "/usr/include/c++/12/bits/stl_algobase.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr 27002: inline int 27002: __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) 27002: { 27002: 27002: static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); 27002: # 105 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); 27002: } 27002: # 149 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline void 27002: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 27002: { 27002: 27002: 27002: 27002: 27002: # 182 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: swap(*__a, *__b); 27002: 27002: } 27002: # 198 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: _ForwardIterator2 27002: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first1 != __last1; ++__first1, (void)++__first2) 27002: std::iter_swap(__first1, __first2); 27002: return __first2; 27002: } 27002: # 227 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: constexpr 27002: inline const _Tp& 27002: min(const _Tp& __a, const _Tp& __b) 27002: { 27002: 27002: 27002: 27002: if (__b < __a) 27002: return __b; 27002: return __a; 27002: } 27002: # 251 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: constexpr 27002: inline const _Tp& 27002: max(const _Tp& __a, const _Tp& __b) 27002: { 27002: 27002: 27002: 27002: if (__a < __b) 27002: return __b; 27002: return __a; 27002: } 27002: # 275 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: constexpr 27002: inline const _Tp& 27002: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 27002: { 27002: 27002: if (__comp(__b, __a)) 27002: return __b; 27002: return __a; 27002: } 27002: # 297 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: constexpr 27002: inline const _Tp& 27002: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 27002: { 27002: 27002: if (__comp(__a, __b)) 27002: return __b; 27002: return __a; 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: inline _Iterator 27002: __niter_base(_Iterator __it) 27002: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 27002: { return __it; } 27002: 27002: template 27002: _Ite 27002: __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, 27002: std::random_access_iterator_tag>&); 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline _From 27002: __niter_wrap(_From __from, _To __res) 27002: { return __from + (__res - std::__niter_base(__from)); } 27002: 27002: 27002: template 27002: 27002: inline _Iterator 27002: __niter_wrap(const _Iterator&, _Iterator __res) 27002: { return __res; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __copy_move 27002: { 27002: template 27002: 27002: static _OI 27002: __copy_m(_II __first, _II __last, _OI __result) 27002: { 27002: for (; __first != __last; ++__result, (void)++__first) 27002: *__result = *__first; 27002: return __result; 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct __copy_move 27002: { 27002: template 27002: 27002: static _OI 27002: __copy_m(_II __first, _II __last, _OI __result) 27002: { 27002: for (; __first != __last; ++__result, (void)++__first) 27002: *__result = std::move(*__first); 27002: return __result; 27002: } 27002: }; 27002: 27002: 27002: template<> 27002: struct __copy_move 27002: { 27002: template 27002: 27002: static _OI 27002: __copy_m(_II __first, _II __last, _OI __result) 27002: { 27002: typedef typename iterator_traits<_II>::difference_type _Distance; 27002: for(_Distance __n = __last - __first; __n > 0; --__n) 27002: { 27002: *__result = *__first; 27002: ++__first; 27002: ++__result; 27002: } 27002: return __result; 27002: } 27002: }; 27002: 27002: 27002: template<> 27002: struct __copy_move 27002: { 27002: template 27002: 27002: static _OI 27002: __copy_m(_II __first, _II __last, _OI __result) 27002: { 27002: typedef typename iterator_traits<_II>::difference_type _Distance; 27002: for(_Distance __n = __last - __first; __n > 0; --__n) 27002: { 27002: *__result = std::move(*__first); 27002: ++__first; 27002: ++__result; 27002: } 27002: return __result; 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct __copy_move<_IsMove, true, random_access_iterator_tag> 27002: { 27002: template 27002: 27002: static _Tp* 27002: __copy_m(const _Tp* __first, const _Tp* __last, _Tp* __result) 27002: { 27002: 27002: using __assignable = __conditional_t<_IsMove, 27002: is_move_assignable<_Tp>, 27002: is_copy_assignable<_Tp>>; 27002: 27002: static_assert( __assignable::value, "type must be assignable" ); 27002: 27002: const ptrdiff_t _Num = __last - __first; 27002: if (_Num) 27002: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 27002: return __result + _Num; 27002: } 27002: }; 27002: 27002: 27002: 27002: template 27002: struct _Deque_iterator; 27002: 27002: struct _Bit_iterator; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct char_traits; 27002: 27002: template 27002: class istreambuf_iterator; 27002: 27002: template 27002: class ostreambuf_iterator; 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 27002: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 27002: __copy_move_a2(_CharT*, _CharT*, 27002: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 27002: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 27002: __copy_move_a2(const _CharT*, const _CharT*, 27002: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 27002: _CharT*>::__type 27002: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 27002: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_char<_CharT>::__value, 27002: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 27002: __copy_move_a2( 27002: istreambuf_iterator<_CharT, char_traits<_CharT> >, 27002: istreambuf_iterator<_CharT, char_traits<_CharT> >, 27002: std::_Deque_iterator<_CharT, _CharT&, _CharT*>); 27002: 27002: template 27002: 27002: inline _OI 27002: __copy_move_a2(_II __first, _II __last, _OI __result) 27002: { 27002: typedef typename iterator_traits<_II>::iterator_category _Category; 27002: 27002: 27002: 27002: 27002: 27002: return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, 27002: _Category>::__copy_m(__first, __last, __result); 27002: } 27002: 27002: template 27002: _OI 27002: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 27002: _OI); 27002: 27002: template 27002: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 27002: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, 27002: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 27002: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_random_access_iter<_II>::__value, 27002: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 27002: __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 27002: 27002: template 27002: 27002: inline _OI 27002: __copy_move_a1(_II __first, _II __last, _OI __result) 27002: { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } 27002: 27002: template 27002: 27002: inline _OI 27002: __copy_move_a(_II __first, _II __last, _OI __result) 27002: { 27002: return std::__niter_wrap(__result, 27002: std::__copy_move_a1<_IsMove>(std::__niter_base(__first), 27002: std::__niter_base(__last), 27002: std::__niter_base(__result))); 27002: } 27002: 27002: template 27002: _OI 27002: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 27002: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 27002: _OI); 27002: 27002: template 27002: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 27002: __copy_move_a(_II, _II, 27002: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 27002: 27002: template 27002: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 27002: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 27002: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 27002: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 27002: 27002: template 27002: 27002: _OutputIterator 27002: __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, 27002: bool) 27002: { 27002: if (__n > 0) 27002: { 27002: while (true) 27002: { 27002: *__result = *__first; 27002: ++__result; 27002: if (--__n > 0) 27002: ++__first; 27002: else 27002: break; 27002: } 27002: } 27002: return __result; 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_char<_CharT>::__value, _CharT*>::__type 27002: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, 27002: _Size, _CharT*, bool); 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_char<_CharT>::__value, 27002: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 27002: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, 27002: std::_Deque_iterator<_CharT, _CharT&, _CharT*>, 27002: bool); 27002: # 608 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline _OI 27002: copy(_II __first, _II __last, _OI __result) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__copy_move_a<__is_move_iterator<_II>::__value> 27002: (std::__miter_base(__first), std::__miter_base(__last), __result); 27002: } 27002: # 641 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline _OI 27002: move(_II __first, _II __last, _OI __result) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__copy_move_a(std::__miter_base(__first), 27002: std::__miter_base(__last), __result); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __copy_move_backward 27002: { 27002: template 27002: 27002: static _BI2 27002: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 27002: { 27002: while (__first != __last) 27002: *--__result = *--__last; 27002: return __result; 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct __copy_move_backward 27002: { 27002: template 27002: 27002: static _BI2 27002: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 27002: { 27002: while (__first != __last) 27002: *--__result = std::move(*--__last); 27002: return __result; 27002: } 27002: }; 27002: 27002: 27002: template<> 27002: struct __copy_move_backward 27002: { 27002: template 27002: 27002: static _BI2 27002: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 27002: { 27002: typename iterator_traits<_BI1>::difference_type 27002: __n = __last - __first; 27002: for (; __n > 0; --__n) 27002: *--__result = *--__last; 27002: return __result; 27002: } 27002: }; 27002: 27002: 27002: template<> 27002: struct __copy_move_backward 27002: { 27002: template 27002: 27002: static _BI2 27002: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 27002: { 27002: typename iterator_traits<_BI1>::difference_type 27002: __n = __last - __first; 27002: for (; __n > 0; --__n) 27002: *--__result = std::move(*--__last); 27002: return __result; 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 27002: { 27002: template 27002: 27002: static _Tp* 27002: __copy_move_b(const _Tp* __first, const _Tp* __last, _Tp* __result) 27002: { 27002: 27002: using __assignable = __conditional_t<_IsMove, 27002: is_move_assignable<_Tp>, 27002: is_copy_assignable<_Tp>>; 27002: 27002: static_assert( __assignable::value, "type must be assignable" ); 27002: 27002: const ptrdiff_t _Num = __last - __first; 27002: if (_Num) 27002: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 27002: return __result - _Num; 27002: } 27002: }; 27002: 27002: template 27002: 27002: inline _BI2 27002: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 27002: { 27002: typedef typename iterator_traits<_BI1>::iterator_category _Category; 27002: 27002: 27002: 27002: 27002: 27002: return std::__copy_move_backward<_IsMove, 27002: __memcpyable<_BI2, _BI1>::__value, 27002: _Category>::__copy_move_b(__first, 27002: __last, 27002: __result); 27002: } 27002: 27002: template 27002: 27002: inline _BI2 27002: __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) 27002: { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } 27002: 27002: template 27002: _OI 27002: __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 27002: _OI); 27002: 27002: template 27002: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 27002: __copy_move_backward_a1( 27002: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 27002: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 27002: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_random_access_iter<_II>::__value, 27002: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 27002: __copy_move_backward_a1(_II, _II, 27002: std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 27002: 27002: template 27002: 27002: inline _OI 27002: __copy_move_backward_a(_II __first, _II __last, _OI __result) 27002: { 27002: return std::__niter_wrap(__result, 27002: std::__copy_move_backward_a1<_IsMove> 27002: (std::__niter_base(__first), std::__niter_base(__last), 27002: std::__niter_base(__result))); 27002: } 27002: 27002: template 27002: _OI 27002: __copy_move_backward_a( 27002: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 27002: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 27002: _OI); 27002: 27002: template 27002: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 27002: __copy_move_backward_a(_II, _II, 27002: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 27002: 27002: template 27002: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 27002: __copy_move_backward_a( 27002: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 27002: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 27002: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 27002: # 845 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline _BI2 27002: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> 27002: (std::__miter_base(__first), std::__miter_base(__last), __result); 27002: } 27002: # 880 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline _BI2 27002: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__copy_move_backward_a(std::__miter_base(__first), 27002: std::__miter_base(__last), 27002: __result); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline typename 27002: __gnu_cxx::__enable_if::__value, void>::__type 27002: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __value) 27002: { 27002: for (; __first != __last; ++__first) 27002: *__first = __value; 27002: } 27002: 27002: template 27002: 27002: inline typename 27002: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 27002: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __value) 27002: { 27002: const _Tp __tmp = __value; 27002: for (; __first != __last; ++__first) 27002: *__first = __tmp; 27002: } 27002: 27002: 27002: template 27002: 27002: inline typename 27002: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 27002: __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) 27002: { 27002: const _Tp __tmp = __c; 27002: # 941 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: if (const size_t __len = __last - __first) 27002: __builtin_memset(__first, static_cast(__tmp), __len); 27002: } 27002: 27002: template 27002: 27002: inline void 27002: __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, 27002: ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, 27002: const _Tp& __value) 27002: { std::__fill_a1(__first.base(), __last.base(), __value); } 27002: 27002: template 27002: void 27002: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 27002: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 27002: const _VTp&); 27002: 27002: 27002: void 27002: __fill_a1(std::_Bit_iterator, std::_Bit_iterator, 27002: const bool&); 27002: 27002: template 27002: 27002: inline void 27002: __fill_a(_FIte __first, _FIte __last, const _Tp& __value) 27002: { std::__fill_a1(__first, __last, __value); } 27002: 27002: template 27002: void 27002: __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 27002: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 27002: const _Tp&); 27002: # 988 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline void 27002: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 27002: { 27002: 27002: 27002: 27002: ; 27002: 27002: std::__fill_a(__first, __last, __value); 27002: } 27002: 27002: 27002: inline constexpr int 27002: __size_to_integer(int __n) { return __n; } 27002: inline constexpr unsigned 27002: __size_to_integer(unsigned __n) { return __n; } 27002: inline constexpr long 27002: __size_to_integer(long __n) { return __n; } 27002: inline constexpr unsigned long 27002: __size_to_integer(unsigned long __n) { return __n; } 27002: inline constexpr long long 27002: __size_to_integer(long long __n) { return __n; } 27002: inline constexpr unsigned long long 27002: __size_to_integer(unsigned long long __n) { return __n; } 27002: # 1040 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: inline constexpr long long 27002: __size_to_integer(float __n) { return (long long)__n; } 27002: inline constexpr long long 27002: __size_to_integer(double __n) { return (long long)__n; } 27002: inline constexpr long long 27002: __size_to_integer(long double __n) { return (long long)__n; } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline typename 27002: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 27002: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 27002: { 27002: for (; __n > 0; --__n, (void) ++__first) 27002: *__first = __value; 27002: return __first; 27002: } 27002: 27002: template 27002: 27002: inline typename 27002: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 27002: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 27002: { 27002: const _Tp __tmp = __value; 27002: for (; __n > 0; --__n, (void) ++__first) 27002: *__first = __tmp; 27002: return __first; 27002: } 27002: 27002: template 27002: ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 27002: __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, 27002: _Size __n, const _Tp& __value, 27002: std::input_iterator_tag); 27002: 27002: template 27002: 27002: inline _OutputIterator 27002: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 27002: std::output_iterator_tag) 27002: { 27002: 27002: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 27002: 27002: return __fill_n_a1(__first, __n, __value); 27002: } 27002: 27002: template 27002: 27002: inline _OutputIterator 27002: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 27002: std::input_iterator_tag) 27002: { 27002: 27002: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 27002: 27002: return __fill_n_a1(__first, __n, __value); 27002: } 27002: 27002: template 27002: 27002: inline _OutputIterator 27002: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 27002: std::random_access_iterator_tag) 27002: { 27002: 27002: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 27002: 27002: if (__n <= 0) 27002: return __first; 27002: 27002: ; 27002: 27002: std::__fill_a(__first, __first + __n, __value); 27002: return __first + __n; 27002: } 27002: # 1140 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline _OI 27002: fill_n(_OI __first, _Size __n, const _Tp& __value) 27002: { 27002: 27002: 27002: 27002: return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, 27002: std::__iterator_category(__first)); 27002: } 27002: 27002: template 27002: struct __equal 27002: { 27002: template 27002: 27002: static bool 27002: equal(_II1 __first1, _II1 __last1, _II2 __first2) 27002: { 27002: for (; __first1 != __last1; ++__first1, (void) ++__first2) 27002: if (!(*__first1 == *__first2)) 27002: return false; 27002: return true; 27002: } 27002: }; 27002: 27002: template<> 27002: struct __equal 27002: { 27002: template 27002: 27002: static bool 27002: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 27002: { 27002: if (const size_t __len = (__last1 - __first1)) 27002: return !std::__memcmp(__first1, __first2, __len); 27002: return true; 27002: } 27002: }; 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_random_access_iter<_II>::__value, bool>::__type 27002: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 27002: _II); 27002: 27002: template 27002: bool 27002: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 27002: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 27002: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_random_access_iter<_II>::__value, bool>::__type 27002: __equal_aux1(_II, _II, 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr>); 27002: 27002: template 27002: 27002: inline bool 27002: __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) 27002: { 27002: typedef typename iterator_traits<_II1>::value_type _ValueType1; 27002: const bool __simple = ((__is_integer<_ValueType1>::__value 27002: || __is_pointer<_ValueType1>::__value) 27002: && __memcmpable<_II1, _II2>::__value); 27002: return std::__equal<__simple>::equal(__first1, __last1, __first2); 27002: } 27002: 27002: template 27002: 27002: inline bool 27002: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 27002: { 27002: return std::__equal_aux1(std::__niter_base(__first1), 27002: std::__niter_base(__last1), 27002: std::__niter_base(__first2)); 27002: } 27002: 27002: template 27002: bool 27002: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 27002: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 27002: _II2); 27002: 27002: template 27002: bool 27002: __equal_aux(_II1, _II1, 27002: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 27002: 27002: template 27002: bool 27002: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 27002: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 27002: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 27002: 27002: template 27002: struct __lc_rai 27002: { 27002: template 27002: 27002: static _II1 27002: __newlast1(_II1, _II1 __last1, _II2, _II2) 27002: { return __last1; } 27002: 27002: template 27002: 27002: static bool 27002: __cnd2(_II __first, _II __last) 27002: { return __first != __last; } 27002: }; 27002: 27002: template<> 27002: struct __lc_rai 27002: { 27002: template 27002: 27002: static _RAI1 27002: __newlast1(_RAI1 __first1, _RAI1 __last1, 27002: _RAI2 __first2, _RAI2 __last2) 27002: { 27002: const typename iterator_traits<_RAI1>::difference_type 27002: __diff1 = __last1 - __first1; 27002: const typename iterator_traits<_RAI2>::difference_type 27002: __diff2 = __last2 - __first2; 27002: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 27002: } 27002: 27002: template 27002: static bool 27002: __cnd2(_RAI, _RAI) 27002: { return true; } 27002: }; 27002: 27002: template 27002: 27002: bool 27002: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 27002: _II2 __first2, _II2 __last2, 27002: _Compare __comp) 27002: { 27002: typedef typename iterator_traits<_II1>::iterator_category _Category1; 27002: typedef typename iterator_traits<_II2>::iterator_category _Category2; 27002: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 27002: 27002: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 27002: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 27002: ++__first1, (void)++__first2) 27002: { 27002: if (__comp(__first1, __first2)) 27002: return true; 27002: if (__comp(__first2, __first1)) 27002: return false; 27002: } 27002: return __first1 == __last1 && __first2 != __last2; 27002: } 27002: 27002: template 27002: struct __lexicographical_compare 27002: { 27002: template 27002: 27002: static bool 27002: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 27002: { 27002: using __gnu_cxx::__ops::__iter_less_iter; 27002: return std::__lexicographical_compare_impl(__first1, __last1, 27002: __first2, __last2, 27002: __iter_less_iter()); 27002: } 27002: 27002: template 27002: 27002: static int 27002: __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 27002: { 27002: while (__first1 != __last1) 27002: { 27002: if (__first2 == __last2) 27002: return +1; 27002: if (*__first1 < *__first2) 27002: return -1; 27002: if (*__first2 < *__first1) 27002: return +1; 27002: ++__first1; 27002: ++__first2; 27002: } 27002: return int(__first2 == __last2) - 1; 27002: } 27002: }; 27002: 27002: template<> 27002: struct __lexicographical_compare 27002: { 27002: template 27002: 27002: static bool 27002: __lc(const _Tp* __first1, const _Tp* __last1, 27002: const _Up* __first2, const _Up* __last2) 27002: { return __3way(__first1, __last1, __first2, __last2) < 0; } 27002: 27002: template 27002: 27002: static ptrdiff_t 27002: __3way(const _Tp* __first1, const _Tp* __last1, 27002: const _Up* __first2, const _Up* __last2) 27002: { 27002: const size_t __len1 = __last1 - __first1; 27002: const size_t __len2 = __last2 - __first2; 27002: if (const size_t __len = std::min(__len1, __len2)) 27002: if (int __result = std::__memcmp(__first1, __first2, __len)) 27002: return __result; 27002: return ptrdiff_t(__len1 - __len2); 27002: } 27002: }; 27002: 27002: template 27002: 27002: inline bool 27002: __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, 27002: _II2 __first2, _II2 __last2) 27002: { 27002: typedef typename iterator_traits<_II1>::value_type _ValueType1; 27002: typedef typename iterator_traits<_II2>::value_type _ValueType2; 27002: const bool __simple = 27002: (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value 27002: && __is_pointer<_II1>::__value 27002: && __is_pointer<_II2>::__value 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ); 27002: 27002: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 27002: __first2, __last2); 27002: } 27002: 27002: template 27002: bool 27002: __lexicographical_compare_aux1( 27002: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 27002: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 27002: _Tp2*, _Tp2*); 27002: 27002: template 27002: bool 27002: __lexicographical_compare_aux1(_Tp1*, _Tp1*, 27002: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 27002: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 27002: 27002: template 27002: bool 27002: __lexicographical_compare_aux1( 27002: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 27002: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 27002: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 27002: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 27002: 27002: template 27002: 27002: inline bool 27002: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 27002: _II2 __first2, _II2 __last2) 27002: { 27002: return std::__lexicographical_compare_aux1(std::__niter_base(__first1), 27002: std::__niter_base(__last1), 27002: std::__niter_base(__first2), 27002: std::__niter_base(__last2)); 27002: } 27002: 27002: template 27002: bool 27002: __lexicographical_compare_aux( 27002: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 27002: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 27002: _II2, _II2); 27002: 27002: template 27002: bool 27002: __lexicographical_compare_aux( 27002: _II1, _II1, 27002: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 27002: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 27002: 27002: template 27002: bool 27002: __lexicographical_compare_aux( 27002: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 27002: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 27002: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 27002: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val, _Compare __comp) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::difference_type 27002: _DistanceType; 27002: 27002: _DistanceType __len = std::distance(__first, __last); 27002: 27002: while (__len > 0) 27002: { 27002: _DistanceType __half = __len >> 1; 27002: _ForwardIterator __middle = __first; 27002: std::advance(__middle, __half); 27002: if (__comp(__middle, __val)) 27002: { 27002: __first = __middle; 27002: ++__first; 27002: __len = __len - __half - 1; 27002: } 27002: else 27002: __len = __half; 27002: } 27002: return __first; 27002: } 27002: # 1486 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__lower_bound(__first, __last, __val, 27002: __gnu_cxx::__ops::__iter_less_val()); 27002: } 27002: 27002: 27002: 27002: inline constexpr int 27002: __lg(int __n) 27002: { return (int)sizeof(int) * 8 - 1 - __builtin_clz(__n); } 27002: 27002: inline constexpr unsigned 27002: __lg(unsigned __n) 27002: { return (int)sizeof(int) * 8 - 1 - __builtin_clz(__n); } 27002: 27002: inline constexpr long 27002: __lg(long __n) 27002: { return (int)sizeof(long) * 8 - 1 - __builtin_clzl(__n); } 27002: 27002: inline constexpr unsigned long 27002: __lg(unsigned long __n) 27002: { return (int)sizeof(long) * 8 - 1 - __builtin_clzl(__n); } 27002: 27002: inline constexpr long long 27002: __lg(long long __n) 27002: { return (int)sizeof(long long) * 8 - 1 - __builtin_clzll(__n); } 27002: 27002: inline constexpr unsigned long long 27002: __lg(unsigned long long __n) 27002: { return (int)sizeof(long long) * 8 - 1 - __builtin_clzll(__n); } 27002: 27002: 27002: # 1542 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline bool 27002: equal(_II1 __first1, _II1 __last1, _II2 __first2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__equal_aux(__first1, __last1, __first2); 27002: } 27002: # 1573 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline bool 27002: equal(_IIter1 __first1, _IIter1 __last1, 27002: _IIter2 __first2, _BinaryPredicate __binary_pred) 27002: { 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first1 != __last1; ++__first1, (void)++__first2) 27002: if (!bool(__binary_pred(*__first1, *__first2))) 27002: return false; 27002: return true; 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: inline bool 27002: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 27002: { 27002: using _RATag = random_access_iterator_tag; 27002: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 27002: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 27002: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 27002: if (_RAIters()) 27002: { 27002: auto __d1 = std::distance(__first1, __last1); 27002: auto __d2 = std::distance(__first2, __last2); 27002: if (__d1 != __d2) 27002: return false; 27002: return std::equal(__first1, __last1, __first2); 27002: } 27002: 27002: for (; __first1 != __last1 && __first2 != __last2; 27002: ++__first1, (void)++__first2) 27002: if (!(*__first1 == *__first2)) 27002: return false; 27002: return __first1 == __last1 && __first2 == __last2; 27002: } 27002: 27002: 27002: template 27002: 27002: inline bool 27002: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 27002: _BinaryPredicate __binary_pred) 27002: { 27002: using _RATag = random_access_iterator_tag; 27002: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 27002: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 27002: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 27002: if (_RAIters()) 27002: { 27002: auto __d1 = std::distance(__first1, __last1); 27002: auto __d2 = std::distance(__first2, __last2); 27002: if (__d1 != __d2) 27002: return false; 27002: return std::equal(__first1, __last1, __first2, 27002: __binary_pred); 27002: } 27002: 27002: for (; __first1 != __last1 && __first2 != __last2; 27002: ++__first1, (void)++__first2) 27002: if (!bool(__binary_pred(*__first1, *__first2))) 27002: return false; 27002: return __first1 == __last1 && __first2 == __last2; 27002: } 27002: # 1663 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline bool 27002: equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__equal4(__first1, __last1, __first2, __last2); 27002: } 27002: # 1696 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline bool 27002: equal(_IIter1 __first1, _IIter1 __last1, 27002: _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) 27002: { 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__equal4(__first1, __last1, __first2, __last2, 27002: __binary_pred); 27002: } 27002: # 1728 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline bool 27002: lexicographical_compare(_II1 __first1, _II1 __last1, 27002: _II2 __first2, _II2 __last2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__lexicographical_compare_aux(__first1, __last1, 27002: __first2, __last2); 27002: } 27002: # 1763 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline bool 27002: lexicographical_compare(_II1 __first1, _II1 __last1, 27002: _II2 __first2, _II2 __last2, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__lexicographical_compare_impl 27002: (__first1, __last1, __first2, __last2, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: # 1875 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: pair<_InputIterator1, _InputIterator2> 27002: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 27002: { 27002: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 27002: { 27002: ++__first1; 27002: ++__first2; 27002: } 27002: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 27002: } 27002: # 1903 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline pair<_InputIterator1, _InputIterator2> 27002: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__mismatch(__first1, __last1, __first2, 27002: __gnu_cxx::__ops::__iter_equal_to_iter()); 27002: } 27002: # 1937 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline pair<_InputIterator1, _InputIterator2> 27002: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 27002: { 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__mismatch(__first1, __last1, __first2, 27002: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: pair<_InputIterator1, _InputIterator2> 27002: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _BinaryPredicate __binary_pred) 27002: { 27002: while (__first1 != __last1 && __first2 != __last2 27002: && __binary_pred(__first1, __first2)) 27002: { 27002: ++__first1; 27002: ++__first2; 27002: } 27002: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 27002: } 27002: # 1986 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline pair<_InputIterator1, _InputIterator2> 27002: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__mismatch(__first1, __last1, __first2, __last2, 27002: __gnu_cxx::__ops::__iter_equal_to_iter()); 27002: } 27002: # 2022 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline pair<_InputIterator1, _InputIterator2> 27002: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _BinaryPredicate __binary_pred) 27002: { 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__mismatch(__first1, __last1, __first2, __last2, 27002: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline _InputIterator 27002: __find_if(_InputIterator __first, _InputIterator __last, 27002: _Predicate __pred, input_iterator_tag) 27002: { 27002: while (__first != __last && !__pred(__first)) 27002: ++__first; 27002: return __first; 27002: } 27002: 27002: 27002: template 27002: 27002: _RandomAccessIterator 27002: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Predicate __pred, random_access_iterator_tag) 27002: { 27002: typename iterator_traits<_RandomAccessIterator>::difference_type 27002: __trip_count = (__last - __first) >> 2; 27002: 27002: for (; __trip_count > 0; --__trip_count) 27002: { 27002: if (__pred(__first)) 27002: return __first; 27002: ++__first; 27002: 27002: if (__pred(__first)) 27002: return __first; 27002: ++__first; 27002: 27002: if (__pred(__first)) 27002: return __first; 27002: ++__first; 27002: 27002: if (__pred(__first)) 27002: return __first; 27002: ++__first; 27002: } 27002: 27002: switch (__last - __first) 27002: { 27002: case 3: 27002: if (__pred(__first)) 27002: return __first; 27002: ++__first; 27002: 27002: case 2: 27002: if (__pred(__first)) 27002: return __first; 27002: ++__first; 27002: 27002: case 1: 27002: if (__pred(__first)) 27002: return __first; 27002: ++__first; 27002: 27002: case 0: 27002: default: 27002: return __last; 27002: } 27002: } 27002: 27002: template 27002: 27002: inline _Iterator 27002: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 27002: { 27002: return __find_if(__first, __last, __pred, 27002: std::__iterator_category(__first)); 27002: } 27002: 27002: template 27002: 27002: typename iterator_traits<_InputIterator>::difference_type 27002: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 27002: { 27002: typename iterator_traits<_InputIterator>::difference_type __n = 0; 27002: for (; __first != __last; ++__first) 27002: if (__pred(__first)) 27002: ++__n; 27002: return __n; 27002: } 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 27002: _Predicate __pred) 27002: { 27002: __first = std::__find_if(__first, __last, __pred); 27002: if (__first == __last) 27002: return __first; 27002: _ForwardIterator __result = __first; 27002: ++__first; 27002: for (; __first != __last; ++__first) 27002: if (!__pred(__first)) 27002: { 27002: *__result = std::move(*__first); 27002: ++__result; 27002: } 27002: return __result; 27002: } 27002: 27002: 27002: template 27002: 27002: bool 27002: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _BinaryPredicate __pred) 27002: { 27002: 27002: 27002: for (; __first1 != __last1; ++__first1, (void)++__first2) 27002: if (!__pred(__first1, __first2)) 27002: break; 27002: 27002: if (__first1 == __last1) 27002: return true; 27002: 27002: 27002: 27002: _ForwardIterator2 __last2 = __first2; 27002: std::advance(__last2, std::distance(__first1, __last1)); 27002: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 27002: { 27002: if (__scan != std::__find_if(__first1, __scan, 27002: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 27002: continue; 27002: 27002: auto __matches 27002: = std::__count_if(__first2, __last2, 27002: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 27002: if (0 == __matches || 27002: std::__count_if(__scan, __last1, 27002: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 27002: != __matches) 27002: return false; 27002: } 27002: return true; 27002: } 27002: # 2199 "/usr/include/c++/12/bits/stl_algobase.h" 3 27002: template 27002: 27002: inline bool 27002: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__is_permutation(__first1, __last1, __first2, 27002: __gnu_cxx::__ops::__iter_equal_to_iter()); 27002: } 27002: 27002: 27002: 27002: } 27002: # 61 "/usr/include/c++/12/deque" 2 3 27002: # 1 "/usr/include/c++/12/bits/allocator.h" 1 3 27002: # 46 "/usr/include/c++/12/bits/allocator.h" 3 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++allocator.h" 1 3 27002: # 33 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++allocator.h" 3 27002: # 1 "/usr/include/c++/12/bits/new_allocator.h" 1 3 27002: # 34 "/usr/include/c++/12/bits/new_allocator.h" 3 27002: # 1 "/usr/include/c++/12/new" 1 3 27002: # 38 "/usr/include/c++/12/new" 3 27002: 27002: # 39 "/usr/include/c++/12/new" 3 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/exception.h" 1 3 27002: # 34 "/usr/include/c++/12/bits/exception.h" 3 27002: 27002: # 35 "/usr/include/c++/12/bits/exception.h" 3 27002: 27002: #pragma GCC visibility push(default) 27002: 27002: 27002: 27002: extern "C++" { 27002: 27002: namespace std 27002: { 27002: # 61 "/usr/include/c++/12/bits/exception.h" 3 27002: class exception 27002: { 27002: public: 27002: exception() noexcept { } 27002: virtual ~exception() noexcept; 27002: 27002: exception(const exception&) = default; 27002: exception& operator=(const exception&) = default; 27002: exception(exception&&) = default; 27002: exception& operator=(exception&&) = default; 27002: 27002: 27002: 27002: 27002: virtual const char* 27002: what() const noexcept; 27002: }; 27002: 27002: 27002: 27002: } 27002: 27002: } 27002: 27002: #pragma GCC visibility pop 27002: # 42 "/usr/include/c++/12/new" 2 3 27002: 27002: #pragma GCC visibility push(default) 27002: 27002: extern "C++" { 27002: 27002: namespace std 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: class bad_alloc : public exception 27002: { 27002: public: 27002: bad_alloc() throw() { } 27002: 27002: 27002: bad_alloc(const bad_alloc&) = default; 27002: bad_alloc& operator=(const bad_alloc&) = default; 27002: 27002: 27002: 27002: 27002: virtual ~bad_alloc() throw(); 27002: 27002: 27002: virtual const char* what() const throw(); 27002: }; 27002: 27002: 27002: class bad_array_new_length : public bad_alloc 27002: { 27002: public: 27002: bad_array_new_length() throw() { } 27002: 27002: 27002: 27002: virtual ~bad_array_new_length() throw(); 27002: 27002: 27002: virtual const char* what() const throw(); 27002: }; 27002: 27002: 27002: 27002: enum class align_val_t: size_t {}; 27002: 27002: 27002: struct nothrow_t 27002: { 27002: 27002: explicit nothrow_t() = default; 27002: 27002: }; 27002: 27002: extern const nothrow_t nothrow; 27002: 27002: 27002: 27002: typedef void (*new_handler)(); 27002: 27002: 27002: 27002: new_handler set_new_handler(new_handler) throw(); 27002: 27002: 27002: 27002: new_handler get_new_handler() noexcept; 27002: 27002: } 27002: # 126 "/usr/include/c++/12/new" 3 27002: [[__nodiscard__]] void* operator new(std::size_t) 27002: __attribute__((__externally_visible__)); 27002: [[__nodiscard__]] void* operator new[](std::size_t) 27002: __attribute__((__externally_visible__)); 27002: void operator delete(void*) noexcept 27002: __attribute__((__externally_visible__)); 27002: void operator delete[](void*) noexcept 27002: __attribute__((__externally_visible__)); 27002: 27002: void operator delete(void*, std::size_t) noexcept 27002: __attribute__((__externally_visible__)); 27002: void operator delete[](void*, std::size_t) noexcept 27002: __attribute__((__externally_visible__)); 27002: 27002: [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept 27002: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 27002: [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept 27002: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 27002: void operator delete(void*, const std::nothrow_t&) noexcept 27002: __attribute__((__externally_visible__)); 27002: void operator delete[](void*, const std::nothrow_t&) noexcept 27002: __attribute__((__externally_visible__)); 27002: 27002: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) 27002: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 27002: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) 27002: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 27002: void operator delete(void*, std::align_val_t) 27002: noexcept __attribute__((__externally_visible__)); 27002: void operator delete(void*, std::align_val_t, const std::nothrow_t&) 27002: noexcept __attribute__((__externally_visible__)); 27002: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) 27002: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 27002: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) 27002: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 27002: void operator delete[](void*, std::align_val_t) 27002: noexcept __attribute__((__externally_visible__)); 27002: void operator delete[](void*, std::align_val_t, const std::nothrow_t&) 27002: noexcept __attribute__((__externally_visible__)); 27002: 27002: void operator delete(void*, std::size_t, std::align_val_t) 27002: noexcept __attribute__((__externally_visible__)); 27002: void operator delete[](void*, std::size_t, std::align_val_t) 27002: noexcept __attribute__((__externally_visible__)); 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept 27002: { return __p; } 27002: [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept 27002: { return __p; } 27002: 27002: 27002: inline void operator delete (void*, void*) noexcept { } 27002: inline void operator delete[](void*, void*) noexcept { } 27002: 27002: } 27002: 27002: 27002: namespace std 27002: { 27002: 27002: 27002: 27002: template 27002: [[nodiscard]] constexpr _Tp* 27002: launder(_Tp* __p) noexcept 27002: { return __builtin_launder(__p); } 27002: 27002: 27002: 27002: 27002: template 27002: void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; 27002: template 27002: void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; 27002: 27002: void launder(void*) = delete; 27002: void launder(const void*) = delete; 27002: void launder(volatile void*) = delete; 27002: void launder(const volatile void*) = delete; 27002: 27002: 27002: 27002: 27002: inline constexpr size_t hardware_destructive_interference_size = 64; 27002: inline constexpr size_t hardware_constructive_interference_size = 64; 27002: 27002: } 27002: # 236 "/usr/include/c++/12/new" 3 27002: #pragma GCC visibility pop 27002: # 35 "/usr/include/c++/12/bits/new_allocator.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 55 "/usr/include/c++/12/bits/new_allocator.h" 3 27002: template 27002: class __new_allocator 27002: { 27002: public: 27002: typedef _Tp value_type; 27002: typedef std::size_t size_type; 27002: typedef std::ptrdiff_t difference_type; 27002: 27002: typedef _Tp* pointer; 27002: typedef const _Tp* const_pointer; 27002: typedef _Tp& reference; 27002: typedef const _Tp& const_reference; 27002: 27002: template 27002: struct rebind 27002: { typedef __new_allocator<_Tp1> other; }; 27002: 27002: 27002: 27002: 27002: 27002: typedef std::true_type propagate_on_container_move_assignment; 27002: 27002: 27002: 27002: __new_allocator() noexcept { } 27002: 27002: 27002: __new_allocator(const __new_allocator&) noexcept { } 27002: 27002: template 27002: 27002: __new_allocator(const __new_allocator<_Tp1>&) noexcept { } 27002: 27002: 27002: ~__new_allocator() noexcept { } 27002: 27002: pointer 27002: address(reference __x) const noexcept 27002: { return std::__addressof(__x); } 27002: 27002: const_pointer 27002: address(const_reference __x) const noexcept 27002: { return std::__addressof(__x); } 27002: # 111 "/usr/include/c++/12/bits/new_allocator.h" 3 27002: [[__nodiscard__]] _Tp* 27002: allocate(size_type __n, const void* = static_cast(0)) 27002: { 27002: 27002: 27002: 27002: static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); 27002: 27002: 27002: if (__builtin_expect(__n > this->_M_max_size(), false)) 27002: { 27002: 27002: 27002: if (__n > (std::size_t(-1) / sizeof(_Tp))) 27002: std::__throw_bad_array_new_length(); 27002: std::__throw_bad_alloc(); 27002: } 27002: 27002: 27002: if (alignof(_Tp) > 8) 27002: { 27002: std::align_val_t __al = std::align_val_t(alignof(_Tp)); 27002: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), 27002: __al)); 27002: } 27002: 27002: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 27002: } 27002: 27002: 27002: void 27002: deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: if (alignof(_Tp) > 8) 27002: { 27002: ::operator delete((__p), (__n) * sizeof(_Tp), 27002: std::align_val_t(alignof(_Tp))); 27002: return; 27002: } 27002: 27002: ::operator delete((__p), (__n) * sizeof(_Tp)); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return _M_max_size(); } 27002: 27002: 27002: template 27002: void 27002: construct(_Up* __p, _Args&&... __args) 27002: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 27002: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 27002: 27002: template 27002: void 27002: destroy(_Up* __p) 27002: noexcept(std::is_nothrow_destructible<_Up>::value) 27002: { __p->~_Up(); } 27002: # 194 "/usr/include/c++/12/bits/new_allocator.h" 3 27002: template 27002: friend bool 27002: operator==(const __new_allocator&, const __new_allocator<_Up>&) 27002: noexcept 27002: { return true; } 27002: 27002: 27002: template 27002: friend bool 27002: operator!=(const __new_allocator&, const __new_allocator<_Up>&) 27002: noexcept 27002: { return false; } 27002: 27002: 27002: private: 27002: constexpr size_type 27002: _M_max_size() const noexcept 27002: { 27002: 27002: return std::size_t(0x7fffffff) / sizeof(_Tp); 27002: 27002: 27002: 27002: } 27002: }; 27002: 27002: 27002: } 27002: # 34 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++allocator.h" 2 3 27002: 27002: 27002: namespace std 27002: { 27002: # 46 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++allocator.h" 3 27002: template 27002: using __allocator_base = __new_allocator<_Tp>; 27002: } 27002: # 47 "/usr/include/c++/12/bits/allocator.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/memoryfwd.h" 1 3 27002: # 46 "/usr/include/c++/12/bits/memoryfwd.h" 3 27002: 27002: # 47 "/usr/include/c++/12/bits/memoryfwd.h" 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 63 "/usr/include/c++/12/bits/memoryfwd.h" 3 27002: template 27002: class allocator; 27002: 27002: template<> 27002: class allocator; 27002: 27002: 27002: 27002: template 27002: struct uses_allocator; 27002: 27002: template 27002: struct allocator_traits; 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 48 "/usr/include/c++/12/bits/allocator.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 71 "/usr/include/c++/12/bits/allocator.h" 3 27002: template<> 27002: class allocator 27002: { 27002: public: 27002: typedef void value_type; 27002: typedef size_t size_type; 27002: typedef ptrdiff_t difference_type; 27002: 27002: 27002: 27002: typedef void* pointer; 27002: typedef const void* const_pointer; 27002: 27002: template 27002: struct rebind 27002: { typedef allocator<_Tp1> other; }; 27002: 27002: 27002: 27002: 27002: 27002: using propagate_on_container_move_assignment = true_type; 27002: 27002: using is_always_equal 27002: 27002: = true_type; 27002: # 113 "/usr/include/c++/12/bits/allocator.h" 3 27002: }; 27002: # 123 "/usr/include/c++/12/bits/allocator.h" 3 27002: template 27002: class allocator : public __allocator_base<_Tp> 27002: { 27002: public: 27002: typedef _Tp value_type; 27002: typedef size_t size_type; 27002: typedef ptrdiff_t difference_type; 27002: 27002: 27002: 27002: typedef _Tp* pointer; 27002: typedef const _Tp* const_pointer; 27002: typedef _Tp& reference; 27002: typedef const _Tp& const_reference; 27002: 27002: template 27002: struct rebind 27002: { typedef allocator<_Tp1> other; }; 27002: 27002: 27002: 27002: 27002: 27002: using propagate_on_container_move_assignment = true_type; 27002: 27002: using is_always_equal 27002: 27002: = true_type; 27002: 27002: 27002: 27002: 27002: 27002: allocator() noexcept { } 27002: 27002: 27002: allocator(const allocator& __a) noexcept 27002: : __allocator_base<_Tp>(__a) { } 27002: 27002: 27002: 27002: allocator& operator=(const allocator&) = default; 27002: 27002: 27002: template 27002: 27002: allocator(const allocator<_Tp1>&) noexcept { } 27002: 27002: 27002: 27002: 27002: ~allocator() noexcept { } 27002: # 204 "/usr/include/c++/12/bits/allocator.h" 3 27002: friend bool 27002: operator==(const allocator&, const allocator&) noexcept 27002: { return true; } 27002: 27002: 27002: friend bool 27002: operator!=(const allocator&, const allocator&) noexcept 27002: { return false; } 27002: 27002: 27002: 27002: }; 27002: 27002: template 27002: inline bool 27002: operator==(const allocator<_T1>&, const allocator<_T2>&) 27002: noexcept 27002: { return true; } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const allocator<_T1>&, const allocator<_T2>&) 27002: noexcept 27002: { return false; } 27002: 27002: 27002: 27002: 27002: template 27002: class allocator 27002: { 27002: public: 27002: typedef _Tp value_type; 27002: template allocator(const allocator<_Up>&) { } 27002: }; 27002: 27002: template 27002: class allocator 27002: { 27002: public: 27002: typedef _Tp value_type; 27002: template allocator(const allocator<_Up>&) { } 27002: }; 27002: 27002: template 27002: class allocator 27002: { 27002: public: 27002: typedef _Tp value_type; 27002: template allocator(const allocator<_Up>&) { } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern template class allocator; 27002: extern template class allocator; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __alloc_swap 27002: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 27002: 27002: template 27002: struct __alloc_swap<_Alloc, false> 27002: { 27002: static void 27002: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 27002: { 27002: 27002: if (__one != __two) 27002: swap(__one, __two); 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct __alloc_neq 27002: { 27002: static bool 27002: _S_do_it(const _Alloc&, const _Alloc&) 27002: { return false; } 27002: }; 27002: 27002: template 27002: struct __alloc_neq<_Alloc, false> 27002: { 27002: static bool 27002: _S_do_it(const _Alloc& __one, const _Alloc& __two) 27002: { return __one != __two; } 27002: }; 27002: 27002: 27002: template, 27002: is_nothrow_move_constructible>::value> 27002: struct __shrink_to_fit_aux 27002: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 27002: 27002: template 27002: struct __shrink_to_fit_aux<_Tp, true> 27002: { 27002: 27002: static bool 27002: _S_do_it(_Tp& __c) noexcept 27002: { 27002: 27002: try 27002: { 27002: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 27002: __make_move_if_noexcept_iterator(__c.end()), 27002: __c.get_allocator()).swap(__c); 27002: return true; 27002: } 27002: catch(...) 27002: { return false; } 27002: 27002: 27002: 27002: } 27002: }; 27002: 27002: 27002: 27002: } 27002: # 62 "/usr/include/c++/12/deque" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_construct.h" 1 3 27002: # 73 "/usr/include/c++/12/bits/stl_construct.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: inline void 27002: destroy_at(_Tp* __location) 27002: { 27002: if constexpr (201703L > 201703L && is_array_v<_Tp>) 27002: { 27002: for (auto& __x : *__location) 27002: std::destroy_at(std::__addressof(__x)); 27002: } 27002: else 27002: __location->~_Tp(); 27002: } 27002: # 106 "/usr/include/c++/12/bits/stl_construct.h" 3 27002: template 27002: 27002: inline void 27002: _Construct(_Tp* __p, _Args&&... __args) 27002: { 27002: # 119 "/usr/include/c++/12/bits/stl_construct.h" 3 27002: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 27002: } 27002: # 132 "/usr/include/c++/12/bits/stl_construct.h" 3 27002: template 27002: inline void 27002: _Construct_novalue(_T1* __p) 27002: { ::new((void*)__p) _T1; } 27002: 27002: template 27002: void 27002: _Destroy(_ForwardIterator __first, _ForwardIterator __last); 27002: 27002: 27002: 27002: 27002: template 27002: constexpr inline void 27002: _Destroy(_Tp* __pointer) 27002: { 27002: 27002: 27002: 27002: __pointer->~_Tp(); 27002: 27002: } 27002: 27002: template 27002: struct _Destroy_aux 27002: { 27002: template 27002: static void 27002: __destroy(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: for (; __first != __last; ++__first) 27002: std::_Destroy(std::__addressof(*__first)); 27002: } 27002: }; 27002: 27002: template<> 27002: struct _Destroy_aux 27002: { 27002: template 27002: static void 27002: __destroy(_ForwardIterator, _ForwardIterator) { } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline void 27002: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _Value_type; 27002: 27002: 27002: static_assert(is_destructible<_Value_type>::value, 27002: "value type is destructible"); 27002: 27002: 27002: 27002: 27002: 27002: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 27002: __destroy(__first, __last); 27002: } 27002: 27002: template 27002: struct _Destroy_n_aux 27002: { 27002: template 27002: static _ForwardIterator 27002: __destroy_n(_ForwardIterator __first, _Size __count) 27002: { 27002: for (; __count > 0; (void)++__first, --__count) 27002: std::_Destroy(std::__addressof(*__first)); 27002: return __first; 27002: } 27002: }; 27002: 27002: template<> 27002: struct _Destroy_n_aux 27002: { 27002: template 27002: static _ForwardIterator 27002: __destroy_n(_ForwardIterator __first, _Size __count) 27002: { 27002: std::advance(__first, __count); 27002: return __first; 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline _ForwardIterator 27002: _Destroy_n(_ForwardIterator __first, _Size __count) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _Value_type; 27002: 27002: 27002: static_assert(is_destructible<_Value_type>::value, 27002: "value type is destructible"); 27002: 27002: 27002: 27002: 27002: 27002: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 27002: __destroy_n(__first, __count); 27002: } 27002: 27002: 27002: template 27002: inline void 27002: destroy(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: std::_Destroy(__first, __last); 27002: } 27002: 27002: template 27002: inline _ForwardIterator 27002: destroy_n(_ForwardIterator __first, _Size __count) 27002: { 27002: return std::_Destroy_n(__first, __count); 27002: } 27002: 27002: 27002: 27002: } 27002: # 63 "/usr/include/c++/12/deque" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_uninitialized.h" 1 3 27002: # 64 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: # 1 "/usr/include/c++/12/ext/alloc_traits.h" 1 3 27002: # 32 "/usr/include/c++/12/ext/alloc_traits.h" 3 27002: 27002: # 33 "/usr/include/c++/12/ext/alloc_traits.h" 3 27002: 27002: # 1 "/usr/include/c++/12/bits/alloc_traits.h" 1 3 27002: # 41 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct __allocator_traits_base 27002: { 27002: template 27002: struct __rebind : __replace_first_arg<_Tp, _Up> { }; 27002: 27002: template 27002: struct __rebind<_Tp, _Up, 27002: __void_t::other>> 27002: { using type = typename _Tp::template rebind<_Up>::other; }; 27002: 27002: protected: 27002: template 27002: using __pointer = typename _Tp::pointer; 27002: template 27002: using __c_pointer = typename _Tp::const_pointer; 27002: template 27002: using __v_pointer = typename _Tp::void_pointer; 27002: template 27002: using __cv_pointer = typename _Tp::const_void_pointer; 27002: template 27002: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 27002: template 27002: using __pocma = typename _Tp::propagate_on_container_move_assignment; 27002: template 27002: using __pocs = typename _Tp::propagate_on_container_swap; 27002: template 27002: using __equal = typename _Tp::is_always_equal; 27002: }; 27002: 27002: template 27002: using __alloc_rebind 27002: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 27002: # 89 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: struct allocator_traits : __allocator_traits_base 27002: { 27002: 27002: typedef _Alloc allocator_type; 27002: 27002: typedef typename _Alloc::value_type value_type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: using pointer = __detected_or_t; 27002: 27002: private: 27002: 27002: template class _Func, typename _Tp, typename = void> 27002: struct _Ptr 27002: { 27002: using type = typename pointer_traits::template rebind<_Tp>; 27002: }; 27002: 27002: template class _Func, typename _Tp> 27002: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 27002: { 27002: using type = _Func<_Alloc>; 27002: }; 27002: 27002: 27002: template 27002: struct _Diff 27002: { using type = typename pointer_traits<_PtrT>::difference_type; }; 27002: 27002: template 27002: struct _Diff<_A2, _PtrT, __void_t> 27002: { using type = typename _A2::difference_type; }; 27002: 27002: 27002: template 27002: struct _Size : make_unsigned<_DiffT> { }; 27002: 27002: template 27002: struct _Size<_A2, _DiffT, __void_t> 27002: { using type = typename _A2::size_type; }; 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: 27002: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: using void_pointer = typename _Ptr<__v_pointer, void>::type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: using difference_type = typename _Diff<_Alloc, pointer>::type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: using size_type = typename _Size<_Alloc, difference_type>::type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: using propagate_on_container_copy_assignment 27002: = __detected_or_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: using propagate_on_container_move_assignment 27002: = __detected_or_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: using propagate_on_container_swap 27002: = __detected_or_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: using is_always_equal 27002: = __detected_or_t::type, __equal, _Alloc>; 27002: 27002: template 27002: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 27002: template 27002: using rebind_traits = allocator_traits>; 27002: 27002: private: 27002: template 27002: static constexpr auto 27002: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 27002: -> decltype(__a.allocate(__n, __hint)) 27002: { return __a.allocate(__n, __hint); } 27002: 27002: template 27002: static constexpr pointer 27002: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 27002: { return __a.allocate(__n); } 27002: 27002: template 27002: struct __construct_helper 27002: { 27002: template()->construct( 27002: std::declval<_Tp*>(), std::declval<_Args>()...))> 27002: static true_type __test(int); 27002: 27002: template 27002: static false_type __test(...); 27002: 27002: using type = decltype(__test<_Alloc>(0)); 27002: }; 27002: 27002: template 27002: using __has_construct 27002: = typename __construct_helper<_Tp, _Args...>::type; 27002: 27002: template 27002: static constexpr _Require<__has_construct<_Tp, _Args...>> 27002: _S_construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 27002: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 27002: { __a.construct(__p, std::forward<_Args>(__args)...); } 27002: 27002: template 27002: static constexpr 27002: _Require<__and_<__not_<__has_construct<_Tp, _Args...>>, 27002: is_constructible<_Tp, _Args...>>> 27002: _S_construct(_Alloc&, _Tp* __p, _Args&&... __args) 27002: noexcept(std::is_nothrow_constructible<_Tp, _Args...>::value) 27002: { 27002: 27002: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 27002: 27002: 27002: 27002: } 27002: 27002: template 27002: static constexpr auto 27002: _S_destroy(_Alloc2& __a, _Tp* __p, int) 27002: noexcept(noexcept(__a.destroy(__p))) 27002: -> decltype(__a.destroy(__p)) 27002: { __a.destroy(__p); } 27002: 27002: template 27002: static constexpr void 27002: _S_destroy(_Alloc2&, _Tp* __p, ...) 27002: noexcept(std::is_nothrow_destructible<_Tp>::value) 27002: { std::_Destroy(__p); } 27002: 27002: template 27002: static constexpr auto 27002: _S_max_size(_Alloc2& __a, int) 27002: -> decltype(__a.max_size()) 27002: { return __a.max_size(); } 27002: 27002: template 27002: static constexpr size_type 27002: _S_max_size(_Alloc2&, ...) 27002: { 27002: 27002: 27002: return __gnu_cxx::__numeric_traits::__max 27002: / sizeof(value_type); 27002: } 27002: 27002: template 27002: static constexpr auto 27002: _S_select(_Alloc2& __a, int) 27002: -> decltype(__a.select_on_container_copy_construction()) 27002: { return __a.select_on_container_copy_construction(); } 27002: 27002: template 27002: static constexpr _Alloc2 27002: _S_select(_Alloc2& __a, ...) 27002: { return __a; } 27002: 27002: public: 27002: # 316 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: [[__nodiscard__]] static pointer 27002: allocate(_Alloc& __a, size_type __n) 27002: { return __a.allocate(__n); } 27002: # 331 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: [[__nodiscard__]] static pointer 27002: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 27002: { return _S_allocate(__a, __n, __hint, 0); } 27002: # 343 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: static void 27002: deallocate(_Alloc& __a, pointer __p, size_type __n) 27002: { __a.deallocate(__p, __n); } 27002: # 358 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: static auto 27002: construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 27002: noexcept(noexcept(_S_construct(__a, __p, 27002: std::forward<_Args>(__args)...))) 27002: -> decltype(_S_construct(__a, __p, std::forward<_Args>(__args)...)) 27002: { _S_construct(__a, __p, std::forward<_Args>(__args)...); } 27002: # 374 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: static void 27002: destroy(_Alloc& __a, _Tp* __p) 27002: noexcept(noexcept(_S_destroy(__a, __p, 0))) 27002: { _S_destroy(__a, __p, 0); } 27002: # 388 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: static size_type 27002: max_size(const _Alloc& __a) noexcept 27002: { return _S_max_size(__a, 0); } 27002: # 400 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: static _Alloc 27002: select_on_container_copy_construction(const _Alloc& __rhs) 27002: { return _S_select(__rhs, 0); } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct allocator_traits> 27002: { 27002: 27002: using allocator_type = allocator<_Tp>; 27002: 27002: 27002: using value_type = _Tp; 27002: 27002: 27002: using pointer = _Tp*; 27002: 27002: 27002: using const_pointer = const _Tp*; 27002: 27002: 27002: using void_pointer = void*; 27002: 27002: 27002: using const_void_pointer = const void*; 27002: 27002: 27002: using difference_type = std::ptrdiff_t; 27002: 27002: 27002: using size_type = std::size_t; 27002: 27002: 27002: using propagate_on_container_copy_assignment = false_type; 27002: 27002: 27002: using propagate_on_container_move_assignment = true_type; 27002: 27002: 27002: using propagate_on_container_swap = false_type; 27002: 27002: 27002: using is_always_equal = true_type; 27002: 27002: template 27002: using rebind_alloc = allocator<_Up>; 27002: 27002: template 27002: using rebind_traits = allocator_traits>; 27002: # 462 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: [[__nodiscard__]] static pointer 27002: allocate(allocator_type& __a, size_type __n) 27002: { return __a.allocate(__n); } 27002: # 476 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: [[__nodiscard__]] static pointer 27002: allocate(allocator_type& __a, size_type __n, const_void_pointer __hint) 27002: { 27002: 27002: return __a.allocate(__n, __hint); 27002: 27002: 27002: 27002: } 27002: # 494 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: static void 27002: deallocate(allocator_type& __a, pointer __p, size_type __n) 27002: { __a.deallocate(__p, __n); } 27002: # 509 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: static void 27002: construct(allocator_type& __a __attribute__((__unused__)), _Up* __p, 27002: _Args&&... __args) 27002: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 27002: { 27002: 27002: __a.construct(__p, std::forward<_Args>(__args)...); 27002: 27002: 27002: 27002: } 27002: # 529 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: static void 27002: destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) 27002: noexcept(is_nothrow_destructible<_Up>::value) 27002: { 27002: 27002: __a.destroy(__p); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: static size_type 27002: max_size(const allocator_type& __a __attribute__((__unused__))) noexcept 27002: { 27002: 27002: return __a.max_size(); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: static allocator_type 27002: select_on_container_copy_construction(const allocator_type& __rhs) 27002: { return __rhs; } 27002: }; 27002: 27002: 27002: template<> 27002: struct allocator_traits> 27002: { 27002: 27002: using allocator_type = allocator; 27002: 27002: 27002: using value_type = void; 27002: 27002: 27002: using pointer = void*; 27002: 27002: 27002: using const_pointer = const void*; 27002: 27002: 27002: using void_pointer = void*; 27002: 27002: 27002: using const_void_pointer = const void*; 27002: 27002: 27002: using difference_type = std::ptrdiff_t; 27002: 27002: 27002: using size_type = std::size_t; 27002: 27002: 27002: using propagate_on_container_copy_assignment = false_type; 27002: 27002: 27002: using propagate_on_container_move_assignment = true_type; 27002: 27002: 27002: using propagate_on_container_swap = false_type; 27002: 27002: 27002: using is_always_equal = true_type; 27002: 27002: template 27002: using rebind_alloc = allocator<_Up>; 27002: 27002: template 27002: using rebind_traits = allocator_traits>; 27002: 27002: 27002: static void* 27002: allocate(allocator_type&, size_type, const void* = nullptr) = delete; 27002: 27002: 27002: static void 27002: deallocate(allocator_type&, void*, size_type) = delete; 27002: # 631 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: static void 27002: construct(allocator_type&, _Up* __p, _Args&&... __args) 27002: noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) 27002: { std::_Construct(__p, std::forward<_Args>(__args)...); } 27002: # 644 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: static void 27002: destroy(allocator_type&, _Up* __p) 27002: noexcept(is_nothrow_destructible<_Up>::value) 27002: { std::_Destroy(__p); } 27002: 27002: 27002: static size_type 27002: max_size(const allocator_type&) = delete; 27002: 27002: 27002: 27002: 27002: 27002: 27002: static allocator_type 27002: select_on_container_copy_construction(const allocator_type& __rhs) 27002: { return __rhs; } 27002: }; 27002: # 676 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: constexpr inline void 27002: __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 27002: { 27002: typedef allocator_traits<_Alloc> __traits; 27002: typedef typename __traits::propagate_on_container_copy_assignment __pocca; 27002: 27002: if constexpr (__pocca::value) 27002: __one = __two; 27002: 27002: 27002: 27002: } 27002: 27002: template 27002: constexpr _Alloc 27002: __alloc_on_copy(const _Alloc& __a) 27002: { 27002: typedef allocator_traits<_Alloc> __traits; 27002: return __traits::select_on_container_copy_construction(__a); 27002: } 27002: # 708 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: constexpr inline void 27002: __alloc_on_move(_Alloc& __one, _Alloc& __two) 27002: { 27002: typedef allocator_traits<_Alloc> __traits; 27002: typedef typename __traits::propagate_on_container_move_assignment __pocma; 27002: 27002: if constexpr (__pocma::value) 27002: __one = std::move(__two); 27002: 27002: 27002: 27002: } 27002: # 735 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: constexpr inline void 27002: __alloc_on_swap(_Alloc& __one, _Alloc& __two) 27002: { 27002: typedef allocator_traits<_Alloc> __traits; 27002: typedef typename __traits::propagate_on_container_swap __pocs; 27002: 27002: if constexpr (__pocs::value) 27002: { 27002: using std::swap; 27002: swap(__one, __two); 27002: } 27002: 27002: 27002: 27002: } 27002: 27002: template, 27002: typename = void> 27002: struct __is_alloc_insertable_impl 27002: : false_type 27002: { }; 27002: 27002: template 27002: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 27002: __void_t::construct( 27002: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 27002: std::declval<_Tp>()))>> 27002: : true_type 27002: { }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_copy_insertable 27002: : __is_alloc_insertable_impl<_Alloc, 27002: typename _Alloc::value_type const&>::type 27002: { }; 27002: 27002: 27002: template 27002: struct __is_copy_insertable> 27002: : is_copy_constructible<_Tp> 27002: { }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_move_insertable 27002: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 27002: { }; 27002: 27002: 27002: template 27002: struct __is_move_insertable> 27002: : is_move_constructible<_Tp> 27002: { }; 27002: 27002: 27002: template 27002: struct __is_allocator : false_type { }; 27002: 27002: template 27002: struct __is_allocator<_Alloc, 27002: __void_t().allocate(size_t{}))>> 27002: : true_type { }; 27002: 27002: template 27002: using _RequireAllocator 27002: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 27002: 27002: template 27002: using _RequireNotAllocator 27002: = typename enable_if::value, _Alloc>::type; 27002: # 829 "/usr/include/c++/12/bits/alloc_traits.h" 3 27002: template 27002: 27002: void 27002: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 27002: _Allocator& __alloc) 27002: { 27002: for (; __first != __last; ++__first) 27002: 27002: 27002: 27002: allocator_traits<_Allocator>::destroy(__alloc, 27002: std::__addressof(*__first)); 27002: 27002: } 27002: 27002: template 27002: 27002: inline void 27002: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 27002: allocator<_Tp>&) 27002: { 27002: _Destroy(__first, __last); 27002: } 27002: 27002: 27002: } 27002: # 35 "/usr/include/c++/12/ext/alloc_traits.h" 2 3 27002: 27002: 27002: 27002: 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __alloc_traits 27002: 27002: : std::allocator_traits<_Alloc> 27002: 27002: { 27002: typedef _Alloc allocator_type; 27002: 27002: typedef std::allocator_traits<_Alloc> _Base_type; 27002: typedef typename _Base_type::value_type value_type; 27002: typedef typename _Base_type::pointer pointer; 27002: typedef typename _Base_type::const_pointer const_pointer; 27002: typedef typename _Base_type::size_type size_type; 27002: typedef typename _Base_type::difference_type difference_type; 27002: 27002: typedef value_type& reference; 27002: typedef const value_type& const_reference; 27002: using _Base_type::allocate; 27002: using _Base_type::deallocate; 27002: using _Base_type::construct; 27002: using _Base_type::destroy; 27002: using _Base_type::max_size; 27002: 27002: private: 27002: template 27002: using __is_custom_pointer 27002: = std::__and_, 27002: std::__not_>>; 27002: 27002: public: 27002: 27002: template 27002: static constexpr 27002: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 27002: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 27002: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 27002: std::forward<_Args>(__args)...))) 27002: { 27002: _Base_type::construct(__a, std::__to_address(__p), 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: 27002: template 27002: static constexpr 27002: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 27002: destroy(_Alloc& __a, _Ptr __p) 27002: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 27002: { _Base_type::destroy(__a, std::__to_address(__p)); } 27002: 27002: static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) 27002: { return _Base_type::select_on_container_copy_construction(__a); } 27002: 27002: static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) 27002: { std::__alloc_on_swap(__a, __b); } 27002: 27002: static constexpr bool _S_propagate_on_copy_assign() 27002: { return _Base_type::propagate_on_container_copy_assignment::value; } 27002: 27002: static constexpr bool _S_propagate_on_move_assign() 27002: { return _Base_type::propagate_on_container_move_assignment::value; } 27002: 27002: static constexpr bool _S_propagate_on_swap() 27002: { return _Base_type::propagate_on_container_swap::value; } 27002: 27002: static constexpr bool _S_always_equal() 27002: { return _Base_type::is_always_equal::value; } 27002: 27002: static constexpr bool _S_nothrow_move() 27002: { return _S_propagate_on_move_assign() || _S_always_equal(); } 27002: 27002: template 27002: struct rebind 27002: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 27002: # 166 "/usr/include/c++/12/ext/alloc_traits.h" 3 27002: }; 27002: 27002: 27002: } 27002: # 65 "/usr/include/c++/12/bits/stl_uninitialized.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 81 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: constexpr bool 27002: __check_constructible() 27002: { 27002: 27002: 27002: 27002: 27002: 27002: static_assert(is_constructible<_ValueType, _Tp>::value, 27002: "result type must be constructible from input type"); 27002: 27002: return true; 27002: } 27002: # 110 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: 27002: _ForwardIterator 27002: __do_uninit_copy(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result) 27002: { 27002: _ForwardIterator __cur = __result; 27002: try 27002: { 27002: for (; __first != __last; ++__first, (void)++__cur) 27002: std::_Construct(std::__addressof(*__cur), *__first); 27002: return __cur; 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__result, __cur); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: struct __uninitialized_copy 27002: { 27002: template 27002: static _ForwardIterator 27002: __uninit_copy(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result) 27002: { return std::__do_uninit_copy(__first, __last, __result); } 27002: }; 27002: 27002: template<> 27002: struct __uninitialized_copy 27002: { 27002: template 27002: static _ForwardIterator 27002: __uninit_copy(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result) 27002: { return std::copy(__first, __last, __result); } 27002: }; 27002: # 161 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: inline _ForwardIterator 27002: uninitialized_copy(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result) 27002: { 27002: typedef typename iterator_traits<_InputIterator>::value_type 27002: _ValueType1; 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _ValueType2; 27002: 27002: 27002: 27002: 27002: const bool __can_memmove = __is_trivial(_ValueType1); 27002: 27002: 27002: 27002: 27002: using _From = decltype(*__first); 27002: 27002: const bool __assignable 27002: = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); 27002: 27002: return std::__uninitialized_copy<__can_memmove && __assignable>:: 27002: __uninit_copy(__first, __last, __result); 27002: } 27002: 27002: 27002: 27002: template 27002: void 27002: __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __x) 27002: { 27002: _ForwardIterator __cur = __first; 27002: try 27002: { 27002: for (; __cur != __last; ++__cur) 27002: std::_Construct(std::__addressof(*__cur), __x); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: struct __uninitialized_fill 27002: { 27002: template 27002: static void 27002: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __x) 27002: { std::__do_uninit_fill(__first, __last, __x); } 27002: }; 27002: 27002: template<> 27002: struct __uninitialized_fill 27002: { 27002: template 27002: static void 27002: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __x) 27002: { std::fill(__first, __last, __x); } 27002: }; 27002: # 239 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: inline void 27002: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __x) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _ValueType; 27002: 27002: 27002: 27002: const bool __can_fill 27002: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); 27002: 27002: std::__uninitialized_fill<__can_fill>:: 27002: __uninit_fill(__first, __last, __x); 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 27002: { 27002: _ForwardIterator __cur = __first; 27002: try 27002: { 27002: for (; __n > 0; --__n, (void) ++__cur) 27002: std::_Construct(std::__addressof(*__cur), __x); 27002: return __cur; 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: struct __uninitialized_fill_n 27002: { 27002: template 27002: static _ForwardIterator 27002: __uninit_fill_n(_ForwardIterator __first, _Size __n, 27002: const _Tp& __x) 27002: { return std::__do_uninit_fill_n(__first, __n, __x); } 27002: }; 27002: 27002: template<> 27002: struct __uninitialized_fill_n 27002: { 27002: template 27002: static _ForwardIterator 27002: __uninit_fill_n(_ForwardIterator __first, _Size __n, 27002: const _Tp& __x) 27002: { return std::fill_n(__first, __n, __x); } 27002: }; 27002: # 310 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: inline _ForwardIterator 27002: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _ValueType; 27002: 27002: 27002: 27002: const bool __can_fill 27002: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() 27002: 27002: 27002: 27002: && __is_integer<_Size>::__value; 27002: 27002: return __uninitialized_fill_n<__can_fill>:: 27002: __uninit_fill_n(__first, __n, __x); 27002: } 27002: # 340 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: 27002: _ForwardIterator 27002: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result, _Allocator& __alloc) 27002: { 27002: _ForwardIterator __cur = __result; 27002: try 27002: { 27002: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 27002: for (; __first != __last; ++__first, (void)++__cur) 27002: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 27002: return __cur; 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__result, __cur, __alloc); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: 27002: inline _ForwardIterator 27002: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result, allocator<_Tp>&) 27002: { 27002: 27002: 27002: 27002: 27002: return std::uninitialized_copy(__first, __last, __result); 27002: } 27002: 27002: template 27002: 27002: inline _ForwardIterator 27002: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result, _Allocator& __alloc) 27002: { 27002: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 27002: std::make_move_iterator(__last), 27002: __result, __alloc); 27002: } 27002: 27002: template 27002: 27002: inline _ForwardIterator 27002: __uninitialized_move_if_noexcept_a(_InputIterator __first, 27002: _InputIterator __last, 27002: _ForwardIterator __result, 27002: _Allocator& __alloc) 27002: { 27002: return std::__uninitialized_copy_a 27002: (std::__make_move_if_noexcept_iterator(__first), 27002: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 27002: } 27002: 27002: template 27002: 27002: void 27002: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __x, _Allocator& __alloc) 27002: { 27002: _ForwardIterator __cur = __first; 27002: try 27002: { 27002: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 27002: for (; __cur != __last; ++__cur) 27002: __traits::construct(__alloc, std::__addressof(*__cur), __x); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur, __alloc); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: 27002: inline void 27002: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __x, allocator<_Tp2>&) 27002: { 27002: 27002: 27002: 27002: 27002: std::uninitialized_fill(__first, __last, __x); 27002: } 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 27002: const _Tp& __x, _Allocator& __alloc) 27002: { 27002: _ForwardIterator __cur = __first; 27002: try 27002: { 27002: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 27002: for (; __n > 0; --__n, (void) ++__cur) 27002: __traits::construct(__alloc, std::__addressof(*__cur), __x); 27002: return __cur; 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur, __alloc); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: 27002: inline _ForwardIterator 27002: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 27002: const _Tp& __x, allocator<_Tp2>&) 27002: { 27002: 27002: 27002: 27002: 27002: return std::uninitialized_fill_n(__first, __n, __x); 27002: } 27002: # 480 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: inline _ForwardIterator 27002: __uninitialized_copy_move(_InputIterator1 __first1, 27002: _InputIterator1 __last1, 27002: _InputIterator2 __first2, 27002: _InputIterator2 __last2, 27002: _ForwardIterator __result, 27002: _Allocator& __alloc) 27002: { 27002: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 27002: __result, 27002: __alloc); 27002: try 27002: { 27002: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__result, __mid, __alloc); 27002: throw; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline _ForwardIterator 27002: __uninitialized_move_copy(_InputIterator1 __first1, 27002: _InputIterator1 __last1, 27002: _InputIterator2 __first2, 27002: _InputIterator2 __last2, 27002: _ForwardIterator __result, 27002: _Allocator& __alloc) 27002: { 27002: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 27002: __result, 27002: __alloc); 27002: try 27002: { 27002: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__result, __mid, __alloc); 27002: throw; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: inline _ForwardIterator 27002: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 27002: const _Tp& __x, _InputIterator __first, 27002: _InputIterator __last, _Allocator& __alloc) 27002: { 27002: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 27002: try 27002: { 27002: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__result, __mid, __alloc); 27002: throw; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: inline void 27002: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 27002: _ForwardIterator __first2, 27002: _ForwardIterator __last2, const _Tp& __x, 27002: _Allocator& __alloc) 27002: { 27002: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 27002: __first2, 27002: __alloc); 27002: try 27002: { 27002: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first2, __mid2, __alloc); 27002: throw; 27002: } 27002: } 27002: # 587 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: struct __uninitialized_default_1 27002: { 27002: template 27002: static void 27002: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: _ForwardIterator __cur = __first; 27002: try 27002: { 27002: for (; __cur != __last; ++__cur) 27002: std::_Construct(std::__addressof(*__cur)); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur); 27002: throw; 27002: } 27002: } 27002: }; 27002: 27002: template<> 27002: struct __uninitialized_default_1 27002: { 27002: template 27002: static void 27002: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: if (__first == __last) 27002: return; 27002: 27002: typename iterator_traits<_ForwardIterator>::value_type* __val 27002: = std::__addressof(*__first); 27002: std::_Construct(__val); 27002: if (++__first != __last) 27002: std::fill(__first, __last, *__val); 27002: } 27002: }; 27002: 27002: template 27002: struct __uninitialized_default_n_1 27002: { 27002: template 27002: 27002: static _ForwardIterator 27002: __uninit_default_n(_ForwardIterator __first, _Size __n) 27002: { 27002: _ForwardIterator __cur = __first; 27002: try 27002: { 27002: for (; __n > 0; --__n, (void) ++__cur) 27002: std::_Construct(std::__addressof(*__cur)); 27002: return __cur; 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur); 27002: throw; 27002: } 27002: } 27002: }; 27002: 27002: template<> 27002: struct __uninitialized_default_n_1 27002: { 27002: template 27002: 27002: static _ForwardIterator 27002: __uninit_default_n(_ForwardIterator __first, _Size __n) 27002: { 27002: if (__n > 0) 27002: { 27002: typename iterator_traits<_ForwardIterator>::value_type* __val 27002: = std::__addressof(*__first); 27002: std::_Construct(__val); 27002: ++__first; 27002: __first = std::fill_n(__first, __n - 1, *__val); 27002: } 27002: return __first; 27002: } 27002: }; 27002: 27002: 27002: 27002: template 27002: inline void 27002: __uninitialized_default(_ForwardIterator __first, 27002: _ForwardIterator __last) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _ValueType; 27002: 27002: const bool __assignable = is_copy_assignable<_ValueType>::value; 27002: 27002: std::__uninitialized_default_1<__is_trivial(_ValueType) 27002: && __assignable>:: 27002: __uninit_default(__first, __last); 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: inline _ForwardIterator 27002: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _ValueType; 27002: 27002: constexpr bool __can_fill 27002: = __and_, is_copy_assignable<_ValueType>>::value; 27002: 27002: return __uninitialized_default_n_1<__is_trivial(_ValueType) 27002: && __can_fill>:: 27002: __uninit_default_n(__first, __n); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: void 27002: __uninitialized_default_a(_ForwardIterator __first, 27002: _ForwardIterator __last, 27002: _Allocator& __alloc) 27002: { 27002: _ForwardIterator __cur = __first; 27002: try 27002: { 27002: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 27002: for (; __cur != __last; ++__cur) 27002: __traits::construct(__alloc, std::__addressof(*__cur)); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur, __alloc); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: inline void 27002: __uninitialized_default_a(_ForwardIterator __first, 27002: _ForwardIterator __last, 27002: allocator<_Tp>&) 27002: { std::__uninitialized_default(__first, __last); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: _ForwardIterator 27002: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 27002: _Allocator& __alloc) 27002: { 27002: _ForwardIterator __cur = __first; 27002: try 27002: { 27002: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 27002: for (; __n > 0; --__n, (void) ++__cur) 27002: __traits::construct(__alloc, std::__addressof(*__cur)); 27002: return __cur; 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur, __alloc); 27002: throw; 27002: } 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: inline _ForwardIterator 27002: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 27002: allocator<_Tp>&) 27002: { return std::__uninitialized_default_n(__first, __n); } 27002: 27002: template 27002: struct __uninitialized_default_novalue_1 27002: { 27002: template 27002: static void 27002: __uninit_default_novalue(_ForwardIterator __first, 27002: _ForwardIterator __last) 27002: { 27002: _ForwardIterator __cur = __first; 27002: try 27002: { 27002: for (; __cur != __last; ++__cur) 27002: std::_Construct_novalue(std::__addressof(*__cur)); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur); 27002: throw; 27002: } 27002: } 27002: }; 27002: 27002: template<> 27002: struct __uninitialized_default_novalue_1 27002: { 27002: template 27002: static void 27002: __uninit_default_novalue(_ForwardIterator __first, 27002: _ForwardIterator __last) 27002: { 27002: } 27002: }; 27002: 27002: template 27002: struct __uninitialized_default_novalue_n_1 27002: { 27002: template 27002: static _ForwardIterator 27002: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 27002: { 27002: _ForwardIterator __cur = __first; 27002: try 27002: { 27002: for (; __n > 0; --__n, (void) ++__cur) 27002: std::_Construct_novalue(std::__addressof(*__cur)); 27002: return __cur; 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur); 27002: throw; 27002: } 27002: } 27002: }; 27002: 27002: template<> 27002: struct __uninitialized_default_novalue_n_1 27002: { 27002: template 27002: static _ForwardIterator 27002: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 27002: { return std::next(__first, __n); } 27002: }; 27002: 27002: 27002: 27002: template 27002: inline void 27002: __uninitialized_default_novalue(_ForwardIterator __first, 27002: _ForwardIterator __last) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _ValueType; 27002: 27002: std::__uninitialized_default_novalue_1< 27002: is_trivially_default_constructible<_ValueType>::value>:: 27002: __uninit_default_novalue(__first, __last); 27002: } 27002: 27002: 27002: 27002: template 27002: inline _ForwardIterator 27002: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _ValueType; 27002: 27002: return __uninitialized_default_novalue_n_1< 27002: is_trivially_default_constructible<_ValueType>::value>:: 27002: __uninit_default_novalue_n(__first, __n); 27002: } 27002: 27002: template 27002: _ForwardIterator 27002: __uninitialized_copy_n(_InputIterator __first, _Size __n, 27002: _ForwardIterator __result, input_iterator_tag) 27002: { 27002: _ForwardIterator __cur = __result; 27002: try 27002: { 27002: for (; __n > 0; --__n, (void) ++__first, ++__cur) 27002: std::_Construct(std::__addressof(*__cur), *__first); 27002: return __cur; 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__result, __cur); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: inline _ForwardIterator 27002: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 27002: _ForwardIterator __result, 27002: random_access_iterator_tag) 27002: { return std::uninitialized_copy(__first, __first + __n, __result); } 27002: 27002: template 27002: pair<_InputIterator, _ForwardIterator> 27002: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 27002: _ForwardIterator __result, input_iterator_tag) 27002: { 27002: _ForwardIterator __cur = __result; 27002: try 27002: { 27002: for (; __n > 0; --__n, (void) ++__first, ++__cur) 27002: std::_Construct(std::__addressof(*__cur), *__first); 27002: return {__first, __cur}; 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__result, __cur); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: inline pair<_RandomAccessIterator, _ForwardIterator> 27002: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 27002: _ForwardIterator __result, 27002: random_access_iterator_tag) 27002: { 27002: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 27002: auto __first_res = std::next(__first, __n); 27002: return {__first_res, __second_res}; 27002: } 27002: # 933 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: inline _ForwardIterator 27002: uninitialized_copy_n(_InputIterator __first, _Size __n, 27002: _ForwardIterator __result) 27002: { return std::__uninitialized_copy_n(__first, __n, __result, 27002: std::__iterator_category(__first)); } 27002: 27002: 27002: template 27002: inline pair<_InputIterator, _ForwardIterator> 27002: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 27002: _ForwardIterator __result) 27002: { 27002: return 27002: std::__uninitialized_copy_n_pair(__first, __n, __result, 27002: std::__iterator_category(__first)); 27002: } 27002: # 962 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: inline void 27002: uninitialized_default_construct(_ForwardIterator __first, 27002: _ForwardIterator __last) 27002: { 27002: __uninitialized_default_novalue(__first, __last); 27002: } 27002: # 977 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: inline _ForwardIterator 27002: uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) 27002: { 27002: return __uninitialized_default_novalue_n(__first, __count); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline void 27002: uninitialized_value_construct(_ForwardIterator __first, 27002: _ForwardIterator __last) 27002: { 27002: return __uninitialized_default(__first, __last); 27002: } 27002: # 1005 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: inline _ForwardIterator 27002: uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) 27002: { 27002: return __uninitialized_default_n(__first, __count); 27002: } 27002: # 1020 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: inline _ForwardIterator 27002: uninitialized_move(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result) 27002: { 27002: return std::uninitialized_copy 27002: (std::make_move_iterator(__first), 27002: std::make_move_iterator(__last), __result); 27002: } 27002: # 1038 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: template 27002: inline pair<_InputIterator, _ForwardIterator> 27002: uninitialized_move_n(_InputIterator __first, _Size __count, 27002: _ForwardIterator __result) 27002: { 27002: auto __res = std::__uninitialized_copy_n_pair 27002: (std::make_move_iterator(__first), 27002: __count, __result); 27002: return {__res.first.base(), __res.second}; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline void 27002: __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, 27002: _Allocator& __alloc) 27002: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 27002: __dest, std::move(*__orig))) 27002: && noexcept(std::allocator_traits<_Allocator>::destroy( 27002: __alloc, std::__addressof(*__orig)))) 27002: { 27002: typedef std::allocator_traits<_Allocator> __traits; 27002: __traits::construct(__alloc, __dest, std::move(*__orig)); 27002: __traits::destroy(__alloc, std::__addressof(*__orig)); 27002: } 27002: 27002: 27002: 27002: template 27002: struct __is_bitwise_relocatable 27002: : is_trivial<_Tp> { }; 27002: 27002: template 27002: 27002: inline _ForwardIterator 27002: __relocate_a_1(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result, _Allocator& __alloc) 27002: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 27002: std::addressof(*__first), 27002: __alloc))) 27002: { 27002: typedef typename iterator_traits<_InputIterator>::value_type 27002: _ValueType; 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _ValueType2; 27002: static_assert(std::is_same<_ValueType, _ValueType2>::value, 27002: "relocation is only possible for values of the same type"); 27002: _ForwardIterator __cur = __result; 27002: for (; __first != __last; ++__first, (void)++__cur) 27002: std::__relocate_object_a(std::__addressof(*__cur), 27002: std::__addressof(*__first), __alloc); 27002: return __cur; 27002: } 27002: 27002: template 27002: 27002: inline __enable_if_t::value, _Tp*> 27002: __relocate_a_1(_Tp* __first, _Tp* __last, 27002: _Tp* __result, 27002: [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept 27002: { 27002: ptrdiff_t __count = __last - __first; 27002: if (__count > 0) 27002: { 27002: # 1117 "/usr/include/c++/12/bits/stl_uninitialized.h" 3 27002: __builtin_memmove(__result, __first, __count * sizeof(_Tp)); 27002: } 27002: return __result + __count; 27002: } 27002: 27002: 27002: template 27002: 27002: inline _ForwardIterator 27002: __relocate_a(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result, _Allocator& __alloc) 27002: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 27002: std::__niter_base(__last), 27002: std::__niter_base(__result), __alloc))) 27002: { 27002: return std::__relocate_a_1(std::__niter_base(__first), 27002: std::__niter_base(__last), 27002: std::__niter_base(__result), __alloc); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 64 "/usr/include/c++/12/deque" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_deque.h" 1 3 27002: # 63 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: # 1 "/usr/include/c++/12/initializer_list" 1 3 27002: # 33 "/usr/include/c++/12/initializer_list" 3 27002: 27002: # 34 "/usr/include/c++/12/initializer_list" 3 27002: 27002: 27002: 27002: 27002: 27002: #pragma GCC visibility push(default) 27002: 27002: 27002: 27002: namespace std 27002: { 27002: 27002: template 27002: class initializer_list 27002: { 27002: public: 27002: typedef _E value_type; 27002: typedef const _E& reference; 27002: typedef const _E& const_reference; 27002: typedef size_t size_type; 27002: typedef const _E* iterator; 27002: typedef const _E* const_iterator; 27002: 27002: private: 27002: iterator _M_array; 27002: size_type _M_len; 27002: 27002: 27002: constexpr initializer_list(const_iterator __a, size_type __l) 27002: : _M_array(__a), _M_len(__l) { } 27002: 27002: public: 27002: constexpr initializer_list() noexcept 27002: : _M_array(0), _M_len(0) { } 27002: 27002: 27002: constexpr size_type 27002: size() const noexcept { return _M_len; } 27002: 27002: 27002: constexpr const_iterator 27002: begin() const noexcept { return _M_array; } 27002: 27002: 27002: constexpr const_iterator 27002: end() const noexcept { return begin() + size(); } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr const _Tp* 27002: begin(initializer_list<_Tp> __ils) noexcept 27002: { return __ils.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr const _Tp* 27002: end(initializer_list<_Tp> __ils) noexcept 27002: { return __ils.end(); } 27002: } 27002: 27002: #pragma GCC visibility pop 27002: # 64 "/usr/include/c++/12/bits/stl_deque.h" 2 3 27002: # 72 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: # 95 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: constexpr inline size_t 27002: __deque_buf_size(size_t __size) 27002: { return (__size < 512 27002: ? size_t(512 / __size) : size_t(1)); } 27002: # 112 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template 27002: struct _Deque_iterator 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: private: 27002: template 27002: using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_rebind<_Ptr, _CvTp>>; 27002: public: 27002: typedef __iter<_Tp> iterator; 27002: typedef __iter const_iterator; 27002: typedef __ptr_rebind<_Ptr, _Tp> _Elt_pointer; 27002: typedef __ptr_rebind<_Ptr, _Elt_pointer> _Map_pointer; 27002: 27002: 27002: static size_t _S_buffer_size() noexcept 27002: { return __deque_buf_size(sizeof(_Tp)); } 27002: 27002: typedef std::random_access_iterator_tag iterator_category; 27002: typedef _Tp value_type; 27002: typedef _Ptr pointer; 27002: typedef _Ref reference; 27002: typedef size_t size_type; 27002: typedef ptrdiff_t difference_type; 27002: typedef _Deque_iterator _Self; 27002: 27002: _Elt_pointer _M_cur; 27002: _Elt_pointer _M_first; 27002: _Elt_pointer _M_last; 27002: _Map_pointer _M_node; 27002: 27002: _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) noexcept 27002: : _M_cur(__x), _M_first(*__y), 27002: _M_last(*__y + _S_buffer_size()), _M_node(__y) { } 27002: 27002: _Deque_iterator() noexcept 27002: : _M_cur(), _M_first(), _M_last(), _M_node() { } 27002: # 161 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template, 27002: is_same<_Iter, iterator>>> 27002: _Deque_iterator(const _Iter& __x) noexcept 27002: : _M_cur(__x._M_cur), _M_first(__x._M_first), 27002: _M_last(__x._M_last), _M_node(__x._M_node) { } 27002: 27002: _Deque_iterator(const _Deque_iterator& __x) noexcept 27002: : _M_cur(__x._M_cur), _M_first(__x._M_first), 27002: _M_last(__x._M_last), _M_node(__x._M_node) { } 27002: 27002: _Deque_iterator& operator=(const _Deque_iterator&) = default; 27002: 27002: 27002: iterator 27002: _M_const_cast() const noexcept 27002: { return iterator(_M_cur, _M_node); } 27002: 27002: [[__nodiscard__]] 27002: reference 27002: operator*() const noexcept 27002: { return *_M_cur; } 27002: 27002: [[__nodiscard__]] 27002: pointer 27002: operator->() const noexcept 27002: { return _M_cur; } 27002: 27002: _Self& 27002: operator++() noexcept 27002: { 27002: ++_M_cur; 27002: if (_M_cur == _M_last) 27002: { 27002: _M_set_node(_M_node + 1); 27002: _M_cur = _M_first; 27002: } 27002: return *this; 27002: } 27002: 27002: _Self 27002: operator++(int) noexcept 27002: { 27002: _Self __tmp = *this; 27002: ++*this; 27002: return __tmp; 27002: } 27002: 27002: _Self& 27002: operator--() noexcept 27002: { 27002: if (_M_cur == _M_first) 27002: { 27002: _M_set_node(_M_node - 1); 27002: _M_cur = _M_last; 27002: } 27002: --_M_cur; 27002: return *this; 27002: } 27002: 27002: _Self 27002: operator--(int) noexcept 27002: { 27002: _Self __tmp = *this; 27002: --*this; 27002: return __tmp; 27002: } 27002: 27002: _Self& 27002: operator+=(difference_type __n) noexcept 27002: { 27002: const difference_type __offset = __n + (_M_cur - _M_first); 27002: if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) 27002: _M_cur += __n; 27002: else 27002: { 27002: const difference_type __node_offset = 27002: __offset > 0 ? __offset / difference_type(_S_buffer_size()) 27002: : -difference_type((-__offset - 1) 27002: / _S_buffer_size()) - 1; 27002: _M_set_node(_M_node + __node_offset); 27002: _M_cur = _M_first + (__offset - __node_offset 27002: * difference_type(_S_buffer_size())); 27002: } 27002: return *this; 27002: } 27002: 27002: _Self& 27002: operator-=(difference_type __n) noexcept 27002: { return *this += -__n; } 27002: 27002: [[__nodiscard__]] 27002: reference 27002: operator[](difference_type __n) const noexcept 27002: { return *(*this + __n); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: _M_set_node(_Map_pointer __new_node) noexcept 27002: { 27002: _M_node = __new_node; 27002: _M_first = *__new_node; 27002: _M_last = _M_first + difference_type(_S_buffer_size()); 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator==(const _Self& __x, const _Self& __y) noexcept 27002: { return __x._M_cur == __y._M_cur; } 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: friend bool 27002: operator==(const _Self& __x, 27002: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 27002: noexcept 27002: { return __x._M_cur == __y._M_cur; } 27002: # 296 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: [[__nodiscard__]] 27002: friend bool 27002: operator!=(const _Self& __x, const _Self& __y) noexcept 27002: { return !(__x == __y); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: friend bool 27002: operator!=(const _Self& __x, 27002: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 27002: noexcept 27002: { return !(__x == __y); } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator<(const _Self& __x, const _Self& __y) noexcept 27002: { 27002: return (__x._M_node == __y._M_node) 27002: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 27002: } 27002: 27002: template 27002: [[__nodiscard__]] 27002: friend bool 27002: operator<(const _Self& __x, 27002: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 27002: noexcept 27002: { 27002: return (__x._M_node == __y._M_node) 27002: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator>(const _Self& __x, const _Self& __y) noexcept 27002: { return __y < __x; } 27002: 27002: template 27002: [[__nodiscard__]] 27002: friend bool 27002: operator>(const _Self& __x, 27002: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 27002: noexcept 27002: { return __y < __x; } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator<=(const _Self& __x, const _Self& __y) noexcept 27002: { return !(__y < __x); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: friend bool 27002: operator<=(const _Self& __x, 27002: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 27002: noexcept 27002: { return !(__y < __x); } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator>=(const _Self& __x, const _Self& __y) noexcept 27002: { return !(__x < __y); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: friend bool 27002: operator>=(const _Self& __x, 27002: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 27002: noexcept 27002: { return !(__x < __y); } 27002: 27002: 27002: [[__nodiscard__]] 27002: friend difference_type 27002: operator-(const _Self& __x, const _Self& __y) noexcept 27002: { 27002: return difference_type(_S_buffer_size()) 27002: * (__x._M_node - __y._M_node - bool(__x._M_node)) 27002: + (__x._M_cur - __x._M_first) 27002: + (__y._M_last - __y._M_cur); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: friend difference_type 27002: operator-(const _Self& __x, 27002: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 27002: noexcept 27002: { 27002: return difference_type(_S_buffer_size()) 27002: * (__x._M_node - __y._M_node - bool(__x._M_node)) 27002: + (__x._M_cur - __x._M_first) 27002: + (__y._M_last - __y._M_cur); 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend _Self 27002: operator+(const _Self& __x, difference_type __n) noexcept 27002: { 27002: _Self __tmp = __x; 27002: __tmp += __n; 27002: return __tmp; 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend _Self 27002: operator-(const _Self& __x, difference_type __n) noexcept 27002: { 27002: _Self __tmp = __x; 27002: __tmp -= __n; 27002: return __tmp; 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend _Self 27002: operator+(difference_type __n, const _Self& __x) noexcept 27002: { return __x + __n; } 27002: }; 27002: # 429 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template 27002: class _Deque_base 27002: { 27002: protected: 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind<_Tp>::other _Tp_alloc_type; 27002: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 27002: 27002: 27002: 27002: 27002: 27002: typedef typename _Alloc_traits::pointer _Ptr; 27002: typedef typename _Alloc_traits::const_pointer _Ptr_const; 27002: 27002: 27002: typedef typename _Alloc_traits::template rebind<_Ptr>::other 27002: _Map_alloc_type; 27002: typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; 27002: 27002: typedef _Alloc allocator_type; 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return allocator_type(_M_get_Tp_allocator()); } 27002: 27002: typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; 27002: typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; 27002: 27002: _Deque_base() 27002: : _M_impl() 27002: { _M_initialize_map(0); } 27002: 27002: _Deque_base(size_t __num_elements) 27002: : _M_impl() 27002: { _M_initialize_map(__num_elements); } 27002: 27002: _Deque_base(const allocator_type& __a, size_t __num_elements) 27002: : _M_impl(__a) 27002: { _M_initialize_map(__num_elements); } 27002: 27002: _Deque_base(const allocator_type& __a) 27002: : _M_impl(__a) 27002: { } 27002: 27002: 27002: _Deque_base(_Deque_base&& __x) 27002: : _M_impl(std::move(__x._M_get_Tp_allocator())) 27002: { 27002: _M_initialize_map(0); 27002: if (__x._M_impl._M_map) 27002: this->_M_impl._M_swap_data(__x._M_impl); 27002: } 27002: 27002: _Deque_base(_Deque_base&& __x, const allocator_type& __a) 27002: : _M_impl(std::move(__x._M_impl), _Tp_alloc_type(__a)) 27002: { __x._M_initialize_map(0); } 27002: 27002: _Deque_base(_Deque_base&& __x, const allocator_type& __a, size_t __n) 27002: : _M_impl(__a) 27002: { 27002: if (__x.get_allocator() == __a) 27002: { 27002: if (__x._M_impl._M_map) 27002: { 27002: _M_initialize_map(0); 27002: this->_M_impl._M_swap_data(__x._M_impl); 27002: } 27002: } 27002: else 27002: { 27002: _M_initialize_map(__n); 27002: } 27002: } 27002: 27002: 27002: ~_Deque_base() noexcept; 27002: 27002: typedef typename iterator::_Map_pointer _Map_pointer; 27002: 27002: struct _Deque_impl_data 27002: { 27002: _Map_pointer _M_map; 27002: size_t _M_map_size; 27002: iterator _M_start; 27002: iterator _M_finish; 27002: 27002: _Deque_impl_data() noexcept 27002: : _M_map(), _M_map_size(), _M_start(), _M_finish() 27002: { } 27002: 27002: 27002: _Deque_impl_data(const _Deque_impl_data&) = default; 27002: _Deque_impl_data& 27002: operator=(const _Deque_impl_data&) = default; 27002: 27002: _Deque_impl_data(_Deque_impl_data&& __x) noexcept 27002: : _Deque_impl_data(__x) 27002: { __x = _Deque_impl_data(); } 27002: 27002: 27002: void 27002: _M_swap_data(_Deque_impl_data& __x) noexcept 27002: { 27002: 27002: 27002: std::swap(*this, __x); 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: struct _Deque_impl 27002: : public _Tp_alloc_type, public _Deque_impl_data 27002: { 27002: _Deque_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 27002: 27002: : _Tp_alloc_type() 27002: { } 27002: 27002: _Deque_impl(const _Tp_alloc_type& __a) noexcept 27002: : _Tp_alloc_type(__a) 27002: { } 27002: 27002: 27002: _Deque_impl(_Deque_impl&&) = default; 27002: 27002: _Deque_impl(_Tp_alloc_type&& __a) noexcept 27002: : _Tp_alloc_type(std::move(__a)) 27002: { } 27002: 27002: _Deque_impl(_Deque_impl&& __d, _Tp_alloc_type&& __a) 27002: : _Tp_alloc_type(std::move(__a)), _Deque_impl_data(std::move(__d)) 27002: { } 27002: 27002: }; 27002: 27002: _Tp_alloc_type& 27002: _M_get_Tp_allocator() noexcept 27002: { return this->_M_impl; } 27002: 27002: const _Tp_alloc_type& 27002: _M_get_Tp_allocator() const noexcept 27002: { return this->_M_impl; } 27002: 27002: _Map_alloc_type 27002: _M_get_map_allocator() const noexcept 27002: { return _Map_alloc_type(_M_get_Tp_allocator()); } 27002: 27002: _Ptr 27002: _M_allocate_node() 27002: { 27002: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 27002: return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); 27002: } 27002: 27002: void 27002: _M_deallocate_node(_Ptr __p) noexcept 27002: { 27002: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 27002: _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); 27002: } 27002: 27002: _Map_pointer 27002: _M_allocate_map(size_t __n) 27002: { 27002: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 27002: return _Map_alloc_traits::allocate(__map_alloc, __n); 27002: } 27002: 27002: void 27002: _M_deallocate_map(_Map_pointer __p, size_t __n) noexcept 27002: { 27002: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 27002: _Map_alloc_traits::deallocate(__map_alloc, __p, __n); 27002: } 27002: 27002: void _M_initialize_map(size_t); 27002: void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); 27002: void _M_destroy_nodes(_Map_pointer __nstart, 27002: _Map_pointer __nfinish) noexcept; 27002: enum { _S_initial_map_size = 8 }; 27002: 27002: _Deque_impl _M_impl; 27002: }; 27002: 27002: template 27002: _Deque_base<_Tp, _Alloc>:: 27002: ~_Deque_base() noexcept 27002: { 27002: if (this->_M_impl._M_map) 27002: { 27002: _M_destroy_nodes(this->_M_impl._M_start._M_node, 27002: this->_M_impl._M_finish._M_node + 1); 27002: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 27002: } 27002: } 27002: # 636 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template 27002: void 27002: _Deque_base<_Tp, _Alloc>:: 27002: _M_initialize_map(size_t __num_elements) 27002: { 27002: const size_t __num_nodes = (__num_elements / __deque_buf_size(sizeof(_Tp)) 27002: + 1); 27002: 27002: this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, 27002: size_t(__num_nodes + 2)); 27002: this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); 27002: 27002: 27002: 27002: 27002: 27002: 27002: _Map_pointer __nstart = (this->_M_impl._M_map 27002: + (this->_M_impl._M_map_size - __num_nodes) / 2); 27002: _Map_pointer __nfinish = __nstart + __num_nodes; 27002: 27002: try 27002: { _M_create_nodes(__nstart, __nfinish); } 27002: catch(...) 27002: { 27002: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 27002: this->_M_impl._M_map = _Map_pointer(); 27002: this->_M_impl._M_map_size = 0; 27002: throw; 27002: } 27002: 27002: this->_M_impl._M_start._M_set_node(__nstart); 27002: this->_M_impl._M_finish._M_set_node(__nfinish - 1); 27002: this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; 27002: this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first 27002: + __num_elements 27002: % __deque_buf_size(sizeof(_Tp))); 27002: } 27002: 27002: template 27002: void 27002: _Deque_base<_Tp, _Alloc>:: 27002: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) 27002: { 27002: _Map_pointer __cur; 27002: try 27002: { 27002: for (__cur = __nstart; __cur < __nfinish; ++__cur) 27002: *__cur = this->_M_allocate_node(); 27002: } 27002: catch(...) 27002: { 27002: _M_destroy_nodes(__nstart, __cur); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: void 27002: _Deque_base<_Tp, _Alloc>:: 27002: _M_destroy_nodes(_Map_pointer __nstart, 27002: _Map_pointer __nfinish) noexcept 27002: { 27002: for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) 27002: _M_deallocate_node(*__n); 27002: } 27002: # 787 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template > 27002: class deque : protected _Deque_base<_Tp, _Alloc> 27002: { 27002: # 800 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: static_assert(is_same::type, _Tp>::value, 27002: "std::deque must have a non-const, non-volatile value_type"); 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef _Deque_base<_Tp, _Alloc> _Base; 27002: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 27002: typedef typename _Base::_Alloc_traits _Alloc_traits; 27002: typedef typename _Base::_Map_pointer _Map_pointer; 27002: 27002: public: 27002: typedef _Tp value_type; 27002: typedef typename _Alloc_traits::pointer pointer; 27002: typedef typename _Alloc_traits::const_pointer const_pointer; 27002: typedef typename _Alloc_traits::reference reference; 27002: typedef typename _Alloc_traits::const_reference const_reference; 27002: typedef typename _Base::iterator iterator; 27002: typedef typename _Base::const_iterator const_iterator; 27002: typedef std::reverse_iterator const_reverse_iterator; 27002: typedef std::reverse_iterator reverse_iterator; 27002: typedef size_t size_type; 27002: typedef ptrdiff_t difference_type; 27002: typedef _Alloc allocator_type; 27002: 27002: private: 27002: static size_t _S_buffer_size() noexcept 27002: { return __deque_buf_size(sizeof(_Tp)); } 27002: 27002: 27002: using _Base::_M_initialize_map; 27002: using _Base::_M_create_nodes; 27002: using _Base::_M_destroy_nodes; 27002: using _Base::_M_allocate_node; 27002: using _Base::_M_deallocate_node; 27002: using _Base::_M_allocate_map; 27002: using _Base::_M_deallocate_map; 27002: using _Base::_M_get_Tp_allocator; 27002: 27002: 27002: 27002: 27002: 27002: using _Base::_M_impl; 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: deque() = default; 27002: # 864 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: explicit 27002: deque(const allocator_type& __a) 27002: : _Base(__a, 0) { } 27002: # 877 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: explicit 27002: deque(size_type __n, const allocator_type& __a = allocator_type()) 27002: : _Base(__a, _S_check_init_len(__n, __a)) 27002: { _M_default_initialize(); } 27002: # 890 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: deque(size_type __n, const value_type& __value, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(__a, _S_check_init_len(__n, __a)) 27002: { _M_fill_initialize(__value); } 27002: # 917 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: deque(const deque& __x) 27002: : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), 27002: __x.size()) 27002: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 27002: this->_M_impl._M_start, 27002: _M_get_Tp_allocator()); } 27002: # 933 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: deque(deque&&) = default; 27002: 27002: 27002: deque(const deque& __x, const __type_identity_t& __a) 27002: : _Base(__a, __x.size()) 27002: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 27002: this->_M_impl._M_start, 27002: _M_get_Tp_allocator()); } 27002: 27002: 27002: deque(deque&& __x, const __type_identity_t& __a) 27002: : deque(std::move(__x), __a, typename _Alloc_traits::is_always_equal{}) 27002: { } 27002: 27002: private: 27002: deque(deque&& __x, const allocator_type& __a, true_type) 27002: : _Base(std::move(__x), __a) 27002: { } 27002: 27002: deque(deque&& __x, const allocator_type& __a, false_type) 27002: : _Base(std::move(__x), __a, __x.size()) 27002: { 27002: if (__x.get_allocator() != __a && !__x.empty()) 27002: { 27002: std::__uninitialized_move_a(__x.begin(), __x.end(), 27002: this->_M_impl._M_start, 27002: _M_get_Tp_allocator()); 27002: __x.clear(); 27002: } 27002: } 27002: 27002: public: 27002: # 976 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: deque(initializer_list __l, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(__a) 27002: { 27002: _M_range_initialize(__l.begin(), __l.end(), 27002: random_access_iterator_tag()); 27002: } 27002: # 1001 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template> 27002: deque(_InputIterator __first, _InputIterator __last, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(__a) 27002: { 27002: _M_range_initialize(__first, __last, 27002: std::__iterator_category(__first)); 27002: } 27002: # 1027 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: ~deque() 27002: { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } 27002: # 1039 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: deque& 27002: operator=(const deque& __x); 27002: # 1051 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: deque& 27002: operator=(deque&& __x) noexcept(_Alloc_traits::_S_always_equal()) 27002: { 27002: using __always_equal = typename _Alloc_traits::is_always_equal; 27002: _M_move_assign1(std::move(__x), __always_equal{}); 27002: return *this; 27002: } 27002: # 1070 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: deque& 27002: operator=(initializer_list __l) 27002: { 27002: _M_assign_aux(__l.begin(), __l.end(), 27002: random_access_iterator_tag()); 27002: return *this; 27002: } 27002: # 1089 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: assign(size_type __n, const value_type& __val) 27002: { _M_fill_assign(__n, __val); } 27002: # 1106 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template> 27002: void 27002: assign(_InputIterator __first, _InputIterator __last) 27002: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 27002: # 1133 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: assign(initializer_list __l) 27002: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return _Base::get_allocator(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: iterator 27002: begin() noexcept 27002: { return this->_M_impl._M_start; } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: begin() const noexcept 27002: { return this->_M_impl._M_start; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: iterator 27002: end() noexcept 27002: { return this->_M_impl._M_finish; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: end() const noexcept 27002: { return this->_M_impl._M_finish; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reverse_iterator 27002: rbegin() noexcept 27002: { return reverse_iterator(this->_M_impl._M_finish); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: rbegin() const noexcept 27002: { return const_reverse_iterator(this->_M_impl._M_finish); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reverse_iterator 27002: rend() noexcept 27002: { return reverse_iterator(this->_M_impl._M_start); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: rend() const noexcept 27002: { return const_reverse_iterator(this->_M_impl._M_start); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: cbegin() const noexcept 27002: { return this->_M_impl._M_start; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: cend() const noexcept 27002: { return this->_M_impl._M_finish; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: crbegin() const noexcept 27002: { return const_reverse_iterator(this->_M_impl._M_finish); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: crend() const noexcept 27002: { return const_reverse_iterator(this->_M_impl._M_start); } 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: size_type 27002: size() const noexcept 27002: { return this->_M_impl._M_finish - this->_M_impl._M_start; } 27002: 27002: 27002: [[__nodiscard__]] 27002: size_type 27002: max_size() const noexcept 27002: { return _S_max_size(_M_get_Tp_allocator()); } 27002: # 1287 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: resize(size_type __new_size) 27002: { 27002: const size_type __len = size(); 27002: if (__new_size > __len) 27002: _M_default_append(__new_size - __len); 27002: else if (__new_size < __len) 27002: _M_erase_at_end(this->_M_impl._M_start 27002: + difference_type(__new_size)); 27002: } 27002: # 1309 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: resize(size_type __new_size, const value_type& __x) 27002: # 1326 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: { 27002: const size_type __len = size(); 27002: if (__new_size > __len) 27002: _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); 27002: else if (__new_size < __len) 27002: _M_erase_at_end(this->_M_impl._M_start 27002: + difference_type(__new_size)); 27002: } 27002: 27002: 27002: 27002: void 27002: shrink_to_fit() noexcept 27002: { _M_shrink_to_fit(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return this->_M_impl._M_finish == this->_M_impl._M_start; } 27002: # 1362 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: [[__nodiscard__]] 27002: reference 27002: operator[](size_type __n) noexcept 27002: { 27002: ; 27002: return this->_M_impl._M_start[difference_type(__n)]; 27002: } 27002: # 1381 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: [[__nodiscard__]] 27002: const_reference 27002: operator[](size_type __n) const noexcept 27002: { 27002: ; 27002: return this->_M_impl._M_start[difference_type(__n)]; 27002: } 27002: 27002: protected: 27002: 27002: void 27002: _M_range_check(size_type __n) const 27002: { 27002: if (__n >= this->size()) 27002: __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") 27002: 27002: , 27002: __n, this->size()); 27002: } 27002: 27002: public: 27002: # 1413 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: reference 27002: at(size_type __n) 27002: { 27002: _M_range_check(__n); 27002: return (*this)[__n]; 27002: } 27002: # 1431 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: const_reference 27002: at(size_type __n) const 27002: { 27002: _M_range_check(__n); 27002: return (*this)[__n]; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reference 27002: front() noexcept 27002: { 27002: ; 27002: return *begin(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: front() const noexcept 27002: { 27002: ; 27002: return *begin(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reference 27002: back() noexcept 27002: { 27002: ; 27002: iterator __tmp = end(); 27002: --__tmp; 27002: return *__tmp; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: back() const noexcept 27002: { 27002: ; 27002: const_iterator __tmp = end(); 27002: --__tmp; 27002: return *__tmp; 27002: } 27002: # 1500 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: push_front(const value_type& __x) 27002: { 27002: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 27002: { 27002: _Alloc_traits::construct(this->_M_impl, 27002: this->_M_impl._M_start._M_cur - 1, 27002: __x); 27002: --this->_M_impl._M_start._M_cur; 27002: } 27002: else 27002: _M_push_front_aux(__x); 27002: } 27002: 27002: 27002: void 27002: push_front(value_type&& __x) 27002: { emplace_front(std::move(__x)); } 27002: 27002: template 27002: 27002: reference 27002: 27002: 27002: 27002: emplace_front(_Args&&... __args); 27002: # 1537 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: push_back(const value_type& __x) 27002: { 27002: if (this->_M_impl._M_finish._M_cur 27002: != this->_M_impl._M_finish._M_last - 1) 27002: { 27002: _Alloc_traits::construct(this->_M_impl, 27002: this->_M_impl._M_finish._M_cur, __x); 27002: ++this->_M_impl._M_finish._M_cur; 27002: } 27002: else 27002: _M_push_back_aux(__x); 27002: } 27002: 27002: 27002: void 27002: push_back(value_type&& __x) 27002: { emplace_back(std::move(__x)); } 27002: 27002: template 27002: 27002: reference 27002: 27002: 27002: 27002: emplace_back(_Args&&... __args); 27002: # 1573 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: pop_front() noexcept 27002: { 27002: ; 27002: if (this->_M_impl._M_start._M_cur 27002: != this->_M_impl._M_start._M_last - 1) 27002: { 27002: _Alloc_traits::destroy(_M_get_Tp_allocator(), 27002: this->_M_impl._M_start._M_cur); 27002: ++this->_M_impl._M_start._M_cur; 27002: } 27002: else 27002: _M_pop_front_aux(); 27002: } 27002: # 1596 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: pop_back() noexcept 27002: { 27002: ; 27002: if (this->_M_impl._M_finish._M_cur 27002: != this->_M_impl._M_finish._M_first) 27002: { 27002: --this->_M_impl._M_finish._M_cur; 27002: _Alloc_traits::destroy(_M_get_Tp_allocator(), 27002: this->_M_impl._M_finish._M_cur); 27002: } 27002: else 27002: _M_pop_back_aux(); 27002: } 27002: # 1621 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template 27002: iterator 27002: emplace(const_iterator __position, _Args&&... __args); 27002: # 1634 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: iterator 27002: insert(const_iterator __position, const value_type& __x); 27002: # 1660 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: iterator 27002: insert(const_iterator __position, value_type&& __x) 27002: { return emplace(__position, std::move(__x)); } 27002: # 1674 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: iterator 27002: insert(const_iterator __p, initializer_list __l) 27002: { 27002: auto __offset = __p - cbegin(); 27002: _M_range_insert_aux(__p._M_const_cast(), __l.begin(), __l.end(), 27002: std::random_access_iterator_tag()); 27002: return begin() + __offset; 27002: } 27002: # 1693 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: iterator 27002: insert(const_iterator __position, size_type __n, const value_type& __x) 27002: { 27002: difference_type __offset = __position - cbegin(); 27002: _M_fill_insert(__position._M_const_cast(), __n, __x); 27002: return begin() + __offset; 27002: } 27002: # 1727 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template> 27002: iterator 27002: insert(const_iterator __position, _InputIterator __first, 27002: _InputIterator __last) 27002: { 27002: difference_type __offset = __position - cbegin(); 27002: _M_range_insert_aux(__position._M_const_cast(), __first, __last, 27002: std::__iterator_category(__first)); 27002: return begin() + __offset; 27002: } 27002: # 1773 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: iterator 27002: 27002: erase(const_iterator __position) 27002: 27002: 27002: 27002: { return _M_erase(__position._M_const_cast()); } 27002: # 1797 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: iterator 27002: 27002: erase(const_iterator __first, const_iterator __last) 27002: 27002: 27002: 27002: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 27002: # 1816 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: swap(deque& __x) noexcept 27002: { 27002: 27002: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) __builtin_unreachable(); } while (false) 27002: ; 27002: 27002: _M_impl._M_swap_data(__x._M_impl); 27002: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 27002: __x._M_get_Tp_allocator()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: clear() noexcept 27002: { _M_erase_at_end(begin()); } 27002: 27002: protected: 27002: # 1866 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: static size_t 27002: _S_check_init_len(size_t __n, const allocator_type& __a) 27002: { 27002: if (__n > _S_max_size(__a)) 27002: __throw_length_error( 27002: ("cannot create std::deque larger than max_size()")); 27002: return __n; 27002: } 27002: 27002: static size_type 27002: _S_max_size(const _Tp_alloc_type& __a) noexcept 27002: { 27002: const size_t __diffmax = __gnu_cxx::__numeric_traits::__max; 27002: const size_t __allocmax = _Alloc_traits::max_size(__a); 27002: return (std::min)(__diffmax, __allocmax); 27002: } 27002: # 1895 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template 27002: void 27002: _M_range_initialize(_InputIterator __first, _InputIterator __last, 27002: std::input_iterator_tag); 27002: 27002: 27002: template 27002: void 27002: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 27002: std::forward_iterator_tag); 27002: # 1917 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: _M_fill_initialize(const value_type& __value); 27002: 27002: 27002: 27002: void 27002: _M_default_initialize(); 27002: # 1948 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template 27002: void 27002: _M_assign_aux(_InputIterator __first, _InputIterator __last, 27002: std::input_iterator_tag); 27002: 27002: 27002: template 27002: void 27002: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 27002: std::forward_iterator_tag) 27002: { 27002: const size_type __len = std::distance(__first, __last); 27002: if (__len > size()) 27002: { 27002: _ForwardIterator __mid = __first; 27002: std::advance(__mid, size()); 27002: std::copy(__first, __mid, begin()); 27002: _M_range_insert_aux(end(), __mid, __last, 27002: std::__iterator_category(__first)); 27002: } 27002: else 27002: _M_erase_at_end(std::copy(__first, __last, begin())); 27002: } 27002: 27002: 27002: 27002: void 27002: _M_fill_assign(size_type __n, const value_type& __val) 27002: { 27002: if (__n > size()) 27002: { 27002: std::fill(begin(), end(), __val); 27002: _M_fill_insert(end(), __n - size(), __val); 27002: } 27002: else 27002: { 27002: _M_erase_at_end(begin() + difference_type(__n)); 27002: std::fill(begin(), end(), __val); 27002: } 27002: } 27002: # 1996 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template 27002: void _M_push_back_aux(_Args&&... __args); 27002: 27002: template 27002: void _M_push_front_aux(_Args&&... __args); 27002: 27002: 27002: void _M_pop_back_aux(); 27002: 27002: void _M_pop_front_aux(); 27002: # 2035 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template 27002: void 27002: _M_range_insert_aux(iterator __pos, _InputIterator __first, 27002: _InputIterator __last, std::input_iterator_tag); 27002: 27002: 27002: template 27002: void 27002: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, 27002: _ForwardIterator __last, std::forward_iterator_tag); 27002: 27002: 27002: 27002: 27002: void 27002: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: iterator 27002: _M_insert_aux(iterator __pos, _Args&&... __args); 27002: 27002: 27002: 27002: void 27002: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); 27002: 27002: 27002: template 27002: void 27002: _M_insert_aux(iterator __pos, 27002: _ForwardIterator __first, _ForwardIterator __last, 27002: size_type __n); 27002: 27002: 27002: 27002: 27002: void 27002: _M_destroy_data_aux(iterator __first, iterator __last); 27002: 27002: 27002: 27002: template 27002: void 27002: _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) 27002: { _M_destroy_data_aux(__first, __last); } 27002: 27002: void 27002: _M_destroy_data(iterator __first, iterator __last, 27002: const std::allocator<_Tp>&) 27002: { 27002: if (!__has_trivial_destructor(value_type)) 27002: _M_destroy_data_aux(__first, __last); 27002: } 27002: 27002: 27002: void 27002: _M_erase_at_begin(iterator __pos) 27002: { 27002: _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); 27002: _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); 27002: this->_M_impl._M_start = __pos; 27002: } 27002: 27002: 27002: 27002: void 27002: _M_erase_at_end(iterator __pos) 27002: { 27002: _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); 27002: _M_destroy_nodes(__pos._M_node + 1, 27002: this->_M_impl._M_finish._M_node + 1); 27002: this->_M_impl._M_finish = __pos; 27002: } 27002: 27002: iterator 27002: _M_erase(iterator __pos); 27002: 27002: iterator 27002: _M_erase(iterator __first, iterator __last); 27002: 27002: 27002: 27002: void 27002: _M_default_append(size_type __n); 27002: 27002: bool 27002: _M_shrink_to_fit(); 27002: 27002: 27002: 27002: 27002: iterator 27002: _M_reserve_elements_at_front(size_type __n) 27002: { 27002: const size_type __vacancies = this->_M_impl._M_start._M_cur 27002: - this->_M_impl._M_start._M_first; 27002: if (__n > __vacancies) 27002: _M_new_elements_at_front(__n - __vacancies); 27002: return this->_M_impl._M_start - difference_type(__n); 27002: } 27002: 27002: iterator 27002: _M_reserve_elements_at_back(size_type __n) 27002: { 27002: const size_type __vacancies = (this->_M_impl._M_finish._M_last 27002: - this->_M_impl._M_finish._M_cur) - 1; 27002: if (__n > __vacancies) 27002: _M_new_elements_at_back(__n - __vacancies); 27002: return this->_M_impl._M_finish + difference_type(__n); 27002: } 27002: 27002: void 27002: _M_new_elements_at_front(size_type __new_elements); 27002: 27002: void 27002: _M_new_elements_at_back(size_type __new_elements); 27002: # 2167 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: void 27002: _M_reserve_map_at_back(size_type __nodes_to_add = 1) 27002: { 27002: if (__nodes_to_add + 1 > this->_M_impl._M_map_size 27002: - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) 27002: _M_reallocate_map(__nodes_to_add, false); 27002: } 27002: 27002: void 27002: _M_reserve_map_at_front(size_type __nodes_to_add = 1) 27002: { 27002: if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node 27002: - this->_M_impl._M_map)) 27002: _M_reallocate_map(__nodes_to_add, true); 27002: } 27002: 27002: void 27002: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); 27002: 27002: 27002: 27002: 27002: 27002: void 27002: _M_move_assign1(deque&& __x, true_type) noexcept 27002: { 27002: this->_M_impl._M_swap_data(__x._M_impl); 27002: __x.clear(); 27002: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 27002: } 27002: 27002: 27002: 27002: 27002: void 27002: _M_move_assign1(deque&& __x, false_type) 27002: { 27002: if (_M_get_Tp_allocator() == __x._M_get_Tp_allocator()) 27002: return _M_move_assign1(std::move(__x), true_type()); 27002: 27002: constexpr bool __move_storage = 27002: _Alloc_traits::_S_propagate_on_move_assign(); 27002: _M_move_assign2(std::move(__x), __bool_constant<__move_storage>()); 27002: } 27002: 27002: 27002: 27002: template 27002: void 27002: _M_replace_map(_Args&&... __args) 27002: { 27002: 27002: deque __newobj(std::forward<_Args>(__args)...); 27002: 27002: clear(); 27002: _M_deallocate_node(*begin()._M_node); 27002: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 27002: this->_M_impl._M_map = nullptr; 27002: this->_M_impl._M_map_size = 0; 27002: 27002: this->_M_impl._M_swap_data(__newobj._M_impl); 27002: } 27002: 27002: 27002: void 27002: _M_move_assign2(deque&& __x, true_type) 27002: { 27002: 27002: auto __alloc = __x._M_get_Tp_allocator(); 27002: 27002: 27002: _M_replace_map(std::move(__x)); 27002: 27002: _M_get_Tp_allocator() = std::move(__alloc); 27002: } 27002: 27002: 27002: 27002: void 27002: _M_move_assign2(deque&& __x, false_type) 27002: { 27002: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 27002: { 27002: 27002: 27002: _M_replace_map(std::move(__x), __x.get_allocator()); 27002: } 27002: else 27002: { 27002: 27002: 27002: _M_assign_aux(std::make_move_iterator(__x.begin()), 27002: std::make_move_iterator(__x.end()), 27002: std::random_access_iterator_tag()); 27002: __x.clear(); 27002: } 27002: } 27002: 27002: }; 27002: 27002: 27002: template::value_type, 27002: typename _Allocator = allocator<_ValT>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireAllocator<_Allocator>> 27002: deque(_InputIterator, _InputIterator, _Allocator = _Allocator()) 27002: -> deque<_ValT, _Allocator>; 27002: # 2287 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 27002: { return __x.size() == __y.size() 27002: && std::equal(__x.begin(), __x.end(), __y.begin()); } 27002: # 2327 "/usr/include/c++/12/bits/stl_deque.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 27002: { return std::lexicographical_compare(__x.begin(), __x.end(), 27002: __y.begin(), __y.end()); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 27002: { return __y < __x; } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 27002: { return !(__y < __x); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_bitwise_relocatable> 27002: : true_type { }; 27002: 27002: 27002: 27002: } 27002: # 65 "/usr/include/c++/12/deque" 2 3 27002: # 1 "/usr/include/c++/12/bits/refwrap.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/refwrap.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/refwrap.h" 3 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/invoke.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/invoke.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/invoke.h" 3 27002: # 42 "/usr/include/c++/12/bits/invoke.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 53 "/usr/include/c++/12/bits/invoke.h" 3 27002: template::type> 27002: constexpr _Up&& 27002: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 27002: { return static_cast<_Up&&>(__t); } 27002: 27002: template 27002: constexpr _Res 27002: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 27002: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 27002: 27002: template 27002: constexpr _Res 27002: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 27002: _Args&&... __args) 27002: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 27002: 27002: template 27002: constexpr _Res 27002: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 27002: _Args&&... __args) 27002: { 27002: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 27002: } 27002: 27002: template 27002: constexpr _Res 27002: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 27002: { return __invfwd<_Tp>(__t).*__f; } 27002: 27002: template 27002: constexpr _Res 27002: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 27002: { return (*std::forward<_Tp>(__t)).*__f; } 27002: 27002: 27002: template 27002: constexpr typename __invoke_result<_Callable, _Args...>::type 27002: __invoke(_Callable&& __fn, _Args&&... __args) 27002: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 27002: { 27002: using __result = __invoke_result<_Callable, _Args...>; 27002: using __type = typename __result::type; 27002: using __tag = typename __result::__invoke_type; 27002: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: 27002: 27002: template 27002: constexpr enable_if_t, _Res> 27002: __invoke_r(_Callable&& __fn, _Args&&... __args) 27002: noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 27002: { 27002: using __result = __invoke_result<_Callable, _Args...>; 27002: using __type = typename __result::type; 27002: using __tag = typename __result::__invoke_type; 27002: if constexpr (is_void_v<_Res>) 27002: std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 27002: std::forward<_Args>(__args)...); 27002: else 27002: return std::__invoke_impl<__type>(__tag{}, 27002: std::forward<_Callable>(__fn), 27002: std::forward<_Args>(__args)...); 27002: } 27002: # 159 "/usr/include/c++/12/bits/invoke.h" 3 27002: 27002: } 27002: # 39 "/usr/include/c++/12/bits/refwrap.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_function.h" 1 3 27002: # 63 "/usr/include/c++/12/bits/stl_function.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 116 "/usr/include/c++/12/bits/stl_function.h" 3 27002: template 27002: struct unary_function 27002: { 27002: 27002: typedef _Arg argument_type; 27002: 27002: 27002: typedef _Result result_type; 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct binary_function 27002: { 27002: 27002: typedef _Arg1 first_argument_type; 27002: 27002: 27002: typedef _Arg2 second_argument_type; 27002: 27002: 27002: typedef _Result result_type; 27002: } __attribute__ ((__deprecated__)); 27002: # 157 "/usr/include/c++/12/bits/stl_function.h" 3 27002: struct __is_transparent; 27002: 27002: template 27002: struct plus; 27002: 27002: template 27002: struct minus; 27002: 27002: template 27002: struct multiplies; 27002: 27002: template 27002: struct divides; 27002: 27002: template 27002: struct modulus; 27002: 27002: template 27002: struct negate; 27002: 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: template 27002: struct plus : public binary_function<_Tp, _Tp, _Tp> 27002: { 27002: 27002: constexpr 27002: _Tp 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x + __y; } 27002: }; 27002: 27002: 27002: template 27002: struct minus : public binary_function<_Tp, _Tp, _Tp> 27002: { 27002: constexpr 27002: _Tp 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x - __y; } 27002: }; 27002: 27002: 27002: template 27002: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 27002: { 27002: constexpr 27002: _Tp 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x * __y; } 27002: }; 27002: 27002: 27002: template 27002: struct divides : public binary_function<_Tp, _Tp, _Tp> 27002: { 27002: constexpr 27002: _Tp 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x / __y; } 27002: }; 27002: 27002: 27002: template 27002: struct modulus : public binary_function<_Tp, _Tp, _Tp> 27002: { 27002: constexpr 27002: _Tp 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x % __y; } 27002: }; 27002: 27002: 27002: template 27002: struct negate : public unary_function<_Tp, _Tp> 27002: { 27002: constexpr 27002: _Tp 27002: operator()(const _Tp& __x) const 27002: { return -__x; } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct plus 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: template<> 27002: struct minus 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: template<> 27002: struct multiplies 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: template<> 27002: struct divides 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: template<> 27002: struct modulus 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: template<> 27002: struct negate 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t) const 27002: noexcept(noexcept(-std::forward<_Tp>(__t))) 27002: -> decltype(-std::forward<_Tp>(__t)) 27002: { return -std::forward<_Tp>(__t); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: # 349 "/usr/include/c++/12/bits/stl_function.h" 3 27002: template 27002: struct equal_to; 27002: 27002: template 27002: struct not_equal_to; 27002: 27002: template 27002: struct greater; 27002: 27002: template 27002: struct less; 27002: 27002: template 27002: struct greater_equal; 27002: 27002: template 27002: struct less_equal; 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: template 27002: struct equal_to : public binary_function<_Tp, _Tp, bool> 27002: { 27002: constexpr 27002: bool 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x == __y; } 27002: }; 27002: 27002: 27002: template 27002: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 27002: { 27002: constexpr 27002: bool 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x != __y; } 27002: }; 27002: 27002: 27002: template 27002: struct greater : public binary_function<_Tp, _Tp, bool> 27002: { 27002: constexpr 27002: bool 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x > __y; } 27002: }; 27002: 27002: 27002: template 27002: struct less : public binary_function<_Tp, _Tp, bool> 27002: { 27002: constexpr 27002: bool 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x < __y; } 27002: }; 27002: 27002: 27002: template 27002: struct greater_equal : public binary_function<_Tp, _Tp, bool> 27002: { 27002: constexpr 27002: bool 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x >= __y; } 27002: }; 27002: 27002: 27002: template 27002: struct less_equal : public binary_function<_Tp, _Tp, bool> 27002: { 27002: constexpr 27002: bool 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x <= __y; } 27002: }; 27002: 27002: 27002: template 27002: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 27002: { 27002: constexpr bool 27002: operator()(_Tp* __x, _Tp* __y) const noexcept 27002: { 27002: 27002: if (std::__is_constant_evaluated()) 27002: return __x > __y; 27002: 27002: return (unsigned int)__x > (unsigned int)__y; 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 27002: { 27002: constexpr bool 27002: operator()(_Tp* __x, _Tp* __y) const noexcept 27002: { 27002: 27002: if (std::__is_constant_evaluated()) 27002: return __x < __y; 27002: 27002: return (unsigned int)__x < (unsigned int)__y; 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 27002: { 27002: constexpr bool 27002: operator()(_Tp* __x, _Tp* __y) const noexcept 27002: { 27002: 27002: if (std::__is_constant_evaluated()) 27002: return __x >= __y; 27002: 27002: return (unsigned int)__x >= (unsigned int)__y; 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 27002: { 27002: constexpr bool 27002: operator()(_Tp* __x, _Tp* __y) const noexcept 27002: { 27002: 27002: if (std::__is_constant_evaluated()) 27002: return __x <= __y; 27002: 27002: return (unsigned int)__x <= (unsigned int)__y; 27002: } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: template<> 27002: struct equal_to 27002: { 27002: template 27002: constexpr auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: template<> 27002: struct not_equal_to 27002: { 27002: template 27002: constexpr auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: template<> 27002: struct greater 27002: { 27002: template 27002: constexpr auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) 27002: { 27002: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 27002: __ptr_cmp<_Tp, _Up>{}); 27002: } 27002: 27002: template 27002: constexpr bool 27002: operator()(_Tp* __t, _Up* __u) const noexcept 27002: { return greater>{}(__t, __u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: 27002: private: 27002: template 27002: static constexpr decltype(auto) 27002: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 27002: { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } 27002: 27002: template 27002: static constexpr bool 27002: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 27002: { 27002: return greater{}( 27002: static_cast(std::forward<_Tp>(__t)), 27002: static_cast(std::forward<_Up>(__u))); 27002: } 27002: 27002: 27002: template 27002: struct __not_overloaded2 : true_type { }; 27002: 27002: 27002: template 27002: struct __not_overloaded2<_Tp, _Up, __void_t< 27002: decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> 27002: : false_type { }; 27002: 27002: 27002: template 27002: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 27002: 27002: 27002: template 27002: struct __not_overloaded<_Tp, _Up, __void_t< 27002: decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> 27002: : false_type { }; 27002: 27002: template 27002: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 27002: is_convertible<_Tp, const volatile void*>, 27002: is_convertible<_Up, const volatile void*>>; 27002: }; 27002: 27002: 27002: template<> 27002: struct less 27002: { 27002: template 27002: constexpr auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) 27002: { 27002: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 27002: __ptr_cmp<_Tp, _Up>{}); 27002: } 27002: 27002: template 27002: constexpr bool 27002: operator()(_Tp* __t, _Up* __u) const noexcept 27002: { return less>{}(__t, __u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: 27002: private: 27002: template 27002: static constexpr decltype(auto) 27002: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 27002: { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } 27002: 27002: template 27002: static constexpr bool 27002: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 27002: { 27002: return less{}( 27002: static_cast(std::forward<_Tp>(__t)), 27002: static_cast(std::forward<_Up>(__u))); 27002: } 27002: 27002: 27002: template 27002: struct __not_overloaded2 : true_type { }; 27002: 27002: 27002: template 27002: struct __not_overloaded2<_Tp, _Up, __void_t< 27002: decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> 27002: : false_type { }; 27002: 27002: 27002: template 27002: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 27002: 27002: 27002: template 27002: struct __not_overloaded<_Tp, _Up, __void_t< 27002: decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> 27002: : false_type { }; 27002: 27002: template 27002: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 27002: is_convertible<_Tp, const volatile void*>, 27002: is_convertible<_Up, const volatile void*>>; 27002: }; 27002: 27002: 27002: template<> 27002: struct greater_equal 27002: { 27002: template 27002: constexpr auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) 27002: { 27002: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 27002: __ptr_cmp<_Tp, _Up>{}); 27002: } 27002: 27002: template 27002: constexpr bool 27002: operator()(_Tp* __t, _Up* __u) const noexcept 27002: { return greater_equal>{}(__t, __u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: 27002: private: 27002: template 27002: static constexpr decltype(auto) 27002: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 27002: { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } 27002: 27002: template 27002: static constexpr bool 27002: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 27002: { 27002: return greater_equal{}( 27002: static_cast(std::forward<_Tp>(__t)), 27002: static_cast(std::forward<_Up>(__u))); 27002: } 27002: 27002: 27002: template 27002: struct __not_overloaded2 : true_type { }; 27002: 27002: 27002: template 27002: struct __not_overloaded2<_Tp, _Up, __void_t< 27002: decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> 27002: : false_type { }; 27002: 27002: 27002: template 27002: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 27002: 27002: 27002: template 27002: struct __not_overloaded<_Tp, _Up, __void_t< 27002: decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> 27002: : false_type { }; 27002: 27002: template 27002: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 27002: is_convertible<_Tp, const volatile void*>, 27002: is_convertible<_Up, const volatile void*>>; 27002: }; 27002: 27002: 27002: template<> 27002: struct less_equal 27002: { 27002: template 27002: constexpr auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) 27002: { 27002: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 27002: __ptr_cmp<_Tp, _Up>{}); 27002: } 27002: 27002: template 27002: constexpr bool 27002: operator()(_Tp* __t, _Up* __u) const noexcept 27002: { return less_equal>{}(__t, __u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: 27002: private: 27002: template 27002: static constexpr decltype(auto) 27002: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 27002: { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } 27002: 27002: template 27002: static constexpr bool 27002: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 27002: { 27002: return less_equal{}( 27002: static_cast(std::forward<_Tp>(__t)), 27002: static_cast(std::forward<_Up>(__u))); 27002: } 27002: 27002: 27002: template 27002: struct __not_overloaded2 : true_type { }; 27002: 27002: 27002: template 27002: struct __not_overloaded2<_Tp, _Up, __void_t< 27002: decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> 27002: : false_type { }; 27002: 27002: 27002: template 27002: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 27002: 27002: 27002: template 27002: struct __not_overloaded<_Tp, _Up, __void_t< 27002: decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> 27002: : false_type { }; 27002: 27002: template 27002: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 27002: is_convertible<_Tp, const volatile void*>, 27002: is_convertible<_Up, const volatile void*>>; 27002: }; 27002: # 781 "/usr/include/c++/12/bits/stl_function.h" 3 27002: template 27002: struct logical_and; 27002: 27002: template 27002: struct logical_or; 27002: 27002: template 27002: struct logical_not; 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: template 27002: struct logical_and : public binary_function<_Tp, _Tp, bool> 27002: { 27002: constexpr 27002: bool 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x && __y; } 27002: }; 27002: 27002: 27002: template 27002: struct logical_or : public binary_function<_Tp, _Tp, bool> 27002: { 27002: constexpr 27002: bool 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x || __y; } 27002: }; 27002: 27002: 27002: template 27002: struct logical_not : public unary_function<_Tp, bool> 27002: { 27002: constexpr 27002: bool 27002: operator()(const _Tp& __x) const 27002: { return !__x; } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: template<> 27002: struct logical_and 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: template<> 27002: struct logical_or 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: template<> 27002: struct logical_not 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t) const 27002: noexcept(noexcept(!std::forward<_Tp>(__t))) 27002: -> decltype(!std::forward<_Tp>(__t)) 27002: { return !std::forward<_Tp>(__t); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct bit_and; 27002: 27002: template 27002: struct bit_or; 27002: 27002: template 27002: struct bit_xor; 27002: 27002: template 27002: struct bit_not; 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: 27002: template 27002: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 27002: { 27002: constexpr 27002: _Tp 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x & __y; } 27002: }; 27002: 27002: template 27002: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 27002: { 27002: constexpr 27002: _Tp 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x | __y; } 27002: }; 27002: 27002: template 27002: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 27002: { 27002: constexpr 27002: _Tp 27002: operator()(const _Tp& __x, const _Tp& __y) const 27002: { return __x ^ __y; } 27002: }; 27002: 27002: template 27002: struct bit_not : public unary_function<_Tp, _Tp> 27002: { 27002: constexpr 27002: _Tp 27002: operator()(const _Tp& __x) const 27002: { return ~__x; } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: template <> 27002: struct bit_and 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: template <> 27002: struct bit_or 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: template <> 27002: struct bit_xor 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t, _Up&& __u) const 27002: noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) 27002: -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) 27002: { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: template <> 27002: struct bit_not 27002: { 27002: template 27002: constexpr 27002: auto 27002: operator()(_Tp&& __t) const 27002: noexcept(noexcept(~std::forward<_Tp>(__t))) 27002: -> decltype(~std::forward<_Tp>(__t)) 27002: { return ~std::forward<_Tp>(__t); } 27002: 27002: typedef __is_transparent is_transparent; 27002: }; 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: # 1023 "/usr/include/c++/12/bits/stl_function.h" 3 27002: template 27002: class [[__deprecated__]] unary_negate 27002: : public unary_function 27002: { 27002: protected: 27002: _Predicate _M_pred; 27002: 27002: public: 27002: constexpr 27002: explicit 27002: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 27002: 27002: constexpr 27002: bool 27002: operator()(const typename _Predicate::argument_type& __x) const 27002: { return !_M_pred(__x); } 27002: }; 27002: 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 27002: constexpr 27002: inline unary_negate<_Predicate> 27002: not1(const _Predicate& __pred) 27002: { return unary_negate<_Predicate>(__pred); } 27002: 27002: 27002: template 27002: class [[__deprecated__]] binary_negate 27002: : public binary_function 27002: { 27002: protected: 27002: _Predicate _M_pred; 27002: 27002: public: 27002: constexpr 27002: explicit 27002: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 27002: 27002: constexpr 27002: bool 27002: operator()(const typename _Predicate::first_argument_type& __x, 27002: const typename _Predicate::second_argument_type& __y) const 27002: { return !_M_pred(__x, __y); } 27002: }; 27002: 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 27002: constexpr 27002: inline binary_negate<_Predicate> 27002: not2(const _Predicate& __pred) 27002: { return binary_negate<_Predicate>(__pred); } 27002: # 1104 "/usr/include/c++/12/bits/stl_function.h" 3 27002: template 27002: class pointer_to_unary_function : public unary_function<_Arg, _Result> 27002: { 27002: protected: 27002: _Result (*_M_ptr)(_Arg); 27002: 27002: public: 27002: pointer_to_unary_function() { } 27002: 27002: explicit 27002: pointer_to_unary_function(_Result (*__x)(_Arg)) 27002: : _M_ptr(__x) { } 27002: 27002: _Result 27002: operator()(_Arg __x) const 27002: { return _M_ptr(__x); } 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 27002: inline pointer_to_unary_function<_Arg, _Result> 27002: ptr_fun(_Result (*__x)(_Arg)) 27002: { return pointer_to_unary_function<_Arg, _Result>(__x); } 27002: 27002: 27002: template 27002: class pointer_to_binary_function 27002: : public binary_function<_Arg1, _Arg2, _Result> 27002: { 27002: protected: 27002: _Result (*_M_ptr)(_Arg1, _Arg2); 27002: 27002: public: 27002: pointer_to_binary_function() { } 27002: 27002: explicit 27002: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 27002: : _M_ptr(__x) { } 27002: 27002: _Result 27002: operator()(_Arg1 __x, _Arg2 __y) const 27002: { return _M_ptr(__x, __y); } 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 27002: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 27002: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 27002: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 27002: 27002: 27002: template 27002: struct _Identity 27002: : public unary_function<_Tp, _Tp> 27002: { 27002: _Tp& 27002: operator()(_Tp& __x) const 27002: { return __x; } 27002: 27002: const _Tp& 27002: operator()(const _Tp& __x) const 27002: { return __x; } 27002: }; 27002: 27002: 27002: template struct _Identity : _Identity<_Tp> { }; 27002: 27002: template 27002: struct _Select1st 27002: : public unary_function<_Pair, typename _Pair::first_type> 27002: { 27002: typename _Pair::first_type& 27002: operator()(_Pair& __x) const 27002: { return __x.first; } 27002: 27002: const typename _Pair::first_type& 27002: operator()(const _Pair& __x) const 27002: { return __x.first; } 27002: 27002: 27002: template 27002: typename _Pair2::first_type& 27002: operator()(_Pair2& __x) const 27002: { return __x.first; } 27002: 27002: template 27002: const typename _Pair2::first_type& 27002: operator()(const _Pair2& __x) const 27002: { return __x.first; } 27002: 27002: }; 27002: 27002: template 27002: struct _Select2nd 27002: : public unary_function<_Pair, typename _Pair::second_type> 27002: { 27002: typename _Pair::second_type& 27002: operator()(_Pair& __x) const 27002: { return __x.second; } 27002: 27002: const typename _Pair::second_type& 27002: operator()(const _Pair& __x) const 27002: { return __x.second; } 27002: }; 27002: # 1231 "/usr/include/c++/12/bits/stl_function.h" 3 27002: template 27002: class mem_fun_t : public unary_function<_Tp*, _Ret> 27002: { 27002: public: 27002: explicit 27002: mem_fun_t(_Ret (_Tp::*__pf)()) 27002: : _M_f(__pf) { } 27002: 27002: _Ret 27002: operator()(_Tp* __p) const 27002: { return (__p->*_M_f)(); } 27002: 27002: private: 27002: _Ret (_Tp::*_M_f)(); 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: template 27002: class const_mem_fun_t : public unary_function 27002: { 27002: public: 27002: explicit 27002: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 27002: : _M_f(__pf) { } 27002: 27002: _Ret 27002: operator()(const _Tp* __p) const 27002: { return (__p->*_M_f)(); } 27002: 27002: private: 27002: _Ret (_Tp::*_M_f)() const; 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: template 27002: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 27002: { 27002: public: 27002: explicit 27002: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 27002: : _M_f(__pf) { } 27002: 27002: _Ret 27002: operator()(_Tp& __r) const 27002: { return (__r.*_M_f)(); } 27002: 27002: private: 27002: _Ret (_Tp::*_M_f)(); 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: template 27002: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 27002: { 27002: public: 27002: explicit 27002: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 27002: : _M_f(__pf) { } 27002: 27002: _Ret 27002: operator()(const _Tp& __r) const 27002: { return (__r.*_M_f)(); } 27002: 27002: private: 27002: _Ret (_Tp::*_M_f)() const; 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: template 27002: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 27002: { 27002: public: 27002: explicit 27002: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 27002: : _M_f(__pf) { } 27002: 27002: _Ret 27002: operator()(_Tp* __p, _Arg __x) const 27002: { return (__p->*_M_f)(__x); } 27002: 27002: private: 27002: _Ret (_Tp::*_M_f)(_Arg); 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: template 27002: class const_mem_fun1_t : public binary_function 27002: { 27002: public: 27002: explicit 27002: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 27002: : _M_f(__pf) { } 27002: 27002: _Ret 27002: operator()(const _Tp* __p, _Arg __x) const 27002: { return (__p->*_M_f)(__x); } 27002: 27002: private: 27002: _Ret (_Tp::*_M_f)(_Arg) const; 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: template 27002: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 27002: { 27002: public: 27002: explicit 27002: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 27002: : _M_f(__pf) { } 27002: 27002: _Ret 27002: operator()(_Tp& __r, _Arg __x) const 27002: { return (__r.*_M_f)(__x); } 27002: 27002: private: 27002: _Ret (_Tp::*_M_f)(_Arg); 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: template 27002: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 27002: { 27002: public: 27002: explicit 27002: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 27002: : _M_f(__pf) { } 27002: 27002: _Ret 27002: operator()(const _Tp& __r, _Arg __x) const 27002: { return (__r.*_M_f)(__x); } 27002: 27002: private: 27002: _Ret (_Tp::*_M_f)(_Arg) const; 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 27002: inline mem_fun_t<_Ret, _Tp> 27002: mem_fun(_Ret (_Tp::*__f)()) 27002: { return mem_fun_t<_Ret, _Tp>(__f); } 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 27002: inline const_mem_fun_t<_Ret, _Tp> 27002: mem_fun(_Ret (_Tp::*__f)() const) 27002: { return const_mem_fun_t<_Ret, _Tp>(__f); } 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 27002: inline mem_fun_ref_t<_Ret, _Tp> 27002: mem_fun_ref(_Ret (_Tp::*__f)()) 27002: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 27002: inline const_mem_fun_ref_t<_Ret, _Tp> 27002: mem_fun_ref(_Ret (_Tp::*__f)() const) 27002: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 27002: inline mem_fun1_t<_Ret, _Tp, _Arg> 27002: mem_fun(_Ret (_Tp::*__f)(_Arg)) 27002: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 27002: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 27002: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 27002: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 27002: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 27002: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 27002: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 27002: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 27002: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 27002: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: 27002: template> 27002: struct __has_is_transparent 27002: { }; 27002: 27002: template 27002: struct __has_is_transparent<_Func, _SfinaeType, 27002: __void_t> 27002: { typedef void type; }; 27002: 27002: template 27002: using __has_is_transparent_t 27002: = typename __has_is_transparent<_Func, _SfinaeType>::type; 27002: 27002: 27002: 27002: } 27002: 27002: 27002: # 1 "/usr/include/c++/12/backward/binders.h" 1 3 27002: # 60 "/usr/include/c++/12/backward/binders.h" 3 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 107 "/usr/include/c++/12/backward/binders.h" 3 27002: template 27002: class binder1st 27002: : public unary_function 27002: { 27002: protected: 27002: _Operation op; 27002: typename _Operation::first_argument_type value; 27002: 27002: public: 27002: binder1st(const _Operation& __x, 27002: const typename _Operation::first_argument_type& __y) 27002: : op(__x), value(__y) { } 27002: 27002: typename _Operation::result_type 27002: operator()(const typename _Operation::second_argument_type& __x) const 27002: { return op(value, __x); } 27002: 27002: 27002: 27002: typename _Operation::result_type 27002: operator()(typename _Operation::second_argument_type& __x) const 27002: { return op(value, __x); } 27002: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 27002: 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 27002: inline binder1st<_Operation> 27002: bind1st(const _Operation& __fn, const _Tp& __x) 27002: { 27002: typedef typename _Operation::first_argument_type _Arg1_type; 27002: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 27002: } 27002: 27002: 27002: template 27002: class binder2nd 27002: : public unary_function 27002: { 27002: protected: 27002: _Operation op; 27002: typename _Operation::second_argument_type value; 27002: 27002: public: 27002: binder2nd(const _Operation& __x, 27002: const typename _Operation::second_argument_type& __y) 27002: : op(__x), value(__y) { } 27002: 27002: typename _Operation::result_type 27002: operator()(const typename _Operation::first_argument_type& __x) const 27002: { return op(__x, value); } 27002: 27002: 27002: 27002: typename _Operation::result_type 27002: operator()(typename _Operation::first_argument_type& __x) const 27002: { return op(__x, value); } 27002: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 27002: 27002: 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 27002: inline binder2nd<_Operation> 27002: bind2nd(const _Operation& __fn, const _Tp& __x) 27002: { 27002: typedef typename _Operation::second_argument_type _Arg2_type; 27002: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 27002: } 27002: 27002: 27002: 27002: } 27002: 27002: #pragma GCC diagnostic pop 27002: # 1439 "/usr/include/c++/12/bits/stl_function.h" 2 3 27002: # 40 "/usr/include/c++/12/bits/refwrap.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 52 "/usr/include/c++/12/bits/refwrap.h" 3 27002: template 27002: struct _Maybe_unary_or_binary_function { }; 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: template 27002: struct _Maybe_unary_or_binary_function<_Res, _T1> 27002: : std::unary_function<_T1, _Res> { }; 27002: 27002: 27002: template 27002: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 27002: : std::binary_function<_T1, _T2, _Res> { }; 27002: 27002: #pragma GCC diagnostic pop 27002: 27002: template 27002: struct _Mem_fn_traits; 27002: 27002: template 27002: struct _Mem_fn_traits_base 27002: { 27002: using __result_type = _Res; 27002: using __maybe_type 27002: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 27002: using __arity = integral_constant; 27002: }; 27002: # 103 "/usr/include/c++/12/bits/refwrap.h" 3 27002: 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; }; 27002: 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; }; 27002: 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; }; 27002: 27002: 27002: 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; }; 27002: 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; }; 27002: 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; }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: struct _Maybe_get_result_type 27002: { }; 27002: 27002: template 27002: struct _Maybe_get_result_type<_Functor, 27002: __void_t> 27002: { typedef typename _Functor::result_type result_type; }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Weak_result_type_impl 27002: : _Maybe_get_result_type<_Functor> 27002: { }; 27002: 27002: 27002: template 27002: struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> 27002: { typedef _Res result_type; }; 27002: 27002: 27002: template 27002: struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> 27002: { typedef _Res result_type; }; 27002: 27002: 27002: template 27002: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> 27002: { typedef _Res result_type; }; 27002: 27002: 27002: template 27002: struct 27002: _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> 27002: { typedef _Res result_type; }; 27002: 27002: 27002: template::value> 27002: struct _Weak_result_type_memfun 27002: : _Weak_result_type_impl<_Functor> 27002: { }; 27002: 27002: 27002: template 27002: struct _Weak_result_type_memfun<_MemFunPtr, true> 27002: { 27002: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 27002: }; 27002: 27002: 27002: template 27002: struct _Weak_result_type_memfun<_Func _Class::*, false> 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Weak_result_type 27002: : _Weak_result_type_memfun::type> 27002: { }; 27002: 27002: 27002: 27002: template> 27002: struct _Refwrap_base_arg1 27002: { }; 27002: 27002: 27002: template 27002: struct _Refwrap_base_arg1<_Tp, 27002: __void_t> 27002: { 27002: typedef typename _Tp::argument_type argument_type; 27002: }; 27002: 27002: 27002: template> 27002: struct _Refwrap_base_arg2 27002: { }; 27002: 27002: 27002: template 27002: struct _Refwrap_base_arg2<_Tp, 27002: __void_t> 27002: { 27002: typedef typename _Tp::first_argument_type first_argument_type; 27002: typedef typename _Tp::second_argument_type second_argument_type; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Reference_wrapper_base 27002: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 27002: { }; 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: template 27002: struct _Reference_wrapper_base<_Res(_T1) noexcept (_NE)> 27002: : unary_function<_T1, _Res> 27002: { }; 27002: 27002: template 27002: struct _Reference_wrapper_base<_Res(_T1) const> 27002: : unary_function<_T1, _Res> 27002: { }; 27002: 27002: template 27002: struct _Reference_wrapper_base<_Res(_T1) volatile> 27002: : unary_function<_T1, _Res> 27002: { }; 27002: 27002: template 27002: struct _Reference_wrapper_base<_Res(_T1) const volatile> 27002: : unary_function<_T1, _Res> 27002: { }; 27002: 27002: 27002: template 27002: struct _Reference_wrapper_base<_Res(_T1, _T2) noexcept (_NE)> 27002: : binary_function<_T1, _T2, _Res> 27002: { }; 27002: 27002: template 27002: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 27002: : binary_function<_T1, _T2, _Res> 27002: { }; 27002: 27002: template 27002: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 27002: : binary_function<_T1, _T2, _Res> 27002: { }; 27002: 27002: template 27002: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 27002: : binary_function<_T1, _T2, _Res> 27002: { }; 27002: 27002: 27002: template 27002: struct _Reference_wrapper_base<_Res(*)(_T1) noexcept (_NE)> 27002: : unary_function<_T1, _Res> 27002: { }; 27002: 27002: 27002: template 27002: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) noexcept (_NE)> 27002: : binary_function<_T1, _T2, _Res> 27002: { }; 27002: 27002: template::value> 27002: struct _Reference_wrapper_base_memfun 27002: : _Reference_wrapper_base<_Tp> 27002: { }; 27002: 27002: template 27002: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 27002: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 27002: { 27002: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 27002: }; 27002: #pragma GCC diagnostic pop 27002: # 302 "/usr/include/c++/12/bits/refwrap.h" 3 27002: template 27002: class reference_wrapper 27002: 27002: 27002: 27002: : public _Reference_wrapper_base_memfun::type> 27002: 27002: { 27002: _Tp* _M_data; 27002: 27002: 27002: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 27002: 27002: static void _S_fun(_Tp&&) = delete; 27002: 27002: template> 27002: using __not_same 27002: = typename enable_if::value>::type; 27002: 27002: public: 27002: typedef _Tp type; 27002: 27002: 27002: 27002: 27002: template, typename 27002: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 27002: 27002: reference_wrapper(_Up&& __uref) 27002: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 27002: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 27002: { } 27002: 27002: reference_wrapper(const reference_wrapper&) = default; 27002: 27002: reference_wrapper& 27002: operator=(const reference_wrapper&) = default; 27002: 27002: 27002: operator _Tp&() const noexcept 27002: { return this->get(); } 27002: 27002: 27002: _Tp& 27002: get() const noexcept 27002: { return *_M_data; } 27002: 27002: template 27002: 27002: typename result_of<_Tp&(_Args&&...)>::type 27002: operator()(_Args&&... __args) const 27002: { 27002: 27002: 27002: 27002: 27002: return std::__invoke(get(), std::forward<_Args>(__args)...); 27002: } 27002: }; 27002: 27002: 27002: template 27002: reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline reference_wrapper<_Tp> 27002: ref(_Tp& __t) noexcept 27002: { return reference_wrapper<_Tp>(__t); } 27002: 27002: 27002: template 27002: 27002: inline reference_wrapper 27002: cref(const _Tp& __t) noexcept 27002: { return reference_wrapper(__t); } 27002: 27002: template 27002: void ref(const _Tp&&) = delete; 27002: 27002: template 27002: void cref(const _Tp&&) = delete; 27002: 27002: 27002: template 27002: 27002: inline reference_wrapper<_Tp> 27002: ref(reference_wrapper<_Tp> __t) noexcept 27002: { return __t; } 27002: 27002: 27002: template 27002: 27002: inline reference_wrapper 27002: cref(reference_wrapper<_Tp> __t) noexcept 27002: { return { __t.get() }; } 27002: 27002: 27002: 27002: 27002: } 27002: # 66 "/usr/include/c++/12/deque" 2 3 27002: # 1 "/usr/include/c++/12/bits/range_access.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/range_access.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/range_access.h" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: begin(_Container& __cont) -> decltype(__cont.begin()) 27002: { return __cont.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: begin(const _Container& __cont) -> decltype(__cont.begin()) 27002: { return __cont.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: end(_Container& __cont) -> decltype(__cont.end()) 27002: { return __cont.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: end(const _Container& __cont) -> decltype(__cont.end()) 27002: { return __cont.end(); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr _Tp* 27002: begin(_Tp (&__arr)[_Nm]) noexcept 27002: { return __arr; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr _Tp* 27002: end(_Tp (&__arr)[_Nm]) noexcept 27002: { return __arr + _Nm; } 27002: 27002: 27002: 27002: template class valarray; 27002: 27002: template _Tp* begin(valarray<_Tp>&) noexcept; 27002: template const _Tp* begin(const valarray<_Tp>&) noexcept; 27002: template _Tp* end(valarray<_Tp>&) noexcept; 27002: template const _Tp* end(const valarray<_Tp>&) noexcept; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: constexpr auto 27002: cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) 27002: -> decltype(std::begin(__cont)) 27002: { return std::begin(__cont); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: constexpr auto 27002: cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) 27002: -> decltype(std::end(__cont)) 27002: { return std::end(__cont); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: rbegin(_Container& __cont) -> decltype(__cont.rbegin()) 27002: { return __cont.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) 27002: { return __cont.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: rend(_Container& __cont) -> decltype(__cont.rend()) 27002: { return __cont.rend(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: rend(const _Container& __cont) -> decltype(__cont.rend()) 27002: { return __cont.rend(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr reverse_iterator<_Tp*> 27002: rbegin(_Tp (&__arr)[_Nm]) noexcept 27002: { return reverse_iterator<_Tp*>(__arr + _Nm); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr reverse_iterator<_Tp*> 27002: rend(_Tp (&__arr)[_Nm]) noexcept 27002: { return reverse_iterator<_Tp*>(__arr); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr reverse_iterator 27002: rbegin(initializer_list<_Tp> __il) noexcept 27002: { return reverse_iterator(__il.end()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr reverse_iterator 27002: rend(initializer_list<_Tp> __il) noexcept 27002: { return reverse_iterator(__il.begin()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) 27002: { return std::rbegin(__cont); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline constexpr auto 27002: crend(const _Container& __cont) -> decltype(std::rend(__cont)) 27002: { return std::rend(__cont); } 27002: # 261 "/usr/include/c++/12/bits/range_access.h" 3 27002: template 27002: [[nodiscard]] 27002: constexpr auto 27002: size(const _Container& __cont) noexcept(noexcept(__cont.size())) 27002: -> decltype(__cont.size()) 27002: { return __cont.size(); } 27002: 27002: 27002: 27002: 27002: template 27002: [[nodiscard]] 27002: constexpr size_t 27002: size(const _Tp (&)[_Nm]) noexcept 27002: { return _Nm; } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[nodiscard]] constexpr auto 27002: empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) 27002: -> decltype(__cont.empty()) 27002: { return __cont.empty(); } 27002: 27002: 27002: 27002: 27002: template 27002: [[nodiscard]] constexpr bool 27002: empty(const _Tp (&)[_Nm]) noexcept 27002: { return false; } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[nodiscard]] constexpr bool 27002: empty(initializer_list<_Tp> __il) noexcept 27002: { return __il.size() == 0;} 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[nodiscard]] 27002: constexpr auto 27002: data(_Container& __cont) noexcept(noexcept(__cont.data())) 27002: -> decltype(__cont.data()) 27002: { return __cont.data(); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[nodiscard]] 27002: constexpr auto 27002: data(const _Container& __cont) noexcept(noexcept(__cont.data())) 27002: -> decltype(__cont.data()) 27002: { return __cont.data(); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[nodiscard]] 27002: constexpr _Tp* 27002: data(_Tp (&__array)[_Nm]) noexcept 27002: { return __array; } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[nodiscard]] 27002: constexpr const _Tp* 27002: data(initializer_list<_Tp> __il) noexcept 27002: { return __il.begin(); } 27002: # 367 "/usr/include/c++/12/bits/range_access.h" 3 27002: 27002: } 27002: # 67 "/usr/include/c++/12/deque" 2 3 27002: # 1 "/usr/include/c++/12/bits/deque.tcc" 1 3 27002: # 61 "/usr/include/c++/12/bits/deque.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_default_initialize() 27002: { 27002: _Map_pointer __cur; 27002: try 27002: { 27002: for (__cur = this->_M_impl._M_start._M_node; 27002: __cur < this->_M_impl._M_finish._M_node; 27002: ++__cur) 27002: std::__uninitialized_default_a(*__cur, *__cur + _S_buffer_size(), 27002: _M_get_Tp_allocator()); 27002: std::__uninitialized_default_a(this->_M_impl._M_finish._M_first, 27002: this->_M_impl._M_finish._M_cur, 27002: _M_get_Tp_allocator()); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 27002: _M_get_Tp_allocator()); 27002: throw; 27002: } 27002: } 27002: 27002: 27002: template 27002: deque<_Tp, _Alloc>& 27002: deque<_Tp, _Alloc>:: 27002: operator=(const deque& __x) 27002: { 27002: if (std::__addressof(__x) != this) 27002: { 27002: 27002: if (_Alloc_traits::_S_propagate_on_copy_assign()) 27002: { 27002: if (!_Alloc_traits::_S_always_equal() 27002: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 27002: { 27002: 27002: 27002: _M_replace_map(__x, __x.get_allocator()); 27002: std::__alloc_on_copy(_M_get_Tp_allocator(), 27002: __x._M_get_Tp_allocator()); 27002: return *this; 27002: } 27002: std::__alloc_on_copy(_M_get_Tp_allocator(), 27002: __x._M_get_Tp_allocator()); 27002: } 27002: 27002: const size_type __len = size(); 27002: if (__len >= __x.size()) 27002: _M_erase_at_end(std::copy(__x.begin(), __x.end(), 27002: this->_M_impl._M_start)); 27002: else 27002: { 27002: const_iterator __mid = __x.begin() + difference_type(__len); 27002: std::copy(__x.begin(), __mid, this->_M_impl._M_start); 27002: _M_range_insert_aux(this->_M_impl._M_finish, __mid, __x.end(), 27002: std::random_access_iterator_tag()); 27002: } 27002: } 27002: return *this; 27002: } 27002: 27002: 27002: template 27002: template 27002: 27002: typename deque<_Tp, _Alloc>::reference 27002: 27002: 27002: 27002: deque<_Tp, _Alloc>:: 27002: emplace_front(_Args&&... __args) 27002: { 27002: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 27002: { 27002: _Alloc_traits::construct(this->_M_impl, 27002: this->_M_impl._M_start._M_cur - 1, 27002: std::forward<_Args>(__args)...); 27002: --this->_M_impl._M_start._M_cur; 27002: } 27002: else 27002: _M_push_front_aux(std::forward<_Args>(__args)...); 27002: 27002: return front(); 27002: 27002: } 27002: 27002: template 27002: template 27002: 27002: typename deque<_Tp, _Alloc>::reference 27002: 27002: 27002: 27002: deque<_Tp, _Alloc>:: 27002: emplace_back(_Args&&... __args) 27002: { 27002: if (this->_M_impl._M_finish._M_cur 27002: != this->_M_impl._M_finish._M_last - 1) 27002: { 27002: _Alloc_traits::construct(this->_M_impl, 27002: this->_M_impl._M_finish._M_cur, 27002: std::forward<_Args>(__args)...); 27002: ++this->_M_impl._M_finish._M_cur; 27002: } 27002: else 27002: _M_push_back_aux(std::forward<_Args>(__args)...); 27002: 27002: return back(); 27002: 27002: } 27002: 27002: 27002: 27002: template 27002: template 27002: typename deque<_Tp, _Alloc>::iterator 27002: deque<_Tp, _Alloc>:: 27002: emplace(const_iterator __position, _Args&&... __args) 27002: { 27002: if (__position._M_cur == this->_M_impl._M_start._M_cur) 27002: { 27002: emplace_front(std::forward<_Args>(__args)...); 27002: return this->_M_impl._M_start; 27002: } 27002: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 27002: { 27002: emplace_back(std::forward<_Args>(__args)...); 27002: iterator __tmp = this->_M_impl._M_finish; 27002: --__tmp; 27002: return __tmp; 27002: } 27002: else 27002: return _M_insert_aux(__position._M_const_cast(), 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: 27002: template 27002: typename deque<_Tp, _Alloc>::iterator 27002: deque<_Tp, _Alloc>:: 27002: 27002: insert(const_iterator __position, const value_type& __x) 27002: 27002: 27002: 27002: { 27002: if (__position._M_cur == this->_M_impl._M_start._M_cur) 27002: { 27002: push_front(__x); 27002: return this->_M_impl._M_start; 27002: } 27002: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 27002: { 27002: push_back(__x); 27002: iterator __tmp = this->_M_impl._M_finish; 27002: --__tmp; 27002: return __tmp; 27002: } 27002: else 27002: return _M_insert_aux(__position._M_const_cast(), __x); 27002: } 27002: 27002: template 27002: typename deque<_Tp, _Alloc>::iterator 27002: deque<_Tp, _Alloc>:: 27002: _M_erase(iterator __position) 27002: { 27002: iterator __next = __position; 27002: ++__next; 27002: const difference_type __index = __position - begin(); 27002: if (static_cast(__index) < (size() >> 1)) 27002: { 27002: if (__position != begin()) 27002: std::move_backward(begin(), __position, __next); 27002: pop_front(); 27002: } 27002: else 27002: { 27002: if (__next != end()) 27002: std::move(__next, end(), __position); 27002: pop_back(); 27002: } 27002: return begin() + __index; 27002: } 27002: 27002: template 27002: typename deque<_Tp, _Alloc>::iterator 27002: deque<_Tp, _Alloc>:: 27002: _M_erase(iterator __first, iterator __last) 27002: { 27002: if (__first == __last) 27002: return __first; 27002: else if (__first == begin() && __last == end()) 27002: { 27002: clear(); 27002: return end(); 27002: } 27002: else 27002: { 27002: const difference_type __n = __last - __first; 27002: const difference_type __elems_before = __first - begin(); 27002: if (static_cast(__elems_before) <= (size() - __n) / 2) 27002: { 27002: if (__first != begin()) 27002: std::move_backward(begin(), __first, __last); 27002: _M_erase_at_begin(begin() + __n); 27002: } 27002: else 27002: { 27002: if (__last != end()) 27002: std::move(__last, end(), __first); 27002: _M_erase_at_end(end() - __n); 27002: } 27002: return begin() + __elems_before; 27002: } 27002: } 27002: 27002: template 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_assign_aux(_InputIterator __first, _InputIterator __last, 27002: std::input_iterator_tag) 27002: { 27002: iterator __cur = begin(); 27002: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 27002: *__cur = *__first; 27002: if (__first == __last) 27002: _M_erase_at_end(__cur); 27002: else 27002: _M_range_insert_aux(end(), __first, __last, 27002: std::__iterator_category(__first)); 27002: } 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) 27002: { 27002: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 27002: { 27002: iterator __new_start = _M_reserve_elements_at_front(__n); 27002: try 27002: { 27002: std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, 27002: __x, _M_get_Tp_allocator()); 27002: this->_M_impl._M_start = __new_start; 27002: } 27002: catch(...) 27002: { 27002: _M_destroy_nodes(__new_start._M_node, 27002: this->_M_impl._M_start._M_node); 27002: throw; 27002: } 27002: } 27002: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 27002: { 27002: iterator __new_finish = _M_reserve_elements_at_back(__n); 27002: try 27002: { 27002: std::__uninitialized_fill_a(this->_M_impl._M_finish, 27002: __new_finish, __x, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish = __new_finish; 27002: } 27002: catch(...) 27002: { 27002: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 27002: __new_finish._M_node + 1); 27002: throw; 27002: } 27002: } 27002: else 27002: _M_insert_aux(__pos, __n, __x); 27002: } 27002: 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_default_append(size_type __n) 27002: { 27002: if (__n) 27002: { 27002: iterator __new_finish = _M_reserve_elements_at_back(__n); 27002: try 27002: { 27002: std::__uninitialized_default_a(this->_M_impl._M_finish, 27002: __new_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish = __new_finish; 27002: } 27002: catch(...) 27002: { 27002: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 27002: __new_finish._M_node + 1); 27002: throw; 27002: } 27002: } 27002: } 27002: 27002: template 27002: bool 27002: deque<_Tp, _Alloc>:: 27002: _M_shrink_to_fit() 27002: { 27002: const difference_type __front_capacity 27002: = (this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first); 27002: if (__front_capacity == 0) 27002: return false; 27002: 27002: const difference_type __back_capacity 27002: = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur); 27002: if (__front_capacity + __back_capacity < _S_buffer_size()) 27002: return false; 27002: 27002: return std::__shrink_to_fit_aux::_S_do_it(*this); 27002: } 27002: 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_fill_initialize(const value_type& __value) 27002: { 27002: _Map_pointer __cur; 27002: try 27002: { 27002: for (__cur = this->_M_impl._M_start._M_node; 27002: __cur < this->_M_impl._M_finish._M_node; 27002: ++__cur) 27002: std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), 27002: __value, _M_get_Tp_allocator()); 27002: std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, 27002: this->_M_impl._M_finish._M_cur, 27002: __value, _M_get_Tp_allocator()); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 27002: _M_get_Tp_allocator()); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_range_initialize(_InputIterator __first, _InputIterator __last, 27002: std::input_iterator_tag) 27002: { 27002: this->_M_initialize_map(0); 27002: try 27002: { 27002: for (; __first != __last; ++__first) 27002: 27002: emplace_back(*__first); 27002: 27002: 27002: 27002: } 27002: catch(...) 27002: { 27002: clear(); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 27002: std::forward_iterator_tag) 27002: { 27002: const size_type __n = std::distance(__first, __last); 27002: this->_M_initialize_map(_S_check_init_len(__n, _M_get_Tp_allocator())); 27002: 27002: _Map_pointer __cur_node; 27002: try 27002: { 27002: for (__cur_node = this->_M_impl._M_start._M_node; 27002: __cur_node < this->_M_impl._M_finish._M_node; 27002: ++__cur_node) 27002: { 27002: if (__n < _S_buffer_size()) 27002: __builtin_unreachable(); 27002: 27002: _ForwardIterator __mid = __first; 27002: std::advance(__mid, _S_buffer_size()); 27002: std::__uninitialized_copy_a(__first, __mid, *__cur_node, 27002: _M_get_Tp_allocator()); 27002: __first = __mid; 27002: } 27002: std::__uninitialized_copy_a(__first, __last, 27002: this->_M_impl._M_finish._M_first, 27002: _M_get_Tp_allocator()); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(this->_M_impl._M_start, 27002: iterator(*__cur_node, __cur_node), 27002: _M_get_Tp_allocator()); 27002: throw; 27002: } 27002: } 27002: 27002: 27002: template 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_push_back_aux(_Args&&... __args) 27002: 27002: 27002: 27002: 27002: 27002: { 27002: if (size() == max_size()) 27002: __throw_length_error( 27002: ("cannot create std::deque larger than max_size()")); 27002: 27002: _M_reserve_map_at_back(); 27002: *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); 27002: try 27002: { 27002: 27002: _Alloc_traits::construct(this->_M_impl, 27002: this->_M_impl._M_finish._M_cur, 27002: std::forward<_Args>(__args)...); 27002: 27002: 27002: 27002: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node 27002: + 1); 27002: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; 27002: } 27002: catch(...) 27002: { 27002: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); 27002: throw; 27002: } 27002: } 27002: 27002: 27002: template 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_push_front_aux(_Args&&... __args) 27002: 27002: 27002: 27002: 27002: 27002: { 27002: if (size() == max_size()) 27002: __throw_length_error( 27002: ("cannot create std::deque larger than max_size()")); 27002: 27002: _M_reserve_map_at_front(); 27002: *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); 27002: try 27002: { 27002: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node 27002: - 1); 27002: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; 27002: 27002: _Alloc_traits::construct(this->_M_impl, 27002: this->_M_impl._M_start._M_cur, 27002: std::forward<_Args>(__args)...); 27002: 27002: 27002: 27002: } 27002: catch(...) 27002: { 27002: ++this->_M_impl._M_start; 27002: _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); 27002: throw; 27002: } 27002: } 27002: 27002: 27002: template 27002: void deque<_Tp, _Alloc>:: 27002: _M_pop_back_aux() 27002: { 27002: _M_deallocate_node(this->_M_impl._M_finish._M_first); 27002: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); 27002: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; 27002: _Alloc_traits::destroy(_M_get_Tp_allocator(), 27002: this->_M_impl._M_finish._M_cur); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: void deque<_Tp, _Alloc>:: 27002: _M_pop_front_aux() 27002: { 27002: _Alloc_traits::destroy(_M_get_Tp_allocator(), 27002: this->_M_impl._M_start._M_cur); 27002: _M_deallocate_node(this->_M_impl._M_start._M_first); 27002: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); 27002: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; 27002: } 27002: 27002: template 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_range_insert_aux(iterator __pos, 27002: _InputIterator __first, _InputIterator __last, 27002: std::input_iterator_tag) 27002: { std::copy(__first, __last, std::inserter(*this, __pos)); } 27002: 27002: template 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_range_insert_aux(iterator __pos, 27002: _ForwardIterator __first, _ForwardIterator __last, 27002: std::forward_iterator_tag) 27002: { 27002: const size_type __n = std::distance(__first, __last); 27002: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 27002: { 27002: iterator __new_start = _M_reserve_elements_at_front(__n); 27002: try 27002: { 27002: std::__uninitialized_copy_a(__first, __last, __new_start, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_start = __new_start; 27002: } 27002: catch(...) 27002: { 27002: _M_destroy_nodes(__new_start._M_node, 27002: this->_M_impl._M_start._M_node); 27002: throw; 27002: } 27002: } 27002: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 27002: { 27002: iterator __new_finish = _M_reserve_elements_at_back(__n); 27002: try 27002: { 27002: std::__uninitialized_copy_a(__first, __last, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish = __new_finish; 27002: } 27002: catch(...) 27002: { 27002: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 27002: __new_finish._M_node + 1); 27002: throw; 27002: } 27002: } 27002: else 27002: _M_insert_aux(__pos, __first, __last, __n); 27002: } 27002: 27002: template 27002: 27002: template 27002: typename deque<_Tp, _Alloc>::iterator 27002: deque<_Tp, _Alloc>:: 27002: _M_insert_aux(iterator __pos, _Args&&... __args) 27002: { 27002: value_type __x_copy(std::forward<_Args>(__args)...); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: difference_type __index = __pos - this->_M_impl._M_start; 27002: if (static_cast(__index) < size() / 2) 27002: { 27002: push_front(std::move(front())); 27002: iterator __front1 = this->_M_impl._M_start; 27002: ++__front1; 27002: iterator __front2 = __front1; 27002: ++__front2; 27002: __pos = this->_M_impl._M_start + __index; 27002: iterator __pos1 = __pos; 27002: ++__pos1; 27002: std::move(__front2, __pos1, __front1); 27002: } 27002: else 27002: { 27002: push_back(std::move(back())); 27002: iterator __back1 = this->_M_impl._M_finish; 27002: --__back1; 27002: iterator __back2 = __back1; 27002: --__back2; 27002: __pos = this->_M_impl._M_start + __index; 27002: std::move_backward(__pos, __back2, __back1); 27002: } 27002: *__pos = std::move(__x_copy); 27002: return __pos; 27002: } 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) 27002: { 27002: const difference_type __elems_before = __pos - this->_M_impl._M_start; 27002: const size_type __length = this->size(); 27002: value_type __x_copy = __x; 27002: if (__elems_before < difference_type(__length / 2)) 27002: { 27002: iterator __new_start = _M_reserve_elements_at_front(__n); 27002: iterator __old_start = this->_M_impl._M_start; 27002: __pos = this->_M_impl._M_start + __elems_before; 27002: try 27002: { 27002: if (__elems_before >= difference_type(__n)) 27002: { 27002: iterator __start_n = (this->_M_impl._M_start 27002: + difference_type(__n)); 27002: std::__uninitialized_move_a(this->_M_impl._M_start, 27002: __start_n, __new_start, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_start = __new_start; 27002: std::move(__start_n, __pos, __old_start); 27002: std::fill(__pos - difference_type(__n), __pos, __x_copy); 27002: } 27002: else 27002: { 27002: std::__uninitialized_move_fill(this->_M_impl._M_start, 27002: __pos, __new_start, 27002: this->_M_impl._M_start, 27002: __x_copy, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_start = __new_start; 27002: std::fill(__old_start, __pos, __x_copy); 27002: } 27002: } 27002: catch(...) 27002: { 27002: _M_destroy_nodes(__new_start._M_node, 27002: this->_M_impl._M_start._M_node); 27002: throw; 27002: } 27002: } 27002: else 27002: { 27002: iterator __new_finish = _M_reserve_elements_at_back(__n); 27002: iterator __old_finish = this->_M_impl._M_finish; 27002: const difference_type __elems_after = 27002: difference_type(__length) - __elems_before; 27002: __pos = this->_M_impl._M_finish - __elems_after; 27002: try 27002: { 27002: if (__elems_after > difference_type(__n)) 27002: { 27002: iterator __finish_n = (this->_M_impl._M_finish 27002: - difference_type(__n)); 27002: std::__uninitialized_move_a(__finish_n, 27002: this->_M_impl._M_finish, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish = __new_finish; 27002: std::move_backward(__pos, __finish_n, __old_finish); 27002: std::fill(__pos, __pos + difference_type(__n), __x_copy); 27002: } 27002: else 27002: { 27002: std::__uninitialized_fill_move(this->_M_impl._M_finish, 27002: __pos + difference_type(__n), 27002: __x_copy, __pos, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish = __new_finish; 27002: std::fill(__pos, __old_finish, __x_copy); 27002: } 27002: } 27002: catch(...) 27002: { 27002: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 27002: __new_finish._M_node + 1); 27002: throw; 27002: } 27002: } 27002: } 27002: 27002: template 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_insert_aux(iterator __pos, 27002: _ForwardIterator __first, _ForwardIterator __last, 27002: size_type __n) 27002: { 27002: const difference_type __elemsbefore = __pos - this->_M_impl._M_start; 27002: const size_type __length = size(); 27002: if (static_cast(__elemsbefore) < __length / 2) 27002: { 27002: iterator __new_start = _M_reserve_elements_at_front(__n); 27002: iterator __old_start = this->_M_impl._M_start; 27002: __pos = this->_M_impl._M_start + __elemsbefore; 27002: try 27002: { 27002: if (__elemsbefore >= difference_type(__n)) 27002: { 27002: iterator __start_n = (this->_M_impl._M_start 27002: + difference_type(__n)); 27002: std::__uninitialized_move_a(this->_M_impl._M_start, 27002: __start_n, __new_start, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_start = __new_start; 27002: std::move(__start_n, __pos, __old_start); 27002: std::copy(__first, __last, __pos - difference_type(__n)); 27002: } 27002: else 27002: { 27002: _ForwardIterator __mid = __first; 27002: std::advance(__mid, difference_type(__n) - __elemsbefore); 27002: std::__uninitialized_move_copy(this->_M_impl._M_start, 27002: __pos, __first, __mid, 27002: __new_start, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_start = __new_start; 27002: std::copy(__mid, __last, __old_start); 27002: } 27002: } 27002: catch(...) 27002: { 27002: _M_destroy_nodes(__new_start._M_node, 27002: this->_M_impl._M_start._M_node); 27002: throw; 27002: } 27002: } 27002: else 27002: { 27002: iterator __new_finish = _M_reserve_elements_at_back(__n); 27002: iterator __old_finish = this->_M_impl._M_finish; 27002: const difference_type __elemsafter = 27002: difference_type(__length) - __elemsbefore; 27002: __pos = this->_M_impl._M_finish - __elemsafter; 27002: try 27002: { 27002: if (__elemsafter > difference_type(__n)) 27002: { 27002: iterator __finish_n = (this->_M_impl._M_finish 27002: - difference_type(__n)); 27002: std::__uninitialized_move_a(__finish_n, 27002: this->_M_impl._M_finish, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish = __new_finish; 27002: std::move_backward(__pos, __finish_n, __old_finish); 27002: std::copy(__first, __last, __pos); 27002: } 27002: else 27002: { 27002: _ForwardIterator __mid = __first; 27002: std::advance(__mid, __elemsafter); 27002: std::__uninitialized_copy_move(__mid, __last, __pos, 27002: this->_M_impl._M_finish, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish = __new_finish; 27002: std::copy(__first, __mid, __pos); 27002: } 27002: } 27002: catch(...) 27002: { 27002: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 27002: __new_finish._M_node + 1); 27002: throw; 27002: } 27002: } 27002: } 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_destroy_data_aux(iterator __first, iterator __last) 27002: { 27002: for (_Map_pointer __node = __first._M_node + 1; 27002: __node < __last._M_node; ++__node) 27002: std::_Destroy(*__node, *__node + _S_buffer_size(), 27002: _M_get_Tp_allocator()); 27002: 27002: if (__first._M_node != __last._M_node) 27002: { 27002: std::_Destroy(__first._M_cur, __first._M_last, 27002: _M_get_Tp_allocator()); 27002: std::_Destroy(__last._M_first, __last._M_cur, 27002: _M_get_Tp_allocator()); 27002: } 27002: else 27002: std::_Destroy(__first._M_cur, __last._M_cur, 27002: _M_get_Tp_allocator()); 27002: } 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_new_elements_at_front(size_type __new_elems) 27002: { 27002: if (this->max_size() - this->size() < __new_elems) 27002: __throw_length_error(("deque::_M_new_elements_at_front")); 27002: 27002: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 27002: / _S_buffer_size()); 27002: _M_reserve_map_at_front(__new_nodes); 27002: size_type __i; 27002: try 27002: { 27002: for (__i = 1; __i <= __new_nodes; ++__i) 27002: *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); 27002: } 27002: catch(...) 27002: { 27002: for (size_type __j = 1; __j < __i; ++__j) 27002: _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_new_elements_at_back(size_type __new_elems) 27002: { 27002: if (this->max_size() - this->size() < __new_elems) 27002: __throw_length_error(("deque::_M_new_elements_at_back")); 27002: 27002: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 27002: / _S_buffer_size()); 27002: _M_reserve_map_at_back(__new_nodes); 27002: size_type __i; 27002: try 27002: { 27002: for (__i = 1; __i <= __new_nodes; ++__i) 27002: *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); 27002: } 27002: catch(...) 27002: { 27002: for (size_type __j = 1; __j < __i; ++__j) 27002: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: void 27002: deque<_Tp, _Alloc>:: 27002: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) 27002: { 27002: const size_type __old_num_nodes 27002: = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; 27002: const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; 27002: 27002: _Map_pointer __new_nstart; 27002: if (this->_M_impl._M_map_size > 2 * __new_num_nodes) 27002: { 27002: __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size 27002: - __new_num_nodes) / 2 27002: + (__add_at_front ? __nodes_to_add : 0); 27002: if (__new_nstart < this->_M_impl._M_start._M_node) 27002: std::copy(this->_M_impl._M_start._M_node, 27002: this->_M_impl._M_finish._M_node + 1, 27002: __new_nstart); 27002: else 27002: std::copy_backward(this->_M_impl._M_start._M_node, 27002: this->_M_impl._M_finish._M_node + 1, 27002: __new_nstart + __old_num_nodes); 27002: } 27002: else 27002: { 27002: size_type __new_map_size = this->_M_impl._M_map_size 27002: + std::max(this->_M_impl._M_map_size, 27002: __nodes_to_add) + 2; 27002: 27002: _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); 27002: __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 27002: + (__add_at_front ? __nodes_to_add : 0); 27002: std::copy(this->_M_impl._M_start._M_node, 27002: this->_M_impl._M_finish._M_node + 1, 27002: __new_nstart); 27002: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 27002: 27002: this->_M_impl._M_map = __new_map; 27002: this->_M_impl._M_map_size = __new_map_size; 27002: } 27002: 27002: this->_M_impl._M_start._M_set_node(__new_nstart); 27002: this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: void 27002: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __first, 27002: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __last, 27002: const _VTp& __value) 27002: { 27002: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 27002: if (__first._M_node != __last._M_node) 27002: { 27002: std::__fill_a1(__first._M_cur, __first._M_last, __value); 27002: 27002: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 27002: __node < __last._M_node; ++__node) 27002: std::__fill_a1(*__node, *__node + _Iter::_S_buffer_size(), __value); 27002: 27002: std::__fill_a1(__last._M_first, __last._M_cur, __value); 27002: } 27002: else 27002: std::__fill_a1(__first._M_cur, __last._M_cur, __value); 27002: } 27002: 27002: template 27002: _OI 27002: __copy_move_dit(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 27002: _OI __result) 27002: { 27002: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 27002: if (__first._M_node != __last._M_node) 27002: { 27002: __result 27002: = std::__copy_move_a1<_IsMove>(__first._M_cur, __first._M_last, 27002: __result); 27002: 27002: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 27002: __node != __last._M_node; ++__node) 27002: __result 27002: = std::__copy_move_a1<_IsMove>(*__node, 27002: *__node + _Iter::_S_buffer_size(), 27002: __result); 27002: 27002: return std::__copy_move_a1<_IsMove>(__last._M_first, __last._M_cur, 27002: __result); 27002: } 27002: 27002: return std::__copy_move_a1<_IsMove>(__first._M_cur, __last._M_cur, 27002: __result); 27002: } 27002: 27002: template 27002: _OI 27002: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 27002: _OI __result) 27002: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 27002: 27002: template 27002: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 27002: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 27002: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 27002: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 27002: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_random_access_iter<_II>::__value, 27002: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 27002: __copy_move_a1(_II __first, _II __last, 27002: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 27002: { 27002: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 27002: typedef typename _Iter::difference_type difference_type; 27002: 27002: difference_type __len = __last - __first; 27002: while (__len > 0) 27002: { 27002: const difference_type __clen 27002: = std::min(__len, __result._M_last - __result._M_cur); 27002: std::__copy_move_a1<_IsMove>(__first, __first + __clen, 27002: __result._M_cur); 27002: 27002: __first += __clen; 27002: __result += __clen; 27002: __len -= __clen; 27002: } 27002: 27002: return __result; 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_char<_CharT>::__value, 27002: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 27002: __copy_move_a2( 27002: istreambuf_iterator<_CharT, char_traits<_CharT> > __first, 27002: istreambuf_iterator<_CharT, char_traits<_CharT> > __last, 27002: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result) 27002: { 27002: if (__first == __last) 27002: return __result; 27002: 27002: for (;;) 27002: { 27002: const std::ptrdiff_t __len = __result._M_last - __result._M_cur; 27002: const std::ptrdiff_t __nb 27002: = std::__copy_n_a(__first, __len, __result._M_cur, false) 27002: - __result._M_cur; 27002: __result += __nb; 27002: 27002: if (__nb != __len) 27002: break; 27002: } 27002: 27002: return __result; 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_char<_CharT>::__value, 27002: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 27002: __copy_n_a( 27002: istreambuf_iterator<_CharT, char_traits<_CharT> > __it, _Size __size, 27002: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result, 27002: bool __strict) 27002: { 27002: if (__size == 0) 27002: return __result; 27002: 27002: do 27002: { 27002: const _Size __len 27002: = std::min<_Size>(__result._M_last - __result._M_cur, __size); 27002: std::__copy_n_a(__it, __len, __result._M_cur, __strict); 27002: __result += __len; 27002: __size -= __len; 27002: } 27002: while (__size != 0); 27002: return __result; 27002: } 27002: 27002: template 27002: _OI 27002: __copy_move_backward_dit( 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 27002: _OI __result) 27002: { 27002: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 27002: if (__first._M_node != __last._M_node) 27002: { 27002: __result = std::__copy_move_backward_a1<_IsMove>( 27002: __last._M_first, __last._M_cur, __result); 27002: 27002: for (typename _Iter::_Map_pointer __node = __last._M_node - 1; 27002: __node != __first._M_node; --__node) 27002: __result = std::__copy_move_backward_a1<_IsMove>( 27002: *__node, *__node + _Iter::_S_buffer_size(), __result); 27002: 27002: return std::__copy_move_backward_a1<_IsMove>( 27002: __first._M_cur, __first._M_last, __result); 27002: } 27002: 27002: return std::__copy_move_backward_a1<_IsMove>( 27002: __first._M_cur, __last._M_cur, __result); 27002: } 27002: 27002: template 27002: _OI 27002: __copy_move_backward_a1( 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 27002: _OI __result) 27002: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 27002: 27002: template 27002: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 27002: __copy_move_backward_a1( 27002: std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 27002: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 27002: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 27002: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_random_access_iter<_II>::__value, 27002: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 27002: __copy_move_backward_a1(_II __first, _II __last, 27002: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 27002: { 27002: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 27002: typedef typename _Iter::difference_type difference_type; 27002: 27002: difference_type __len = __last - __first; 27002: while (__len > 0) 27002: { 27002: difference_type __rlen = __result._M_cur - __result._M_first; 27002: _Tp* __rend = __result._M_cur; 27002: if (!__rlen) 27002: { 27002: __rlen = _Iter::_S_buffer_size(); 27002: __rend = *(__result._M_node - 1) + __rlen; 27002: } 27002: 27002: const difference_type __clen = std::min(__len, __rlen); 27002: std::__copy_move_backward_a1<_IsMove>(__last - __clen, __last, __rend); 27002: 27002: __last -= __clen; 27002: __result -= __clen; 27002: __len -= __clen; 27002: } 27002: 27002: return __result; 27002: } 27002: 27002: template 27002: bool 27002: __equal_dit( 27002: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __first1, 27002: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __last1, 27002: _II __first2) 27002: { 27002: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 27002: if (__first1._M_node != __last1._M_node) 27002: { 27002: if (!std::__equal_aux1(__first1._M_cur, __first1._M_last, __first2)) 27002: return false; 27002: 27002: __first2 += __first1._M_last - __first1._M_cur; 27002: for (typename _Iter::_Map_pointer __node = __first1._M_node + 1; 27002: __node != __last1._M_node; 27002: __first2 += _Iter::_S_buffer_size(), ++__node) 27002: if (!std::__equal_aux1(*__node, *__node + _Iter::_S_buffer_size(), 27002: __first2)) 27002: return false; 27002: 27002: return std::__equal_aux1(__last1._M_first, __last1._M_cur, __first2); 27002: } 27002: 27002: return std::__equal_aux1(__first1._M_cur, __last1._M_cur, __first2); 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_random_access_iter<_II>::__value, bool>::__type 27002: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first1, 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last1, 27002: _II __first2) 27002: { return std::__equal_dit(__first1, __last1, __first2); } 27002: 27002: template 27002: bool 27002: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 27002: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 27002: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2) 27002: { return std::__equal_dit(__first1, __last1, __first2); } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if< 27002: __is_random_access_iter<_II>::__value, bool>::__type 27002: __equal_aux1(_II __first1, _II __last1, 27002: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first2) 27002: { 27002: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 27002: typedef typename _Iter::difference_type difference_type; 27002: 27002: difference_type __len = __last1 - __first1; 27002: while (__len > 0) 27002: { 27002: const difference_type __clen 27002: = std::min(__len, __first2._M_last - __first2._M_cur); 27002: if (!std::__equal_aux1(__first1, __first1 + __clen, __first2._M_cur)) 27002: return false; 27002: 27002: __first1 += __clen; 27002: __len -= __clen; 27002: __first2 += __clen; 27002: } 27002: 27002: return true; 27002: } 27002: 27002: template 27002: int 27002: __lex_cmp_dit( 27002: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __first1, 27002: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __last1, 27002: const _Tp2* __first2, const _Tp2* __last2) 27002: { 27002: const bool __simple = 27002: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 27002: && __is_pointer<_Ptr>::__value 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ); 27002: typedef std::__lexicographical_compare<__simple> _Lc; 27002: 27002: while (__first1._M_node != __last1._M_node) 27002: { 27002: const ptrdiff_t __len1 = __first1._M_last - __first1._M_cur; 27002: const ptrdiff_t __len2 = __last2 - __first2; 27002: const ptrdiff_t __len = std::min(__len1, __len2); 27002: 27002: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_last, 27002: __first2, __first2 + __len)) 27002: return __ret; 27002: 27002: __first1 += __len; 27002: __first2 += __len; 27002: } 27002: return _Lc::__3way(__first1._M_cur, __last1._M_cur, 27002: __first2, __last2); 27002: } 27002: 27002: template 27002: inline bool 27002: __lexicographical_compare_aux1( 27002: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 27002: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 27002: _Tp2* __first2, _Tp2* __last2) 27002: { return std::__lex_cmp_dit(__first1, __last1, __first2, __last2) < 0; } 27002: 27002: template 27002: inline bool 27002: __lexicographical_compare_aux1(_Tp1* __first1, _Tp1* __last1, 27002: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 27002: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 27002: { return std::__lex_cmp_dit(__first2, __last2, __first1, __last1) > 0; } 27002: 27002: template 27002: inline bool 27002: __lexicographical_compare_aux1( 27002: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 27002: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 27002: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 27002: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 27002: { 27002: const bool __simple = 27002: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 27002: && __is_pointer<_Ptr1>::__value 27002: && __is_pointer<_Ptr2>::__value 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ); 27002: typedef std::__lexicographical_compare<__simple> _Lc; 27002: 27002: while (__first1 != __last1) 27002: { 27002: const ptrdiff_t __len2 = __first2._M_node == __last2._M_node 27002: ? __last2._M_cur - __first2._M_cur 27002: : __first2._M_last - __first2._M_cur; 27002: if (__len2 == 0) 27002: return false; 27002: const ptrdiff_t __len1 = __first1._M_node == __last1._M_node 27002: ? __last1._M_cur - __first1._M_cur 27002: : __first1._M_last - __first1._M_cur; 27002: const ptrdiff_t __len = std::min(__len1, __len2); 27002: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_cur + __len, 27002: __first2._M_cur, __first2._M_cur + __len)) 27002: return __ret < 0; 27002: 27002: __first1 += __len; 27002: __first2 += __len; 27002: } 27002: 27002: return __last2 != __first2; 27002: } 27002: 27002: 27002: } 27002: # 68 "/usr/include/c++/12/deque" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace pmr 27002: { 27002: template class polymorphic_allocator; 27002: template 27002: using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>; 27002: } 27002: 27002: } 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: # 1 "/usr/include/c++/12/functional" 1 3 27002: # 46 "/usr/include/c++/12/functional" 3 27002: 27002: # 47 "/usr/include/c++/12/functional" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/tuple" 1 3 27002: # 32 "/usr/include/c++/12/tuple" 3 27002: 27002: # 33 "/usr/include/c++/12/tuple" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/uses_allocator.h" 1 3 27002: # 35 "/usr/include/c++/12/bits/uses_allocator.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: struct __erased_type { }; 27002: 27002: 27002: 27002: 27002: template 27002: using __is_erased_or_convertible 27002: = __or_, is_same<_Tp, __erased_type>>; 27002: 27002: 27002: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 27002: 27002: inline constexpr allocator_arg_t allocator_arg = 27002: allocator_arg_t(); 27002: 27002: template> 27002: struct __uses_allocator_helper 27002: : false_type { }; 27002: 27002: template 27002: struct __uses_allocator_helper<_Tp, _Alloc, 27002: __void_t> 27002: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 27002: { }; 27002: 27002: 27002: template 27002: struct uses_allocator 27002: : __uses_allocator_helper<_Tp, _Alloc>::type 27002: { }; 27002: 27002: struct __uses_alloc_base { }; 27002: 27002: struct __uses_alloc0 : __uses_alloc_base 27002: { 27002: struct _Sink { void operator=(const void*) { } } _M_a; 27002: }; 27002: 27002: template 27002: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 27002: 27002: template 27002: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 27002: 27002: template 27002: struct __uses_alloc; 27002: 27002: template 27002: struct __uses_alloc 27002: : __conditional_t< 27002: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 27002: __uses_alloc1<_Alloc>, 27002: __uses_alloc2<_Alloc>> 27002: { 27002: 27002: 27002: static_assert(__or_< 27002: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 27002: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 27002: "construction with an allocator must be possible" 27002: " if uses_allocator is true"); 27002: }; 27002: 27002: template 27002: struct __uses_alloc 27002: : __uses_alloc0 { }; 27002: 27002: template 27002: using __uses_alloc_t = 27002: __uses_alloc::value, _Tp, _Alloc, _Args...>; 27002: 27002: template 27002: 27002: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 27002: __use_alloc(const _Alloc& __a) 27002: { 27002: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 27002: __ret._M_a = std::__addressof(__a); 27002: return __ret; 27002: } 27002: 27002: template 27002: void 27002: __use_alloc(const _Alloc&&) = delete; 27002: 27002: 27002: template 27002: inline constexpr bool uses_allocator_v = 27002: uses_allocator<_Tp, _Alloc>::value; 27002: 27002: 27002: template class _Predicate, 27002: typename _Tp, typename _Alloc, typename... _Args> 27002: struct __is_uses_allocator_predicate 27002: : __conditional_t::value, 27002: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 27002: _Predicate<_Tp, _Args..., _Alloc>>, 27002: _Predicate<_Tp, _Args...>> { }; 27002: 27002: template 27002: struct __is_uses_allocator_constructible 27002: : __is_uses_allocator_predicate 27002: { }; 27002: 27002: 27002: template 27002: inline constexpr bool __is_uses_allocator_constructible_v = 27002: __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 27002: 27002: 27002: template 27002: struct __is_nothrow_uses_allocator_constructible 27002: : __is_uses_allocator_predicate 27002: { }; 27002: 27002: 27002: 27002: template 27002: inline constexpr bool 27002: __is_nothrow_uses_allocator_constructible_v = 27002: __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 27002: 27002: 27002: template 27002: void __uses_allocator_construct_impl(__uses_alloc0 __a, _Tp* __ptr, 27002: _Args&&... __args) 27002: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 27002: 27002: template 27002: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 27002: _Args&&... __args) 27002: { 27002: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: template 27002: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 27002: _Args&&... __args) 27002: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 27002: 27002: template 27002: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 27002: _Args&&... __args) 27002: { 27002: std::__uses_allocator_construct_impl( 27002: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: 27002: 27002: } 27002: # 40 "/usr/include/c++/12/tuple" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class tuple; 27002: 27002: template 27002: struct __is_empty_non_tuple : is_empty<_Tp> { }; 27002: 27002: 27002: template 27002: struct __is_empty_non_tuple> : false_type { }; 27002: 27002: 27002: template 27002: using __empty_not_final 27002: = __conditional_t<__is_final(_Tp), false_type, 27002: __is_empty_non_tuple<_Tp>>; 27002: 27002: template::value> 27002: struct _Head_base; 27002: 27002: 27002: template 27002: struct _Head_base<_Idx, _Head, true> 27002: { 27002: constexpr _Head_base() 27002: : _M_head_impl() { } 27002: 27002: constexpr _Head_base(const _Head& __h) 27002: : _M_head_impl(__h) { } 27002: 27002: constexpr _Head_base(const _Head_base&) = default; 27002: constexpr _Head_base(_Head_base&&) = default; 27002: 27002: template 27002: constexpr _Head_base(_UHead&& __h) 27002: : _M_head_impl(std::forward<_UHead>(__h)) { } 27002: 27002: 27002: _Head_base(allocator_arg_t, __uses_alloc0) 27002: : _M_head_impl() { } 27002: 27002: template 27002: 27002: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 27002: : _M_head_impl(allocator_arg, *__a._M_a) { } 27002: 27002: template 27002: 27002: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 27002: : _M_head_impl(*__a._M_a) { } 27002: 27002: template 27002: 27002: _Head_base(__uses_alloc0, _UHead&& __uhead) 27002: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 27002: 27002: template 27002: 27002: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 27002: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 27002: { } 27002: 27002: template 27002: 27002: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 27002: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 27002: 27002: static constexpr _Head& 27002: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 27002: 27002: static constexpr const _Head& 27002: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 27002: 27002: [[__no_unique_address__]] _Head _M_head_impl; 27002: }; 27002: # 186 "/usr/include/c++/12/tuple" 3 27002: template 27002: struct _Head_base<_Idx, _Head, false> 27002: { 27002: constexpr _Head_base() 27002: : _M_head_impl() { } 27002: 27002: constexpr _Head_base(const _Head& __h) 27002: : _M_head_impl(__h) { } 27002: 27002: constexpr _Head_base(const _Head_base&) = default; 27002: constexpr _Head_base(_Head_base&&) = default; 27002: 27002: template 27002: constexpr _Head_base(_UHead&& __h) 27002: : _M_head_impl(std::forward<_UHead>(__h)) { } 27002: 27002: 27002: _Head_base(allocator_arg_t, __uses_alloc0) 27002: : _M_head_impl() { } 27002: 27002: template 27002: 27002: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 27002: : _M_head_impl(allocator_arg, *__a._M_a) { } 27002: 27002: template 27002: 27002: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 27002: : _M_head_impl(*__a._M_a) { } 27002: 27002: template 27002: 27002: _Head_base(__uses_alloc0, _UHead&& __uhead) 27002: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 27002: 27002: template 27002: 27002: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 27002: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 27002: { } 27002: 27002: template 27002: 27002: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 27002: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 27002: 27002: static constexpr _Head& 27002: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 27002: 27002: static constexpr const _Head& 27002: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 27002: 27002: _Head _M_head_impl; 27002: }; 27002: # 249 "/usr/include/c++/12/tuple" 3 27002: template 27002: struct _Tuple_impl; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Tuple_impl<_Idx, _Head, _Tail...> 27002: : public _Tuple_impl<_Idx + 1, _Tail...>, 27002: private _Head_base<_Idx, _Head> 27002: { 27002: template friend struct _Tuple_impl; 27002: 27002: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 27002: typedef _Head_base<_Idx, _Head> _Base; 27002: 27002: static constexpr _Head& 27002: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 27002: 27002: static constexpr const _Head& 27002: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 27002: 27002: static constexpr _Inherited& 27002: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 27002: 27002: static constexpr const _Inherited& 27002: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 27002: 27002: constexpr _Tuple_impl() 27002: : _Inherited(), _Base() { } 27002: 27002: explicit constexpr 27002: _Tuple_impl(const _Head& __head, const _Tail&... __tail) 27002: : _Inherited(__tail...), _Base(__head) 27002: { } 27002: 27002: template> 27002: explicit constexpr 27002: _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 27002: : _Inherited(std::forward<_UTail>(__tail)...), 27002: _Base(std::forward<_UHead>(__head)) 27002: { } 27002: 27002: constexpr _Tuple_impl(const _Tuple_impl&) = default; 27002: 27002: 27002: 27002: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 27002: 27002: _Tuple_impl(_Tuple_impl&&) = default; 27002: 27002: template 27002: constexpr 27002: _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 27002: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 27002: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) 27002: { } 27002: 27002: template 27002: constexpr 27002: _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 27002: : _Inherited(std::move 27002: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 27002: _Base(std::forward<_UHead> 27002: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 27002: : _Inherited(__tag, __a), 27002: _Base(__tag, __use_alloc<_Head>(__a)) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: const _Head& __head, const _Tail&... __tail) 27002: : _Inherited(__tag, __a, __tail...), 27002: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) 27002: { } 27002: 27002: template> 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: _UHead&& __head, _UTail&&... __tail) 27002: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 27002: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 27002: std::forward<_UHead>(__head)) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: const _Tuple_impl& __in) 27002: : _Inherited(__tag, __a, _M_tail(__in)), 27002: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: _Tuple_impl&& __in) 27002: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 27002: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 27002: std::forward<_Head>(_M_head(__in))) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) 27002: : _Inherited(__tag, __a, 27002: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), 27002: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 27002: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 27002: : _Inherited(__tag, __a, std::move 27002: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 27002: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 27002: std::forward<_UHead> 27002: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 27002: { } 27002: 27002: template 27002: 27002: void 27002: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 27002: { 27002: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 27002: _M_tail(*this)._M_assign( 27002: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 27002: } 27002: 27002: template 27002: 27002: void 27002: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 27002: { 27002: _M_head(*this) = std::forward<_UHead> 27002: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 27002: _M_tail(*this)._M_assign( 27002: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 27002: } 27002: 27002: protected: 27002: 27002: void 27002: _M_swap(_Tuple_impl& __in) 27002: { 27002: using std::swap; 27002: swap(_M_head(*this), _M_head(__in)); 27002: _Inherited::_M_swap(_M_tail(__in)); 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct _Tuple_impl<_Idx, _Head> 27002: : private _Head_base<_Idx, _Head> 27002: { 27002: template friend struct _Tuple_impl; 27002: 27002: typedef _Head_base<_Idx, _Head> _Base; 27002: 27002: static constexpr _Head& 27002: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 27002: 27002: static constexpr const _Head& 27002: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 27002: 27002: constexpr 27002: _Tuple_impl() 27002: : _Base() { } 27002: 27002: explicit constexpr 27002: _Tuple_impl(const _Head& __head) 27002: : _Base(__head) 27002: { } 27002: 27002: template 27002: explicit constexpr 27002: _Tuple_impl(_UHead&& __head) 27002: : _Base(std::forward<_UHead>(__head)) 27002: { } 27002: 27002: constexpr _Tuple_impl(const _Tuple_impl&) = default; 27002: 27002: 27002: 27002: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 27002: 27002: 27002: 27002: 27002: constexpr 27002: _Tuple_impl(_Tuple_impl&& __in) 27002: noexcept(is_nothrow_move_constructible<_Head>::value) 27002: : _Base(static_cast<_Base&&>(__in)) 27002: { } 27002: 27002: 27002: template 27002: constexpr 27002: _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 27002: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) 27002: { } 27002: 27002: template 27002: constexpr 27002: _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 27002: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 27002: : _Base(__tag, __use_alloc<_Head>(__a)) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: const _Head& __head) 27002: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: _UHead&& __head) 27002: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 27002: std::forward<_UHead>(__head)) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: const _Tuple_impl& __in) 27002: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: _Tuple_impl&& __in) 27002: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 27002: std::forward<_Head>(_M_head(__in))) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: const _Tuple_impl<_Idx, _UHead>& __in) 27002: : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 27002: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) 27002: { } 27002: 27002: template 27002: 27002: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 27002: _Tuple_impl<_Idx, _UHead>&& __in) 27002: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 27002: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 27002: { } 27002: 27002: template 27002: 27002: void 27002: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 27002: { 27002: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 27002: } 27002: 27002: template 27002: 27002: void 27002: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 27002: { 27002: _M_head(*this) 27002: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 27002: } 27002: 27002: protected: 27002: 27002: void 27002: _M_swap(_Tuple_impl& __in) 27002: { 27002: using std::swap; 27002: swap(_M_head(*this), _M_head(__in)); 27002: } 27002: }; 27002: 27002: 27002: 27002: template 27002: struct _TupleConstraints 27002: { 27002: 27002: 27002: 27002: template 27002: static constexpr bool __is_implicitly_constructible() 27002: { 27002: return __and_..., 27002: is_convertible<_UTypes, _Types>... 27002: >::value; 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: static constexpr bool __is_explicitly_constructible() 27002: { 27002: return __and_..., 27002: __not_<__and_...>> 27002: >::value; 27002: } 27002: 27002: static constexpr bool __is_implicitly_default_constructible() 27002: { 27002: return __and_... 27002: >::value; 27002: } 27002: 27002: static constexpr bool __is_explicitly_default_constructible() 27002: { 27002: return __and_..., 27002: __not_<__and_< 27002: std::__is_implicitly_default_constructible<_Types>...> 27002: >>::value; 27002: } 27002: }; 27002: 27002: 27002: 27002: template 27002: struct _TupleConstraints 27002: { 27002: template 27002: static constexpr bool __is_implicitly_constructible() 27002: { return false; } 27002: 27002: template 27002: static constexpr bool __is_explicitly_constructible() 27002: { return false; } 27002: }; 27002: 27002: 27002: template 27002: class tuple : public _Tuple_impl<0, _Elements...> 27002: { 27002: typedef _Tuple_impl<0, _Elements...> _Inherited; 27002: 27002: template 27002: using _TCC = _TupleConstraints<_Cond, _Elements...>; 27002: 27002: 27002: template 27002: using _ImplicitDefaultCtor = __enable_if_t< 27002: _TCC<_Dummy>::__is_implicitly_default_constructible(), 27002: bool>; 27002: 27002: 27002: template 27002: using _ExplicitDefaultCtor = __enable_if_t< 27002: _TCC<_Dummy>::__is_explicitly_default_constructible(), 27002: bool>; 27002: 27002: 27002: template 27002: using _ImplicitCtor = __enable_if_t< 27002: _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), 27002: bool>; 27002: 27002: 27002: template 27002: using _ExplicitCtor = __enable_if_t< 27002: _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), 27002: bool>; 27002: 27002: template 27002: static constexpr 27002: __enable_if_t 27002: __assignable() 27002: { return __and_...>::value; } 27002: 27002: 27002: template 27002: static constexpr bool __nothrow_assignable() 27002: { 27002: return 27002: __and_...>::value; 27002: } 27002: 27002: 27002: template 27002: static constexpr bool __nothrow_constructible() 27002: { 27002: return 27002: __and_...>::value; 27002: } 27002: 27002: 27002: template 27002: static constexpr bool __valid_args() 27002: { 27002: return sizeof...(_Elements) == 1 27002: && !is_same>::value; 27002: } 27002: 27002: 27002: template 27002: static constexpr bool __valid_args() 27002: { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } 27002: # 684 "/usr/include/c++/12/tuple" 3 27002: template> 27002: struct _UseOtherCtor 27002: : false_type 27002: { }; 27002: 27002: 27002: template 27002: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> 27002: : __or_, is_constructible<_Tp, _Tuple>> 27002: { }; 27002: 27002: 27002: template 27002: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> 27002: : true_type 27002: { }; 27002: 27002: 27002: 27002: 27002: template 27002: static constexpr bool __use_other_ctor() 27002: { return _UseOtherCtor<_Tuple>::value; } 27002: 27002: public: 27002: template::value> = true> 27002: constexpr 27002: tuple() 27002: noexcept(__and_...>::value) 27002: : _Inherited() { } 27002: 27002: template::value> = false> 27002: explicit constexpr 27002: tuple() 27002: noexcept(__and_...>::value) 27002: : _Inherited() { } 27002: 27002: template= 1), 27002: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 27002: constexpr 27002: tuple(const _Elements&... __elements) 27002: noexcept(__nothrow_constructible()) 27002: : _Inherited(__elements...) { } 27002: 27002: template= 1), 27002: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 27002: explicit constexpr 27002: tuple(const _Elements&... __elements) 27002: noexcept(__nothrow_constructible()) 27002: : _Inherited(__elements...) { } 27002: 27002: template(), 27002: _ImplicitCtor<_Valid, _UElements...> = true> 27002: constexpr 27002: tuple(_UElements&&... __elements) 27002: noexcept(__nothrow_constructible<_UElements...>()) 27002: : _Inherited(std::forward<_UElements>(__elements)...) { } 27002: 27002: template(), 27002: _ExplicitCtor<_Valid, _UElements...> = false> 27002: explicit constexpr 27002: tuple(_UElements&&... __elements) 27002: noexcept(__nothrow_constructible<_UElements...>()) 27002: : _Inherited(std::forward<_UElements>(__elements)...) { } 27002: 27002: constexpr tuple(const tuple&) = default; 27002: 27002: constexpr tuple(tuple&&) = default; 27002: 27002: template&>(), 27002: _ImplicitCtor<_Valid, const _UElements&...> = true> 27002: constexpr 27002: tuple(const tuple<_UElements...>& __in) 27002: noexcept(__nothrow_constructible()) 27002: : _Inherited(static_cast&>(__in)) 27002: { } 27002: 27002: template&>(), 27002: _ExplicitCtor<_Valid, const _UElements&...> = false> 27002: explicit constexpr 27002: tuple(const tuple<_UElements...>& __in) 27002: noexcept(__nothrow_constructible()) 27002: : _Inherited(static_cast&>(__in)) 27002: { } 27002: 27002: template&&>(), 27002: _ImplicitCtor<_Valid, _UElements...> = true> 27002: constexpr 27002: tuple(tuple<_UElements...>&& __in) 27002: noexcept(__nothrow_constructible<_UElements...>()) 27002: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } 27002: 27002: template&&>(), 27002: _ExplicitCtor<_Valid, _UElements...> = false> 27002: explicit constexpr 27002: tuple(tuple<_UElements...>&& __in) 27002: noexcept(__nothrow_constructible<_UElements...>()) 27002: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } 27002: 27002: 27002: 27002: template::value> = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a) 27002: : _Inherited(__tag, __a) { } 27002: 27002: template= 1), 27002: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: const _Elements&... __elements) 27002: : _Inherited(__tag, __a, __elements...) { } 27002: 27002: template= 1), 27002: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 27002: 27002: explicit 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: const _Elements&... __elements) 27002: : _Inherited(__tag, __a, __elements...) { } 27002: 27002: template(), 27002: _ImplicitCtor<_Valid, _UElements...> = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: _UElements&&... __elements) 27002: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 27002: { } 27002: 27002: template(), 27002: _ExplicitCtor<_Valid, _UElements...> = false> 27002: 27002: explicit 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: _UElements&&... __elements) 27002: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 27002: { } 27002: 27002: template 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 27002: : _Inherited(__tag, __a, static_cast(__in)) { } 27002: 27002: template 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 27002: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 27002: 27002: template&>(), 27002: _ImplicitCtor<_Valid, const _UElements&...> = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: const tuple<_UElements...>& __in) 27002: : _Inherited(__tag, __a, 27002: static_cast&>(__in)) 27002: { } 27002: 27002: template&>(), 27002: _ExplicitCtor<_Valid, const _UElements&...> = false> 27002: 27002: explicit 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: const tuple<_UElements...>& __in) 27002: : _Inherited(__tag, __a, 27002: static_cast&>(__in)) 27002: { } 27002: 27002: template&&>(), 27002: _ImplicitCtor<_Valid, _UElements...> = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: tuple<_UElements...>&& __in) 27002: : _Inherited(__tag, __a, 27002: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 27002: { } 27002: 27002: template&&>(), 27002: _ExplicitCtor<_Valid, _UElements...> = false> 27002: 27002: explicit 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: tuple<_UElements...>&& __in) 27002: : _Inherited(__tag, __a, 27002: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 27002: { } 27002: 27002: 27002: 27002: 27002: tuple& 27002: operator=(__conditional_t<__assignable(), 27002: const tuple&, 27002: const __nonesuch&> __in) 27002: noexcept(__nothrow_assignable()) 27002: { 27002: this->_M_assign(__in); 27002: return *this; 27002: } 27002: 27002: 27002: tuple& 27002: operator=(__conditional_t<__assignable<_Elements...>(), 27002: tuple&&, 27002: __nonesuch&&> __in) 27002: noexcept(__nothrow_assignable<_Elements...>()) 27002: { 27002: this->_M_assign(std::move(__in)); 27002: return *this; 27002: } 27002: 27002: template 27002: 27002: __enable_if_t<__assignable(), tuple&> 27002: operator=(const tuple<_UElements...>& __in) 27002: noexcept(__nothrow_assignable()) 27002: { 27002: this->_M_assign(__in); 27002: return *this; 27002: } 27002: 27002: template 27002: 27002: __enable_if_t<__assignable<_UElements...>(), tuple&> 27002: operator=(tuple<_UElements...>&& __in) 27002: noexcept(__nothrow_assignable<_UElements...>()) 27002: { 27002: this->_M_assign(std::move(__in)); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: void 27002: swap(tuple& __in) 27002: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 27002: { _Inherited::_M_swap(__in); } 27002: }; 27002: 27002: 27002: template 27002: tuple(_UTypes...) -> tuple<_UTypes...>; 27002: template 27002: tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; 27002: template 27002: tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; 27002: template 27002: tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; 27002: template 27002: tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; 27002: 27002: 27002: 27002: template<> 27002: class tuple<> 27002: { 27002: public: 27002: 27002: void swap(tuple&) noexcept { } 27002: 27002: 27002: tuple() = default; 27002: 27002: template 27002: 27002: tuple(allocator_arg_t, const _Alloc&) noexcept { } 27002: template 27002: 27002: tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } 27002: }; 27002: 27002: 27002: 27002: template 27002: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 27002: { 27002: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 27002: 27002: 27002: template 27002: using _ImplicitDefaultCtor = __enable_if_t< 27002: _TupleConstraints<_Dummy, _U1, _U2>:: 27002: __is_implicitly_default_constructible(), 27002: bool>; 27002: 27002: 27002: template 27002: using _ExplicitDefaultCtor = __enable_if_t< 27002: _TupleConstraints<_Dummy, _U1, _U2>:: 27002: __is_explicitly_default_constructible(), 27002: bool>; 27002: 27002: template 27002: using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; 27002: 27002: 27002: template 27002: using _ImplicitCtor = __enable_if_t< 27002: _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), 27002: bool>; 27002: 27002: 27002: template 27002: using _ExplicitCtor = __enable_if_t< 27002: _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), 27002: bool>; 27002: 27002: template 27002: static constexpr bool __assignable() 27002: { 27002: return __and_, 27002: is_assignable<_T2&, _U2>>::value; 27002: } 27002: 27002: template 27002: static constexpr bool __nothrow_assignable() 27002: { 27002: return __and_, 27002: is_nothrow_assignable<_T2&, _U2>>::value; 27002: } 27002: 27002: template 27002: static constexpr bool __nothrow_constructible() 27002: { 27002: return __and_, 27002: is_nothrow_constructible<_T2, _U2>>::value; 27002: } 27002: 27002: static constexpr bool __nothrow_default_constructible() 27002: { 27002: return __and_, 27002: is_nothrow_default_constructible<_T2>>::value; 27002: } 27002: 27002: template 27002: static constexpr bool __is_alloc_arg() 27002: { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } 27002: 27002: public: 27002: template = true> 27002: constexpr 27002: tuple() 27002: noexcept(__nothrow_default_constructible()) 27002: : _Inherited() { } 27002: 27002: template = false> 27002: explicit constexpr 27002: tuple() 27002: noexcept(__nothrow_default_constructible()) 27002: : _Inherited() { } 27002: 27002: template = true> 27002: constexpr 27002: tuple(const _T1& __a1, const _T2& __a2) 27002: noexcept(__nothrow_constructible()) 27002: : _Inherited(__a1, __a2) { } 27002: 27002: template = false> 27002: explicit constexpr 27002: tuple(const _T1& __a1, const _T2& __a2) 27002: noexcept(__nothrow_constructible()) 27002: : _Inherited(__a1, __a2) { } 27002: 27002: template(), _U1, _U2> = true> 27002: constexpr 27002: tuple(_U1&& __a1, _U2&& __a2) 27002: noexcept(__nothrow_constructible<_U1, _U2>()) 27002: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } 27002: 27002: template(), _U1, _U2> = false> 27002: explicit constexpr 27002: tuple(_U1&& __a1, _U2&& __a2) 27002: noexcept(__nothrow_constructible<_U1, _U2>()) 27002: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } 27002: 27002: constexpr tuple(const tuple&) = default; 27002: 27002: constexpr tuple(tuple&&) = default; 27002: 27002: template = true> 27002: constexpr 27002: tuple(const tuple<_U1, _U2>& __in) 27002: noexcept(__nothrow_constructible()) 27002: : _Inherited(static_cast&>(__in)) { } 27002: 27002: template = false> 27002: explicit constexpr 27002: tuple(const tuple<_U1, _U2>& __in) 27002: noexcept(__nothrow_constructible()) 27002: : _Inherited(static_cast&>(__in)) { } 27002: 27002: template = true> 27002: constexpr 27002: tuple(tuple<_U1, _U2>&& __in) 27002: noexcept(__nothrow_constructible<_U1, _U2>()) 27002: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } 27002: 27002: template = false> 27002: explicit constexpr 27002: tuple(tuple<_U1, _U2>&& __in) 27002: noexcept(__nothrow_constructible<_U1, _U2>()) 27002: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } 27002: 27002: template = true> 27002: constexpr 27002: tuple(const pair<_U1, _U2>& __in) 27002: noexcept(__nothrow_constructible()) 27002: : _Inherited(__in.first, __in.second) { } 27002: 27002: template = false> 27002: explicit constexpr 27002: tuple(const pair<_U1, _U2>& __in) 27002: noexcept(__nothrow_constructible()) 27002: : _Inherited(__in.first, __in.second) { } 27002: 27002: template = true> 27002: constexpr 27002: tuple(pair<_U1, _U2>&& __in) 27002: noexcept(__nothrow_constructible<_U1, _U2>()) 27002: : _Inherited(std::forward<_U1>(__in.first), 27002: std::forward<_U2>(__in.second)) { } 27002: 27002: template = false> 27002: explicit constexpr 27002: tuple(pair<_U1, _U2>&& __in) 27002: noexcept(__nothrow_constructible<_U1, _U2>()) 27002: : _Inherited(std::forward<_U1>(__in.first), 27002: std::forward<_U2>(__in.second)) { } 27002: 27002: 27002: 27002: template::value, _T1, _T2> = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a) 27002: : _Inherited(__tag, __a) { } 27002: 27002: template = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: const _T1& __a1, const _T2& __a2) 27002: : _Inherited(__tag, __a, __a1, __a2) { } 27002: 27002: template = false> 27002: explicit 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: const _T1& __a1, const _T2& __a2) 27002: : _Inherited(__tag, __a, __a1, __a2) { } 27002: 27002: template = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 27002: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 27002: std::forward<_U2>(__a2)) { } 27002: 27002: template = false> 27002: explicit 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: _U1&& __a1, _U2&& __a2) 27002: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 27002: std::forward<_U2>(__a2)) { } 27002: 27002: template 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 27002: : _Inherited(__tag, __a, static_cast(__in)) { } 27002: 27002: template 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 27002: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 27002: 27002: template = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: const tuple<_U1, _U2>& __in) 27002: : _Inherited(__tag, __a, 27002: static_cast&>(__in)) 27002: { } 27002: 27002: template = false> 27002: explicit 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: const tuple<_U1, _U2>& __in) 27002: : _Inherited(__tag, __a, 27002: static_cast&>(__in)) 27002: { } 27002: 27002: template = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 27002: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 27002: { } 27002: 27002: template = false> 27002: explicit 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 27002: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 27002: { } 27002: 27002: template = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: const pair<_U1, _U2>& __in) 27002: : _Inherited(__tag, __a, __in.first, __in.second) { } 27002: 27002: template = false> 27002: explicit 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, 27002: const pair<_U1, _U2>& __in) 27002: : _Inherited(__tag, __a, __in.first, __in.second) { } 27002: 27002: template = true> 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 27002: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 27002: std::forward<_U2>(__in.second)) { } 27002: 27002: template = false> 27002: explicit 27002: 27002: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 27002: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 27002: std::forward<_U2>(__in.second)) { } 27002: 27002: 27002: 27002: 27002: tuple& 27002: operator=(__conditional_t<__assignable(), 27002: const tuple&, 27002: const __nonesuch&> __in) 27002: noexcept(__nothrow_assignable()) 27002: { 27002: this->_M_assign(__in); 27002: return *this; 27002: } 27002: 27002: 27002: tuple& 27002: operator=(__conditional_t<__assignable<_T1, _T2>(), 27002: tuple&&, 27002: __nonesuch&&> __in) 27002: noexcept(__nothrow_assignable<_T1, _T2>()) 27002: { 27002: this->_M_assign(std::move(__in)); 27002: return *this; 27002: } 27002: 27002: template 27002: 27002: __enable_if_t<__assignable(), tuple&> 27002: operator=(const tuple<_U1, _U2>& __in) 27002: noexcept(__nothrow_assignable()) 27002: { 27002: this->_M_assign(__in); 27002: return *this; 27002: } 27002: 27002: template 27002: 27002: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 27002: operator=(tuple<_U1, _U2>&& __in) 27002: noexcept(__nothrow_assignable<_U1, _U2>()) 27002: { 27002: this->_M_assign(std::move(__in)); 27002: return *this; 27002: } 27002: 27002: template 27002: 27002: __enable_if_t<__assignable(), tuple&> 27002: operator=(const pair<_U1, _U2>& __in) 27002: noexcept(__nothrow_assignable()) 27002: { 27002: this->_M_head(*this) = __in.first; 27002: this->_M_tail(*this)._M_head(*this) = __in.second; 27002: return *this; 27002: } 27002: 27002: template 27002: 27002: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 27002: operator=(pair<_U1, _U2>&& __in) 27002: noexcept(__nothrow_assignable<_U1, _U2>()) 27002: { 27002: this->_M_head(*this) = std::forward<_U1>(__in.first); 27002: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 27002: return *this; 27002: } 27002: 27002: 27002: void 27002: swap(tuple& __in) 27002: noexcept(__and_<__is_nothrow_swappable<_T1>, 27002: __is_nothrow_swappable<_T2>>::value) 27002: { _Inherited::_M_swap(__in); } 27002: }; 27002: 27002: 27002: 27002: template 27002: struct tuple_size> 27002: : public integral_constant { }; 27002: 27002: 27002: template 27002: inline constexpr size_t tuple_size_v> 27002: = sizeof...(_Types); 27002: 27002: template 27002: inline constexpr size_t tuple_size_v> 27002: = sizeof...(_Types); 27002: 27002: 27002: 27002: template 27002: struct tuple_element<__i, tuple<_Types...>> 27002: { 27002: static_assert(__i < sizeof...(_Types), "tuple index must be in range"); 27002: 27002: using type = typename _Nth_type<__i, _Types...>::type; 27002: }; 27002: 27002: template 27002: constexpr _Head& 27002: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 27002: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 27002: 27002: template 27002: constexpr const _Head& 27002: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 27002: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 27002: 27002: 27002: template 27002: __enable_if_t<(__i >= sizeof...(_Types))> 27002: __get_helper(const tuple<_Types...>&) = delete; 27002: 27002: 27002: template 27002: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 27002: get(tuple<_Elements...>& __t) noexcept 27002: { return std::__get_helper<__i>(__t); } 27002: 27002: 27002: template 27002: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 27002: get(const tuple<_Elements...>& __t) noexcept 27002: { return std::__get_helper<__i>(__t); } 27002: 27002: 27002: template 27002: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 27002: get(tuple<_Elements...>&& __t) noexcept 27002: { 27002: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 27002: return std::forward<__element_type>(std::__get_helper<__i>(__t)); 27002: } 27002: 27002: 27002: template 27002: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 27002: get(const tuple<_Elements...>&& __t) noexcept 27002: { 27002: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 27002: return std::forward(std::__get_helper<__i>(__t)); 27002: } 27002: 27002: 27002: 27002: template 27002: constexpr __enable_if_t<(__i >= sizeof...(_Elements))> 27002: get(const tuple<_Elements...>&) = delete; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr _Tp& 27002: get(tuple<_Types...>& __t) noexcept 27002: { 27002: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 27002: static_assert(__idx < sizeof...(_Types), 27002: "the type T in std::get must occur exactly once in the tuple"); 27002: return std::__get_helper<__idx>(__t); 27002: } 27002: 27002: 27002: template 27002: constexpr _Tp&& 27002: get(tuple<_Types...>&& __t) noexcept 27002: { 27002: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 27002: static_assert(__idx < sizeof...(_Types), 27002: "the type T in std::get must occur exactly once in the tuple"); 27002: return std::forward<_Tp>(std::__get_helper<__idx>(__t)); 27002: } 27002: 27002: 27002: template 27002: constexpr const _Tp& 27002: get(const tuple<_Types...>& __t) noexcept 27002: { 27002: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 27002: static_assert(__idx < sizeof...(_Types), 27002: "the type T in std::get must occur exactly once in the tuple"); 27002: return std::__get_helper<__idx>(__t); 27002: } 27002: 27002: 27002: 27002: template 27002: constexpr const _Tp&& 27002: get(const tuple<_Types...>&& __t) noexcept 27002: { 27002: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 27002: static_assert(__idx < sizeof...(_Types), 27002: "the type T in std::get must occur exactly once in the tuple"); 27002: return std::forward(std::__get_helper<__idx>(__t)); 27002: } 27002: 27002: 27002: 27002: template 27002: struct __tuple_compare 27002: { 27002: static constexpr bool 27002: __eq(const _Tp& __t, const _Up& __u) 27002: { 27002: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 27002: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 27002: } 27002: 27002: static constexpr bool 27002: __less(const _Tp& __t, const _Up& __u) 27002: { 27002: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 27002: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 27002: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 27002: } 27002: }; 27002: 27002: template 27002: struct __tuple_compare<_Tp, _Up, __size, __size> 27002: { 27002: static constexpr bool 27002: __eq(const _Tp&, const _Up&) { return true; } 27002: 27002: static constexpr bool 27002: __less(const _Tp&, const _Up&) { return false; } 27002: }; 27002: 27002: template 27002: constexpr bool 27002: operator==(const tuple<_TElements...>& __t, 27002: const tuple<_UElements...>& __u) 27002: { 27002: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 27002: "tuple objects can only be compared if they have equal sizes."); 27002: using __compare = __tuple_compare, 27002: tuple<_UElements...>, 27002: 0, sizeof...(_TElements)>; 27002: return __compare::__eq(__t, __u); 27002: } 27002: # 1536 "/usr/include/c++/12/tuple" 3 27002: template 27002: constexpr bool 27002: operator<(const tuple<_TElements...>& __t, 27002: const tuple<_UElements...>& __u) 27002: { 27002: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 27002: "tuple objects can only be compared if they have equal sizes."); 27002: using __compare = __tuple_compare, 27002: tuple<_UElements...>, 27002: 0, sizeof...(_TElements)>; 27002: return __compare::__less(__t, __u); 27002: } 27002: 27002: template 27002: constexpr bool 27002: operator!=(const tuple<_TElements...>& __t, 27002: const tuple<_UElements...>& __u) 27002: { return !(__t == __u); } 27002: 27002: template 27002: constexpr bool 27002: operator>(const tuple<_TElements...>& __t, 27002: const tuple<_UElements...>& __u) 27002: { return __u < __t; } 27002: 27002: template 27002: constexpr bool 27002: operator<=(const tuple<_TElements...>& __t, 27002: const tuple<_UElements...>& __u) 27002: { return !(__u < __t); } 27002: 27002: template 27002: constexpr bool 27002: operator>=(const tuple<_TElements...>& __t, 27002: const tuple<_UElements...>& __u) 27002: { return !(__t < __u); } 27002: 27002: 27002: 27002: template 27002: constexpr tuple::__type...> 27002: make_tuple(_Elements&&... __args) 27002: { 27002: typedef tuple::__type...> 27002: __result_type; 27002: return __result_type(std::forward<_Elements>(__args)...); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: constexpr tuple<_Elements&&...> 27002: forward_as_tuple(_Elements&&... __args) noexcept 27002: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 27002: 27002: 27002: 27002: 27002: template struct array; 27002: 27002: template 27002: constexpr _Tp& 27002: get(array<_Tp, _Nm>&) noexcept; 27002: 27002: template 27002: constexpr _Tp&& 27002: get(array<_Tp, _Nm>&&) noexcept; 27002: 27002: template 27002: constexpr const _Tp& 27002: get(const array<_Tp, _Nm>&) noexcept; 27002: 27002: template 27002: constexpr const _Tp&& 27002: get(const array<_Tp, _Nm>&&) noexcept; 27002: 27002: 27002: template 27002: struct __make_tuple_impl; 27002: 27002: template 27002: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 27002: : __make_tuple_impl<_Idx + 1, 27002: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 27002: _Tuple, _Nm> 27002: { }; 27002: 27002: template 27002: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 27002: { 27002: typedef tuple<_Tp...> __type; 27002: }; 27002: 27002: template 27002: struct __do_make_tuple 27002: : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> 27002: { }; 27002: 27002: 27002: template 27002: struct __make_tuple 27002: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 27002: { }; 27002: 27002: 27002: template 27002: struct __combine_tuples; 27002: 27002: template<> 27002: struct __combine_tuples<> 27002: { 27002: typedef tuple<> __type; 27002: }; 27002: 27002: template 27002: struct __combine_tuples> 27002: { 27002: typedef tuple<_Ts...> __type; 27002: }; 27002: 27002: template 27002: struct __combine_tuples, tuple<_T2s...>, _Rem...> 27002: { 27002: typedef typename __combine_tuples, 27002: _Rem...>::__type __type; 27002: }; 27002: 27002: 27002: template 27002: struct __tuple_cat_result 27002: { 27002: typedef typename __combine_tuples 27002: ::__type...>::__type __type; 27002: }; 27002: 27002: 27002: 27002: template 27002: struct __make_1st_indices; 27002: 27002: template<> 27002: struct __make_1st_indices<> 27002: { 27002: typedef _Index_tuple<> __type; 27002: }; 27002: 27002: template 27002: struct __make_1st_indices<_Tp, _Tpls...> 27002: { 27002: typedef typename _Build_index_tuple::type>::value>::__type __type; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct __tuple_concater; 27002: 27002: template 27002: struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> 27002: { 27002: template 27002: static constexpr _Ret 27002: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 27002: { 27002: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 27002: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 27002: return __next::_S_do(std::forward<_Tpls>(__tps)..., 27002: std::forward<_Us>(__us)..., 27002: std::get<_Is>(std::forward<_Tp>(__tp))...); 27002: } 27002: }; 27002: 27002: template 27002: struct __tuple_concater<_Ret, _Index_tuple<>> 27002: { 27002: template 27002: static constexpr _Ret 27002: _S_do(_Us&&... __us) 27002: { 27002: return _Ret(std::forward<_Us>(__us)...); 27002: } 27002: }; 27002: 27002: template 27002: struct __is_tuple_like_impl> : true_type 27002: { }; 27002: 27002: 27002: template...>::value>::type> 27002: constexpr auto 27002: tuple_cat(_Tpls&&... __tpls) 27002: -> typename __tuple_cat_result<_Tpls...>::__type 27002: { 27002: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 27002: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 27002: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 27002: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: constexpr tuple<_Elements&...> 27002: tie(_Elements&... __args) noexcept 27002: { return tuple<_Elements&...>(__args...); } 27002: 27002: 27002: template 27002: 27002: inline 27002: 27002: 27002: typename enable_if<__and_<__is_swappable<_Elements>...>::value 27002: >::type 27002: 27002: 27002: 27002: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: 27002: template 27002: 27002: typename enable_if...>::value>::type 27002: swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct _Swallow_assign 27002: { 27002: template 27002: constexpr const _Swallow_assign& 27002: operator=(const _Tp&) const 27002: { return *this; } 27002: }; 27002: 27002: 27002: 27002: inline constexpr _Swallow_assign ignore{}; 27002: 27002: 27002: template 27002: struct uses_allocator, _Alloc> : true_type { }; 27002: # 1798 "/usr/include/c++/12/tuple" 3 27002: template 27002: template 27002: 27002: inline 27002: pair<_T1, _T2>:: 27002: pair(piecewise_construct_t, 27002: tuple<_Args1...> __first, tuple<_Args2...> __second) 27002: : pair(__first, __second, 27002: typename _Build_index_tuple::__type(), 27002: typename _Build_index_tuple::__type()) 27002: { } 27002: 27002: template 27002: template 27002: inline 27002: pair<_T1, _T2>:: 27002: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 27002: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 27002: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 27002: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template class _Trait, typename _Tp, typename _Tuple> 27002: inline constexpr bool __unpack_std_tuple = false; 27002: 27002: template class _Trait, typename _Tp, typename... _Up> 27002: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> 27002: = _Trait<_Tp, _Up...>::value; 27002: 27002: template class _Trait, typename _Tp, typename... _Up> 27002: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> 27002: = _Trait<_Tp, _Up&...>::value; 27002: 27002: template class _Trait, typename _Tp, typename... _Up> 27002: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> 27002: = _Trait<_Tp, const _Up...>::value; 27002: 27002: template class _Trait, typename _Tp, typename... _Up> 27002: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> 27002: = _Trait<_Tp, const _Up&...>::value; 27002: 27002: 27002: 27002: template 27002: constexpr decltype(auto) 27002: __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) 27002: { 27002: return std::__invoke(std::forward<_Fn>(__f), 27002: std::get<_Idx>(std::forward<_Tuple>(__t))...); 27002: } 27002: 27002: template 27002: constexpr decltype(auto) 27002: apply(_Fn&& __f, _Tuple&& __t) 27002: noexcept(__unpack_std_tuple) 27002: { 27002: using _Indices 27002: = make_index_sequence>>; 27002: return std::__apply_impl(std::forward<_Fn>(__f), 27002: std::forward<_Tuple>(__t), 27002: _Indices{}); 27002: } 27002: 27002: 27002: 27002: template 27002: constexpr _Tp 27002: __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) 27002: { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } 27002: 27002: template 27002: constexpr _Tp 27002: make_from_tuple(_Tuple&& __t) 27002: noexcept(__unpack_std_tuple) 27002: { 27002: return __make_from_tuple_impl<_Tp>( 27002: std::forward<_Tuple>(__t), 27002: make_index_sequence>>{}); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 55 "/usr/include/c++/12/functional" 2 3 27002: 27002: # 1 "/usr/include/c++/12/bits/functional_hash.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/functional_hash.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/functional_hash.h" 3 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/hash_bytes.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/hash_bytes.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/hash_bytes.h" 3 27002: 27002: 27002: 27002: namespace std 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t 27002: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 27002: 27002: 27002: 27002: 27002: 27002: size_t 27002: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 27002: 27002: 27002: } 27002: # 37 "/usr/include/c++/12/bits/functional_hash.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 50 "/usr/include/c++/12/bits/functional_hash.h" 3 27002: template 27002: struct __hash_base 27002: { 27002: typedef _Result result_type [[__deprecated__]]; 27002: typedef _Arg argument_type [[__deprecated__]]; 27002: }; 27002: 27002: 27002: template 27002: struct hash; 27002: 27002: template 27002: struct __poison_hash 27002: { 27002: static constexpr bool __enable_hash_call = false; 27002: private: 27002: 27002: __poison_hash(__poison_hash&&); 27002: ~__poison_hash(); 27002: }; 27002: 27002: template 27002: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 27002: { 27002: static constexpr bool __enable_hash_call = true; 27002: }; 27002: 27002: 27002: template::value> 27002: struct __hash_enum 27002: { 27002: private: 27002: 27002: __hash_enum(__hash_enum&&); 27002: ~__hash_enum(); 27002: }; 27002: 27002: 27002: template 27002: struct __hash_enum<_Tp, true> : public __hash_base 27002: { 27002: size_t 27002: operator()(_Tp __val) const noexcept 27002: { 27002: using __type = typename underlying_type<_Tp>::type; 27002: return hash<__type>{}(static_cast<__type>(__val)); 27002: } 27002: }; 27002: 27002: 27002: 27002: template 27002: struct hash : __hash_enum<_Tp> 27002: { }; 27002: 27002: 27002: template 27002: struct hash<_Tp*> : public __hash_base 27002: { 27002: size_t 27002: operator()(_Tp* __p) const noexcept 27002: { return reinterpret_cast(__p); } 27002: }; 27002: # 125 "/usr/include/c++/12/bits/functional_hash.h" 3 27002: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 27002: 27002: 27002: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 27002: # 201 "/usr/include/c++/12/bits/functional_hash.h" 3 27002: struct _Hash_impl 27002: { 27002: static size_t 27002: hash(const void* __ptr, size_t __clength, 27002: size_t __seed = static_cast(0xc70f6907UL)) 27002: { return _Hash_bytes(__ptr, __clength, __seed); } 27002: 27002: template 27002: static size_t 27002: hash(const _Tp& __val) 27002: { return hash(&__val, sizeof(__val)); } 27002: 27002: template 27002: static size_t 27002: __hash_combine(const _Tp& __val, size_t __hash) 27002: { return hash(&__val, sizeof(__val), __hash); } 27002: }; 27002: 27002: 27002: struct _Fnv_hash_impl 27002: { 27002: static size_t 27002: hash(const void* __ptr, size_t __clength, 27002: size_t __seed = static_cast(2166136261UL)) 27002: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 27002: 27002: template 27002: static size_t 27002: hash(const _Tp& __val) 27002: { return hash(&__val, sizeof(__val)); } 27002: 27002: template 27002: static size_t 27002: __hash_combine(const _Tp& __val, size_t __hash) 27002: { return hash(&__val, sizeof(__val), __hash); } 27002: }; 27002: 27002: 27002: template<> 27002: struct hash : public __hash_base 27002: { 27002: size_t 27002: operator()(float __val) const noexcept 27002: { 27002: 27002: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 27002: } 27002: }; 27002: 27002: 27002: template<> 27002: struct hash : public __hash_base 27002: { 27002: size_t 27002: operator()(double __val) const noexcept 27002: { 27002: 27002: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 27002: } 27002: }; 27002: 27002: 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: __attribute__ ((__pure__)) size_t 27002: operator()(long double __val) const noexcept; 27002: }; 27002: 27002: 27002: template<> 27002: struct hash : public __hash_base 27002: { 27002: size_t 27002: operator()(nullptr_t) const noexcept 27002: { return 0; } 27002: }; 27002: # 287 "/usr/include/c++/12/bits/functional_hash.h" 3 27002: template 27002: struct __is_fast_hash : public std::true_type 27002: { }; 27002: 27002: template<> 27002: struct __is_fast_hash> : public std::false_type 27002: { }; 27002: 27002: 27002: } 27002: # 57 "/usr/include/c++/12/functional" 2 3 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/std_function.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/std_function.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/std_function.h" 3 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/typeinfo" 1 3 27002: # 32 "/usr/include/c++/12/typeinfo" 3 27002: 27002: # 33 "/usr/include/c++/12/typeinfo" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: #pragma GCC visibility push(default) 27002: 27002: 27002: 27002: 27002: 27002: extern "C++" { 27002: 27002: namespace __cxxabiv1 27002: { 27002: class __class_type_info; 27002: } 27002: # 84 "/usr/include/c++/12/typeinfo" 3 27002: namespace std 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: class type_info 27002: { 27002: public: 27002: 27002: 27002: 27002: 27002: virtual ~type_info(); 27002: 27002: 27002: 27002: const char* name() const noexcept 27002: { return __name[0] == '*' ? __name + 1 : __name; } 27002: 27002: 27002: 27002: bool before(const type_info& __arg) const noexcept; 27002: 27002: 27002: bool operator==(const type_info& __arg) const noexcept; 27002: 27002: 27002: bool operator!=(const type_info& __arg) const noexcept 27002: { return !operator==(__arg); } 27002: 27002: 27002: 27002: size_t hash_code() const noexcept 27002: { 27002: 27002: return _Hash_bytes(name(), __builtin_strlen(name()), 27002: static_cast(0xc70f6907UL)); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: virtual bool __is_pointer_p() const; 27002: 27002: 27002: virtual bool __is_function_p() const; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 27002: unsigned __outer) const; 27002: 27002: 27002: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 27002: void **__obj_ptr) const; 27002: 27002: protected: 27002: const char *__name; 27002: 27002: explicit type_info(const char *__n): __name(__n) { } 27002: 27002: private: 27002: 27002: 27002: type_info& operator=(const type_info&) = delete; 27002: type_info(const type_info&) = delete; 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool __equal(const type_info&) const noexcept; 27002: 27002: }; 27002: # 220 "/usr/include/c++/12/typeinfo" 3 27002: class bad_cast : public exception 27002: { 27002: public: 27002: bad_cast() noexcept { } 27002: 27002: 27002: 27002: virtual ~bad_cast() noexcept; 27002: 27002: 27002: virtual const char* what() const noexcept; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: class bad_typeid : public exception 27002: { 27002: public: 27002: bad_typeid () noexcept { } 27002: 27002: 27002: 27002: virtual ~bad_typeid() noexcept; 27002: 27002: 27002: virtual const char* what() const noexcept; 27002: }; 27002: } 27002: 27002: } 27002: 27002: #pragma GCC visibility pop 27002: # 40 "/usr/include/c++/12/bits/std_function.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class bad_function_call : public std::exception 27002: { 27002: public: 27002: virtual ~bad_function_call() noexcept; 27002: 27002: const char* what() const noexcept; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __is_location_invariant 27002: : is_trivially_copyable<_Tp>::type 27002: { }; 27002: 27002: class _Undefined_class; 27002: 27002: union _Nocopy_types 27002: { 27002: void* _M_object; 27002: const void* _M_const_object; 27002: void (*_M_function_pointer)(); 27002: void (_Undefined_class::*_M_member_pointer)(); 27002: }; 27002: 27002: union [[gnu::may_alias]] _Any_data 27002: { 27002: void* _M_access() noexcept { return &_M_pod_data[0]; } 27002: const void* _M_access() const noexcept { return &_M_pod_data[0]; } 27002: 27002: template 27002: _Tp& 27002: _M_access() noexcept 27002: { return *static_cast<_Tp*>(_M_access()); } 27002: 27002: template 27002: const _Tp& 27002: _M_access() const noexcept 27002: { return *static_cast(_M_access()); } 27002: 27002: _Nocopy_types _M_unused; 27002: char _M_pod_data[sizeof(_Nocopy_types)]; 27002: }; 27002: 27002: enum _Manager_operation 27002: { 27002: __get_type_info, 27002: __get_functor_ptr, 27002: __clone_functor, 27002: __destroy_functor 27002: }; 27002: 27002: template 27002: class function; 27002: 27002: 27002: class _Function_base 27002: { 27002: public: 27002: static const size_t _M_max_size = sizeof(_Nocopy_types); 27002: static const size_t _M_max_align = __alignof__(_Nocopy_types); 27002: 27002: template 27002: class _Base_manager 27002: { 27002: protected: 27002: static const bool __stored_locally = 27002: (__is_location_invariant<_Functor>::value 27002: && sizeof(_Functor) <= _M_max_size 27002: && __alignof__(_Functor) <= _M_max_align 27002: && (_M_max_align % __alignof__(_Functor) == 0)); 27002: 27002: using _Local_storage = integral_constant; 27002: 27002: 27002: static _Functor* 27002: _M_get_pointer(const _Any_data& __source) noexcept 27002: { 27002: if constexpr (__stored_locally) 27002: { 27002: const _Functor& __f = __source._M_access<_Functor>(); 27002: return const_cast<_Functor*>(std::__addressof(__f)); 27002: } 27002: else 27002: return __source._M_access<_Functor*>(); 27002: } 27002: 27002: private: 27002: 27002: 27002: template 27002: static void 27002: _M_create(_Any_data& __dest, _Fn&& __f, true_type) 27002: { 27002: ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); 27002: } 27002: 27002: 27002: template 27002: static void 27002: _M_create(_Any_data& __dest, _Fn&& __f, false_type) 27002: { 27002: __dest._M_access<_Functor*>() 27002: = new _Functor(std::forward<_Fn>(__f)); 27002: } 27002: 27002: 27002: static void 27002: _M_destroy(_Any_data& __victim, true_type) 27002: { 27002: __victim._M_access<_Functor>().~_Functor(); 27002: } 27002: 27002: 27002: static void 27002: _M_destroy(_Any_data& __victim, false_type) 27002: { 27002: delete __victim._M_access<_Functor*>(); 27002: } 27002: 27002: public: 27002: static bool 27002: _M_manager(_Any_data& __dest, const _Any_data& __source, 27002: _Manager_operation __op) 27002: { 27002: switch (__op) 27002: { 27002: case __get_type_info: 27002: 27002: __dest._M_access() = &typeid(_Functor); 27002: 27002: 27002: 27002: break; 27002: 27002: case __get_functor_ptr: 27002: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 27002: break; 27002: 27002: case __clone_functor: 27002: _M_init_functor(__dest, 27002: *const_cast(_M_get_pointer(__source))); 27002: break; 27002: 27002: case __destroy_functor: 27002: _M_destroy(__dest, _Local_storage()); 27002: break; 27002: } 27002: return false; 27002: } 27002: 27002: template 27002: static void 27002: _M_init_functor(_Any_data& __functor, _Fn&& __f) 27002: noexcept(__and_<_Local_storage, 27002: is_nothrow_constructible<_Functor, _Fn>>::value) 27002: { 27002: _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); 27002: } 27002: 27002: template 27002: static bool 27002: _M_not_empty_function(const function<_Signature>& __f) noexcept 27002: { return static_cast(__f); } 27002: 27002: template 27002: static bool 27002: _M_not_empty_function(_Tp* __fp) noexcept 27002: { return __fp != nullptr; } 27002: 27002: template 27002: static bool 27002: _M_not_empty_function(_Tp _Class::* __mp) noexcept 27002: { return __mp != nullptr; } 27002: 27002: template 27002: static bool 27002: _M_not_empty_function(const _Tp&) noexcept 27002: { return true; } 27002: }; 27002: 27002: _Function_base() = default; 27002: 27002: ~_Function_base() 27002: { 27002: if (_M_manager) 27002: _M_manager(_M_functor, _M_functor, __destroy_functor); 27002: } 27002: 27002: bool _M_empty() const { return !_M_manager; } 27002: 27002: using _Manager_type 27002: = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); 27002: 27002: _Any_data _M_functor{}; 27002: _Manager_type _M_manager{}; 27002: }; 27002: 27002: template 27002: class _Function_handler; 27002: 27002: template 27002: class _Function_handler<_Res(_ArgTypes...), _Functor> 27002: : public _Function_base::_Base_manager<_Functor> 27002: { 27002: using _Base = _Function_base::_Base_manager<_Functor>; 27002: 27002: public: 27002: static bool 27002: _M_manager(_Any_data& __dest, const _Any_data& __source, 27002: _Manager_operation __op) 27002: { 27002: switch (__op) 27002: { 27002: 27002: case __get_type_info: 27002: __dest._M_access() = &typeid(_Functor); 27002: break; 27002: 27002: case __get_functor_ptr: 27002: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); 27002: break; 27002: 27002: default: 27002: _Base::_M_manager(__dest, __source, __op); 27002: } 27002: return false; 27002: } 27002: 27002: static _Res 27002: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 27002: { 27002: return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), 27002: std::forward<_ArgTypes>(__args)...); 27002: } 27002: 27002: template 27002: static constexpr bool 27002: _S_nothrow_init() noexcept 27002: { 27002: return __and_>::value; 27002: } 27002: }; 27002: 27002: 27002: template<> 27002: class _Function_handler 27002: { 27002: public: 27002: static bool 27002: _M_manager(_Any_data&, const _Any_data&, _Manager_operation) 27002: { return false; } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template::value> 27002: struct _Target_handler 27002: : _Function_handler<_Signature, typename remove_cv<_Functor>::type> 27002: { }; 27002: 27002: template 27002: struct _Target_handler<_Signature, _Functor, false> 27002: : _Function_handler 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class function<_Res(_ArgTypes...)> 27002: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 27002: private _Function_base 27002: { 27002: 27002: 27002: template, function>::value> 27002: using _Decay_t 27002: = typename __enable_if_t>::type; 27002: 27002: template, 27002: typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> 27002: struct _Callable 27002: : __is_invocable_impl<_Res2, _Res>::type 27002: { }; 27002: 27002: template 27002: using _Requires = __enable_if_t<_Cond::value, _Tp>; 27002: 27002: template 27002: using _Handler 27002: = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; 27002: 27002: public: 27002: typedef _Res result_type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: function() noexcept 27002: : _Function_base() { } 27002: 27002: 27002: 27002: 27002: 27002: function(nullptr_t) noexcept 27002: : _Function_base() { } 27002: # 386 "/usr/include/c++/12/bits/std_function.h" 3 27002: function(const function& __x) 27002: : _Function_base() 27002: { 27002: if (static_cast(__x)) 27002: { 27002: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 27002: _M_invoker = __x._M_invoker; 27002: _M_manager = __x._M_manager; 27002: } 27002: } 27002: # 404 "/usr/include/c++/12/bits/std_function.h" 3 27002: function(function&& __x) noexcept 27002: : _Function_base(), _M_invoker(__x._M_invoker) 27002: { 27002: if (static_cast(__x)) 27002: { 27002: _M_functor = __x._M_functor; 27002: _M_manager = __x._M_manager; 27002: __x._M_manager = nullptr; 27002: __x._M_invoker = nullptr; 27002: } 27002: } 27002: # 433 "/usr/include/c++/12/bits/std_function.h" 3 27002: template>> 27002: function(_Functor&& __f) 27002: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 27002: : _Function_base() 27002: { 27002: static_assert(is_copy_constructible<__decay_t<_Functor>>::value, 27002: "std::function target must be copy-constructible"); 27002: static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, 27002: "std::function target must be constructible from the " 27002: "constructor argument"); 27002: 27002: using _My_handler = _Handler<_Functor>; 27002: 27002: if (_My_handler::_M_not_empty_function(__f)) 27002: { 27002: _My_handler::_M_init_functor(_M_functor, 27002: std::forward<_Functor>(__f)); 27002: _M_invoker = &_My_handler::_M_invoke; 27002: _M_manager = &_My_handler::_M_manager; 27002: } 27002: } 27002: # 468 "/usr/include/c++/12/bits/std_function.h" 3 27002: function& 27002: operator=(const function& __x) 27002: { 27002: function(__x).swap(*this); 27002: return *this; 27002: } 27002: # 486 "/usr/include/c++/12/bits/std_function.h" 3 27002: function& 27002: operator=(function&& __x) noexcept 27002: { 27002: function(std::move(__x)).swap(*this); 27002: return *this; 27002: } 27002: # 500 "/usr/include/c++/12/bits/std_function.h" 3 27002: function& 27002: operator=(nullptr_t) noexcept 27002: { 27002: if (_M_manager) 27002: { 27002: _M_manager(_M_functor, _M_functor, __destroy_functor); 27002: _M_manager = nullptr; 27002: _M_invoker = nullptr; 27002: } 27002: return *this; 27002: } 27002: # 529 "/usr/include/c++/12/bits/std_function.h" 3 27002: template 27002: _Requires<_Callable<_Functor>, function&> 27002: operator=(_Functor&& __f) 27002: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 27002: { 27002: function(std::forward<_Functor>(__f)).swap(*this); 27002: return *this; 27002: } 27002: 27002: 27002: template 27002: function& 27002: operator=(reference_wrapper<_Functor> __f) noexcept 27002: { 27002: function(__f).swap(*this); 27002: return *this; 27002: } 27002: # 556 "/usr/include/c++/12/bits/std_function.h" 3 27002: void swap(function& __x) noexcept 27002: { 27002: std::swap(_M_functor, __x._M_functor); 27002: std::swap(_M_manager, __x._M_manager); 27002: std::swap(_M_invoker, __x._M_invoker); 27002: } 27002: # 573 "/usr/include/c++/12/bits/std_function.h" 3 27002: explicit operator bool() const noexcept 27002: { return !_M_empty(); } 27002: # 586 "/usr/include/c++/12/bits/std_function.h" 3 27002: _Res 27002: operator()(_ArgTypes... __args) const 27002: { 27002: if (_M_empty()) 27002: __throw_bad_function_call(); 27002: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 27002: } 27002: # 605 "/usr/include/c++/12/bits/std_function.h" 3 27002: const type_info& 27002: target_type() const noexcept 27002: { 27002: if (_M_manager) 27002: { 27002: _Any_data __typeinfo_result; 27002: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 27002: if (auto __ti = __typeinfo_result._M_access()) 27002: return *__ti; 27002: } 27002: return typeid(void); 27002: } 27002: # 630 "/usr/include/c++/12/bits/std_function.h" 3 27002: template 27002: _Functor* 27002: target() noexcept 27002: { 27002: const function* __const_this = this; 27002: const _Functor* __func = __const_this->template target<_Functor>(); 27002: 27002: 27002: return *const_cast<_Functor**>(&__func); 27002: } 27002: 27002: template 27002: const _Functor* 27002: target() const noexcept 27002: { 27002: if constexpr (is_object<_Functor>::value) 27002: { 27002: 27002: 27002: using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; 27002: 27002: if (_M_manager == &_Handler::_M_manager 27002: 27002: || (_M_manager && typeid(_Functor) == target_type()) 27002: 27002: ) 27002: { 27002: _Any_data __ptr; 27002: _M_manager(__ptr, _M_functor, __get_functor_ptr); 27002: return __ptr._M_access(); 27002: } 27002: } 27002: return nullptr; 27002: } 27002: 27002: 27002: private: 27002: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 27002: _Invoker_type _M_invoker = nullptr; 27002: }; 27002: 27002: 27002: template 27002: struct __function_guide_helper 27002: { }; 27002: 27002: template 27002: struct __function_guide_helper< 27002: _Res (_Tp::*) (_Args...) noexcept(_Nx) 27002: > 27002: { using type = _Res(_Args...); }; 27002: 27002: template 27002: struct __function_guide_helper< 27002: _Res (_Tp::*) (_Args...) & noexcept(_Nx) 27002: > 27002: { using type = _Res(_Args...); }; 27002: 27002: template 27002: struct __function_guide_helper< 27002: _Res (_Tp::*) (_Args...) const noexcept(_Nx) 27002: > 27002: { using type = _Res(_Args...); }; 27002: 27002: template 27002: struct __function_guide_helper< 27002: _Res (_Tp::*) (_Args...) const & noexcept(_Nx) 27002: > 27002: { using type = _Res(_Args...); }; 27002: 27002: template 27002: function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; 27002: 27002: template::type> 27002: function(_Functor) -> function<_Signature>; 27002: # 716 "/usr/include/c++/12/bits/std_function.h" 3 27002: template 27002: inline bool 27002: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 27002: { return !static_cast(__f); } 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 27002: { return !static_cast(__f); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 27002: { return static_cast(__f); } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 27002: { return static_cast(__f); } 27002: # 755 "/usr/include/c++/12/bits/std_function.h" 3 27002: template 27002: inline void 27002: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 27002: { __x.swap(__y); } 27002: 27002: 27002: namespace __detail::__variant 27002: { 27002: template struct _Never_valueless_alt; 27002: 27002: 27002: 27002: template 27002: struct _Never_valueless_alt> 27002: : std::true_type 27002: { }; 27002: } 27002: 27002: 27002: 27002: } 27002: # 60 "/usr/include/c++/12/functional" 2 3 27002: 27002: # 1 "/usr/include/c++/12/unordered_map" 1 3 27002: # 32 "/usr/include/c++/12/unordered_map" 3 27002: 27002: # 33 "/usr/include/c++/12/unordered_map" 3 27002: # 42 "/usr/include/c++/12/unordered_map" 3 27002: # 1 "/usr/include/c++/12/ext/aligned_buffer.h" 1 3 27002: # 32 "/usr/include/c++/12/ext/aligned_buffer.h" 3 27002: 27002: # 33 "/usr/include/c++/12/ext/aligned_buffer.h" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace __gnu_cxx 27002: { 27002: 27002: 27002: 27002: 27002: template 27002: struct __aligned_membuf 27002: { 27002: 27002: 27002: 27002: 27002: 27002: struct _Tp2 { _Tp _M_t; }; 27002: 27002: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 27002: 27002: __aligned_membuf() = default; 27002: 27002: 27002: __aligned_membuf(std::nullptr_t) { } 27002: 27002: void* 27002: _M_addr() noexcept 27002: { return static_cast(&_M_storage); } 27002: 27002: const void* 27002: _M_addr() const noexcept 27002: { return static_cast(&_M_storage); } 27002: 27002: _Tp* 27002: _M_ptr() noexcept 27002: { return static_cast<_Tp*>(_M_addr()); } 27002: 27002: const _Tp* 27002: _M_ptr() const noexcept 27002: { return static_cast(_M_addr()); } 27002: }; 27002: # 89 "/usr/include/c++/12/ext/aligned_buffer.h" 3 27002: template 27002: struct __aligned_buffer 27002: : std::aligned_storage 27002: { 27002: typename 27002: std::aligned_storage::type _M_storage; 27002: 27002: __aligned_buffer() = default; 27002: 27002: 27002: __aligned_buffer(std::nullptr_t) { } 27002: 27002: void* 27002: _M_addr() noexcept 27002: { 27002: return static_cast(&_M_storage); 27002: } 27002: 27002: const void* 27002: _M_addr() const noexcept 27002: { 27002: return static_cast(&_M_storage); 27002: } 27002: 27002: _Tp* 27002: _M_ptr() noexcept 27002: { return static_cast<_Tp*>(_M_addr()); } 27002: 27002: const _Tp* 27002: _M_ptr() const noexcept 27002: { return static_cast(_M_addr()); } 27002: }; 27002: 27002: 27002: } 27002: # 43 "/usr/include/c++/12/unordered_map" 2 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/hashtable.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/hashtable.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/hashtable.h" 3 27002: 27002: # 1 "/usr/include/c++/12/bits/hashtable_policy.h" 1 3 27002: # 40 "/usr/include/c++/12/bits/hashtable_policy.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: class _Hashtable; 27002: 27002: namespace __detail 27002: { 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Hashtable_base; 27002: 27002: 27002: 27002: template 27002: inline typename std::iterator_traits<_Iterator>::difference_type 27002: __distance_fw(_Iterator __first, _Iterator __last, 27002: std::input_iterator_tag) 27002: { return __first != __last ? 1 : 0; } 27002: 27002: template 27002: inline typename std::iterator_traits<_Iterator>::difference_type 27002: __distance_fw(_Iterator __first, _Iterator __last, 27002: std::forward_iterator_tag) 27002: { return std::distance(__first, __last); } 27002: 27002: template 27002: inline typename std::iterator_traits<_Iterator>::difference_type 27002: __distance_fw(_Iterator __first, _Iterator __last) 27002: { return __distance_fw(__first, __last, 27002: std::__iterator_category(__first)); } 27002: 27002: struct _Identity 27002: { 27002: template 27002: _Tp&& 27002: operator()(_Tp&& __x) const noexcept 27002: { return std::forward<_Tp>(__x); } 27002: }; 27002: 27002: struct _Select1st 27002: { 27002: template 27002: struct __1st_type; 27002: 27002: template 27002: struct __1st_type> 27002: { using type = _Tp; }; 27002: 27002: template 27002: struct __1st_type> 27002: { using type = const _Tp; }; 27002: 27002: template 27002: struct __1st_type<_Pair&> 27002: { using type = typename __1st_type<_Pair>::type&; }; 27002: 27002: template 27002: typename __1st_type<_Tp>::type&& 27002: operator()(_Tp&& __x) const noexcept 27002: { return std::forward<_Tp>(__x).first; } 27002: }; 27002: 27002: template 27002: struct _NodeBuilder; 27002: 27002: template<> 27002: struct _NodeBuilder<_Select1st> 27002: { 27002: template 27002: static auto 27002: _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) 27002: -> typename _NodeGenerator::__node_type* 27002: { 27002: return __node_gen(std::forward<_Kt>(__k), 27002: std::forward<_Arg>(__arg).second); 27002: } 27002: }; 27002: 27002: template<> 27002: struct _NodeBuilder<_Identity> 27002: { 27002: template 27002: static auto 27002: _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) 27002: -> typename _NodeGenerator::__node_type* 27002: { return __node_gen(std::forward<_Kt>(__k)); } 27002: }; 27002: 27002: template 27002: struct _Hashtable_alloc; 27002: 27002: 27002: 27002: template 27002: struct _ReuseOrAllocNode 27002: { 27002: private: 27002: using __node_alloc_type = _NodeAlloc; 27002: using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; 27002: using __node_alloc_traits = 27002: typename __hashtable_alloc::__node_alloc_traits; 27002: 27002: public: 27002: using __node_type = typename __hashtable_alloc::__node_type; 27002: 27002: _ReuseOrAllocNode(__node_type* __nodes, __hashtable_alloc& __h) 27002: : _M_nodes(__nodes), _M_h(__h) { } 27002: _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; 27002: 27002: ~_ReuseOrAllocNode() 27002: { _M_h._M_deallocate_nodes(_M_nodes); } 27002: 27002: template 27002: __node_type* 27002: operator()(_Args&&... __args) const 27002: { 27002: if (_M_nodes) 27002: { 27002: __node_type* __node = _M_nodes; 27002: _M_nodes = _M_nodes->_M_next(); 27002: __node->_M_nxt = nullptr; 27002: auto& __a = _M_h._M_node_allocator(); 27002: __node_alloc_traits::destroy(__a, __node->_M_valptr()); 27002: try 27002: { 27002: __node_alloc_traits::construct(__a, __node->_M_valptr(), 27002: std::forward<_Args>(__args)...); 27002: } 27002: catch(...) 27002: { 27002: _M_h._M_deallocate_node_ptr(__node); 27002: throw; 27002: } 27002: return __node; 27002: } 27002: return _M_h._M_allocate_node(std::forward<_Args>(__args)...); 27002: } 27002: 27002: private: 27002: mutable __node_type* _M_nodes; 27002: __hashtable_alloc& _M_h; 27002: }; 27002: 27002: 27002: 27002: template 27002: struct _AllocNode 27002: { 27002: private: 27002: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; 27002: 27002: public: 27002: using __node_type = typename __hashtable_alloc::__node_type; 27002: 27002: _AllocNode(__hashtable_alloc& __h) 27002: : _M_h(__h) { } 27002: 27002: template 27002: __node_type* 27002: operator()(_Args&&... __args) const 27002: { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } 27002: 27002: private: 27002: __hashtable_alloc& _M_h; 27002: }; 27002: # 243 "/usr/include/c++/12/bits/hashtable_policy.h" 3 27002: template 27002: struct _Hashtable_traits 27002: { 27002: using __hash_cached = __bool_constant<_Cache_hash_code>; 27002: using __constant_iterators = __bool_constant<_Constant_iterators>; 27002: using __unique_keys = __bool_constant<_Unique_keys>; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Hashtable_hash_traits 27002: { 27002: static constexpr std::size_t 27002: __small_size_threshold() noexcept 27002: { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } 27002: }; 27002: # 273 "/usr/include/c++/12/bits/hashtable_policy.h" 3 27002: struct _Hash_node_base 27002: { 27002: _Hash_node_base* _M_nxt; 27002: 27002: _Hash_node_base() noexcept : _M_nxt() { } 27002: 27002: _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Hash_node_value_base 27002: { 27002: typedef _Value value_type; 27002: 27002: __gnu_cxx::__aligned_buffer<_Value> _M_storage; 27002: 27002: _Value* 27002: _M_valptr() noexcept 27002: { return _M_storage._M_ptr(); } 27002: 27002: const _Value* 27002: _M_valptr() const noexcept 27002: { return _M_storage._M_ptr(); } 27002: 27002: _Value& 27002: _M_v() noexcept 27002: { return *_M_valptr(); } 27002: 27002: const _Value& 27002: _M_v() const noexcept 27002: { return *_M_valptr(); } 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct _Hash_node_code_cache 27002: { }; 27002: 27002: 27002: 27002: 27002: template<> 27002: struct _Hash_node_code_cache 27002: { std::size_t _M_hash_code; }; 27002: 27002: template 27002: struct _Hash_node_value 27002: : _Hash_node_value_base<_Value> 27002: , _Hash_node_code_cache<_Cache_hash_code> 27002: { }; 27002: 27002: 27002: 27002: 27002: template 27002: struct _Hash_node 27002: : _Hash_node_base 27002: , _Hash_node_value<_Value, _Cache_hash_code> 27002: { 27002: _Hash_node* 27002: _M_next() const noexcept 27002: { return static_cast<_Hash_node*>(this->_M_nxt); } 27002: }; 27002: 27002: 27002: template 27002: struct _Node_iterator_base 27002: { 27002: using __node_type = _Hash_node<_Value, _Cache_hash_code>; 27002: 27002: __node_type* _M_cur; 27002: 27002: _Node_iterator_base() : _M_cur(nullptr) { } 27002: _Node_iterator_base(__node_type* __p) noexcept 27002: : _M_cur(__p) { } 27002: 27002: void 27002: _M_incr() noexcept 27002: { _M_cur = _M_cur->_M_next(); } 27002: 27002: friend bool 27002: operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 27002: noexcept 27002: { return __x._M_cur == __y._M_cur; } 27002: 27002: 27002: friend bool 27002: operator!=(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 27002: noexcept 27002: { return __x._M_cur != __y._M_cur; } 27002: 27002: }; 27002: 27002: 27002: template 27002: struct _Node_iterator 27002: : public _Node_iterator_base<_Value, __cache> 27002: { 27002: private: 27002: using __base_type = _Node_iterator_base<_Value, __cache>; 27002: using __node_type = typename __base_type::__node_type; 27002: 27002: public: 27002: using value_type = _Value; 27002: using difference_type = std::ptrdiff_t; 27002: using iterator_category = std::forward_iterator_tag; 27002: 27002: using pointer = __conditional_t<__constant_iterators, 27002: const value_type*, value_type*>; 27002: 27002: using reference = __conditional_t<__constant_iterators, 27002: const value_type&, value_type&>; 27002: 27002: _Node_iterator() = default; 27002: 27002: explicit 27002: _Node_iterator(__node_type* __p) noexcept 27002: : __base_type(__p) { } 27002: 27002: reference 27002: operator*() const noexcept 27002: { return this->_M_cur->_M_v(); } 27002: 27002: pointer 27002: operator->() const noexcept 27002: { return this->_M_cur->_M_valptr(); } 27002: 27002: _Node_iterator& 27002: operator++() noexcept 27002: { 27002: this->_M_incr(); 27002: return *this; 27002: } 27002: 27002: _Node_iterator 27002: operator++(int) noexcept 27002: { 27002: _Node_iterator __tmp(*this); 27002: this->_M_incr(); 27002: return __tmp; 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct _Node_const_iterator 27002: : public _Node_iterator_base<_Value, __cache> 27002: { 27002: private: 27002: using __base_type = _Node_iterator_base<_Value, __cache>; 27002: using __node_type = typename __base_type::__node_type; 27002: 27002: public: 27002: typedef _Value value_type; 27002: typedef std::ptrdiff_t difference_type; 27002: typedef std::forward_iterator_tag iterator_category; 27002: 27002: typedef const value_type* pointer; 27002: typedef const value_type& reference; 27002: 27002: _Node_const_iterator() = default; 27002: 27002: explicit 27002: _Node_const_iterator(__node_type* __p) noexcept 27002: : __base_type(__p) { } 27002: 27002: _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, 27002: __cache>& __x) noexcept 27002: : __base_type(__x._M_cur) { } 27002: 27002: reference 27002: operator*() const noexcept 27002: { return this->_M_cur->_M_v(); } 27002: 27002: pointer 27002: operator->() const noexcept 27002: { return this->_M_cur->_M_valptr(); } 27002: 27002: _Node_const_iterator& 27002: operator++() noexcept 27002: { 27002: this->_M_incr(); 27002: return *this; 27002: } 27002: 27002: _Node_const_iterator 27002: operator++(int) noexcept 27002: { 27002: _Node_const_iterator __tmp(*this); 27002: this->_M_incr(); 27002: return __tmp; 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct _Mod_range_hashing 27002: { 27002: typedef std::size_t first_argument_type; 27002: typedef std::size_t second_argument_type; 27002: typedef std::size_t result_type; 27002: 27002: result_type 27002: operator()(first_argument_type __num, 27002: second_argument_type __den) const noexcept 27002: { return __num % __den; } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct _Default_ranged_hash { }; 27002: 27002: 27002: 27002: struct _Prime_rehash_policy 27002: { 27002: using __has_load_factor = true_type; 27002: 27002: _Prime_rehash_policy(float __z = 1.0) noexcept 27002: : _M_max_load_factor(__z), _M_next_resize(0) { } 27002: 27002: float 27002: max_load_factor() const noexcept 27002: { return _M_max_load_factor; } 27002: 27002: 27002: std::size_t 27002: _M_next_bkt(std::size_t __n) const; 27002: 27002: 27002: std::size_t 27002: _M_bkt_for_elements(std::size_t __n) const 27002: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 27002: 27002: 27002: 27002: 27002: 27002: std::pair 27002: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 27002: std::size_t __n_ins) const; 27002: 27002: typedef std::size_t _State; 27002: 27002: _State 27002: _M_state() const 27002: { return _M_next_resize; } 27002: 27002: void 27002: _M_reset() noexcept 27002: { _M_next_resize = 0; } 27002: 27002: void 27002: _M_reset(_State __state) 27002: { _M_next_resize = __state; } 27002: 27002: static const std::size_t _S_growth_factor = 2; 27002: 27002: float _M_max_load_factor; 27002: mutable std::size_t _M_next_resize; 27002: }; 27002: 27002: 27002: struct _Mask_range_hashing 27002: { 27002: typedef std::size_t first_argument_type; 27002: typedef std::size_t second_argument_type; 27002: typedef std::size_t result_type; 27002: 27002: result_type 27002: operator()(first_argument_type __num, 27002: second_argument_type __den) const noexcept 27002: { return __num & (__den - 1); } 27002: }; 27002: 27002: 27002: inline std::size_t 27002: __clp2(std::size_t __n) noexcept 27002: { 27002: using __gnu_cxx::__int_traits; 27002: 27002: if (__n < 2) 27002: return __n; 27002: const unsigned __lz = sizeof(size_t) > sizeof(long) 27002: ? __builtin_clzll(__n - 1ull) 27002: : __builtin_clzl(__n - 1ul); 27002: 27002: return (size_t(1) << (__int_traits::__digits - __lz - 1)) << 1; 27002: } 27002: 27002: 27002: 27002: struct _Power2_rehash_policy 27002: { 27002: using __has_load_factor = true_type; 27002: 27002: _Power2_rehash_policy(float __z = 1.0) noexcept 27002: : _M_max_load_factor(__z), _M_next_resize(0) { } 27002: 27002: float 27002: max_load_factor() const noexcept 27002: { return _M_max_load_factor; } 27002: 27002: 27002: 27002: std::size_t 27002: _M_next_bkt(std::size_t __n) noexcept 27002: { 27002: if (__n == 0) 27002: 27002: 27002: 27002: return 1; 27002: 27002: const auto __max_width = std::min(sizeof(size_t), 8); 27002: const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); 27002: std::size_t __res = __clp2(__n); 27002: 27002: if (__res == 0) 27002: __res = __max_bkt; 27002: else if (__res == 1) 27002: 27002: 27002: 27002: __res = 2; 27002: 27002: if (__res == __max_bkt) 27002: 27002: 27002: 27002: _M_next_resize = size_t(-1); 27002: else 27002: _M_next_resize 27002: = __builtin_floor(__res * (double)_M_max_load_factor); 27002: 27002: return __res; 27002: } 27002: 27002: 27002: std::size_t 27002: _M_bkt_for_elements(std::size_t __n) const noexcept 27002: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 27002: 27002: 27002: 27002: 27002: 27002: std::pair 27002: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 27002: std::size_t __n_ins) noexcept 27002: { 27002: if (__n_elt + __n_ins > _M_next_resize) 27002: { 27002: 27002: 27002: 27002: double __min_bkts 27002: = std::max(__n_elt + __n_ins, _M_next_resize ? 0 : 11) 27002: / (double)_M_max_load_factor; 27002: if (__min_bkts >= __n_bkt) 27002: return { true, 27002: _M_next_bkt(std::max(__builtin_floor(__min_bkts) + 1, 27002: __n_bkt * _S_growth_factor)) }; 27002: 27002: _M_next_resize 27002: = __builtin_floor(__n_bkt * (double)_M_max_load_factor); 27002: return { false, 0 }; 27002: } 27002: else 27002: return { false, 0 }; 27002: } 27002: 27002: typedef std::size_t _State; 27002: 27002: _State 27002: _M_state() const noexcept 27002: { return _M_next_resize; } 27002: 27002: void 27002: _M_reset() noexcept 27002: { _M_next_resize = 0; } 27002: 27002: void 27002: _M_reset(_State __state) noexcept 27002: { _M_next_resize = __state; } 27002: 27002: static const std::size_t _S_growth_factor = 2; 27002: 27002: float _M_max_load_factor; 27002: std::size_t _M_next_resize; 27002: }; 27002: # 696 "/usr/include/c++/12/bits/hashtable_policy.h" 3 27002: template 27002: struct _Map_base { }; 27002: 27002: 27002: template 27002: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 27002: { 27002: using mapped_type = _Val; 27002: }; 27002: 27002: 27002: template 27002: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 27002: { 27002: private: 27002: using __hashtable_base = _Hashtable_base<_Key, pair, 27002: _Select1st, _Equal, _Hash, 27002: _RangeHash, _Unused, 27002: _Traits>; 27002: 27002: using __hashtable = _Hashtable<_Key, pair, _Alloc, 27002: _Select1st, _Equal, _Hash, _RangeHash, 27002: _Unused, _RehashPolicy, _Traits>; 27002: 27002: using __hash_code = typename __hashtable_base::__hash_code; 27002: 27002: public: 27002: using key_type = typename __hashtable_base::key_type; 27002: using mapped_type = _Val; 27002: 27002: mapped_type& 27002: operator[](const key_type& __k); 27002: 27002: mapped_type& 27002: operator[](key_type&& __k); 27002: 27002: 27002: 27002: mapped_type& 27002: at(const key_type& __k) 27002: { 27002: auto __ite = static_cast<__hashtable*>(this)->find(__k); 27002: if (!__ite._M_cur) 27002: __throw_out_of_range(("unordered_map::at")); 27002: return __ite->second; 27002: } 27002: 27002: const mapped_type& 27002: at(const key_type& __k) const 27002: { 27002: auto __ite = static_cast(this)->find(__k); 27002: if (!__ite._M_cur) 27002: __throw_out_of_range(("unordered_map::at")); 27002: return __ite->second; 27002: } 27002: }; 27002: 27002: template 27002: auto 27002: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 27002: operator[](const key_type& __k) 27002: -> mapped_type& 27002: { 27002: __hashtable* __h = static_cast<__hashtable*>(this); 27002: __hash_code __code = __h->_M_hash_code(__k); 27002: std::size_t __bkt = __h->_M_bucket_index(__code); 27002: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 27002: return __node->_M_v().second; 27002: 27002: typename __hashtable::_Scoped_node __node { 27002: __h, 27002: std::piecewise_construct, 27002: std::tuple(__k), 27002: std::tuple<>() 27002: }; 27002: auto __pos 27002: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 27002: __node._M_node = nullptr; 27002: return __pos->second; 27002: } 27002: 27002: template 27002: auto 27002: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 27002: operator[](key_type&& __k) 27002: -> mapped_type& 27002: { 27002: __hashtable* __h = static_cast<__hashtable*>(this); 27002: __hash_code __code = __h->_M_hash_code(__k); 27002: std::size_t __bkt = __h->_M_bucket_index(__code); 27002: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 27002: return __node->_M_v().second; 27002: 27002: typename __hashtable::_Scoped_node __node { 27002: __h, 27002: std::piecewise_construct, 27002: std::forward_as_tuple(std::move(__k)), 27002: std::tuple<>() 27002: }; 27002: auto __pos 27002: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 27002: __node._M_node = nullptr; 27002: return __pos->second; 27002: } 27002: 27002: 27002: template 27002: struct _Map_base, 27002: _Alloc, _Select1st, _Equal, _Hash, 27002: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 27002: : _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, _Hash, 27002: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Insert_base 27002: { 27002: protected: 27002: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, 27002: _Equal, _Hash, _RangeHash, 27002: _Unused, _Traits>; 27002: 27002: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, 27002: _Unused, _RehashPolicy, _Traits>; 27002: 27002: using __hash_cached = typename _Traits::__hash_cached; 27002: using __constant_iterators = typename _Traits::__constant_iterators; 27002: 27002: using __hashtable_alloc = _Hashtable_alloc< 27002: __alloc_rebind<_Alloc, _Hash_node<_Value, 27002: __hash_cached::value>>>; 27002: 27002: using value_type = typename __hashtable_base::value_type; 27002: using size_type = typename __hashtable_base::size_type; 27002: 27002: using __unique_keys = typename _Traits::__unique_keys; 27002: using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; 27002: using __node_gen_type = _AllocNode<__node_alloc_type>; 27002: 27002: __hashtable& 27002: _M_conjure_hashtable() 27002: { return *(static_cast<__hashtable*>(this)); } 27002: 27002: template 27002: void 27002: _M_insert_range(_InputIterator __first, _InputIterator __last, 27002: const _NodeGetter&, true_type __uks); 27002: 27002: template 27002: void 27002: _M_insert_range(_InputIterator __first, _InputIterator __last, 27002: const _NodeGetter&, false_type __uks); 27002: 27002: public: 27002: using iterator = _Node_iterator<_Value, __constant_iterators::value, 27002: __hash_cached::value>; 27002: 27002: using const_iterator = _Node_const_iterator<_Value, 27002: __constant_iterators::value, 27002: __hash_cached::value>; 27002: 27002: using __ireturn_type = __conditional_t<__unique_keys::value, 27002: std::pair, 27002: iterator>; 27002: 27002: __ireturn_type 27002: insert(const value_type& __v) 27002: { 27002: __hashtable& __h = _M_conjure_hashtable(); 27002: __node_gen_type __node_gen(__h); 27002: return __h._M_insert(__v, __node_gen, __unique_keys{}); 27002: } 27002: 27002: iterator 27002: insert(const_iterator __hint, const value_type& __v) 27002: { 27002: __hashtable& __h = _M_conjure_hashtable(); 27002: __node_gen_type __node_gen(__h); 27002: return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); 27002: } 27002: 27002: template 27002: std::pair 27002: try_emplace(const_iterator, _KType&& __k, _Args&&... __args) 27002: { 27002: __hashtable& __h = _M_conjure_hashtable(); 27002: auto __code = __h._M_hash_code(__k); 27002: std::size_t __bkt = __h._M_bucket_index(__code); 27002: if (auto __node = __h._M_find_node(__bkt, __k, __code)) 27002: return { iterator(__node), false }; 27002: 27002: typename __hashtable::_Scoped_node __node { 27002: &__h, 27002: std::piecewise_construct, 27002: std::forward_as_tuple(std::forward<_KType>(__k)), 27002: std::forward_as_tuple(std::forward<_Args>(__args)...) 27002: }; 27002: auto __it 27002: = __h._M_insert_unique_node(__bkt, __code, __node._M_node); 27002: __node._M_node = nullptr; 27002: return { __it, true }; 27002: } 27002: 27002: void 27002: insert(initializer_list __l) 27002: { this->insert(__l.begin(), __l.end()); } 27002: 27002: template 27002: void 27002: insert(_InputIterator __first, _InputIterator __last) 27002: { 27002: __hashtable& __h = _M_conjure_hashtable(); 27002: __node_gen_type __node_gen(__h); 27002: return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); 27002: } 27002: }; 27002: 27002: template 27002: template 27002: void 27002: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>:: 27002: _M_insert_range(_InputIterator __first, _InputIterator __last, 27002: const _NodeGetter& __node_gen, true_type __uks) 27002: { 27002: __hashtable& __h = _M_conjure_hashtable(); 27002: for (; __first != __last; ++__first) 27002: __h._M_insert(*__first, __node_gen, __uks); 27002: } 27002: 27002: template 27002: template 27002: void 27002: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>:: 27002: _M_insert_range(_InputIterator __first, _InputIterator __last, 27002: const _NodeGetter& __node_gen, false_type __uks) 27002: { 27002: using __rehash_type = typename __hashtable::__rehash_type; 27002: using __rehash_state = typename __hashtable::__rehash_state; 27002: using pair_type = std::pair; 27002: 27002: size_type __n_elt = __detail::__distance_fw(__first, __last); 27002: if (__n_elt == 0) 27002: return; 27002: 27002: __hashtable& __h = _M_conjure_hashtable(); 27002: __rehash_type& __rehash = __h._M_rehash_policy; 27002: const __rehash_state& __saved_state = __rehash._M_state(); 27002: pair_type __do_rehash = __rehash._M_need_rehash(__h._M_bucket_count, 27002: __h._M_element_count, 27002: __n_elt); 27002: 27002: if (__do_rehash.first) 27002: __h._M_rehash(__do_rehash.second, __saved_state); 27002: 27002: for (; __first != __last; ++__first) 27002: __h._M_insert(*__first, __node_gen, __uks); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Insert; 27002: 27002: 27002: template 27002: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits, true> 27002: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 27002: { 27002: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 27002: _Equal, _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>; 27002: 27002: using value_type = typename __base_type::value_type; 27002: using iterator = typename __base_type::iterator; 27002: using const_iterator = typename __base_type::const_iterator; 27002: using __ireturn_type = typename __base_type::__ireturn_type; 27002: 27002: using __unique_keys = typename __base_type::__unique_keys; 27002: using __hashtable = typename __base_type::__hashtable; 27002: using __node_gen_type = typename __base_type::__node_gen_type; 27002: 27002: using __base_type::insert; 27002: 27002: __ireturn_type 27002: insert(value_type&& __v) 27002: { 27002: __hashtable& __h = this->_M_conjure_hashtable(); 27002: __node_gen_type __node_gen(__h); 27002: return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); 27002: } 27002: 27002: iterator 27002: insert(const_iterator __hint, value_type&& __v) 27002: { 27002: __hashtable& __h = this->_M_conjure_hashtable(); 27002: __node_gen_type __node_gen(__h); 27002: return __h._M_insert(__hint, std::move(__v), __node_gen, 27002: __unique_keys{}); 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 27002: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 27002: { 27002: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 27002: _Equal, _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>; 27002: using value_type = typename __base_type::value_type; 27002: using iterator = typename __base_type::iterator; 27002: using const_iterator = typename __base_type::const_iterator; 27002: 27002: using __unique_keys = typename __base_type::__unique_keys; 27002: using __hashtable = typename __base_type::__hashtable; 27002: using __ireturn_type = typename __base_type::__ireturn_type; 27002: 27002: using __base_type::insert; 27002: 27002: template 27002: using __is_cons = std::is_constructible; 27002: 27002: template 27002: using _IFcons = std::enable_if<__is_cons<_Pair>::value>; 27002: 27002: template 27002: using _IFconsp = typename _IFcons<_Pair>::type; 27002: 27002: template> 27002: __ireturn_type 27002: insert(_Pair&& __v) 27002: { 27002: __hashtable& __h = this->_M_conjure_hashtable(); 27002: return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); 27002: } 27002: 27002: template> 27002: iterator 27002: insert(const_iterator __hint, _Pair&& __v) 27002: { 27002: __hashtable& __h = this->_M_conjure_hashtable(); 27002: return __h._M_emplace(__hint, __unique_keys{}, 27002: std::forward<_Pair>(__v)); 27002: } 27002: }; 27002: 27002: template 27002: using __has_load_factor = typename _Policy::__has_load_factor; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: struct _Rehash_base; 27002: 27002: 27002: template 27002: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 27002: false_type > 27002: { 27002: }; 27002: 27002: 27002: template 27002: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 27002: true_type > 27002: { 27002: private: 27002: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, 27002: _Equal, _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>; 27002: 27002: public: 27002: float 27002: max_load_factor() const noexcept 27002: { 27002: const __hashtable* __this = static_cast(this); 27002: return __this->__rehash_policy().max_load_factor(); 27002: } 27002: 27002: void 27002: max_load_factor(float __z) 27002: { 27002: __hashtable* __this = static_cast<__hashtable*>(this); 27002: __this->__rehash_policy(_RehashPolicy(__z)); 27002: } 27002: 27002: void 27002: reserve(std::size_t __n) 27002: { 27002: __hashtable* __this = static_cast<__hashtable*>(this); 27002: __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Hashtable_ebo_helper; 27002: 27002: 27002: template 27002: struct _Hashtable_ebo_helper<_Nm, _Tp, true> 27002: : private _Tp 27002: { 27002: _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } 27002: 27002: template 27002: _Hashtable_ebo_helper(_OtherTp&& __tp) 27002: : _Tp(std::forward<_OtherTp>(__tp)) 27002: { } 27002: 27002: const _Tp& _M_cget() const { return static_cast(*this); } 27002: _Tp& _M_get() { return static_cast<_Tp&>(*this); } 27002: }; 27002: 27002: 27002: template 27002: struct _Hashtable_ebo_helper<_Nm, _Tp, false> 27002: { 27002: _Hashtable_ebo_helper() = default; 27002: 27002: template 27002: _Hashtable_ebo_helper(_OtherTp&& __tp) 27002: : _M_tp(std::forward<_OtherTp>(__tp)) 27002: { } 27002: 27002: const _Tp& _M_cget() const { return _M_tp; } 27002: _Tp& _M_get() { return _M_tp; } 27002: 27002: private: 27002: _Tp _M_tp{}; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Local_iterator_base; 27002: # 1236 "/usr/include/c++/12/bits/hashtable_policy.h" 3 27002: template 27002: struct _Hash_code_base 27002: : private _Hashtable_ebo_helper<1, _Hash> 27002: { 27002: private: 27002: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; 27002: 27002: 27002: friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, false>; 27002: 27002: public: 27002: typedef _Hash hasher; 27002: 27002: hasher 27002: hash_function() const 27002: { return _M_hash(); } 27002: 27002: protected: 27002: typedef std::size_t __hash_code; 27002: 27002: 27002: 27002: _Hash_code_base() = default; 27002: 27002: _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } 27002: 27002: __hash_code 27002: _M_hash_code(const _Key& __k) const 27002: { 27002: static_assert(__is_invocable{}, 27002: "hash function must be invocable with an argument of key type"); 27002: return _M_hash()(__k); 27002: } 27002: 27002: template 27002: __hash_code 27002: _M_hash_code_tr(const _Kt& __k) const 27002: { 27002: static_assert(__is_invocable{}, 27002: "hash function must be invocable with an argument of key type"); 27002: return _M_hash()(__k); 27002: } 27002: 27002: __hash_code 27002: _M_hash_code(const _Hash&, 27002: const _Hash_node_value<_Value, true>& __n) const 27002: { return __n._M_hash_code; } 27002: 27002: 27002: 27002: template 27002: __hash_code 27002: _M_hash_code(const _H2&, 27002: const _Hash_node_value<_Value, __cache_hash_code>& __n) const 27002: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 27002: 27002: __hash_code 27002: _M_hash_code(const _Hash_node_value<_Value, false>& __n) const 27002: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 27002: 27002: __hash_code 27002: _M_hash_code(const _Hash_node_value<_Value, true>& __n) const 27002: { return __n._M_hash_code; } 27002: 27002: std::size_t 27002: _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const 27002: { return _RangeHash{}(__c, __bkt_count); } 27002: 27002: std::size_t 27002: _M_bucket_index(const _Hash_node_value<_Value, false>& __n, 27002: std::size_t __bkt_count) const 27002: noexcept( noexcept(declval()(declval())) 27002: && noexcept(declval()((__hash_code)0, 27002: (std::size_t)0)) ) 27002: { 27002: return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), 27002: __bkt_count); 27002: } 27002: 27002: std::size_t 27002: _M_bucket_index(const _Hash_node_value<_Value, true>& __n, 27002: std::size_t __bkt_count) const 27002: noexcept( noexcept(declval()((__hash_code)0, 27002: (std::size_t)0)) ) 27002: { return _RangeHash{}(__n._M_hash_code, __bkt_count); } 27002: 27002: void 27002: _M_store_code(_Hash_node_code_cache&, __hash_code) const 27002: { } 27002: 27002: void 27002: _M_copy_code(_Hash_node_code_cache&, 27002: const _Hash_node_code_cache&) const 27002: { } 27002: 27002: void 27002: _M_store_code(_Hash_node_code_cache& __n, __hash_code __c) const 27002: { __n._M_hash_code = __c; } 27002: 27002: void 27002: _M_copy_code(_Hash_node_code_cache& __to, 27002: const _Hash_node_code_cache& __from) const 27002: { __to._M_hash_code = __from._M_hash_code; } 27002: 27002: void 27002: _M_swap(_Hash_code_base& __x) 27002: { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } 27002: 27002: const _Hash& 27002: _M_hash() const { return __ebo_hash::_M_cget(); } 27002: }; 27002: 27002: 27002: template 27002: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, true> 27002: : public _Node_iterator_base<_Value, true> 27002: { 27002: protected: 27002: using __base_node_iter = _Node_iterator_base<_Value, true>; 27002: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, true>; 27002: 27002: _Local_iterator_base() = default; 27002: _Local_iterator_base(const __hash_code_base&, 27002: _Hash_node<_Value, true>* __p, 27002: std::size_t __bkt, std::size_t __bkt_count) 27002: : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 27002: { } 27002: 27002: void 27002: _M_incr() 27002: { 27002: __base_node_iter::_M_incr(); 27002: if (this->_M_cur) 27002: { 27002: std::size_t __bkt 27002: = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); 27002: if (__bkt != _M_bucket) 27002: this->_M_cur = nullptr; 27002: } 27002: } 27002: 27002: std::size_t _M_bucket; 27002: std::size_t _M_bucket_count; 27002: 27002: public: 27002: std::size_t 27002: _M_get_bucket() const { return _M_bucket; } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template::value> 27002: struct _Hash_code_storage 27002: { 27002: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 27002: 27002: _Tp* 27002: _M_h() { return _M_storage._M_ptr(); } 27002: 27002: const _Tp* 27002: _M_h() const { return _M_storage._M_ptr(); } 27002: }; 27002: 27002: 27002: template 27002: struct _Hash_code_storage<_Tp, true> 27002: { 27002: static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); 27002: 27002: 27002: 27002: _Tp* 27002: _M_h() { return reinterpret_cast<_Tp*>(this); } 27002: 27002: const _Tp* 27002: _M_h() const { return reinterpret_cast(this); } 27002: }; 27002: 27002: template 27002: using __hash_code_for_local_iter 27002: = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, false>>; 27002: 27002: 27002: template 27002: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, false> 27002: : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 27002: _Unused> 27002: , _Node_iterator_base<_Value, false> 27002: { 27002: protected: 27002: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, false>; 27002: using __node_iter_base = _Node_iterator_base<_Value, false>; 27002: 27002: _Local_iterator_base() : _M_bucket_count(-1) { } 27002: 27002: _Local_iterator_base(const __hash_code_base& __base, 27002: _Hash_node<_Value, false>* __p, 27002: std::size_t __bkt, std::size_t __bkt_count) 27002: : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 27002: { _M_init(__base); } 27002: 27002: ~_Local_iterator_base() 27002: { 27002: if (_M_bucket_count != size_t(-1)) 27002: _M_destroy(); 27002: } 27002: 27002: _Local_iterator_base(const _Local_iterator_base& __iter) 27002: : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) 27002: , _M_bucket_count(__iter._M_bucket_count) 27002: { 27002: if (_M_bucket_count != size_t(-1)) 27002: _M_init(*__iter._M_h()); 27002: } 27002: 27002: _Local_iterator_base& 27002: operator=(const _Local_iterator_base& __iter) 27002: { 27002: if (_M_bucket_count != -1) 27002: _M_destroy(); 27002: this->_M_cur = __iter._M_cur; 27002: _M_bucket = __iter._M_bucket; 27002: _M_bucket_count = __iter._M_bucket_count; 27002: if (_M_bucket_count != -1) 27002: _M_init(*__iter._M_h()); 27002: return *this; 27002: } 27002: 27002: void 27002: _M_incr() 27002: { 27002: __node_iter_base::_M_incr(); 27002: if (this->_M_cur) 27002: { 27002: std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, 27002: _M_bucket_count); 27002: if (__bkt != _M_bucket) 27002: this->_M_cur = nullptr; 27002: } 27002: } 27002: 27002: std::size_t _M_bucket; 27002: std::size_t _M_bucket_count; 27002: 27002: void 27002: _M_init(const __hash_code_base& __base) 27002: { ::new(this->_M_h()) __hash_code_base(__base); } 27002: 27002: void 27002: _M_destroy() { this->_M_h()->~__hash_code_base(); } 27002: 27002: public: 27002: std::size_t 27002: _M_get_bucket() const { return _M_bucket; } 27002: }; 27002: 27002: 27002: template 27002: struct _Local_iterator 27002: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, __cache> 27002: { 27002: private: 27002: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, __cache>; 27002: using __hash_code_base = typename __base_type::__hash_code_base; 27002: 27002: public: 27002: using value_type = _Value; 27002: using pointer = __conditional_t<__constant_iterators, 27002: const value_type*, value_type*>; 27002: using reference = __conditional_t<__constant_iterators, 27002: const value_type&, value_type&>; 27002: using difference_type = ptrdiff_t; 27002: using iterator_category = forward_iterator_tag; 27002: 27002: _Local_iterator() = default; 27002: 27002: _Local_iterator(const __hash_code_base& __base, 27002: _Hash_node<_Value, __cache>* __n, 27002: std::size_t __bkt, std::size_t __bkt_count) 27002: : __base_type(__base, __n, __bkt, __bkt_count) 27002: { } 27002: 27002: reference 27002: operator*() const 27002: { return this->_M_cur->_M_v(); } 27002: 27002: pointer 27002: operator->() const 27002: { return this->_M_cur->_M_valptr(); } 27002: 27002: _Local_iterator& 27002: operator++() 27002: { 27002: this->_M_incr(); 27002: return *this; 27002: } 27002: 27002: _Local_iterator 27002: operator++(int) 27002: { 27002: _Local_iterator __tmp(*this); 27002: this->_M_incr(); 27002: return __tmp; 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct _Local_const_iterator 27002: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, __cache> 27002: { 27002: private: 27002: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, __cache>; 27002: using __hash_code_base = typename __base_type::__hash_code_base; 27002: 27002: public: 27002: typedef _Value value_type; 27002: typedef const value_type* pointer; 27002: typedef const value_type& reference; 27002: typedef std::ptrdiff_t difference_type; 27002: typedef std::forward_iterator_tag iterator_category; 27002: 27002: _Local_const_iterator() = default; 27002: 27002: _Local_const_iterator(const __hash_code_base& __base, 27002: _Hash_node<_Value, __cache>* __n, 27002: std::size_t __bkt, std::size_t __bkt_count) 27002: : __base_type(__base, __n, __bkt, __bkt_count) 27002: { } 27002: 27002: _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, 27002: __constant_iterators, 27002: __cache>& __x) 27002: : __base_type(__x) 27002: { } 27002: 27002: reference 27002: operator*() const 27002: { return this->_M_cur->_M_v(); } 27002: 27002: pointer 27002: operator->() const 27002: { return this->_M_cur->_M_valptr(); } 27002: 27002: _Local_const_iterator& 27002: operator++() 27002: { 27002: this->_M_incr(); 27002: return *this; 27002: } 27002: 27002: _Local_const_iterator 27002: operator++(int) 27002: { 27002: _Local_const_iterator __tmp(*this); 27002: this->_M_incr(); 27002: return __tmp; 27002: } 27002: }; 27002: # 1628 "/usr/include/c++/12/bits/hashtable_policy.h" 3 27002: template 27002: struct _Hashtable_base 27002: : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 27002: _Unused, _Traits::__hash_cached::value>, 27002: private _Hashtable_ebo_helper<0, _Equal> 27002: { 27002: public: 27002: typedef _Key key_type; 27002: typedef _Value value_type; 27002: typedef _Equal key_equal; 27002: typedef std::size_t size_type; 27002: typedef std::ptrdiff_t difference_type; 27002: 27002: using __traits_type = _Traits; 27002: using __hash_cached = typename __traits_type::__hash_cached; 27002: 27002: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 27002: _Hash, _RangeHash, _Unused, 27002: __hash_cached::value>; 27002: 27002: using __hash_code = typename __hash_code_base::__hash_code; 27002: 27002: private: 27002: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; 27002: 27002: static bool 27002: _S_equals(__hash_code, const _Hash_node_code_cache&) 27002: { return true; } 27002: 27002: static bool 27002: _S_node_equals(const _Hash_node_code_cache&, 27002: const _Hash_node_code_cache&) 27002: { return true; } 27002: 27002: static bool 27002: _S_equals(__hash_code __c, const _Hash_node_code_cache& __n) 27002: { return __c == __n._M_hash_code; } 27002: 27002: static bool 27002: _S_node_equals(const _Hash_node_code_cache& __lhn, 27002: const _Hash_node_code_cache& __rhn) 27002: { return __lhn._M_hash_code == __rhn._M_hash_code; } 27002: 27002: protected: 27002: _Hashtable_base() = default; 27002: 27002: _Hashtable_base(const _Hash& __hash, const _Equal& __eq) 27002: : __hash_code_base(__hash), _EqualEBO(__eq) 27002: { } 27002: 27002: bool 27002: _M_key_equals(const _Key& __k, 27002: const _Hash_node_value<_Value, 27002: __hash_cached::value>& __n) const 27002: { 27002: static_assert(__is_invocable{}, 27002: "key equality predicate must be invocable with two arguments of " 27002: "key type"); 27002: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 27002: } 27002: 27002: template 27002: bool 27002: _M_key_equals_tr(const _Kt& __k, 27002: const _Hash_node_value<_Value, 27002: __hash_cached::value>& __n) const 27002: { 27002: static_assert( 27002: __is_invocable{}, 27002: "key equality predicate must be invocable with two arguments of " 27002: "key type"); 27002: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 27002: } 27002: 27002: bool 27002: _M_equals(const _Key& __k, __hash_code __c, 27002: const _Hash_node_value<_Value, __hash_cached::value>& __n) const 27002: { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } 27002: 27002: template 27002: bool 27002: _M_equals_tr(const _Kt& __k, __hash_code __c, 27002: const _Hash_node_value<_Value, 27002: __hash_cached::value>& __n) const 27002: { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } 27002: 27002: bool 27002: _M_node_equals( 27002: const _Hash_node_value<_Value, __hash_cached::value>& __lhn, 27002: const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const 27002: { 27002: return _S_node_equals(__lhn, __rhn) 27002: && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); 27002: } 27002: 27002: void 27002: _M_swap(_Hashtable_base& __x) 27002: { 27002: __hash_code_base::_M_swap(__x); 27002: std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); 27002: } 27002: 27002: const _Equal& 27002: _M_eq() const { return _EqualEBO::_M_cget(); } 27002: }; 27002: # 1744 "/usr/include/c++/12/bits/hashtable_policy.h" 3 27002: template 27002: struct _Equality; 27002: 27002: 27002: template 27002: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 27002: { 27002: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>; 27002: 27002: bool 27002: _M_equal(const __hashtable&) const; 27002: }; 27002: 27002: template 27002: bool 27002: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 27002: _M_equal(const __hashtable& __other) const 27002: { 27002: using __node_type = typename __hashtable::__node_type; 27002: const __hashtable* __this = static_cast(this); 27002: if (__this->size() != __other.size()) 27002: return false; 27002: 27002: for (auto __itx = __this->begin(); __itx != __this->end(); ++__itx) 27002: { 27002: std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur); 27002: auto __prev_n = __other._M_buckets[__ybkt]; 27002: if (!__prev_n) 27002: return false; 27002: 27002: for (__node_type* __n = static_cast<__node_type*>(__prev_n->_M_nxt);; 27002: __n = __n->_M_next()) 27002: { 27002: if (__n->_M_v() == *__itx) 27002: break; 27002: 27002: if (!__n->_M_nxt 27002: || __other._M_bucket_index(*__n->_M_next()) != __ybkt) 27002: return false; 27002: } 27002: } 27002: 27002: return true; 27002: } 27002: 27002: 27002: template 27002: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 27002: { 27002: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>; 27002: 27002: bool 27002: _M_equal(const __hashtable&) const; 27002: }; 27002: 27002: template 27002: bool 27002: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: 27002: _M_equal(const __hashtable& __other) const 27002: { 27002: using __node_type = typename __hashtable::__node_type; 27002: const __hashtable* __this = static_cast(this); 27002: if (__this->size() != __other.size()) 27002: return false; 27002: 27002: for (auto __itx = __this->begin(); __itx != __this->end();) 27002: { 27002: std::size_t __x_count = 1; 27002: auto __itx_end = __itx; 27002: for (++__itx_end; __itx_end != __this->end() 27002: && __this->key_eq()(_ExtractKey{}(*__itx), 27002: _ExtractKey{}(*__itx_end)); 27002: ++__itx_end) 27002: ++__x_count; 27002: 27002: std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur); 27002: auto __y_prev_n = __other._M_buckets[__ybkt]; 27002: if (!__y_prev_n) 27002: return false; 27002: 27002: __node_type* __y_n = static_cast<__node_type*>(__y_prev_n->_M_nxt); 27002: for (;;) 27002: { 27002: if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), 27002: _ExtractKey{}(*__itx))) 27002: break; 27002: 27002: auto __y_ref_n = __y_n; 27002: for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) 27002: if (!__other._M_node_equals(*__y_ref_n, *__y_n)) 27002: break; 27002: 27002: if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) 27002: return false; 27002: } 27002: 27002: typename __hashtable::const_iterator __ity(__y_n); 27002: for (auto __ity_end = __ity; __ity_end != __other.end(); ++__ity_end) 27002: if (--__x_count == 0) 27002: break; 27002: 27002: if (__x_count != 0) 27002: return false; 27002: 27002: if (!std::is_permutation(__itx, __itx_end, __ity)) 27002: return false; 27002: 27002: __itx = __itx_end; 27002: } 27002: return true; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> 27002: { 27002: private: 27002: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; 27002: 27002: template 27002: struct __get_value_type; 27002: template 27002: struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> 27002: { using type = _Val; }; 27002: 27002: public: 27002: using __node_type = typename _NodeAlloc::value_type; 27002: using __node_alloc_type = _NodeAlloc; 27002: 27002: using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; 27002: 27002: using __value_alloc_traits = typename __node_alloc_traits::template 27002: rebind_traits::type>; 27002: 27002: using __node_ptr = __node_type*; 27002: using __node_base = _Hash_node_base; 27002: using __node_base_ptr = __node_base*; 27002: using __buckets_alloc_type = 27002: __alloc_rebind<__node_alloc_type, __node_base_ptr>; 27002: using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; 27002: using __buckets_ptr = __node_base_ptr*; 27002: 27002: _Hashtable_alloc() = default; 27002: _Hashtable_alloc(const _Hashtable_alloc&) = default; 27002: _Hashtable_alloc(_Hashtable_alloc&&) = default; 27002: 27002: template 27002: _Hashtable_alloc(_Alloc&& __a) 27002: : __ebo_node_alloc(std::forward<_Alloc>(__a)) 27002: { } 27002: 27002: __node_alloc_type& 27002: _M_node_allocator() 27002: { return __ebo_node_alloc::_M_get(); } 27002: 27002: const __node_alloc_type& 27002: _M_node_allocator() const 27002: { return __ebo_node_alloc::_M_cget(); } 27002: 27002: 27002: template 27002: __node_ptr 27002: _M_allocate_node(_Args&&... __args); 27002: 27002: 27002: void 27002: _M_deallocate_node(__node_ptr __n); 27002: 27002: 27002: void 27002: _M_deallocate_node_ptr(__node_ptr __n); 27002: 27002: 27002: 27002: void 27002: _M_deallocate_nodes(__node_ptr __n); 27002: 27002: __buckets_ptr 27002: _M_allocate_buckets(std::size_t __bkt_count); 27002: 27002: void 27002: _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); 27002: }; 27002: 27002: 27002: 27002: template 27002: template 27002: auto 27002: _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) 27002: -> __node_ptr 27002: { 27002: auto __nptr = __node_alloc_traits::allocate(_M_node_allocator(), 1); 27002: __node_ptr __n = std::__to_address(__nptr); 27002: try 27002: { 27002: ::new ((void*)__n) __node_type; 27002: __node_alloc_traits::construct(_M_node_allocator(), 27002: __n->_M_valptr(), 27002: std::forward<_Args>(__args)...); 27002: return __n; 27002: } 27002: catch(...) 27002: { 27002: __node_alloc_traits::deallocate(_M_node_allocator(), __nptr, 1); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: void 27002: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) 27002: { 27002: __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); 27002: _M_deallocate_node_ptr(__n); 27002: } 27002: 27002: template 27002: void 27002: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) 27002: { 27002: typedef typename __node_alloc_traits::pointer _Ptr; 27002: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); 27002: __n->~__node_type(); 27002: __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); 27002: } 27002: 27002: template 27002: void 27002: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) 27002: { 27002: while (__n) 27002: { 27002: __node_ptr __tmp = __n; 27002: __n = __n->_M_next(); 27002: _M_deallocate_node(__tmp); 27002: } 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) 27002: -> __buckets_ptr 27002: { 27002: __buckets_alloc_type __alloc(_M_node_allocator()); 27002: 27002: auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); 27002: __buckets_ptr __p = std::__to_address(__ptr); 27002: __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); 27002: return __p; 27002: } 27002: 27002: template 27002: void 27002: _Hashtable_alloc<_NodeAlloc>:: 27002: _M_deallocate_buckets(__buckets_ptr __bkts, 27002: std::size_t __bkt_count) 27002: { 27002: typedef typename __buckets_alloc_traits::pointer _Ptr; 27002: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); 27002: __buckets_alloc_type __alloc(_M_node_allocator()); 27002: __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); 27002: } 27002: 27002: 27002: } 27002: 27002: 27002: } 27002: # 36 "/usr/include/c++/12/bits/hashtable.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/enable_special_members.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/enable_special_members.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/enable_special_members.h" 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: struct _Enable_default_constructor_tag 27002: { 27002: explicit constexpr _Enable_default_constructor_tag() = default; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Enable_default_constructor 27002: { 27002: constexpr _Enable_default_constructor() noexcept = default; 27002: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 27002: noexcept = default; 27002: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 27002: noexcept = default; 27002: _Enable_default_constructor& 27002: operator=(_Enable_default_constructor const&) noexcept = default; 27002: _Enable_default_constructor& 27002: operator=(_Enable_default_constructor&&) noexcept = default; 27002: 27002: 27002: constexpr explicit 27002: _Enable_default_constructor(_Enable_default_constructor_tag) { } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Enable_destructor { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Enable_copy_move { }; 27002: # 96 "/usr/include/c++/12/bits/enable_special_members.h" 3 27002: template 27002: struct _Enable_special_members 27002: : private _Enable_default_constructor<_Default, _Tag>, 27002: private _Enable_destructor<_Destructor, _Tag>, 27002: private _Enable_copy_move<_Copy, _CopyAssignment, 27002: _Move, _MoveAssignment, 27002: _Tag> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct _Enable_default_constructor 27002: { 27002: constexpr _Enable_default_constructor() noexcept = delete; 27002: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 27002: noexcept = default; 27002: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 27002: noexcept = default; 27002: _Enable_default_constructor& 27002: operator=(_Enable_default_constructor const&) noexcept = default; 27002: _Enable_default_constructor& 27002: operator=(_Enable_default_constructor&&) noexcept = default; 27002: 27002: 27002: constexpr explicit 27002: _Enable_default_constructor(_Enable_default_constructor_tag) { } 27002: }; 27002: 27002: template 27002: struct _Enable_destructor 27002: { ~_Enable_destructor() noexcept = delete; }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = default; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = default; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = default; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = default; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = default; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = default; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = default; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = delete; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = delete; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = delete; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = delete; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = delete; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = default; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = delete; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = delete; 27002: }; 27002: 27002: template 27002: struct _Enable_copy_move 27002: { 27002: constexpr _Enable_copy_move() noexcept = default; 27002: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 27002: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move const&) noexcept = delete; 27002: _Enable_copy_move& 27002: operator=(_Enable_copy_move&&) noexcept = delete; 27002: }; 27002: 27002: 27002: 27002: } 27002: # 37 "/usr/include/c++/12/bits/hashtable.h" 2 3 27002: 27002: # 1 "/usr/include/c++/12/bits/node_handle.h" 1 3 27002: # 34 "/usr/include/c++/12/bits/node_handle.h" 3 27002: 27002: # 35 "/usr/include/c++/12/bits/node_handle.h" 3 27002: # 43 "/usr/include/c++/12/bits/node_handle.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 63 "/usr/include/c++/12/bits/node_handle.h" 3 27002: template 27002: class _Node_handle_common 27002: { 27002: using _AllocTraits = allocator_traits<_NodeAlloc>; 27002: 27002: public: 27002: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 27002: return allocator_type(_M_alloc._M_alloc); 27002: } 27002: 27002: explicit operator bool() const noexcept { return _M_ptr != nullptr; } 27002: 27002: [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } 27002: 27002: 27002: protected: 27002: constexpr _Node_handle_common() noexcept : _M_ptr() { } 27002: 27002: ~_Node_handle_common() 27002: { 27002: if (!empty()) 27002: _M_reset(); 27002: } 27002: 27002: _Node_handle_common(_Node_handle_common&& __nh) noexcept 27002: : _M_ptr(__nh._M_ptr) 27002: { 27002: if (_M_ptr) 27002: _M_move(std::move(__nh)); 27002: } 27002: 27002: _Node_handle_common& 27002: operator=(_Node_handle_common&& __nh) noexcept 27002: { 27002: if (empty()) 27002: { 27002: if (!__nh.empty()) 27002: _M_move(std::move(__nh)); 27002: } 27002: else if (__nh.empty()) 27002: _M_reset(); 27002: else 27002: { 27002: 27002: _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); 27002: _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); 27002: 27002: _M_alloc = __nh._M_alloc.release(); 27002: _M_ptr = __nh._M_ptr; 27002: __nh._M_ptr = nullptr; 27002: } 27002: return *this; 27002: } 27002: 27002: _Node_handle_common(typename _AllocTraits::pointer __ptr, 27002: const _NodeAlloc& __alloc) 27002: : _M_ptr(__ptr), _M_alloc(__alloc) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__ptr != nullptr)) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: void 27002: _M_swap(_Node_handle_common& __nh) noexcept 27002: { 27002: if (empty()) 27002: { 27002: if (!__nh.empty()) 27002: _M_move(std::move(__nh)); 27002: } 27002: else if (__nh.empty()) 27002: __nh._M_move(std::move(*this)); 27002: else 27002: { 27002: using std::swap; 27002: swap(_M_ptr, __nh._M_ptr); 27002: _M_alloc.swap(__nh._M_alloc); 27002: } 27002: } 27002: 27002: private: 27002: 27002: 27002: 27002: void 27002: _M_move(_Node_handle_common&& __nh) noexcept 27002: { 27002: ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); 27002: _M_ptr = __nh._M_ptr; 27002: __nh._M_ptr = nullptr; 27002: } 27002: 27002: 27002: 27002: 27002: void 27002: _M_reset() noexcept 27002: { 27002: _NodeAlloc __alloc = _M_alloc.release(); 27002: _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); 27002: _AllocTraits::deallocate(__alloc, _M_ptr, 1); 27002: _M_ptr = nullptr; 27002: } 27002: 27002: protected: 27002: typename _AllocTraits::pointer _M_ptr; 27002: 27002: private: 27002: 27002: 27002: union _Optional_alloc 27002: { 27002: _Optional_alloc() { } 27002: ~_Optional_alloc() { } 27002: 27002: _Optional_alloc(_Optional_alloc&&) = delete; 27002: _Optional_alloc& operator=(_Optional_alloc&&) = delete; 27002: 27002: _Optional_alloc(const _NodeAlloc& __alloc) noexcept 27002: : _M_alloc(__alloc) 27002: { } 27002: 27002: 27002: void 27002: operator=(_NodeAlloc&& __alloc) noexcept 27002: { 27002: using _ATr = _AllocTraits; 27002: if constexpr (_ATr::propagate_on_container_move_assignment::value) 27002: _M_alloc = std::move(__alloc); 27002: else if constexpr (!_AllocTraits::is_always_equal::value) 27002: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __alloc)) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: 27002: void 27002: swap(_Optional_alloc& __other) noexcept 27002: { 27002: using std::swap; 27002: if constexpr (_AllocTraits::propagate_on_container_swap::value) 27002: swap(_M_alloc, __other._M_alloc); 27002: else if constexpr (!_AllocTraits::is_always_equal::value) 27002: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __other._M_alloc)) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: 27002: _NodeAlloc& operator*() noexcept { return _M_alloc; } 27002: 27002: 27002: _NodeAlloc release() noexcept 27002: { 27002: _NodeAlloc __tmp = std::move(_M_alloc); 27002: _M_alloc.~_NodeAlloc(); 27002: return __tmp; 27002: } 27002: 27002: struct _Empty { }; 27002: 27002: [[__no_unique_address__]] _Empty _M_empty; 27002: [[__no_unique_address__]] _NodeAlloc _M_alloc; 27002: }; 27002: 27002: [[__no_unique_address__]] _Optional_alloc _M_alloc; 27002: 27002: template 27002: friend class _Rb_tree; 27002: 27002: 27002: }; 27002: 27002: 27002: template 27002: class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> 27002: { 27002: public: 27002: constexpr _Node_handle() noexcept = default; 27002: ~_Node_handle() = default; 27002: _Node_handle(_Node_handle&&) noexcept = default; 27002: 27002: _Node_handle& 27002: operator=(_Node_handle&&) noexcept = default; 27002: 27002: using key_type = _Key; 27002: using mapped_type = typename _Value::second_type; 27002: 27002: key_type& 27002: key() const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 27002: return *_M_pkey; 27002: } 27002: 27002: mapped_type& 27002: mapped() const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 27002: return *_M_pmapped; 27002: } 27002: 27002: void 27002: swap(_Node_handle& __nh) noexcept 27002: { 27002: this->_M_swap(__nh); 27002: using std::swap; 27002: swap(_M_pkey, __nh._M_pkey); 27002: swap(_M_pmapped, __nh._M_pmapped); 27002: } 27002: 27002: friend void 27002: swap(_Node_handle& __x, _Node_handle& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: private: 27002: using _AllocTraits = allocator_traits<_NodeAlloc>; 27002: 27002: _Node_handle(typename _AllocTraits::pointer __ptr, 27002: const _NodeAlloc& __alloc) 27002: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) 27002: { 27002: if (__ptr) 27002: { 27002: auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); 27002: _M_pkey = _S_pointer_to(__key); 27002: _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); 27002: } 27002: else 27002: { 27002: _M_pkey = nullptr; 27002: _M_pmapped = nullptr; 27002: } 27002: } 27002: 27002: template 27002: using __pointer 27002: = __ptr_rebind>; 27002: 27002: __pointer<_Key> _M_pkey = nullptr; 27002: __pointer _M_pmapped = nullptr; 27002: 27002: template 27002: __pointer<_Tp> 27002: _S_pointer_to(_Tp& __obj) 27002: { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } 27002: 27002: const key_type& 27002: _M_key() const noexcept { return key(); } 27002: 27002: template 27002: friend class _Rb_tree; 27002: 27002: template 27002: friend class _Hashtable; 27002: }; 27002: 27002: 27002: template 27002: class _Node_handle<_Value, _Value, _NodeAlloc> 27002: : public _Node_handle_common<_Value, _NodeAlloc> 27002: { 27002: public: 27002: constexpr _Node_handle() noexcept = default; 27002: ~_Node_handle() = default; 27002: _Node_handle(_Node_handle&&) noexcept = default; 27002: 27002: _Node_handle& 27002: operator=(_Node_handle&&) noexcept = default; 27002: 27002: using value_type = _Value; 27002: 27002: value_type& 27002: value() const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); 27002: return *this->_M_ptr->_M_valptr(); 27002: } 27002: 27002: void 27002: swap(_Node_handle& __nh) noexcept 27002: { this->_M_swap(__nh); } 27002: 27002: friend void 27002: swap(_Node_handle& __x, _Node_handle& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: private: 27002: using _AllocTraits = allocator_traits<_NodeAlloc>; 27002: 27002: _Node_handle(typename _AllocTraits::pointer __ptr, 27002: const _NodeAlloc& __alloc) 27002: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } 27002: 27002: const value_type& 27002: _M_key() const noexcept { return value(); } 27002: 27002: template 27002: friend class _Rb_tree; 27002: 27002: template 27002: friend class _Hashtable; 27002: }; 27002: 27002: 27002: template 27002: struct _Node_insert_return 27002: { 27002: _Iterator position = _Iterator(); 27002: bool inserted = false; 27002: _NodeHandle node; 27002: }; 27002: 27002: 27002: 27002: 27002: } 27002: # 39 "/usr/include/c++/12/bits/hashtable.h" 2 3 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: using __cache_default 27002: = __not_<__and_< 27002: __is_fast_hash<_Hash>, 27002: 27002: __is_nothrow_invocable>>; 27002: 27002: 27002: 27002: 27002: template 27002: using _Hashtable_enable_default_ctor 27002: = _Enable_default_constructor<__and_, 27002: is_default_constructible<_Hash>, 27002: is_default_constructible<_Allocator>>{}, 27002: __detail::_Hash_node_base>; 27002: # 178 "/usr/include/c++/12/bits/hashtable.h" 3 27002: template 27002: class _Hashtable 27002: : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _Traits>, 27002: public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>, 27002: public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>, 27002: public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>, 27002: public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>, 27002: private __detail::_Hashtable_alloc< 27002: __alloc_rebind<_Alloc, 27002: __detail::_Hash_node<_Value, 27002: _Traits::__hash_cached::value>>>, 27002: private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> 27002: { 27002: static_assert(is_same::type, _Value>::value, 27002: "unordered container must have a non-const, non-volatile value_type"); 27002: 27002: 27002: 27002: 27002: 27002: using __traits_type = _Traits; 27002: using __hash_cached = typename __traits_type::__hash_cached; 27002: using __constant_iterators = typename __traits_type::__constant_iterators; 27002: using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; 27002: using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; 27002: 27002: using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; 27002: 27002: using __node_value_type = 27002: __detail::_Hash_node_value<_Value, __hash_cached::value>; 27002: using __node_ptr = typename __hashtable_alloc::__node_ptr; 27002: using __value_alloc_traits = 27002: typename __hashtable_alloc::__value_alloc_traits; 27002: using __node_alloc_traits = 27002: typename __hashtable_alloc::__node_alloc_traits; 27002: using __node_base = typename __hashtable_alloc::__node_base; 27002: using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; 27002: using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; 27002: 27002: using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, 27002: _Equal, _Hash, 27002: _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>; 27002: using __enable_default_ctor 27002: = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; 27002: 27002: public: 27002: typedef _Key key_type; 27002: typedef _Value value_type; 27002: typedef _Alloc allocator_type; 27002: typedef _Equal key_equal; 27002: 27002: 27002: 27002: typedef typename __value_alloc_traits::pointer pointer; 27002: typedef typename __value_alloc_traits::const_pointer const_pointer; 27002: typedef value_type& reference; 27002: typedef const value_type& const_reference; 27002: 27002: using iterator = typename __insert_base::iterator; 27002: 27002: using const_iterator = typename __insert_base::const_iterator; 27002: 27002: using local_iterator = __detail::_Local_iterator; 27002: 27002: using const_local_iterator = __detail::_Local_const_iterator< 27002: key_type, _Value, 27002: _ExtractKey, _Hash, _RangeHash, _Unused, 27002: __constant_iterators::value, __hash_cached::value>; 27002: 27002: private: 27002: using __rehash_type = _RehashPolicy; 27002: using __rehash_state = typename __rehash_type::_State; 27002: 27002: using __unique_keys = typename __traits_type::__unique_keys; 27002: 27002: using __hashtable_base = __detail:: 27002: _Hashtable_base<_Key, _Value, _ExtractKey, 27002: _Equal, _Hash, _RangeHash, _Unused, _Traits>; 27002: 27002: using __hash_code_base = typename __hashtable_base::__hash_code_base; 27002: using __hash_code = typename __hashtable_base::__hash_code; 27002: using __ireturn_type = typename __insert_base::__ireturn_type; 27002: 27002: using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, 27002: _Equal, _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>; 27002: 27002: using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, 27002: _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>; 27002: 27002: using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, 27002: _Equal, _Hash, _RangeHash, _Unused, 27002: _RehashPolicy, _Traits>; 27002: 27002: using __reuse_or_alloc_node_gen_t = 27002: __detail::_ReuseOrAllocNode<__node_alloc_type>; 27002: using __alloc_node_gen_t = 27002: __detail::_AllocNode<__node_alloc_type>; 27002: using __node_builder_t = 27002: __detail::_NodeBuilder<_ExtractKey>; 27002: 27002: 27002: struct _Scoped_node 27002: { 27002: 27002: _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) 27002: : _M_h(__h), _M_node(__n) { } 27002: 27002: 27002: template 27002: _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) 27002: : _M_h(__h), 27002: _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) 27002: { } 27002: 27002: 27002: ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; 27002: 27002: _Scoped_node(const _Scoped_node&) = delete; 27002: _Scoped_node& operator=(const _Scoped_node&) = delete; 27002: 27002: __hashtable_alloc* _M_h; 27002: __node_ptr _M_node; 27002: }; 27002: 27002: template 27002: static constexpr 27002: __conditional_t::value, 27002: const value_type&, value_type&&> 27002: __fwd_value_for(value_type& __val) noexcept 27002: { return std::move(__val); } 27002: 27002: 27002: 27002: 27002: 27002: struct __hash_code_base_access : __hash_code_base 27002: { using __hash_code_base::_M_bucket_index; }; 27002: 27002: 27002: static_assert(is_nothrow_default_constructible<_RangeHash>::value, 27002: "Functor used to map hash code to bucket index" 27002: " must be nothrow default constructible"); 27002: static_assert(noexcept( 27002: std::declval()((std::size_t)0, (std::size_t)0)), 27002: "Functor used to map hash code to bucket index must be" 27002: " noexcept"); 27002: 27002: 27002: static_assert(is_nothrow_default_constructible<_ExtractKey>::value, 27002: "_ExtractKey must be nothrow default constructible"); 27002: static_assert(noexcept( 27002: std::declval()(std::declval<_Value>())), 27002: "_ExtractKey functor must be noexcept invocable"); 27002: 27002: template 27002: friend struct __detail::_Map_base; 27002: 27002: template 27002: friend struct __detail::_Insert_base; 27002: 27002: template 27002: friend struct __detail::_Insert; 27002: 27002: template 27002: friend struct __detail::_Equality; 27002: 27002: public: 27002: using size_type = typename __hashtable_base::size_type; 27002: using difference_type = typename __hashtable_base::difference_type; 27002: 27002: 27002: using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; 27002: using insert_return_type = _Node_insert_return; 27002: 27002: 27002: private: 27002: __buckets_ptr _M_buckets = &_M_single_bucket; 27002: size_type _M_bucket_count = 1; 27002: __node_base _M_before_begin; 27002: size_type _M_element_count = 0; 27002: _RehashPolicy _M_rehash_policy; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __node_base_ptr _M_single_bucket = nullptr; 27002: 27002: void 27002: _M_update_bbegin() 27002: { 27002: if (_M_begin()) 27002: _M_buckets[_M_bucket_index(*_M_begin())] = &_M_before_begin; 27002: } 27002: 27002: void 27002: _M_update_bbegin(__node_ptr __n) 27002: { 27002: _M_before_begin._M_nxt = __n; 27002: _M_update_bbegin(); 27002: } 27002: 27002: bool 27002: _M_uses_single_bucket(__buckets_ptr __bkts) const 27002: { return __builtin_expect(__bkts == &_M_single_bucket, false); } 27002: 27002: bool 27002: _M_uses_single_bucket() const 27002: { return _M_uses_single_bucket(_M_buckets); } 27002: 27002: static constexpr size_t 27002: __small_size_threshold() noexcept 27002: { 27002: return 27002: __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); 27002: } 27002: 27002: __hashtable_alloc& 27002: _M_base_alloc() { return *this; } 27002: 27002: __buckets_ptr 27002: _M_allocate_buckets(size_type __bkt_count) 27002: { 27002: if (__builtin_expect(__bkt_count == 1, false)) 27002: { 27002: _M_single_bucket = nullptr; 27002: return &_M_single_bucket; 27002: } 27002: 27002: return __hashtable_alloc::_M_allocate_buckets(__bkt_count); 27002: } 27002: 27002: void 27002: _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) 27002: { 27002: if (_M_uses_single_bucket(__bkts)) 27002: return; 27002: 27002: __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); 27002: } 27002: 27002: void 27002: _M_deallocate_buckets() 27002: { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } 27002: 27002: 27002: 27002: __node_ptr 27002: _M_bucket_begin(size_type __bkt) const; 27002: 27002: __node_ptr 27002: _M_begin() const 27002: { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } 27002: 27002: 27002: 27002: template 27002: void 27002: _M_assign_elements(_Ht&&); 27002: 27002: template 27002: void 27002: _M_assign(_Ht&&, const _NodeGenerator&); 27002: 27002: void 27002: _M_move_assign(_Hashtable&&, true_type); 27002: 27002: void 27002: _M_move_assign(_Hashtable&&, false_type); 27002: 27002: void 27002: _M_reset() noexcept; 27002: 27002: _Hashtable(const _Hash& __h, const _Equal& __eq, 27002: const allocator_type& __a) 27002: : __hashtable_base(__h, __eq), 27002: __hashtable_alloc(__node_alloc_type(__a)), 27002: __enable_default_ctor(_Enable_default_constructor_tag{}) 27002: { } 27002: 27002: template 27002: static constexpr bool 27002: _S_nothrow_move() 27002: { 27002: 27002: 27002: 27002: 27002: 27002: if constexpr (_No_realloc) 27002: if constexpr (is_nothrow_copy_constructible<_Hash>()) 27002: return is_nothrow_copy_constructible<_Equal>(); 27002: return false; 27002: 27002: } 27002: 27002: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 27002: true_type ) 27002: noexcept(_S_nothrow_move()); 27002: 27002: _Hashtable(_Hashtable&&, __node_alloc_type&&, 27002: false_type ); 27002: 27002: template 27002: _Hashtable(_InputIterator __first, _InputIterator __last, 27002: size_type __bkt_count_hint, 27002: const _Hash&, const _Equal&, const allocator_type&, 27002: true_type __uks); 27002: 27002: template 27002: _Hashtable(_InputIterator __first, _InputIterator __last, 27002: size_type __bkt_count_hint, 27002: const _Hash&, const _Equal&, const allocator_type&, 27002: false_type __uks); 27002: 27002: public: 27002: 27002: _Hashtable() = default; 27002: 27002: _Hashtable(const _Hashtable&); 27002: 27002: _Hashtable(const _Hashtable&, const allocator_type&); 27002: 27002: explicit 27002: _Hashtable(size_type __bkt_count_hint, 27002: const _Hash& __hf = _Hash(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()); 27002: 27002: 27002: _Hashtable(_Hashtable&& __ht) 27002: noexcept(_S_nothrow_move()) 27002: : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), 27002: true_type{}) 27002: { } 27002: 27002: _Hashtable(_Hashtable&& __ht, const allocator_type& __a) 27002: noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) 27002: : _Hashtable(std::move(__ht), __node_alloc_type(__a), 27002: typename __node_alloc_traits::is_always_equal{}) 27002: { } 27002: 27002: explicit 27002: _Hashtable(const allocator_type& __a) 27002: : __hashtable_alloc(__node_alloc_type(__a)), 27002: __enable_default_ctor(_Enable_default_constructor_tag{}) 27002: { } 27002: 27002: template 27002: _Hashtable(_InputIterator __f, _InputIterator __l, 27002: size_type __bkt_count_hint = 0, 27002: const _Hash& __hf = _Hash(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, 27002: __unique_keys{}) 27002: { } 27002: 27002: _Hashtable(initializer_list __l, 27002: size_type __bkt_count_hint = 0, 27002: const _Hash& __hf = _Hash(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, 27002: __hf, __eql, __a, __unique_keys{}) 27002: { } 27002: 27002: _Hashtable& 27002: operator=(const _Hashtable& __ht); 27002: 27002: _Hashtable& 27002: operator=(_Hashtable&& __ht) 27002: noexcept(__node_alloc_traits::_S_nothrow_move() 27002: && is_nothrow_move_assignable<_Hash>::value 27002: && is_nothrow_move_assignable<_Equal>::value) 27002: { 27002: constexpr bool __move_storage = 27002: __node_alloc_traits::_S_propagate_on_move_assign() 27002: || __node_alloc_traits::_S_always_equal(); 27002: _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); 27002: return *this; 27002: } 27002: 27002: _Hashtable& 27002: operator=(initializer_list __l) 27002: { 27002: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 27002: _M_before_begin._M_nxt = nullptr; 27002: clear(); 27002: 27002: 27002: auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); 27002: 27002: 27002: if (_M_bucket_count < __l_bkt_count) 27002: rehash(__l_bkt_count); 27002: 27002: this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); 27002: return *this; 27002: } 27002: 27002: ~_Hashtable() noexcept; 27002: 27002: void 27002: swap(_Hashtable&) 27002: noexcept(__and_<__is_nothrow_swappable<_Hash>, 27002: __is_nothrow_swappable<_Equal>>::value); 27002: 27002: 27002: iterator 27002: begin() noexcept 27002: { return iterator(_M_begin()); } 27002: 27002: const_iterator 27002: begin() const noexcept 27002: { return const_iterator(_M_begin()); } 27002: 27002: iterator 27002: end() noexcept 27002: { return iterator(nullptr); } 27002: 27002: const_iterator 27002: end() const noexcept 27002: { return const_iterator(nullptr); } 27002: 27002: const_iterator 27002: cbegin() const noexcept 27002: { return const_iterator(_M_begin()); } 27002: 27002: const_iterator 27002: cend() const noexcept 27002: { return const_iterator(nullptr); } 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_element_count; } 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return size() == 0; } 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return allocator_type(this->_M_node_allocator()); } 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return __node_alloc_traits::max_size(this->_M_node_allocator()); } 27002: 27002: 27002: key_equal 27002: key_eq() const 27002: { return this->_M_eq(); } 27002: 27002: 27002: 27002: 27002: size_type 27002: bucket_count() const noexcept 27002: { return _M_bucket_count; } 27002: 27002: size_type 27002: max_bucket_count() const noexcept 27002: { return max_size(); } 27002: 27002: size_type 27002: bucket_size(size_type __bkt) const 27002: { return std::distance(begin(__bkt), end(__bkt)); } 27002: 27002: size_type 27002: bucket(const key_type& __k) const 27002: { return _M_bucket_index(this->_M_hash_code(__k)); } 27002: 27002: local_iterator 27002: begin(size_type __bkt) 27002: { 27002: return local_iterator(*this, _M_bucket_begin(__bkt), 27002: __bkt, _M_bucket_count); 27002: } 27002: 27002: local_iterator 27002: end(size_type __bkt) 27002: { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 27002: 27002: const_local_iterator 27002: begin(size_type __bkt) const 27002: { 27002: return const_local_iterator(*this, _M_bucket_begin(__bkt), 27002: __bkt, _M_bucket_count); 27002: } 27002: 27002: const_local_iterator 27002: end(size_type __bkt) const 27002: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 27002: 27002: 27002: const_local_iterator 27002: cbegin(size_type __bkt) const 27002: { 27002: return const_local_iterator(*this, _M_bucket_begin(__bkt), 27002: __bkt, _M_bucket_count); 27002: } 27002: 27002: const_local_iterator 27002: cend(size_type __bkt) const 27002: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 27002: 27002: float 27002: load_factor() const noexcept 27002: { 27002: return static_cast(size()) / static_cast(bucket_count()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const _RehashPolicy& 27002: __rehash_policy() const 27002: { return _M_rehash_policy; } 27002: 27002: void 27002: __rehash_policy(const _RehashPolicy& __pol) 27002: { _M_rehash_policy = __pol; } 27002: 27002: 27002: iterator 27002: find(const key_type& __k); 27002: 27002: const_iterator 27002: find(const key_type& __k) const; 27002: 27002: size_type 27002: count(const key_type& __k) const; 27002: 27002: std::pair 27002: equal_range(const key_type& __k); 27002: 27002: std::pair 27002: equal_range(const key_type& __k) const; 27002: # 790 "/usr/include/c++/12/bits/hashtable.h" 3 27002: private: 27002: 27002: size_type 27002: _M_bucket_index(const __node_value_type& __n) const noexcept 27002: { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } 27002: 27002: size_type 27002: _M_bucket_index(__hash_code __c) const 27002: { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } 27002: 27002: __node_base_ptr 27002: _M_find_before_node(const key_type&); 27002: 27002: 27002: 27002: __node_base_ptr 27002: _M_find_before_node(size_type, const key_type&, __hash_code) const; 27002: 27002: template 27002: __node_base_ptr 27002: _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; 27002: 27002: __node_ptr 27002: _M_find_node(size_type __bkt, const key_type& __key, 27002: __hash_code __c) const 27002: { 27002: __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); 27002: if (__before_n) 27002: return static_cast<__node_ptr>(__before_n->_M_nxt); 27002: return nullptr; 27002: } 27002: 27002: template 27002: __node_ptr 27002: _M_find_node_tr(size_type __bkt, const _Kt& __key, 27002: __hash_code __c) const 27002: { 27002: auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); 27002: if (__before_n) 27002: return static_cast<__node_ptr>(__before_n->_M_nxt); 27002: return nullptr; 27002: } 27002: 27002: 27002: void 27002: _M_insert_bucket_begin(size_type, __node_ptr); 27002: 27002: 27002: void 27002: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, 27002: size_type __next_bkt); 27002: 27002: 27002: __node_base_ptr 27002: _M_get_previous_node(size_type __bkt, __node_ptr __n); 27002: 27002: pair 27002: _M_compute_hash_code(const_iterator __hint, const key_type& __k) const; 27002: 27002: 27002: 27002: 27002: iterator 27002: _M_insert_unique_node(size_type __bkt, __hash_code, 27002: __node_ptr __n, size_type __n_elt = 1); 27002: 27002: 27002: 27002: iterator 27002: _M_insert_multi_node(__node_ptr __hint, 27002: __hash_code __code, __node_ptr __n); 27002: 27002: template 27002: std::pair 27002: _M_emplace(true_type __uks, _Args&&... __args); 27002: 27002: template 27002: iterator 27002: _M_emplace(false_type __uks, _Args&&... __args) 27002: { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } 27002: 27002: 27002: template 27002: iterator 27002: _M_emplace(const_iterator, true_type __uks, _Args&&... __args) 27002: { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } 27002: 27002: template 27002: iterator 27002: _M_emplace(const_iterator, false_type __uks, _Args&&... __args); 27002: 27002: template 27002: std::pair 27002: _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); 27002: 27002: template 27002: static __conditional_t< 27002: __and_<__is_nothrow_invocable<_Hash&, const key_type&>, 27002: __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, 27002: key_type, _Kt&&> 27002: _S_forward_key(_Kt&& __k) 27002: { return std::forward<_Kt>(__k); } 27002: 27002: static const key_type& 27002: _S_forward_key(const key_type& __k) 27002: { return __k; } 27002: 27002: static key_type&& 27002: _S_forward_key(key_type&& __k) 27002: { return std::move(__k); } 27002: 27002: template 27002: std::pair 27002: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 27002: true_type ) 27002: { 27002: return _M_insert_unique( 27002: _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), 27002: std::forward<_Arg>(__arg), __node_gen); 27002: } 27002: 27002: template 27002: iterator 27002: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 27002: false_type __uks) 27002: { 27002: return _M_insert(cend(), std::forward<_Arg>(__arg), __node_gen, 27002: __uks); 27002: } 27002: 27002: 27002: template 27002: iterator 27002: _M_insert(const_iterator, _Arg&& __arg, 27002: const _NodeGenerator& __node_gen, true_type __uks) 27002: { 27002: return 27002: _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; 27002: } 27002: 27002: 27002: template 27002: iterator 27002: _M_insert(const_iterator, _Arg&&, 27002: const _NodeGenerator&, false_type __uks); 27002: 27002: size_type 27002: _M_erase(true_type __uks, const key_type&); 27002: 27002: size_type 27002: _M_erase(false_type __uks, const key_type&); 27002: 27002: iterator 27002: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); 27002: 27002: public: 27002: 27002: template 27002: __ireturn_type 27002: emplace(_Args&&... __args) 27002: { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } 27002: 27002: template 27002: iterator 27002: emplace_hint(const_iterator __hint, _Args&&... __args) 27002: { 27002: return _M_emplace(__hint, __unique_keys{}, 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: 27002: 27002: 27002: iterator 27002: erase(const_iterator); 27002: 27002: 27002: iterator 27002: erase(iterator __it) 27002: { return erase(const_iterator(__it)); } 27002: 27002: size_type 27002: erase(const key_type& __k) 27002: { return _M_erase(__unique_keys{}, __k); } 27002: 27002: iterator 27002: erase(const_iterator, const_iterator); 27002: 27002: void 27002: clear() noexcept; 27002: 27002: 27002: 27002: void rehash(size_type __bkt_count); 27002: 27002: 27002: 27002: 27002: 27002: 27002: insert_return_type 27002: _M_reinsert_node(node_type&& __nh) 27002: { 27002: insert_return_type __ret; 27002: if (__nh.empty()) 27002: __ret.position = end(); 27002: else 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) __builtin_unreachable(); } while (false); 27002: 27002: const key_type& __k = __nh._M_key(); 27002: __hash_code __code = this->_M_hash_code(__k); 27002: size_type __bkt = _M_bucket_index(__code); 27002: if (__node_ptr __n = _M_find_node(__bkt, __k, __code)) 27002: { 27002: __ret.node = std::move(__nh); 27002: __ret.position = iterator(__n); 27002: __ret.inserted = false; 27002: } 27002: else 27002: { 27002: __ret.position 27002: = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); 27002: __nh._M_ptr = nullptr; 27002: __ret.inserted = true; 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: 27002: iterator 27002: _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) 27002: { 27002: if (__nh.empty()) 27002: return end(); 27002: 27002: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) __builtin_unreachable(); } while (false); 27002: 27002: const key_type& __k = __nh._M_key(); 27002: auto __code = this->_M_hash_code(__k); 27002: auto __ret 27002: = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); 27002: __nh._M_ptr = nullptr; 27002: return __ret; 27002: } 27002: 27002: private: 27002: node_type 27002: _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) 27002: { 27002: __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 27002: if (__prev_n == _M_buckets[__bkt]) 27002: _M_remove_bucket_begin(__bkt, __n->_M_next(), 27002: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 27002: else if (__n->_M_nxt) 27002: { 27002: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 27002: if (__next_bkt != __bkt) 27002: _M_buckets[__next_bkt] = __prev_n; 27002: } 27002: 27002: __prev_n->_M_nxt = __n->_M_nxt; 27002: __n->_M_nxt = nullptr; 27002: --_M_element_count; 27002: return { __n, this->_M_node_allocator() }; 27002: } 27002: 27002: public: 27002: 27002: node_type 27002: extract(const_iterator __pos) 27002: { 27002: size_t __bkt = _M_bucket_index(*__pos._M_cur); 27002: return _M_extract_node(__bkt, 27002: _M_get_previous_node(__bkt, __pos._M_cur)); 27002: } 27002: 27002: 27002: node_type 27002: extract(const _Key& __k) 27002: { 27002: node_type __nh; 27002: __hash_code __code = this->_M_hash_code(__k); 27002: std::size_t __bkt = _M_bucket_index(__code); 27002: if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) 27002: __nh = _M_extract_node(__bkt, __prev_node); 27002: return __nh; 27002: } 27002: 27002: 27002: template 27002: void 27002: _M_merge_unique(_Compatible_Hashtable& __src) 27002: { 27002: static_assert(is_same_v, "Node types are compatible"); 27002: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) __builtin_unreachable(); } while (false); 27002: 27002: auto __n_elt = __src.size(); 27002: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 27002: { 27002: auto __pos = __i++; 27002: const key_type& __k = _ExtractKey{}(*__pos); 27002: __hash_code __code 27002: = this->_M_hash_code(__src.hash_function(), *__pos._M_cur); 27002: size_type __bkt = _M_bucket_index(__code); 27002: if (_M_find_node(__bkt, __k, __code) == nullptr) 27002: { 27002: auto __nh = __src.extract(__pos); 27002: _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); 27002: __nh._M_ptr = nullptr; 27002: __n_elt = 1; 27002: } 27002: else if (__n_elt != 1) 27002: --__n_elt; 27002: } 27002: } 27002: 27002: 27002: template 27002: void 27002: _M_merge_multi(_Compatible_Hashtable& __src) 27002: { 27002: static_assert(is_same_v, "Node types are compatible"); 27002: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) __builtin_unreachable(); } while (false); 27002: 27002: __node_ptr __hint = nullptr; 27002: this->reserve(size() + __src.size()); 27002: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 27002: { 27002: auto __pos = __i++; 27002: __hash_code __code 27002: = this->_M_hash_code(__src.hash_function(), *__pos._M_cur); 27002: auto __nh = __src.extract(__pos); 27002: __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; 27002: __nh._M_ptr = nullptr; 27002: } 27002: } 27002: 27002: 27002: private: 27002: 27002: void _M_rehash_aux(size_type __bkt_count, true_type __uks); 27002: 27002: 27002: void _M_rehash_aux(size_type __bkt_count, false_type __uks); 27002: 27002: 27002: 27002: void _M_rehash(size_type __bkt_count, const __rehash_state& __state); 27002: }; 27002: 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_bucket_begin(size_type __bkt) const 27002: -> __node_ptr 27002: { 27002: __node_base_ptr __n = _M_buckets[__bkt]; 27002: return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; 27002: } 27002: 27002: template 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _Hashtable(size_type __bkt_count_hint, 27002: const _Hash& __h, const _Equal& __eq, const allocator_type& __a) 27002: : _Hashtable(__h, __eq, __a) 27002: { 27002: auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); 27002: if (__bkt_count > _M_bucket_count) 27002: { 27002: _M_buckets = _M_allocate_buckets(__bkt_count); 27002: _M_bucket_count = __bkt_count; 27002: } 27002: } 27002: 27002: template 27002: template 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _Hashtable(_InputIterator __f, _InputIterator __l, 27002: size_type __bkt_count_hint, 27002: const _Hash& __h, const _Equal& __eq, 27002: const allocator_type& __a, true_type ) 27002: : _Hashtable(__bkt_count_hint, __h, __eq, __a) 27002: { 27002: for (; __f != __l; ++__f) 27002: this->insert(*__f); 27002: } 27002: 27002: template 27002: template 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _Hashtable(_InputIterator __f, _InputIterator __l, 27002: size_type __bkt_count_hint, 27002: const _Hash& __h, const _Equal& __eq, 27002: const allocator_type& __a, false_type ) 27002: : _Hashtable(__h, __eq, __a) 27002: { 27002: auto __nb_elems = __detail::__distance_fw(__f, __l); 27002: auto __bkt_count = 27002: _M_rehash_policy._M_next_bkt( 27002: std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), 27002: __bkt_count_hint)); 27002: 27002: if (__bkt_count > _M_bucket_count) 27002: { 27002: _M_buckets = _M_allocate_buckets(__bkt_count); 27002: _M_bucket_count = __bkt_count; 27002: } 27002: 27002: for (; __f != __l; ++__f) 27002: this->insert(*__f); 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: operator=(const _Hashtable& __ht) 27002: -> _Hashtable& 27002: { 27002: if (&__ht == this) 27002: return *this; 27002: 27002: if (__node_alloc_traits::_S_propagate_on_copy_assign()) 27002: { 27002: auto& __this_alloc = this->_M_node_allocator(); 27002: auto& __that_alloc = __ht._M_node_allocator(); 27002: if (!__node_alloc_traits::_S_always_equal() 27002: && __this_alloc != __that_alloc) 27002: { 27002: 27002: this->_M_deallocate_nodes(_M_begin()); 27002: _M_before_begin._M_nxt = nullptr; 27002: _M_deallocate_buckets(); 27002: _M_buckets = nullptr; 27002: std::__alloc_on_copy(__this_alloc, __that_alloc); 27002: __hashtable_base::operator=(__ht); 27002: _M_bucket_count = __ht._M_bucket_count; 27002: _M_element_count = __ht._M_element_count; 27002: _M_rehash_policy = __ht._M_rehash_policy; 27002: __alloc_node_gen_t __alloc_node_gen(*this); 27002: try 27002: { 27002: _M_assign(__ht, __alloc_node_gen); 27002: } 27002: catch(...) 27002: { 27002: 27002: 27002: _M_reset(); 27002: throw; 27002: } 27002: return *this; 27002: } 27002: std::__alloc_on_copy(__this_alloc, __that_alloc); 27002: } 27002: 27002: 27002: _M_assign_elements(__ht); 27002: return *this; 27002: } 27002: 27002: template 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_assign_elements(_Ht&& __ht) 27002: { 27002: __buckets_ptr __former_buckets = nullptr; 27002: std::size_t __former_bucket_count = _M_bucket_count; 27002: const __rehash_state& __former_state = _M_rehash_policy._M_state(); 27002: 27002: if (_M_bucket_count != __ht._M_bucket_count) 27002: { 27002: __former_buckets = _M_buckets; 27002: _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); 27002: _M_bucket_count = __ht._M_bucket_count; 27002: } 27002: else 27002: __builtin_memset(_M_buckets, 0, 27002: _M_bucket_count * sizeof(__node_base_ptr)); 27002: 27002: try 27002: { 27002: __hashtable_base::operator=(std::forward<_Ht>(__ht)); 27002: _M_element_count = __ht._M_element_count; 27002: _M_rehash_policy = __ht._M_rehash_policy; 27002: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 27002: _M_before_begin._M_nxt = nullptr; 27002: _M_assign(std::forward<_Ht>(__ht), __roan); 27002: if (__former_buckets) 27002: _M_deallocate_buckets(__former_buckets, __former_bucket_count); 27002: } 27002: catch(...) 27002: { 27002: if (__former_buckets) 27002: { 27002: 27002: _M_deallocate_buckets(); 27002: _M_rehash_policy._M_reset(__former_state); 27002: _M_buckets = __former_buckets; 27002: _M_bucket_count = __former_bucket_count; 27002: } 27002: __builtin_memset(_M_buckets, 0, 27002: _M_bucket_count * sizeof(__node_base_ptr)); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) 27002: { 27002: __buckets_ptr __buckets = nullptr; 27002: if (!_M_buckets) 27002: _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); 27002: 27002: try 27002: { 27002: if (!__ht._M_before_begin._M_nxt) 27002: return; 27002: 27002: 27002: 27002: __node_ptr __ht_n = __ht._M_begin(); 27002: __node_ptr __this_n 27002: = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 27002: this->_M_copy_code(*__this_n, *__ht_n); 27002: _M_update_bbegin(__this_n); 27002: 27002: 27002: __node_ptr __prev_n = __this_n; 27002: for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) 27002: { 27002: __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 27002: __prev_n->_M_nxt = __this_n; 27002: this->_M_copy_code(*__this_n, *__ht_n); 27002: size_type __bkt = _M_bucket_index(*__this_n); 27002: if (!_M_buckets[__bkt]) 27002: _M_buckets[__bkt] = __prev_n; 27002: __prev_n = __this_n; 27002: } 27002: } 27002: catch(...) 27002: { 27002: clear(); 27002: if (__buckets) 27002: _M_deallocate_buckets(); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_reset() noexcept 27002: { 27002: _M_rehash_policy._M_reset(); 27002: _M_bucket_count = 1; 27002: _M_single_bucket = nullptr; 27002: _M_buckets = &_M_single_bucket; 27002: _M_before_begin._M_nxt = nullptr; 27002: _M_element_count = 0; 27002: } 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_move_assign(_Hashtable&& __ht, true_type) 27002: { 27002: if (__builtin_expect(std::__addressof(__ht) == this, false)) 27002: return; 27002: 27002: this->_M_deallocate_nodes(_M_begin()); 27002: _M_deallocate_buckets(); 27002: __hashtable_base::operator=(std::move(__ht)); 27002: _M_rehash_policy = __ht._M_rehash_policy; 27002: if (!__ht._M_uses_single_bucket()) 27002: _M_buckets = __ht._M_buckets; 27002: else 27002: { 27002: _M_buckets = &_M_single_bucket; 27002: _M_single_bucket = __ht._M_single_bucket; 27002: } 27002: 27002: _M_bucket_count = __ht._M_bucket_count; 27002: _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; 27002: _M_element_count = __ht._M_element_count; 27002: std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); 27002: 27002: 27002: _M_update_bbegin(); 27002: __ht._M_reset(); 27002: } 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_move_assign(_Hashtable&& __ht, false_type) 27002: { 27002: if (__ht._M_node_allocator() == this->_M_node_allocator()) 27002: _M_move_assign(std::move(__ht), true_type{}); 27002: else 27002: { 27002: 27002: _M_assign_elements(std::move(__ht)); 27002: __ht.clear(); 27002: } 27002: } 27002: 27002: template 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _Hashtable(const _Hashtable& __ht) 27002: : __hashtable_base(__ht), 27002: __map_base(__ht), 27002: __rehash_base(__ht), 27002: __hashtable_alloc( 27002: __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), 27002: __enable_default_ctor(__ht), 27002: _M_buckets(nullptr), 27002: _M_bucket_count(__ht._M_bucket_count), 27002: _M_element_count(__ht._M_element_count), 27002: _M_rehash_policy(__ht._M_rehash_policy) 27002: { 27002: __alloc_node_gen_t __alloc_node_gen(*this); 27002: _M_assign(__ht, __alloc_node_gen); 27002: } 27002: 27002: template 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 27002: true_type ) 27002: noexcept(_S_nothrow_move()) 27002: : __hashtable_base(__ht), 27002: __map_base(__ht), 27002: __rehash_base(__ht), 27002: __hashtable_alloc(std::move(__a)), 27002: __enable_default_ctor(__ht), 27002: _M_buckets(__ht._M_buckets), 27002: _M_bucket_count(__ht._M_bucket_count), 27002: _M_before_begin(__ht._M_before_begin._M_nxt), 27002: _M_element_count(__ht._M_element_count), 27002: _M_rehash_policy(__ht._M_rehash_policy) 27002: { 27002: 27002: if (__ht._M_uses_single_bucket()) 27002: { 27002: _M_buckets = &_M_single_bucket; 27002: _M_single_bucket = __ht._M_single_bucket; 27002: } 27002: 27002: 27002: _M_update_bbegin(); 27002: 27002: __ht._M_reset(); 27002: } 27002: 27002: template 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) 27002: : __hashtable_base(__ht), 27002: __map_base(__ht), 27002: __rehash_base(__ht), 27002: __hashtable_alloc(__node_alloc_type(__a)), 27002: __enable_default_ctor(__ht), 27002: _M_buckets(), 27002: _M_bucket_count(__ht._M_bucket_count), 27002: _M_element_count(__ht._M_element_count), 27002: _M_rehash_policy(__ht._M_rehash_policy) 27002: { 27002: __alloc_node_gen_t __alloc_node_gen(*this); 27002: _M_assign(__ht, __alloc_node_gen); 27002: } 27002: 27002: template 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 27002: false_type ) 27002: : __hashtable_base(__ht), 27002: __map_base(__ht), 27002: __rehash_base(__ht), 27002: __hashtable_alloc(std::move(__a)), 27002: __enable_default_ctor(__ht), 27002: _M_buckets(nullptr), 27002: _M_bucket_count(__ht._M_bucket_count), 27002: _M_element_count(__ht._M_element_count), 27002: _M_rehash_policy(__ht._M_rehash_policy) 27002: { 27002: if (__ht._M_node_allocator() == this->_M_node_allocator()) 27002: { 27002: if (__ht._M_uses_single_bucket()) 27002: { 27002: _M_buckets = &_M_single_bucket; 27002: _M_single_bucket = __ht._M_single_bucket; 27002: } 27002: else 27002: _M_buckets = __ht._M_buckets; 27002: 27002: 27002: 27002: _M_update_bbegin(__ht._M_begin()); 27002: 27002: __ht._M_reset(); 27002: } 27002: else 27002: { 27002: __alloc_node_gen_t __alloc_gen(*this); 27002: 27002: using _Fwd_Ht = __conditional_t< 27002: __move_if_noexcept_cond::value, 27002: const _Hashtable&, _Hashtable&&>; 27002: _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); 27002: __ht.clear(); 27002: } 27002: } 27002: 27002: template 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: ~_Hashtable() noexcept 27002: { 27002: 27002: 27002: 27002: static_assert(noexcept(declval() 27002: ._M_bucket_index(declval(), 27002: (std::size_t)0)), 27002: "Cache the hash code or qualify your functors involved" 27002: " in hash code and bucket index computation with noexcept"); 27002: 27002: clear(); 27002: _M_deallocate_buckets(); 27002: } 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: swap(_Hashtable& __x) 27002: noexcept(__and_<__is_nothrow_swappable<_Hash>, 27002: __is_nothrow_swappable<_Equal>>::value) 27002: { 27002: 27002: 27002: 27002: this->_M_swap(__x); 27002: 27002: std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); 27002: std::swap(_M_rehash_policy, __x._M_rehash_policy); 27002: 27002: 27002: if (this->_M_uses_single_bucket()) 27002: { 27002: if (!__x._M_uses_single_bucket()) 27002: { 27002: _M_buckets = __x._M_buckets; 27002: __x._M_buckets = &__x._M_single_bucket; 27002: } 27002: } 27002: else if (__x._M_uses_single_bucket()) 27002: { 27002: __x._M_buckets = _M_buckets; 27002: _M_buckets = &_M_single_bucket; 27002: } 27002: else 27002: std::swap(_M_buckets, __x._M_buckets); 27002: 27002: std::swap(_M_bucket_count, __x._M_bucket_count); 27002: std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); 27002: std::swap(_M_element_count, __x._M_element_count); 27002: std::swap(_M_single_bucket, __x._M_single_bucket); 27002: 27002: 27002: 27002: _M_update_bbegin(); 27002: __x._M_update_bbegin(); 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: find(const key_type& __k) 27002: -> iterator 27002: { 27002: if (size() <= __small_size_threshold()) 27002: { 27002: for (auto __it = begin(); __it != end(); ++__it) 27002: if (this->_M_key_equals(__k, *__it._M_cur)) 27002: return __it; 27002: return end(); 27002: } 27002: 27002: __hash_code __code = this->_M_hash_code(__k); 27002: std::size_t __bkt = _M_bucket_index(__code); 27002: return iterator(_M_find_node(__bkt, __k, __code)); 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: find(const key_type& __k) const 27002: -> const_iterator 27002: { 27002: if (size() <= __small_size_threshold()) 27002: { 27002: for (auto __it = begin(); __it != end(); ++__it) 27002: if (this->_M_key_equals(__k, *__it._M_cur)) 27002: return __it; 27002: return end(); 27002: } 27002: 27002: __hash_code __code = this->_M_hash_code(__k); 27002: std::size_t __bkt = _M_bucket_index(__code); 27002: return const_iterator(_M_find_node(__bkt, __k, __code)); 27002: } 27002: # 1715 "/usr/include/c++/12/bits/hashtable.h" 3 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: count(const key_type& __k) const 27002: -> size_type 27002: { 27002: auto __it = find(__k); 27002: if (!__it._M_cur) 27002: return 0; 27002: 27002: if (__unique_keys::value) 27002: return 1; 27002: 27002: 27002: 27002: 27002: size_type __result = 1; 27002: for (auto __ref = __it++; 27002: __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); 27002: ++__it) 27002: ++__result; 27002: 27002: return __result; 27002: } 27002: # 1776 "/usr/include/c++/12/bits/hashtable.h" 3 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: equal_range(const key_type& __k) 27002: -> pair 27002: { 27002: auto __ite = find(__k); 27002: if (!__ite._M_cur) 27002: return { __ite, __ite }; 27002: 27002: auto __beg = __ite++; 27002: if (__unique_keys::value) 27002: return { __beg, __ite }; 27002: 27002: 27002: 27002: 27002: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 27002: ++__ite; 27002: 27002: return { __beg, __ite }; 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: equal_range(const key_type& __k) const 27002: -> pair 27002: { 27002: auto __ite = find(__k); 27002: if (!__ite._M_cur) 27002: return { __ite, __ite }; 27002: 27002: auto __beg = __ite++; 27002: if (__unique_keys::value) 27002: return { __beg, __ite }; 27002: 27002: 27002: 27002: 27002: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 27002: ++__ite; 27002: 27002: return { __beg, __ite }; 27002: } 27002: # 1890 "/usr/include/c++/12/bits/hashtable.h" 3 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_find_before_node(const key_type& __k) 27002: -> __node_base_ptr 27002: { 27002: __node_base_ptr __prev_p = &_M_before_begin; 27002: if (!__prev_p->_M_nxt) 27002: return nullptr; 27002: 27002: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); 27002: __p != nullptr; 27002: __p = __p->_M_next()) 27002: { 27002: if (this->_M_key_equals(__k, *__p)) 27002: return __prev_p; 27002: 27002: __prev_p = __p; 27002: } 27002: 27002: return nullptr; 27002: } 27002: 27002: 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_find_before_node(size_type __bkt, const key_type& __k, 27002: __hash_code __code) const 27002: -> __node_base_ptr 27002: { 27002: __node_base_ptr __prev_p = _M_buckets[__bkt]; 27002: if (!__prev_p) 27002: return nullptr; 27002: 27002: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 27002: __p = __p->_M_next()) 27002: { 27002: if (this->_M_equals(__k, __code, *__p)) 27002: return __prev_p; 27002: 27002: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 27002: break; 27002: __prev_p = __p; 27002: } 27002: 27002: return nullptr; 27002: } 27002: 27002: template 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, 27002: __hash_code __code) const 27002: -> __node_base_ptr 27002: { 27002: __node_base_ptr __prev_p = _M_buckets[__bkt]; 27002: if (!__prev_p) 27002: return nullptr; 27002: 27002: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 27002: __p = __p->_M_next()) 27002: { 27002: if (this->_M_equals_tr(__k, __code, *__p)) 27002: return __prev_p; 27002: 27002: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 27002: break; 27002: __prev_p = __p; 27002: } 27002: 27002: return nullptr; 27002: } 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) 27002: { 27002: if (_M_buckets[__bkt]) 27002: { 27002: 27002: 27002: __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; 27002: _M_buckets[__bkt]->_M_nxt = __node; 27002: } 27002: else 27002: { 27002: 27002: 27002: 27002: __node->_M_nxt = _M_before_begin._M_nxt; 27002: _M_before_begin._M_nxt = __node; 27002: 27002: if (__node->_M_nxt) 27002: 27002: 27002: _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; 27002: 27002: _M_buckets[__bkt] = &_M_before_begin; 27002: } 27002: } 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next, 27002: size_type __next_bkt) 27002: { 27002: if (!__next || __next_bkt != __bkt) 27002: { 27002: 27002: 27002: if (__next) 27002: _M_buckets[__next_bkt] = _M_buckets[__bkt]; 27002: 27002: 27002: if (&_M_before_begin == _M_buckets[__bkt]) 27002: _M_before_begin._M_nxt = __next; 27002: _M_buckets[__bkt] = nullptr; 27002: } 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_get_previous_node(size_type __bkt, __node_ptr __n) 27002: -> __node_base_ptr 27002: { 27002: __node_base_ptr __prev_n = _M_buckets[__bkt]; 27002: while (__prev_n->_M_nxt != __n) 27002: __prev_n = __prev_n->_M_nxt; 27002: return __prev_n; 27002: } 27002: 27002: template 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_emplace(true_type , _Args&&... __args) 27002: -> pair 27002: { 27002: 27002: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 27002: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 27002: if (size() <= __small_size_threshold()) 27002: { 27002: for (auto __it = begin(); __it != end(); ++__it) 27002: if (this->_M_key_equals(__k, *__it._M_cur)) 27002: 27002: return { __it, false }; 27002: } 27002: 27002: __hash_code __code = this->_M_hash_code(__k); 27002: size_type __bkt = _M_bucket_index(__code); 27002: if (size() > __small_size_threshold()) 27002: if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) 27002: 27002: return { iterator(__p), false }; 27002: 27002: 27002: auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); 27002: __node._M_node = nullptr; 27002: return { __pos, true }; 27002: } 27002: 27002: template 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_emplace(const_iterator __hint, false_type , 27002: _Args&&... __args) 27002: -> iterator 27002: { 27002: 27002: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 27002: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 27002: 27002: auto __res = this->_M_compute_hash_code(__hint, __k); 27002: auto __pos 27002: = _M_insert_multi_node(__res.first._M_cur, __res.second, 27002: __node._M_node); 27002: __node._M_node = nullptr; 27002: return __pos; 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_compute_hash_code(const_iterator __hint, const key_type& __k) const 27002: -> pair 27002: { 27002: if (size() <= __small_size_threshold()) 27002: { 27002: if (__hint != cend()) 27002: { 27002: for (auto __it = __hint; __it != cend(); ++__it) 27002: if (this->_M_key_equals(__k, *__it._M_cur)) 27002: return { __it, this->_M_hash_code(*__it._M_cur) }; 27002: } 27002: 27002: for (auto __it = cbegin(); __it != __hint; ++__it) 27002: if (this->_M_key_equals(__k, *__it._M_cur)) 27002: return { __it, this->_M_hash_code(*__it._M_cur) }; 27002: } 27002: 27002: return { __hint, this->_M_hash_code(__k) }; 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_insert_unique_node(size_type __bkt, __hash_code __code, 27002: __node_ptr __node, size_type __n_elt) 27002: -> iterator 27002: { 27002: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 27002: std::pair __do_rehash 27002: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 27002: __n_elt); 27002: 27002: if (__do_rehash.first) 27002: { 27002: _M_rehash(__do_rehash.second, __saved_state); 27002: __bkt = _M_bucket_index(__code); 27002: } 27002: 27002: this->_M_store_code(*__node, __code); 27002: 27002: 27002: _M_insert_bucket_begin(__bkt, __node); 27002: ++_M_element_count; 27002: return iterator(__node); 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_insert_multi_node(__node_ptr __hint, 27002: __hash_code __code, __node_ptr __node) 27002: -> iterator 27002: { 27002: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 27002: std::pair __do_rehash 27002: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); 27002: 27002: if (__do_rehash.first) 27002: _M_rehash(__do_rehash.second, __saved_state); 27002: 27002: this->_M_store_code(*__node, __code); 27002: const key_type& __k = _ExtractKey{}(__node->_M_v()); 27002: size_type __bkt = _M_bucket_index(__code); 27002: 27002: 27002: 27002: __node_base_ptr __prev 27002: = __builtin_expect(__hint != nullptr, false) 27002: && this->_M_equals(__k, __code, *__hint) 27002: ? __hint 27002: : _M_find_before_node(__bkt, __k, __code); 27002: 27002: if (__prev) 27002: { 27002: 27002: __node->_M_nxt = __prev->_M_nxt; 27002: __prev->_M_nxt = __node; 27002: if (__builtin_expect(__prev == __hint, false)) 27002: 27002: 27002: if (__node->_M_nxt 27002: && !this->_M_equals(__k, __code, *__node->_M_next())) 27002: { 27002: size_type __next_bkt = _M_bucket_index(*__node->_M_next()); 27002: if (__next_bkt != __bkt) 27002: _M_buckets[__next_bkt] = __node; 27002: } 27002: } 27002: else 27002: 27002: 27002: 27002: _M_insert_bucket_begin(__bkt, __node); 27002: ++_M_element_count; 27002: return iterator(__node); 27002: } 27002: 27002: 27002: template 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_insert_unique(_Kt&& __k, _Arg&& __v, 27002: const _NodeGenerator& __node_gen) 27002: -> pair 27002: { 27002: if (size() <= __small_size_threshold()) 27002: for (auto __it = begin(); __it != end(); ++__it) 27002: if (this->_M_key_equals_tr(__k, *__it._M_cur)) 27002: return { __it, false }; 27002: 27002: __hash_code __code = this->_M_hash_code_tr(__k); 27002: size_type __bkt = _M_bucket_index(__code); 27002: 27002: if (size() > __small_size_threshold()) 27002: if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) 27002: return { iterator(__node), false }; 27002: 27002: _Scoped_node __node { 27002: __node_builder_t::_S_build(std::forward<_Kt>(__k), 27002: std::forward<_Arg>(__v), 27002: __node_gen), 27002: this 27002: }; 27002: auto __pos 27002: = _M_insert_unique_node(__bkt, __code, __node._M_node); 27002: __node._M_node = nullptr; 27002: return { __pos, true }; 27002: } 27002: 27002: 27002: template 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_insert(const_iterator __hint, _Arg&& __v, 27002: const _NodeGenerator& __node_gen, 27002: false_type ) 27002: -> iterator 27002: { 27002: 27002: _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; 27002: 27002: 27002: auto __res = this->_M_compute_hash_code( 27002: __hint, _ExtractKey{}(__node._M_node->_M_v())); 27002: 27002: auto __pos 27002: = _M_insert_multi_node(__res.first._M_cur, __res.second, 27002: __node._M_node); 27002: __node._M_node = nullptr; 27002: return __pos; 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: erase(const_iterator __it) 27002: -> iterator 27002: { 27002: __node_ptr __n = __it._M_cur; 27002: std::size_t __bkt = _M_bucket_index(*__n); 27002: 27002: 27002: 27002: 27002: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 27002: return _M_erase(__bkt, __prev_n, __n); 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) 27002: -> iterator 27002: { 27002: if (__prev_n == _M_buckets[__bkt]) 27002: _M_remove_bucket_begin(__bkt, __n->_M_next(), 27002: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 27002: else if (__n->_M_nxt) 27002: { 27002: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 27002: if (__next_bkt != __bkt) 27002: _M_buckets[__next_bkt] = __prev_n; 27002: } 27002: 27002: __prev_n->_M_nxt = __n->_M_nxt; 27002: iterator __result(__n->_M_next()); 27002: this->_M_deallocate_node(__n); 27002: --_M_element_count; 27002: 27002: return __result; 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_erase(true_type , const key_type& __k) 27002: -> size_type 27002: { 27002: __node_base_ptr __prev_n; 27002: __node_ptr __n; 27002: std::size_t __bkt; 27002: if (size() <= __small_size_threshold()) 27002: { 27002: __prev_n = _M_find_before_node(__k); 27002: if (!__prev_n) 27002: return 0; 27002: 27002: 27002: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 27002: __bkt = _M_bucket_index(*__n); 27002: } 27002: else 27002: { 27002: __hash_code __code = this->_M_hash_code(__k); 27002: __bkt = _M_bucket_index(__code); 27002: 27002: 27002: __prev_n = _M_find_before_node(__bkt, __k, __code); 27002: if (!__prev_n) 27002: return 0; 27002: 27002: 27002: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 27002: } 27002: 27002: _M_erase(__bkt, __prev_n, __n); 27002: return 1; 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_erase(false_type , const key_type& __k) 27002: -> size_type 27002: { 27002: std::size_t __bkt; 27002: __node_base_ptr __prev_n; 27002: __node_ptr __n; 27002: if (size() <= __small_size_threshold()) 27002: { 27002: __prev_n = _M_find_before_node(__k); 27002: if (!__prev_n) 27002: return 0; 27002: 27002: 27002: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 27002: __bkt = _M_bucket_index(*__n); 27002: } 27002: else 27002: { 27002: __hash_code __code = this->_M_hash_code(__k); 27002: __bkt = _M_bucket_index(__code); 27002: 27002: 27002: __prev_n = _M_find_before_node(__bkt, __k, __code); 27002: if (!__prev_n) 27002: return 0; 27002: 27002: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __node_ptr __n_last = __n->_M_next(); 27002: while (__n_last && this->_M_node_equals(*__n, *__n_last)) 27002: __n_last = __n_last->_M_next(); 27002: 27002: std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; 27002: 27002: 27002: size_type __result = 0; 27002: do 27002: { 27002: __node_ptr __p = __n->_M_next(); 27002: this->_M_deallocate_node(__n); 27002: __n = __p; 27002: ++__result; 27002: } 27002: while (__n != __n_last); 27002: 27002: _M_element_count -= __result; 27002: if (__prev_n == _M_buckets[__bkt]) 27002: _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); 27002: else if (__n_last_bkt != __bkt) 27002: _M_buckets[__n_last_bkt] = __prev_n; 27002: __prev_n->_M_nxt = __n_last; 27002: return __result; 27002: } 27002: 27002: template 27002: auto 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: erase(const_iterator __first, const_iterator __last) 27002: -> iterator 27002: { 27002: __node_ptr __n = __first._M_cur; 27002: __node_ptr __last_n = __last._M_cur; 27002: if (__n == __last_n) 27002: return iterator(__n); 27002: 27002: std::size_t __bkt = _M_bucket_index(*__n); 27002: 27002: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 27002: bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); 27002: std::size_t __n_bkt = __bkt; 27002: for (;;) 27002: { 27002: do 27002: { 27002: __node_ptr __tmp = __n; 27002: __n = __n->_M_next(); 27002: this->_M_deallocate_node(__tmp); 27002: --_M_element_count; 27002: if (!__n) 27002: break; 27002: __n_bkt = _M_bucket_index(*__n); 27002: } 27002: while (__n != __last_n && __n_bkt == __bkt); 27002: if (__is_bucket_begin) 27002: _M_remove_bucket_begin(__bkt, __n, __n_bkt); 27002: if (__n == __last_n) 27002: break; 27002: __is_bucket_begin = true; 27002: __bkt = __n_bkt; 27002: } 27002: 27002: if (__n && (__n_bkt != __bkt || __is_bucket_begin)) 27002: _M_buckets[__n_bkt] = __prev_n; 27002: __prev_n->_M_nxt = __n; 27002: return iterator(__n); 27002: } 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: clear() noexcept 27002: { 27002: this->_M_deallocate_nodes(_M_begin()); 27002: __builtin_memset(_M_buckets, 0, 27002: _M_bucket_count * sizeof(__node_base_ptr)); 27002: _M_element_count = 0; 27002: _M_before_begin._M_nxt = nullptr; 27002: } 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: rehash(size_type __bkt_count) 27002: { 27002: const __rehash_state& __saved_state = _M_rehash_policy._M_state(); 27002: __bkt_count 27002: = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), 27002: __bkt_count); 27002: __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); 27002: 27002: if (__bkt_count != _M_bucket_count) 27002: _M_rehash(__bkt_count, __saved_state); 27002: else 27002: 27002: 27002: _M_rehash_policy._M_reset(__saved_state); 27002: } 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_rehash(size_type __bkt_count, const __rehash_state& __state) 27002: { 27002: try 27002: { 27002: _M_rehash_aux(__bkt_count, __unique_keys{}); 27002: } 27002: catch(...) 27002: { 27002: 27002: 27002: _M_rehash_policy._M_reset(__state); 27002: throw; 27002: } 27002: } 27002: 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_rehash_aux(size_type __bkt_count, true_type ) 27002: { 27002: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 27002: __node_ptr __p = _M_begin(); 27002: _M_before_begin._M_nxt = nullptr; 27002: std::size_t __bbegin_bkt = 0; 27002: while (__p) 27002: { 27002: __node_ptr __next = __p->_M_next(); 27002: std::size_t __bkt 27002: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 27002: if (!__new_buckets[__bkt]) 27002: { 27002: __p->_M_nxt = _M_before_begin._M_nxt; 27002: _M_before_begin._M_nxt = __p; 27002: __new_buckets[__bkt] = &_M_before_begin; 27002: if (__p->_M_nxt) 27002: __new_buckets[__bbegin_bkt] = __p; 27002: __bbegin_bkt = __bkt; 27002: } 27002: else 27002: { 27002: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 27002: __new_buckets[__bkt]->_M_nxt = __p; 27002: } 27002: 27002: __p = __next; 27002: } 27002: 27002: _M_deallocate_buckets(); 27002: _M_bucket_count = __bkt_count; 27002: _M_buckets = __new_buckets; 27002: } 27002: 27002: 27002: 27002: template 27002: void 27002: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 27002: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 27002: _M_rehash_aux(size_type __bkt_count, false_type ) 27002: { 27002: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 27002: __node_ptr __p = _M_begin(); 27002: _M_before_begin._M_nxt = nullptr; 27002: std::size_t __bbegin_bkt = 0; 27002: std::size_t __prev_bkt = 0; 27002: __node_ptr __prev_p = nullptr; 27002: bool __check_bucket = false; 27002: 27002: while (__p) 27002: { 27002: __node_ptr __next = __p->_M_next(); 27002: std::size_t __bkt 27002: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 27002: 27002: if (__prev_p && __prev_bkt == __bkt) 27002: { 27002: 27002: 27002: 27002: __p->_M_nxt = __prev_p->_M_nxt; 27002: __prev_p->_M_nxt = __p; 27002: 27002: 27002: 27002: 27002: 27002: 27002: __check_bucket = true; 27002: } 27002: else 27002: { 27002: if (__check_bucket) 27002: { 27002: 27002: 27002: if (__prev_p->_M_nxt) 27002: { 27002: std::size_t __next_bkt 27002: = __hash_code_base::_M_bucket_index( 27002: *__prev_p->_M_next(), __bkt_count); 27002: if (__next_bkt != __prev_bkt) 27002: __new_buckets[__next_bkt] = __prev_p; 27002: } 27002: __check_bucket = false; 27002: } 27002: 27002: if (!__new_buckets[__bkt]) 27002: { 27002: __p->_M_nxt = _M_before_begin._M_nxt; 27002: _M_before_begin._M_nxt = __p; 27002: __new_buckets[__bkt] = &_M_before_begin; 27002: if (__p->_M_nxt) 27002: __new_buckets[__bbegin_bkt] = __p; 27002: __bbegin_bkt = __bkt; 27002: } 27002: else 27002: { 27002: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 27002: __new_buckets[__bkt]->_M_nxt = __p; 27002: } 27002: } 27002: __prev_p = __p; 27002: __prev_bkt = __bkt; 27002: __p = __next; 27002: } 27002: 27002: if (__check_bucket && __prev_p->_M_nxt) 27002: { 27002: std::size_t __next_bkt 27002: = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), 27002: __bkt_count); 27002: if (__next_bkt != __prev_bkt) 27002: __new_buckets[__next_bkt] = __prev_p; 27002: } 27002: 27002: _M_deallocate_buckets(); 27002: _M_bucket_count = __bkt_count; 27002: _M_buckets = __new_buckets; 27002: } 27002: 27002: 27002: template class _Hash_merge_helper { }; 27002: 27002: 27002: 27002: 27002: template 27002: using _RequireNotAllocatorOrIntegral 27002: = __enable_if_t, __is_allocator<_Hash>>::value>; 27002: 27002: 27002: 27002: 27002: } 27002: # 47 "/usr/include/c++/12/unordered_map" 2 3 27002: # 1 "/usr/include/c++/12/bits/unordered_map.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: template 27002: using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; 27002: 27002: template, 27002: typename _Pred = std::equal_to<_Key>, 27002: typename _Alloc = std::allocator >, 27002: typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> 27002: using __umap_hashtable = _Hashtable<_Key, std::pair, 27002: _Alloc, __detail::_Select1st, 27002: _Pred, _Hash, 27002: __detail::_Mod_range_hashing, 27002: __detail::_Default_ranged_hash, 27002: __detail::_Prime_rehash_policy, _Tr>; 27002: 27002: 27002: template 27002: using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; 27002: 27002: template, 27002: typename _Pred = std::equal_to<_Key>, 27002: typename _Alloc = std::allocator >, 27002: typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> 27002: using __ummap_hashtable = _Hashtable<_Key, std::pair, 27002: _Alloc, __detail::_Select1st, 27002: _Pred, _Hash, 27002: __detail::_Mod_range_hashing, 27002: __detail::_Default_ranged_hash, 27002: __detail::_Prime_rehash_policy, _Tr>; 27002: 27002: template 27002: class unordered_multimap; 27002: # 98 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template, 27002: typename _Pred = equal_to<_Key>, 27002: typename _Alloc = allocator>> 27002: class unordered_map 27002: { 27002: typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 27002: _Hashtable _M_h; 27002: 27002: public: 27002: 27002: 27002: 27002: typedef typename _Hashtable::key_type key_type; 27002: typedef typename _Hashtable::value_type value_type; 27002: typedef typename _Hashtable::mapped_type mapped_type; 27002: typedef typename _Hashtable::hasher hasher; 27002: typedef typename _Hashtable::key_equal key_equal; 27002: typedef typename _Hashtable::allocator_type allocator_type; 27002: 27002: 27002: 27002: 27002: typedef typename _Hashtable::pointer pointer; 27002: typedef typename _Hashtable::const_pointer const_pointer; 27002: typedef typename _Hashtable::reference reference; 27002: typedef typename _Hashtable::const_reference const_reference; 27002: typedef typename _Hashtable::iterator iterator; 27002: typedef typename _Hashtable::const_iterator const_iterator; 27002: typedef typename _Hashtable::local_iterator local_iterator; 27002: typedef typename _Hashtable::const_local_iterator const_local_iterator; 27002: typedef typename _Hashtable::size_type size_type; 27002: typedef typename _Hashtable::difference_type difference_type; 27002: 27002: 27002: 27002: using node_type = typename _Hashtable::node_type; 27002: using insert_return_type = typename _Hashtable::insert_return_type; 27002: 27002: 27002: 27002: 27002: 27002: unordered_map() = default; 27002: # 150 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: explicit 27002: unordered_map(size_type __n, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__n, __hf, __eql, __a) 27002: { } 27002: # 171 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: unordered_map(_InputIterator __first, _InputIterator __last, 27002: size_type __n = 0, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__first, __last, __n, __hf, __eql, __a) 27002: { } 27002: 27002: 27002: unordered_map(const unordered_map&) = default; 27002: 27002: 27002: unordered_map(unordered_map&&) = default; 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: unordered_map(const allocator_type& __a) 27002: : _M_h(__a) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: unordered_map(const unordered_map& __umap, 27002: const allocator_type& __a) 27002: : _M_h(__umap._M_h, __a) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: unordered_map(unordered_map&& __umap, 27002: const allocator_type& __a) 27002: noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) 27002: : _M_h(std::move(__umap._M_h), __a) 27002: { } 27002: # 227 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: unordered_map(initializer_list __l, 27002: size_type __n = 0, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__l, __n, __hf, __eql, __a) 27002: { } 27002: 27002: unordered_map(size_type __n, const allocator_type& __a) 27002: : unordered_map(__n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: unordered_map(size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_map(__n, __hf, key_equal(), __a) 27002: { } 27002: 27002: template 27002: unordered_map(_InputIterator __first, _InputIterator __last, 27002: size_type __n, 27002: const allocator_type& __a) 27002: : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: template 27002: unordered_map(_InputIterator __first, _InputIterator __last, 27002: size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_map(__first, __last, __n, __hf, key_equal(), __a) 27002: { } 27002: 27002: unordered_map(initializer_list __l, 27002: size_type __n, 27002: const allocator_type& __a) 27002: : unordered_map(__l, __n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: unordered_map(initializer_list __l, 27002: size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_map(__l, __n, __hf, key_equal(), __a) 27002: { } 27002: 27002: 27002: unordered_map& 27002: operator=(const unordered_map&) = default; 27002: 27002: 27002: unordered_map& 27002: operator=(unordered_map&&) = default; 27002: # 289 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: unordered_map& 27002: operator=(initializer_list __l) 27002: { 27002: _M_h = __l; 27002: return *this; 27002: } 27002: 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return _M_h.get_allocator(); } 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return _M_h.empty(); } 27002: 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_h.size(); } 27002: 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return _M_h.max_size(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: begin() noexcept 27002: { return _M_h.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: begin() const noexcept 27002: { return _M_h.begin(); } 27002: 27002: const_iterator 27002: cbegin() const noexcept 27002: { return _M_h.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: end() noexcept 27002: { return _M_h.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: end() const noexcept 27002: { return _M_h.end(); } 27002: 27002: const_iterator 27002: cend() const noexcept 27002: { return _M_h.end(); } 27002: # 386 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: std::pair 27002: emplace(_Args&&... __args) 27002: { return _M_h.emplace(std::forward<_Args>(__args)...); } 27002: # 417 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: iterator 27002: emplace_hint(const_iterator __pos, _Args&&... __args) 27002: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 27002: 27002: 27002: 27002: node_type 27002: extract(const_iterator __pos) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 27002: return _M_h.extract(__pos); 27002: } 27002: 27002: 27002: node_type 27002: extract(const key_type& __key) 27002: { return _M_h.extract(__key); } 27002: 27002: 27002: insert_return_type 27002: insert(node_type&& __nh) 27002: { return _M_h._M_reinsert_node(std::move(__nh)); } 27002: 27002: 27002: iterator 27002: insert(const_iterator, node_type&& __nh) 27002: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 27002: # 469 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: pair 27002: try_emplace(const key_type& __k, _Args&&... __args) 27002: { 27002: return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); 27002: } 27002: 27002: 27002: template 27002: pair 27002: try_emplace(key_type&& __k, _Args&&... __args) 27002: { 27002: return _M_h.try_emplace(cend(), std::move(__k), 27002: std::forward<_Args>(__args)...); 27002: } 27002: # 513 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: iterator 27002: try_emplace(const_iterator __hint, const key_type& __k, 27002: _Args&&... __args) 27002: { 27002: return _M_h.try_emplace(__hint, __k, 27002: std::forward<_Args>(__args)...).first; 27002: } 27002: 27002: 27002: template 27002: iterator 27002: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 27002: { 27002: return _M_h.try_emplace(__hint, std::move(__k), 27002: std::forward<_Args>(__args)...).first; 27002: } 27002: # 550 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: std::pair 27002: insert(const value_type& __x) 27002: { return _M_h.insert(__x); } 27002: 27002: 27002: 27002: std::pair 27002: insert(value_type&& __x) 27002: { return _M_h.insert(std::move(__x)); } 27002: 27002: template 27002: __enable_if_t::value, 27002: pair> 27002: insert(_Pair&& __x) 27002: { return _M_h.emplace(std::forward<_Pair>(__x)); } 27002: # 589 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: iterator 27002: insert(const_iterator __hint, const value_type& __x) 27002: { return _M_h.insert(__hint, __x); } 27002: 27002: 27002: 27002: iterator 27002: insert(const_iterator __hint, value_type&& __x) 27002: { return _M_h.insert(__hint, std::move(__x)); } 27002: 27002: template 27002: __enable_if_t::value, iterator> 27002: insert(const_iterator __hint, _Pair&& __x) 27002: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 27002: # 614 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: void 27002: insert(_InputIterator __first, _InputIterator __last) 27002: { _M_h.insert(__first, __last); } 27002: # 626 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: void 27002: insert(initializer_list __l) 27002: { _M_h.insert(__l); } 27002: # 652 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: pair 27002: insert_or_assign(const key_type& __k, _Obj&& __obj) 27002: { 27002: auto __ret = _M_h.try_emplace(cend(), __k, 27002: std::forward<_Obj>(__obj)); 27002: if (!__ret.second) 27002: __ret.first->second = std::forward<_Obj>(__obj); 27002: return __ret; 27002: } 27002: 27002: 27002: template 27002: pair 27002: insert_or_assign(key_type&& __k, _Obj&& __obj) 27002: { 27002: auto __ret = _M_h.try_emplace(cend(), std::move(__k), 27002: std::forward<_Obj>(__obj)); 27002: if (!__ret.second) 27002: __ret.first->second = std::forward<_Obj>(__obj); 27002: return __ret; 27002: } 27002: # 701 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: iterator 27002: insert_or_assign(const_iterator __hint, const key_type& __k, 27002: _Obj&& __obj) 27002: { 27002: auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); 27002: if (!__ret.second) 27002: __ret.first->second = std::forward<_Obj>(__obj); 27002: return __ret.first; 27002: } 27002: 27002: 27002: template 27002: iterator 27002: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 27002: { 27002: auto __ret = _M_h.try_emplace(__hint, std::move(__k), 27002: std::forward<_Obj>(__obj)); 27002: if (!__ret.second) 27002: __ret.first->second = std::forward<_Obj>(__obj); 27002: return __ret.first; 27002: } 27002: # 739 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: iterator 27002: erase(const_iterator __position) 27002: { return _M_h.erase(__position); } 27002: 27002: 27002: iterator 27002: erase(iterator __position) 27002: { return _M_h.erase(__position); } 27002: # 761 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: size_type 27002: erase(const key_type& __x) 27002: { return _M_h.erase(__x); } 27002: # 779 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: iterator 27002: erase(const_iterator __first, const_iterator __last) 27002: { return _M_h.erase(__first, __last); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: clear() noexcept 27002: { _M_h.clear(); } 27002: # 803 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: void 27002: swap(unordered_map& __x) 27002: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 27002: { _M_h.swap(__x._M_h); } 27002: 27002: 27002: template 27002: friend class std::_Hash_merge_helper; 27002: 27002: template 27002: void 27002: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Hash_merge_helper; 27002: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: template 27002: void 27002: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Hash_merge_helper; 27002: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: hasher 27002: hash_function() const 27002: { return _M_h.hash_function(); } 27002: 27002: 27002: 27002: key_equal 27002: key_eq() const 27002: { return _M_h.key_eq(); } 27002: # 867 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: iterator 27002: find(const key_type& __x) 27002: { return _M_h.find(__x); } 27002: # 878 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: const_iterator 27002: find(const key_type& __x) const 27002: { return _M_h.find(__x); } 27002: # 900 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: size_type 27002: count(const key_type& __x) const 27002: { return _M_h.count(__x); } 27002: # 940 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) 27002: { return _M_h.equal_range(__x); } 27002: # 952 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) const 27002: { return _M_h.equal_range(__x); } 27002: # 978 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: mapped_type& 27002: operator[](const key_type& __k) 27002: { return _M_h[__k]; } 27002: 27002: mapped_type& 27002: operator[](key_type&& __k) 27002: { return _M_h[std::move(__k)]; } 27002: # 995 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: mapped_type& 27002: at(const key_type& __k) 27002: { return _M_h.at(__k); } 27002: 27002: const mapped_type& 27002: at(const key_type& __k) const 27002: { return _M_h.at(__k); } 27002: 27002: 27002: 27002: 27002: 27002: size_type 27002: bucket_count() const noexcept 27002: { return _M_h.bucket_count(); } 27002: 27002: 27002: size_type 27002: max_bucket_count() const noexcept 27002: { return _M_h.max_bucket_count(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_type 27002: bucket_size(size_type __n) const 27002: { return _M_h.bucket_size(__n); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_type 27002: bucket(const key_type& __key) const 27002: { return _M_h.bucket(__key); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: local_iterator 27002: begin(size_type __n) 27002: { return _M_h.begin(__n); } 27002: # 1051 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: const_local_iterator 27002: begin(size_type __n) const 27002: { return _M_h.begin(__n); } 27002: 27002: const_local_iterator 27002: cbegin(size_type __n) const 27002: { return _M_h.cbegin(__n); } 27002: # 1066 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: local_iterator 27002: end(size_type __n) 27002: { return _M_h.end(__n); } 27002: # 1077 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: const_local_iterator 27002: end(size_type __n) const 27002: { return _M_h.end(__n); } 27002: 27002: const_local_iterator 27002: cend(size_type __n) const 27002: { return _M_h.cend(__n); } 27002: 27002: 27002: 27002: 27002: 27002: float 27002: load_factor() const noexcept 27002: { return _M_h.load_factor(); } 27002: 27002: 27002: 27002: float 27002: max_load_factor() const noexcept 27002: { return _M_h.max_load_factor(); } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: max_load_factor(float __z) 27002: { _M_h.max_load_factor(__z); } 27002: # 1114 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: void 27002: rehash(size_type __n) 27002: { _M_h.rehash(__n); } 27002: # 1125 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: void 27002: reserve(size_type __n) 27002: { _M_h.reserve(__n); } 27002: 27002: template 27002: friend bool 27002: operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, 27002: const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); 27002: }; 27002: 27002: 27002: 27002: template>, 27002: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 27002: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireNotAllocator<_Pred>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_map(_InputIterator, _InputIterator, 27002: typename unordered_map::size_type = {}, 27002: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 27002: -> unordered_map<__iter_key_t<_InputIterator>, 27002: __iter_val_t<_InputIterator>, 27002: _Hash, _Pred, _Allocator>; 27002: 27002: template, 27002: typename _Pred = equal_to<_Key>, 27002: typename _Allocator = allocator>, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireNotAllocator<_Pred>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_map(initializer_list>, 27002: typename unordered_map::size_type = {}, 27002: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 27002: -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_map(_InputIterator, _InputIterator, 27002: typename unordered_map::size_type, _Allocator) 27002: -> unordered_map<__iter_key_t<_InputIterator>, 27002: __iter_val_t<_InputIterator>, 27002: hash<__iter_key_t<_InputIterator>>, 27002: equal_to<__iter_key_t<_InputIterator>>, 27002: _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_map(_InputIterator, _InputIterator, _Allocator) 27002: -> unordered_map<__iter_key_t<_InputIterator>, 27002: __iter_val_t<_InputIterator>, 27002: hash<__iter_key_t<_InputIterator>>, 27002: equal_to<__iter_key_t<_InputIterator>>, 27002: _Allocator>; 27002: 27002: template, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_map(_InputIterator, _InputIterator, 27002: typename unordered_map::size_type, 27002: _Hash, _Allocator) 27002: -> unordered_map<__iter_key_t<_InputIterator>, 27002: __iter_val_t<_InputIterator>, _Hash, 27002: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 27002: 27002: template> 27002: unordered_map(initializer_list>, 27002: typename unordered_map::size_type, 27002: _Allocator) 27002: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 27002: 27002: template> 27002: unordered_map(initializer_list>, _Allocator) 27002: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_map(initializer_list>, 27002: typename unordered_map::size_type, 27002: _Hash, _Allocator) 27002: -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 27002: # 1241 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template, 27002: typename _Pred = equal_to<_Key>, 27002: typename _Alloc = allocator>> 27002: class unordered_multimap 27002: { 27002: typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 27002: _Hashtable _M_h; 27002: 27002: public: 27002: 27002: 27002: 27002: typedef typename _Hashtable::key_type key_type; 27002: typedef typename _Hashtable::value_type value_type; 27002: typedef typename _Hashtable::mapped_type mapped_type; 27002: typedef typename _Hashtable::hasher hasher; 27002: typedef typename _Hashtable::key_equal key_equal; 27002: typedef typename _Hashtable::allocator_type allocator_type; 27002: 27002: 27002: 27002: 27002: typedef typename _Hashtable::pointer pointer; 27002: typedef typename _Hashtable::const_pointer const_pointer; 27002: typedef typename _Hashtable::reference reference; 27002: typedef typename _Hashtable::const_reference const_reference; 27002: typedef typename _Hashtable::iterator iterator; 27002: typedef typename _Hashtable::const_iterator const_iterator; 27002: typedef typename _Hashtable::local_iterator local_iterator; 27002: typedef typename _Hashtable::const_local_iterator const_local_iterator; 27002: typedef typename _Hashtable::size_type size_type; 27002: typedef typename _Hashtable::difference_type difference_type; 27002: 27002: 27002: 27002: using node_type = typename _Hashtable::node_type; 27002: 27002: 27002: 27002: 27002: 27002: unordered_multimap() = default; 27002: # 1292 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: explicit 27002: unordered_multimap(size_type __n, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__n, __hf, __eql, __a) 27002: { } 27002: # 1313 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: unordered_multimap(_InputIterator __first, _InputIterator __last, 27002: size_type __n = 0, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__first, __last, __n, __hf, __eql, __a) 27002: { } 27002: 27002: 27002: unordered_multimap(const unordered_multimap&) = default; 27002: 27002: 27002: unordered_multimap(unordered_multimap&&) = default; 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: unordered_multimap(const allocator_type& __a) 27002: : _M_h(__a) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: unordered_multimap(const unordered_multimap& __ummap, 27002: const allocator_type& __a) 27002: : _M_h(__ummap._M_h, __a) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: unordered_multimap(unordered_multimap&& __ummap, 27002: const allocator_type& __a) 27002: noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) 27002: : _M_h(std::move(__ummap._M_h), __a) 27002: { } 27002: # 1369 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: unordered_multimap(initializer_list __l, 27002: size_type __n = 0, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__l, __n, __hf, __eql, __a) 27002: { } 27002: 27002: unordered_multimap(size_type __n, const allocator_type& __a) 27002: : unordered_multimap(__n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: unordered_multimap(size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_multimap(__n, __hf, key_equal(), __a) 27002: { } 27002: 27002: template 27002: unordered_multimap(_InputIterator __first, _InputIterator __last, 27002: size_type __n, 27002: const allocator_type& __a) 27002: : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: template 27002: unordered_multimap(_InputIterator __first, _InputIterator __last, 27002: size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) 27002: { } 27002: 27002: unordered_multimap(initializer_list __l, 27002: size_type __n, 27002: const allocator_type& __a) 27002: : unordered_multimap(__l, __n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: unordered_multimap(initializer_list __l, 27002: size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_multimap(__l, __n, __hf, key_equal(), __a) 27002: { } 27002: 27002: 27002: unordered_multimap& 27002: operator=(const unordered_multimap&) = default; 27002: 27002: 27002: unordered_multimap& 27002: operator=(unordered_multimap&&) = default; 27002: # 1431 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: unordered_multimap& 27002: operator=(initializer_list __l) 27002: { 27002: _M_h = __l; 27002: return *this; 27002: } 27002: 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return _M_h.get_allocator(); } 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return _M_h.empty(); } 27002: 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_h.size(); } 27002: 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return _M_h.max_size(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: begin() noexcept 27002: { return _M_h.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: begin() const noexcept 27002: { return _M_h.begin(); } 27002: 27002: const_iterator 27002: cbegin() const noexcept 27002: { return _M_h.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: end() noexcept 27002: { return _M_h.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: end() const noexcept 27002: { return _M_h.end(); } 27002: 27002: const_iterator 27002: cend() const noexcept 27002: { return _M_h.end(); } 27002: # 1523 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: iterator 27002: emplace(_Args&&... __args) 27002: { return _M_h.emplace(std::forward<_Args>(__args)...); } 27002: # 1550 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: iterator 27002: emplace_hint(const_iterator __pos, _Args&&... __args) 27002: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 27002: # 1565 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: iterator 27002: insert(const value_type& __x) 27002: { return _M_h.insert(__x); } 27002: 27002: iterator 27002: insert(value_type&& __x) 27002: { return _M_h.insert(std::move(__x)); } 27002: 27002: template 27002: __enable_if_t::value, iterator> 27002: insert(_Pair&& __x) 27002: { return _M_h.emplace(std::forward<_Pair>(__x)); } 27002: # 1599 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: iterator 27002: insert(const_iterator __hint, const value_type& __x) 27002: { return _M_h.insert(__hint, __x); } 27002: 27002: 27002: 27002: iterator 27002: insert(const_iterator __hint, value_type&& __x) 27002: { return _M_h.insert(__hint, std::move(__x)); } 27002: 27002: template 27002: __enable_if_t::value, iterator> 27002: insert(const_iterator __hint, _Pair&& __x) 27002: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 27002: # 1624 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: template 27002: void 27002: insert(_InputIterator __first, _InputIterator __last) 27002: { _M_h.insert(__first, __last); } 27002: # 1637 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: void 27002: insert(initializer_list __l) 27002: { _M_h.insert(__l); } 27002: 27002: 27002: 27002: node_type 27002: extract(const_iterator __pos) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 27002: return _M_h.extract(__pos); 27002: } 27002: 27002: 27002: node_type 27002: extract(const key_type& __key) 27002: { return _M_h.extract(__key); } 27002: 27002: 27002: iterator 27002: insert(node_type&& __nh) 27002: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 27002: 27002: 27002: iterator 27002: insert(const_iterator __hint, node_type&& __nh) 27002: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 27002: # 1680 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: iterator 27002: erase(const_iterator __position) 27002: { return _M_h.erase(__position); } 27002: 27002: 27002: iterator 27002: erase(iterator __position) 27002: { return _M_h.erase(__position); } 27002: # 1701 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: size_type 27002: erase(const key_type& __x) 27002: { return _M_h.erase(__x); } 27002: # 1720 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: iterator 27002: erase(const_iterator __first, const_iterator __last) 27002: { return _M_h.erase(__first, __last); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: clear() noexcept 27002: { _M_h.clear(); } 27002: # 1744 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: void 27002: swap(unordered_multimap& __x) 27002: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 27002: { _M_h.swap(__x._M_h); } 27002: 27002: 27002: template 27002: friend class std::_Hash_merge_helper; 27002: 27002: template 27002: void 27002: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 27002: { 27002: using _Merge_helper 27002: = _Hash_merge_helper; 27002: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: template 27002: void 27002: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 27002: { 27002: using _Merge_helper 27002: = _Hash_merge_helper; 27002: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: hasher 27002: hash_function() const 27002: { return _M_h.hash_function(); } 27002: 27002: 27002: 27002: key_equal 27002: key_eq() const 27002: { return _M_h.key_eq(); } 27002: # 1810 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: iterator 27002: find(const key_type& __x) 27002: { return _M_h.find(__x); } 27002: # 1821 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: const_iterator 27002: find(const key_type& __x) const 27002: { return _M_h.find(__x); } 27002: # 1839 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: size_type 27002: count(const key_type& __x) const 27002: { return _M_h.count(__x); } 27002: # 1877 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) 27002: { return _M_h.equal_range(__x); } 27002: # 1889 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) const 27002: { return _M_h.equal_range(__x); } 27002: # 1905 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: size_type 27002: bucket_count() const noexcept 27002: { return _M_h.bucket_count(); } 27002: 27002: 27002: size_type 27002: max_bucket_count() const noexcept 27002: { return _M_h.max_bucket_count(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_type 27002: bucket_size(size_type __n) const 27002: { return _M_h.bucket_size(__n); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_type 27002: bucket(const key_type& __key) const 27002: { return _M_h.bucket(__key); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: local_iterator 27002: begin(size_type __n) 27002: { return _M_h.begin(__n); } 27002: # 1949 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: const_local_iterator 27002: begin(size_type __n) const 27002: { return _M_h.begin(__n); } 27002: 27002: const_local_iterator 27002: cbegin(size_type __n) const 27002: { return _M_h.cbegin(__n); } 27002: # 1964 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: local_iterator 27002: end(size_type __n) 27002: { return _M_h.end(__n); } 27002: # 1975 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: const_local_iterator 27002: end(size_type __n) const 27002: { return _M_h.end(__n); } 27002: 27002: const_local_iterator 27002: cend(size_type __n) const 27002: { return _M_h.cend(__n); } 27002: 27002: 27002: 27002: 27002: 27002: float 27002: load_factor() const noexcept 27002: { return _M_h.load_factor(); } 27002: 27002: 27002: 27002: float 27002: max_load_factor() const noexcept 27002: { return _M_h.max_load_factor(); } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: max_load_factor(float __z) 27002: { _M_h.max_load_factor(__z); } 27002: # 2012 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: void 27002: rehash(size_type __n) 27002: { _M_h.rehash(__n); } 27002: # 2023 "/usr/include/c++/12/bits/unordered_map.h" 3 27002: void 27002: reserve(size_type __n) 27002: { _M_h.reserve(__n); } 27002: 27002: template 27002: friend bool 27002: operator==(const unordered_multimap<_Key1, _Tp1, 27002: _Hash1, _Pred1, _Alloc1>&, 27002: const unordered_multimap<_Key1, _Tp1, 27002: _Hash1, _Pred1, _Alloc1>&); 27002: }; 27002: 27002: 27002: 27002: template>, 27002: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 27002: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireNotAllocator<_Pred>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multimap(_InputIterator, _InputIterator, 27002: unordered_multimap::size_type = {}, 27002: _Hash = _Hash(), _Pred = _Pred(), 27002: _Allocator = _Allocator()) 27002: -> unordered_multimap<__iter_key_t<_InputIterator>, 27002: __iter_val_t<_InputIterator>, _Hash, _Pred, 27002: _Allocator>; 27002: 27002: template, 27002: typename _Pred = equal_to<_Key>, 27002: typename _Allocator = allocator>, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireNotAllocator<_Pred>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multimap(initializer_list>, 27002: unordered_multimap::size_type = {}, 27002: _Hash = _Hash(), _Pred = _Pred(), 27002: _Allocator = _Allocator()) 27002: -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multimap(_InputIterator, _InputIterator, 27002: unordered_multimap::size_type, _Allocator) 27002: -> unordered_multimap<__iter_key_t<_InputIterator>, 27002: __iter_val_t<_InputIterator>, 27002: hash<__iter_key_t<_InputIterator>>, 27002: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multimap(_InputIterator, _InputIterator, _Allocator) 27002: -> unordered_multimap<__iter_key_t<_InputIterator>, 27002: __iter_val_t<_InputIterator>, 27002: hash<__iter_key_t<_InputIterator>>, 27002: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 27002: 27002: template, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multimap(_InputIterator, _InputIterator, 27002: unordered_multimap::size_type, _Hash, 27002: _Allocator) 27002: -> unordered_multimap<__iter_key_t<_InputIterator>, 27002: __iter_val_t<_InputIterator>, _Hash, 27002: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 27002: 27002: template> 27002: unordered_multimap(initializer_list>, 27002: unordered_multimap::size_type, 27002: _Allocator) 27002: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 27002: 27002: template> 27002: unordered_multimap(initializer_list>, _Allocator) 27002: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multimap(initializer_list>, 27002: unordered_multimap::size_type, 27002: _Hash, _Allocator) 27002: -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 27002: unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: template 27002: inline void 27002: swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 27002: unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: template 27002: inline bool 27002: operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 27002: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 27002: { return __x._M_h._M_equal(__y._M_h); } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 27002: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: inline bool 27002: operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 27002: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 27002: { return __x._M_h._M_equal(__y._M_h); } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 27002: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Hash_merge_helper< 27002: std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, 27002: _Hash2, _Eq2> 27002: { 27002: private: 27002: template 27002: using unordered_map = std::unordered_map<_Tp...>; 27002: template 27002: using unordered_multimap = std::unordered_multimap<_Tp...>; 27002: 27002: friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; 27002: 27002: static auto& 27002: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 27002: { return __map._M_h; } 27002: 27002: static auto& 27002: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 27002: { return __map._M_h; } 27002: }; 27002: 27002: 27002: template 27002: struct _Hash_merge_helper< 27002: std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, 27002: _Hash2, _Eq2> 27002: { 27002: private: 27002: template 27002: using unordered_map = std::unordered_map<_Tp...>; 27002: template 27002: using unordered_multimap = std::unordered_multimap<_Tp...>; 27002: 27002: friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; 27002: 27002: static auto& 27002: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 27002: { return __map._M_h; } 27002: 27002: static auto& 27002: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 27002: { return __map._M_h; } 27002: }; 27002: 27002: 27002: 27002: } 27002: # 48 "/usr/include/c++/12/unordered_map" 2 3 27002: 27002: # 1 "/usr/include/c++/12/bits/erase_if.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/erase_if.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/erase_if.h" 3 27002: 27002: 27002: 27002: 27002: 27002: namespace std 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace __detail 27002: { 27002: template 27002: typename _Container::size_type 27002: __erase_nodes_if(_Container& __cont, const _UnsafeContainer& __ucont, 27002: _Predicate __pred) 27002: { 27002: typename _Container::size_type __num = 0; 27002: for (auto __iter = __ucont.begin(), __last = __ucont.end(); 27002: __iter != __last;) 27002: { 27002: if (__pred(*__iter)) 27002: { 27002: __iter = __cont.erase(__iter); 27002: ++__num; 27002: } 27002: else 27002: ++__iter; 27002: } 27002: return __num; 27002: } 27002: } 27002: 27002: 27002: } 27002: # 50 "/usr/include/c++/12/unordered_map" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace pmr 27002: { 27002: template class polymorphic_allocator; 27002: template, 27002: typename _Pred = std::equal_to<_Key>> 27002: using unordered_map 27002: = std::unordered_map<_Key, _Tp, _Hash, _Pred, 27002: polymorphic_allocator>>; 27002: template, 27002: typename _Pred = std::equal_to<_Key>> 27002: using unordered_multimap 27002: = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, 27002: polymorphic_allocator>>; 27002: } 27002: 27002: } 27002: # 62 "/usr/include/c++/12/functional" 2 3 27002: # 1 "/usr/include/c++/12/vector" 1 3 27002: # 58 "/usr/include/c++/12/vector" 3 27002: 27002: # 59 "/usr/include/c++/12/vector" 3 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/stl_vector.h" 1 3 27002: # 78 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: template 27002: struct _Vector_base 27002: { 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind<_Tp>::other _Tp_alloc_type; 27002: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 27002: pointer; 27002: 27002: struct _Vector_impl_data 27002: { 27002: pointer _M_start; 27002: pointer _M_finish; 27002: pointer _M_end_of_storage; 27002: 27002: 27002: _Vector_impl_data() noexcept 27002: : _M_start(), _M_finish(), _M_end_of_storage() 27002: { } 27002: 27002: 27002: 27002: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 27002: : _M_start(__x._M_start), _M_finish(__x._M_finish), 27002: _M_end_of_storage(__x._M_end_of_storage) 27002: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 27002: 27002: 27002: 27002: void 27002: _M_copy_data(_Vector_impl_data const& __x) noexcept 27002: { 27002: _M_start = __x._M_start; 27002: _M_finish = __x._M_finish; 27002: _M_end_of_storage = __x._M_end_of_storage; 27002: } 27002: 27002: 27002: void 27002: _M_swap_data(_Vector_impl_data& __x) noexcept 27002: { 27002: 27002: 27002: _Vector_impl_data __tmp; 27002: __tmp._M_copy_data(*this); 27002: _M_copy_data(__x); 27002: __x._M_copy_data(__tmp); 27002: } 27002: }; 27002: 27002: struct _Vector_impl 27002: : public _Tp_alloc_type, public _Vector_impl_data 27002: { 27002: 27002: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 27002: 27002: : _Tp_alloc_type() 27002: { } 27002: 27002: 27002: _Vector_impl(_Tp_alloc_type const& __a) noexcept 27002: : _Tp_alloc_type(__a) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: _Vector_impl(_Vector_impl&& __x) noexcept 27002: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 27002: { } 27002: 27002: 27002: _Vector_impl(_Tp_alloc_type&& __a) noexcept 27002: : _Tp_alloc_type(std::move(__a)) 27002: { } 27002: 27002: 27002: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 27002: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 27002: { } 27002: # 291 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: }; 27002: 27002: public: 27002: typedef _Alloc allocator_type; 27002: 27002: 27002: _Tp_alloc_type& 27002: _M_get_Tp_allocator() noexcept 27002: { return this->_M_impl; } 27002: 27002: 27002: const _Tp_alloc_type& 27002: _M_get_Tp_allocator() const noexcept 27002: { return this->_M_impl; } 27002: 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return allocator_type(_M_get_Tp_allocator()); } 27002: 27002: 27002: _Vector_base() = default; 27002: 27002: 27002: 27002: 27002: 27002: _Vector_base(const allocator_type& __a) noexcept 27002: : _M_impl(__a) { } 27002: 27002: 27002: 27002: 27002: _Vector_base(size_t __n) 27002: : _M_impl() 27002: { _M_create_storage(__n); } 27002: 27002: 27002: 27002: _Vector_base(size_t __n, const allocator_type& __a) 27002: : _M_impl(__a) 27002: { _M_create_storage(__n); } 27002: 27002: 27002: _Vector_base(_Vector_base&&) = default; 27002: 27002: 27002: 27002: 27002: _Vector_base(_Tp_alloc_type&& __a) noexcept 27002: : _M_impl(std::move(__a)) { } 27002: 27002: 27002: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 27002: : _M_impl(__a) 27002: { 27002: if (__x.get_allocator() == __a) 27002: this->_M_impl._M_swap_data(__x._M_impl); 27002: else 27002: { 27002: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 27002: _M_create_storage(__n); 27002: } 27002: } 27002: 27002: 27002: 27002: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 27002: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 27002: { } 27002: 27002: 27002: 27002: ~_Vector_base() noexcept 27002: { 27002: _M_deallocate(_M_impl._M_start, 27002: _M_impl._M_end_of_storage - _M_impl._M_start); 27002: } 27002: 27002: public: 27002: _Vector_impl _M_impl; 27002: 27002: 27002: pointer 27002: _M_allocate(size_t __n) 27002: { 27002: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 27002: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 27002: } 27002: 27002: 27002: void 27002: _M_deallocate(pointer __p, size_t __n) 27002: { 27002: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 27002: if (__p) 27002: _Tr::deallocate(_M_impl, __p, __n); 27002: } 27002: 27002: protected: 27002: 27002: void 27002: _M_create_storage(size_t __n) 27002: { 27002: this->_M_impl._M_start = this->_M_allocate(__n); 27002: this->_M_impl._M_finish = this->_M_impl._M_start; 27002: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 27002: } 27002: }; 27002: # 422 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: template > 27002: class vector : protected _Vector_base<_Tp, _Alloc> 27002: { 27002: # 435 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: static_assert(is_same::type, _Tp>::value, 27002: "std::vector must have a non-const, non-volatile value_type"); 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef _Vector_base<_Tp, _Alloc> _Base; 27002: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 27002: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 27002: 27002: public: 27002: typedef _Tp value_type; 27002: typedef typename _Base::pointer pointer; 27002: typedef typename _Alloc_traits::const_pointer const_pointer; 27002: typedef typename _Alloc_traits::reference reference; 27002: typedef typename _Alloc_traits::const_reference const_reference; 27002: typedef __gnu_cxx::__normal_iterator iterator; 27002: typedef __gnu_cxx::__normal_iterator 27002: const_iterator; 27002: typedef std::reverse_iterator const_reverse_iterator; 27002: typedef std::reverse_iterator reverse_iterator; 27002: typedef size_t size_type; 27002: typedef ptrdiff_t difference_type; 27002: typedef _Alloc allocator_type; 27002: 27002: private: 27002: 27002: static constexpr bool 27002: _S_nothrow_relocate(true_type) 27002: { 27002: return noexcept(std::__relocate_a(std::declval(), 27002: std::declval(), 27002: std::declval(), 27002: std::declval<_Tp_alloc_type&>())); 27002: } 27002: 27002: static constexpr bool 27002: _S_nothrow_relocate(false_type) 27002: { return false; } 27002: 27002: static constexpr bool 27002: _S_use_relocate() 27002: { 27002: 27002: 27002: 27002: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 27002: } 27002: 27002: static pointer 27002: _S_do_relocate(pointer __first, pointer __last, pointer __result, 27002: _Tp_alloc_type& __alloc, true_type) noexcept 27002: { 27002: return std::__relocate_a(__first, __last, __result, __alloc); 27002: } 27002: 27002: static pointer 27002: _S_do_relocate(pointer, pointer, pointer __result, 27002: _Tp_alloc_type&, false_type) noexcept 27002: { return __result; } 27002: 27002: static pointer 27002: _S_relocate(pointer __first, pointer __last, pointer __result, 27002: _Tp_alloc_type& __alloc) noexcept 27002: { 27002: 27002: 27002: return std::__relocate_a(__first, __last, __result, __alloc); 27002: 27002: 27002: 27002: 27002: } 27002: 27002: 27002: protected: 27002: using _Base::_M_allocate; 27002: using _Base::_M_deallocate; 27002: using _Base::_M_impl; 27002: using _Base::_M_get_Tp_allocator; 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: vector() = default; 27002: # 535 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: explicit 27002: 27002: vector(const allocator_type& __a) noexcept 27002: : _Base(__a) { } 27002: # 549 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: explicit 27002: 27002: vector(size_type __n, const allocator_type& __a = allocator_type()) 27002: : _Base(_S_check_init_len(__n, __a), __a) 27002: { _M_default_initialize(__n); } 27002: # 563 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: vector(size_type __n, const value_type& __value, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(_S_check_init_len(__n, __a), __a) 27002: { _M_fill_initialize(__n, __value); } 27002: # 595 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: vector(const vector& __x) 27002: : _Base(__x.size(), 27002: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 27002: { 27002: this->_M_impl._M_finish = 27002: std::__uninitialized_copy_a(__x.begin(), __x.end(), 27002: this->_M_impl._M_start, 27002: _M_get_Tp_allocator()); 27002: } 27002: # 615 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: vector(vector&&) noexcept = default; 27002: 27002: 27002: 27002: vector(const vector& __x, const __type_identity_t& __a) 27002: : _Base(__x.size(), __a) 27002: { 27002: this->_M_impl._M_finish = 27002: std::__uninitialized_copy_a(__x.begin(), __x.end(), 27002: this->_M_impl._M_start, 27002: _M_get_Tp_allocator()); 27002: } 27002: 27002: private: 27002: 27002: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 27002: : _Base(__m, std::move(__rv)) 27002: { } 27002: 27002: 27002: vector(vector&& __rv, const allocator_type& __m, false_type) 27002: : _Base(__m) 27002: { 27002: if (__rv.get_allocator() == __m) 27002: this->_M_impl._M_swap_data(__rv._M_impl); 27002: else if (!__rv.empty()) 27002: { 27002: this->_M_create_storage(__rv.size()); 27002: this->_M_impl._M_finish = 27002: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 27002: this->_M_impl._M_start, 27002: _M_get_Tp_allocator()); 27002: __rv.clear(); 27002: } 27002: } 27002: 27002: public: 27002: 27002: 27002: vector(vector&& __rv, const __type_identity_t& __m) 27002: noexcept( noexcept( 27002: vector(std::declval(), std::declval(), 27002: std::declval())) ) 27002: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 27002: { } 27002: # 672 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: vector(initializer_list __l, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(__a) 27002: { 27002: _M_range_initialize(__l.begin(), __l.end(), 27002: random_access_iterator_tag()); 27002: } 27002: # 699 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: template> 27002: 27002: vector(_InputIterator __first, _InputIterator __last, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(__a) 27002: { 27002: _M_range_initialize(__first, __last, 27002: std::__iterator_category(__first)); 27002: } 27002: # 727 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: ~vector() noexcept 27002: { 27002: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: ; 27002: } 27002: # 744 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: vector& 27002: operator=(const vector& __x); 27002: # 759 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: vector& 27002: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 27002: { 27002: constexpr bool __move_storage = 27002: _Alloc_traits::_S_propagate_on_move_assign() 27002: || _Alloc_traits::_S_always_equal(); 27002: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 27002: return *this; 27002: } 27002: # 781 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: vector& 27002: operator=(initializer_list __l) 27002: { 27002: this->_M_assign_aux(__l.begin(), __l.end(), 27002: random_access_iterator_tag()); 27002: return *this; 27002: } 27002: # 801 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: void 27002: assign(size_type __n, const value_type& __val) 27002: { _M_fill_assign(__n, __val); } 27002: # 819 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: template> 27002: 27002: void 27002: assign(_InputIterator __first, _InputIterator __last) 27002: { _M_assign_dispatch(__first, __last, __false_type()); } 27002: # 848 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: void 27002: assign(initializer_list __l) 27002: { 27002: this->_M_assign_aux(__l.begin(), __l.end(), 27002: random_access_iterator_tag()); 27002: } 27002: 27002: 27002: 27002: using _Base::get_allocator; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: iterator 27002: begin() noexcept 27002: { return iterator(this->_M_impl._M_start); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: begin() const noexcept 27002: { return const_iterator(this->_M_impl._M_start); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: iterator 27002: end() noexcept 27002: { return iterator(this->_M_impl._M_finish); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: end() const noexcept 27002: { return const_iterator(this->_M_impl._M_finish); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reverse_iterator 27002: rbegin() noexcept 27002: { return reverse_iterator(end()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: rbegin() const noexcept 27002: { return const_reverse_iterator(end()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reverse_iterator 27002: rend() noexcept 27002: { return reverse_iterator(begin()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: rend() const noexcept 27002: { return const_reverse_iterator(begin()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: cbegin() const noexcept 27002: { return const_iterator(this->_M_impl._M_start); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: cend() const noexcept 27002: { return const_iterator(this->_M_impl._M_finish); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: crbegin() const noexcept 27002: { return const_reverse_iterator(end()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: crend() const noexcept 27002: { return const_reverse_iterator(begin()); } 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: size_type 27002: size() const noexcept 27002: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 27002: 27002: 27002: [[__nodiscard__]] 27002: size_type 27002: max_size() const noexcept 27002: { return _S_max_size(_M_get_Tp_allocator()); } 27002: # 1006 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: void 27002: resize(size_type __new_size) 27002: { 27002: if (__new_size > size()) 27002: _M_default_append(__new_size - size()); 27002: else if (__new_size < size()) 27002: _M_erase_at_end(this->_M_impl._M_start + __new_size); 27002: } 27002: # 1027 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: void 27002: resize(size_type __new_size, const value_type& __x) 27002: { 27002: if (__new_size > size()) 27002: _M_fill_insert(end(), __new_size - size(), __x); 27002: else if (__new_size < size()) 27002: _M_erase_at_end(this->_M_impl._M_start + __new_size); 27002: } 27002: # 1061 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: void 27002: shrink_to_fit() 27002: { _M_shrink_to_fit(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: size_type 27002: capacity() const noexcept 27002: { return size_type(this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_start); } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: bool 27002: empty() const noexcept 27002: { return begin() == end(); } 27002: # 1103 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: void 27002: reserve(size_type __n); 27002: # 1119 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: [[__nodiscard__]] 27002: reference 27002: operator[](size_type __n) noexcept 27002: { 27002: ; 27002: return *(this->_M_impl._M_start + __n); 27002: } 27002: # 1138 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: [[__nodiscard__]] 27002: const_reference 27002: operator[](size_type __n) const noexcept 27002: { 27002: ; 27002: return *(this->_M_impl._M_start + __n); 27002: } 27002: 27002: protected: 27002: 27002: 27002: void 27002: _M_range_check(size_type __n) const 27002: { 27002: if (__n >= this->size()) 27002: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 27002: 27002: , 27002: __n, this->size()); 27002: } 27002: 27002: public: 27002: # 1171 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: reference 27002: at(size_type __n) 27002: { 27002: _M_range_check(__n); 27002: return (*this)[__n]; 27002: } 27002: # 1190 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: const_reference 27002: at(size_type __n) const 27002: { 27002: _M_range_check(__n); 27002: return (*this)[__n]; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reference 27002: front() noexcept 27002: { 27002: ; 27002: return *begin(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: front() const noexcept 27002: { 27002: ; 27002: return *begin(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reference 27002: back() noexcept 27002: { 27002: ; 27002: return *(end() - 1); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: back() const noexcept 27002: { 27002: ; 27002: return *(end() - 1); 27002: } 27002: # 1253 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: [[__nodiscard__]] 27002: _Tp* 27002: data() noexcept 27002: { return _M_data_ptr(this->_M_impl._M_start); } 27002: 27002: [[__nodiscard__]] 27002: const _Tp* 27002: data() const noexcept 27002: { return _M_data_ptr(this->_M_impl._M_start); } 27002: # 1274 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: void 27002: push_back(const value_type& __x) 27002: { 27002: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 27002: { 27002: ; 27002: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 27002: __x); 27002: ++this->_M_impl._M_finish; 27002: ; 27002: } 27002: else 27002: _M_realloc_insert(end(), __x); 27002: } 27002: 27002: 27002: 27002: void 27002: push_back(value_type&& __x) 27002: { emplace_back(std::move(__x)); } 27002: 27002: template 27002: 27002: 27002: reference 27002: 27002: 27002: 27002: emplace_back(_Args&&... __args); 27002: # 1315 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: void 27002: pop_back() noexcept 27002: { 27002: ; 27002: --this->_M_impl._M_finish; 27002: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 27002: ; 27002: } 27002: # 1338 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: template 27002: 27002: iterator 27002: emplace(const_iterator __position, _Args&&... __args) 27002: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 27002: # 1355 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: iterator 27002: insert(const_iterator __position, const value_type& __x); 27002: # 1386 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: iterator 27002: insert(const_iterator __position, value_type&& __x) 27002: { return _M_insert_rval(__position, std::move(__x)); } 27002: # 1404 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: iterator 27002: insert(const_iterator __position, initializer_list __l) 27002: { 27002: auto __offset = __position - cbegin(); 27002: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 27002: std::random_access_iterator_tag()); 27002: return begin() + __offset; 27002: } 27002: # 1430 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: iterator 27002: insert(const_iterator __position, size_type __n, const value_type& __x) 27002: { 27002: difference_type __offset = __position - cbegin(); 27002: _M_fill_insert(begin() + __offset, __n, __x); 27002: return begin() + __offset; 27002: } 27002: # 1473 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: template> 27002: 27002: iterator 27002: insert(const_iterator __position, _InputIterator __first, 27002: _InputIterator __last) 27002: { 27002: difference_type __offset = __position - cbegin(); 27002: _M_insert_dispatch(begin() + __offset, 27002: __first, __last, __false_type()); 27002: return begin() + __offset; 27002: } 27002: # 1526 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: iterator 27002: 27002: erase(const_iterator __position) 27002: { return _M_erase(begin() + (__position - cbegin())); } 27002: # 1554 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: iterator 27002: 27002: erase(const_iterator __first, const_iterator __last) 27002: { 27002: const auto __beg = begin(); 27002: const auto __cbeg = cbegin(); 27002: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 27002: } 27002: # 1579 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: 27002: void 27002: swap(vector& __x) noexcept 27002: { 27002: 27002: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) __builtin_unreachable(); } while (false) 27002: ; 27002: 27002: this->_M_impl._M_swap_data(__x._M_impl); 27002: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 27002: __x._M_get_Tp_allocator()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: clear() noexcept 27002: { _M_erase_at_end(this->_M_impl._M_start); } 27002: 27002: protected: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: pointer 27002: _M_allocate_and_copy(size_type __n, 27002: _ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: pointer __result = this->_M_allocate(__n); 27002: try 27002: { 27002: std::__uninitialized_copy_a(__first, __last, __result, 27002: _M_get_Tp_allocator()); 27002: return __result; 27002: } 27002: catch(...) 27002: { 27002: _M_deallocate(__result, __n); 27002: throw; 27002: } 27002: } 27002: # 1659 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: template 27002: 27002: void 27002: _M_range_initialize(_InputIterator __first, _InputIterator __last, 27002: std::input_iterator_tag) 27002: { 27002: try { 27002: for (; __first != __last; ++__first) 27002: 27002: emplace_back(*__first); 27002: 27002: 27002: 27002: } catch(...) { 27002: clear(); 27002: throw; 27002: } 27002: } 27002: 27002: 27002: template 27002: 27002: void 27002: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 27002: std::forward_iterator_tag) 27002: { 27002: const size_type __n = std::distance(__first, __last); 27002: this->_M_impl._M_start 27002: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 27002: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 27002: this->_M_impl._M_finish = 27002: std::__uninitialized_copy_a(__first, __last, 27002: this->_M_impl._M_start, 27002: _M_get_Tp_allocator()); 27002: } 27002: 27002: 27002: 27002: 27002: void 27002: _M_fill_initialize(size_type __n, const value_type& __value) 27002: { 27002: this->_M_impl._M_finish = 27002: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 27002: _M_get_Tp_allocator()); 27002: } 27002: 27002: 27002: 27002: 27002: void 27002: _M_default_initialize(size_type __n) 27002: { 27002: this->_M_impl._M_finish = 27002: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 27002: _M_get_Tp_allocator()); 27002: } 27002: # 1725 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: template 27002: 27002: void 27002: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 27002: { _M_fill_assign(__n, __val); } 27002: 27002: 27002: template 27002: 27002: void 27002: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 27002: __false_type) 27002: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 27002: 27002: 27002: template 27002: 27002: void 27002: _M_assign_aux(_InputIterator __first, _InputIterator __last, 27002: std::input_iterator_tag); 27002: 27002: 27002: template 27002: 27002: void 27002: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 27002: std::forward_iterator_tag); 27002: 27002: 27002: 27002: 27002: void 27002: _M_fill_assign(size_type __n, const value_type& __val); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 27002: __true_type) 27002: { _M_fill_insert(__pos, __n, __val); } 27002: 27002: 27002: template 27002: 27002: void 27002: _M_insert_dispatch(iterator __pos, _InputIterator __first, 27002: _InputIterator __last, __false_type) 27002: { 27002: _M_range_insert(__pos, __first, __last, 27002: std::__iterator_category(__first)); 27002: } 27002: 27002: 27002: template 27002: 27002: void 27002: _M_range_insert(iterator __pos, _InputIterator __first, 27002: _InputIterator __last, std::input_iterator_tag); 27002: 27002: 27002: template 27002: 27002: void 27002: _M_range_insert(iterator __pos, _ForwardIterator __first, 27002: _ForwardIterator __last, std::forward_iterator_tag); 27002: 27002: 27002: 27002: 27002: void 27002: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 27002: 27002: 27002: 27002: 27002: void 27002: _M_default_append(size_type __n); 27002: 27002: 27002: bool 27002: _M_shrink_to_fit(); 27002: # 1824 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: struct _Temporary_value 27002: { 27002: template 27002: explicit 27002: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 27002: { 27002: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: 27002: ~_Temporary_value() 27002: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 27002: 27002: value_type& 27002: _M_val() noexcept { return _M_storage._M_val; } 27002: 27002: private: 27002: _Tp* 27002: _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } 27002: 27002: union _Storage 27002: { 27002: constexpr _Storage() : _M_byte() { } 27002: ~_Storage() { } 27002: _Storage& operator=(const _Storage&) = delete; 27002: unsigned char _M_byte; 27002: _Tp _M_val; 27002: }; 27002: 27002: vector* _M_this; 27002: _Storage _M_storage; 27002: }; 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: _M_insert_aux(iterator __position, _Arg&& __arg); 27002: 27002: template 27002: 27002: void 27002: _M_realloc_insert(iterator __position, _Args&&... __args); 27002: 27002: 27002: 27002: iterator 27002: _M_insert_rval(const_iterator __position, value_type&& __v); 27002: 27002: 27002: template 27002: 27002: iterator 27002: _M_emplace_aux(const_iterator __position, _Args&&... __args); 27002: 27002: 27002: 27002: iterator 27002: _M_emplace_aux(const_iterator __position, value_type&& __v) 27002: { return _M_insert_rval(__position, std::move(__v)); } 27002: 27002: 27002: 27002: 27002: size_type 27002: _M_check_len(size_type __n, const char* __s) const 27002: { 27002: if (max_size() - size() < __n) 27002: __throw_length_error((__s)); 27002: 27002: const size_type __len = size() + (std::max)(size(), __n); 27002: return (__len < size() || __len > max_size()) ? max_size() : __len; 27002: } 27002: 27002: 27002: static size_type 27002: _S_check_init_len(size_type __n, const allocator_type& __a) 27002: { 27002: if (__n > _S_max_size(_Tp_alloc_type(__a))) 27002: __throw_length_error( 27002: ("cannot create std::vector larger than max_size()")); 27002: return __n; 27002: } 27002: 27002: static size_type 27002: _S_max_size(const _Tp_alloc_type& __a) noexcept 27002: { 27002: 27002: 27002: 27002: const size_t __diffmax 27002: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 27002: const size_t __allocmax = _Alloc_traits::max_size(__a); 27002: return (std::min)(__diffmax, __allocmax); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: _M_erase_at_end(pointer __pos) noexcept 27002: { 27002: if (size_type __n = this->_M_impl._M_finish - __pos) 27002: { 27002: std::_Destroy(__pos, this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish = __pos; 27002: ; 27002: } 27002: } 27002: 27002: 27002: iterator 27002: _M_erase(iterator __position); 27002: 27002: 27002: iterator 27002: _M_erase(iterator __first, iterator __last); 27002: 27002: 27002: private: 27002: 27002: 27002: 27002: 27002: void 27002: _M_move_assign(vector&& __x, true_type) noexcept 27002: { 27002: vector __tmp(get_allocator()); 27002: this->_M_impl._M_swap_data(__x._M_impl); 27002: __tmp._M_impl._M_swap_data(__x._M_impl); 27002: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 27002: } 27002: 27002: 27002: 27002: 27002: void 27002: _M_move_assign(vector&& __x, false_type) 27002: { 27002: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 27002: _M_move_assign(std::move(__x), true_type()); 27002: else 27002: { 27002: 27002: 27002: this->_M_assign_aux(std::make_move_iterator(__x.begin()), 27002: std::make_move_iterator(__x.end()), 27002: std::random_access_iterator_tag()); 27002: __x.clear(); 27002: } 27002: } 27002: 27002: 27002: template 27002: 27002: _Up* 27002: _M_data_ptr(_Up* __ptr) const noexcept 27002: { return __ptr; } 27002: 27002: 27002: template 27002: 27002: typename std::pointer_traits<_Ptr>::element_type* 27002: _M_data_ptr(_Ptr __ptr) const 27002: { return empty() ? nullptr : std::__to_address(__ptr); } 27002: # 2010 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: }; 27002: 27002: 27002: template::value_type, 27002: typename _Allocator = allocator<_ValT>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireAllocator<_Allocator>> 27002: vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) 27002: -> vector<_ValT, _Allocator>; 27002: # 2032 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: template 27002: 27002: inline bool 27002: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 27002: { return (__x.size() == __y.size() 27002: && std::equal(__x.begin(), __x.end(), __y.begin())); } 27002: # 2072 "/usr/include/c++/12/bits/stl_vector.h" 3 27002: template 27002: inline bool 27002: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 27002: { return std::lexicographical_compare(__x.begin(), __x.end(), 27002: __y.begin(), __y.end()); } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: inline bool 27002: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 27002: { return __y < __x; } 27002: 27002: 27002: template 27002: inline bool 27002: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 27002: { return !(__y < __x); } 27002: 27002: 27002: template 27002: inline bool 27002: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: 27002: template 27002: 27002: inline void 27002: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: 27002: 27002: 27002: namespace __detail::__variant 27002: { 27002: template struct _Never_valueless_alt; 27002: 27002: 27002: 27002: template 27002: struct _Never_valueless_alt> 27002: : std::is_nothrow_move_assignable> 27002: { }; 27002: } 27002: 27002: 27002: 27002: } 27002: # 65 "/usr/include/c++/12/vector" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_bvector.h" 1 3 27002: # 64 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: typedef unsigned long _Bit_type; 27002: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 27002: 27002: __attribute__((__nonnull__)) 27002: 27002: void 27002: __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; 27002: 27002: 27002: 27002: struct _Bit_reference 27002: { 27002: _Bit_type * _M_p; 27002: _Bit_type _M_mask; 27002: 27002: 27002: _Bit_reference(_Bit_type * __x, _Bit_type __y) 27002: : _M_p(__x), _M_mask(__y) { } 27002: 27002: 27002: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 27002: 27002: 27002: _Bit_reference(const _Bit_reference&) = default; 27002: 27002: 27002: [[__nodiscard__]] 27002: operator bool() const noexcept 27002: { return !!(*_M_p & _M_mask); } 27002: 27002: 27002: _Bit_reference& 27002: operator=(bool __x) noexcept 27002: { 27002: if (__x) 27002: *_M_p |= _M_mask; 27002: else 27002: *_M_p &= ~_M_mask; 27002: return *this; 27002: } 27002: 27002: 27002: _Bit_reference& 27002: operator=(const _Bit_reference& __x) noexcept 27002: { return *this = bool(__x); } 27002: 27002: [[__nodiscard__]] 27002: bool 27002: operator==(const _Bit_reference& __x) const 27002: { return bool(*this) == bool(__x); } 27002: 27002: [[__nodiscard__]] 27002: bool 27002: operator<(const _Bit_reference& __x) const 27002: { return !bool(*this) && bool(__x); } 27002: 27002: 27002: void 27002: flip() noexcept 27002: { *_M_p ^= _M_mask; } 27002: 27002: 27002: 27002: friend void 27002: swap(_Bit_reference __x, _Bit_reference __y) noexcept 27002: { 27002: bool __tmp = __x; 27002: __x = __y; 27002: __y = __tmp; 27002: } 27002: 27002: 27002: friend void 27002: swap(_Bit_reference __x, bool& __y) noexcept 27002: { 27002: bool __tmp = __x; 27002: __x = __y; 27002: __y = __tmp; 27002: } 27002: 27002: 27002: friend void 27002: swap(bool& __x, _Bit_reference __y) noexcept 27002: { 27002: bool __tmp = __x; 27002: __x = __y; 27002: __y = __tmp; 27002: } 27002: 27002: }; 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: struct _Bit_iterator_base 27002: : public std::iterator 27002: { 27002: _Bit_type * _M_p; 27002: unsigned int _M_offset; 27002: 27002: 27002: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 27002: : _M_p(__x), _M_offset(__y) { } 27002: 27002: 27002: void 27002: _M_bump_up() 27002: { 27002: if (_M_offset++ == int(_S_word_bit) - 1) 27002: { 27002: _M_offset = 0; 27002: ++_M_p; 27002: } 27002: } 27002: 27002: 27002: void 27002: _M_bump_down() 27002: { 27002: if (_M_offset-- == 0) 27002: { 27002: _M_offset = int(_S_word_bit) - 1; 27002: --_M_p; 27002: } 27002: } 27002: 27002: 27002: void 27002: _M_incr(ptrdiff_t __i) 27002: { 27002: difference_type __n = __i + _M_offset; 27002: _M_p += __n / int(_S_word_bit); 27002: __n = __n % int(_S_word_bit); 27002: if (__n < 0) 27002: { 27002: __n += int(_S_word_bit); 27002: --_M_p; 27002: } 27002: _M_offset = static_cast(__n); 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 27002: { return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; } 27002: # 225 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: [[__nodiscard__]] 27002: friend bool 27002: operator<(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 27002: { 27002: return __x._M_p < __y._M_p 27002: || (__x._M_p == __y._M_p && __x._M_offset < __y._M_offset); 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator!=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 27002: { return !(__x == __y); } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 27002: { return __y < __x; } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator<=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 27002: { return !(__y < __x); } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator>=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: friend ptrdiff_t 27002: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 27002: { 27002: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 27002: + __x._M_offset - __y._M_offset); 27002: } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: struct _Bit_iterator : public _Bit_iterator_base 27002: { 27002: typedef _Bit_reference reference; 27002: 27002: 27002: 27002: typedef _Bit_reference* pointer; 27002: 27002: typedef _Bit_iterator iterator; 27002: 27002: 27002: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 27002: 27002: 27002: _Bit_iterator(_Bit_type * __x, unsigned int __y) 27002: : _Bit_iterator_base(__x, __y) { } 27002: 27002: 27002: iterator 27002: _M_const_cast() const 27002: { return *this; } 27002: 27002: [[__nodiscard__]] 27002: reference 27002: operator*() const 27002: { return reference(_M_p, 1UL << _M_offset); } 27002: 27002: 27002: iterator& 27002: operator++() 27002: { 27002: _M_bump_up(); 27002: return *this; 27002: } 27002: 27002: 27002: iterator 27002: operator++(int) 27002: { 27002: iterator __tmp = *this; 27002: _M_bump_up(); 27002: return __tmp; 27002: } 27002: 27002: 27002: iterator& 27002: operator--() 27002: { 27002: _M_bump_down(); 27002: return *this; 27002: } 27002: 27002: 27002: iterator 27002: operator--(int) 27002: { 27002: iterator __tmp = *this; 27002: _M_bump_down(); 27002: return __tmp; 27002: } 27002: 27002: 27002: iterator& 27002: operator+=(difference_type __i) 27002: { 27002: _M_incr(__i); 27002: return *this; 27002: } 27002: 27002: 27002: iterator& 27002: operator-=(difference_type __i) 27002: { 27002: *this += -__i; 27002: return *this; 27002: } 27002: 27002: [[__nodiscard__]] 27002: reference 27002: operator[](difference_type __i) const 27002: { return *(*this + __i); } 27002: 27002: [[__nodiscard__]] 27002: friend iterator 27002: operator+(const iterator& __x, difference_type __n) 27002: { 27002: iterator __tmp = __x; 27002: __tmp += __n; 27002: return __tmp; 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend iterator 27002: operator+(difference_type __n, const iterator& __x) 27002: { return __x + __n; } 27002: 27002: [[__nodiscard__]] 27002: friend iterator 27002: operator-(const iterator& __x, difference_type __n) 27002: { 27002: iterator __tmp = __x; 27002: __tmp -= __n; 27002: return __tmp; 27002: } 27002: }; 27002: 27002: struct _Bit_const_iterator : public _Bit_iterator_base 27002: { 27002: typedef bool reference; 27002: typedef bool const_reference; 27002: 27002: 27002: 27002: typedef const bool* pointer; 27002: 27002: typedef _Bit_const_iterator const_iterator; 27002: 27002: 27002: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 27002: 27002: 27002: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 27002: : _Bit_iterator_base(__x, __y) { } 27002: 27002: 27002: _Bit_const_iterator(const _Bit_iterator& __x) 27002: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 27002: 27002: 27002: _Bit_iterator 27002: _M_const_cast() const 27002: { return _Bit_iterator(_M_p, _M_offset); } 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: operator*() const 27002: { return _Bit_reference(_M_p, 1UL << _M_offset); } 27002: 27002: 27002: const_iterator& 27002: operator++() 27002: { 27002: _M_bump_up(); 27002: return *this; 27002: } 27002: 27002: 27002: const_iterator 27002: operator++(int) 27002: { 27002: const_iterator __tmp = *this; 27002: _M_bump_up(); 27002: return __tmp; 27002: } 27002: 27002: 27002: const_iterator& 27002: operator--() 27002: { 27002: _M_bump_down(); 27002: return *this; 27002: } 27002: 27002: 27002: const_iterator 27002: operator--(int) 27002: { 27002: const_iterator __tmp = *this; 27002: _M_bump_down(); 27002: return __tmp; 27002: } 27002: 27002: 27002: const_iterator& 27002: operator+=(difference_type __i) 27002: { 27002: _M_incr(__i); 27002: return *this; 27002: } 27002: 27002: 27002: const_iterator& 27002: operator-=(difference_type __i) 27002: { 27002: *this += -__i; 27002: return *this; 27002: } 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: operator[](difference_type __i) const 27002: { return *(*this + __i); } 27002: 27002: [[__nodiscard__]] 27002: friend const_iterator 27002: operator+(const const_iterator& __x, difference_type __n) 27002: { 27002: const_iterator __tmp = __x; 27002: __tmp += __n; 27002: return __tmp; 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend const_iterator 27002: operator-(const const_iterator& __x, difference_type __n) 27002: { 27002: const_iterator __tmp = __x; 27002: __tmp -= __n; 27002: return __tmp; 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend const_iterator 27002: operator+(difference_type __n, const const_iterator& __x) 27002: { return __x + __n; } 27002: }; 27002: 27002: template 27002: struct _Bvector_base 27002: { 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind<_Bit_type>::other _Bit_alloc_type; 27002: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 27002: _Bit_alloc_traits; 27002: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 27002: 27002: struct _Bvector_impl_data 27002: { 27002: 27002: _Bit_iterator _M_start; 27002: # 502 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: _Bit_iterator _M_finish; 27002: _Bit_pointer _M_end_of_storage; 27002: 27002: 27002: _Bvector_impl_data() noexcept 27002: : _M_start(), _M_finish(), _M_end_of_storage() 27002: { } 27002: 27002: 27002: _Bvector_impl_data(const _Bvector_impl_data&) = default; 27002: 27002: _Bvector_impl_data& 27002: operator=(const _Bvector_impl_data&) = default; 27002: 27002: 27002: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 27002: : _Bvector_impl_data(__x) 27002: { __x._M_reset(); } 27002: 27002: 27002: void 27002: _M_move_data(_Bvector_impl_data&& __x) noexcept 27002: { 27002: *this = __x; 27002: __x._M_reset(); 27002: } 27002: 27002: 27002: 27002: void 27002: _M_reset() noexcept 27002: { *this = _Bvector_impl_data(); } 27002: 27002: 27002: void 27002: _M_swap_data(_Bvector_impl_data& __x) noexcept 27002: { 27002: 27002: 27002: std::swap(*this, __x); 27002: } 27002: }; 27002: 27002: struct _Bvector_impl 27002: : public _Bit_alloc_type, public _Bvector_impl_data 27002: { 27002: 27002: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 27002: 27002: : _Bit_alloc_type() 27002: { } 27002: 27002: 27002: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 27002: : _Bit_alloc_type(__a) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: _Bvector_impl(_Bvector_impl&& __x) noexcept 27002: : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) 27002: { } 27002: 27002: 27002: _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept 27002: : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) 27002: { } 27002: 27002: 27002: 27002: _Bit_type* 27002: _M_end_addr() const noexcept 27002: { 27002: if (this->_M_end_of_storage) 27002: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 27002: return 0; 27002: } 27002: }; 27002: 27002: public: 27002: typedef _Alloc allocator_type; 27002: 27002: 27002: _Bit_alloc_type& 27002: _M_get_Bit_allocator() noexcept 27002: { return this->_M_impl; } 27002: 27002: 27002: const _Bit_alloc_type& 27002: _M_get_Bit_allocator() const noexcept 27002: { return this->_M_impl; } 27002: 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return allocator_type(_M_get_Bit_allocator()); } 27002: 27002: 27002: _Bvector_base() = default; 27002: 27002: 27002: 27002: 27002: 27002: _Bvector_base(const allocator_type& __a) 27002: : _M_impl(__a) { } 27002: 27002: 27002: _Bvector_base(_Bvector_base&&) = default; 27002: 27002: 27002: _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept 27002: : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) 27002: { } 27002: 27002: 27002: 27002: ~_Bvector_base() 27002: { this->_M_deallocate(); } 27002: 27002: protected: 27002: _Bvector_impl _M_impl; 27002: 27002: 27002: _Bit_pointer 27002: _M_allocate(size_t __n) 27002: { 27002: _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); 27002: # 640 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: return __p; 27002: } 27002: 27002: 27002: void 27002: _M_deallocate() 27002: { 27002: if (_M_impl._M_start._M_p) 27002: { 27002: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 27002: _Bit_alloc_traits::deallocate(_M_impl, 27002: _M_impl._M_end_of_storage - __n, 27002: __n); 27002: _M_impl._M_reset(); 27002: } 27002: } 27002: 27002: 27002: 27002: void 27002: _M_move_data(_Bvector_base&& __x) noexcept 27002: { _M_impl._M_move_data(std::move(__x._M_impl)); } 27002: 27002: 27002: constexpr 27002: static size_t 27002: _S_nword(size_t __n) 27002: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 27002: }; 27002: # 689 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: template 27002: class vector : protected _Bvector_base<_Alloc> 27002: { 27002: typedef _Bvector_base<_Alloc> _Base; 27002: typedef typename _Base::_Bit_pointer _Bit_pointer; 27002: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 27002: 27002: 27002: friend struct std::hash; 27002: 27002: 27002: public: 27002: typedef bool value_type; 27002: typedef size_t size_type; 27002: typedef ptrdiff_t difference_type; 27002: typedef _Bit_reference reference; 27002: typedef bool const_reference; 27002: typedef _Bit_reference* pointer; 27002: typedef const bool* const_pointer; 27002: typedef _Bit_iterator iterator; 27002: typedef _Bit_const_iterator const_iterator; 27002: typedef std::reverse_iterator const_reverse_iterator; 27002: typedef std::reverse_iterator reverse_iterator; 27002: typedef _Alloc allocator_type; 27002: 27002: 27002: allocator_type 27002: get_allocator() const 27002: { return _Base::get_allocator(); } 27002: 27002: protected: 27002: using _Base::_M_allocate; 27002: using _Base::_M_deallocate; 27002: using _Base::_S_nword; 27002: using _Base::_M_get_Bit_allocator; 27002: 27002: public: 27002: 27002: vector() = default; 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: vector(const allocator_type& __a) 27002: : _Base(__a) { } 27002: 27002: 27002: 27002: explicit 27002: vector(size_type __n, const allocator_type& __a = allocator_type()) 27002: : vector(__n, false, __a) 27002: { } 27002: 27002: 27002: vector(size_type __n, const bool& __value, 27002: const allocator_type& __a = allocator_type()) 27002: 27002: 27002: 27002: 27002: 27002: : _Base(__a) 27002: { 27002: _M_initialize(__n); 27002: _M_initialize_value(__value); 27002: } 27002: 27002: 27002: vector(const vector& __x) 27002: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 27002: { 27002: _M_initialize(__x.size()); 27002: _M_copy_aligned(__x.begin(), __x.end(), begin()); 27002: } 27002: 27002: 27002: vector(vector&&) = default; 27002: 27002: private: 27002: 27002: vector(vector&& __x, const allocator_type& __a, true_type) noexcept 27002: : _Base(std::move(__x), __a) 27002: { } 27002: 27002: 27002: vector(vector&& __x, const allocator_type& __a, false_type) 27002: : _Base(__a) 27002: { 27002: if (__x.get_allocator() == __a) 27002: this->_M_move_data(std::move(__x)); 27002: else 27002: { 27002: _M_initialize(__x.size()); 27002: _M_copy_aligned(__x.begin(), __x.end(), begin()); 27002: __x.clear(); 27002: } 27002: } 27002: 27002: public: 27002: 27002: vector(vector&& __x, const __type_identity_t& __a) 27002: noexcept(_Bit_alloc_traits::_S_always_equal()) 27002: : vector(std::move(__x), __a, 27002: typename _Bit_alloc_traits::is_always_equal{}) 27002: { } 27002: 27002: 27002: vector(const vector& __x, const __type_identity_t& __a) 27002: : _Base(__a) 27002: { 27002: _M_initialize(__x.size()); 27002: _M_copy_aligned(__x.begin(), __x.end(), begin()); 27002: } 27002: 27002: 27002: vector(initializer_list __l, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(__a) 27002: { 27002: _M_initialize_range(__l.begin(), __l.end(), 27002: random_access_iterator_tag()); 27002: } 27002: 27002: 27002: 27002: template> 27002: 27002: vector(_InputIterator __first, _InputIterator __last, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(__a) 27002: { 27002: _M_initialize_range(__first, __last, 27002: std::__iterator_category(__first)); 27002: } 27002: # 838 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: 27002: ~vector() noexcept { } 27002: 27002: 27002: vector& 27002: operator=(const vector& __x) 27002: { 27002: if (&__x == this) 27002: return *this; 27002: 27002: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 27002: { 27002: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 27002: { 27002: this->_M_deallocate(); 27002: std::__alloc_on_copy(_M_get_Bit_allocator(), 27002: __x._M_get_Bit_allocator()); 27002: _M_initialize(__x.size()); 27002: } 27002: else 27002: std::__alloc_on_copy(_M_get_Bit_allocator(), 27002: __x._M_get_Bit_allocator()); 27002: } 27002: 27002: if (__x.size() > capacity()) 27002: { 27002: this->_M_deallocate(); 27002: _M_initialize(__x.size()); 27002: } 27002: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 27002: begin()); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: vector& 27002: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 27002: { 27002: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 27002: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 27002: { 27002: this->_M_deallocate(); 27002: this->_M_move_data(std::move(__x)); 27002: std::__alloc_on_move(_M_get_Bit_allocator(), 27002: __x._M_get_Bit_allocator()); 27002: } 27002: else 27002: { 27002: if (__x.size() > capacity()) 27002: { 27002: this->_M_deallocate(); 27002: _M_initialize(__x.size()); 27002: } 27002: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 27002: begin()); 27002: __x.clear(); 27002: } 27002: return *this; 27002: } 27002: 27002: 27002: vector& 27002: operator=(initializer_list __l) 27002: { 27002: this->assign(__l.begin(), __l.end()); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: assign(size_type __n, const bool& __x) 27002: { _M_fill_assign(__n, __x); } 27002: 27002: 27002: template> 27002: 27002: void 27002: assign(_InputIterator __first, _InputIterator __last) 27002: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 27002: # 936 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: 27002: void 27002: assign(initializer_list __l) 27002: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 27002: 27002: 27002: [[__nodiscard__]] 27002: iterator 27002: begin() noexcept 27002: { return iterator(this->_M_impl._M_start._M_p, 0); } 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: begin() const noexcept 27002: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 27002: 27002: [[__nodiscard__]] 27002: iterator 27002: end() noexcept 27002: { return this->_M_impl._M_finish; } 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: end() const noexcept 27002: { return this->_M_impl._M_finish; } 27002: 27002: [[__nodiscard__]] 27002: reverse_iterator 27002: rbegin() noexcept 27002: { return reverse_iterator(end()); } 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: rbegin() const noexcept 27002: { return const_reverse_iterator(end()); } 27002: 27002: [[__nodiscard__]] 27002: reverse_iterator 27002: rend() noexcept 27002: { return reverse_iterator(begin()); } 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: rend() const noexcept 27002: { return const_reverse_iterator(begin()); } 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: cbegin() const noexcept 27002: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: cend() const noexcept 27002: { return this->_M_impl._M_finish; } 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: crbegin() const noexcept 27002: { return const_reverse_iterator(end()); } 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: crend() const noexcept 27002: { return const_reverse_iterator(begin()); } 27002: 27002: 27002: [[__nodiscard__]] 27002: size_type 27002: size() const noexcept 27002: { return size_type(end() - begin()); } 27002: 27002: [[__nodiscard__]] 27002: size_type 27002: max_size() const noexcept 27002: { 27002: const size_type __isize = 27002: __gnu_cxx::__numeric_traits::__max 27002: - int(_S_word_bit) + 1; 27002: const size_type __asize 27002: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 27002: return (__asize <= __isize / int(_S_word_bit) 27002: ? __asize * int(_S_word_bit) : __isize); 27002: } 27002: 27002: [[__nodiscard__]] 27002: size_type 27002: capacity() const noexcept 27002: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 27002: - begin()); } 27002: 27002: [[__nodiscard__]] 27002: bool 27002: empty() const noexcept 27002: { return begin() == end(); } 27002: 27002: [[__nodiscard__]] 27002: reference 27002: operator[](size_type __n) 27002: { return begin()[__n]; } 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: operator[](size_type __n) const 27002: { return begin()[__n]; } 27002: 27002: protected: 27002: 27002: void 27002: _M_range_check(size_type __n) const 27002: { 27002: if (__n >= this->size()) 27002: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 27002: 27002: , 27002: __n, this->size()); 27002: } 27002: 27002: public: 27002: 27002: reference 27002: at(size_type __n) 27002: { 27002: _M_range_check(__n); 27002: return (*this)[__n]; 27002: } 27002: 27002: 27002: const_reference 27002: at(size_type __n) const 27002: { 27002: _M_range_check(__n); 27002: return (*this)[__n]; 27002: } 27002: 27002: 27002: void 27002: reserve(size_type __n) 27002: { 27002: if (__n > max_size()) 27002: __throw_length_error(("vector::reserve")); 27002: if (capacity() < __n) 27002: _M_reallocate(__n); 27002: } 27002: 27002: [[__nodiscard__]] 27002: reference 27002: front() 27002: { return *begin(); } 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: front() const 27002: { return *begin(); } 27002: 27002: [[__nodiscard__]] 27002: reference 27002: back() 27002: { return *(end() - 1); } 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: back() const 27002: { return *(end() - 1); } 27002: 27002: 27002: void 27002: push_back(bool __x) 27002: { 27002: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 27002: *this->_M_impl._M_finish++ = __x; 27002: else 27002: _M_insert_aux(end(), __x); 27002: } 27002: 27002: 27002: void 27002: swap(vector& __x) noexcept 27002: { 27002: 27002: do { if (std::__is_constant_evaluated() && !bool(_Bit_alloc_traits::propagate_on_container_swap::value || _M_get_Bit_allocator() == __x._M_get_Bit_allocator())) __builtin_unreachable(); } while (false) 27002: ; 27002: 27002: this->_M_impl._M_swap_data(__x._M_impl); 27002: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 27002: __x._M_get_Bit_allocator()); 27002: } 27002: 27002: 27002: 27002: static void 27002: swap(reference __x, reference __y) noexcept 27002: { 27002: bool __tmp = __x; 27002: __x = __y; 27002: __y = __tmp; 27002: } 27002: 27002: 27002: iterator 27002: 27002: insert(const_iterator __position, const bool& __x) 27002: 27002: 27002: 27002: { 27002: const difference_type __n = __position - begin(); 27002: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 27002: && __position == end()) 27002: *this->_M_impl._M_finish++ = __x; 27002: else 27002: _M_insert_aux(__position._M_const_cast(), __x); 27002: return begin() + __n; 27002: } 27002: 27002: 27002: __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) 27002: iterator 27002: insert(const_iterator __position) 27002: { return this->insert(__position._M_const_cast(), false); } 27002: 27002: 27002: 27002: template> 27002: 27002: iterator 27002: insert(const_iterator __position, 27002: _InputIterator __first, _InputIterator __last) 27002: { 27002: difference_type __offset = __position - cbegin(); 27002: _M_insert_range(__position._M_const_cast(), 27002: __first, __last, 27002: std::__iterator_category(__first)); 27002: return begin() + __offset; 27002: } 27002: # 1186 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: 27002: iterator 27002: insert(const_iterator __position, size_type __n, const bool& __x) 27002: { 27002: difference_type __offset = __position - cbegin(); 27002: _M_fill_insert(__position._M_const_cast(), __n, __x); 27002: return begin() + __offset; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: insert(const_iterator __p, initializer_list __l) 27002: { return this->insert(__p, __l.begin(), __l.end()); } 27002: 27002: 27002: 27002: void 27002: pop_back() 27002: { --this->_M_impl._M_finish; } 27002: 27002: 27002: iterator 27002: 27002: erase(const_iterator __position) 27002: 27002: 27002: 27002: { return _M_erase(__position._M_const_cast()); } 27002: 27002: 27002: iterator 27002: 27002: erase(const_iterator __first, const_iterator __last) 27002: 27002: 27002: 27002: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 27002: 27002: 27002: void 27002: resize(size_type __new_size, bool __x = bool()) 27002: { 27002: if (__new_size < size()) 27002: _M_erase_at_end(begin() + difference_type(__new_size)); 27002: else 27002: insert(end(), __new_size - size(), __x); 27002: } 27002: 27002: 27002: 27002: void 27002: shrink_to_fit() 27002: { _M_shrink_to_fit(); } 27002: 27002: 27002: 27002: void 27002: flip() noexcept 27002: { 27002: _Bit_type * const __end = this->_M_impl._M_end_addr(); 27002: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 27002: *__p = ~*__p; 27002: } 27002: 27002: 27002: void 27002: clear() noexcept 27002: { _M_erase_at_end(begin()); } 27002: 27002: 27002: template 27002: 27002: 27002: reference 27002: 27002: 27002: 27002: emplace_back(_Args&&... __args) 27002: { 27002: push_back(bool(__args...)); 27002: 27002: return back(); 27002: 27002: } 27002: 27002: template 27002: 27002: iterator 27002: emplace(const_iterator __pos, _Args&&... __args) 27002: { return insert(__pos, bool(__args...)); } 27002: 27002: 27002: protected: 27002: 27002: 27002: iterator 27002: _M_copy_aligned(const_iterator __first, const_iterator __last, 27002: iterator __result) 27002: { 27002: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 27002: return std::copy(const_iterator(__last._M_p, 0), __last, 27002: iterator(__q, 0)); 27002: } 27002: 27002: 27002: void 27002: _M_initialize(size_type __n) 27002: { 27002: if (__n) 27002: { 27002: _Bit_pointer __q = this->_M_allocate(__n); 27002: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 27002: iterator __start = iterator(std::__addressof(*__q), 0); 27002: this->_M_impl._M_start = __start; 27002: this->_M_impl._M_finish = __start + difference_type(__n); 27002: } 27002: } 27002: 27002: 27002: void 27002: _M_initialize_value(bool __x) noexcept 27002: { 27002: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 27002: __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); 27002: } 27002: 27002: 27002: void 27002: _M_reallocate(size_type __n); 27002: 27002: 27002: 27002: bool 27002: _M_shrink_to_fit(); 27002: # 1347 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: template 27002: 27002: void 27002: _M_initialize_range(_InputIterator __first, _InputIterator __last, 27002: std::input_iterator_tag) 27002: { 27002: for (; __first != __last; ++__first) 27002: push_back(*__first); 27002: } 27002: 27002: template 27002: 27002: void 27002: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 27002: std::forward_iterator_tag) 27002: { 27002: const size_type __n = std::distance(__first, __last); 27002: _M_initialize(__n); 27002: std::copy(__first, __last, begin()); 27002: } 27002: # 1383 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: 27002: void 27002: _M_fill_assign(size_t __n, bool __x) 27002: { 27002: if (__n > size()) 27002: { 27002: _M_initialize_value(__x); 27002: insert(end(), __n - size(), __x); 27002: } 27002: else 27002: { 27002: _M_erase_at_end(begin() + __n); 27002: _M_initialize_value(__x); 27002: } 27002: } 27002: 27002: template 27002: 27002: void 27002: _M_assign_aux(_InputIterator __first, _InputIterator __last, 27002: std::input_iterator_tag) 27002: { 27002: iterator __cur = begin(); 27002: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 27002: *__cur = *__first; 27002: if (__first == __last) 27002: _M_erase_at_end(__cur); 27002: else 27002: insert(end(), __first, __last); 27002: } 27002: 27002: template 27002: 27002: void 27002: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 27002: std::forward_iterator_tag) 27002: { 27002: const size_type __len = std::distance(__first, __last); 27002: if (__len < size()) 27002: _M_erase_at_end(std::copy(__first, __last, begin())); 27002: else 27002: { 27002: _ForwardIterator __mid = __first; 27002: std::advance(__mid, size()); 27002: std::copy(__first, __mid, begin()); 27002: insert(end(), __mid, __last); 27002: } 27002: } 27002: # 1450 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: 27002: void 27002: _M_fill_insert(iterator __position, size_type __n, bool __x); 27002: 27002: template 27002: 27002: void 27002: _M_insert_range(iterator __pos, _InputIterator __first, 27002: _InputIterator __last, std::input_iterator_tag) 27002: { 27002: for (; __first != __last; ++__first) 27002: { 27002: __pos = insert(__pos, *__first); 27002: ++__pos; 27002: } 27002: } 27002: 27002: template 27002: 27002: void 27002: _M_insert_range(iterator __position, _ForwardIterator __first, 27002: _ForwardIterator __last, std::forward_iterator_tag); 27002: 27002: 27002: void 27002: _M_insert_aux(iterator __position, bool __x); 27002: 27002: 27002: size_type 27002: _M_check_len(size_type __n, const char* __s) const 27002: { 27002: if (max_size() - size() < __n) 27002: __throw_length_error((__s)); 27002: 27002: const size_type __len = size() + std::max(size(), __n); 27002: return (__len < size() || __len > max_size()) ? max_size() : __len; 27002: } 27002: 27002: 27002: void 27002: _M_erase_at_end(iterator __pos) 27002: { this->_M_impl._M_finish = __pos; } 27002: 27002: 27002: iterator 27002: _M_erase(iterator __pos); 27002: 27002: 27002: iterator 27002: _M_erase(iterator __first, iterator __last); 27002: 27002: protected: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void data() = delete; 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: inline void 27002: __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, 27002: bool __x) noexcept 27002: { 27002: const _Bit_type __fmask = ~0ul << __first; 27002: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 27002: const _Bit_type __mask = __fmask & __lmask; 27002: 27002: if (__x) 27002: *__v |= __mask; 27002: else 27002: *__v &= ~__mask; 27002: } 27002: 27002: 27002: __attribute__((__nonnull__)) 27002: 27002: inline void 27002: __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept 27002: { 27002: # 1546 "/usr/include/c++/12/bits/stl_bvector.h" 3 27002: __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); 27002: } 27002: 27002: 27002: 27002: inline void 27002: __fill_a1(std::_Bit_iterator __first, 27002: std::_Bit_iterator __last, const bool& __x) 27002: { 27002: if (__first._M_p != __last._M_p) 27002: { 27002: _Bit_type* __first_p = __first._M_p; 27002: if (__first._M_offset != 0) 27002: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 27002: 27002: __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); 27002: 27002: if (__last._M_offset != 0) 27002: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 27002: } 27002: else if (__first._M_offset != __last._M_offset) 27002: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: struct hash> 27002: : public __hash_base> 27002: { 27002: size_t 27002: operator()(const std::vector&) const noexcept; 27002: }; 27002: 27002: 27002: 27002: } 27002: # 66 "/usr/include/c++/12/vector" 2 3 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/vector.tcc" 1 3 27002: # 59 "/usr/include/c++/12/bits/vector.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: vector<_Tp, _Alloc>:: 27002: reserve(size_type __n) 27002: { 27002: if (__n > this->max_size()) 27002: __throw_length_error(("vector::reserve")); 27002: if (this->capacity() < __n) 27002: { 27002: const size_type __old_size = size(); 27002: pointer __tmp; 27002: 27002: if constexpr (_S_use_relocate()) 27002: { 27002: __tmp = this->_M_allocate(__n); 27002: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 27002: __tmp, _M_get_Tp_allocator()); 27002: } 27002: else 27002: 27002: { 27002: __tmp = _M_allocate_and_copy(__n, 27002: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 27002: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 27002: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: } 27002: ; 27002: _M_deallocate(this->_M_impl._M_start, 27002: this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_start); 27002: this->_M_impl._M_start = __tmp; 27002: this->_M_impl._M_finish = __tmp + __old_size; 27002: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 27002: } 27002: } 27002: 27002: 27002: template 27002: template 27002: 27002: 27002: typename vector<_Tp, _Alloc>::reference 27002: 27002: 27002: 27002: vector<_Tp, _Alloc>:: 27002: emplace_back(_Args&&... __args) 27002: { 27002: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 27002: { 27002: ; 27002: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 27002: std::forward<_Args>(__args)...); 27002: ++this->_M_impl._M_finish; 27002: ; 27002: } 27002: else 27002: _M_realloc_insert(end(), std::forward<_Args>(__args)...); 27002: 27002: return back(); 27002: 27002: } 27002: 27002: 27002: template 27002: 27002: typename vector<_Tp, _Alloc>::iterator 27002: vector<_Tp, _Alloc>:: 27002: 27002: insert(const_iterator __position, const value_type& __x) 27002: 27002: 27002: 27002: { 27002: const size_type __n = __position - begin(); 27002: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 27002: if (__position == end()) 27002: { 27002: ; 27002: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 27002: __x); 27002: ++this->_M_impl._M_finish; 27002: ; 27002: } 27002: else 27002: { 27002: 27002: const auto __pos = begin() + (__position - cbegin()); 27002: 27002: 27002: _Temporary_value __x_copy(this, __x); 27002: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 27002: 27002: 27002: 27002: } 27002: else 27002: 27002: _M_realloc_insert(begin() + (__position - cbegin()), __x); 27002: 27002: 27002: 27002: 27002: return iterator(this->_M_impl._M_start + __n); 27002: } 27002: 27002: template 27002: 27002: typename vector<_Tp, _Alloc>::iterator 27002: vector<_Tp, _Alloc>:: 27002: _M_erase(iterator __position) 27002: { 27002: if (__position + 1 != end()) 27002: std::move(__position + 1, end(), __position); 27002: --this->_M_impl._M_finish; 27002: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 27002: ; 27002: return __position; 27002: } 27002: 27002: template 27002: 27002: typename vector<_Tp, _Alloc>::iterator 27002: vector<_Tp, _Alloc>:: 27002: _M_erase(iterator __first, iterator __last) 27002: { 27002: if (__first != __last) 27002: { 27002: if (__last != end()) 27002: std::move(__last, end(), __first); 27002: _M_erase_at_end(__first.base() + (end() - __last)); 27002: } 27002: return __first; 27002: } 27002: 27002: template 27002: 27002: vector<_Tp, _Alloc>& 27002: vector<_Tp, _Alloc>:: 27002: operator=(const vector<_Tp, _Alloc>& __x) 27002: { 27002: if (std::__addressof(__x) != this) 27002: { 27002: ; 27002: 27002: if (_Alloc_traits::_S_propagate_on_copy_assign()) 27002: { 27002: if (!_Alloc_traits::_S_always_equal() 27002: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 27002: { 27002: 27002: this->clear(); 27002: _M_deallocate(this->_M_impl._M_start, 27002: this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_start); 27002: this->_M_impl._M_start = nullptr; 27002: this->_M_impl._M_finish = nullptr; 27002: this->_M_impl._M_end_of_storage = nullptr; 27002: } 27002: std::__alloc_on_copy(_M_get_Tp_allocator(), 27002: __x._M_get_Tp_allocator()); 27002: } 27002: 27002: const size_type __xlen = __x.size(); 27002: if (__xlen > capacity()) 27002: { 27002: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 27002: __x.end()); 27002: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: _M_deallocate(this->_M_impl._M_start, 27002: this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_start); 27002: this->_M_impl._M_start = __tmp; 27002: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 27002: } 27002: else if (size() >= __xlen) 27002: { 27002: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 27002: end(), _M_get_Tp_allocator()); 27002: } 27002: else 27002: { 27002: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 27002: this->_M_impl._M_start); 27002: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 27002: __x._M_impl._M_finish, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: } 27002: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: 27002: void 27002: vector<_Tp, _Alloc>:: 27002: _M_fill_assign(size_t __n, const value_type& __val) 27002: { 27002: if (__n > capacity()) 27002: { 27002: vector __tmp(__n, __val, _M_get_Tp_allocator()); 27002: __tmp._M_impl._M_swap_data(this->_M_impl); 27002: } 27002: else if (__n > size()) 27002: { 27002: std::fill(begin(), end(), __val); 27002: const size_type __add = __n - size(); 27002: ; 27002: this->_M_impl._M_finish = 27002: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 27002: __add, __val, _M_get_Tp_allocator()); 27002: ; 27002: } 27002: else 27002: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 27002: } 27002: 27002: template 27002: template 27002: 27002: void 27002: vector<_Tp, _Alloc>:: 27002: _M_assign_aux(_InputIterator __first, _InputIterator __last, 27002: std::input_iterator_tag) 27002: { 27002: pointer __cur(this->_M_impl._M_start); 27002: for (; __first != __last && __cur != this->_M_impl._M_finish; 27002: ++__cur, (void)++__first) 27002: *__cur = *__first; 27002: if (__first == __last) 27002: _M_erase_at_end(__cur); 27002: else 27002: _M_range_insert(end(), __first, __last, 27002: std::__iterator_category(__first)); 27002: } 27002: 27002: template 27002: template 27002: 27002: void 27002: vector<_Tp, _Alloc>:: 27002: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 27002: std::forward_iterator_tag) 27002: { 27002: const size_type __len = std::distance(__first, __last); 27002: 27002: if (__len > capacity()) 27002: { 27002: _S_check_init_len(__len, _M_get_Tp_allocator()); 27002: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 27002: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: ; 27002: _M_deallocate(this->_M_impl._M_start, 27002: this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_start); 27002: this->_M_impl._M_start = __tmp; 27002: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 27002: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 27002: } 27002: else if (size() >= __len) 27002: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 27002: else 27002: { 27002: _ForwardIterator __mid = __first; 27002: std::advance(__mid, size()); 27002: std::copy(__first, __mid, this->_M_impl._M_start); 27002: const size_type __attribute__((__unused__)) __n = __len - size(); 27002: ; 27002: this->_M_impl._M_finish = 27002: std::__uninitialized_copy_a(__mid, __last, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: ; 27002: } 27002: } 27002: 27002: 27002: template 27002: 27002: auto 27002: vector<_Tp, _Alloc>:: 27002: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 27002: { 27002: const auto __n = __position - cbegin(); 27002: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 27002: if (__position == cend()) 27002: { 27002: ; 27002: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 27002: std::move(__v)); 27002: ++this->_M_impl._M_finish; 27002: ; 27002: } 27002: else 27002: _M_insert_aux(begin() + __n, std::move(__v)); 27002: else 27002: _M_realloc_insert(begin() + __n, std::move(__v)); 27002: 27002: return iterator(this->_M_impl._M_start + __n); 27002: } 27002: 27002: template 27002: template 27002: 27002: auto 27002: vector<_Tp, _Alloc>:: 27002: _M_emplace_aux(const_iterator __position, _Args&&... __args) 27002: -> iterator 27002: { 27002: const auto __n = __position - cbegin(); 27002: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 27002: if (__position == cend()) 27002: { 27002: ; 27002: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 27002: std::forward<_Args>(__args)...); 27002: ++this->_M_impl._M_finish; 27002: ; 27002: } 27002: else 27002: { 27002: 27002: 27002: 27002: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 27002: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 27002: } 27002: else 27002: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 27002: 27002: return iterator(this->_M_impl._M_start + __n); 27002: } 27002: 27002: template 27002: template 27002: 27002: void 27002: vector<_Tp, _Alloc>:: 27002: _M_insert_aux(iterator __position, _Arg&& __arg) 27002: 27002: 27002: 27002: 27002: 27002: 27002: { 27002: ; 27002: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 27002: std::move(*(this->_M_impl._M_finish - 1))); 27002: ++this->_M_impl._M_finish; 27002: ; 27002: 27002: 27002: 27002: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 27002: 27002: ; 27002: 27002: 27002: 27002: *__position = std::forward<_Arg>(__arg); 27002: 27002: } 27002: 27002: 27002: template 27002: template 27002: 27002: void 27002: vector<_Tp, _Alloc>:: 27002: _M_realloc_insert(iterator __position, _Args&&... __args) 27002: 27002: 27002: 27002: 27002: 27002: 27002: { 27002: const size_type __len = 27002: _M_check_len(size_type(1), "vector::_M_realloc_insert"); 27002: pointer __old_start = this->_M_impl._M_start; 27002: pointer __old_finish = this->_M_impl._M_finish; 27002: const size_type __elems_before = __position - begin(); 27002: pointer __new_start(this->_M_allocate(__len)); 27002: pointer __new_finish(__new_start); 27002: try 27002: { 27002: 27002: 27002: 27002: 27002: 27002: _Alloc_traits::construct(this->_M_impl, 27002: __new_start + __elems_before, 27002: 27002: std::forward<_Args>(__args)...); 27002: 27002: 27002: 27002: __new_finish = pointer(); 27002: 27002: 27002: if constexpr (_S_use_relocate()) 27002: { 27002: __new_finish = _S_relocate(__old_start, __position.base(), 27002: __new_start, _M_get_Tp_allocator()); 27002: 27002: ++__new_finish; 27002: 27002: __new_finish = _S_relocate(__position.base(), __old_finish, 27002: __new_finish, _M_get_Tp_allocator()); 27002: } 27002: else 27002: 27002: { 27002: __new_finish 27002: = std::__uninitialized_move_if_noexcept_a 27002: (__old_start, __position.base(), 27002: __new_start, _M_get_Tp_allocator()); 27002: 27002: ++__new_finish; 27002: 27002: __new_finish 27002: = std::__uninitialized_move_if_noexcept_a 27002: (__position.base(), __old_finish, 27002: __new_finish, _M_get_Tp_allocator()); 27002: } 27002: } 27002: catch(...) 27002: { 27002: if (!__new_finish) 27002: _Alloc_traits::destroy(this->_M_impl, 27002: __new_start + __elems_before); 27002: else 27002: std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); 27002: _M_deallocate(__new_start, __len); 27002: throw; 27002: } 27002: 27002: if constexpr (!_S_use_relocate()) 27002: 27002: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 27002: ; 27002: _M_deallocate(__old_start, 27002: this->_M_impl._M_end_of_storage - __old_start); 27002: this->_M_impl._M_start = __new_start; 27002: this->_M_impl._M_finish = __new_finish; 27002: this->_M_impl._M_end_of_storage = __new_start + __len; 27002: } 27002: 27002: template 27002: 27002: void 27002: vector<_Tp, _Alloc>:: 27002: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 27002: { 27002: if (__n != 0) 27002: { 27002: if (size_type(this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_finish) >= __n) 27002: { 27002: 27002: 27002: 27002: _Temporary_value __tmp(this, __x); 27002: value_type& __x_copy = __tmp._M_val(); 27002: 27002: const size_type __elems_after = end() - __position; 27002: pointer __old_finish(this->_M_impl._M_finish); 27002: if (__elems_after > __n) 27002: { 27002: ; 27002: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 27002: this->_M_impl._M_finish, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish += __n; 27002: ; 27002: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 27002: ; 27002: std::fill(__position.base(), __position.base() + __n, 27002: __x_copy); 27002: } 27002: else 27002: { 27002: ; 27002: this->_M_impl._M_finish = 27002: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 27002: __n - __elems_after, 27002: __x_copy, 27002: _M_get_Tp_allocator()); 27002: ; 27002: std::__uninitialized_move_a(__position.base(), __old_finish, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish += __elems_after; 27002: ; 27002: std::fill(__position.base(), __old_finish, __x_copy); 27002: } 27002: } 27002: else 27002: { 27002: const size_type __len = 27002: _M_check_len(__n, "vector::_M_fill_insert"); 27002: const size_type __elems_before = __position - begin(); 27002: pointer __new_start(this->_M_allocate(__len)); 27002: pointer __new_finish(__new_start); 27002: try 27002: { 27002: 27002: std::__uninitialized_fill_n_a(__new_start + __elems_before, 27002: __n, __x, 27002: _M_get_Tp_allocator()); 27002: __new_finish = pointer(); 27002: 27002: __new_finish 27002: = std::__uninitialized_move_if_noexcept_a 27002: (this->_M_impl._M_start, __position.base(), 27002: __new_start, _M_get_Tp_allocator()); 27002: 27002: __new_finish += __n; 27002: 27002: __new_finish 27002: = std::__uninitialized_move_if_noexcept_a 27002: (__position.base(), this->_M_impl._M_finish, 27002: __new_finish, _M_get_Tp_allocator()); 27002: } 27002: catch(...) 27002: { 27002: if (!__new_finish) 27002: std::_Destroy(__new_start + __elems_before, 27002: __new_start + __elems_before + __n, 27002: _M_get_Tp_allocator()); 27002: else 27002: std::_Destroy(__new_start, __new_finish, 27002: _M_get_Tp_allocator()); 27002: _M_deallocate(__new_start, __len); 27002: throw; 27002: } 27002: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: ; 27002: _M_deallocate(this->_M_impl._M_start, 27002: this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_start); 27002: this->_M_impl._M_start = __new_start; 27002: this->_M_impl._M_finish = __new_finish; 27002: this->_M_impl._M_end_of_storage = __new_start + __len; 27002: } 27002: } 27002: } 27002: 27002: 27002: template 27002: 27002: void 27002: vector<_Tp, _Alloc>:: 27002: _M_default_append(size_type __n) 27002: { 27002: if (__n != 0) 27002: { 27002: const size_type __size = size(); 27002: size_type __navail = size_type(this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_finish); 27002: 27002: if (__size > max_size() || __navail > max_size() - __size) 27002: __builtin_unreachable(); 27002: 27002: if (__navail >= __n) 27002: { 27002: ; 27002: this->_M_impl._M_finish = 27002: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 27002: __n, _M_get_Tp_allocator()); 27002: ; 27002: } 27002: else 27002: { 27002: const size_type __len = 27002: _M_check_len(__n, "vector::_M_default_append"); 27002: pointer __new_start(this->_M_allocate(__len)); 27002: if constexpr (_S_use_relocate()) 27002: { 27002: try 27002: { 27002: std::__uninitialized_default_n_a(__new_start + __size, 27002: __n, _M_get_Tp_allocator()); 27002: } 27002: catch(...) 27002: { 27002: _M_deallocate(__new_start, __len); 27002: throw; 27002: } 27002: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 27002: __new_start, _M_get_Tp_allocator()); 27002: } 27002: else 27002: { 27002: pointer __destroy_from = pointer(); 27002: try 27002: { 27002: std::__uninitialized_default_n_a(__new_start + __size, 27002: __n, _M_get_Tp_allocator()); 27002: __destroy_from = __new_start + __size; 27002: std::__uninitialized_move_if_noexcept_a( 27002: this->_M_impl._M_start, this->_M_impl._M_finish, 27002: __new_start, _M_get_Tp_allocator()); 27002: } 27002: catch(...) 27002: { 27002: if (__destroy_from) 27002: std::_Destroy(__destroy_from, __destroy_from + __n, 27002: _M_get_Tp_allocator()); 27002: _M_deallocate(__new_start, __len); 27002: throw; 27002: } 27002: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: } 27002: ; 27002: _M_deallocate(this->_M_impl._M_start, 27002: this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_start); 27002: this->_M_impl._M_start = __new_start; 27002: this->_M_impl._M_finish = __new_start + __size + __n; 27002: this->_M_impl._M_end_of_storage = __new_start + __len; 27002: } 27002: } 27002: } 27002: 27002: template 27002: 27002: bool 27002: vector<_Tp, _Alloc>:: 27002: _M_shrink_to_fit() 27002: { 27002: if (capacity() == size()) 27002: return false; 27002: ; 27002: return std::__shrink_to_fit_aux::_S_do_it(*this); 27002: } 27002: 27002: 27002: template 27002: template 27002: 27002: void 27002: vector<_Tp, _Alloc>:: 27002: _M_range_insert(iterator __pos, _InputIterator __first, 27002: _InputIterator __last, std::input_iterator_tag) 27002: { 27002: if (__pos == end()) 27002: { 27002: for (; __first != __last; ++__first) 27002: insert(end(), *__first); 27002: } 27002: else if (__first != __last) 27002: { 27002: vector __tmp(__first, __last, _M_get_Tp_allocator()); 27002: insert(__pos, 27002: std::make_move_iterator(__tmp.begin()), 27002: std::make_move_iterator(__tmp.end())); 27002: } 27002: } 27002: 27002: template 27002: template 27002: 27002: void 27002: vector<_Tp, _Alloc>:: 27002: _M_range_insert(iterator __position, _ForwardIterator __first, 27002: _ForwardIterator __last, std::forward_iterator_tag) 27002: { 27002: if (__first != __last) 27002: { 27002: const size_type __n = std::distance(__first, __last); 27002: if (size_type(this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_finish) >= __n) 27002: { 27002: const size_type __elems_after = end() - __position; 27002: pointer __old_finish(this->_M_impl._M_finish); 27002: if (__elems_after > __n) 27002: { 27002: ; 27002: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 27002: this->_M_impl._M_finish, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish += __n; 27002: ; 27002: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 27002: ; 27002: std::copy(__first, __last, __position); 27002: } 27002: else 27002: { 27002: _ForwardIterator __mid = __first; 27002: std::advance(__mid, __elems_after); 27002: ; 27002: std::__uninitialized_copy_a(__mid, __last, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish += __n - __elems_after; 27002: ; 27002: std::__uninitialized_move_a(__position.base(), 27002: __old_finish, 27002: this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: this->_M_impl._M_finish += __elems_after; 27002: ; 27002: std::copy(__first, __mid, __position); 27002: } 27002: } 27002: else 27002: { 27002: const size_type __len = 27002: _M_check_len(__n, "vector::_M_range_insert"); 27002: pointer __new_start(this->_M_allocate(__len)); 27002: pointer __new_finish(__new_start); 27002: try 27002: { 27002: __new_finish 27002: = std::__uninitialized_move_if_noexcept_a 27002: (this->_M_impl._M_start, __position.base(), 27002: __new_start, _M_get_Tp_allocator()); 27002: __new_finish 27002: = std::__uninitialized_copy_a(__first, __last, 27002: __new_finish, 27002: _M_get_Tp_allocator()); 27002: __new_finish 27002: = std::__uninitialized_move_if_noexcept_a 27002: (__position.base(), this->_M_impl._M_finish, 27002: __new_finish, _M_get_Tp_allocator()); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__new_start, __new_finish, 27002: _M_get_Tp_allocator()); 27002: _M_deallocate(__new_start, __len); 27002: throw; 27002: } 27002: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 27002: _M_get_Tp_allocator()); 27002: ; 27002: _M_deallocate(this->_M_impl._M_start, 27002: this->_M_impl._M_end_of_storage 27002: - this->_M_impl._M_start); 27002: this->_M_impl._M_start = __new_start; 27002: this->_M_impl._M_finish = __new_finish; 27002: this->_M_impl._M_end_of_storage = __new_start + __len; 27002: } 27002: } 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: vector:: 27002: _M_reallocate(size_type __n) 27002: { 27002: _Bit_pointer __q = this->_M_allocate(__n); 27002: iterator __start(std::__addressof(*__q), 0); 27002: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 27002: this->_M_deallocate(); 27002: this->_M_impl._M_start = __start; 27002: this->_M_impl._M_finish = __finish; 27002: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 27002: } 27002: 27002: template 27002: 27002: void 27002: vector:: 27002: _M_fill_insert(iterator __position, size_type __n, bool __x) 27002: { 27002: if (__n == 0) 27002: return; 27002: if (capacity() - size() >= __n) 27002: { 27002: std::copy_backward(__position, end(), 27002: this->_M_impl._M_finish + difference_type(__n)); 27002: std::fill(__position, __position + difference_type(__n), __x); 27002: this->_M_impl._M_finish += difference_type(__n); 27002: } 27002: else 27002: { 27002: const size_type __len = 27002: _M_check_len(__n, "vector::_M_fill_insert"); 27002: _Bit_pointer __q = this->_M_allocate(__len); 27002: iterator __start(std::__addressof(*__q), 0); 27002: iterator __i = _M_copy_aligned(begin(), __position, __start); 27002: std::fill(__i, __i + difference_type(__n), __x); 27002: iterator __finish = std::copy(__position, end(), 27002: __i + difference_type(__n)); 27002: this->_M_deallocate(); 27002: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 27002: this->_M_impl._M_start = __start; 27002: this->_M_impl._M_finish = __finish; 27002: } 27002: } 27002: 27002: template 27002: template 27002: 27002: void 27002: vector:: 27002: _M_insert_range(iterator __position, _ForwardIterator __first, 27002: _ForwardIterator __last, std::forward_iterator_tag) 27002: { 27002: if (__first != __last) 27002: { 27002: size_type __n = std::distance(__first, __last); 27002: if (capacity() - size() >= __n) 27002: { 27002: std::copy_backward(__position, end(), 27002: this->_M_impl._M_finish 27002: + difference_type(__n)); 27002: std::copy(__first, __last, __position); 27002: this->_M_impl._M_finish += difference_type(__n); 27002: } 27002: else 27002: { 27002: const size_type __len = 27002: _M_check_len(__n, "vector::_M_insert_range"); 27002: _Bit_pointer __q = this->_M_allocate(__len); 27002: iterator __start(std::__addressof(*__q), 0); 27002: iterator __i = _M_copy_aligned(begin(), __position, __start); 27002: __i = std::copy(__first, __last, __i); 27002: iterator __finish = std::copy(__position, end(), __i); 27002: this->_M_deallocate(); 27002: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 27002: this->_M_impl._M_start = __start; 27002: this->_M_impl._M_finish = __finish; 27002: } 27002: } 27002: } 27002: 27002: template 27002: 27002: void 27002: vector:: 27002: _M_insert_aux(iterator __position, bool __x) 27002: { 27002: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 27002: { 27002: std::copy_backward(__position, this->_M_impl._M_finish, 27002: this->_M_impl._M_finish + 1); 27002: *__position = __x; 27002: ++this->_M_impl._M_finish; 27002: } 27002: else 27002: { 27002: const size_type __len = 27002: _M_check_len(size_type(1), "vector::_M_insert_aux"); 27002: _Bit_pointer __q = this->_M_allocate(__len); 27002: iterator __start(std::__addressof(*__q), 0); 27002: iterator __i = _M_copy_aligned(begin(), __position, __start); 27002: *__i++ = __x; 27002: iterator __finish = std::copy(__position, end(), __i); 27002: this->_M_deallocate(); 27002: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 27002: this->_M_impl._M_start = __start; 27002: this->_M_impl._M_finish = __finish; 27002: } 27002: } 27002: 27002: template 27002: 27002: typename vector::iterator 27002: vector:: 27002: _M_erase(iterator __position) 27002: { 27002: if (__position + 1 != end()) 27002: std::copy(__position + 1, end(), __position); 27002: --this->_M_impl._M_finish; 27002: return __position; 27002: } 27002: 27002: template 27002: 27002: typename vector::iterator 27002: vector:: 27002: _M_erase(iterator __first, iterator __last) 27002: { 27002: if (__first != __last) 27002: _M_erase_at_end(std::copy(__last, end(), __first)); 27002: return __first; 27002: } 27002: 27002: 27002: template 27002: 27002: bool 27002: vector:: 27002: _M_shrink_to_fit() 27002: { 27002: if (capacity() - size() < int(_S_word_bit)) 27002: return false; 27002: try 27002: { 27002: if (size_type __n = size()) 27002: _M_reallocate(__n); 27002: else 27002: { 27002: this->_M_deallocate(); 27002: this->_M_impl._M_reset(); 27002: } 27002: return true; 27002: } 27002: catch(...) 27002: { return false; } 27002: } 27002: 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: size_t 27002: hash>:: 27002: operator()(const std::vector& __b) const noexcept 27002: { 27002: size_t __hash = 0; 27002: const size_t __words = __b.size() / _S_word_bit; 27002: if (__words) 27002: { 27002: const size_t __clength = __words * sizeof(_Bit_type); 27002: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 27002: } 27002: 27002: const size_t __extrabits = __b.size() % _S_word_bit; 27002: if (__extrabits) 27002: { 27002: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 27002: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 27002: 27002: const size_t __clength 27002: = (__extrabits + 8 - 1) / 8; 27002: if (__words) 27002: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 27002: else 27002: __hash = std::_Hash_impl::hash(&__hiword, __clength); 27002: } 27002: 27002: return __hash; 27002: } 27002: 27002: 27002: } 27002: # 71 "/usr/include/c++/12/vector" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace pmr { 27002: template class polymorphic_allocator; 27002: template 27002: using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 63 "/usr/include/c++/12/functional" 2 3 27002: # 1 "/usr/include/c++/12/array" 1 3 27002: # 32 "/usr/include/c++/12/array" 3 27002: 27002: # 33 "/usr/include/c++/12/array" 3 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/compare" 1 3 27002: # 33 "/usr/include/c++/12/compare" 3 27002: 27002: # 34 "/usr/include/c++/12/compare" 3 27002: # 39 "/usr/include/c++/12/array" 2 3 27002: # 48 "/usr/include/c++/12/array" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: struct __array_traits 27002: { 27002: typedef _Tp _Type[_Nm]; 27002: typedef __is_swappable<_Tp> _Is_swappable; 27002: typedef __is_nothrow_swappable<_Tp> _Is_nothrow_swappable; 27002: 27002: static constexpr _Tp& 27002: _S_ref(const _Type& __t, std::size_t __n) noexcept 27002: { return const_cast<_Tp&>(__t[__n]); } 27002: 27002: static constexpr _Tp* 27002: _S_ptr(const _Type& __t) noexcept 27002: { return const_cast<_Tp*>(__t); } 27002: }; 27002: 27002: template 27002: struct __array_traits<_Tp, 0> 27002: { 27002: struct _Type { }; 27002: typedef true_type _Is_swappable; 27002: typedef true_type _Is_nothrow_swappable; 27002: 27002: static constexpr _Tp& 27002: _S_ref(const _Type&, std::size_t) noexcept 27002: { return *static_cast<_Tp*>(nullptr); } 27002: 27002: static constexpr _Tp* 27002: _S_ptr(const _Type&) noexcept 27002: { return nullptr; } 27002: }; 27002: # 98 "/usr/include/c++/12/array" 3 27002: template 27002: struct array 27002: { 27002: typedef _Tp value_type; 27002: typedef value_type* pointer; 27002: typedef const value_type* const_pointer; 27002: typedef value_type& reference; 27002: typedef const value_type& const_reference; 27002: typedef value_type* iterator; 27002: typedef const value_type* const_iterator; 27002: typedef std::size_t size_type; 27002: typedef std::ptrdiff_t difference_type; 27002: typedef std::reverse_iterator reverse_iterator; 27002: typedef std::reverse_iterator const_reverse_iterator; 27002: 27002: 27002: typedef __array_traits<_Tp, _Nm> _AT_Type; 27002: typename _AT_Type::_Type _M_elems; 27002: 27002: 27002: 27002: 27002: void 27002: fill(const value_type& __u) 27002: { std::fill_n(begin(), size(), __u); } 27002: 27002: void 27002: swap(array& __other) 27002: noexcept(_AT_Type::_Is_nothrow_swappable::value) 27002: { std::swap_ranges(begin(), end(), __other.begin()); } 27002: 27002: 27002: [[__gnu__::__const__, __nodiscard__]] 27002: constexpr iterator 27002: begin() noexcept 27002: { return iterator(data()); } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_iterator 27002: begin() const noexcept 27002: { return const_iterator(data()); } 27002: 27002: [[__gnu__::__const__, __nodiscard__]] 27002: constexpr iterator 27002: end() noexcept 27002: { return iterator(data() + _Nm); } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_iterator 27002: end() const noexcept 27002: { return const_iterator(data() + _Nm); } 27002: 27002: [[__gnu__::__const__, __nodiscard__]] 27002: constexpr reverse_iterator 27002: rbegin() noexcept 27002: { return reverse_iterator(end()); } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_reverse_iterator 27002: rbegin() const noexcept 27002: { return const_reverse_iterator(end()); } 27002: 27002: [[__gnu__::__const__, __nodiscard__]] 27002: constexpr reverse_iterator 27002: rend() noexcept 27002: { return reverse_iterator(begin()); } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_reverse_iterator 27002: rend() const noexcept 27002: { return const_reverse_iterator(begin()); } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_iterator 27002: cbegin() const noexcept 27002: { return const_iterator(data()); } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_iterator 27002: cend() const noexcept 27002: { return const_iterator(data() + _Nm); } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_reverse_iterator 27002: crbegin() const noexcept 27002: { return const_reverse_iterator(end()); } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_reverse_iterator 27002: crend() const noexcept 27002: { return const_reverse_iterator(begin()); } 27002: 27002: 27002: [[__gnu__::__const__, __nodiscard__]] 27002: constexpr size_type 27002: size() const noexcept { return _Nm; } 27002: 27002: [[__gnu__::__const__, __nodiscard__]] 27002: constexpr size_type 27002: max_size() const noexcept { return _Nm; } 27002: 27002: [[__gnu__::__const__, __nodiscard__]] 27002: constexpr bool 27002: empty() const noexcept { return size() == 0; } 27002: 27002: 27002: [[__nodiscard__]] 27002: constexpr reference 27002: operator[](size_type __n) noexcept 27002: { 27002: ; 27002: return _AT_Type::_S_ref(_M_elems, __n); 27002: } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_reference 27002: operator[](size_type __n) const noexcept 27002: { 27002: 27002: ; 27002: 27002: return _AT_Type::_S_ref(_M_elems, __n); 27002: } 27002: 27002: constexpr reference 27002: at(size_type __n) 27002: { 27002: if (__n >= _Nm) 27002: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 27002: , 27002: __n, _Nm); 27002: return _AT_Type::_S_ref(_M_elems, __n); 27002: } 27002: 27002: constexpr const_reference 27002: at(size_type __n) const 27002: { 27002: 27002: 27002: return __n < _Nm ? _AT_Type::_S_ref(_M_elems, __n) 27002: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 27002: , 27002: __n, _Nm), 27002: _AT_Type::_S_ref(_M_elems, 0)); 27002: } 27002: 27002: [[__nodiscard__]] 27002: constexpr reference 27002: front() noexcept 27002: { 27002: ; 27002: return *begin(); 27002: } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_reference 27002: front() const noexcept 27002: { 27002: 27002: ; 27002: 27002: return _AT_Type::_S_ref(_M_elems, 0); 27002: } 27002: 27002: [[__nodiscard__]] 27002: constexpr reference 27002: back() noexcept 27002: { 27002: ; 27002: return _Nm ? *(end() - 1) : *end(); 27002: } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_reference 27002: back() const noexcept 27002: { 27002: 27002: ; 27002: 27002: return _Nm ? _AT_Type::_S_ref(_M_elems, _Nm - 1) 27002: : _AT_Type::_S_ref(_M_elems, 0); 27002: } 27002: 27002: [[__gnu__::__const__, __nodiscard__]] 27002: constexpr pointer 27002: data() noexcept 27002: { return _AT_Type::_S_ptr(_M_elems); } 27002: 27002: [[__nodiscard__]] 27002: constexpr const_pointer 27002: data() const noexcept 27002: { return _AT_Type::_S_ptr(_M_elems); } 27002: }; 27002: 27002: 27002: template 27002: array(_Tp, _Up...) 27002: -> array && ...), _Tp>, 27002: 1 + sizeof...(_Up)>; 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: 27002: inline bool 27002: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 27002: { return std::equal(__one.begin(), __one.end(), __two.begin()); } 27002: # 329 "/usr/include/c++/12/array" 3 27002: template 27002: [[__nodiscard__]] 27002: 27002: inline bool 27002: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 27002: { return !(__one == __two); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: 27002: inline bool 27002: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 27002: { 27002: return std::lexicographical_compare(__a.begin(), __a.end(), 27002: __b.begin(), __b.end()); 27002: } 27002: 27002: template 27002: [[__nodiscard__]] 27002: 27002: inline bool 27002: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 27002: { return __two < __one; } 27002: 27002: template 27002: [[__nodiscard__]] 27002: 27002: inline bool 27002: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 27002: { return !(__one > __two); } 27002: 27002: template 27002: [[__nodiscard__]] 27002: 27002: inline bool 27002: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 27002: { return !(__one < __two); } 27002: 27002: 27002: 27002: template 27002: 27002: inline 27002: 27002: 27002: typename enable_if< 27002: __array_traits<_Tp, _Nm>::_Is_swappable::value 27002: >::type 27002: 27002: 27002: 27002: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 27002: noexcept(noexcept(__one.swap(__two))) 27002: { __one.swap(__two); } 27002: 27002: 27002: template 27002: typename enable_if< 27002: !__array_traits<_Tp, _Nm>::_Is_swappable::value>::type 27002: swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: constexpr _Tp& 27002: get(array<_Tp, _Nm>& __arr) noexcept 27002: { 27002: static_assert(_Int < _Nm, "array index is within bounds"); 27002: return __array_traits<_Tp, _Nm>::_S_ref(__arr._M_elems, _Int); 27002: } 27002: 27002: template 27002: [[__nodiscard__]] 27002: constexpr _Tp&& 27002: get(array<_Tp, _Nm>&& __arr) noexcept 27002: { 27002: static_assert(_Int < _Nm, "array index is within bounds"); 27002: return std::move(std::get<_Int>(__arr)); 27002: } 27002: 27002: template 27002: [[__nodiscard__]] 27002: constexpr const _Tp& 27002: get(const array<_Tp, _Nm>& __arr) noexcept 27002: { 27002: static_assert(_Int < _Nm, "array index is within bounds"); 27002: return __array_traits<_Tp, _Nm>::_S_ref(__arr._M_elems, _Int); 27002: } 27002: 27002: template 27002: [[__nodiscard__]] 27002: constexpr const _Tp&& 27002: get(const array<_Tp, _Nm>&& __arr) noexcept 27002: { 27002: static_assert(_Int < _Nm, "array index is within bounds"); 27002: return std::move(std::get<_Int>(__arr)); 27002: } 27002: # 470 "/usr/include/c++/12/array" 3 27002: template 27002: struct tuple_size> 27002: : public integral_constant { }; 27002: 27002: 27002: template 27002: struct tuple_element<_Ind, array<_Tp, _Nm>> 27002: { 27002: static_assert(_Ind < _Nm, "array index is in range"); 27002: using type = _Tp; 27002: }; 27002: 27002: 27002: template 27002: inline constexpr size_t tuple_size_v> = _Nm; 27002: 27002: template 27002: inline constexpr size_t tuple_size_v> = _Nm; 27002: 27002: 27002: template 27002: struct __is_tuple_like_impl> : true_type 27002: { }; 27002: 27002: 27002: } 27002: # 64 "/usr/include/c++/12/functional" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_algo.h" 1 3 27002: # 59 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: # 1 "/usr/include/c++/12/bits/algorithmfwd.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/algorithmfwd.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/algorithmfwd.h" 3 27002: # 42 "/usr/include/c++/12/bits/algorithmfwd.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 199 "/usr/include/c++/12/bits/algorithmfwd.h" 3 27002: template 27002: 27002: bool 27002: all_of(_IIter, _IIter, _Predicate); 27002: 27002: template 27002: 27002: bool 27002: any_of(_IIter, _IIter, _Predicate); 27002: 27002: 27002: template 27002: 27002: bool 27002: binary_search(_FIter, _FIter, const _Tp&); 27002: 27002: template 27002: 27002: bool 27002: binary_search(_FIter, _FIter, const _Tp&, _Compare); 27002: 27002: 27002: template 27002: constexpr 27002: const _Tp& 27002: clamp(const _Tp&, const _Tp&, const _Tp&); 27002: 27002: template 27002: constexpr 27002: const _Tp& 27002: clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); 27002: 27002: 27002: template 27002: 27002: _OIter 27002: copy(_IIter, _IIter, _OIter); 27002: 27002: template 27002: 27002: _BIter2 27002: copy_backward(_BIter1, _BIter1, _BIter2); 27002: 27002: 27002: template 27002: 27002: _OIter 27002: copy_if(_IIter, _IIter, _OIter, _Predicate); 27002: 27002: template 27002: 27002: _OIter 27002: copy_n(_IIter, _Size, _OIter); 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: pair<_FIter, _FIter> 27002: equal_range(_FIter, _FIter, const _Tp&); 27002: 27002: template 27002: 27002: pair<_FIter, _FIter> 27002: equal_range(_FIter, _FIter, const _Tp&, _Compare); 27002: 27002: template 27002: 27002: void 27002: fill(_FIter, _FIter, const _Tp&); 27002: 27002: template 27002: 27002: _OIter 27002: fill_n(_OIter, _Size, const _Tp&); 27002: 27002: 27002: 27002: template 27002: 27002: _FIter1 27002: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 27002: 27002: template 27002: 27002: _FIter1 27002: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _IIter 27002: find_if_not(_IIter, _IIter, _Predicate); 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: bool 27002: includes(_IIter1, _IIter1, _IIter2, _IIter2); 27002: 27002: template 27002: 27002: bool 27002: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 27002: 27002: template 27002: void 27002: inplace_merge(_BIter, _BIter, _BIter); 27002: 27002: template 27002: void 27002: inplace_merge(_BIter, _BIter, _BIter, _Compare); 27002: 27002: 27002: template 27002: 27002: bool 27002: is_heap(_RAIter, _RAIter); 27002: 27002: template 27002: 27002: bool 27002: is_heap(_RAIter, _RAIter, _Compare); 27002: 27002: template 27002: 27002: _RAIter 27002: is_heap_until(_RAIter, _RAIter); 27002: 27002: template 27002: 27002: _RAIter 27002: is_heap_until(_RAIter, _RAIter, _Compare); 27002: 27002: template 27002: 27002: bool 27002: is_partitioned(_IIter, _IIter, _Predicate); 27002: 27002: template 27002: 27002: bool 27002: is_permutation(_FIter1, _FIter1, _FIter2); 27002: 27002: template 27002: 27002: bool 27002: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 27002: 27002: template 27002: 27002: bool 27002: is_sorted(_FIter, _FIter); 27002: 27002: template 27002: 27002: bool 27002: is_sorted(_FIter, _FIter, _Compare); 27002: 27002: template 27002: 27002: _FIter 27002: is_sorted_until(_FIter, _FIter); 27002: 27002: template 27002: 27002: _FIter 27002: is_sorted_until(_FIter, _FIter, _Compare); 27002: 27002: 27002: template 27002: 27002: void 27002: iter_swap(_FIter1, _FIter2); 27002: 27002: template 27002: 27002: _FIter 27002: lower_bound(_FIter, _FIter, const _Tp&); 27002: 27002: template 27002: 27002: _FIter 27002: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 27002: 27002: template 27002: 27002: void 27002: make_heap(_RAIter, _RAIter); 27002: 27002: template 27002: 27002: void 27002: make_heap(_RAIter, _RAIter, _Compare); 27002: 27002: template 27002: constexpr 27002: const _Tp& 27002: max(const _Tp&, const _Tp&); 27002: 27002: template 27002: constexpr 27002: const _Tp& 27002: max(const _Tp&, const _Tp&, _Compare); 27002: 27002: 27002: 27002: 27002: template 27002: constexpr 27002: const _Tp& 27002: min(const _Tp&, const _Tp&); 27002: 27002: template 27002: constexpr 27002: const _Tp& 27002: min(const _Tp&, const _Tp&, _Compare); 27002: 27002: 27002: 27002: 27002: template 27002: constexpr 27002: pair 27002: minmax(const _Tp&, const _Tp&); 27002: 27002: template 27002: constexpr 27002: pair 27002: minmax(const _Tp&, const _Tp&, _Compare); 27002: 27002: template 27002: constexpr 27002: pair<_FIter, _FIter> 27002: minmax_element(_FIter, _FIter); 27002: 27002: template 27002: constexpr 27002: pair<_FIter, _FIter> 27002: minmax_element(_FIter, _FIter, _Compare); 27002: 27002: template 27002: constexpr 27002: _Tp 27002: min(initializer_list<_Tp>); 27002: 27002: template 27002: constexpr 27002: _Tp 27002: min(initializer_list<_Tp>, _Compare); 27002: 27002: template 27002: constexpr 27002: _Tp 27002: max(initializer_list<_Tp>); 27002: 27002: template 27002: constexpr 27002: _Tp 27002: max(initializer_list<_Tp>, _Compare); 27002: 27002: template 27002: constexpr 27002: pair<_Tp, _Tp> 27002: minmax(initializer_list<_Tp>); 27002: 27002: template 27002: constexpr 27002: pair<_Tp, _Tp> 27002: minmax(initializer_list<_Tp>, _Compare); 27002: 27002: 27002: 27002: 27002: template 27002: 27002: bool 27002: next_permutation(_BIter, _BIter); 27002: 27002: template 27002: 27002: bool 27002: next_permutation(_BIter, _BIter, _Compare); 27002: 27002: 27002: template 27002: 27002: bool 27002: none_of(_IIter, _IIter, _Predicate); 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _RAIter 27002: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 27002: 27002: template 27002: 27002: _RAIter 27002: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 27002: 27002: 27002: 27002: 27002: template 27002: 27002: pair<_OIter1, _OIter2> 27002: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 27002: 27002: template 27002: 27002: _FIter 27002: partition_point(_FIter, _FIter, _Predicate); 27002: 27002: 27002: template 27002: 27002: void 27002: pop_heap(_RAIter, _RAIter); 27002: 27002: template 27002: 27002: void 27002: pop_heap(_RAIter, _RAIter, _Compare); 27002: 27002: template 27002: 27002: bool 27002: prev_permutation(_BIter, _BIter); 27002: 27002: template 27002: 27002: bool 27002: prev_permutation(_BIter, _BIter, _Compare); 27002: 27002: template 27002: 27002: void 27002: push_heap(_RAIter, _RAIter); 27002: 27002: template 27002: 27002: void 27002: push_heap(_RAIter, _RAIter, _Compare); 27002: 27002: 27002: 27002: template 27002: 27002: _FIter 27002: remove(_FIter, _FIter, const _Tp&); 27002: 27002: template 27002: 27002: _FIter 27002: remove_if(_FIter, _FIter, _Predicate); 27002: 27002: template 27002: 27002: _OIter 27002: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 27002: 27002: template 27002: 27002: _OIter 27002: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 27002: 27002: 27002: 27002: template 27002: 27002: _OIter 27002: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 27002: 27002: template 27002: 27002: _OIter 27002: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: reverse(_BIter, _BIter); 27002: 27002: template 27002: 27002: _OIter 27002: reverse_copy(_BIter, _BIter, _OIter); 27002: 27002: inline namespace _V2 27002: { 27002: template 27002: 27002: _FIter 27002: rotate(_FIter, _FIter, _FIter); 27002: } 27002: 27002: template 27002: 27002: _OIter 27002: rotate_copy(_FIter, _FIter, _FIter, _OIter); 27002: # 625 "/usr/include/c++/12/bits/algorithmfwd.h" 3 27002: template 27002: void 27002: shuffle(_RAIter, _RAIter, _UGenerator&&); 27002: 27002: 27002: template 27002: 27002: void 27002: sort_heap(_RAIter, _RAIter); 27002: 27002: template 27002: 27002: void 27002: sort_heap(_RAIter, _RAIter, _Compare); 27002: 27002: template 27002: _BIter 27002: stable_partition(_BIter, _BIter, _Predicate); 27002: # 658 "/usr/include/c++/12/bits/algorithmfwd.h" 3 27002: template 27002: 27002: _FIter2 27002: swap_ranges(_FIter1, _FIter1, _FIter2); 27002: 27002: 27002: 27002: template 27002: 27002: _FIter 27002: unique(_FIter, _FIter); 27002: 27002: template 27002: 27002: _FIter 27002: unique(_FIter, _FIter, _BinaryPredicate); 27002: 27002: 27002: 27002: template 27002: 27002: _FIter 27002: upper_bound(_FIter, _FIter, const _Tp&); 27002: 27002: template 27002: 27002: _FIter 27002: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 27002: 27002: 27002: 27002: template 27002: 27002: _FIter 27002: adjacent_find(_FIter, _FIter); 27002: 27002: template 27002: 27002: _FIter 27002: adjacent_find(_FIter, _FIter, _BinaryPredicate); 27002: 27002: template 27002: 27002: typename iterator_traits<_IIter>::difference_type 27002: count(_IIter, _IIter, const _Tp&); 27002: 27002: template 27002: 27002: typename iterator_traits<_IIter>::difference_type 27002: count_if(_IIter, _IIter, _Predicate); 27002: 27002: template 27002: 27002: bool 27002: equal(_IIter1, _IIter1, _IIter2); 27002: 27002: template 27002: 27002: bool 27002: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 27002: 27002: template 27002: 27002: _IIter 27002: find(_IIter, _IIter, const _Tp&); 27002: 27002: template 27002: 27002: _FIter1 27002: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 27002: 27002: template 27002: 27002: _FIter1 27002: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 27002: 27002: template 27002: 27002: _IIter 27002: find_if(_IIter, _IIter, _Predicate); 27002: 27002: template 27002: 27002: _Funct 27002: for_each(_IIter, _IIter, _Funct); 27002: 27002: template 27002: 27002: void 27002: generate(_FIter, _FIter, _Generator); 27002: 27002: template 27002: 27002: _OIter 27002: generate_n(_OIter, _Size, _Generator); 27002: 27002: template 27002: 27002: bool 27002: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 27002: 27002: template 27002: 27002: bool 27002: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 27002: 27002: template 27002: constexpr 27002: _FIter 27002: max_element(_FIter, _FIter); 27002: 27002: template 27002: constexpr 27002: _FIter 27002: max_element(_FIter, _FIter, _Compare); 27002: 27002: template 27002: 27002: _OIter 27002: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 27002: 27002: template 27002: 27002: _OIter 27002: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 27002: 27002: template 27002: constexpr 27002: _FIter 27002: min_element(_FIter, _FIter); 27002: 27002: template 27002: constexpr 27002: _FIter 27002: min_element(_FIter, _FIter, _Compare); 27002: 27002: template 27002: 27002: pair<_IIter1, _IIter2> 27002: mismatch(_IIter1, _IIter1, _IIter2); 27002: 27002: template 27002: 27002: pair<_IIter1, _IIter2> 27002: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 27002: 27002: template 27002: 27002: void 27002: nth_element(_RAIter, _RAIter, _RAIter); 27002: 27002: template 27002: 27002: void 27002: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 27002: 27002: template 27002: 27002: void 27002: partial_sort(_RAIter, _RAIter, _RAIter); 27002: 27002: template 27002: 27002: void 27002: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 27002: 27002: template 27002: 27002: _BIter 27002: partition(_BIter, _BIter, _Predicate); 27002: 27002: template 27002: void 27002: random_shuffle(_RAIter, _RAIter); 27002: 27002: template 27002: void 27002: random_shuffle(_RAIter, _RAIter, 27002: 27002: _Generator&&); 27002: 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: replace(_FIter, _FIter, const _Tp&, const _Tp&); 27002: 27002: template 27002: 27002: void 27002: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 27002: 27002: template 27002: 27002: _FIter1 27002: search(_FIter1, _FIter1, _FIter2, _FIter2); 27002: 27002: template 27002: 27002: _FIter1 27002: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 27002: 27002: template 27002: 27002: _FIter 27002: search_n(_FIter, _FIter, _Size, const _Tp&); 27002: 27002: template 27002: 27002: _FIter 27002: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 27002: 27002: template 27002: 27002: _OIter 27002: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 27002: 27002: template 27002: 27002: _OIter 27002: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 27002: 27002: template 27002: 27002: _OIter 27002: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 27002: 27002: template 27002: 27002: _OIter 27002: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 27002: 27002: template 27002: 27002: _OIter 27002: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 27002: 27002: template 27002: 27002: _OIter 27002: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 27002: _OIter, _Compare); 27002: 27002: template 27002: 27002: _OIter 27002: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 27002: 27002: template 27002: 27002: _OIter 27002: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 27002: 27002: template 27002: 27002: void 27002: sort(_RAIter, _RAIter); 27002: 27002: template 27002: 27002: void 27002: sort(_RAIter, _RAIter, _Compare); 27002: 27002: template 27002: void 27002: stable_sort(_RAIter, _RAIter); 27002: 27002: template 27002: void 27002: stable_sort(_RAIter, _RAIter, _Compare); 27002: 27002: template 27002: 27002: _OIter 27002: transform(_IIter, _IIter, _OIter, _UnaryOperation); 27002: 27002: template 27002: 27002: _OIter 27002: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 27002: 27002: template 27002: 27002: _OIter 27002: unique_copy(_IIter, _IIter, _OIter); 27002: 27002: template 27002: 27002: _OIter 27002: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 27002: 27002: 27002: 27002: } 27002: # 60 "/usr/include/c++/12/bits/stl_algo.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_heap.h" 1 3 27002: # 63 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _Distance 27002: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 27002: _Compare& __comp) 27002: { 27002: _Distance __parent = 0; 27002: for (_Distance __child = 1; __child < __n; ++__child) 27002: { 27002: if (__comp(__first + __parent, __first + __child)) 27002: return __child; 27002: if ((__child & 1) == 0) 27002: ++__parent; 27002: } 27002: return __n; 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: inline bool 27002: __is_heap(_RandomAccessIterator __first, _Distance __n) 27002: { 27002: __gnu_cxx::__ops::_Iter_less_iter __comp; 27002: return std::__is_heap_until(__first, __n, __comp) == __n; 27002: } 27002: 27002: template 27002: 27002: inline bool 27002: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 27002: { 27002: typedef __decltype(__comp) _Cmp; 27002: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 27002: return std::__is_heap_until(__first, __n, __cmp) == __n; 27002: } 27002: 27002: template 27002: 27002: inline bool 27002: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 27002: { return std::__is_heap(__first, std::distance(__first, __last)); } 27002: 27002: template 27002: 27002: inline bool 27002: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: return std::__is_heap(__first, std::move(__comp), 27002: std::distance(__first, __last)); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: __push_heap(_RandomAccessIterator __first, 27002: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 27002: _Compare& __comp) 27002: { 27002: _Distance __parent = (__holeIndex - 1) / 2; 27002: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 27002: { 27002: *(__first + __holeIndex) = std::move(*(__first + __parent)); 27002: __holeIndex = __parent; 27002: __parent = (__holeIndex - 1) / 2; 27002: } 27002: *(__first + __holeIndex) = std::move(__value); 27002: } 27002: # 159 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline void 27002: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 27002: { 27002: typedef typename iterator_traits<_RandomAccessIterator>::value_type 27002: _ValueType; 27002: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 27002: _DistanceType; 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: __gnu_cxx::__ops::_Iter_less_val __comp; 27002: _ValueType __value = std::move(*(__last - 1)); 27002: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 27002: _DistanceType(0), std::move(__value), __comp); 27002: } 27002: # 195 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline void 27002: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: typedef typename iterator_traits<_RandomAccessIterator>::value_type 27002: _ValueType; 27002: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 27002: _DistanceType; 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 27002: __cmp(std::move(__comp)); 27002: _ValueType __value = std::move(*(__last - 1)); 27002: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 27002: _DistanceType(0), std::move(__value), __cmp); 27002: } 27002: 27002: template 27002: 27002: void 27002: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 27002: _Distance __len, _Tp __value, _Compare __comp) 27002: { 27002: const _Distance __topIndex = __holeIndex; 27002: _Distance __secondChild = __holeIndex; 27002: while (__secondChild < (__len - 1) / 2) 27002: { 27002: __secondChild = 2 * (__secondChild + 1); 27002: if (__comp(__first + __secondChild, 27002: __first + (__secondChild - 1))) 27002: __secondChild--; 27002: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 27002: __holeIndex = __secondChild; 27002: } 27002: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 27002: { 27002: __secondChild = 2 * (__secondChild + 1); 27002: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 27002: ; 27002: __holeIndex = __secondChild - 1; 27002: } 27002: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 27002: __cmp(std::move(__comp)); 27002: std::__push_heap(__first, __holeIndex, __topIndex, 27002: std::move(__value), __cmp); 27002: } 27002: 27002: template 27002: 27002: inline void 27002: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _RandomAccessIterator __result, _Compare& __comp) 27002: { 27002: typedef typename iterator_traits<_RandomAccessIterator>::value_type 27002: _ValueType; 27002: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 27002: _DistanceType; 27002: 27002: _ValueType __value = std::move(*__result); 27002: *__result = std::move(*__first); 27002: std::__adjust_heap(__first, _DistanceType(0), 27002: _DistanceType(__last - __first), 27002: std::move(__value), __comp); 27002: } 27002: # 280 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline void 27002: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: if (__last - __first > 1) 27002: { 27002: --__last; 27002: __gnu_cxx::__ops::_Iter_less_iter __comp; 27002: std::__pop_heap(__first, __last, __last, __comp); 27002: } 27002: } 27002: # 314 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline void 27002: pop_heap(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: if (__last - __first > 1) 27002: { 27002: typedef __decltype(__comp) _Cmp; 27002: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 27002: --__last; 27002: std::__pop_heap(__first, __last, __last, __cmp); 27002: } 27002: } 27002: 27002: template 27002: 27002: void 27002: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare& __comp) 27002: { 27002: typedef typename iterator_traits<_RandomAccessIterator>::value_type 27002: _ValueType; 27002: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 27002: _DistanceType; 27002: 27002: if (__last - __first < 2) 27002: return; 27002: 27002: const _DistanceType __len = __last - __first; 27002: _DistanceType __parent = (__len - 2) / 2; 27002: while (true) 27002: { 27002: _ValueType __value = std::move(*(__first + __parent)); 27002: std::__adjust_heap(__first, __parent, __len, std::move(__value), 27002: __comp); 27002: if (__parent == 0) 27002: return; 27002: __parent--; 27002: } 27002: } 27002: # 372 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline void 27002: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: __gnu_cxx::__ops::_Iter_less_iter __comp; 27002: std::__make_heap(__first, __last, __comp); 27002: } 27002: # 399 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline void 27002: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: typedef __decltype(__comp) _Cmp; 27002: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 27002: std::__make_heap(__first, __last, __cmp); 27002: } 27002: 27002: template 27002: 27002: void 27002: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare& __comp) 27002: { 27002: while (__last - __first > 1) 27002: { 27002: --__last; 27002: std::__pop_heap(__first, __last, __last, __comp); 27002: } 27002: } 27002: # 437 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline void 27002: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: __gnu_cxx::__ops::_Iter_less_iter __comp; 27002: std::__sort_heap(__first, __last, __comp); 27002: } 27002: # 465 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline void 27002: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: typedef __decltype(__comp) _Cmp; 27002: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 27002: std::__sort_heap(__first, __last, __cmp); 27002: } 27002: # 494 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline _RandomAccessIterator 27002: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: __gnu_cxx::__ops::_Iter_less_iter __comp; 27002: return __first + 27002: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 27002: } 27002: # 523 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline _RandomAccessIterator 27002: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: typedef __decltype(__comp) _Cmp; 27002: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 27002: return __first 27002: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 27002: } 27002: # 548 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline bool 27002: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 27002: { return std::is_heap_until(__first, __last) == __last; } 27002: # 562 "/usr/include/c++/12/bits/stl_heap.h" 3 27002: template 27002: 27002: inline bool 27002: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: const auto __dist = std::distance(__first, __last); 27002: typedef __decltype(__comp) _Cmp; 27002: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 27002: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 27002: } 27002: 27002: 27002: 27002: } 27002: # 61 "/usr/include/c++/12/bits/stl_algo.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_tempbuf.h" 1 3 27002: # 62 "/usr/include/c++/12/bits/stl_tempbuf.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: namespace __detail 27002: { 27002: template 27002: inline void 27002: __return_temporary_buffer(_Tp* __p, 27002: size_t __len __attribute__((__unused__))) 27002: { 27002: 27002: ::operator delete(__p, __len * sizeof(_Tp)); 27002: 27002: 27002: 27002: } 27002: } 27002: # 98 "/usr/include/c++/12/bits/stl_tempbuf.h" 3 27002: template 27002: [[__deprecated__]] 27002: pair<_Tp*, ptrdiff_t> 27002: get_temporary_buffer(ptrdiff_t __len) noexcept 27002: { 27002: const ptrdiff_t __max = 27002: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 27002: if (__len > __max) 27002: __len = __max; 27002: 27002: while (__len > 0) 27002: { 27002: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 27002: std::nothrow)); 27002: if (__tmp != 0) 27002: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 27002: __len = __len == 1 ? 0 : ((__len + 1) / 2); 27002: } 27002: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 27002: } 27002: # 126 "/usr/include/c++/12/bits/stl_tempbuf.h" 3 27002: template 27002: inline void 27002: return_temporary_buffer(_Tp* __p) 27002: { ::operator delete(__p); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class _Temporary_buffer 27002: { 27002: 27002: 27002: 27002: public: 27002: typedef _Tp value_type; 27002: typedef value_type* pointer; 27002: typedef pointer iterator; 27002: typedef ptrdiff_t size_type; 27002: 27002: protected: 27002: size_type _M_original_len; 27002: size_type _M_len; 27002: pointer _M_buffer; 27002: 27002: public: 27002: 27002: size_type 27002: size() const 27002: { return _M_len; } 27002: 27002: 27002: size_type 27002: requested_size() const 27002: { return _M_original_len; } 27002: 27002: 27002: iterator 27002: begin() 27002: { return _M_buffer; } 27002: 27002: 27002: iterator 27002: end() 27002: { return _M_buffer + _M_len; } 27002: 27002: 27002: 27002: 27002: 27002: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 27002: 27002: ~_Temporary_buffer() 27002: { 27002: std::_Destroy(_M_buffer, _M_buffer + _M_len); 27002: std::__detail::__return_temporary_buffer(_M_buffer, _M_len); 27002: } 27002: 27002: private: 27002: 27002: _Temporary_buffer(const _Temporary_buffer&); 27002: 27002: void 27002: operator=(const _Temporary_buffer&); 27002: }; 27002: 27002: 27002: template 27002: struct __uninitialized_construct_buf_dispatch 27002: { 27002: template 27002: static void 27002: __ucr(_Pointer __first, _Pointer __last, 27002: _ForwardIterator __seed) 27002: { 27002: if (__first == __last) 27002: return; 27002: 27002: _Pointer __cur = __first; 27002: try 27002: { 27002: std::_Construct(std::__addressof(*__first), 27002: std::move(*__seed)); 27002: _Pointer __prev = __cur; 27002: ++__cur; 27002: for(; __cur != __last; ++__cur, ++__prev) 27002: std::_Construct(std::__addressof(*__cur), 27002: std::move(*__prev)); 27002: *__seed = std::move(*__prev); 27002: } 27002: catch(...) 27002: { 27002: std::_Destroy(__first, __cur); 27002: throw; 27002: } 27002: } 27002: }; 27002: 27002: template<> 27002: struct __uninitialized_construct_buf_dispatch 27002: { 27002: template 27002: static void 27002: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 27002: }; 27002: # 244 "/usr/include/c++/12/bits/stl_tempbuf.h" 3 27002: template 27002: inline void 27002: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 27002: _ForwardIterator __seed) 27002: { 27002: typedef typename std::iterator_traits<_Pointer>::value_type 27002: _ValueType; 27002: 27002: std::__uninitialized_construct_buf_dispatch< 27002: __has_trivial_constructor(_ValueType)>:: 27002: __ucr(__first, __last, __seed); 27002: } 27002: 27002: template 27002: _Temporary_buffer<_ForwardIterator, _Tp>:: 27002: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 27002: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 27002: { 27002: std::pair __p( 27002: std::get_temporary_buffer(_M_original_len)); 27002: 27002: if (__p.first) 27002: { 27002: try 27002: { 27002: std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, 27002: __seed); 27002: _M_buffer = __p.first; 27002: _M_len = __p.second; 27002: } 27002: catch(...) 27002: { 27002: std::__detail::__return_temporary_buffer(__p.first, __p.second); 27002: throw; 27002: } 27002: } 27002: } 27002: 27002: 27002: } 27002: # 62 "/usr/include/c++/12/bits/stl_algo.h" 2 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/uniform_int_dist.h" 1 3 27002: # 41 "/usr/include/c++/12/bits/uniform_int_dist.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 58 "/usr/include/c++/12/bits/uniform_int_dist.h" 3 27002: namespace __detail 27002: { 27002: 27002: 27002: 27002: template 27002: constexpr bool 27002: _Power_of_2(_Tp __x) 27002: { 27002: return ((__x - 1) & __x) == 0; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class uniform_int_distribution 27002: { 27002: static_assert(std::is_integral<_IntType>::value, 27002: "template argument must be an integral type"); 27002: 27002: public: 27002: 27002: typedef _IntType result_type; 27002: 27002: struct param_type 27002: { 27002: typedef uniform_int_distribution<_IntType> distribution_type; 27002: 27002: param_type() : param_type(0) { } 27002: 27002: explicit 27002: param_type(_IntType __a, 27002: _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) 27002: : _M_a(__a), _M_b(__b) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: result_type 27002: a() const 27002: { return _M_a; } 27002: 27002: result_type 27002: b() const 27002: { return _M_b; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _IntType _M_a; 27002: _IntType _M_b; 27002: }; 27002: 27002: public: 27002: 27002: 27002: 27002: uniform_int_distribution() : uniform_int_distribution(0) { } 27002: 27002: 27002: 27002: 27002: explicit 27002: uniform_int_distribution(_IntType __a, 27002: _IntType __b 27002: = __gnu_cxx::__int_traits<_IntType>::__max) 27002: : _M_param(__a, __b) 27002: { } 27002: 27002: explicit 27002: uniform_int_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: reset() { } 27002: 27002: result_type 27002: a() const 27002: { return _M_param.a(); } 27002: 27002: result_type 27002: b() const 27002: { return _M_param.b(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return this->a(); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return this->b(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomBitGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomBitGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomBitGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomBitGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomBitGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const uniform_int_distribution& __d1, 27002: const uniform_int_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomBitGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: 27002: 27002: 27002: 27002: template 27002: static _Up 27002: _S_nd(_Urbg& __g, _Up __range) 27002: { 27002: using _Up_traits = __gnu_cxx::__int_traits<_Up>; 27002: using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; 27002: static_assert(!_Up_traits::__is_signed, "U must be unsigned"); 27002: static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); 27002: static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), 27002: "W must be twice as wide as U"); 27002: 27002: 27002: 27002: 27002: _Wp __product = _Wp(__g()) * _Wp(__range); 27002: _Up __low = _Up(__product); 27002: if (__low < __range) 27002: { 27002: _Up __threshold = -__range % __range; 27002: while (__low < __threshold) 27002: { 27002: __product = _Wp(__g()) * _Wp(__range); 27002: __low = _Up(__product); 27002: } 27002: } 27002: return __product >> _Up_traits::__digits; 27002: } 27002: }; 27002: 27002: template 27002: template 27002: typename uniform_int_distribution<_IntType>::result_type 27002: uniform_int_distribution<_IntType>:: 27002: operator()(_UniformRandomBitGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 27002: typedef typename make_unsigned::type __utype; 27002: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 27002: 27002: constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); 27002: constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); 27002: static_assert( __urngmin < __urngmax, 27002: "Uniform random bit generator must define min() < max()"); 27002: constexpr __uctype __urngrange = __urngmax - __urngmin; 27002: 27002: const __uctype __urange 27002: = __uctype(__param.b()) - __uctype(__param.a()); 27002: 27002: __uctype __ret; 27002: if (__urngrange > __urange) 27002: { 27002: 27002: 27002: const __uctype __uerange = __urange + 1; 27002: # 312 "/usr/include/c++/12/bits/uniform_int_dist.h" 3 27002: if constexpr (__urngrange == 0xffffffffU) 27002: { 27002: 27002: 27002: unsigned int __u32erange = __uerange; 27002: __ret = _S_nd(__urng, __u32erange); 27002: } 27002: else 27002: 27002: { 27002: 27002: const __uctype __scaling = __urngrange / __uerange; 27002: const __uctype __past = __uerange * __scaling; 27002: do 27002: __ret = __uctype(__urng()) - __urngmin; 27002: while (__ret >= __past); 27002: __ret /= __scaling; 27002: } 27002: } 27002: else if (__urngrange < __urange) 27002: { 27002: # 348 "/usr/include/c++/12/bits/uniform_int_dist.h" 3 27002: __uctype __tmp; 27002: do 27002: { 27002: const __uctype __uerngrange = __urngrange + 1; 27002: __tmp = (__uerngrange * operator() 27002: (__urng, param_type(0, __urange / __uerngrange))); 27002: __ret = __tmp + (__uctype(__urng()) - __urngmin); 27002: } 27002: while (__ret > __urange || __ret < __tmp); 27002: } 27002: else 27002: __ret = __uctype(__urng()) - __urngmin; 27002: 27002: return __ret + __param.a(); 27002: } 27002: 27002: 27002: template 27002: template 27002: void 27002: uniform_int_distribution<_IntType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomBitGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: 27002: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 27002: typedef typename make_unsigned::type __utype; 27002: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 27002: 27002: static_assert( __urng.min() < __urng.max(), 27002: "Uniform random bit generator must define min() < max()"); 27002: 27002: constexpr __uctype __urngmin = __urng.min(); 27002: constexpr __uctype __urngmax = __urng.max(); 27002: constexpr __uctype __urngrange = __urngmax - __urngmin; 27002: const __uctype __urange 27002: = __uctype(__param.b()) - __uctype(__param.a()); 27002: 27002: __uctype __ret; 27002: 27002: if (__urngrange > __urange) 27002: { 27002: if (__detail::_Power_of_2(__urngrange + 1) 27002: && __detail::_Power_of_2(__urange + 1)) 27002: { 27002: while (__f != __t) 27002: { 27002: __ret = __uctype(__urng()) - __urngmin; 27002: *__f++ = (__ret & __urange) + __param.a(); 27002: } 27002: } 27002: else 27002: { 27002: 27002: const __uctype __uerange = __urange + 1; 27002: const __uctype __scaling = __urngrange / __uerange; 27002: const __uctype __past = __uerange * __scaling; 27002: while (__f != __t) 27002: { 27002: do 27002: __ret = __uctype(__urng()) - __urngmin; 27002: while (__ret >= __past); 27002: *__f++ = __ret / __scaling + __param.a(); 27002: } 27002: } 27002: } 27002: else if (__urngrange < __urange) 27002: { 27002: # 433 "/usr/include/c++/12/bits/uniform_int_dist.h" 3 27002: __uctype __tmp; 27002: while (__f != __t) 27002: { 27002: do 27002: { 27002: constexpr __uctype __uerngrange = __urngrange + 1; 27002: __tmp = (__uerngrange * operator() 27002: (__urng, param_type(0, __urange / __uerngrange))); 27002: __ret = __tmp + (__uctype(__urng()) - __urngmin); 27002: } 27002: while (__ret > __urange || __ret < __tmp); 27002: *__f++ = __ret; 27002: } 27002: } 27002: else 27002: while (__f != __t) 27002: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 27002: } 27002: 27002: 27002: 27002: 27002: } 27002: # 66 "/usr/include/c++/12/bits/stl_algo.h" 2 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cstdlib" 1 3 27002: # 39 "/usr/include/c++/12/cstdlib" 3 27002: 27002: # 40 "/usr/include/c++/12/cstdlib" 3 27002: # 75 "/usr/include/c++/12/cstdlib" 3 27002: # 1 "/usr/include/stdlib.h" 1 3 4 27002: # 26 "/usr/include/stdlib.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 27002: # 27 "/usr/include/stdlib.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 214 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 3 4 27002: typedef unsigned int size_t; 27002: # 33 "/usr/include/stdlib.h" 2 3 4 27002: 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4 27002: # 41 "/usr/include/stdlib.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4 27002: # 42 "/usr/include/stdlib.h" 2 3 4 27002: # 56 "/usr/include/stdlib.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 27002: # 52 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 27002: # 25 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 2 3 4 27002: # 214 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 27002: typedef float _Float32; 27002: # 238 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 27002: typedef long double _Float64; 27002: # 268 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 27002: typedef double _Float32x; 27002: # 53 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 2 3 4 27002: # 57 "/usr/include/stdlib.h" 2 3 4 27002: 27002: 27002: typedef struct 27002: { 27002: int quot; 27002: int rem; 27002: } div_t; 27002: 27002: 27002: 27002: typedef struct 27002: { 27002: long int quot; 27002: long int rem; 27002: } ldiv_t; 27002: 27002: 27002: 27002: 27002: 27002: __extension__ typedef struct 27002: { 27002: long long int quot; 27002: long long int rem; 27002: } lldiv_t; 27002: # 98 "/usr/include/stdlib.h" 3 4 27002: extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern double atof (const char *__nptr) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: extern int atoi (const char *__nptr) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: extern long int atol (const char *__nptr) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: __extension__ extern long long int atoll (const char *__nptr) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern double strtod (const char *__restrict __nptr, 27002: char **__restrict __endptr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern float strtof (const char *__restrict __nptr, 27002: char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: extern long double strtold (const char *__restrict __nptr, 27002: char **__restrict __endptr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: # 141 "/usr/include/stdlib.h" 3 4 27002: extern _Float32 strtof32 (const char *__restrict __nptr, 27002: char **__restrict __endptr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern _Float64 strtof64 (const char *__restrict __nptr, 27002: char **__restrict __endptr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: # 159 "/usr/include/stdlib.h" 3 4 27002: extern _Float32x strtof32x (const char *__restrict __nptr, 27002: char **__restrict __endptr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: # 177 "/usr/include/stdlib.h" 3 4 27002: extern long int strtol (const char *__restrict __nptr, 27002: char **__restrict __endptr, int __base) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: extern unsigned long int strtoul (const char *__restrict __nptr, 27002: char **__restrict __endptr, int __base) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: __extension__ 27002: extern long long int strtoq (const char *__restrict __nptr, 27002: char **__restrict __endptr, int __base) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: __extension__ 27002: extern unsigned long long int strtouq (const char *__restrict __nptr, 27002: char **__restrict __endptr, int __base) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: __extension__ 27002: extern long long int strtoll (const char *__restrict __nptr, 27002: char **__restrict __endptr, int __base) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: __extension__ 27002: extern unsigned long long int strtoull (const char *__restrict __nptr, 27002: char **__restrict __endptr, int __base) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: extern int strfromd (char *__dest, size_t __size, const char *__format, 27002: double __f) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))); 27002: 27002: extern int strfromf (char *__dest, size_t __size, const char *__format, 27002: float __f) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))); 27002: 27002: extern int strfroml (char *__dest, size_t __size, const char *__format, 27002: long double __f) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))); 27002: # 233 "/usr/include/stdlib.h" 3 4 27002: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 27002: _Float32 __f) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))); 27002: 27002: 27002: 27002: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 27002: _Float64 __f) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))); 27002: # 251 "/usr/include/stdlib.h" 3 4 27002: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 27002: _Float32x __f) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))); 27002: # 273 "/usr/include/stdlib.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 1 3 4 27002: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 1 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 3 4 27002: struct __locale_struct 27002: { 27002: 27002: struct __locale_data *__locales[13]; 27002: 27002: 27002: const unsigned short int *__ctype_b; 27002: const int *__ctype_tolower; 27002: const int *__ctype_toupper; 27002: 27002: 27002: const char *__names[13]; 27002: }; 27002: 27002: typedef struct __locale_struct *__locale_t; 27002: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 2 3 4 27002: 27002: typedef __locale_t locale_t; 27002: # 274 "/usr/include/stdlib.h" 2 3 4 27002: 27002: extern long int strtol_l (const char *__restrict __nptr, 27002: char **__restrict __endptr, int __base, 27002: locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 27002: 27002: extern unsigned long int strtoul_l (const char *__restrict __nptr, 27002: char **__restrict __endptr, 27002: int __base, locale_t __loc) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 27002: 27002: __extension__ 27002: extern long long int strtoll_l (const char *__restrict __nptr, 27002: char **__restrict __endptr, int __base, 27002: locale_t __loc) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 27002: 27002: __extension__ 27002: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 27002: char **__restrict __endptr, 27002: int __base, locale_t __loc) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 27002: 27002: extern double strtod_l (const char *__restrict __nptr, 27002: char **__restrict __endptr, locale_t __loc) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: 27002: extern float strtof_l (const char *__restrict __nptr, 27002: char **__restrict __endptr, locale_t __loc) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: 27002: extern long double strtold_l (const char *__restrict __nptr, 27002: char **__restrict __endptr, 27002: locale_t __loc) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: # 317 "/usr/include/stdlib.h" 3 4 27002: extern _Float32 strtof32_l (const char *__restrict __nptr, 27002: char **__restrict __endptr, 27002: locale_t __loc) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: 27002: 27002: 27002: extern _Float64 strtof64_l (const char *__restrict __nptr, 27002: char **__restrict __endptr, 27002: locale_t __loc) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: # 338 "/usr/include/stdlib.h" 3 4 27002: extern _Float32x strtof32x_l (const char *__restrict __nptr, 27002: char **__restrict __endptr, 27002: locale_t __loc) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: # 361 "/usr/include/stdlib.h" 3 4 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) 27002: { 27002: return (int) strtol (__nptr, (char **) __null, 10); 27002: } 27002: extern __inline __attribute__ ((__gnu_inline__)) long int 27002: __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) 27002: { 27002: return strtol (__nptr, (char **) __null, 10); 27002: } 27002: 27002: 27002: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 27002: __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) 27002: { 27002: return strtoll (__nptr, (char **) __null, 10); 27002: } 27002: # 386 "/usr/include/stdlib.h" 3 4 27002: extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: extern long int a64l (const char *__s) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: 27002: typedef __u_char u_char; 27002: typedef __u_short u_short; 27002: typedef __u_int u_int; 27002: typedef __u_long u_long; 27002: typedef __quad_t quad_t; 27002: typedef __u_quad_t u_quad_t; 27002: typedef __fsid_t fsid_t; 27002: 27002: 27002: typedef __loff_t loff_t; 27002: 27002: 27002: 27002: 27002: typedef __ino_t ino_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef __ino64_t ino64_t; 27002: 27002: 27002: 27002: 27002: typedef __dev_t dev_t; 27002: 27002: 27002: 27002: 27002: typedef __gid_t gid_t; 27002: 27002: 27002: 27002: 27002: typedef __mode_t mode_t; 27002: 27002: 27002: 27002: 27002: typedef __nlink_t nlink_t; 27002: 27002: 27002: 27002: 27002: typedef __uid_t uid_t; 27002: 27002: 27002: 27002: 27002: 27002: typedef __off_t off_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef __off64_t off64_t; 27002: 27002: 27002: 27002: 27002: typedef __pid_t pid_t; 27002: 27002: 27002: 27002: 27002: 27002: typedef __id_t id_t; 27002: 27002: 27002: 27002: 27002: typedef __ssize_t ssize_t; 27002: 27002: 27002: 27002: 27002: 27002: typedef __daddr_t daddr_t; 27002: typedef __caddr_t caddr_t; 27002: 27002: 27002: 27002: 27002: 27002: typedef __key_t key_t; 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clock_t.h" 1 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef __clock_t clock_t; 27002: # 127 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clockid_t.h" 1 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef __clockid_t clockid_t; 27002: # 129 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 1 3 4 27002: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 3 4 27002: typedef __time_t time_t; 27002: # 130 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/timer_t.h" 1 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef __timer_t timer_t; 27002: # 131 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 27002: 27002: 27002: 27002: typedef __useconds_t useconds_t; 27002: 27002: 27002: 27002: typedef __suseconds_t suseconds_t; 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 145 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 27002: 27002: 27002: 27002: typedef unsigned long int ulong; 27002: typedef unsigned short int ushort; 27002: typedef unsigned int uint; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef __uint8_t u_int8_t; 27002: typedef __uint16_t u_int16_t; 27002: typedef __uint32_t u_int32_t; 27002: typedef __uint64_t u_int64_t; 27002: 27002: 27002: typedef int register_t __attribute__ ((__mode__ (__word__))); 27002: # 176 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 27002: # 1 "/usr/include/endian.h" 1 3 4 27002: # 24 "/usr/include/endian.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4 27002: # 35 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/endianness.h" 1 3 4 27002: # 36 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 2 3 4 27002: # 25 "/usr/include/endian.h" 2 3 4 27002: # 35 "/usr/include/endian.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4 27002: # 33 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 27002: static __inline __uint16_t 27002: __bswap_16 (__uint16_t __bsx) 27002: { 27002: 27002: return __builtin_bswap16 (__bsx); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: static __inline __uint32_t 27002: __bswap_32 (__uint32_t __bsx) 27002: { 27002: 27002: return __builtin_bswap32 (__bsx); 27002: 27002: 27002: 27002: } 27002: # 69 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 27002: __extension__ static __inline __uint64_t 27002: __bswap_64 (__uint64_t __bsx) 27002: { 27002: 27002: return __builtin_bswap64 (__bsx); 27002: 27002: 27002: 27002: } 27002: # 36 "/usr/include/endian.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 1 3 4 27002: # 32 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 3 4 27002: static __inline __uint16_t 27002: __uint16_identity (__uint16_t __x) 27002: { 27002: return __x; 27002: } 27002: 27002: static __inline __uint32_t 27002: __uint32_identity (__uint32_t __x) 27002: { 27002: return __x; 27002: } 27002: 27002: static __inline __uint64_t 27002: __uint64_identity (__uint64_t __x) 27002: { 27002: return __x; 27002: } 27002: # 37 "/usr/include/endian.h" 2 3 4 27002: # 177 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4 27002: # 30 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4 27002: # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 1 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__sigset_t.h" 1 3 4 27002: 27002: 27002: 27002: 27002: typedef struct 27002: { 27002: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 27002: } __sigset_t; 27002: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 2 3 4 27002: 27002: 27002: typedef __sigset_t sigset_t; 27002: # 34 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timeval.h" 1 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct timeval 27002: { 27002: 27002: 27002: 27002: 27002: __time_t tv_sec; 27002: __suseconds_t tv_usec; 27002: 27002: }; 27002: # 38 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 1 3 4 27002: # 11 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 27002: struct timespec 27002: { 27002: 27002: 27002: 27002: __time_t tv_sec; 27002: 27002: 27002: 27002: 27002: __syscall_slong_t tv_nsec; 27002: # 31 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 27002: }; 27002: # 40 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 27002: # 49 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 27002: typedef long int __fd_mask; 27002: # 59 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 27002: typedef struct 27002: { 27002: 27002: 27002: 27002: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 27002: 27002: 27002: 27002: 27002: 27002: } fd_set; 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef __fd_mask fd_mask; 27002: # 91 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 27002: extern "C" { 27002: # 102 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 27002: extern int select (int __nfds, fd_set *__restrict __readfds, 27002: fd_set *__restrict __writefds, 27002: fd_set *__restrict __exceptfds, 27002: struct timeval *__restrict __timeout); 27002: # 127 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 27002: extern int pselect (int __nfds, fd_set *__restrict __readfds, 27002: fd_set *__restrict __writefds, 27002: fd_set *__restrict __exceptfds, 27002: const struct timespec *__restrict __timeout, 27002: const __sigset_t *__restrict __sigmask); 27002: # 150 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 3 4 27002: extern long int __fdelt_chk (long int __d); 27002: extern long int __fdelt_warn (long int __d) 27002: __attribute__((__warning__ ("bit outside of fd_set selected"))); 27002: # 151 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 27002: 27002: 27002: } 27002: # 180 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: typedef __blksize_t blksize_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef __blkcnt_t blkcnt_t; 27002: 27002: 27002: 27002: typedef __fsblkcnt_t fsblkcnt_t; 27002: 27002: 27002: 27002: typedef __fsfilcnt_t fsfilcnt_t; 27002: # 219 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 27002: typedef __blkcnt64_t blkcnt64_t; 27002: typedef __fsblkcnt64_t fsblkcnt64_t; 27002: typedef __fsfilcnt64_t fsfilcnt64_t; 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4 27002: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 1 3 4 27002: # 44 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 1 3 4 27002: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 2 3 4 27002: # 45 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 1 3 4 27002: # 25 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 3 4 27002: typedef union 27002: { 27002: __extension__ unsigned long long int __value64; 27002: struct 27002: { 27002: unsigned int __low; 27002: unsigned int __high; 27002: } __value32; 27002: } __atomic_wide_counter; 27002: # 47 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 27002: 27002: 27002: 27002: 27002: typedef struct __pthread_internal_list 27002: { 27002: struct __pthread_internal_list *__prev; 27002: struct __pthread_internal_list *__next; 27002: } __pthread_list_t; 27002: 27002: typedef struct __pthread_internal_slist 27002: { 27002: struct __pthread_internal_slist *__next; 27002: } __pthread_slist_t; 27002: # 76 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 1 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 27002: struct __pthread_mutex_s 27002: { 27002: int __lock ; 27002: unsigned int __count; 27002: int __owner; 27002: # 58 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 27002: int __kind; 27002: 27002: unsigned int __nusers; 27002: 27002: 27002: 27002: 27002: 27002: 27002: __extension__ union 27002: { 27002: int __spins; 27002: __pthread_slist_t __list; 27002: }; 27002: 27002: 27002: }; 27002: # 77 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 27002: # 89 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 1 3 4 27002: # 29 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 27002: struct __pthread_rwlock_arch_t 27002: { 27002: unsigned int __readers; 27002: unsigned int __writers; 27002: unsigned int __wrphase_futex; 27002: unsigned int __writers_futex; 27002: unsigned int __pad3; 27002: unsigned int __pad4; 27002: # 45 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 27002: unsigned char __flags; 27002: unsigned char __shared; 27002: unsigned char __pad1; 27002: unsigned char __pad2; 27002: 27002: int __cur_writer; 27002: }; 27002: # 90 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 27002: 27002: 27002: 27002: 27002: struct __pthread_cond_s 27002: { 27002: __atomic_wide_counter __wseq; 27002: __atomic_wide_counter __g1_start; 27002: unsigned int __g_refs[2] ; 27002: unsigned int __g_size[2]; 27002: unsigned int __g1_orig_size; 27002: unsigned int __wrefs; 27002: unsigned int __g_signals[2]; 27002: }; 27002: 27002: typedef unsigned int __tss_t; 27002: typedef unsigned long int __thrd_t; 27002: 27002: typedef struct 27002: { 27002: int __data ; 27002: } __once_flag; 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 2 3 4 27002: 27002: 27002: 27002: typedef unsigned long int pthread_t; 27002: 27002: 27002: 27002: 27002: typedef union 27002: { 27002: char __size[4]; 27002: int __align; 27002: } pthread_mutexattr_t; 27002: 27002: 27002: 27002: 27002: typedef union 27002: { 27002: char __size[4]; 27002: int __align; 27002: } pthread_condattr_t; 27002: 27002: 27002: 27002: typedef unsigned int pthread_key_t; 27002: 27002: 27002: 27002: typedef int pthread_once_t; 27002: 27002: 27002: union pthread_attr_t 27002: { 27002: char __size[36]; 27002: long int __align; 27002: }; 27002: 27002: typedef union pthread_attr_t pthread_attr_t; 27002: 27002: 27002: 27002: 27002: typedef union 27002: { 27002: struct __pthread_mutex_s __data; 27002: char __size[24]; 27002: long int __align; 27002: } pthread_mutex_t; 27002: 27002: 27002: typedef union 27002: { 27002: struct __pthread_cond_s __data; 27002: char __size[48]; 27002: __extension__ long long int __align; 27002: } pthread_cond_t; 27002: 27002: 27002: 27002: 27002: 27002: typedef union 27002: { 27002: struct __pthread_rwlock_arch_t __data; 27002: char __size[32]; 27002: long int __align; 27002: } pthread_rwlock_t; 27002: 27002: typedef union 27002: { 27002: char __size[8]; 27002: long int __align; 27002: } pthread_rwlockattr_t; 27002: 27002: 27002: 27002: 27002: 27002: typedef volatile int pthread_spinlock_t; 27002: 27002: 27002: 27002: 27002: typedef union 27002: { 27002: char __size[20]; 27002: long int __align; 27002: } pthread_barrier_t; 27002: 27002: typedef union 27002: { 27002: char __size[4]; 27002: int __align; 27002: } pthread_barrierattr_t; 27002: # 228 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 27002: 27002: 27002: } 27002: # 396 "/usr/include/stdlib.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long int random (void) noexcept (true); 27002: 27002: 27002: extern void srandom (unsigned int __seed) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern char *initstate (unsigned int __seed, char *__statebuf, 27002: size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct random_data 27002: { 27002: int32_t *fptr; 27002: int32_t *rptr; 27002: int32_t *state; 27002: int rand_type; 27002: int rand_deg; 27002: int rand_sep; 27002: int32_t *end_ptr; 27002: }; 27002: 27002: extern int random_r (struct random_data *__restrict __buf, 27002: int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 27002: size_t __statelen, 27002: struct random_data *__restrict __buf) 27002: noexcept (true) __attribute__ ((__nonnull__ (2, 4))); 27002: 27002: extern int setstate_r (char *__restrict __statebuf, 27002: struct random_data *__restrict __buf) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: 27002: extern int rand (void) noexcept (true); 27002: 27002: extern void srand (unsigned int __seed) noexcept (true); 27002: 27002: 27002: 27002: extern int rand_r (unsigned int *__seed) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern double drand48 (void) noexcept (true); 27002: extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern long int lrand48 (void) noexcept (true); 27002: extern long int nrand48 (unsigned short int __xsubi[3]) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern long int mrand48 (void) noexcept (true); 27002: extern long int jrand48 (unsigned short int __xsubi[3]) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern void srand48 (long int __seedval) noexcept (true); 27002: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: struct drand48_data 27002: { 27002: unsigned short int __x[3]; 27002: unsigned short int __old_x[3]; 27002: unsigned short int __c; 27002: unsigned short int __init; 27002: __extension__ unsigned long long int __a; 27002: 27002: }; 27002: 27002: 27002: extern int drand48_r (struct drand48_data *__restrict __buffer, 27002: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: extern int erand48_r (unsigned short int __xsubi[3], 27002: struct drand48_data *__restrict __buffer, 27002: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int lrand48_r (struct drand48_data *__restrict __buffer, 27002: long int *__restrict __result) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: extern int nrand48_r (unsigned short int __xsubi[3], 27002: struct drand48_data *__restrict __buffer, 27002: long int *__restrict __result) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int mrand48_r (struct drand48_data *__restrict __buffer, 27002: long int *__restrict __result) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: extern int jrand48_r (unsigned short int __xsubi[3], 27002: struct drand48_data *__restrict __buffer, 27002: long int *__restrict __result) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: extern int seed48_r (unsigned short int __seed16v[3], 27002: struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: extern int lcong48_r (unsigned short int __param[7], 27002: struct drand48_data *__buffer) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern __uint32_t arc4random (void) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: extern void arc4random_buf (void *__buf, size_t __size) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 27002: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: extern void *calloc (size_t __nmemb, size_t __size) 27002: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern void *realloc (void *__ptr, size_t __size) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 27002: 27002: 27002: extern void free (void *__ptr) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__alloc_size__ (2, 3))) 27002: __attribute__ ((__malloc__ (__builtin_free, 1))); 27002: 27002: 27002: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 27002: noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); 27002: 27002: 27002: 27002: # 1 "/usr/include/alloca.h" 1 3 4 27002: # 24 "/usr/include/alloca.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 25 "/usr/include/alloca.h" 2 3 4 27002: 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: 27002: extern void *alloca (size_t __size) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 588 "/usr/include/stdlib.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 27002: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern void *aligned_alloc (size_t __alignment, size_t __size) 27002: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 27002: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); 27002: 27002: 27002: 27002: extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: extern "C++" int at_quick_exit (void (*__func) (void)) 27002: noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 27002: # 630 "/usr/include/stdlib.h" 3 4 27002: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 27002: 27002: 27002: 27002: 27002: 27002: extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 27002: 27002: 27002: 27002: 27002: 27002: extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 27002: 27002: 27002: 27002: 27002: extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern char *secure_getenv (const char *__name) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: extern int setenv (const char *__name, const char *__value, int __replace) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int clearenv (void) noexcept (true); 27002: # 695 "/usr/include/stdlib.h" 3 4 27002: extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: # 708 "/usr/include/stdlib.h" 3 4 27002: extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 718 "/usr/include/stdlib.h" 3 4 27002: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 730 "/usr/include/stdlib.h" 3 4 27002: extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 740 "/usr/include/stdlib.h" 3 4 27002: extern int mkstemps64 (char *__template, int __suffixlen) 27002: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 751 "/usr/include/stdlib.h" 3 4 27002: extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 762 "/usr/include/stdlib.h" 3 4 27002: extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 772 "/usr/include/stdlib.h" 3 4 27002: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 782 "/usr/include/stdlib.h" 3 4 27002: extern int mkostemps (char *__template, int __suffixlen, int __flags) 27002: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 794 "/usr/include/stdlib.h" 3 4 27002: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 27002: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 804 "/usr/include/stdlib.h" 3 4 27002: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: extern char *canonicalize_file_name (const char *__name) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) 27002: __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); 27002: # 821 "/usr/include/stdlib.h" 3 4 27002: extern char *realpath (const char *__restrict __name, 27002: char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef int (*__compar_fn_t) (const void *, const void *); 27002: 27002: 27002: typedef __compar_fn_t comparison_fn_t; 27002: 27002: 27002: 27002: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 27002: 27002: 27002: 27002: 27002: extern void *bsearch (const void *__key, const void *__base, 27002: size_t __nmemb, size_t __size, __compar_fn_t __compar) 27002: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 1 3 4 27002: # 19 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 3 4 27002: extern __inline __attribute__ ((__gnu_inline__)) void * 27002: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 27002: __compar_fn_t __compar) 27002: { 27002: size_t __l, __u, __idx; 27002: const void *__p; 27002: int __comparison; 27002: 27002: __l = 0; 27002: __u = __nmemb; 27002: while (__l < __u) 27002: { 27002: __idx = (__l + __u) / 2; 27002: __p = (const void *) (((const char *) __base) + (__idx * __size)); 27002: __comparison = (*__compar) (__key, __p); 27002: if (__comparison < 0) 27002: __u = __idx; 27002: else if (__comparison > 0) 27002: __l = __idx + 1; 27002: else 27002: { 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wcast-qual" 27002: 27002: return (void *) __p; 27002: 27002: #pragma GCC diagnostic pop 27002: 27002: } 27002: } 27002: 27002: return __null; 27002: } 27002: # 847 "/usr/include/stdlib.h" 2 3 4 27002: 27002: 27002: 27002: 27002: extern void qsort (void *__base, size_t __nmemb, size_t __size, 27002: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 27002: 27002: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 27002: __compar_d_fn_t __compar, void *__arg) 27002: __attribute__ ((__nonnull__ (1, 4))); 27002: 27002: 27002: 27002: 27002: extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 27002: extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: __extension__ extern long long int llabs (long long int __x) 27002: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern div_t div (int __numer, int __denom) 27002: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 27002: extern ldiv_t ldiv (long int __numer, long int __denom) 27002: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: __extension__ extern lldiv_t lldiv (long long int __numer, 27002: long long int __denom) 27002: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 27002: # 893 "/usr/include/stdlib.h" 3 4 27002: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 27002: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 27002: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern char *gcvt (double __value, int __ndigit, char *__buf) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern char *qecvt (long double __value, int __ndigit, 27002: int *__restrict __decpt, int *__restrict __sign) 27002: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 27002: extern char *qfcvt (long double __value, int __ndigit, 27002: int *__restrict __decpt, int *__restrict __sign) 27002: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 27002: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 27002: int *__restrict __sign, char *__restrict __buf, 27002: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 27002: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 27002: int *__restrict __sign, char *__restrict __buf, 27002: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 27002: 27002: extern int qecvt_r (long double __value, int __ndigit, 27002: int *__restrict __decpt, int *__restrict __sign, 27002: char *__restrict __buf, size_t __len) 27002: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 27002: extern int qfcvt_r (long double __value, int __ndigit, 27002: int *__restrict __decpt, int *__restrict __sign, 27002: char *__restrict __buf, size_t __len) 27002: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 27002: 27002: 27002: 27002: 27002: 27002: extern int mblen (const char *__s, size_t __n) noexcept (true); 27002: 27002: 27002: extern int mbtowc (wchar_t *__restrict __pwc, 27002: const char *__restrict __s, size_t __n) noexcept (true); 27002: 27002: 27002: extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); 27002: 27002: 27002: 27002: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 27002: const char *__restrict __s, size_t __n) noexcept (true) 27002: __attribute__ ((__access__ (__read_only__, 2))); 27002: 27002: extern size_t wcstombs (char *__restrict __s, 27002: const wchar_t *__restrict __pwcs, size_t __n) 27002: noexcept (true) 27002: __attribute__ ((__access__ (__write_only__, 1, 3))) 27002: __attribute__ ((__access__ (__read_only__, 2))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 980 "/usr/include/stdlib.h" 3 4 27002: extern int getsubopt (char **__restrict __optionp, 27002: char *const *__restrict __tokens, 27002: char **__restrict __valuep) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int grantpt (int __fd) noexcept (true); 27002: 27002: 27002: 27002: extern int unlockpt (int __fd) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: 27002: 27002: extern int getpt (void); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int getloadavg (double __loadavg[], int __nelem) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: # 1036 "/usr/include/stdlib.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 3 4 27002: extern __inline __attribute__ ((__gnu_inline__)) double 27002: __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) 27002: { 27002: return strtod (__nptr, (char **) __null); 27002: } 27002: # 1037 "/usr/include/stdlib.h" 2 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 1 3 4 27002: # 23 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 3 4 27002: extern char *__realpath_chk (const char *__restrict __name, 27002: char *__restrict __resolved, 27002: size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") 27002: 27002: __attribute__ ((__warn_unused_result__)); 27002: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) 27002: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 27002: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char *__restrict __resolved) noexcept (true) 27002: { 27002: size_t sz = __builtin_object_size (__resolved, 2 > 1); 27002: 27002: if (sz == (size_t) -1) 27002: return __realpath_alias (__name, __resolved); 27002: 27002: 27002: 27002: 27002: 27002: return __realpath_chk (__name, __resolved, sz); 27002: } 27002: 27002: 27002: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 27002: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") 27002: 27002: __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") 27002: 27002: 27002: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) ptsname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") 27002: __attribute__ ((__warn_unused_result__)); 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 27002: __attribute__ ((__leaf__)) wctomb (char *__s, wchar_t __wchar) noexcept (true) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 27002: && 16 > __builtin_object_size (__s, 2 > 1)) 27002: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 27002: return __wctomb_alias (__s, __wchar); 27002: } 27002: 27002: 27002: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 27002: const char *__restrict __src, 27002: size_t __len, size_t __dstlen) noexcept (true) 27002: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 27002: extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 27002: 27002: 27002: 27002: __attribute__ ((__access__ (__read_only__, 2))); 27002: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 27002: 27002: 27002: 27002: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 27002: 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") 27002: 27002: 27002: 27002: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 27002: __attribute__ ((__leaf__)) mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) 27002: 27002: { 27002: if (__builtin_constant_p (__dst == __null) && __dst == __null) 27002: return __mbstowcs_nulldst (__dst, __src, __len); 27002: else 27002: 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))))) 27002: ; 27002: } 27002: 27002: extern size_t __wcstombs_chk (char *__restrict __dst, 27002: const wchar_t *__restrict __src, 27002: size_t __len, size_t __dstlen) noexcept (true) 27002: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 27002: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") 27002: 27002: 27002: 27002: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 27002: 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") 27002: 27002: 27002: 27002: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 27002: __attribute__ ((__leaf__)) wcstombs (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) 27002: 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: # 1041 "/usr/include/stdlib.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 27002: # 1044 "/usr/include/stdlib.h" 2 3 4 27002: 27002: 27002: 27002: 27002: } 27002: # 76 "/usr/include/c++/12/cstdlib" 2 3 27002: 27002: # 1 "/usr/include/c++/12/bits/std_abs.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/std_abs.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/std_abs.h" 3 27002: # 46 "/usr/include/c++/12/bits/std_abs.h" 3 27002: extern "C++" 27002: { 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: using ::abs; 27002: 27002: 27002: inline long 27002: abs(long __i) { return __builtin_labs(__i); } 27002: 27002: 27002: 27002: inline long long 27002: abs(long long __x) { return __builtin_llabs (__x); } 27002: # 70 "/usr/include/c++/12/bits/std_abs.h" 3 27002: inline constexpr double 27002: abs(double __x) 27002: { return __builtin_fabs(__x); } 27002: 27002: inline constexpr float 27002: abs(float __x) 27002: { return __builtin_fabsf(__x); } 27002: 27002: inline constexpr long double 27002: abs(long double __x) 27002: { return __builtin_fabsl(__x); } 27002: # 107 "/usr/include/c++/12/bits/std_abs.h" 3 27002: 27002: } 27002: } 27002: # 78 "/usr/include/c++/12/cstdlib" 2 3 27002: # 121 "/usr/include/c++/12/cstdlib" 3 27002: extern "C++" 27002: { 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: using ::div_t; 27002: using ::ldiv_t; 27002: 27002: using ::abort; 27002: 27002: using ::aligned_alloc; 27002: 27002: using ::atexit; 27002: 27002: 27002: using ::at_quick_exit; 27002: 27002: 27002: using ::atof; 27002: using ::atoi; 27002: using ::atol; 27002: using ::bsearch; 27002: using ::calloc; 27002: using ::div; 27002: using ::exit; 27002: using ::free; 27002: using ::getenv; 27002: using ::labs; 27002: using ::ldiv; 27002: using ::malloc; 27002: 27002: using ::mblen; 27002: using ::mbstowcs; 27002: using ::mbtowc; 27002: 27002: using ::qsort; 27002: 27002: 27002: using ::quick_exit; 27002: 27002: 27002: using ::rand; 27002: using ::realloc; 27002: using ::srand; 27002: using ::strtod; 27002: using ::strtol; 27002: using ::strtoul; 27002: using ::system; 27002: 27002: using ::wcstombs; 27002: using ::wctomb; 27002: 27002: 27002: 27002: inline ldiv_t 27002: div(long __i, long __j) { return ldiv(__i, __j); } 27002: 27002: 27002: 27002: 27002: } 27002: # 195 "/usr/include/c++/12/cstdlib" 3 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: using ::lldiv_t; 27002: 27002: 27002: 27002: 27002: 27002: using ::_Exit; 27002: 27002: 27002: 27002: using ::llabs; 27002: 27002: inline lldiv_t 27002: div(long long __n, long long __d) 27002: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 27002: 27002: using ::lldiv; 27002: # 227 "/usr/include/c++/12/cstdlib" 3 27002: using ::atoll; 27002: using ::strtoll; 27002: using ::strtoull; 27002: 27002: using ::strtof; 27002: using ::strtold; 27002: 27002: 27002: } 27002: 27002: namespace std 27002: { 27002: 27002: using ::__gnu_cxx::lldiv_t; 27002: 27002: using ::__gnu_cxx::_Exit; 27002: 27002: using ::__gnu_cxx::llabs; 27002: using ::__gnu_cxx::div; 27002: using ::__gnu_cxx::lldiv; 27002: 27002: using ::__gnu_cxx::atoll; 27002: using ::__gnu_cxx::strtof; 27002: using ::__gnu_cxx::strtoll; 27002: using ::__gnu_cxx::strtoull; 27002: using ::__gnu_cxx::strtold; 27002: } 27002: 27002: 27002: 27002: } 27002: # 70 "/usr/include/c++/12/bits/stl_algo.h" 2 3 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 27002: _Iterator __c, _Compare __comp) 27002: { 27002: if (__comp(__a, __b)) 27002: { 27002: if (__comp(__b, __c)) 27002: std::iter_swap(__result, __b); 27002: else if (__comp(__a, __c)) 27002: std::iter_swap(__result, __c); 27002: else 27002: std::iter_swap(__result, __a); 27002: } 27002: else if (__comp(__a, __c)) 27002: std::iter_swap(__result, __a); 27002: else if (__comp(__b, __c)) 27002: std::iter_swap(__result, __c); 27002: else 27002: std::iter_swap(__result, __b); 27002: } 27002: 27002: 27002: template 27002: 27002: inline _InputIterator 27002: __find_if_not(_InputIterator __first, _InputIterator __last, 27002: _Predicate __pred) 27002: { 27002: return std::__find_if(__first, __last, 27002: __gnu_cxx::__ops::__negate(__pred), 27002: std::__iterator_category(__first)); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _InputIterator 27002: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 27002: { 27002: for (; __len; --__len, (void) ++__first) 27002: if (!__pred(__first)) 27002: break; 27002: return __first; 27002: } 27002: # 141 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _ForwardIterator1 27002: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 27002: _BinaryPredicate __predicate) 27002: { 27002: 27002: if (__first1 == __last1 || __first2 == __last2) 27002: return __first1; 27002: 27002: 27002: _ForwardIterator2 __p1(__first2); 27002: if (++__p1 == __last2) 27002: return std::__find_if(__first1, __last1, 27002: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 27002: 27002: 27002: _ForwardIterator1 __current = __first1; 27002: 27002: for (;;) 27002: { 27002: __first1 = 27002: std::__find_if(__first1, __last1, 27002: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 27002: 27002: if (__first1 == __last1) 27002: return __last1; 27002: 27002: _ForwardIterator2 __p = __p1; 27002: __current = __first1; 27002: if (++__current == __last1) 27002: return __last1; 27002: 27002: while (__predicate(__current, __p)) 27002: { 27002: if (++__p == __last2) 27002: return __first1; 27002: if (++__current == __last1) 27002: return __last1; 27002: } 27002: ++__first1; 27002: } 27002: return __first1; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 27002: _Integer __count, _UnaryPredicate __unary_pred, 27002: std::forward_iterator_tag) 27002: { 27002: __first = std::__find_if(__first, __last, __unary_pred); 27002: while (__first != __last) 27002: { 27002: typename iterator_traits<_ForwardIterator>::difference_type 27002: __n = __count; 27002: _ForwardIterator __i = __first; 27002: ++__i; 27002: while (__i != __last && __n != 1 && __unary_pred(__i)) 27002: { 27002: ++__i; 27002: --__n; 27002: } 27002: if (__n == 1) 27002: return __first; 27002: if (__i == __last) 27002: return __last; 27002: __first = std::__find_if(++__i, __last, __unary_pred); 27002: } 27002: return __last; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _RandomAccessIter 27002: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 27002: _Integer __count, _UnaryPredicate __unary_pred, 27002: std::random_access_iterator_tag) 27002: { 27002: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 27002: _DistanceType; 27002: 27002: _DistanceType __tailSize = __last - __first; 27002: _DistanceType __remainder = __count; 27002: 27002: while (__remainder <= __tailSize) 27002: { 27002: __first += __remainder; 27002: __tailSize -= __remainder; 27002: 27002: 27002: _RandomAccessIter __backTrack = __first; 27002: while (__unary_pred(--__backTrack)) 27002: { 27002: if (--__remainder == 0) 27002: return (__first - __count); 27002: } 27002: __remainder = __count + 1 - (__first - __backTrack); 27002: } 27002: return __last; 27002: } 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __search_n(_ForwardIterator __first, _ForwardIterator __last, 27002: _Integer __count, 27002: _UnaryPredicate __unary_pred) 27002: { 27002: if (__count <= 0) 27002: return __first; 27002: 27002: if (__count == 1) 27002: return std::__find_if(__first, __last, __unary_pred); 27002: 27002: return std::__search_n_aux(__first, __last, __count, __unary_pred, 27002: std::__iterator_category(__first)); 27002: } 27002: 27002: 27002: template 27002: 27002: _ForwardIterator1 27002: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 27002: forward_iterator_tag, forward_iterator_tag, 27002: _BinaryPredicate __comp) 27002: { 27002: if (__first2 == __last2) 27002: return __last1; 27002: 27002: _ForwardIterator1 __result = __last1; 27002: while (1) 27002: { 27002: _ForwardIterator1 __new_result 27002: = std::__search(__first1, __last1, __first2, __last2, __comp); 27002: if (__new_result == __last1) 27002: return __result; 27002: else 27002: { 27002: __result = __new_result; 27002: __first1 = __new_result; 27002: ++__first1; 27002: } 27002: } 27002: } 27002: 27002: 27002: template 27002: 27002: _BidirectionalIterator1 27002: __find_end(_BidirectionalIterator1 __first1, 27002: _BidirectionalIterator1 __last1, 27002: _BidirectionalIterator2 __first2, 27002: _BidirectionalIterator2 __last2, 27002: bidirectional_iterator_tag, bidirectional_iterator_tag, 27002: _BinaryPredicate __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 27002: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 27002: 27002: _RevIterator1 __rlast1(__first1); 27002: _RevIterator2 __rlast2(__first2); 27002: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 27002: _RevIterator2(__last2), __rlast2, 27002: __comp); 27002: 27002: if (__rresult == __rlast1) 27002: return __last1; 27002: else 27002: { 27002: _BidirectionalIterator1 __result = __rresult.base(); 27002: std::advance(__result, -std::distance(__first2, __last2)); 27002: return __result; 27002: } 27002: } 27002: # 367 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator1 27002: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__find_end(__first1, __last1, __first2, __last2, 27002: std::__iterator_category(__first1), 27002: std::__iterator_category(__first2), 27002: __gnu_cxx::__ops::__iter_equal_to_iter()); 27002: } 27002: # 416 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator1 27002: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 27002: _BinaryPredicate __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__find_end(__first1, __last1, __first2, __last2, 27002: std::__iterator_category(__first1), 27002: std::__iterator_category(__first2), 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: # 452 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 27002: { return __last == std::find_if_not(__first, __last, __pred); } 27002: # 470 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 27002: { return __last == std::find_if(__first, __last, __pred); } 27002: # 489 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 27002: { return !std::none_of(__first, __last, __pred); } 27002: # 505 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _InputIterator 27002: find_if_not(_InputIterator __first, _InputIterator __last, 27002: _Predicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: return std::__find_if_not(__first, __last, 27002: __gnu_cxx::__ops::__pred_iter(__pred)); 27002: } 27002: # 530 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: is_partitioned(_InputIterator __first, _InputIterator __last, 27002: _Predicate __pred) 27002: { 27002: __first = std::find_if_not(__first, __last, __pred); 27002: if (__first == __last) 27002: return true; 27002: ++__first; 27002: return std::none_of(__first, __last, __pred); 27002: } 27002: # 552 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _ForwardIterator 27002: partition_point(_ForwardIterator __first, _ForwardIterator __last, 27002: _Predicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: typedef typename iterator_traits<_ForwardIterator>::difference_type 27002: _DistanceType; 27002: 27002: _DistanceType __len = std::distance(__first, __last); 27002: 27002: while (__len > 0) 27002: { 27002: _DistanceType __half = __len >> 1; 27002: _ForwardIterator __middle = __first; 27002: std::advance(__middle, __half); 27002: if (__pred(*__middle)) 27002: { 27002: __first = __middle; 27002: ++__first; 27002: __len = __len - __half - 1; 27002: } 27002: else 27002: __len = __half; 27002: } 27002: return __first; 27002: } 27002: 27002: 27002: template 27002: 27002: _OutputIterator 27002: __remove_copy_if(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _Predicate __pred) 27002: { 27002: for (; __first != __last; ++__first) 27002: if (!__pred(__first)) 27002: { 27002: *__result = *__first; 27002: ++__result; 27002: } 27002: return __result; 27002: } 27002: # 619 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: remove_copy(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, const _Tp& __value) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__remove_copy_if(__first, __last, __result, 27002: __gnu_cxx::__ops::__iter_equals_val(__value)); 27002: } 27002: # 652 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: remove_copy_if(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _Predicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__remove_copy_if(__first, __last, __result, 27002: __gnu_cxx::__ops::__pred_iter(__pred)); 27002: } 27002: # 687 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _OutputIterator 27002: copy_if(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _Predicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first != __last; ++__first) 27002: if (__pred(*__first)) 27002: { 27002: *__result = *__first; 27002: ++__result; 27002: } 27002: return __result; 27002: } 27002: 27002: template 27002: 27002: _OutputIterator 27002: __copy_n(_InputIterator __first, _Size __n, 27002: _OutputIterator __result, input_iterator_tag) 27002: { 27002: return std::__niter_wrap(__result, 27002: __copy_n_a(__first, __n, 27002: std::__niter_base(__result), true)); 27002: } 27002: 27002: template 27002: 27002: inline _OutputIterator 27002: __copy_n(_RandomAccessIterator __first, _Size __n, 27002: _OutputIterator __result, random_access_iterator_tag) 27002: { return std::copy(__first, __first + __n, __result); } 27002: # 743 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: const auto __n2 = std::__size_to_integer(__n); 27002: if (__n2 <= 0) 27002: return __result; 27002: 27002: ; 27002: ; 27002: 27002: return std::__copy_n(__first, __n2, __result, 27002: std::__iterator_category(__first)); 27002: } 27002: # 779 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: pair<_OutputIterator1, _OutputIterator2> 27002: partition_copy(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 27002: _Predicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first != __last; ++__first) 27002: if (__pred(*__first)) 27002: { 27002: *__out_true = *__first; 27002: ++__out_true; 27002: } 27002: else 27002: { 27002: *__out_false = *__first; 27002: ++__out_false; 27002: } 27002: 27002: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 27002: } 27002: # 830 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: remove(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __value) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__remove_if(__first, __last, 27002: __gnu_cxx::__ops::__iter_equals_val(__value)); 27002: } 27002: # 864 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: remove_if(_ForwardIterator __first, _ForwardIterator __last, 27002: _Predicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__remove_if(__first, __last, 27002: __gnu_cxx::__ops::__pred_iter(__pred)); 27002: } 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 27002: _BinaryPredicate __binary_pred) 27002: { 27002: if (__first == __last) 27002: return __last; 27002: _ForwardIterator __next = __first; 27002: while (++__next != __last) 27002: { 27002: if (__binary_pred(__first, __next)) 27002: return __first; 27002: __first = __next; 27002: } 27002: return __last; 27002: } 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __unique(_ForwardIterator __first, _ForwardIterator __last, 27002: _BinaryPredicate __binary_pred) 27002: { 27002: 27002: __first = std::__adjacent_find(__first, __last, __binary_pred); 27002: if (__first == __last) 27002: return __last; 27002: 27002: 27002: _ForwardIterator __dest = __first; 27002: ++__first; 27002: while (++__first != __last) 27002: if (!__binary_pred(__dest, __first)) 27002: *++__dest = std::move(*__first); 27002: return ++__dest; 27002: } 27002: # 933 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: unique(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__unique(__first, __last, 27002: __gnu_cxx::__ops::__iter_equal_to_iter()); 27002: } 27002: # 964 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: unique(_ForwardIterator __first, _ForwardIterator __last, 27002: _BinaryPredicate __binary_pred) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__unique(__first, __last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _OutputIterator 27002: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 27002: _OutputIterator __result, _BinaryPredicate __binary_pred, 27002: forward_iterator_tag, output_iterator_tag) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: _ForwardIterator __next = __first; 27002: *__result = *__first; 27002: while (++__next != __last) 27002: if (!__binary_pred(__first, __next)) 27002: { 27002: __first = __next; 27002: *++__result = *__first; 27002: } 27002: return ++__result; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _OutputIterator 27002: __unique_copy(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _BinaryPredicate __binary_pred, 27002: input_iterator_tag, output_iterator_tag) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: typename iterator_traits<_InputIterator>::value_type __value = *__first; 27002: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 27002: __rebound_pred 27002: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 27002: *__result = __value; 27002: while (++__first != __last) 27002: if (!__rebound_pred(__first, __value)) 27002: { 27002: __value = *__first; 27002: *++__result = __value; 27002: } 27002: return ++__result; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __unique_copy(_InputIterator __first, _InputIterator __last, 27002: _ForwardIterator __result, _BinaryPredicate __binary_pred, 27002: input_iterator_tag, forward_iterator_tag) 27002: { 27002: 27002: 27002: 27002: 27002: *__result = *__first; 27002: while (++__first != __last) 27002: if (!__binary_pred(__result, __first)) 27002: *++__result = *__first; 27002: return ++__result; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 27002: bidirectional_iterator_tag) 27002: { 27002: while (true) 27002: if (__first == __last || __first == --__last) 27002: return; 27002: else 27002: { 27002: std::iter_swap(__first, __last); 27002: ++__first; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: random_access_iterator_tag) 27002: { 27002: if (__first == __last) 27002: return; 27002: --__last; 27002: while (__first < __last) 27002: { 27002: std::iter_swap(__first, __last); 27002: ++__first; 27002: --__last; 27002: } 27002: } 27002: # 1125 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline void 27002: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 27002: { 27002: 27002: 27002: 27002: ; 27002: std::__reverse(__first, __last, std::__iterator_category(__first)); 27002: } 27002: # 1153 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _OutputIterator 27002: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 27002: _OutputIterator __result) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: while (__first != __last) 27002: { 27002: --__last; 27002: *__result = *__last; 27002: ++__result; 27002: } 27002: return __result; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _EuclideanRingElement 27002: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 27002: { 27002: while (__n != 0) 27002: { 27002: _EuclideanRingElement __t = __m % __n; 27002: __m = __n; 27002: __n = __t; 27002: } 27002: return __m; 27002: } 27002: 27002: inline namespace _V2 27002: { 27002: 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __rotate(_ForwardIterator __first, 27002: _ForwardIterator __middle, 27002: _ForwardIterator __last, 27002: forward_iterator_tag) 27002: { 27002: if (__first == __middle) 27002: return __last; 27002: else if (__last == __middle) 27002: return __first; 27002: 27002: _ForwardIterator __first2 = __middle; 27002: do 27002: { 27002: std::iter_swap(__first, __first2); 27002: ++__first; 27002: ++__first2; 27002: if (__first == __middle) 27002: __middle = __first2; 27002: } 27002: while (__first2 != __last); 27002: 27002: _ForwardIterator __ret = __first; 27002: 27002: __first2 = __middle; 27002: 27002: while (__first2 != __last) 27002: { 27002: std::iter_swap(__first, __first2); 27002: ++__first; 27002: ++__first2; 27002: if (__first == __middle) 27002: __middle = __first2; 27002: else if (__first2 == __last) 27002: __first2 = __middle; 27002: } 27002: return __ret; 27002: } 27002: 27002: 27002: template 27002: 27002: _BidirectionalIterator 27002: __rotate(_BidirectionalIterator __first, 27002: _BidirectionalIterator __middle, 27002: _BidirectionalIterator __last, 27002: bidirectional_iterator_tag) 27002: { 27002: 27002: 27002: 27002: 27002: if (__first == __middle) 27002: return __last; 27002: else if (__last == __middle) 27002: return __first; 27002: 27002: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 27002: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 27002: 27002: while (__first != __middle && __middle != __last) 27002: { 27002: std::iter_swap(__first, --__last); 27002: ++__first; 27002: } 27002: 27002: if (__first == __middle) 27002: { 27002: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 27002: return __last; 27002: } 27002: else 27002: { 27002: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 27002: return __first; 27002: } 27002: } 27002: 27002: 27002: template 27002: 27002: _RandomAccessIterator 27002: __rotate(_RandomAccessIterator __first, 27002: _RandomAccessIterator __middle, 27002: _RandomAccessIterator __last, 27002: random_access_iterator_tag) 27002: { 27002: 27002: 27002: 27002: 27002: if (__first == __middle) 27002: return __last; 27002: else if (__last == __middle) 27002: return __first; 27002: 27002: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 27002: _Distance; 27002: typedef typename iterator_traits<_RandomAccessIterator>::value_type 27002: _ValueType; 27002: 27002: _Distance __n = __last - __first; 27002: _Distance __k = __middle - __first; 27002: 27002: if (__k == __n - __k) 27002: { 27002: std::swap_ranges(__first, __middle, __middle); 27002: return __middle; 27002: } 27002: 27002: _RandomAccessIterator __p = __first; 27002: _RandomAccessIterator __ret = __first + (__last - __middle); 27002: 27002: for (;;) 27002: { 27002: if (__k < __n - __k) 27002: { 27002: if (__is_pod(_ValueType) && __k == 1) 27002: { 27002: _ValueType __t = std::move(*__p); 27002: std::move(__p + 1, __p + __n, __p); 27002: *(__p + __n - 1) = std::move(__t); 27002: return __ret; 27002: } 27002: _RandomAccessIterator __q = __p + __k; 27002: for (_Distance __i = 0; __i < __n - __k; ++ __i) 27002: { 27002: std::iter_swap(__p, __q); 27002: ++__p; 27002: ++__q; 27002: } 27002: __n %= __k; 27002: if (__n == 0) 27002: return __ret; 27002: std::swap(__n, __k); 27002: __k = __n - __k; 27002: } 27002: else 27002: { 27002: __k = __n - __k; 27002: if (__is_pod(_ValueType) && __k == 1) 27002: { 27002: _ValueType __t = std::move(*(__p + __n - 1)); 27002: std::move_backward(__p, __p + __n - 1, __p + __n); 27002: *__p = std::move(__t); 27002: return __ret; 27002: } 27002: _RandomAccessIterator __q = __p + __n; 27002: __p = __q - __k; 27002: for (_Distance __i = 0; __i < __n - __k; ++ __i) 27002: { 27002: --__p; 27002: --__q; 27002: std::iter_swap(__p, __q); 27002: } 27002: __n %= __k; 27002: if (__n == 0) 27002: return __ret; 27002: std::swap(__n, __k); 27002: } 27002: } 27002: } 27002: # 1385 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: rotate(_ForwardIterator __first, _ForwardIterator __middle, 27002: _ForwardIterator __last) 27002: { 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__rotate(__first, __middle, __last, 27002: std::__iterator_category(__first)); 27002: } 27002: 27002: } 27002: # 1423 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 27002: _ForwardIterator __last, _OutputIterator __result) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::copy(__first, __middle, 27002: std::copy(__middle, __last, __result)); 27002: } 27002: 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __partition(_ForwardIterator __first, _ForwardIterator __last, 27002: _Predicate __pred, forward_iterator_tag) 27002: { 27002: if (__first == __last) 27002: return __first; 27002: 27002: while (__pred(*__first)) 27002: if (++__first == __last) 27002: return __first; 27002: 27002: _ForwardIterator __next = __first; 27002: 27002: while (++__next != __last) 27002: if (__pred(*__next)) 27002: { 27002: std::iter_swap(__first, __next); 27002: ++__first; 27002: } 27002: 27002: return __first; 27002: } 27002: 27002: 27002: template 27002: 27002: _BidirectionalIterator 27002: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 27002: _Predicate __pred, bidirectional_iterator_tag) 27002: { 27002: while (true) 27002: { 27002: while (true) 27002: if (__first == __last) 27002: return __first; 27002: else if (__pred(*__first)) 27002: ++__first; 27002: else 27002: break; 27002: --__last; 27002: while (true) 27002: if (__first == __last) 27002: return __first; 27002: else if (!bool(__pred(*__last))) 27002: --__last; 27002: else 27002: break; 27002: std::iter_swap(__first, __last); 27002: ++__first; 27002: } 27002: } 27002: # 1503 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: _ForwardIterator 27002: __stable_partition_adaptive(_ForwardIterator __first, 27002: _ForwardIterator __last, 27002: _Predicate __pred, _Distance __len, 27002: _Pointer __buffer, 27002: _Distance __buffer_size) 27002: { 27002: if (__len == 1) 27002: return __first; 27002: 27002: if (__len <= __buffer_size) 27002: { 27002: _ForwardIterator __result1 = __first; 27002: _Pointer __result2 = __buffer; 27002: 27002: 27002: 27002: 27002: *__result2 = std::move(*__first); 27002: ++__result2; 27002: ++__first; 27002: for (; __first != __last; ++__first) 27002: if (__pred(__first)) 27002: { 27002: *__result1 = std::move(*__first); 27002: ++__result1; 27002: } 27002: else 27002: { 27002: *__result2 = std::move(*__first); 27002: ++__result2; 27002: } 27002: 27002: std::move(__buffer, __result2, __result1); 27002: return __result1; 27002: } 27002: 27002: _ForwardIterator __middle = __first; 27002: std::advance(__middle, __len / 2); 27002: _ForwardIterator __left_split = 27002: std::__stable_partition_adaptive(__first, __middle, __pred, 27002: __len / 2, __buffer, 27002: __buffer_size); 27002: 27002: 27002: 27002: _Distance __right_len = __len - __len / 2; 27002: _ForwardIterator __right_split = 27002: std::__find_if_not_n(__middle, __right_len, __pred); 27002: 27002: if (__right_len) 27002: __right_split = 27002: std::__stable_partition_adaptive(__right_split, __last, __pred, 27002: __right_len, 27002: __buffer, __buffer_size); 27002: 27002: return std::rotate(__left_split, __middle, __right_split); 27002: } 27002: 27002: template 27002: _ForwardIterator 27002: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 27002: _Predicate __pred) 27002: { 27002: __first = std::__find_if_not(__first, __last, __pred); 27002: 27002: if (__first == __last) 27002: return __first; 27002: 27002: typedef typename iterator_traits<_ForwardIterator>::value_type 27002: _ValueType; 27002: typedef typename iterator_traits<_ForwardIterator>::difference_type 27002: _DistanceType; 27002: 27002: _Temporary_buffer<_ForwardIterator, _ValueType> 27002: __buf(__first, std::distance(__first, __last)); 27002: return 27002: std::__stable_partition_adaptive(__first, __last, __pred, 27002: _DistanceType(__buf.requested_size()), 27002: __buf.begin(), 27002: _DistanceType(__buf.size())); 27002: } 27002: # 1605 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: inline _ForwardIterator 27002: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 27002: _Predicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__stable_partition(__first, __last, 27002: __gnu_cxx::__ops::__pred_iter(__pred)); 27002: } 27002: 27002: 27002: template 27002: 27002: void 27002: __heap_select(_RandomAccessIterator __first, 27002: _RandomAccessIterator __middle, 27002: _RandomAccessIterator __last, _Compare __comp) 27002: { 27002: std::__make_heap(__first, __middle, __comp); 27002: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 27002: if (__comp(__i, __first)) 27002: std::__pop_heap(__first, __middle, __i, __comp); 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: _RandomAccessIterator 27002: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 27002: _RandomAccessIterator __result_first, 27002: _RandomAccessIterator __result_last, 27002: _Compare __comp) 27002: { 27002: typedef typename iterator_traits<_InputIterator>::value_type 27002: _InputValueType; 27002: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 27002: typedef typename _RItTraits::difference_type _DistanceType; 27002: 27002: if (__result_first == __result_last) 27002: return __result_last; 27002: _RandomAccessIterator __result_real_last = __result_first; 27002: while (__first != __last && __result_real_last != __result_last) 27002: { 27002: *__result_real_last = *__first; 27002: ++__result_real_last; 27002: ++__first; 27002: } 27002: 27002: std::__make_heap(__result_first, __result_real_last, __comp); 27002: while (__first != __last) 27002: { 27002: if (__comp(__first, __result_first)) 27002: std::__adjust_heap(__result_first, _DistanceType(0), 27002: _DistanceType(__result_real_last 27002: - __result_first), 27002: _InputValueType(*__first), __comp); 27002: ++__first; 27002: } 27002: std::__sort_heap(__result_first, __result_real_last, __comp); 27002: return __result_real_last; 27002: } 27002: # 1693 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _RandomAccessIterator 27002: partial_sort_copy(_InputIterator __first, _InputIterator __last, 27002: _RandomAccessIterator __result_first, 27002: _RandomAccessIterator __result_last) 27002: { 27002: # 1708 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__partial_sort_copy(__first, __last, 27002: __result_first, __result_last, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 1743 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _RandomAccessIterator 27002: partial_sort_copy(_InputIterator __first, _InputIterator __last, 27002: _RandomAccessIterator __result_first, 27002: _RandomAccessIterator __result_last, 27002: _Compare __comp) 27002: { 27002: # 1760 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__partial_sort_copy(__first, __last, 27002: __result_first, __result_last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: 27002: template 27002: 27002: void 27002: __unguarded_linear_insert(_RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: typename iterator_traits<_RandomAccessIterator>::value_type 27002: __val = std::move(*__last); 27002: _RandomAccessIterator __next = __last; 27002: --__next; 27002: while (__comp(__val, __next)) 27002: { 27002: *__last = std::move(*__next); 27002: __last = __next; 27002: --__next; 27002: } 27002: *__last = std::move(__val); 27002: } 27002: 27002: 27002: template 27002: 27002: void 27002: __insertion_sort(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, _Compare __comp) 27002: { 27002: if (__first == __last) return; 27002: 27002: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 27002: { 27002: if (__comp(__i, __first)) 27002: { 27002: typename iterator_traits<_RandomAccessIterator>::value_type 27002: __val = std::move(*__i); 27002: std::move_backward(__first, __i, __i + 1); 27002: *__first = std::move(__val); 27002: } 27002: else 27002: std::__unguarded_linear_insert(__i, 27002: __gnu_cxx::__ops::__val_comp_iter(__comp)); 27002: } 27002: } 27002: 27002: 27002: template 27002: 27002: inline void 27002: __unguarded_insertion_sort(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, _Compare __comp) 27002: { 27002: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 27002: std::__unguarded_linear_insert(__i, 27002: __gnu_cxx::__ops::__val_comp_iter(__comp)); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: enum { _S_threshold = 16 }; 27002: 27002: 27002: template 27002: 27002: void 27002: __final_insertion_sort(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, _Compare __comp) 27002: { 27002: if (__last - __first > int(_S_threshold)) 27002: { 27002: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 27002: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 27002: __comp); 27002: } 27002: else 27002: std::__insertion_sort(__first, __last, __comp); 27002: } 27002: 27002: 27002: template 27002: 27002: _RandomAccessIterator 27002: __unguarded_partition(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, 27002: _RandomAccessIterator __pivot, _Compare __comp) 27002: { 27002: while (true) 27002: { 27002: while (__comp(__first, __pivot)) 27002: ++__first; 27002: --__last; 27002: while (__comp(__pivot, __last)) 27002: --__last; 27002: if (!(__first < __last)) 27002: return __first; 27002: std::iter_swap(__first, __last); 27002: ++__first; 27002: } 27002: } 27002: 27002: 27002: template 27002: 27002: inline _RandomAccessIterator 27002: __unguarded_partition_pivot(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, _Compare __comp) 27002: { 27002: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 27002: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 27002: __comp); 27002: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 27002: } 27002: 27002: template 27002: 27002: inline void 27002: __partial_sort(_RandomAccessIterator __first, 27002: _RandomAccessIterator __middle, 27002: _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: std::__heap_select(__first, __middle, __last, __comp); 27002: std::__sort_heap(__first, __middle, __comp); 27002: } 27002: 27002: 27002: template 27002: 27002: void 27002: __introsort_loop(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, 27002: _Size __depth_limit, _Compare __comp) 27002: { 27002: while (__last - __first > int(_S_threshold)) 27002: { 27002: if (__depth_limit == 0) 27002: { 27002: std::__partial_sort(__first, __last, __last, __comp); 27002: return; 27002: } 27002: --__depth_limit; 27002: _RandomAccessIterator __cut = 27002: std::__unguarded_partition_pivot(__first, __last, __comp); 27002: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 27002: __last = __cut; 27002: } 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: inline void 27002: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: if (__first != __last) 27002: { 27002: std::__introsort_loop(__first, __last, 27002: std::__lg(__last - __first) * 2, 27002: __comp); 27002: std::__final_insertion_sort(__first, __last, __comp); 27002: } 27002: } 27002: 27002: template 27002: 27002: void 27002: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 27002: _RandomAccessIterator __last, _Size __depth_limit, 27002: _Compare __comp) 27002: { 27002: while (__last - __first > 3) 27002: { 27002: if (__depth_limit == 0) 27002: { 27002: std::__heap_select(__first, __nth + 1, __last, __comp); 27002: 27002: std::iter_swap(__first, __nth); 27002: return; 27002: } 27002: --__depth_limit; 27002: _RandomAccessIterator __cut = 27002: std::__unguarded_partition_pivot(__first, __last, __comp); 27002: if (__cut <= __nth) 27002: __first = __cut; 27002: else 27002: __last = __cut; 27002: } 27002: std::__insertion_sort(__first, __last, __comp); 27002: } 27002: # 1991 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__lower_bound(__first, __last, __val, 27002: __gnu_cxx::__ops::__iter_comp_val(__comp)); 27002: } 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val, _Compare __comp) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::difference_type 27002: _DistanceType; 27002: 27002: _DistanceType __len = std::distance(__first, __last); 27002: 27002: while (__len > 0) 27002: { 27002: _DistanceType __half = __len >> 1; 27002: _ForwardIterator __middle = __first; 27002: std::advance(__middle, __half); 27002: if (__comp(__val, __middle)) 27002: __len = __half; 27002: else 27002: { 27002: __first = __middle; 27002: ++__first; 27002: __len = __len - __half - 1; 27002: } 27002: } 27002: return __first; 27002: } 27002: # 2047 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__upper_bound(__first, __last, __val, 27002: __gnu_cxx::__ops::__val_less_iter()); 27002: } 27002: # 2078 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__upper_bound(__first, __last, __val, 27002: __gnu_cxx::__ops::__val_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: 27002: pair<_ForwardIterator, _ForwardIterator> 27002: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val, 27002: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 27002: { 27002: typedef typename iterator_traits<_ForwardIterator>::difference_type 27002: _DistanceType; 27002: 27002: _DistanceType __len = std::distance(__first, __last); 27002: 27002: while (__len > 0) 27002: { 27002: _DistanceType __half = __len >> 1; 27002: _ForwardIterator __middle = __first; 27002: std::advance(__middle, __half); 27002: if (__comp_it_val(__middle, __val)) 27002: { 27002: __first = __middle; 27002: ++__first; 27002: __len = __len - __half - 1; 27002: } 27002: else if (__comp_val_it(__val, __middle)) 27002: __len = __half; 27002: else 27002: { 27002: _ForwardIterator __left 27002: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 27002: std::advance(__first, __len); 27002: _ForwardIterator __right 27002: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 27002: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 27002: } 27002: } 27002: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 27002: } 27002: # 2151 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline pair<_ForwardIterator, _ForwardIterator> 27002: equal_range(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__equal_range(__first, __last, __val, 27002: __gnu_cxx::__ops::__iter_less_val(), 27002: __gnu_cxx::__ops::__val_less_iter()); 27002: } 27002: # 2188 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline pair<_ForwardIterator, _ForwardIterator> 27002: equal_range(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: ; 27002: 27002: return std::__equal_range(__first, __last, __val, 27002: __gnu_cxx::__ops::__iter_comp_val(__comp), 27002: __gnu_cxx::__ops::__val_comp_iter(__comp)); 27002: } 27002: # 2222 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: bool 27002: binary_search(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: _ForwardIterator __i 27002: = std::__lower_bound(__first, __last, __val, 27002: __gnu_cxx::__ops::__iter_less_val()); 27002: return __i != __last && !(__val < *__i); 27002: } 27002: # 2256 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: bool 27002: binary_search(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __val, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: ; 27002: 27002: _ForwardIterator __i 27002: = std::__lower_bound(__first, __last, __val, 27002: __gnu_cxx::__ops::__iter_comp_val(__comp)); 27002: return __i != __last && !bool(__comp(__val, *__i)); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: void 27002: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result, _Compare __comp) 27002: { 27002: while (__first1 != __last1 && __first2 != __last2) 27002: { 27002: if (__comp(__first2, __first1)) 27002: { 27002: *__result = std::move(*__first2); 27002: ++__first2; 27002: } 27002: else 27002: { 27002: *__result = std::move(*__first1); 27002: ++__first1; 27002: } 27002: ++__result; 27002: } 27002: if (__first1 != __last1) 27002: std::move(__first1, __last1, __result); 27002: } 27002: 27002: 27002: template 27002: void 27002: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 27002: _BidirectionalIterator1 __last1, 27002: _BidirectionalIterator2 __first2, 27002: _BidirectionalIterator2 __last2, 27002: _BidirectionalIterator3 __result, 27002: _Compare __comp) 27002: { 27002: if (__first1 == __last1) 27002: { 27002: std::move_backward(__first2, __last2, __result); 27002: return; 27002: } 27002: else if (__first2 == __last2) 27002: return; 27002: 27002: --__last1; 27002: --__last2; 27002: while (true) 27002: { 27002: if (__comp(__last2, __last1)) 27002: { 27002: *--__result = std::move(*__last1); 27002: if (__first1 == __last1) 27002: { 27002: std::move_backward(__first2, ++__last2, __result); 27002: return; 27002: } 27002: --__last1; 27002: } 27002: else 27002: { 27002: *--__result = std::move(*__last2); 27002: if (__first2 == __last2) 27002: return; 27002: --__last2; 27002: } 27002: } 27002: } 27002: 27002: 27002: template 27002: _BidirectionalIterator1 27002: __rotate_adaptive(_BidirectionalIterator1 __first, 27002: _BidirectionalIterator1 __middle, 27002: _BidirectionalIterator1 __last, 27002: _Distance __len1, _Distance __len2, 27002: _BidirectionalIterator2 __buffer, 27002: _Distance __buffer_size) 27002: { 27002: _BidirectionalIterator2 __buffer_end; 27002: if (__len1 > __len2 && __len2 <= __buffer_size) 27002: { 27002: if (__len2) 27002: { 27002: __buffer_end = std::move(__middle, __last, __buffer); 27002: std::move_backward(__first, __middle, __last); 27002: return std::move(__buffer, __buffer_end, __first); 27002: } 27002: else 27002: return __first; 27002: } 27002: else if (__len1 <= __buffer_size) 27002: { 27002: if (__len1) 27002: { 27002: __buffer_end = std::move(__first, __middle, __buffer); 27002: std::move(__middle, __last, __first); 27002: return std::move_backward(__buffer, __buffer_end, __last); 27002: } 27002: else 27002: return __last; 27002: } 27002: else 27002: return std::rotate(__first, __middle, __last); 27002: } 27002: 27002: 27002: template 27002: void 27002: __merge_adaptive(_BidirectionalIterator __first, 27002: _BidirectionalIterator __middle, 27002: _BidirectionalIterator __last, 27002: _Distance __len1, _Distance __len2, 27002: _Pointer __buffer, _Distance __buffer_size, 27002: _Compare __comp) 27002: { 27002: if (__len1 <= __len2 && __len1 <= __buffer_size) 27002: { 27002: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 27002: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 27002: __first, __comp); 27002: } 27002: else if (__len2 <= __buffer_size) 27002: { 27002: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 27002: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 27002: __buffer_end, __last, __comp); 27002: } 27002: else 27002: { 27002: _BidirectionalIterator __first_cut = __first; 27002: _BidirectionalIterator __second_cut = __middle; 27002: _Distance __len11 = 0; 27002: _Distance __len22 = 0; 27002: if (__len1 > __len2) 27002: { 27002: __len11 = __len1 / 2; 27002: std::advance(__first_cut, __len11); 27002: __second_cut 27002: = std::__lower_bound(__middle, __last, *__first_cut, 27002: __gnu_cxx::__ops::__iter_comp_val(__comp)); 27002: __len22 = std::distance(__middle, __second_cut); 27002: } 27002: else 27002: { 27002: __len22 = __len2 / 2; 27002: std::advance(__second_cut, __len22); 27002: __first_cut 27002: = std::__upper_bound(__first, __middle, *__second_cut, 27002: __gnu_cxx::__ops::__val_comp_iter(__comp)); 27002: __len11 = std::distance(__first, __first_cut); 27002: } 27002: 27002: _BidirectionalIterator __new_middle 27002: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 27002: __len1 - __len11, __len22, __buffer, 27002: __buffer_size); 27002: std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, 27002: __len22, __buffer, __buffer_size, __comp); 27002: std::__merge_adaptive(__new_middle, __second_cut, __last, 27002: __len1 - __len11, 27002: __len2 - __len22, __buffer, 27002: __buffer_size, __comp); 27002: } 27002: } 27002: 27002: 27002: template 27002: void 27002: __merge_without_buffer(_BidirectionalIterator __first, 27002: _BidirectionalIterator __middle, 27002: _BidirectionalIterator __last, 27002: _Distance __len1, _Distance __len2, 27002: _Compare __comp) 27002: { 27002: if (__len1 == 0 || __len2 == 0) 27002: return; 27002: 27002: if (__len1 + __len2 == 2) 27002: { 27002: if (__comp(__middle, __first)) 27002: std::iter_swap(__first, __middle); 27002: return; 27002: } 27002: 27002: _BidirectionalIterator __first_cut = __first; 27002: _BidirectionalIterator __second_cut = __middle; 27002: _Distance __len11 = 0; 27002: _Distance __len22 = 0; 27002: if (__len1 > __len2) 27002: { 27002: __len11 = __len1 / 2; 27002: std::advance(__first_cut, __len11); 27002: __second_cut 27002: = std::__lower_bound(__middle, __last, *__first_cut, 27002: __gnu_cxx::__ops::__iter_comp_val(__comp)); 27002: __len22 = std::distance(__middle, __second_cut); 27002: } 27002: else 27002: { 27002: __len22 = __len2 / 2; 27002: std::advance(__second_cut, __len22); 27002: __first_cut 27002: = std::__upper_bound(__first, __middle, *__second_cut, 27002: __gnu_cxx::__ops::__val_comp_iter(__comp)); 27002: __len11 = std::distance(__first, __first_cut); 27002: } 27002: 27002: _BidirectionalIterator __new_middle 27002: = std::rotate(__first_cut, __middle, __second_cut); 27002: std::__merge_without_buffer(__first, __first_cut, __new_middle, 27002: __len11, __len22, __comp); 27002: std::__merge_without_buffer(__new_middle, __second_cut, __last, 27002: __len1 - __len11, __len2 - __len22, __comp); 27002: } 27002: 27002: template 27002: void 27002: __inplace_merge(_BidirectionalIterator __first, 27002: _BidirectionalIterator __middle, 27002: _BidirectionalIterator __last, 27002: _Compare __comp) 27002: { 27002: typedef typename iterator_traits<_BidirectionalIterator>::value_type 27002: _ValueType; 27002: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 27002: _DistanceType; 27002: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 27002: 27002: if (__first == __middle || __middle == __last) 27002: return; 27002: 27002: const _DistanceType __len1 = std::distance(__first, __middle); 27002: const _DistanceType __len2 = std::distance(__middle, __last); 27002: 27002: 27002: 27002: _TmpBuf __buf(__first, std::min(__len1, __len2)); 27002: 27002: if (__buf.begin() == 0) 27002: std::__merge_without_buffer 27002: (__first, __middle, __last, __len1, __len2, __comp); 27002: else 27002: std::__merge_adaptive 27002: (__first, __middle, __last, __len1, __len2, __buf.begin(), 27002: _DistanceType(__buf.size()), __comp); 27002: } 27002: # 2548 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: inline void 27002: inplace_merge(_BidirectionalIterator __first, 27002: _BidirectionalIterator __middle, 27002: _BidirectionalIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: std::__inplace_merge(__first, __middle, __last, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 2589 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: inline void 27002: inplace_merge(_BidirectionalIterator __first, 27002: _BidirectionalIterator __middle, 27002: _BidirectionalIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: std::__inplace_merge(__first, __middle, __last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: 27002: 27002: template 27002: _OutputIterator 27002: __move_merge(_InputIterator __first1, _InputIterator __last1, 27002: _InputIterator __first2, _InputIterator __last2, 27002: _OutputIterator __result, _Compare __comp) 27002: { 27002: while (__first1 != __last1 && __first2 != __last2) 27002: { 27002: if (__comp(__first2, __first1)) 27002: { 27002: *__result = std::move(*__first2); 27002: ++__first2; 27002: } 27002: else 27002: { 27002: *__result = std::move(*__first1); 27002: ++__first1; 27002: } 27002: ++__result; 27002: } 27002: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 27002: 27002: ; 27002: } 27002: 27002: template 27002: void 27002: __merge_sort_loop(_RandomAccessIterator1 __first, 27002: _RandomAccessIterator1 __last, 27002: _RandomAccessIterator2 __result, _Distance __step_size, 27002: _Compare __comp) 27002: { 27002: const _Distance __two_step = 2 * __step_size; 27002: 27002: while (__last - __first >= __two_step) 27002: { 27002: __result = std::__move_merge(__first, __first + __step_size, 27002: __first + __step_size, 27002: __first + __two_step, 27002: __result, __comp); 27002: __first += __two_step; 27002: } 27002: __step_size = std::min(_Distance(__last - __first), __step_size); 27002: 27002: std::__move_merge(__first, __first + __step_size, 27002: __first + __step_size, __last, __result, __comp); 27002: } 27002: 27002: template 27002: 27002: void 27002: __chunk_insertion_sort(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, 27002: _Distance __chunk_size, _Compare __comp) 27002: { 27002: while (__last - __first >= __chunk_size) 27002: { 27002: std::__insertion_sort(__first, __first + __chunk_size, __comp); 27002: __first += __chunk_size; 27002: } 27002: std::__insertion_sort(__first, __last, __comp); 27002: } 27002: 27002: enum { _S_chunk_size = 7 }; 27002: 27002: template 27002: void 27002: __merge_sort_with_buffer(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, 27002: _Pointer __buffer, _Compare __comp) 27002: { 27002: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 27002: _Distance; 27002: 27002: const _Distance __len = __last - __first; 27002: const _Pointer __buffer_last = __buffer + __len; 27002: 27002: _Distance __step_size = _S_chunk_size; 27002: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 27002: 27002: while (__step_size < __len) 27002: { 27002: std::__merge_sort_loop(__first, __last, __buffer, 27002: __step_size, __comp); 27002: __step_size *= 2; 27002: std::__merge_sort_loop(__buffer, __buffer_last, __first, 27002: __step_size, __comp); 27002: __step_size *= 2; 27002: } 27002: } 27002: 27002: template 27002: void 27002: __stable_sort_adaptive(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, 27002: _Pointer __buffer, _Distance __buffer_size, 27002: _Compare __comp) 27002: { 27002: const _Distance __len = (__last - __first + 1) / 2; 27002: const _RandomAccessIterator __middle = __first + __len; 27002: if (__len > __buffer_size) 27002: { 27002: std::__stable_sort_adaptive(__first, __middle, __buffer, 27002: __buffer_size, __comp); 27002: std::__stable_sort_adaptive(__middle, __last, __buffer, 27002: __buffer_size, __comp); 27002: } 27002: else 27002: { 27002: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 27002: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 27002: } 27002: 27002: std::__merge_adaptive(__first, __middle, __last, 27002: _Distance(__middle - __first), 27002: _Distance(__last - __middle), 27002: __buffer, __buffer_size, 27002: __comp); 27002: } 27002: 27002: 27002: template 27002: void 27002: __inplace_stable_sort(_RandomAccessIterator __first, 27002: _RandomAccessIterator __last, _Compare __comp) 27002: { 27002: if (__last - __first < 15) 27002: { 27002: std::__insertion_sort(__first, __last, __comp); 27002: return; 27002: } 27002: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 27002: std::__inplace_stable_sort(__first, __middle, __comp); 27002: std::__inplace_stable_sort(__middle, __last, __comp); 27002: std::__merge_without_buffer(__first, __middle, __last, 27002: __middle - __first, 27002: __last - __middle, 27002: __comp); 27002: } 27002: # 2763 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: bool 27002: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _Compare __comp) 27002: { 27002: while (__first1 != __last1 && __first2 != __last2) 27002: { 27002: if (__comp(__first2, __first1)) 27002: return false; 27002: if (!__comp(__first1, __first2)) 27002: ++__first2; 27002: ++__first1; 27002: } 27002: 27002: return __first2 == __last2; 27002: } 27002: # 2801 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: includes(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__includes(__first1, __last1, __first2, __last2, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 2846 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: includes(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__includes(__first1, __last1, __first2, __last2, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: # 2882 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: bool 27002: __next_permutation(_BidirectionalIterator __first, 27002: _BidirectionalIterator __last, _Compare __comp) 27002: { 27002: if (__first == __last) 27002: return false; 27002: _BidirectionalIterator __i = __first; 27002: ++__i; 27002: if (__i == __last) 27002: return false; 27002: __i = __last; 27002: --__i; 27002: 27002: for(;;) 27002: { 27002: _BidirectionalIterator __ii = __i; 27002: --__i; 27002: if (__comp(__i, __ii)) 27002: { 27002: _BidirectionalIterator __j = __last; 27002: while (!__comp(__i, --__j)) 27002: {} 27002: std::iter_swap(__i, __j); 27002: std::__reverse(__ii, __last, 27002: std::__iterator_category(__first)); 27002: return true; 27002: } 27002: if (__i == __first) 27002: { 27002: std::__reverse(__first, __last, 27002: std::__iterator_category(__first)); 27002: return false; 27002: } 27002: } 27002: } 27002: # 2932 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: next_permutation(_BidirectionalIterator __first, 27002: _BidirectionalIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__next_permutation 27002: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 2965 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: next_permutation(_BidirectionalIterator __first, 27002: _BidirectionalIterator __last, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__next_permutation 27002: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: 27002: bool 27002: __prev_permutation(_BidirectionalIterator __first, 27002: _BidirectionalIterator __last, _Compare __comp) 27002: { 27002: if (__first == __last) 27002: return false; 27002: _BidirectionalIterator __i = __first; 27002: ++__i; 27002: if (__i == __last) 27002: return false; 27002: __i = __last; 27002: --__i; 27002: 27002: for(;;) 27002: { 27002: _BidirectionalIterator __ii = __i; 27002: --__i; 27002: if (__comp(__ii, __i)) 27002: { 27002: _BidirectionalIterator __j = __last; 27002: while (!__comp(--__j, __i)) 27002: {} 27002: std::iter_swap(__i, __j); 27002: std::__reverse(__ii, __last, 27002: std::__iterator_category(__first)); 27002: return true; 27002: } 27002: if (__i == __first) 27002: { 27002: std::__reverse(__first, __last, 27002: std::__iterator_category(__first)); 27002: return false; 27002: } 27002: } 27002: } 27002: # 3035 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: prev_permutation(_BidirectionalIterator __first, 27002: _BidirectionalIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__prev_permutation(__first, __last, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 3068 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: prev_permutation(_BidirectionalIterator __first, 27002: _BidirectionalIterator __last, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__prev_permutation(__first, __last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _OutputIterator 27002: __replace_copy_if(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, 27002: _Predicate __pred, const _Tp& __new_value) 27002: { 27002: for (; __first != __last; ++__first, (void)++__result) 27002: if (__pred(__first)) 27002: *__result = __new_value; 27002: else 27002: *__result = *__first; 27002: return __result; 27002: } 27002: # 3120 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: replace_copy(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, 27002: const _Tp& __old_value, const _Tp& __new_value) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__replace_copy_if(__first, __last, __result, 27002: __gnu_cxx::__ops::__iter_equals_val(__old_value), 27002: __new_value); 27002: } 27002: # 3155 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: replace_copy_if(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, 27002: _Predicate __pred, const _Tp& __new_value) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__replace_copy_if(__first, __last, __result, 27002: __gnu_cxx::__ops::__pred_iter(__pred), 27002: __new_value); 27002: } 27002: # 3184 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 27002: { return std::is_sorted_until(__first, __last) == __last; } 27002: # 3199 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 27002: _Compare __comp) 27002: { return std::is_sorted_until(__first, __last, __comp) == __last; } 27002: 27002: template 27002: 27002: _ForwardIterator 27002: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 27002: _Compare __comp) 27002: { 27002: if (__first == __last) 27002: return __last; 27002: 27002: _ForwardIterator __next = __first; 27002: for (++__next; __next != __last; __first = __next, (void)++__next) 27002: if (__comp(__next, __first)) 27002: return __next; 27002: return __next; 27002: } 27002: # 3230 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__is_sorted_until(__first, __last, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 3255 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__is_sorted_until(__first, __last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: # 3281 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: constexpr 27002: inline pair 27002: minmax(const _Tp& __a, const _Tp& __b) 27002: { 27002: 27002: 27002: 27002: return __b < __a ? pair(__b, __a) 27002: : pair(__a, __b); 27002: } 27002: # 3302 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: constexpr 27002: inline pair 27002: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 27002: { 27002: return __comp(__b, __a) ? pair(__b, __a) 27002: : pair(__a, __b); 27002: } 27002: 27002: template 27002: constexpr 27002: pair<_ForwardIterator, _ForwardIterator> 27002: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 27002: _Compare __comp) 27002: { 27002: _ForwardIterator __next = __first; 27002: if (__first == __last 27002: || ++__next == __last) 27002: return std::make_pair(__first, __first); 27002: 27002: _ForwardIterator __min{}, __max{}; 27002: if (__comp(__next, __first)) 27002: { 27002: __min = __next; 27002: __max = __first; 27002: } 27002: else 27002: { 27002: __min = __first; 27002: __max = __next; 27002: } 27002: 27002: __first = __next; 27002: ++__first; 27002: 27002: while (__first != __last) 27002: { 27002: __next = __first; 27002: if (++__next == __last) 27002: { 27002: if (__comp(__first, __min)) 27002: __min = __first; 27002: else if (!__comp(__first, __max)) 27002: __max = __first; 27002: break; 27002: } 27002: 27002: if (__comp(__next, __first)) 27002: { 27002: if (__comp(__next, __min)) 27002: __min = __next; 27002: if (!__comp(__first, __max)) 27002: __max = __first; 27002: } 27002: else 27002: { 27002: if (__comp(__first, __min)) 27002: __min = __first; 27002: if (!__comp(__next, __max)) 27002: __max = __next; 27002: } 27002: 27002: __first = __next; 27002: ++__first; 27002: } 27002: 27002: return std::make_pair(__min, __max); 27002: } 27002: # 3382 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: constexpr 27002: inline pair<_ForwardIterator, _ForwardIterator> 27002: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__minmax_element(__first, __last, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 3410 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: constexpr 27002: inline pair<_ForwardIterator, _ForwardIterator> 27002: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__minmax_element(__first, __last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: constexpr 27002: inline pair<_Tp, _Tp> 27002: minmax(initializer_list<_Tp> __l) 27002: { 27002: ; 27002: pair __p = 27002: std::__minmax_element(__l.begin(), __l.end(), 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: return std::make_pair(*__p.first, *__p.second); 27002: } 27002: 27002: template 27002: constexpr 27002: inline pair<_Tp, _Tp> 27002: minmax(initializer_list<_Tp> __l, _Compare __comp) 27002: { 27002: ; 27002: pair __p = 27002: std::__minmax_element(__l.begin(), __l.end(), 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: return std::make_pair(*__p.first, *__p.second); 27002: } 27002: # 3466 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _BinaryPredicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__is_permutation(__first1, __last1, __first2, 27002: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 27002: } 27002: 27002: 27002: template 27002: 27002: bool 27002: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 27002: _BinaryPredicate __pred) 27002: { 27002: using _Cat1 27002: = typename iterator_traits<_ForwardIterator1>::iterator_category; 27002: using _Cat2 27002: = typename iterator_traits<_ForwardIterator2>::iterator_category; 27002: using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; 27002: using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; 27002: constexpr bool __ra_iters = _It1_is_RA() && _It2_is_RA(); 27002: if (__ra_iters) 27002: { 27002: auto __d1 = std::distance(__first1, __last1); 27002: auto __d2 = std::distance(__first2, __last2); 27002: if (__d1 != __d2) 27002: return false; 27002: } 27002: 27002: 27002: 27002: for (; __first1 != __last1 && __first2 != __last2; 27002: ++__first1, (void)++__first2) 27002: if (!__pred(__first1, __first2)) 27002: break; 27002: 27002: if (__ra_iters) 27002: { 27002: if (__first1 == __last1) 27002: return true; 27002: } 27002: else 27002: { 27002: auto __d1 = std::distance(__first1, __last1); 27002: auto __d2 = std::distance(__first2, __last2); 27002: if (__d1 == 0 && __d2 == 0) 27002: return true; 27002: if (__d1 != __d2) 27002: return false; 27002: } 27002: 27002: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 27002: { 27002: if (__scan != std::__find_if(__first1, __scan, 27002: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 27002: continue; 27002: 27002: auto __matches = std::__count_if(__first2, __last2, 27002: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 27002: if (0 == __matches 27002: || std::__count_if(__scan, __last1, 27002: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 27002: != __matches) 27002: return false; 27002: } 27002: return true; 27002: } 27002: # 3561 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 27002: { 27002: ; 27002: ; 27002: 27002: return 27002: std::__is_permutation(__first1, __last1, __first2, __last2, 27002: __gnu_cxx::__ops::__iter_equal_to_iter()); 27002: } 27002: # 3589 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline bool 27002: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 27002: _BinaryPredicate __pred) 27002: { 27002: ; 27002: ; 27002: 27002: return std::__is_permutation(__first1, __last1, __first2, __last2, 27002: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 27002: } 27002: # 3619 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: constexpr const _Tp& 27002: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!(__hi < __lo))) __builtin_unreachable(); } while (false); 27002: return std::min(std::max(__val, __lo), __hi); 27002: } 27002: # 3639 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: constexpr const _Tp& 27002: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!__comp(__hi, __lo))) __builtin_unreachable(); } while (false); 27002: return std::min(std::max(__val, __lo, __comp), __hi, __comp); 27002: } 27002: # 3671 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: pair<_IntType, _IntType> 27002: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 27002: _UniformRandomBitGenerator&& __g) 27002: { 27002: _IntType __x 27002: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 27002: return std::make_pair(__x / __b1, __x % __b1); 27002: } 27002: # 3693 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: void 27002: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _UniformRandomNumberGenerator&& __g) 27002: { 27002: 27002: 27002: 27002: ; 27002: 27002: if (__first == __last) 27002: return; 27002: 27002: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 27002: _DistanceType; 27002: 27002: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 27002: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 27002: typedef typename __distr_type::param_type __p_type; 27002: 27002: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 27002: _Gen; 27002: typedef typename common_type::type 27002: __uc_type; 27002: 27002: const __uc_type __urngrange = __g.max() - __g.min(); 27002: const __uc_type __urange = __uc_type(__last - __first); 27002: 27002: if (__urngrange / __urange >= __urange) 27002: 27002: { 27002: _RandomAccessIterator __i = __first + 1; 27002: 27002: 27002: 27002: 27002: 27002: if ((__urange % 2) == 0) 27002: { 27002: __distr_type __d{0, 1}; 27002: std::iter_swap(__i++, __first + __d(__g)); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: while (__i != __last) 27002: { 27002: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 27002: 27002: const pair<__uc_type, __uc_type> __pospos = 27002: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 27002: 27002: std::iter_swap(__i++, __first + __pospos.first); 27002: std::iter_swap(__i++, __first + __pospos.second); 27002: } 27002: 27002: return; 27002: } 27002: 27002: __distr_type __d; 27002: 27002: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 27002: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: # 3778 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _Function 27002: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 27002: { 27002: 27002: 27002: ; 27002: for (; __first != __last; ++__first) 27002: __f(*__first); 27002: return __f; 27002: } 27002: # 3804 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _InputIterator 27002: for_each_n(_InputIterator __first, _Size __n, _Function __f) 27002: { 27002: auto __n2 = std::__size_to_integer(__n); 27002: using _Cat = typename iterator_traits<_InputIterator>::iterator_category; 27002: if constexpr (is_base_of_v) 27002: { 27002: if (__n2 <= 0) 27002: return __first; 27002: auto __last = __first + __n2; 27002: std::for_each(__first, __last, std::move(__f)); 27002: return __last; 27002: } 27002: else 27002: { 27002: while (__n2-->0) 27002: { 27002: __f(*__first); 27002: ++__first; 27002: } 27002: return __first; 27002: } 27002: } 27002: # 3840 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _InputIterator 27002: find(_InputIterator __first, _InputIterator __last, 27002: const _Tp& __val) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: return std::__find_if(__first, __last, 27002: __gnu_cxx::__ops::__iter_equals_val(__val)); 27002: } 27002: # 3865 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _InputIterator 27002: find_if(_InputIterator __first, _InputIterator __last, 27002: _Predicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__find_if(__first, __last, 27002: __gnu_cxx::__ops::__pred_iter(__pred)); 27002: } 27002: # 3897 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _InputIterator 27002: find_first_of(_InputIterator __first1, _InputIterator __last1, 27002: _ForwardIterator __first2, _ForwardIterator __last2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: for (; __first1 != __last1; ++__first1) 27002: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 27002: if (*__first1 == *__iter) 27002: return __first1; 27002: return __last1; 27002: } 27002: # 3938 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _InputIterator 27002: find_first_of(_InputIterator __first1, _InputIterator __last1, 27002: _ForwardIterator __first2, _ForwardIterator __last2, 27002: _BinaryPredicate __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: for (; __first1 != __last1; ++__first1) 27002: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 27002: if (__comp(*__first1, *__iter)) 27002: return __first1; 27002: return __last1; 27002: } 27002: # 3971 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__adjacent_find(__first, __last, 27002: __gnu_cxx::__ops::__iter_equal_to_iter()); 27002: } 27002: # 3997 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 27002: _BinaryPredicate __binary_pred) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__adjacent_find(__first, __last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 27002: } 27002: # 4023 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline typename iterator_traits<_InputIterator>::difference_type 27002: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__count_if(__first, __last, 27002: __gnu_cxx::__ops::__iter_equals_val(__value)); 27002: } 27002: # 4047 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline typename iterator_traits<_InputIterator>::difference_type 27002: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__count_if(__first, __last, 27002: __gnu_cxx::__ops::__pred_iter(__pred)); 27002: } 27002: # 4088 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator1 27002: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__search(__first1, __last1, __first2, __last2, 27002: __gnu_cxx::__ops::__iter_equal_to_iter()); 27002: } 27002: # 4128 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator1 27002: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 27002: _BinaryPredicate __predicate) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__search(__first1, __last1, __first2, __last2, 27002: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 27002: } 27002: # 4164 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: search_n(_ForwardIterator __first, _ForwardIterator __last, 27002: _Integer __count, const _Tp& __val) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__search_n(__first, __last, __count, 27002: __gnu_cxx::__ops::__iter_equals_val(__val)); 27002: } 27002: # 4198 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: search_n(_ForwardIterator __first, _ForwardIterator __last, 27002: _Integer __count, const _Tp& __val, 27002: _BinaryPredicate __binary_pred) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__search_n(__first, __last, __count, 27002: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 27002: } 27002: # 4224 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: search(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Searcher& __searcher) 27002: { return __searcher(__first, __last).first; } 27002: # 4248 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _OutputIterator 27002: transform(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _UnaryOperation __unary_op) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first != __last; ++__first, (void)++__result) 27002: *__result = __unary_op(*__first); 27002: return __result; 27002: } 27002: # 4286 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _OutputIterator 27002: transform(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _OutputIterator __result, 27002: _BinaryOperation __binary_op) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 27002: *__result = __binary_op(*__first1, *__first2); 27002: return __result; 27002: } 27002: # 4320 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: void 27002: replace(_ForwardIterator __first, _ForwardIterator __last, 27002: const _Tp& __old_value, const _Tp& __new_value) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first != __last; ++__first) 27002: if (*__first == __old_value) 27002: *__first = __new_value; 27002: } 27002: # 4353 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: void 27002: replace_if(_ForwardIterator __first, _ForwardIterator __last, 27002: _Predicate __pred, const _Tp& __new_value) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first != __last; ++__first) 27002: if (__pred(*__first)) 27002: *__first = __new_value; 27002: } 27002: # 4386 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: void 27002: generate(_ForwardIterator __first, _ForwardIterator __last, 27002: _Generator __gen) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first != __last; ++__first) 27002: *__first = __gen(); 27002: } 27002: # 4420 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: _OutputIterator 27002: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: typedef __decltype(std::__size_to_integer(__n)) _IntSize; 27002: for (_IntSize __niter = std::__size_to_integer(__n); 27002: __niter > 0; --__niter, (void) ++__first) 27002: *__first = __gen(); 27002: return __first; 27002: } 27002: # 4458 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: unique_copy(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: if (__first == __last) 27002: return __result; 27002: return std::__unique_copy(__first, __last, __result, 27002: __gnu_cxx::__ops::__iter_equal_to_iter(), 27002: std::__iterator_category(__first), 27002: std::__iterator_category(__result)); 27002: } 27002: # 4499 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: unique_copy(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, 27002: _BinaryPredicate __binary_pred) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: if (__first == __last) 27002: return __result; 27002: return std::__unique_copy(__first, __last, __result, 27002: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 27002: std::__iterator_category(__first), 27002: std::__iterator_category(__result)); 27002: } 27002: # 4538 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 27002: inline void 27002: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 27002: { 27002: 27002: 27002: 27002: ; 27002: 27002: if (__first != __last) 27002: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 27002: { 27002: 27002: _RandomAccessIterator __j = __first 27002: + std::rand() % ((__i - __first) + 1); 27002: if (__i != __j) 27002: std::iter_swap(__i, __j); 27002: } 27002: } 27002: # 4578 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 27002: void 27002: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: 27002: _RandomNumberGenerator&& __rand) 27002: 27002: 27002: 27002: { 27002: 27002: 27002: 27002: ; 27002: 27002: if (__first == __last) 27002: return; 27002: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 27002: { 27002: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 27002: if (__i != __j) 27002: std::iter_swap(__i, __j); 27002: } 27002: } 27002: # 4619 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _ForwardIterator 27002: partition(_ForwardIterator __first, _ForwardIterator __last, 27002: _Predicate __pred) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: return std::__partition(__first, __last, __pred, 27002: std::__iterator_category(__first)); 27002: } 27002: # 4653 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline void 27002: partial_sort(_RandomAccessIterator __first, 27002: _RandomAccessIterator __middle, 27002: _RandomAccessIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: std::__partial_sort(__first, __middle, __last, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 4692 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline void 27002: partial_sort(_RandomAccessIterator __first, 27002: _RandomAccessIterator __middle, 27002: _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: std::__partial_sort(__first, __middle, __last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: # 4729 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline void 27002: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 27002: _RandomAccessIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: if (__first == __last || __nth == __last) 27002: return; 27002: 27002: std::__introselect(__first, __nth, __last, 27002: std::__lg(__last - __first) * 2, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 4769 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline void 27002: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 27002: _RandomAccessIterator __last, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: 27002: if (__first == __last || __nth == __last) 27002: return; 27002: 27002: std::__introselect(__first, __nth, __last, 27002: std::__lg(__last - __first) * 2, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: # 4807 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline void 27002: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 4838 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline void 27002: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: 27002: _OutputIterator 27002: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result, _Compare __comp) 27002: { 27002: while (__first1 != __last1 && __first2 != __last2) 27002: { 27002: if (__comp(__first2, __first1)) 27002: { 27002: *__result = *__first2; 27002: ++__first2; 27002: } 27002: else 27002: { 27002: *__result = *__first1; 27002: ++__first1; 27002: } 27002: ++__result; 27002: } 27002: return std::copy(__first2, __last2, 27002: std::copy(__first1, __last1, __result)); 27002: } 27002: # 4901 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: merge(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__merge(__first1, __last1, 27002: __first2, __last2, __result, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 4952 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: merge(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__merge(__first1, __last1, 27002: __first2, __last2, __result, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: inline void 27002: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: typedef typename iterator_traits<_RandomAccessIterator>::value_type 27002: _ValueType; 27002: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 27002: _DistanceType; 27002: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 27002: 27002: if (__first == __last) 27002: return; 27002: 27002: 27002: 27002: _TmpBuf __buf(__first, (__last - __first + 1) / 2); 27002: 27002: if (__buf.begin() == 0) 27002: std::__inplace_stable_sort(__first, __last, __comp); 27002: else 27002: std::__stable_sort_adaptive(__first, __last, __buf.begin(), 27002: _DistanceType(__buf.size()), __comp); 27002: } 27002: # 5022 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: inline void 27002: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: std::__stable_sort(__first, __last, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 5056 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: inline void 27002: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: std::__stable_sort(__first, __last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: 27002: _OutputIterator 27002: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result, _Compare __comp) 27002: { 27002: while (__first1 != __last1 && __first2 != __last2) 27002: { 27002: if (__comp(__first1, __first2)) 27002: { 27002: *__result = *__first1; 27002: ++__first1; 27002: } 27002: else if (__comp(__first2, __first1)) 27002: { 27002: *__result = *__first2; 27002: ++__first2; 27002: } 27002: else 27002: { 27002: *__result = *__first1; 27002: ++__first1; 27002: ++__first2; 27002: } 27002: ++__result; 27002: } 27002: return std::copy(__first2, __last2, 27002: std::copy(__first1, __last1, __result)); 27002: } 27002: # 5126 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__set_union(__first1, __last1, 27002: __first2, __last2, __result, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 5177 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__set_union(__first1, __last1, 27002: __first2, __last2, __result, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: 27002: _OutputIterator 27002: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result, _Compare __comp) 27002: { 27002: while (__first1 != __last1 && __first2 != __last2) 27002: if (__comp(__first1, __first2)) 27002: ++__first1; 27002: else if (__comp(__first2, __first1)) 27002: ++__first2; 27002: else 27002: { 27002: *__result = *__first1; 27002: ++__first1; 27002: ++__first2; 27002: ++__result; 27002: } 27002: return __result; 27002: } 27002: # 5250 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__set_intersection(__first1, __last1, 27002: __first2, __last2, __result, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 5300 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__set_intersection(__first1, __last1, 27002: __first2, __last2, __result, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: 27002: _OutputIterator 27002: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result, _Compare __comp) 27002: { 27002: while (__first1 != __last1 && __first2 != __last2) 27002: if (__comp(__first1, __first2)) 27002: { 27002: *__result = *__first1; 27002: ++__first1; 27002: ++__result; 27002: } 27002: else if (__comp(__first2, __first1)) 27002: ++__first2; 27002: else 27002: { 27002: ++__first1; 27002: ++__first2; 27002: } 27002: return std::copy(__first1, __last1, __result); 27002: } 27002: # 5375 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__set_difference(__first1, __last1, 27002: __first2, __last2, __result, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 5427 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result, _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__set_difference(__first1, __last1, 27002: __first2, __last2, __result, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: 27002: _OutputIterator 27002: __set_symmetric_difference(_InputIterator1 __first1, 27002: _InputIterator1 __last1, 27002: _InputIterator2 __first2, 27002: _InputIterator2 __last2, 27002: _OutputIterator __result, 27002: _Compare __comp) 27002: { 27002: while (__first1 != __last1 && __first2 != __last2) 27002: if (__comp(__first1, __first2)) 27002: { 27002: *__result = *__first1; 27002: ++__first1; 27002: ++__result; 27002: } 27002: else if (__comp(__first2, __first1)) 27002: { 27002: *__result = *__first2; 27002: ++__first2; 27002: ++__result; 27002: } 27002: else 27002: { 27002: ++__first1; 27002: ++__first2; 27002: } 27002: return std::copy(__first2, __last2, 27002: std::copy(__first1, __last1, __result)); 27002: } 27002: # 5508 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__set_symmetric_difference(__first1, __last1, 27002: __first2, __last2, __result, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 5560 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: 27002: inline _OutputIterator 27002: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _InputIterator2 __last2, 27002: _OutputIterator __result, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: ; 27002: ; 27002: 27002: return std::__set_symmetric_difference(__first1, __last1, 27002: __first2, __last2, __result, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: constexpr 27002: _ForwardIterator 27002: __min_element(_ForwardIterator __first, _ForwardIterator __last, 27002: _Compare __comp) 27002: { 27002: if (__first == __last) 27002: return __first; 27002: _ForwardIterator __result = __first; 27002: while (++__first != __last) 27002: if (__comp(__first, __result)) 27002: __result = __first; 27002: return __result; 27002: } 27002: # 5614 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: constexpr 27002: _ForwardIterator 27002: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__min_element(__first, __last, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 5639 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: constexpr 27002: inline _ForwardIterator 27002: min_element(_ForwardIterator __first, _ForwardIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__min_element(__first, __last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: constexpr 27002: _ForwardIterator 27002: __max_element(_ForwardIterator __first, _ForwardIterator __last, 27002: _Compare __comp) 27002: { 27002: if (__first == __last) return __first; 27002: _ForwardIterator __result = __first; 27002: while (++__first != __last) 27002: if (__comp(__result, __first)) 27002: __result = __first; 27002: return __result; 27002: } 27002: # 5678 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: constexpr 27002: inline _ForwardIterator 27002: max_element(_ForwardIterator __first, _ForwardIterator __last) 27002: { 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__max_element(__first, __last, 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: # 5703 "/usr/include/c++/12/bits/stl_algo.h" 3 27002: template 27002: constexpr 27002: inline _ForwardIterator 27002: max_element(_ForwardIterator __first, _ForwardIterator __last, 27002: _Compare __comp) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: ; 27002: 27002: return std::__max_element(__first, __last, 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: 27002: 27002: template 27002: constexpr 27002: inline _Tp 27002: min(initializer_list<_Tp> __l) 27002: { 27002: ; 27002: return *std::__min_element(__l.begin(), __l.end(), 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: 27002: template 27002: constexpr 27002: inline _Tp 27002: min(initializer_list<_Tp> __l, _Compare __comp) 27002: { 27002: ; 27002: return *std::__min_element(__l.begin(), __l.end(), 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: template 27002: constexpr 27002: inline _Tp 27002: max(initializer_list<_Tp> __l) 27002: { 27002: ; 27002: return *std::__max_element(__l.begin(), __l.end(), 27002: __gnu_cxx::__ops::__iter_less_iter()); 27002: } 27002: 27002: template 27002: constexpr 27002: inline _Tp 27002: max(initializer_list<_Tp> __l, _Compare __comp) 27002: { 27002: ; 27002: return *std::__max_element(__l.begin(), __l.end(), 27002: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: _RandomAccessIterator 27002: __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, 27002: _RandomAccessIterator __out, random_access_iterator_tag, 27002: _Size __n, _UniformRandomBitGenerator&& __g) 27002: { 27002: using __distrib_type = uniform_int_distribution<_Size>; 27002: using __param_type = typename __distrib_type::param_type; 27002: __distrib_type __d{}; 27002: _Size __sample_sz = 0; 27002: while (__first != __last && __sample_sz != __n) 27002: { 27002: __out[__sample_sz++] = *__first; 27002: ++__first; 27002: } 27002: for (auto __pop_sz = __sample_sz; __first != __last; 27002: ++__first, (void) ++__pop_sz) 27002: { 27002: const auto __k = __d(__g, __param_type{0, __pop_sz}); 27002: if (__k < __n) 27002: __out[__k] = *__first; 27002: } 27002: return __out + __sample_sz; 27002: } 27002: 27002: 27002: template 27002: _OutputIterator 27002: __sample(_ForwardIterator __first, _ForwardIterator __last, 27002: forward_iterator_tag, 27002: _OutputIterator __out, _Cat, 27002: _Size __n, _UniformRandomBitGenerator&& __g) 27002: { 27002: using __distrib_type = uniform_int_distribution<_Size>; 27002: using __param_type = typename __distrib_type::param_type; 27002: using _USize = make_unsigned_t<_Size>; 27002: using _Gen = remove_reference_t<_UniformRandomBitGenerator>; 27002: using __uc_type = common_type_t; 27002: 27002: if (__first == __last) 27002: return __out; 27002: 27002: __distrib_type __d{}; 27002: _Size __unsampled_sz = std::distance(__first, __last); 27002: __n = std::min(__n, __unsampled_sz); 27002: 27002: 27002: 27002: 27002: const __uc_type __urngrange = __g.max() - __g.min(); 27002: if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) 27002: 27002: 27002: { 27002: while (__n != 0 && __unsampled_sz >= 2) 27002: { 27002: const pair<_Size, _Size> __p = 27002: __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); 27002: 27002: --__unsampled_sz; 27002: if (__p.first < __n) 27002: { 27002: *__out++ = *__first; 27002: --__n; 27002: } 27002: 27002: ++__first; 27002: 27002: if (__n == 0) break; 27002: 27002: --__unsampled_sz; 27002: if (__p.second < __n) 27002: { 27002: *__out++ = *__first; 27002: --__n; 27002: } 27002: 27002: ++__first; 27002: } 27002: } 27002: 27002: 27002: 27002: for (; __n != 0; ++__first) 27002: if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) 27002: { 27002: *__out++ = *__first; 27002: --__n; 27002: } 27002: return __out; 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: _SampleIterator 27002: sample(_PopulationIterator __first, _PopulationIterator __last, 27002: _SampleIterator __out, _Distance __n, 27002: _UniformRandomBitGenerator&& __g) 27002: { 27002: using __pop_cat = typename 27002: std::iterator_traits<_PopulationIterator>::iterator_category; 27002: using __samp_cat = typename 27002: std::iterator_traits<_SampleIterator>::iterator_category; 27002: 27002: static_assert( 27002: __or_, 27002: is_convertible<__samp_cat, random_access_iterator_tag>>::value, 27002: "output range must use a RandomAccessIterator when input range" 27002: " does not meet the ForwardIterator requirements"); 27002: 27002: static_assert(is_integral<_Distance>::value, 27002: "sample size must be an integer type"); 27002: 27002: typename iterator_traits<_PopulationIterator>::difference_type __d = __n; 27002: return std:: 27002: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, 27002: std::forward<_UniformRandomBitGenerator>(__g)); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 65 "/usr/include/c++/12/functional" 2 3 27002: # 76 "/usr/include/c++/12/functional" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: template struct _Placeholder { }; 27002: # 105 "/usr/include/c++/12/functional" 3 27002: template 27002: inline invoke_result_t<_Callable, _Args...> 27002: invoke(_Callable&& __fn, _Args&&... __args) 27002: noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 27002: { 27002: return std::__invoke(std::forward<_Callable>(__fn), 27002: std::forward<_Args>(__args)...); 27002: } 27002: # 138 "/usr/include/c++/12/functional" 3 27002: template::value> 27002: class _Mem_fn_base 27002: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 27002: { 27002: using _Traits = _Mem_fn_traits<_MemFunPtr>; 27002: 27002: using _Arity = typename _Traits::__arity; 27002: using _Varargs = typename _Traits::__vararg; 27002: 27002: template 27002: friend struct _Bind_check_arity; 27002: 27002: _MemFunPtr _M_pmf; 27002: 27002: public: 27002: 27002: using result_type = typename _Traits::__result_type; 27002: 27002: explicit constexpr 27002: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 27002: 27002: template 27002: 27002: auto 27002: operator()(_Args&&... __args) const 27002: noexcept(noexcept( 27002: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 27002: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 27002: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 27002: }; 27002: 27002: 27002: template 27002: class _Mem_fn_base<_MemObjPtr, false> 27002: { 27002: using _Arity = integral_constant; 27002: using _Varargs = false_type; 27002: 27002: template 27002: friend struct _Bind_check_arity; 27002: 27002: _MemObjPtr _M_pm; 27002: 27002: public: 27002: explicit constexpr 27002: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 27002: 27002: template 27002: 27002: auto 27002: operator()(_Tp&& __obj) const 27002: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 27002: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 27002: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 27002: }; 27002: 27002: template 27002: struct _Mem_fn; 27002: 27002: template 27002: struct _Mem_fn<_Res _Class::*> 27002: : _Mem_fn_base<_Res _Class::*> 27002: { 27002: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 27002: }; 27002: # 231 "/usr/include/c++/12/functional" 3 27002: template 27002: 27002: inline _Mem_fn<_Tp _Class::*> 27002: mem_fn(_Tp _Class::* __pm) noexcept 27002: { 27002: return _Mem_fn<_Tp _Class::*>(__pm); 27002: } 27002: # 250 "/usr/include/c++/12/functional" 3 27002: template 27002: struct is_bind_expression 27002: : public false_type { }; 27002: # 262 "/usr/include/c++/12/functional" 3 27002: template 27002: struct is_placeholder 27002: : public integral_constant 27002: { }; 27002: 27002: 27002: template inline constexpr bool is_bind_expression_v 27002: = is_bind_expression<_Tp>::value; 27002: template inline constexpr int is_placeholder_v 27002: = is_placeholder<_Tp>::value; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace placeholders 27002: { 27002: 27002: 27002: 27002: 27002: extern const _Placeholder<1> _1; 27002: extern const _Placeholder<2> _2; 27002: extern const _Placeholder<3> _3; 27002: extern const _Placeholder<4> _4; 27002: extern const _Placeholder<5> _5; 27002: extern const _Placeholder<6> _6; 27002: extern const _Placeholder<7> _7; 27002: extern const _Placeholder<8> _8; 27002: extern const _Placeholder<9> _9; 27002: extern const _Placeholder<10> _10; 27002: extern const _Placeholder<11> _11; 27002: extern const _Placeholder<12> _12; 27002: extern const _Placeholder<13> _13; 27002: extern const _Placeholder<14> _14; 27002: extern const _Placeholder<15> _15; 27002: extern const _Placeholder<16> _16; 27002: extern const _Placeholder<17> _17; 27002: extern const _Placeholder<18> _18; 27002: extern const _Placeholder<19> _19; 27002: extern const _Placeholder<20> _20; 27002: extern const _Placeholder<21> _21; 27002: extern const _Placeholder<22> _22; 27002: extern const _Placeholder<23> _23; 27002: extern const _Placeholder<24> _24; 27002: extern const _Placeholder<25> _25; 27002: extern const _Placeholder<26> _26; 27002: extern const _Placeholder<27> _27; 27002: extern const _Placeholder<28> _28; 27002: extern const _Placeholder<29> _29; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_placeholder<_Placeholder<_Num> > 27002: : public integral_constant 27002: { }; 27002: 27002: template 27002: struct is_placeholder > 27002: : public integral_constant 27002: { }; 27002: 27002: 27002: 27002: 27002: template 27002: using _Safe_tuple_element_t 27002: = typename enable_if<(__i < tuple_size<_Tuple>::value), 27002: tuple_element<__i, _Tuple>>::type::type; 27002: # 351 "/usr/include/c++/12/functional" 3 27002: template::value, 27002: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 27002: class _Mu; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class _Mu, false, false> 27002: { 27002: public: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _Tp& 27002: operator()(_CVRef& __arg, _Tuple&) const volatile 27002: { return __arg.get(); } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class _Mu<_Arg, true, false> 27002: { 27002: public: 27002: template 27002: 27002: auto 27002: operator()(_CVArg& __arg, 27002: tuple<_Args...>& __tuple) const volatile 27002: -> decltype(__arg(declval<_Args>()...)) 27002: { 27002: 27002: typedef typename _Build_index_tuple::__type 27002: _Indexes; 27002: return this->__call(__arg, __tuple, _Indexes()); 27002: } 27002: 27002: private: 27002: 27002: 27002: template 27002: 27002: auto 27002: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 27002: const _Index_tuple<_Indexes...>&) const volatile 27002: -> decltype(__arg(declval<_Args>()...)) 27002: { 27002: return __arg(std::get<_Indexes>(std::move(__tuple))...); 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class _Mu<_Arg, false, true> 27002: { 27002: public: 27002: template 27002: 27002: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 27002: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 27002: { 27002: return 27002: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class _Mu<_Arg, false, false> 27002: { 27002: public: 27002: template 27002: 27002: _CVArg&& 27002: operator()(_CVArg&& __arg, _Tuple&) const volatile 27002: { return std::forward<_CVArg>(__arg); } 27002: }; 27002: 27002: 27002: template 27002: inline auto 27002: __volget(volatile tuple<_Tp...>& __tuple) 27002: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 27002: { return std::get<_Ind>(const_cast&>(__tuple)); } 27002: 27002: 27002: template 27002: inline auto 27002: __volget(const volatile tuple<_Tp...>& __tuple) 27002: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 27002: { return std::get<_Ind>(const_cast&>(__tuple)); } 27002: 27002: 27002: 27002: 27002: template 27002: class _Bind; 27002: 27002: template 27002: class _Bind<_Functor(_Bound_args...)> 27002: : public _Weak_result_type<_Functor> 27002: { 27002: typedef typename _Build_index_tuple::__type 27002: _Bound_indexes; 27002: 27002: _Functor _M_f; 27002: tuple<_Bound_args...> _M_bound_args; 27002: 27002: 27002: template 27002: 27002: _Result 27002: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 27002: { 27002: return std::__invoke(_M_f, 27002: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 27002: ); 27002: } 27002: 27002: 27002: template 27002: 27002: _Result 27002: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 27002: { 27002: return std::__invoke(_M_f, 27002: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 27002: ); 27002: } 27002: 27002: 27002: template 27002: _Result 27002: __call_v(tuple<_Args...>&& __args, 27002: _Index_tuple<_Indexes...>) volatile 27002: { 27002: return std::__invoke(_M_f, 27002: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 27002: ); 27002: } 27002: 27002: 27002: template 27002: _Result 27002: __call_c_v(tuple<_Args...>&& __args, 27002: _Index_tuple<_Indexes...>) const volatile 27002: { 27002: return std::__invoke(_M_f, 27002: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 27002: ); 27002: } 27002: 27002: template 27002: using _Mu_type = decltype( 27002: _Mu::type>()( 27002: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 27002: 27002: template 27002: using _Res_type_impl 27002: = typename result_of< _Fn&(_Mu_type<_BArgs, _CallArgs>&&...) >::type; 27002: 27002: template 27002: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 27002: 27002: template 27002: using __dependent = typename 27002: enable_if::value+1), _Functor>::type; 27002: 27002: template class __cv_quals> 27002: using _Res_type_cv = _Res_type_impl< 27002: typename __cv_quals<__dependent<_CallArgs>>::type, 27002: _CallArgs, 27002: typename __cv_quals<_Bound_args>::type...>; 27002: 27002: public: 27002: template 27002: explicit 27002: _Bind(const _Functor& __f, _Args&&... __args) 27002: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 27002: { } 27002: 27002: template 27002: explicit 27002: _Bind(_Functor&& __f, _Args&&... __args) 27002: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 27002: { } 27002: 27002: _Bind(const _Bind&) = default; 27002: _Bind(_Bind&&) = default; 27002: 27002: 27002: template>> 27002: 27002: _Result 27002: operator()(_Args&&... __args) 27002: { 27002: return this->__call<_Result>( 27002: std::forward_as_tuple(std::forward<_Args>(__args)...), 27002: _Bound_indexes()); 27002: } 27002: 27002: 27002: template, add_const>> 27002: 27002: _Result 27002: operator()(_Args&&... __args) const 27002: { 27002: return this->__call_c<_Result>( 27002: std::forward_as_tuple(std::forward<_Args>(__args)...), 27002: _Bound_indexes()); 27002: } 27002: # 591 "/usr/include/c++/12/functional" 3 27002: template, add_volatile>> 27002: [[deprecated("std::bind does not support volatile in C++17")]] 27002: _Result 27002: operator()(_Args&&... __args) volatile 27002: { 27002: return this->__call_v<_Result>( 27002: std::forward_as_tuple(std::forward<_Args>(__args)...), 27002: _Bound_indexes()); 27002: } 27002: 27002: 27002: template, add_cv>> 27002: [[deprecated("std::bind does not support volatile in C++17")]] 27002: _Result 27002: operator()(_Args&&... __args) const volatile 27002: { 27002: return this->__call_c_v<_Result>( 27002: std::forward_as_tuple(std::forward<_Args>(__args)...), 27002: _Bound_indexes()); 27002: } 27002: }; 27002: 27002: 27002: template 27002: class _Bind_result; 27002: 27002: template 27002: class _Bind_result<_Result, _Functor(_Bound_args...)> 27002: { 27002: typedef typename _Build_index_tuple::__type 27002: _Bound_indexes; 27002: 27002: _Functor _M_f; 27002: tuple<_Bound_args...> _M_bound_args; 27002: 27002: 27002: template 27002: 27002: _Res 27002: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 27002: { 27002: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 27002: (std::get<_Indexes>(_M_bound_args), __args)...); 27002: } 27002: 27002: 27002: template 27002: 27002: _Res 27002: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 27002: { 27002: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 27002: (std::get<_Indexes>(_M_bound_args), __args)...); 27002: } 27002: 27002: 27002: template 27002: 27002: _Res 27002: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 27002: { 27002: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 27002: (__volget<_Indexes>(_M_bound_args), __args)...); 27002: } 27002: 27002: 27002: template 27002: 27002: _Res 27002: __call(tuple<_Args...>&& __args, 27002: _Index_tuple<_Indexes...>) const volatile 27002: { 27002: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 27002: (__volget<_Indexes>(_M_bound_args), __args)...); 27002: } 27002: 27002: public: 27002: typedef _Result result_type; 27002: 27002: template 27002: explicit 27002: _Bind_result(const _Functor& __f, _Args&&... __args) 27002: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 27002: { } 27002: 27002: template 27002: explicit 27002: _Bind_result(_Functor&& __f, _Args&&... __args) 27002: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 27002: { } 27002: 27002: _Bind_result(const _Bind_result&) = default; 27002: _Bind_result(_Bind_result&&) = default; 27002: 27002: 27002: template 27002: 27002: result_type 27002: operator()(_Args&&... __args) 27002: { 27002: return this->__call<_Result>( 27002: std::forward_as_tuple(std::forward<_Args>(__args)...), 27002: _Bound_indexes()); 27002: } 27002: 27002: 27002: template 27002: 27002: result_type 27002: operator()(_Args&&... __args) const 27002: { 27002: return this->__call<_Result>( 27002: std::forward_as_tuple(std::forward<_Args>(__args)...), 27002: _Bound_indexes()); 27002: } 27002: 27002: 27002: template 27002: [[deprecated("std::bind does not support volatile in C++17")]] 27002: result_type 27002: operator()(_Args&&... __args) volatile 27002: { 27002: return this->__call<_Result>( 27002: std::forward_as_tuple(std::forward<_Args>(__args)...), 27002: _Bound_indexes()); 27002: } 27002: 27002: 27002: template 27002: [[deprecated("std::bind does not support volatile in C++17")]] 27002: result_type 27002: operator()(_Args&&... __args) const volatile 27002: { 27002: return this->__call<_Result>( 27002: std::forward_as_tuple(std::forward<_Args>(__args)...), 27002: _Bound_indexes()); 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_bind_expression<_Bind<_Signature> > 27002: : public true_type { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_bind_expression > 27002: : public true_type { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_bind_expression > 27002: : public true_type { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_bind_expression> 27002: : public true_type { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_bind_expression<_Bind_result<_Result, _Signature>> 27002: : public true_type { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_bind_expression> 27002: : public true_type { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_bind_expression> 27002: : public true_type { }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct is_bind_expression> 27002: : public true_type { }; 27002: 27002: template 27002: struct _Bind_check_arity { }; 27002: 27002: template 27002: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 27002: { 27002: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 27002: "Wrong number of arguments for function"); 27002: }; 27002: 27002: template 27002: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 27002: { 27002: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 27002: "Wrong number of arguments for function"); 27002: }; 27002: 27002: template 27002: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 27002: { 27002: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 27002: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 27002: static_assert(_Varargs::value 27002: ? sizeof...(_BoundArgs) >= _Arity::value + 1 27002: : sizeof...(_BoundArgs) == _Arity::value + 1, 27002: "Wrong number of arguments for pointer-to-member"); 27002: }; 27002: 27002: 27002: 27002: 27002: template::type> 27002: using __is_socketlike = __or_, is_enum<_Tp2>>; 27002: 27002: template 27002: struct _Bind_helper 27002: : _Bind_check_arity::type, _BoundArgs...> 27002: { 27002: typedef typename decay<_Func>::type __func_type; 27002: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct _Bind_helper 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline typename 27002: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 27002: bind(_Func&& __f, _BoundArgs&&... __args) 27002: { 27002: typedef _Bind_helper __helper_type; 27002: return typename __helper_type::type(std::forward<_Func>(__f), 27002: std::forward<_BoundArgs>(__args)...); 27002: } 27002: 27002: template 27002: struct _Bindres_helper 27002: : _Bind_check_arity::type, _BoundArgs...> 27002: { 27002: typedef typename decay<_Func>::type __functor_type; 27002: typedef _Bind_result<_Result, 27002: __functor_type(typename decay<_BoundArgs>::type...)> 27002: type; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline 27002: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 27002: bind(_Func&& __f, _BoundArgs&&... __args) 27002: { 27002: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 27002: return typename __helper_type::type(std::forward<_Func>(__f), 27002: std::forward<_BoundArgs>(__args)...); 27002: } 27002: # 997 "/usr/include/c++/12/functional" 3 27002: template 27002: class _Not_fn 27002: { 27002: template 27002: using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; 27002: 27002: template 27002: static decltype(!std::declval<_Tp>()) 27002: _S_not() noexcept(noexcept(!std::declval<_Tp>())); 27002: 27002: public: 27002: template 27002: constexpr 27002: _Not_fn(_Fn2&& __fn, int) 27002: : _M_fn(std::forward<_Fn2>(__fn)) { } 27002: 27002: _Not_fn(const _Not_fn& __fn) = default; 27002: _Not_fn(_Not_fn&& __fn) = default; 27002: ~_Not_fn() = default; 27002: # 1031 "/usr/include/c++/12/functional" 3 27002: template 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)...); } 27002: template 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)...); } 27002: template 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)...); } 27002: template 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)...); } 27002: 27002: 27002: private: 27002: _Fn _M_fn; 27002: }; 27002: 27002: template 27002: struct __is_byte_like : false_type { }; 27002: 27002: template 27002: struct __is_byte_like<_Tp, equal_to<_Tp>> 27002: : __bool_constant::value> { }; 27002: 27002: template 27002: struct __is_byte_like<_Tp, equal_to> 27002: : __bool_constant::value> { }; 27002: 27002: 27002: 27002: enum class byte : unsigned char; 27002: 27002: template<> 27002: struct __is_byte_like> 27002: : true_type { }; 27002: 27002: template<> 27002: struct __is_byte_like> 27002: : true_type { }; 27002: # 1078 "/usr/include/c++/12/functional" 3 27002: template 27002: 27002: inline auto 27002: not_fn(_Fn&& __fn) 27002: noexcept(std::is_nothrow_constructible, _Fn&&>::value) 27002: { 27002: return _Not_fn>{std::forward<_Fn>(__fn), 0}; 27002: } 27002: 27002: 27002: 27002: 27002: template> 27002: class default_searcher 27002: { 27002: public: 27002: 27002: default_searcher(_ForwardIterator1 __pat_first, 27002: _ForwardIterator1 __pat_last, 27002: _BinaryPredicate __pred = _BinaryPredicate()) 27002: : _M_m(__pat_first, __pat_last, std::move(__pred)) 27002: { } 27002: 27002: template 27002: 27002: pair<_ForwardIterator2, _ForwardIterator2> 27002: operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const 27002: { 27002: _ForwardIterator2 __first_ret = 27002: std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), 27002: std::get<2>(_M_m)); 27002: auto __ret = std::make_pair(__first_ret, __first_ret); 27002: if (__ret.first != __last) 27002: std::advance(__ret.second, std::distance(std::get<0>(_M_m), 27002: std::get<1>(_M_m))); 27002: return __ret; 27002: } 27002: 27002: private: 27002: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; 27002: }; 27002: 27002: template 27002: struct __boyer_moore_map_base 27002: { 27002: template 27002: __boyer_moore_map_base(_RAIter __pat, size_t __patlen, 27002: _Hash&& __hf, _Pred&& __pred) 27002: : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } 27002: { 27002: if (__patlen > 0) 27002: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 27002: _M_bad_char[__pat[__i]] = __patlen - 1 - __i; 27002: } 27002: 27002: using __diff_type = _Tp; 27002: 27002: __diff_type 27002: _M_lookup(_Key __key, __diff_type __not_found) const 27002: { 27002: auto __iter = _M_bad_char.find(__key); 27002: if (__iter == _M_bad_char.end()) 27002: return __not_found; 27002: return __iter->second; 27002: } 27002: 27002: _Pred 27002: _M_pred() const { return _M_bad_char.key_eq(); } 27002: 27002: std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; 27002: }; 27002: 27002: template 27002: struct __boyer_moore_array_base 27002: { 27002: template 27002: __boyer_moore_array_base(_RAIter __pat, size_t __patlen, 27002: _Unused&&, _Pred&& __pred) 27002: : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } 27002: { 27002: std::get<0>(_M_bad_char).fill(__patlen); 27002: if (__patlen > 0) 27002: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 27002: { 27002: auto __ch = __pat[__i]; 27002: using _UCh = make_unsigned_t; 27002: auto __uch = static_cast<_UCh>(__ch); 27002: std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; 27002: } 27002: } 27002: 27002: using __diff_type = _Tp; 27002: 27002: template 27002: __diff_type 27002: _M_lookup(_Key __key, __diff_type __not_found) const 27002: { 27002: auto __ukey = static_cast>(__key); 27002: if (__ukey >= _Len) 27002: return __not_found; 27002: return std::get<0>(_M_bad_char)[__ukey]; 27002: } 27002: 27002: const _Pred& 27002: _M_pred() const { return std::get<1>(_M_bad_char); } 27002: 27002: tuple, _Pred> _M_bad_char; 27002: }; 27002: 27002: 27002: 27002: template::value_type, 27002: typename _Diff = typename iterator_traits<_RAIter>::difference_type> 27002: using __boyer_moore_base_t 27002: = __conditional_t<__is_byte_like<_Val, _Pred>::value, 27002: __boyer_moore_array_base<_Diff, 256, _Pred>, 27002: __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; 27002: 27002: template::value_type>, 27002: typename _BinaryPredicate = equal_to<>> 27002: class boyer_moore_searcher 27002: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 27002: { 27002: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 27002: using typename _Base::__diff_type; 27002: 27002: public: 27002: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, 27002: _Hash __hf = _Hash(), 27002: _BinaryPredicate __pred = _BinaryPredicate()); 27002: 27002: template 27002: pair<_RandomAccessIterator2, _RandomAccessIterator2> 27002: operator()(_RandomAccessIterator2 __first, 27002: _RandomAccessIterator2 __last) const; 27002: 27002: private: 27002: bool 27002: _M_is_prefix(_RAIter __word, __diff_type __len, 27002: __diff_type __pos) 27002: { 27002: const auto& __pred = this->_M_pred(); 27002: __diff_type __suffixlen = __len - __pos; 27002: for (__diff_type __i = 0; __i < __suffixlen; ++__i) 27002: if (!__pred(__word[__i], __word[__pos + __i])) 27002: return false; 27002: return true; 27002: } 27002: 27002: __diff_type 27002: _M_suffix_length(_RAIter __word, __diff_type __len, 27002: __diff_type __pos) 27002: { 27002: const auto& __pred = this->_M_pred(); 27002: __diff_type __i = 0; 27002: while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) 27002: && __i < __pos) 27002: { 27002: ++__i; 27002: } 27002: return __i; 27002: } 27002: 27002: template 27002: __diff_type 27002: _M_bad_char_shift(_Tp __c) const 27002: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 27002: 27002: _RAIter _M_pat; 27002: _RAIter _M_pat_end; 27002: std::vector<__diff_type> _M_good_suffix; 27002: }; 27002: 27002: template::value_type>, 27002: typename _BinaryPredicate = equal_to<>> 27002: class boyer_moore_horspool_searcher 27002: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 27002: { 27002: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 27002: using typename _Base::__diff_type; 27002: 27002: public: 27002: boyer_moore_horspool_searcher(_RAIter __pat, 27002: _RAIter __pat_end, 27002: _Hash __hf = _Hash(), 27002: _BinaryPredicate __pred 27002: = _BinaryPredicate()) 27002: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 27002: _M_pat(__pat), _M_pat_end(__pat_end) 27002: { } 27002: 27002: template 27002: pair<_RandomAccessIterator2, _RandomAccessIterator2> 27002: operator()(_RandomAccessIterator2 __first, 27002: _RandomAccessIterator2 __last) const 27002: { 27002: const auto& __pred = this->_M_pred(); 27002: auto __patlen = _M_pat_end - _M_pat; 27002: if (__patlen == 0) 27002: return std::make_pair(__first, __first); 27002: auto __len = __last - __first; 27002: while (__len >= __patlen) 27002: { 27002: for (auto __scan = __patlen - 1; 27002: __pred(__first[__scan], _M_pat[__scan]); --__scan) 27002: if (__scan == 0) 27002: return std::make_pair(__first, __first + __patlen); 27002: auto __shift = _M_bad_char_shift(__first[__patlen - 1]); 27002: __len -= __shift; 27002: __first += __shift; 27002: } 27002: return std::make_pair(__last, __last); 27002: } 27002: 27002: private: 27002: template 27002: __diff_type 27002: _M_bad_char_shift(_Tp __c) const 27002: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 27002: 27002: _RAIter _M_pat; 27002: _RAIter _M_pat_end; 27002: }; 27002: 27002: template 27002: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 27002: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, 27002: _Hash __hf, _BinaryPredicate __pred) 27002: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 27002: _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) 27002: { 27002: auto __patlen = __pat_end - __pat; 27002: if (__patlen == 0) 27002: return; 27002: __diff_type __last_prefix = __patlen - 1; 27002: for (__diff_type __p = __patlen - 1; __p >= 0; --__p) 27002: { 27002: if (_M_is_prefix(__pat, __patlen, __p + 1)) 27002: __last_prefix = __p + 1; 27002: _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); 27002: } 27002: for (__diff_type __p = 0; __p < __patlen - 1; ++__p) 27002: { 27002: auto __slen = _M_suffix_length(__pat, __patlen, __p); 27002: auto __pos = __patlen - 1 - __slen; 27002: if (!__pred(__pat[__p - __slen], __pat[__pos])) 27002: _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; 27002: } 27002: } 27002: 27002: template 27002: template 27002: pair<_RandomAccessIterator2, _RandomAccessIterator2> 27002: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 27002: operator()(_RandomAccessIterator2 __first, 27002: _RandomAccessIterator2 __last) const 27002: { 27002: auto __patlen = _M_pat_end - _M_pat; 27002: if (__patlen == 0) 27002: return std::make_pair(__first, __first); 27002: const auto& __pred = this->_M_pred(); 27002: __diff_type __i = __patlen - 1; 27002: auto __stringlen = __last - __first; 27002: while (__i < __stringlen) 27002: { 27002: __diff_type __j = __patlen - 1; 27002: while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) 27002: { 27002: --__i; 27002: --__j; 27002: } 27002: if (__j < 0) 27002: { 27002: const auto __match = __first + __i + 1; 27002: return std::make_pair(__match, __match + __patlen); 27002: } 27002: __i += std::max(_M_bad_char_shift(__first[__i]), 27002: _M_good_suffix[__j]); 27002: } 27002: return std::make_pair(__last, __last); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: # 1 "/usr/include/c++/12/memory" 1 3 27002: # 47 "/usr/include/c++/12/memory" 3 27002: 27002: # 48 "/usr/include/c++/12/memory" 3 27002: # 68 "/usr/include/c++/12/memory" 3 27002: # 1 "/usr/include/c++/12/bits/stl_raw_storage_iter.h" 1 3 27002: # 59 "/usr/include/c++/12/bits/stl_raw_storage_iter.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class [[__deprecated__]] raw_storage_iterator 27002: : public iterator 27002: { 27002: protected: 27002: _OutputIterator _M_iter; 27002: 27002: public: 27002: explicit 27002: raw_storage_iterator(_OutputIterator __x) 27002: : _M_iter(__x) {} 27002: 27002: raw_storage_iterator& 27002: operator*() { return *this; } 27002: 27002: raw_storage_iterator& 27002: operator=(const _Tp& __element) 27002: { 27002: std::_Construct(std::__addressof(*_M_iter), __element); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: raw_storage_iterator& 27002: operator=(_Tp&& __element) 27002: { 27002: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 27002: return *this; 27002: } 27002: 27002: 27002: raw_storage_iterator& 27002: operator++() 27002: { 27002: ++_M_iter; 27002: return *this; 27002: } 27002: 27002: raw_storage_iterator 27002: operator++(int) 27002: { 27002: raw_storage_iterator __tmp = *this; 27002: ++_M_iter; 27002: return __tmp; 27002: } 27002: 27002: 27002: 27002: _OutputIterator base() const { return _M_iter; } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: } 27002: # 69 "/usr/include/c++/12/memory" 2 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/align.h" 1 3 27002: # 35 "/usr/include/c++/12/bits/align.h" 3 27002: # 1 "/usr/include/c++/12/bit" 1 3 27002: # 32 "/usr/include/c++/12/bit" 3 27002: 27002: # 33 "/usr/include/c++/12/bit" 3 27002: # 55 "/usr/include/c++/12/bit" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 149 "/usr/include/c++/12/bit" 3 27002: template 27002: constexpr _Tp 27002: __rotl(_Tp __x, int __s) noexcept 27002: { 27002: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 27002: if constexpr ((_Nd & (_Nd - 1)) == 0) 27002: { 27002: 27002: 27002: constexpr unsigned __uNd = _Nd; 27002: const unsigned __r = __s; 27002: return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); 27002: } 27002: const int __r = __s % _Nd; 27002: if (__r == 0) 27002: return __x; 27002: else if (__r > 0) 27002: return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); 27002: else 27002: return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); 27002: } 27002: 27002: template 27002: constexpr _Tp 27002: __rotr(_Tp __x, int __s) noexcept 27002: { 27002: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 27002: if constexpr ((_Nd & (_Nd - 1)) == 0) 27002: { 27002: 27002: 27002: constexpr unsigned __uNd = _Nd; 27002: const unsigned __r = __s; 27002: return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); 27002: } 27002: const int __r = __s % _Nd; 27002: if (__r == 0) 27002: return __x; 27002: else if (__r > 0) 27002: return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); 27002: else 27002: return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); 27002: } 27002: 27002: template 27002: constexpr int 27002: __countl_zero(_Tp __x) noexcept 27002: { 27002: using __gnu_cxx::__int_traits; 27002: constexpr auto _Nd = __int_traits<_Tp>::__digits; 27002: 27002: if (__x == 0) 27002: return _Nd; 27002: 27002: constexpr auto _Nd_ull = __int_traits::__digits; 27002: constexpr auto _Nd_ul = __int_traits::__digits; 27002: constexpr auto _Nd_u = __int_traits::__digits; 27002: 27002: if constexpr (_Nd <= _Nd_u) 27002: { 27002: constexpr int __diff = _Nd_u - _Nd; 27002: return __builtin_clz(__x) - __diff; 27002: } 27002: else if constexpr (_Nd <= _Nd_ul) 27002: { 27002: constexpr int __diff = _Nd_ul - _Nd; 27002: return __builtin_clzl(__x) - __diff; 27002: } 27002: else if constexpr (_Nd <= _Nd_ull) 27002: { 27002: constexpr int __diff = _Nd_ull - _Nd; 27002: return __builtin_clzll(__x) - __diff; 27002: } 27002: else 27002: { 27002: static_assert(_Nd <= (2 * _Nd_ull), 27002: "Maximum supported integer size is 128-bit"); 27002: 27002: unsigned long long __high = __x >> _Nd_ull; 27002: if (__high != 0) 27002: { 27002: constexpr int __diff = (2 * _Nd_ull) - _Nd; 27002: return __builtin_clzll(__high) - __diff; 27002: } 27002: constexpr auto __max_ull = __int_traits::__max; 27002: unsigned long long __low = __x & __max_ull; 27002: return (_Nd - _Nd_ull) + __builtin_clzll(__low); 27002: } 27002: } 27002: 27002: template 27002: constexpr int 27002: __countl_one(_Tp __x) noexcept 27002: { 27002: return std::__countl_zero<_Tp>((_Tp)~__x); 27002: } 27002: 27002: template 27002: constexpr int 27002: __countr_zero(_Tp __x) noexcept 27002: { 27002: using __gnu_cxx::__int_traits; 27002: constexpr auto _Nd = __int_traits<_Tp>::__digits; 27002: 27002: if (__x == 0) 27002: return _Nd; 27002: 27002: constexpr auto _Nd_ull = __int_traits::__digits; 27002: constexpr auto _Nd_ul = __int_traits::__digits; 27002: constexpr auto _Nd_u = __int_traits::__digits; 27002: 27002: if constexpr (_Nd <= _Nd_u) 27002: return __builtin_ctz(__x); 27002: else if constexpr (_Nd <= _Nd_ul) 27002: return __builtin_ctzl(__x); 27002: else if constexpr (_Nd <= _Nd_ull) 27002: return __builtin_ctzll(__x); 27002: else 27002: { 27002: static_assert(_Nd <= (2 * _Nd_ull), 27002: "Maximum supported integer size is 128-bit"); 27002: 27002: constexpr auto __max_ull = __int_traits::__max; 27002: unsigned long long __low = __x & __max_ull; 27002: if (__low != 0) 27002: return __builtin_ctzll(__low); 27002: unsigned long long __high = __x >> _Nd_ull; 27002: return __builtin_ctzll(__high) + _Nd_ull; 27002: } 27002: } 27002: 27002: template 27002: constexpr int 27002: __countr_one(_Tp __x) noexcept 27002: { 27002: return std::__countr_zero((_Tp)~__x); 27002: } 27002: 27002: template 27002: constexpr int 27002: __popcount(_Tp __x) noexcept 27002: { 27002: using __gnu_cxx::__int_traits; 27002: constexpr auto _Nd = __int_traits<_Tp>::__digits; 27002: 27002: constexpr auto _Nd_ull = __int_traits::__digits; 27002: constexpr auto _Nd_ul = __int_traits::__digits; 27002: constexpr auto _Nd_u = __int_traits::__digits; 27002: 27002: if constexpr (_Nd <= _Nd_u) 27002: return __builtin_popcount(__x); 27002: else if constexpr (_Nd <= _Nd_ul) 27002: return __builtin_popcountl(__x); 27002: else if constexpr (_Nd <= _Nd_ull) 27002: return __builtin_popcountll(__x); 27002: else 27002: { 27002: static_assert(_Nd <= (2 * _Nd_ull), 27002: "Maximum supported integer size is 128-bit"); 27002: 27002: constexpr auto __max_ull = __int_traits::__max; 27002: unsigned long long __low = __x & __max_ull; 27002: unsigned long long __high = __x >> _Nd_ull; 27002: return __builtin_popcountll(__low) + __builtin_popcountll(__high); 27002: } 27002: } 27002: 27002: template 27002: constexpr bool 27002: __has_single_bit(_Tp __x) noexcept 27002: { return std::__popcount(__x) == 1; } 27002: 27002: template 27002: constexpr _Tp 27002: __bit_ceil(_Tp __x) noexcept 27002: { 27002: using __gnu_cxx::__int_traits; 27002: constexpr auto _Nd = __int_traits<_Tp>::__digits; 27002: if (__x == 0 || __x == 1) 27002: return 1; 27002: auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); 27002: 27002: 27002: 27002: 27002: if (!std::__is_constant_evaluated()) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__shift_exponent != __int_traits<_Tp>::__digits)) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: using __promoted_type = decltype(__x << 1); 27002: if constexpr (!is_same<__promoted_type, _Tp>::value) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; 27002: __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; 27002: } 27002: return (_Tp)1u << __shift_exponent; 27002: } 27002: 27002: template 27002: constexpr _Tp 27002: __bit_floor(_Tp __x) noexcept 27002: { 27002: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 27002: if (__x == 0) 27002: return 0; 27002: return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); 27002: } 27002: 27002: template 27002: constexpr _Tp 27002: __bit_width(_Tp __x) noexcept 27002: { 27002: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 27002: return _Nd - std::__countl_zero(__x); 27002: } 27002: # 476 "/usr/include/c++/12/bit" 3 27002: 27002: } 27002: # 36 "/usr/include/c++/12/bits/align.h" 2 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 61 "/usr/include/c++/12/bits/align.h" 3 27002: inline void* 27002: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 27002: { 27002: if (__space < __size) 27002: return nullptr; 27002: const auto __intptr = reinterpret_cast(__ptr); 27002: const auto __aligned = (__intptr - 1u + __align) & -__align; 27002: const auto __diff = __aligned - __intptr; 27002: if (__diff > (__space - __size)) 27002: return nullptr; 27002: else 27002: { 27002: __space -= __diff; 27002: return __ptr = reinterpret_cast(__aligned); 27002: } 27002: } 27002: # 108 "/usr/include/c++/12/bits/align.h" 3 27002: 27002: } 27002: # 73 "/usr/include/c++/12/memory" 2 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/unique_ptr.h" 1 3 27002: # 52 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: template class auto_ptr; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: 27002: template 27002: struct default_delete 27002: { 27002: 27002: constexpr default_delete() noexcept = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template>> 27002: 27002: default_delete(const default_delete<_Up>&) noexcept { } 27002: 27002: 27002: 27002: void 27002: operator()(_Tp* __ptr) const 27002: { 27002: static_assert(!is_void<_Tp>::value, 27002: "can't delete pointer to incomplete type"); 27002: static_assert(sizeof(_Tp)>0, 27002: "can't delete pointer to incomplete type"); 27002: delete __ptr; 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct default_delete<_Tp[]> 27002: { 27002: public: 27002: 27002: constexpr default_delete() noexcept = default; 27002: # 119 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template>> 27002: 27002: default_delete(const default_delete<_Up[]>&) noexcept { } 27002: 27002: 27002: template 27002: 27002: typename enable_if::value>::type 27002: operator()(_Up* __ptr) const 27002: { 27002: static_assert(sizeof(_Tp)>0, 27002: "can't delete pointer to incomplete type"); 27002: delete [] __ptr; 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: class __uniq_ptr_impl 27002: { 27002: template 27002: struct _Ptr 27002: { 27002: using type = _Up*; 27002: }; 27002: 27002: template 27002: struct 27002: _Ptr<_Up, _Ep, __void_t::type::pointer>> 27002: { 27002: using type = typename remove_reference<_Ep>::type::pointer; 27002: }; 27002: 27002: public: 27002: using _DeleterConstraint = enable_if< 27002: __and_<__not_>, 27002: is_default_constructible<_Dp>>::value>; 27002: 27002: using pointer = typename _Ptr<_Tp, _Dp>::type; 27002: 27002: static_assert( !is_rvalue_reference<_Dp>::value, 27002: "unique_ptr's deleter type must be a function object type" 27002: " or an lvalue reference type" ); 27002: 27002: __uniq_ptr_impl() = default; 27002: 27002: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 27002: 27002: template 27002: 27002: __uniq_ptr_impl(pointer __p, _Del&& __d) 27002: : _M_t(__p, std::forward<_Del>(__d)) { } 27002: 27002: 27002: __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept 27002: : _M_t(std::move(__u._M_t)) 27002: { __u._M_ptr() = nullptr; } 27002: 27002: 27002: __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept 27002: { 27002: reset(__u.release()); 27002: _M_deleter() = std::forward<_Dp>(__u._M_deleter()); 27002: return *this; 27002: } 27002: 27002: 27002: pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } 27002: 27002: pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } 27002: 27002: _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } 27002: 27002: const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } 27002: 27002: 27002: void reset(pointer __p) noexcept 27002: { 27002: const pointer __old_p = _M_ptr(); 27002: _M_ptr() = __p; 27002: if (__old_p) 27002: _M_deleter()(__old_p); 27002: } 27002: 27002: 27002: pointer release() noexcept 27002: { 27002: pointer __p = _M_ptr(); 27002: _M_ptr() = nullptr; 27002: return __p; 27002: } 27002: 27002: 27002: void 27002: swap(__uniq_ptr_impl& __rhs) noexcept 27002: { 27002: using std::swap; 27002: swap(this->_M_ptr(), __rhs._M_ptr()); 27002: swap(this->_M_deleter(), __rhs._M_deleter()); 27002: } 27002: 27002: private: 27002: tuple _M_t; 27002: }; 27002: 27002: 27002: template ::value, 27002: bool = is_move_assignable<_Dp>::value> 27002: struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> 27002: { 27002: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 27002: __uniq_ptr_data(__uniq_ptr_data&&) = default; 27002: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 27002: }; 27002: 27002: template 27002: struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> 27002: { 27002: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 27002: __uniq_ptr_data(__uniq_ptr_data&&) = default; 27002: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 27002: }; 27002: 27002: template 27002: struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> 27002: { 27002: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 27002: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 27002: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 27002: }; 27002: 27002: template 27002: struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> 27002: { 27002: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 27002: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 27002: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template > 27002: class unique_ptr 27002: { 27002: template 27002: using _DeleterConstraint = 27002: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 27002: 27002: __uniq_ptr_data<_Tp, _Dp> _M_t; 27002: 27002: public: 27002: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 27002: using element_type = _Tp; 27002: using deleter_type = _Dp; 27002: 27002: private: 27002: 27002: 27002: template 27002: using __safe_conversion_up = __and_< 27002: is_convertible::pointer, pointer>, 27002: __not_> 27002: >; 27002: 27002: public: 27002: 27002: 27002: 27002: template> 27002: constexpr unique_ptr() noexcept 27002: : _M_t() 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: 27002: explicit 27002: unique_ptr(pointer __p) noexcept 27002: : _M_t(__p) 27002: { } 27002: # 320 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template>> 27002: 27002: unique_ptr(pointer __p, const deleter_type& __d) noexcept 27002: : _M_t(__p, __d) { } 27002: # 333 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template>> 27002: 27002: unique_ptr(pointer __p, 27002: __enable_if_t::value, 27002: _Del&&> __d) noexcept 27002: : _M_t(__p, std::move(__d)) 27002: { } 27002: 27002: template::type> 27002: 27002: unique_ptr(pointer, 27002: __enable_if_t::value, 27002: _DelUnref&&>) = delete; 27002: 27002: 27002: template> 27002: constexpr unique_ptr(nullptr_t) noexcept 27002: : _M_t() 27002: { } 27002: 27002: 27002: 27002: 27002: unique_ptr(unique_ptr&&) = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template, 27002: __conditional_t::value, 27002: is_same<_Ep, _Dp>, 27002: is_convertible<_Ep, _Dp>>>> 27002: 27002: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 27002: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 27002: { } 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: template, is_same<_Dp, default_delete<_Tp>>>> 27002: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: 27002: 27002: 27002: ~unique_ptr() noexcept 27002: { 27002: static_assert(__is_invocable::value, 27002: "unique_ptr's deleter must be invocable with a pointer"); 27002: auto& __ptr = _M_t._M_ptr(); 27002: if (__ptr != nullptr) 27002: get_deleter()(std::move(__ptr)); 27002: __ptr = pointer(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: unique_ptr& operator=(unique_ptr&&) = default; 27002: # 415 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template 27002: 27002: typename enable_if< __and_< 27002: __safe_conversion_up<_Up, _Ep>, 27002: is_assignable 27002: >::value, 27002: unique_ptr&>::type 27002: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 27002: { 27002: reset(__u.release()); 27002: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: unique_ptr& 27002: operator=(nullptr_t) noexcept 27002: { 27002: reset(); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: typename add_lvalue_reference::type 27002: operator*() const noexcept(noexcept(*std::declval())) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) __builtin_unreachable(); } while (false); 27002: return *get(); 27002: } 27002: 27002: 27002: 27002: pointer 27002: operator->() const noexcept 27002: { 27002: ; 27002: return get(); 27002: } 27002: 27002: 27002: 27002: pointer 27002: get() const noexcept 27002: { return _M_t._M_ptr(); } 27002: 27002: 27002: 27002: deleter_type& 27002: get_deleter() noexcept 27002: { return _M_t._M_deleter(); } 27002: 27002: 27002: 27002: const deleter_type& 27002: get_deleter() const noexcept 27002: { return _M_t._M_deleter(); } 27002: 27002: 27002: 27002: explicit operator bool() const noexcept 27002: { return get() == pointer() ? false : true; } 27002: 27002: 27002: 27002: 27002: 27002: pointer 27002: release() noexcept 27002: { return _M_t.release(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: reset(pointer __p = pointer()) noexcept 27002: { 27002: static_assert(__is_invocable::value, 27002: "unique_ptr's deleter must be invocable with a pointer"); 27002: _M_t.reset(std::move(__p)); 27002: } 27002: 27002: 27002: 27002: void 27002: swap(unique_ptr& __u) noexcept 27002: { 27002: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 27002: _M_t.swap(__u._M_t); 27002: } 27002: 27002: 27002: unique_ptr(const unique_ptr&) = delete; 27002: unique_ptr& operator=(const unique_ptr&) = delete; 27002: }; 27002: # 526 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template 27002: class unique_ptr<_Tp[], _Dp> 27002: { 27002: template 27002: using _DeleterConstraint = 27002: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 27002: 27002: __uniq_ptr_data<_Tp, _Dp> _M_t; 27002: 27002: template 27002: using __remove_cv = typename remove_cv<_Up>::type; 27002: 27002: 27002: template 27002: using __is_derived_Tp 27002: = __and_< is_base_of<_Tp, _Up>, 27002: __not_, __remove_cv<_Up>>> >; 27002: 27002: public: 27002: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 27002: using element_type = _Tp; 27002: using deleter_type = _Dp; 27002: 27002: 27002: 27002: template, 27002: typename _UP_pointer = typename _UPtr::pointer, 27002: typename _UP_element_type = typename _UPtr::element_type> 27002: using __safe_conversion_up = __and_< 27002: is_array<_Up>, 27002: is_same, 27002: is_same<_UP_pointer, _UP_element_type*>, 27002: is_convertible<_UP_element_type(*)[], element_type(*)[]> 27002: >; 27002: 27002: 27002: template 27002: using __safe_conversion_raw = __and_< 27002: __or_<__or_, 27002: is_same<_Up, nullptr_t>>, 27002: __and_, 27002: is_same, 27002: is_convertible< 27002: typename remove_pointer<_Up>::type(*)[], 27002: element_type(*)[]> 27002: > 27002: > 27002: >; 27002: 27002: 27002: 27002: 27002: template> 27002: constexpr unique_ptr() noexcept 27002: : _M_t() 27002: { } 27002: # 591 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template, 27002: typename = typename enable_if< 27002: __safe_conversion_raw<_Up>::value, bool>::type> 27002: 27002: explicit 27002: unique_ptr(_Up __p) noexcept 27002: : _M_t(__p) 27002: { } 27002: # 610 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template, 27002: is_copy_constructible<_Del>>> 27002: 27002: unique_ptr(_Up __p, const deleter_type& __d) noexcept 27002: : _M_t(__p, __d) { } 27002: # 625 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template, 27002: is_move_constructible<_Del>>> 27002: 27002: unique_ptr(_Up __p, 27002: __enable_if_t::value, 27002: _Del&&> __d) noexcept 27002: : _M_t(std::move(__p), std::move(__d)) 27002: { } 27002: 27002: template::type, 27002: typename = _Require<__safe_conversion_raw<_Up>>> 27002: unique_ptr(_Up, 27002: __enable_if_t::value, 27002: _DelUnref&&>) = delete; 27002: 27002: 27002: unique_ptr(unique_ptr&&) = default; 27002: 27002: 27002: template> 27002: constexpr unique_ptr(nullptr_t) noexcept 27002: : _M_t() 27002: { } 27002: 27002: template, 27002: __conditional_t::value, 27002: is_same<_Ep, _Dp>, 27002: is_convertible<_Ep, _Dp>>>> 27002: 27002: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 27002: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: ~unique_ptr() 27002: { 27002: auto& __ptr = _M_t._M_ptr(); 27002: if (__ptr != nullptr) 27002: get_deleter()(__ptr); 27002: __ptr = pointer(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: unique_ptr& 27002: operator=(unique_ptr&&) = default; 27002: # 689 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template 27002: 27002: typename 27002: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 27002: is_assignable 27002: >::value, 27002: unique_ptr&>::type 27002: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 27002: { 27002: reset(__u.release()); 27002: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: unique_ptr& 27002: operator=(nullptr_t) noexcept 27002: { 27002: reset(); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: typename std::add_lvalue_reference::type 27002: operator[](size_t __i) const 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) __builtin_unreachable(); } while (false); 27002: return get()[__i]; 27002: } 27002: 27002: 27002: 27002: pointer 27002: get() const noexcept 27002: { return _M_t._M_ptr(); } 27002: 27002: 27002: 27002: deleter_type& 27002: get_deleter() noexcept 27002: { return _M_t._M_deleter(); } 27002: 27002: 27002: 27002: const deleter_type& 27002: get_deleter() const noexcept 27002: { return _M_t._M_deleter(); } 27002: 27002: 27002: 27002: explicit operator bool() const noexcept 27002: { return get() == pointer() ? false : true; } 27002: 27002: 27002: 27002: 27002: 27002: pointer 27002: release() noexcept 27002: { return _M_t.release(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template , 27002: __and_, 27002: is_pointer<_Up>, 27002: is_convertible< 27002: typename remove_pointer<_Up>::type(*)[], 27002: element_type(*)[] 27002: > 27002: > 27002: > 27002: >> 27002: 27002: void 27002: reset(_Up __p) noexcept 27002: { _M_t.reset(std::move(__p)); } 27002: 27002: 27002: void reset(nullptr_t = nullptr) noexcept 27002: { reset(pointer()); } 27002: 27002: 27002: 27002: void 27002: swap(unique_ptr& __u) noexcept 27002: { 27002: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 27002: _M_t.swap(__u._M_t); 27002: } 27002: 27002: 27002: unique_ptr(const unique_ptr&) = delete; 27002: unique_ptr& operator=(const unique_ptr&) = delete; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline 27002: 27002: 27002: 27002: typename enable_if<__is_swappable<_Dp>::value>::type 27002: 27002: 27002: 27002: swap(unique_ptr<_Tp, _Dp>& __x, 27002: unique_ptr<_Tp, _Dp>& __y) noexcept 27002: { __x.swap(__y); } 27002: 27002: 27002: template 27002: typename enable_if::value>::type 27002: swap(unique_ptr<_Tp, _Dp>&, 27002: unique_ptr<_Tp, _Dp>&) = delete; 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator==(const unique_ptr<_Tp, _Dp>& __x, 27002: const unique_ptr<_Up, _Ep>& __y) 27002: { return __x.get() == __y.get(); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 27002: { return !__x; } 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 27002: { return !__x; } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator!=(const unique_ptr<_Tp, _Dp>& __x, 27002: const unique_ptr<_Up, _Ep>& __y) 27002: { return __x.get() != __y.get(); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 27002: { return (bool)__x; } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 27002: { return (bool)__x; } 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<(const unique_ptr<_Tp, _Dp>& __x, 27002: const unique_ptr<_Up, _Ep>& __y) 27002: { 27002: typedef typename 27002: std::common_type::pointer, 27002: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 27002: return std::less<_CT>()(__x.get(), __y.get()); 27002: } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 27002: { 27002: return std::less::pointer>()(__x.get(), 27002: nullptr); 27002: } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 27002: { 27002: return std::less::pointer>()(nullptr, 27002: __x.get()); 27002: } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<=(const unique_ptr<_Tp, _Dp>& __x, 27002: const unique_ptr<_Up, _Ep>& __y) 27002: { return !(__y < __x); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 27002: { return !(nullptr < __x); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 27002: { return !(__x < nullptr); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>(const unique_ptr<_Tp, _Dp>& __x, 27002: const unique_ptr<_Up, _Ep>& __y) 27002: { return (__y < __x); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 27002: { 27002: return std::less::pointer>()(nullptr, 27002: __x.get()); 27002: } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 27002: { 27002: return std::less::pointer>()(__x.get(), 27002: nullptr); 27002: } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>=(const unique_ptr<_Tp, _Dp>& __x, 27002: const unique_ptr<_Up, _Ep>& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 27002: { return !(__x < nullptr); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 27002: { return !(nullptr < __x); } 27002: # 1001 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template::__enable_hash_call> 27002: struct __uniq_ptr_hash 27002: 27002: : private __poison_hash<_Ptr> 27002: 27002: { 27002: size_t 27002: operator()(const _Up& __u) const 27002: noexcept(noexcept(std::declval>()(std::declval<_Ptr>()))) 27002: { return hash<_Ptr>()(__u.get()); } 27002: }; 27002: 27002: template 27002: struct __uniq_ptr_hash<_Up, _Ptr, false> 27002: : private __poison_hash<_Ptr> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct hash> 27002: : public __hash_base>, 27002: public __uniq_ptr_hash> 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: namespace __detail 27002: { 27002: template 27002: struct _MakeUniq 27002: { typedef unique_ptr<_Tp> __single_object; }; 27002: 27002: template 27002: struct _MakeUniq<_Tp[]> 27002: { typedef unique_ptr<_Tp[]> __array; }; 27002: 27002: template 27002: struct _MakeUniq<_Tp[_Bound]> 27002: { struct __invalid_type { }; }; 27002: 27002: template 27002: using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; 27002: template 27002: using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; 27002: template 27002: using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; 27002: } 27002: # 1061 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template 27002: 27002: inline __detail::__unique_ptr_t<_Tp> 27002: make_unique(_Args&&... __args) 27002: { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } 27002: # 1076 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: template 27002: 27002: inline __detail::__unique_ptr_array_t<_Tp> 27002: make_unique(size_t __num) 27002: { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: __detail::__invalid_make_unique_t<_Tp> 27002: make_unique(_Args&&...) = delete; 27002: # 1149 "/usr/include/c++/12/bits/unique_ptr.h" 3 27002: namespace __detail::__variant 27002: { 27002: template struct _Never_valueless_alt; 27002: 27002: 27002: 27002: template 27002: struct _Never_valueless_alt> 27002: : std::true_type 27002: { }; 27002: } 27002: 27002: 27002: 27002: } 27002: # 77 "/usr/include/c++/12/memory" 2 3 27002: # 1 "/usr/include/c++/12/bits/shared_ptr.h" 1 3 27002: # 52 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: # 1 "/usr/include/c++/12/iosfwd" 1 3 27002: # 36 "/usr/include/c++/12/iosfwd" 3 27002: 27002: # 37 "/usr/include/c++/12/iosfwd" 3 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/stringfwd.h" 1 3 27002: # 37 "/usr/include/c++/12/bits/stringfwd.h" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/stringfwd.h" 3 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct char_traits; 27002: 27002: template<> struct char_traits; 27002: 27002: template<> struct char_traits; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> struct char_traits; 27002: template<> struct char_traits; 27002: 27002: 27002: namespace __cxx11 { 27002: 27002: template, 27002: typename _Alloc = allocator<_CharT> > 27002: class basic_string; 27002: 27002: } 27002: 27002: 27002: typedef basic_string string; 27002: 27002: 27002: typedef basic_string wstring; 27002: # 89 "/usr/include/c++/12/bits/stringfwd.h" 3 27002: typedef basic_string u16string; 27002: 27002: 27002: typedef basic_string u32string; 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 40 "/usr/include/c++/12/iosfwd" 2 3 27002: # 1 "/usr/include/c++/12/bits/postypes.h" 1 3 27002: # 38 "/usr/include/c++/12/bits/postypes.h" 3 27002: 27002: # 39 "/usr/include/c++/12/bits/postypes.h" 3 27002: 27002: # 1 "/usr/include/c++/12/cwchar" 1 3 27002: # 39 "/usr/include/c++/12/cwchar" 3 27002: 27002: # 40 "/usr/include/c++/12/cwchar" 3 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/wchar.h" 1 3 4 27002: # 27 "/usr/include/wchar.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 27002: # 28 "/usr/include/wchar.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 27002: # 31 "/usr/include/wchar.h" 2 3 4 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 36 "/usr/include/wchar.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdarg.h" 1 3 4 27002: # 40 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdarg.h" 3 4 27002: typedef __builtin_va_list __gnuc_va_list; 27002: # 39 "/usr/include/wchar.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 1 3 4 27002: # 20 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 3 4 27002: typedef unsigned int wint_t; 27002: # 42 "/usr/include/wchar.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 1 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 1 3 4 27002: # 13 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 3 4 27002: typedef struct 27002: { 27002: int __count; 27002: union 27002: { 27002: unsigned int __wch; 27002: char __wchb[4]; 27002: } __value; 27002: } __mbstate_t; 27002: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 2 3 4 27002: 27002: typedef __mbstate_t mbstate_t; 27002: # 43 "/usr/include/wchar.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__FILE.h" 1 3 4 27002: 27002: 27002: 27002: struct _IO_FILE; 27002: typedef struct _IO_FILE __FILE; 27002: # 44 "/usr/include/wchar.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/FILE.h" 1 3 4 27002: 27002: 27002: 27002: struct _IO_FILE; 27002: 27002: 27002: typedef struct _IO_FILE FILE; 27002: # 47 "/usr/include/wchar.h" 2 3 4 27002: # 79 "/usr/include/wchar.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: struct tm; 27002: 27002: 27002: 27002: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern wchar_t *wcscat (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 27002: 27002: 27002: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 27002: size_t __n) noexcept (true); 27002: 27002: 27002: 27002: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 27002: locale_t __loc) noexcept (true); 27002: 27002: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 27002: size_t __n, locale_t __loc) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 27002: 27002: 27002: 27002: extern size_t wcsxfrm (wchar_t *__restrict __s1, 27002: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 27002: locale_t __loc) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 27002: size_t __n, locale_t __loc) noexcept (true); 27002: 27002: 27002: extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) 27002: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 27002: 27002: 27002: 27002: 27002: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 27002: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 27002: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 27002: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 27002: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 27002: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 27002: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 27002: # 182 "/usr/include/wchar.h" 3 4 27002: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 27002: noexcept (true) __attribute__ ((__pure__)); 27002: 27002: 27002: 27002: 27002: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 27002: noexcept (true) __attribute__ ((__pure__)); 27002: 27002: 27002: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 27002: noexcept (true) __attribute__ ((__pure__)); 27002: 27002: 27002: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 27002: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 27002: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 27002: const wchar_t *__accept) 27002: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 27002: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 27002: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 27002: const wchar_t *__needle) 27002: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern wchar_t *wcstok (wchar_t *__restrict __s, 27002: const wchar_t *__restrict __delim, 27002: wchar_t **__restrict __ptr) noexcept (true); 27002: 27002: 27002: extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); 27002: 27002: 27002: 27002: 27002: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 27002: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 27002: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 27002: const wchar_t *__needle) 27002: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 27002: # 241 "/usr/include/wchar.h" 3 4 27002: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 27002: noexcept (true) __attribute__ ((__pure__)); 27002: 27002: 27002: 27002: 27002: 27002: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 27002: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 27002: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 27002: size_t __n) 27002: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 27002: noexcept (true) __attribute__ ((__pure__)); 27002: 27002: 27002: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 27002: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 27002: 27002: 27002: 27002: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 27002: noexcept (true); 27002: 27002: 27002: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 27002: const wchar_t *__restrict __s2, size_t __n) 27002: noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern wint_t btowc (int __c) noexcept (true); 27002: 27002: 27002: 27002: extern int wctob (wint_t __c) noexcept (true); 27002: 27002: 27002: 27002: extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); 27002: 27002: 27002: 27002: extern size_t mbrtowc (wchar_t *__restrict __pwc, 27002: const char *__restrict __s, size_t __n, 27002: mbstate_t *__restrict __p) noexcept (true); 27002: 27002: 27002: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 27002: mbstate_t *__restrict __ps) noexcept (true); 27002: 27002: 27002: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 27002: mbstate_t *__restrict __ps) noexcept (true); 27002: extern size_t mbrlen (const char *__restrict __s, size_t __n, 27002: mbstate_t *__restrict __ps) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 27002: extern __inline __attribute__ ((__gnu_inline__)) wint_t 27002: __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) 27002: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 27002: ? (wint_t) __c : __btowc_alias (__c)); } 27002: 27002: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) 27002: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 27002: ? (int) __wc : __wctob_alias (__wc)); } 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) size_t 27002: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) 27002: 27002: { return (__ps != __null 27002: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 27002: 27002: 27002: 27002: 27002: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 27002: const char **__restrict __src, size_t __len, 27002: mbstate_t *__restrict __ps) noexcept (true); 27002: 27002: 27002: 27002: extern size_t wcsrtombs (char *__restrict __dst, 27002: const wchar_t **__restrict __src, size_t __len, 27002: mbstate_t *__restrict __ps) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 27002: const char **__restrict __src, size_t __nmc, 27002: size_t __len, mbstate_t *__restrict __ps) noexcept (true); 27002: 27002: 27002: 27002: extern size_t wcsnrtombs (char *__restrict __dst, 27002: const wchar_t **__restrict __src, 27002: size_t __nwc, size_t __len, 27002: mbstate_t *__restrict __ps) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int wcwidth (wchar_t __c) noexcept (true); 27002: 27002: 27002: 27002: extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern double wcstod (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr) noexcept (true); 27002: 27002: 27002: 27002: extern float wcstof (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr) noexcept (true); 27002: extern long double wcstold (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr) noexcept (true); 27002: # 397 "/usr/include/wchar.h" 3 4 27002: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr) noexcept (true); 27002: 27002: 27002: 27002: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr) noexcept (true); 27002: # 412 "/usr/include/wchar.h" 3 4 27002: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr) noexcept (true); 27002: # 429 "/usr/include/wchar.h" 3 4 27002: extern long int wcstol (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, int __base) noexcept (true); 27002: 27002: 27002: 27002: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, int __base) 27002: noexcept (true); 27002: 27002: 27002: 27002: 27002: __extension__ 27002: extern long long int wcstoll (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, int __base) 27002: noexcept (true); 27002: 27002: 27002: 27002: __extension__ 27002: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, 27002: int __base) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: __extension__ 27002: extern long long int wcstoq (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, int __base) 27002: noexcept (true); 27002: 27002: 27002: 27002: __extension__ 27002: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, 27002: int __base) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long int wcstol_l (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, int __base, 27002: locale_t __loc) noexcept (true); 27002: 27002: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, 27002: int __base, locale_t __loc) noexcept (true); 27002: 27002: __extension__ 27002: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, 27002: int __base, locale_t __loc) noexcept (true); 27002: 27002: __extension__ 27002: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, 27002: int __base, locale_t __loc) 27002: noexcept (true); 27002: 27002: extern double wcstod_l (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, locale_t __loc) 27002: noexcept (true); 27002: 27002: extern float wcstof_l (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, locale_t __loc) 27002: noexcept (true); 27002: 27002: extern long double wcstold_l (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, 27002: locale_t __loc) noexcept (true); 27002: # 512 "/usr/include/wchar.h" 3 4 27002: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, 27002: locale_t __loc) noexcept (true); 27002: 27002: 27002: 27002: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, 27002: locale_t __loc) noexcept (true); 27002: # 530 "/usr/include/wchar.h" 3 4 27002: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, 27002: locale_t __loc) noexcept (true); 27002: # 552 "/usr/include/wchar.h" 3 4 27002: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src) noexcept (true); 27002: 27002: 27002: 27002: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src, size_t __n) 27002: noexcept (true); 27002: # 581 "/usr/include/wchar.h" 3 4 27002: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 27002: __attribute__ ((__malloc__)) ; 27002: 27002: 27002: 27002: 27002: 27002: extern int fwide (__FILE *__fp, int __mode) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fwprintf (__FILE *__restrict __stream, 27002: const wchar_t *__restrict __format, ...) 27002: ; 27002: 27002: 27002: 27002: 27002: extern int wprintf (const wchar_t *__restrict __format, ...) 27002: ; 27002: 27002: extern int swprintf (wchar_t *__restrict __s, size_t __n, 27002: const wchar_t *__restrict __format, ...) 27002: noexcept (true) ; 27002: 27002: 27002: 27002: 27002: 27002: extern int vfwprintf (__FILE *__restrict __s, 27002: const wchar_t *__restrict __format, 27002: __gnuc_va_list __arg) 27002: ; 27002: 27002: 27002: 27002: 27002: extern int vwprintf (const wchar_t *__restrict __format, 27002: __gnuc_va_list __arg) 27002: ; 27002: 27002: 27002: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 27002: const wchar_t *__restrict __format, 27002: __gnuc_va_list __arg) 27002: noexcept (true) ; 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fwscanf (__FILE *__restrict __stream, 27002: const wchar_t *__restrict __format, ...) 27002: ; 27002: 27002: 27002: 27002: 27002: extern int wscanf (const wchar_t *__restrict __format, ...) 27002: ; 27002: 27002: extern int swscanf (const wchar_t *__restrict __s, 27002: const wchar_t *__restrict __format, ...) 27002: noexcept (true) ; 27002: # 657 "/usr/include/wchar.h" 3 4 27002: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_fwscanf") 27002: 27002: 27002: ; 27002: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_wscanf") 27002: 27002: ; 27002: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc99_swscanf") 27002: 27002: 27002: ; 27002: # 688 "/usr/include/wchar.h" 3 4 27002: extern int vfwscanf (__FILE *__restrict __s, 27002: const wchar_t *__restrict __format, 27002: __gnuc_va_list __arg) 27002: ; 27002: 27002: 27002: 27002: 27002: extern int vwscanf (const wchar_t *__restrict __format, 27002: __gnuc_va_list __arg) 27002: ; 27002: 27002: extern int vswscanf (const wchar_t *__restrict __s, 27002: const wchar_t *__restrict __format, 27002: __gnuc_va_list __arg) 27002: noexcept (true) ; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfwscanf") 27002: 27002: 27002: ; 27002: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vwscanf") 27002: 27002: ; 27002: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc99_vswscanf") 27002: 27002: 27002: ; 27002: # 744 "/usr/include/wchar.h" 3 4 27002: extern wint_t fgetwc (__FILE *__stream); 27002: extern wint_t getwc (__FILE *__stream); 27002: 27002: 27002: 27002: 27002: 27002: extern wint_t getwchar (void); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 27002: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 27002: 27002: 27002: 27002: 27002: 27002: extern wint_t putwchar (wchar_t __wc); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 27002: __FILE *__restrict __stream); 27002: 27002: 27002: 27002: 27002: 27002: extern int fputws (const wchar_t *__restrict __ws, 27002: __FILE *__restrict __stream); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 27002: # 799 "/usr/include/wchar.h" 3 4 27002: extern wint_t getwc_unlocked (__FILE *__stream); 27002: extern wint_t getwchar_unlocked (void); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern wint_t fgetwc_unlocked (__FILE *__stream); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 27002: # 825 "/usr/include/wchar.h" 3 4 27002: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 27002: extern wint_t putwchar_unlocked (wchar_t __wc); 27002: # 835 "/usr/include/wchar.h" 3 4 27002: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 27002: __FILE *__restrict __stream); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fputws_unlocked (const wchar_t *__restrict __ws, 27002: __FILE *__restrict __stream); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 27002: const wchar_t *__restrict __format, 27002: const struct tm *__restrict __tp) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 27002: const wchar_t *__restrict __format, 27002: const struct tm *__restrict __tp, 27002: locale_t __loc) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 1 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 3 4 27002: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 27002: const wchar_t *__restrict __s2, size_t __n, 27002: size_t __ns1) noexcept (true); 27002: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 27002: size_t __n, size_t __ns1) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 27002: const wchar_t *__restrict __s2, size_t __n, 27002: size_t __ns1) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 27002: size_t __ns) noexcept (true); 27002: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src, 27002: size_t __n) noexcept (true); 27002: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src, 27002: size_t __destlen) noexcept (true); 27002: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src, size_t __n, 27002: size_t __destlen) noexcept (true); 27002: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src, size_t __n, 27002: size_t __destlen) noexcept (true); 27002: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src, 27002: size_t __destlen) noexcept (true); 27002: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 27002: const wchar_t *__restrict __src, 27002: size_t __n, size_t __destlen) noexcept (true); 27002: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 27002: int __flag, size_t __s_len, 27002: const wchar_t *__restrict __format, ...) 27002: noexcept (true) ; 27002: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 27002: int __flag, size_t __s_len, 27002: const wchar_t *__restrict __format, 27002: __gnuc_va_list __arg) 27002: noexcept (true) ; 27002: 27002: 27002: 27002: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 27002: const wchar_t *__restrict __format, ...); 27002: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 27002: ...); 27002: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 27002: const wchar_t *__restrict __format, 27002: __gnuc_va_list __ap); 27002: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 27002: __gnuc_va_list __ap); 27002: 27002: 27002: 27002: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 27002: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 27002: int __n, __FILE *__restrict __stream) 27002: __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 27002: mbstate_t *__restrict __p, 27002: size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 27002: const char **__restrict __src, 27002: size_t __len, mbstate_t *__restrict __ps, 27002: size_t __dstlen) noexcept (true); 27002: extern size_t __wcsrtombs_chk (char *__restrict __dst, 27002: const wchar_t **__restrict __src, 27002: size_t __len, mbstate_t *__restrict __ps, 27002: size_t __dstlen) noexcept (true); 27002: 27002: 27002: 27002: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 27002: const char **__restrict __src, size_t __nmc, 27002: size_t __len, mbstate_t *__restrict __ps, 27002: size_t __dstlen) noexcept (true); 27002: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 27002: const wchar_t **__restrict __src, 27002: size_t __nwc, size_t __len, 27002: mbstate_t *__restrict __ps, size_t __dstlen) 27002: noexcept (true); 27002: # 869 "/usr/include/wchar.h" 2 3 4 27002: # 879 "/usr/include/wchar.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 27002: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") 27002: 27002: 27002: ; 27002: 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") 27002: 27002: 27002: 27002: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 27002: __attribute__ ((__leaf__)) wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 27002: 27002: { 27002: 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))))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") 27002: 27002: ; 27002: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") 27002: 27002: 27002: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 27002: __attribute__ ((__leaf__)) wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) 27002: { 27002: 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))))) 27002: 27002: ; 27002: } 27002: 27002: 27002: 27002: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") 27002: 27002: 27002: ; 27002: 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") 27002: 27002: 27002: 27002: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 27002: __attribute__ ((__leaf__)) wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 27002: 27002: { 27002: 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))))) 27002: 27002: ; 27002: } 27002: 27002: 27002: 27002: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") 27002: ; 27002: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") 27002: 27002: 27002: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 27002: __attribute__ ((__leaf__)) wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) 27002: { 27002: 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))))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") 27002: 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 27002: __attribute__ ((__leaf__)) wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 27002: { 27002: size_t sz = __builtin_object_size (__dest, 2 > 1); 27002: if (sz != (size_t) -1) 27002: return __wcscpy_chk (__dest, __src, sz / sizeof (wchar_t)); 27002: return __wcscpy_alias (__dest, __src); 27002: } 27002: 27002: 27002: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") 27002: 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 27002: __attribute__ ((__leaf__)) wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 27002: { 27002: size_t sz = __builtin_object_size (__dest, 2 > 1); 27002: if (sz != (size_t) -1) 27002: return __wcpcpy_chk (__dest, __src, sz / sizeof (wchar_t)); 27002: return __wcpcpy_alias (__dest, __src); 27002: } 27002: 27002: 27002: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") 27002: 27002: 27002: ; 27002: 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") 27002: 27002: 27002: 27002: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 27002: __attribute__ ((__leaf__)) wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 27002: 27002: { 27002: 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))))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") 27002: 27002: 27002: ; 27002: 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") 27002: 27002: 27002: 27002: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 27002: __attribute__ ((__leaf__)) wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 27002: 27002: { 27002: 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))))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") 27002: 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 27002: __attribute__ ((__leaf__)) wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) 27002: { 27002: size_t sz = __builtin_object_size (__dest, 2 > 1); 27002: if (sz != (size_t) -1) 27002: return __wcscat_chk (__dest, __src, sz / sizeof (wchar_t)); 27002: return __wcscat_alias (__dest, __src); 27002: } 27002: 27002: 27002: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") 27002: 27002: 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 27002: __attribute__ ((__leaf__)) wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 27002: 27002: { 27002: size_t sz = __builtin_object_size (__dest, 2 > 1); 27002: if (sz != (size_t) -1) 27002: return __wcsncat_chk (__dest, __src, __n, sz / sizeof (wchar_t)); 27002: return __wcsncat_alias (__dest, __src, __n); 27002: } 27002: 27002: 27002: 27002: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") 27002: 27002: 27002: ; 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) 27002: 27002: { 27002: size_t sz = __builtin_object_size (__s, 2 > 1); 27002: if (sz != (size_t) -1 || 2 > 1) 27002: return __swprintf_chk (__s, __n, 2 - 1, 27002: sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); 27002: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 27002: } 27002: # 230 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 27002: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") 27002: 27002: 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 27002: 27002: { 27002: size_t sz = __builtin_object_size (__s, 2 > 1); 27002: if (sz != (size_t) -1 || 2 > 1) 27002: return __vswprintf_chk (__s, __n, 2 - 1, 27002: sz / sizeof (wchar_t), __fmt, __ap); 27002: return __vswprintf_alias (__s, __n, __fmt, __ap); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: wprintf (const wchar_t *__restrict __fmt, ...) 27002: { 27002: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 27002: { 27002: return __fwprintf_chk (__stream, 2 - 1, __fmt, 27002: __builtin_va_arg_pack ()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 27002: { 27002: return __vwprintf_chk (2 - 1, __fmt, __ap); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: vfwprintf (__FILE *__restrict __stream, 27002: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 27002: { 27002: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 27002: } 27002: 27002: 27002: 27002: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 27002: 27002: __attribute__ ((__warn_unused_result__)); 27002: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 27002: fgetws (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) 27002: { 27002: size_t sz = __builtin_object_size (__s, 2 > 1); 27002: 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))))))) 27002: return __fgetws_alias (__s, __n, __stream); 27002: 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))))) 27002: return __fgetws_chk_warn (__s, sz / sizeof (wchar_t), __n, __stream); 27002: return __fgetws_chk (__s, sz / sizeof (wchar_t), __n, __stream); 27002: } 27002: 27002: 27002: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)); 27002: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 27002: 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 27002: fgetws_unlocked (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) 27002: { 27002: size_t sz = __builtin_object_size (__s, 2 > 1); 27002: 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))))))) 27002: return __fgetws_unlocked_alias (__s, __n, __stream); 27002: 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))))) 27002: return __fgetws_unlocked_chk_warn (__s, sz / sizeof (wchar_t), __n, 27002: __stream); 27002: return __fgetws_unlocked_chk (__s, sz / sizeof (wchar_t), __n, __stream); 27002: } 27002: 27002: 27002: 27002: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") 27002: 27002: __attribute__ ((__warn_unused_result__)); 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 27002: __attribute__ ((__leaf__)) wcrtomb (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) 27002: 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 27002: && 16 > __builtin_object_size (__s, 2 > 1)) 27002: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 27002: return __wcrtomb_alias (__s, __wchar, __ps); 27002: } 27002: 27002: 27002: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") 27002: 27002: 27002: 27002: ; 27002: 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") 27002: 27002: 27002: 27002: 27002: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 27002: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 27002: 27002: { 27002: 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))))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") 27002: 27002: 27002: 27002: ; 27002: 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") 27002: 27002: 27002: 27002: 27002: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 27002: __attribute__ ((__leaf__)) wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 27002: 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: 27002: 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") 27002: 27002: 27002: 27002: ; 27002: 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") 27002: 27002: 27002: 27002: 27002: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 27002: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 27002: 27002: { 27002: 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))))) 27002: 27002: ; 27002: } 27002: 27002: 27002: 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") 27002: 27002: 27002: 27002: ; 27002: 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") 27002: 27002: 27002: 27002: 27002: 27002: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 27002: __attribute__ ((__leaf__)) wcsnrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 27002: 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: # 880 "/usr/include/wchar.h" 2 3 4 27002: 27002: 27002: } 27002: # 45 "/usr/include/c++/12/cwchar" 2 3 27002: # 62 "/usr/include/c++/12/cwchar" 3 27002: namespace std 27002: { 27002: using ::mbstate_t; 27002: } 27002: # 135 "/usr/include/c++/12/cwchar" 3 27002: extern "C++" 27002: { 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: using ::wint_t; 27002: 27002: using ::btowc; 27002: using ::fgetwc; 27002: using ::fgetws; 27002: using ::fputwc; 27002: using ::fputws; 27002: using ::fwide; 27002: using ::fwprintf; 27002: using ::fwscanf; 27002: using ::getwc; 27002: using ::getwchar; 27002: using ::mbrlen; 27002: using ::mbrtowc; 27002: using ::mbsinit; 27002: using ::mbsrtowcs; 27002: using ::putwc; 27002: using ::putwchar; 27002: 27002: using ::swprintf; 27002: 27002: using ::swscanf; 27002: using ::ungetwc; 27002: using ::vfwprintf; 27002: 27002: using ::vfwscanf; 27002: 27002: 27002: using ::vswprintf; 27002: 27002: 27002: using ::vswscanf; 27002: 27002: using ::vwprintf; 27002: 27002: using ::vwscanf; 27002: 27002: using ::wcrtomb; 27002: using ::wcscat; 27002: using ::wcscmp; 27002: using ::wcscoll; 27002: using ::wcscpy; 27002: using ::wcscspn; 27002: using ::wcsftime; 27002: using ::wcslen; 27002: using ::wcsncat; 27002: using ::wcsncmp; 27002: using ::wcsncpy; 27002: using ::wcsrtombs; 27002: using ::wcsspn; 27002: using ::wcstod; 27002: 27002: using ::wcstof; 27002: 27002: using ::wcstok; 27002: using ::wcstol; 27002: using ::wcstoul; 27002: using ::wcsxfrm; 27002: using ::wctob; 27002: using ::wmemcmp; 27002: using ::wmemcpy; 27002: using ::wmemmove; 27002: using ::wmemset; 27002: using ::wprintf; 27002: using ::wscanf; 27002: using ::wcschr; 27002: using ::wcspbrk; 27002: using ::wcsrchr; 27002: using ::wcsstr; 27002: using ::wmemchr; 27002: # 234 "/usr/include/c++/12/cwchar" 3 27002: 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace __gnu_cxx 27002: { 27002: 27002: 27002: 27002: 27002: 27002: using ::wcstold; 27002: # 260 "/usr/include/c++/12/cwchar" 3 27002: using ::wcstoll; 27002: using ::wcstoull; 27002: 27002: } 27002: 27002: namespace std 27002: { 27002: using ::__gnu_cxx::wcstold; 27002: using ::__gnu_cxx::wcstoll; 27002: using ::__gnu_cxx::wcstoull; 27002: } 27002: # 280 "/usr/include/c++/12/cwchar" 3 27002: namespace std 27002: { 27002: 27002: using std::wcstof; 27002: 27002: 27002: using std::vfwscanf; 27002: 27002: 27002: using std::vswscanf; 27002: 27002: 27002: using std::vwscanf; 27002: 27002: 27002: 27002: using std::wcstold; 27002: using std::wcstoll; 27002: using std::wcstoull; 27002: 27002: } 27002: # 41 "/usr/include/c++/12/bits/postypes.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 62 "/usr/include/c++/12/bits/postypes.h" 3 27002: typedef long long int streamoff; 27002: 27002: 27002: 27002: 27002: 27002: typedef ptrdiff_t streamsize; 27002: # 81 "/usr/include/c++/12/bits/postypes.h" 3 27002: template 27002: class fpos 27002: { 27002: private: 27002: streamoff _M_off; 27002: _StateT _M_state; 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: fpos() 27002: : _M_off(0), _M_state() { } 27002: # 103 "/usr/include/c++/12/bits/postypes.h" 3 27002: fpos(streamoff __off) 27002: : _M_off(__off), _M_state() { } 27002: 27002: 27002: fpos(const fpos&) = default; 27002: fpos& operator=(const fpos&) = default; 27002: ~fpos() = default; 27002: 27002: 27002: 27002: operator streamoff() const { return _M_off; } 27002: 27002: 27002: void 27002: state(_StateT __st) 27002: { _M_state = __st; } 27002: 27002: 27002: _StateT 27002: state() const 27002: { return _M_state; } 27002: 27002: 27002: 27002: 27002: 27002: fpos& 27002: operator+=(streamoff __off) 27002: { 27002: _M_off += __off; 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: fpos& 27002: operator-=(streamoff __off) 27002: { 27002: _M_off -= __off; 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: fpos 27002: operator+(streamoff __off) const 27002: { 27002: fpos __pos(*this); 27002: __pos += __off; 27002: return __pos; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: fpos 27002: operator-(streamoff __off) const 27002: { 27002: fpos __pos(*this); 27002: __pos -= __off; 27002: return __pos; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: streamoff 27002: operator-(const fpos& __other) const 27002: { return _M_off - __other._M_off; } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 27002: { return streamoff(__lhs) == streamoff(__rhs); } 27002: 27002: template 27002: inline bool 27002: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 27002: { return streamoff(__lhs) != streamoff(__rhs); } 27002: 27002: 27002: 27002: 27002: 27002: typedef fpos streampos; 27002: 27002: typedef fpos wstreampos; 27002: # 215 "/usr/include/c++/12/bits/postypes.h" 3 27002: typedef fpos u16streampos; 27002: 27002: typedef fpos u32streampos; 27002: 27002: 27002: 27002: } 27002: # 41 "/usr/include/c++/12/iosfwd" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 74 "/usr/include/c++/12/iosfwd" 3 27002: class ios_base; 27002: 27002: template > 27002: class basic_ios; 27002: 27002: template > 27002: class basic_streambuf; 27002: 27002: template > 27002: class basic_istream; 27002: 27002: template > 27002: class basic_ostream; 27002: 27002: template > 27002: class basic_iostream; 27002: 27002: 27002: namespace __cxx11 { 27002: 27002: template, 27002: typename _Alloc = allocator<_CharT> > 27002: class basic_stringbuf; 27002: 27002: template, 27002: typename _Alloc = allocator<_CharT> > 27002: class basic_istringstream; 27002: 27002: template, 27002: typename _Alloc = allocator<_CharT> > 27002: class basic_ostringstream; 27002: 27002: template, 27002: typename _Alloc = allocator<_CharT> > 27002: class basic_stringstream; 27002: 27002: } 27002: 27002: template > 27002: class basic_filebuf; 27002: 27002: template > 27002: class basic_ifstream; 27002: 27002: template > 27002: class basic_ofstream; 27002: 27002: template > 27002: class basic_fstream; 27002: 27002: template > 27002: class istreambuf_iterator; 27002: 27002: template > 27002: class ostreambuf_iterator; 27002: 27002: 27002: 27002: typedef basic_ios ios; 27002: 27002: 27002: typedef basic_streambuf streambuf; 27002: 27002: 27002: typedef basic_istream istream; 27002: 27002: 27002: typedef basic_ostream ostream; 27002: 27002: 27002: typedef basic_iostream iostream; 27002: 27002: 27002: typedef basic_stringbuf stringbuf; 27002: 27002: 27002: typedef basic_istringstream istringstream; 27002: 27002: 27002: typedef basic_ostringstream ostringstream; 27002: 27002: 27002: typedef basic_stringstream stringstream; 27002: 27002: 27002: typedef basic_filebuf filebuf; 27002: 27002: 27002: typedef basic_ifstream ifstream; 27002: 27002: 27002: typedef basic_ofstream ofstream; 27002: 27002: 27002: typedef basic_fstream fstream; 27002: 27002: 27002: 27002: typedef basic_ios wios; 27002: 27002: 27002: typedef basic_streambuf wstreambuf; 27002: 27002: 27002: typedef basic_istream wistream; 27002: 27002: 27002: typedef basic_ostream wostream; 27002: 27002: 27002: typedef basic_iostream wiostream; 27002: 27002: 27002: typedef basic_stringbuf wstringbuf; 27002: 27002: 27002: typedef basic_istringstream wistringstream; 27002: 27002: 27002: typedef basic_ostringstream wostringstream; 27002: 27002: 27002: typedef basic_stringstream wstringstream; 27002: 27002: 27002: typedef basic_filebuf wfilebuf; 27002: 27002: 27002: typedef basic_ifstream wifstream; 27002: 27002: 27002: typedef basic_ofstream wofstream; 27002: 27002: 27002: typedef basic_fstream wfstream; 27002: # 253 "/usr/include/c++/12/iosfwd" 3 27002: 27002: } 27002: # 53 "/usr/include/c++/12/bits/shared_ptr.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/shared_ptr_base.h" 1 3 27002: # 53 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 27002: # 1 "/usr/include/c++/12/bits/allocated_ptr.h" 1 3 27002: # 40 "/usr/include/c++/12/bits/allocated_ptr.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: template 27002: struct __allocated_ptr 27002: { 27002: using pointer = typename allocator_traits<_Alloc>::pointer; 27002: using value_type = typename allocator_traits<_Alloc>::value_type; 27002: 27002: 27002: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 27002: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 27002: { } 27002: 27002: 27002: template>> 27002: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 27002: : _M_alloc(std::__addressof(__a)), 27002: _M_ptr(pointer_traits::pointer_to(*__ptr)) 27002: { } 27002: 27002: 27002: __allocated_ptr(__allocated_ptr&& __gd) noexcept 27002: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 27002: { __gd._M_ptr = nullptr; } 27002: 27002: 27002: ~__allocated_ptr() 27002: { 27002: if (_M_ptr != nullptr) 27002: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 27002: } 27002: 27002: 27002: __allocated_ptr& 27002: operator=(std::nullptr_t) noexcept 27002: { 27002: _M_ptr = nullptr; 27002: return *this; 27002: } 27002: 27002: 27002: value_type* get() { return std::__to_address(_M_ptr); } 27002: 27002: private: 27002: _Alloc* _M_alloc; 27002: pointer _M_ptr; 27002: }; 27002: 27002: 27002: template 27002: __allocated_ptr<_Alloc> 27002: __allocate_guarded(_Alloc& __a) 27002: { 27002: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 27002: } 27002: 27002: 27002: 27002: } 27002: # 54 "/usr/include/c++/12/bits/shared_ptr_base.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/ext/atomicity.h" 1 3 27002: # 32 "/usr/include/c++/12/ext/atomicity.h" 3 27002: 27002: # 33 "/usr/include/c++/12/ext/atomicity.h" 3 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr.h" 1 3 27002: # 30 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr.h" 3 27002: #pragma GCC visibility push(default) 27002: # 148 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr.h" 3 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 1 3 27002: # 35 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 27002: # 1 "/usr/include/pthread.h" 1 3 4 27002: # 22 "/usr/include/pthread.h" 3 4 27002: # 1 "/usr/include/sched.h" 1 3 4 27002: # 29 "/usr/include/sched.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 30 "/usr/include/sched.h" 2 3 4 27002: # 43 "/usr/include/sched.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 1 3 4 27002: # 80 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 1 3 4 27002: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 3 4 27002: struct sched_param 27002: { 27002: int sched_priority; 27002: }; 27002: # 81 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 2 3 4 27002: 27002: extern "C" { 27002: 27002: 27002: 27002: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 27002: int __flags, void *__arg, ...) noexcept (true); 27002: 27002: 27002: extern int unshare (int __flags) noexcept (true); 27002: 27002: 27002: extern int sched_getcpu (void) noexcept (true); 27002: 27002: 27002: extern int getcpu (unsigned int *, unsigned int *) noexcept (true); 27002: 27002: 27002: extern int setns (int __fd, int __nstype) noexcept (true); 27002: 27002: 27002: } 27002: # 44 "/usr/include/sched.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 1 3 4 27002: # 32 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 27002: typedef unsigned long int __cpu_mask; 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef struct 27002: { 27002: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 27002: } cpu_set_t; 27002: # 115 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 27002: extern "C" { 27002: 27002: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 27002: noexcept (true); 27002: extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); 27002: 27002: } 27002: # 45 "/usr/include/sched.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern "C" { 27002: 27002: 27002: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 27002: noexcept (true); 27002: 27002: 27002: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); 27002: 27002: 27002: extern int sched_setscheduler (__pid_t __pid, int __policy, 27002: const struct sched_param *__param) noexcept (true); 27002: 27002: 27002: extern int sched_getscheduler (__pid_t __pid) noexcept (true); 27002: 27002: 27002: extern int sched_yield (void) noexcept (true); 27002: 27002: 27002: extern int sched_get_priority_max (int __algorithm) noexcept (true); 27002: 27002: 27002: extern int sched_get_priority_min (int __algorithm) noexcept (true); 27002: 27002: 27002: 27002: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true); 27002: # 130 "/usr/include/sched.h" 3 4 27002: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 27002: const cpu_set_t *__cpuset) noexcept (true); 27002: 27002: 27002: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 27002: cpu_set_t *__cpuset) noexcept (true); 27002: 27002: 27002: } 27002: # 23 "/usr/include/pthread.h" 2 3 4 27002: # 1 "/usr/include/time.h" 1 3 4 27002: # 29 "/usr/include/time.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 30 "/usr/include/time.h" 2 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4 27002: # 73 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 1 3 4 27002: # 26 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 27002: struct timex 27002: { 27002: # 58 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 27002: unsigned int modes; 27002: __syscall_slong_t offset; 27002: __syscall_slong_t freq; 27002: __syscall_slong_t maxerror; 27002: __syscall_slong_t esterror; 27002: int status; 27002: __syscall_slong_t constant; 27002: __syscall_slong_t precision; 27002: __syscall_slong_t tolerance; 27002: struct timeval time; 27002: __syscall_slong_t tick; 27002: __syscall_slong_t ppsfreq; 27002: __syscall_slong_t jitter; 27002: int shift; 27002: __syscall_slong_t stabil; 27002: __syscall_slong_t jitcnt; 27002: __syscall_slong_t calcnt; 27002: __syscall_slong_t errcnt; 27002: __syscall_slong_t stbcnt; 27002: 27002: int tai; 27002: 27002: 27002: int :32; int :32; int :32; int :32; 27002: int :32; int :32; int :32; int :32; 27002: int :32; int :32; int :32; 27002: 27002: }; 27002: # 74 "/usr/include/arm-linux-gnueabihf/bits/time.h" 2 3 4 27002: 27002: extern "C" { 27002: 27002: 27002: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: # 90 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 27002: } 27002: # 34 "/usr/include/time.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_tm.h" 1 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct tm 27002: { 27002: int tm_sec; 27002: int tm_min; 27002: int tm_hour; 27002: int tm_mday; 27002: int tm_mon; 27002: int tm_year; 27002: int tm_wday; 27002: int tm_yday; 27002: int tm_isdst; 27002: 27002: 27002: long int tm_gmtoff; 27002: const char *tm_zone; 27002: 27002: 27002: 27002: 27002: }; 27002: # 40 "/usr/include/time.h" 2 3 4 27002: # 48 "/usr/include/time.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_itimerspec.h" 1 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct itimerspec 27002: { 27002: struct timespec it_interval; 27002: struct timespec it_value; 27002: }; 27002: # 49 "/usr/include/time.h" 2 3 4 27002: struct sigevent; 27002: # 68 "/usr/include/time.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: extern clock_t clock (void) noexcept (true); 27002: 27002: 27002: 27002: extern time_t time (time_t *__timer) noexcept (true); 27002: 27002: 27002: extern double difftime (time_t __time1, time_t __time0) 27002: noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern time_t mktime (struct tm *__tp) noexcept (true); 27002: # 100 "/usr/include/time.h" 3 4 27002: extern size_t strftime (char *__restrict __s, size_t __maxsize, 27002: const char *__restrict __format, 27002: const struct tm *__restrict __tp) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern char *strptime (const char *__restrict __s, 27002: const char *__restrict __fmt, struct tm *__tp) 27002: noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 27002: const char *__restrict __format, 27002: const struct tm *__restrict __tp, 27002: locale_t __loc) noexcept (true); 27002: 27002: 27002: 27002: extern char *strptime_l (const char *__restrict __s, 27002: const char *__restrict __fmt, struct tm *__tp, 27002: locale_t __loc) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern struct tm *gmtime (const time_t *__timer) noexcept (true); 27002: 27002: 27002: 27002: extern struct tm *localtime (const time_t *__timer) noexcept (true); 27002: # 154 "/usr/include/time.h" 3 4 27002: extern struct tm *gmtime_r (const time_t *__restrict __timer, 27002: struct tm *__restrict __tp) noexcept (true); 27002: 27002: 27002: 27002: extern struct tm *localtime_r (const time_t *__restrict __timer, 27002: struct tm *__restrict __tp) noexcept (true); 27002: # 179 "/usr/include/time.h" 3 4 27002: extern char *asctime (const struct tm *__tp) noexcept (true); 27002: 27002: 27002: 27002: extern char *ctime (const time_t *__timer) noexcept (true); 27002: # 197 "/usr/include/time.h" 3 4 27002: extern char *asctime_r (const struct tm *__restrict __tp, 27002: char *__restrict __buf) noexcept (true); 27002: 27002: 27002: 27002: extern char *ctime_r (const time_t *__restrict __timer, 27002: char *__restrict __buf) noexcept (true); 27002: # 217 "/usr/include/time.h" 3 4 27002: extern char *__tzname[2]; 27002: extern int __daylight; 27002: extern long int __timezone; 27002: 27002: 27002: 27002: 27002: extern char *tzname[2]; 27002: 27002: 27002: 27002: extern void tzset (void) noexcept (true); 27002: 27002: 27002: 27002: extern int daylight; 27002: extern long int timezone; 27002: # 246 "/usr/include/time.h" 3 4 27002: extern time_t timegm (struct tm *__tp) noexcept (true); 27002: # 263 "/usr/include/time.h" 3 4 27002: extern time_t timelocal (struct tm *__tp) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); 27002: # 281 "/usr/include/time.h" 3 4 27002: extern int nanosleep (const struct timespec *__requested_time, 27002: struct timespec *__remaining); 27002: 27002: 27002: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true); 27002: 27002: 27002: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: # 323 "/usr/include/time.h" 3 4 27002: extern int clock_nanosleep (clockid_t __clock_id, int __flags, 27002: const struct timespec *__req, 27002: struct timespec *__rem); 27002: # 338 "/usr/include/time.h" 3 4 27002: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int timer_create (clockid_t __clock_id, 27002: struct sigevent *__restrict __evp, 27002: timer_t *__restrict __timerid) noexcept (true); 27002: 27002: 27002: extern int timer_delete (timer_t __timerid) noexcept (true); 27002: 27002: 27002: 27002: extern int timer_settime (timer_t __timerid, int __flags, 27002: const struct itimerspec *__restrict __value, 27002: struct itimerspec *__restrict __ovalue) noexcept (true); 27002: 27002: 27002: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) 27002: noexcept (true); 27002: # 376 "/usr/include/time.h" 3 4 27002: extern int timer_getoverrun (timer_t __timerid) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int timespec_get (struct timespec *__ts, int __base) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: # 399 "/usr/include/time.h" 3 4 27002: extern int timespec_getres (struct timespec *__ts, int __base) 27002: noexcept (true); 27002: # 425 "/usr/include/time.h" 3 4 27002: extern int getdate_err; 27002: # 434 "/usr/include/time.h" 3 4 27002: extern struct tm *getdate (const char *__string); 27002: # 448 "/usr/include/time.h" 3 4 27002: extern int getdate_r (const char *__restrict __string, 27002: struct tm *__restrict __resbufp); 27002: 27002: 27002: } 27002: # 24 "/usr/include/pthread.h" 2 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 1 3 4 27002: # 33 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 3 4 27002: typedef int __jmp_buf[64] __attribute__((__aligned__ (8))); 27002: # 28 "/usr/include/pthread.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 27002: # 29 "/usr/include/pthread.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 1 3 4 27002: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 3 4 27002: struct __jmp_buf_tag 27002: { 27002: 27002: 27002: 27002: 27002: __jmp_buf __jmpbuf; 27002: int __mask_was_saved; 27002: __sigset_t __saved_mask; 27002: }; 27002: # 32 "/usr/include/pthread.h" 2 3 4 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 1 3 4 27002: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 3 4 27002: extern "C" { 27002: extern long int __sysconf (int __name) noexcept (true); 27002: } 27002: # 34 "/usr/include/pthread.h" 2 3 4 27002: 27002: 27002: 27002: enum 27002: { 27002: PTHREAD_CREATE_JOINABLE, 27002: 27002: PTHREAD_CREATE_DETACHED 27002: 27002: }; 27002: 27002: 27002: 27002: enum 27002: { 27002: PTHREAD_MUTEX_TIMED_NP, 27002: PTHREAD_MUTEX_RECURSIVE_NP, 27002: PTHREAD_MUTEX_ERRORCHECK_NP, 27002: PTHREAD_MUTEX_ADAPTIVE_NP 27002: 27002: , 27002: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 27002: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 27002: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 27002: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 27002: 27002: 27002: 27002: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: enum 27002: { 27002: PTHREAD_MUTEX_STALLED, 27002: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 27002: PTHREAD_MUTEX_ROBUST, 27002: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: enum 27002: { 27002: PTHREAD_PRIO_NONE, 27002: PTHREAD_PRIO_INHERIT, 27002: PTHREAD_PRIO_PROTECT 27002: }; 27002: # 104 "/usr/include/pthread.h" 3 4 27002: enum 27002: { 27002: PTHREAD_RWLOCK_PREFER_READER_NP, 27002: PTHREAD_RWLOCK_PREFER_WRITER_NP, 27002: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 27002: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 27002: }; 27002: # 124 "/usr/include/pthread.h" 3 4 27002: enum 27002: { 27002: PTHREAD_INHERIT_SCHED, 27002: 27002: PTHREAD_EXPLICIT_SCHED 27002: 27002: }; 27002: 27002: 27002: 27002: enum 27002: { 27002: PTHREAD_SCOPE_SYSTEM, 27002: 27002: PTHREAD_SCOPE_PROCESS 27002: 27002: }; 27002: 27002: 27002: 27002: enum 27002: { 27002: PTHREAD_PROCESS_PRIVATE, 27002: 27002: PTHREAD_PROCESS_SHARED 27002: 27002: }; 27002: # 159 "/usr/include/pthread.h" 3 4 27002: struct _pthread_cleanup_buffer 27002: { 27002: void (*__routine) (void *); 27002: void *__arg; 27002: int __canceltype; 27002: struct _pthread_cleanup_buffer *__prev; 27002: }; 27002: 27002: 27002: enum 27002: { 27002: PTHREAD_CANCEL_ENABLE, 27002: 27002: PTHREAD_CANCEL_DISABLE 27002: 27002: }; 27002: enum 27002: { 27002: PTHREAD_CANCEL_DEFERRED, 27002: 27002: PTHREAD_CANCEL_ASYNCHRONOUS 27002: 27002: }; 27002: # 197 "/usr/include/pthread.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: extern int pthread_create (pthread_t *__restrict __newthread, 27002: const pthread_attr_t *__restrict __attr, 27002: void *(*__start_routine) (void *), 27002: void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: 27002: 27002: 27002: 27002: 27002: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_join (pthread_t __th, void **__thread_return); 27002: 27002: 27002: 27002: 27002: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); 27002: # 233 "/usr/include/pthread.h" 3 4 27002: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, 27002: const struct timespec *__abstime); 27002: # 243 "/usr/include/pthread.h" 3 4 27002: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, 27002: clockid_t __clockid, 27002: const struct timespec *__abstime); 27002: # 269 "/usr/include/pthread.h" 3 4 27002: extern int pthread_detach (pthread_t __th) noexcept (true); 27002: 27002: 27002: 27002: extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 27002: noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_attr_destroy (pthread_attr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 27002: int *__detachstate) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 27002: int __detachstate) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 27002: size_t *__guardsize) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 27002: size_t __guardsize) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 27002: struct sched_param *__restrict __param) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 27002: const struct sched_param *__restrict 27002: __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 27002: __attr, int *__restrict __policy) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 27002: __attr, int *__restrict __inherit) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 27002: int __inherit) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 27002: int *__restrict __scope) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 27002: __attr, void **__restrict __stackaddr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 27002: void *__stackaddr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 27002: 27002: 27002: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 27002: __attr, size_t *__restrict __stacksize) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 27002: size_t __stacksize) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 27002: void **__restrict __stackaddr, 27002: size_t *__restrict __stacksize) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); 27002: 27002: 27002: 27002: 27002: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 27002: size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 27002: size_t __cpusetsize, 27002: const cpu_set_t *__cpuset) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: 27002: 27002: 27002: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 27002: size_t __cpusetsize, 27002: cpu_set_t *__cpuset) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: 27002: 27002: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, 27002: const __sigset_t *sigmask); 27002: 27002: 27002: 27002: 27002: extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, 27002: __sigset_t *sigmask); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 27002: const struct sched_param *__param) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))); 27002: 27002: 27002: extern int pthread_getschedparam (pthread_t __target_thread, 27002: int *__restrict __policy, 27002: struct sched_param *__restrict __param) 27002: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 27002: 27002: 27002: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 27002: noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 27002: size_t __buflen) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_getconcurrency (void) noexcept (true); 27002: 27002: 27002: extern int pthread_setconcurrency (int __level) noexcept (true); 27002: 27002: 27002: 27002: extern int pthread_yield (void) noexcept (true); 27002: 27002: extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") 27002: __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) 27002: ; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 27002: const cpu_set_t *__cpuset) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))); 27002: 27002: 27002: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 27002: cpu_set_t *__cpuset) 27002: noexcept (true) __attribute__ ((__nonnull__ (3))); 27002: # 509 "/usr/include/pthread.h" 3 4 27002: extern int pthread_once (pthread_once_t *__once_control, 27002: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 27002: # 521 "/usr/include/pthread.h" 3 4 27002: extern int pthread_setcancelstate (int __state, int *__oldstate); 27002: 27002: 27002: 27002: extern int pthread_setcanceltype (int __type, int *__oldtype); 27002: 27002: 27002: extern int pthread_cancel (pthread_t __th); 27002: 27002: 27002: 27002: 27002: extern void pthread_testcancel (void); 27002: 27002: 27002: 27002: 27002: struct __cancel_jmp_buf_tag 27002: { 27002: __jmp_buf __cancel_jmp_buf; 27002: int __mask_was_saved; 27002: }; 27002: 27002: typedef struct 27002: { 27002: struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; 27002: void *__pad[4]; 27002: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 27002: # 557 "/usr/include/pthread.h" 3 4 27002: struct __pthread_cleanup_frame 27002: { 27002: void (*__cancel_routine) (void *); 27002: void *__cancel_arg; 27002: int __do_it; 27002: int __cancel_type; 27002: }; 27002: 27002: 27002: 27002: 27002: class __pthread_cleanup_class 27002: { 27002: void (*__cancel_routine) (void *); 27002: void *__cancel_arg; 27002: int __do_it; 27002: int __cancel_type; 27002: 27002: public: 27002: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 27002: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 27002: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 27002: void __setdoit (int __newval) { __do_it = __newval; } 27002: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 27002: &__cancel_type); } 27002: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 27002: }; 27002: # 766 "/usr/include/pthread.h" 3 4 27002: extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") 27002: 27002: 27002: __attribute__ ((__returns_twice__)); 27002: # 781 "/usr/include/pthread.h" 3 4 27002: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 27002: const pthread_mutexattr_t *__mutexattr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, 27002: const struct timespec *__restrict 27002: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: # 817 "/usr/include/pthread.h" 3 4 27002: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, 27002: clockid_t __clockid, 27002: const struct timespec *__restrict 27002: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: # 835 "/usr/include/pthread.h" 3 4 27002: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 27002: __restrict __mutex, 27002: int *__restrict __prioceiling) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 27002: int __prioceiling, 27002: int *__restrict __old_ceiling) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: 27002: 27002: 27002: 27002: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") 27002: __attribute__ ((__nonnull__ (1))) 27002: __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) 27002: ; 27002: # 874 "/usr/include/pthread.h" 3 4 27002: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 27002: __restrict __attr, 27002: int *__restrict __pshared) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 27002: int __pshared) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 27002: __attr, int *__restrict __kind) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 27002: __restrict __attr, 27002: int *__restrict __protocol) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 27002: int __protocol) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 27002: __restrict __attr, 27002: int *__restrict __prioceiling) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 27002: int __prioceiling) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 27002: int *__robustness) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") 27002: 27002: __attribute__ ((__nonnull__ (1))) 27002: __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) 27002: ; 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 27002: int __robustness) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") 27002: 27002: __attribute__ ((__nonnull__ (1))) 27002: __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) 27002: ; 27002: # 967 "/usr/include/pthread.h" 3 4 27002: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 27002: const pthread_rwlockattr_t *__restrict 27002: __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, 27002: const struct timespec *__restrict 27002: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: # 1004 "/usr/include/pthread.h" 3 4 27002: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, 27002: clockid_t __clockid, 27002: const struct timespec *__restrict 27002: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: # 1023 "/usr/include/pthread.h" 3 4 27002: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, 27002: const struct timespec *__restrict 27002: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: # 1051 "/usr/include/pthread.h" 3 4 27002: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, 27002: clockid_t __clockid, 27002: const struct timespec *__restrict 27002: __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 27002: # 1071 "/usr/include/pthread.h" 3 4 27002: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 27002: __restrict __attr, 27002: int *__restrict __pshared) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 27002: int __pshared) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 27002: __restrict __attr, 27002: int *__restrict __pref) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 27002: int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 27002: const pthread_condattr_t *__restrict __cond_attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_cond_destroy (pthread_cond_t *__cond) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_cond_signal (pthread_cond_t *__cond) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 27002: pthread_mutex_t *__restrict __mutex) 27002: __attribute__ ((__nonnull__ (1, 2))); 27002: # 1145 "/usr/include/pthread.h" 3 4 27002: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, 27002: pthread_mutex_t *__restrict __mutex, 27002: const struct timespec *__restrict __abstime) 27002: __attribute__ ((__nonnull__ (1, 2, 3))); 27002: # 1171 "/usr/include/pthread.h" 3 4 27002: extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond, 27002: pthread_mutex_t *__restrict __mutex, 27002: __clockid_t __clock_id, 27002: const struct timespec *__restrict __abstime) 27002: __attribute__ ((__nonnull__ (1, 2, 4))); 27002: # 1194 "/usr/include/pthread.h" 3 4 27002: extern int pthread_condattr_init (pthread_condattr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_condattr_getpshared (const pthread_condattr_t * 27002: __restrict __attr, 27002: int *__restrict __pshared) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 27002: int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int pthread_condattr_getclock (const pthread_condattr_t * 27002: __restrict __attr, 27002: __clockid_t *__restrict __clock_id) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 27002: __clockid_t __clock_id) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: # 1230 "/usr/include/pthread.h" 3 4 27002: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 27002: const pthread_barrierattr_t *__restrict 27002: __attr, unsigned int __count) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 27002: __restrict __attr, 27002: int *__restrict __pshared) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 27002: int __pshared) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: # 1297 "/usr/include/pthread.h" 3 4 27002: extern int pthread_key_create (pthread_key_t *__key, 27002: void (*__destr_function) (void *)) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int pthread_key_delete (pthread_key_t __key) noexcept (true); 27002: 27002: 27002: extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); 27002: 27002: 27002: extern int pthread_setspecific (pthread_key_t __key, 27002: const void *__pointer) 27002: noexcept (true) __attribute__ ((__access__ (__none__, 2))); 27002: 27002: 27002: 27002: 27002: extern int pthread_getcpuclockid (pthread_t __thread_id, 27002: __clockid_t *__clock_id) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: # 1332 "/usr/include/pthread.h" 3 4 27002: extern int pthread_atfork (void (*__prepare) (void), 27002: void (*__parent) (void), 27002: void (*__child) (void)) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) 27002: { 27002: return __thread1 == __thread2; 27002: } 27002: 27002: 27002: } 27002: # 36 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 2 3 27002: # 47 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 27002: typedef pthread_t __gthread_t; 27002: typedef pthread_key_t __gthread_key_t; 27002: typedef pthread_once_t __gthread_once_t; 27002: typedef pthread_mutex_t __gthread_mutex_t; 27002: typedef pthread_mutex_t __gthread_recursive_mutex_t; 27002: typedef pthread_cond_t __gthread_cond_t; 27002: typedef struct timespec __gthread_time_t; 27002: # 102 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 299 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 27002: static inline int 27002: __gthread_active_p (void) 27002: { 27002: return 1; 27002: } 27002: # 659 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 27002: static inline int 27002: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 27002: void *__args) 27002: { 27002: return pthread_create (__threadid, __null, __func, __args); 27002: } 27002: 27002: static inline int 27002: __gthread_join (__gthread_t __threadid, void **__value_ptr) 27002: { 27002: return pthread_join (__threadid, __value_ptr); 27002: } 27002: 27002: static inline int 27002: __gthread_detach (__gthread_t __threadid) 27002: { 27002: return pthread_detach (__threadid); 27002: } 27002: 27002: static inline int 27002: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 27002: { 27002: return pthread_equal (__t1, __t2); 27002: } 27002: 27002: static inline __gthread_t 27002: __gthread_self (void) 27002: { 27002: return pthread_self (); 27002: } 27002: 27002: static inline int 27002: __gthread_yield (void) 27002: { 27002: return sched_yield (); 27002: } 27002: 27002: static inline int 27002: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 27002: { 27002: if (__gthread_active_p ()) 27002: return pthread_once (__once, __func); 27002: else 27002: return -1; 27002: } 27002: 27002: static inline int 27002: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 27002: { 27002: return pthread_key_create (__key, __dtor); 27002: } 27002: 27002: static inline int 27002: __gthread_key_delete (__gthread_key_t __key) 27002: { 27002: return pthread_key_delete (__key); 27002: } 27002: 27002: static inline void * 27002: __gthread_getspecific (__gthread_key_t __key) 27002: { 27002: return pthread_getspecific (__key); 27002: } 27002: 27002: static inline int 27002: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 27002: { 27002: return pthread_setspecific (__key, __ptr); 27002: } 27002: 27002: static inline void 27002: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 27002: { 27002: if (__gthread_active_p ()) 27002: pthread_mutex_init (__mutex, __null); 27002: } 27002: 27002: static inline int 27002: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 27002: { 27002: if (__gthread_active_p ()) 27002: return pthread_mutex_destroy (__mutex); 27002: else 27002: return 0; 27002: } 27002: 27002: static inline int 27002: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 27002: { 27002: if (__gthread_active_p ()) 27002: return pthread_mutex_lock (__mutex); 27002: else 27002: return 0; 27002: } 27002: 27002: static inline int 27002: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 27002: { 27002: if (__gthread_active_p ()) 27002: return pthread_mutex_trylock (__mutex); 27002: else 27002: return 0; 27002: } 27002: 27002: 27002: static inline int 27002: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 27002: const __gthread_time_t *__abs_timeout) 27002: { 27002: if (__gthread_active_p ()) 27002: return pthread_mutex_timedlock (__mutex, __abs_timeout); 27002: else 27002: return 0; 27002: } 27002: 27002: 27002: static inline int 27002: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 27002: { 27002: if (__gthread_active_p ()) 27002: return pthread_mutex_unlock (__mutex); 27002: else 27002: return 0; 27002: } 27002: # 808 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 27002: static inline int 27002: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 27002: { 27002: return __gthread_mutex_lock (__mutex); 27002: } 27002: 27002: static inline int 27002: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 27002: { 27002: return __gthread_mutex_trylock (__mutex); 27002: } 27002: 27002: 27002: static inline int 27002: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 27002: const __gthread_time_t *__abs_timeout) 27002: { 27002: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 27002: } 27002: 27002: 27002: static inline int 27002: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 27002: { 27002: return __gthread_mutex_unlock (__mutex); 27002: } 27002: 27002: static inline int 27002: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 27002: { 27002: return __gthread_mutex_destroy (__mutex); 27002: } 27002: # 850 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr-default.h" 3 27002: static inline int 27002: __gthread_cond_broadcast (__gthread_cond_t *__cond) 27002: { 27002: return pthread_cond_broadcast (__cond); 27002: } 27002: 27002: static inline int 27002: __gthread_cond_signal (__gthread_cond_t *__cond) 27002: { 27002: return pthread_cond_signal (__cond); 27002: } 27002: 27002: static inline int 27002: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 27002: { 27002: return pthread_cond_wait (__cond, __mutex); 27002: } 27002: 27002: static inline int 27002: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 27002: const __gthread_time_t *__abs_timeout) 27002: { 27002: return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 27002: } 27002: 27002: static inline int 27002: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 27002: __gthread_recursive_mutex_t *__mutex) 27002: { 27002: return __gthread_cond_wait (__cond, __mutex); 27002: } 27002: 27002: static inline int 27002: __gthread_cond_destroy (__gthread_cond_t* __cond) 27002: { 27002: return pthread_cond_destroy (__cond); 27002: } 27002: # 149 "/usr/include/arm-linux-gnueabihf/c++/12/bits/gthr.h" 2 3 27002: 27002: 27002: #pragma GCC visibility pop 27002: # 36 "/usr/include/c++/12/ext/atomicity.h" 2 3 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/atomic_word.h" 1 3 27002: # 32 "/usr/include/arm-linux-gnueabihf/c++/12/bits/atomic_word.h" 3 27002: typedef int _Atomic_word; 27002: # 37 "/usr/include/c++/12/ext/atomicity.h" 2 3 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: extern char __libc_single_threaded; 27002: 27002: } 27002: # 39 "/usr/include/c++/12/ext/atomicity.h" 2 3 27002: 27002: 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: __attribute__((__always_inline__)) 27002: inline bool 27002: __is_single_threaded() noexcept 27002: { 27002: 27002: 27002: 27002: return ::__libc_single_threaded; 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline _Atomic_word 27002: __attribute__((__always_inline__)) 27002: __exchange_and_add(volatile _Atomic_word* __mem, int __val) 27002: { return __atomic_fetch_add(__mem, __val, 4); } 27002: 27002: inline void 27002: __attribute__((__always_inline__)) 27002: __atomic_add(volatile _Atomic_word* __mem, int __val) 27002: { __atomic_fetch_add(__mem, __val, 4); } 27002: # 80 "/usr/include/c++/12/ext/atomicity.h" 3 27002: inline _Atomic_word 27002: __attribute__((__always_inline__)) 27002: __exchange_and_add_single(_Atomic_word* __mem, int __val) 27002: { 27002: _Atomic_word __result = *__mem; 27002: *__mem += __val; 27002: return __result; 27002: } 27002: 27002: inline void 27002: __attribute__((__always_inline__)) 27002: __atomic_add_single(_Atomic_word* __mem, int __val) 27002: { *__mem += __val; } 27002: 27002: inline _Atomic_word 27002: __attribute__ ((__always_inline__)) 27002: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 27002: { 27002: if (__is_single_threaded()) 27002: return __exchange_and_add_single(__mem, __val); 27002: else 27002: return __exchange_and_add(__mem, __val); 27002: } 27002: 27002: inline void 27002: __attribute__ ((__always_inline__)) 27002: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 27002: { 27002: if (__is_single_threaded()) 27002: __atomic_add_single(__mem, __val); 27002: else 27002: __atomic_add(__mem, __val); 27002: } 27002: 27002: 27002: } 27002: # 62 "/usr/include/c++/12/bits/shared_ptr_base.h" 2 3 27002: # 1 "/usr/include/c++/12/ext/concurrence.h" 1 3 27002: # 32 "/usr/include/c++/12/ext/concurrence.h" 3 27002: 27002: # 33 "/usr/include/c++/12/ext/concurrence.h" 3 27002: 27002: # 1 "/usr/include/c++/12/exception" 1 3 27002: # 33 "/usr/include/c++/12/exception" 3 27002: 27002: # 34 "/usr/include/c++/12/exception" 3 27002: 27002: #pragma GCC visibility push(default) 27002: 27002: 27002: 27002: 27002: extern "C++" { 27002: 27002: namespace std 27002: { 27002: # 53 "/usr/include/c++/12/exception" 3 27002: class bad_exception : public exception 27002: { 27002: public: 27002: bad_exception() noexcept { } 27002: 27002: 27002: 27002: virtual ~bad_exception() noexcept; 27002: 27002: 27002: virtual const char* 27002: what() const noexcept; 27002: }; 27002: 27002: 27002: typedef void (*terminate_handler) (); 27002: 27002: 27002: terminate_handler set_terminate(terminate_handler) noexcept; 27002: 27002: 27002: 27002: terminate_handler get_terminate() noexcept; 27002: 27002: 27002: 27002: 27002: void terminate() noexcept __attribute__ ((__noreturn__)); 27002: 27002: 27002: 27002: typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((__deprecated__)) 27002: unexpected_handler set_unexpected(unexpected_handler) noexcept; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((__deprecated__)) 27002: unexpected_handler get_unexpected() noexcept; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((__deprecated__)) 27002: void unexpected() __attribute__ ((__noreturn__)); 27002: # 123 "/usr/include/c++/12/exception" 3 27002: __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) 27002: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: int uncaught_exceptions() noexcept __attribute__ ((__pure__)); 27002: 27002: 27002: 27002: } 27002: 27002: namespace __gnu_cxx 27002: { 27002: 27002: # 158 "/usr/include/c++/12/exception" 3 27002: void __verbose_terminate_handler(); 27002: 27002: 27002: } 27002: 27002: } 27002: 27002: #pragma GCC visibility pop 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/exception_ptr.h" 1 3 27002: # 34 "/usr/include/c++/12/bits/exception_ptr.h" 3 27002: #pragma GCC visibility push(default) 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/cxxabi_init_exception.h" 1 3 27002: # 34 "/usr/include/c++/12/bits/cxxabi_init_exception.h" 3 27002: 27002: # 35 "/usr/include/c++/12/bits/cxxabi_init_exception.h" 3 27002: 27002: #pragma GCC visibility push(default) 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 145 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 3 4 27002: typedef int ptrdiff_t; 27002: # 424 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 3 4 27002: typedef struct { 27002: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 27002: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 27002: # 435 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 3 4 27002: } max_align_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef decltype(nullptr) nullptr_t; 27002: # 39 "/usr/include/c++/12/bits/cxxabi_init_exception.h" 2 3 27002: # 50 "/usr/include/c++/12/bits/cxxabi_init_exception.h" 3 27002: namespace std 27002: { 27002: class type_info; 27002: } 27002: 27002: namespace __cxxabiv1 27002: { 27002: struct __cxa_refcounted_exception; 27002: 27002: extern "C" 27002: { 27002: 27002: void* 27002: __cxa_allocate_exception(size_t) noexcept; 27002: 27002: void 27002: __cxa_free_exception(void*) noexcept; 27002: 27002: 27002: __cxa_refcounted_exception* 27002: __cxa_init_primary_exception(void *object, std::type_info *tinfo, 27002: void ( *dest) (void *)) noexcept; 27002: 27002: } 27002: } 27002: 27002: 27002: 27002: #pragma GCC visibility pop 27002: # 39 "/usr/include/c++/12/bits/exception_ptr.h" 2 3 27002: # 52 "/usr/include/c++/12/bits/exception_ptr.h" 3 27002: extern "C++" { 27002: 27002: namespace std 27002: { 27002: class type_info; 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace __exception_ptr 27002: { 27002: class exception_ptr; 27002: } 27002: 27002: using __exception_ptr::exception_ptr; 27002: 27002: 27002: 27002: 27002: 27002: exception_ptr current_exception() noexcept; 27002: 27002: template 27002: exception_ptr make_exception_ptr(_Ex) noexcept; 27002: 27002: 27002: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 27002: 27002: namespace __exception_ptr 27002: { 27002: using std::rethrow_exception; 27002: 27002: 27002: 27002: 27002: 27002: class exception_ptr 27002: { 27002: void* _M_exception_object; 27002: 27002: explicit exception_ptr(void* __e) noexcept; 27002: 27002: void _M_addref() noexcept; 27002: void _M_release() noexcept; 27002: 27002: void *_M_get() const noexcept __attribute__ ((__pure__)); 27002: 27002: friend exception_ptr std::current_exception() noexcept; 27002: friend void std::rethrow_exception(exception_ptr); 27002: template 27002: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 27002: 27002: public: 27002: exception_ptr() noexcept; 27002: 27002: exception_ptr(const exception_ptr&) noexcept; 27002: 27002: 27002: exception_ptr(nullptr_t) noexcept 27002: : _M_exception_object(nullptr) 27002: { } 27002: 27002: exception_ptr(exception_ptr&& __o) noexcept 27002: : _M_exception_object(__o._M_exception_object) 27002: { __o._M_exception_object = nullptr; } 27002: # 128 "/usr/include/c++/12/bits/exception_ptr.h" 3 27002: exception_ptr& 27002: operator=(const exception_ptr&) noexcept; 27002: 27002: 27002: exception_ptr& 27002: operator=(exception_ptr&& __o) noexcept 27002: { 27002: exception_ptr(static_cast(__o)).swap(*this); 27002: return *this; 27002: } 27002: 27002: 27002: ~exception_ptr() noexcept; 27002: 27002: void 27002: swap(exception_ptr&) noexcept; 27002: # 155 "/usr/include/c++/12/bits/exception_ptr.h" 3 27002: explicit operator bool() const noexcept 27002: { return _M_exception_object; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const exception_ptr& __x, const exception_ptr& __y) 27002: noexcept 27002: { return __x._M_exception_object == __y._M_exception_object; } 27002: 27002: friend bool 27002: operator!=(const exception_ptr& __x, const exception_ptr& __y) 27002: noexcept 27002: { return __x._M_exception_object != __y._M_exception_object; } 27002: 27002: 27002: const class std::type_info* 27002: __cxa_exception_type() const noexcept 27002: __attribute__ ((__pure__)); 27002: }; 27002: 27002: 27002: inline 27002: exception_ptr::exception_ptr() noexcept 27002: : _M_exception_object(0) 27002: { } 27002: 27002: 27002: inline 27002: exception_ptr::exception_ptr(const exception_ptr& __other) 27002: noexcept 27002: : _M_exception_object(__other._M_exception_object) 27002: { 27002: if (_M_exception_object) 27002: _M_addref(); 27002: } 27002: 27002: 27002: inline 27002: exception_ptr::~exception_ptr() noexcept 27002: { 27002: if (_M_exception_object) 27002: _M_release(); 27002: } 27002: 27002: 27002: inline exception_ptr& 27002: exception_ptr::operator=(const exception_ptr& __other) noexcept 27002: { 27002: exception_ptr(__other).swap(*this); 27002: return *this; 27002: } 27002: 27002: 27002: inline void 27002: exception_ptr::swap(exception_ptr &__other) noexcept 27002: { 27002: void *__tmp = _M_exception_object; 27002: _M_exception_object = __other._M_exception_object; 27002: __other._M_exception_object = __tmp; 27002: } 27002: 27002: 27002: inline void 27002: swap(exception_ptr& __lhs, exception_ptr& __rhs) 27002: { __lhs.swap(__rhs); } 27002: 27002: 27002: template 27002: 27002: inline void 27002: __dest_thunk(void* __x) 27002: { static_cast<_Ex*>(__x)->~_Ex(); } 27002: 27002: 27002: } 27002: 27002: 27002: 27002: template 27002: exception_ptr 27002: make_exception_ptr(_Ex __ex) noexcept 27002: { 27002: 27002: using _Ex2 = typename decay<_Ex>::type; 27002: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 27002: (void) __cxxabiv1::__cxa_init_primary_exception( 27002: __e, const_cast(&typeid(_Ex)), 27002: __exception_ptr::__dest_thunk<_Ex2>); 27002: try 27002: { 27002: ::new (__e) _Ex2(__ex); 27002: return exception_ptr(__e); 27002: } 27002: catch(...) 27002: { 27002: __cxxabiv1::__cxa_free_exception(__e); 27002: return current_exception(); 27002: } 27002: # 268 "/usr/include/c++/12/bits/exception_ptr.h" 3 27002: } 27002: # 282 "/usr/include/c++/12/bits/exception_ptr.h" 3 27002: } 27002: 27002: } 27002: 27002: #pragma GCC visibility pop 27002: # 169 "/usr/include/c++/12/exception" 2 3 27002: # 1 "/usr/include/c++/12/bits/nested_exception.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/nested_exception.h" 3 27002: #pragma GCC visibility push(default) 27002: # 42 "/usr/include/c++/12/bits/nested_exception.h" 3 27002: extern "C++" { 27002: 27002: namespace std 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: class nested_exception 27002: { 27002: exception_ptr _M_ptr; 27002: 27002: public: 27002: nested_exception() noexcept : _M_ptr(current_exception()) { } 27002: 27002: nested_exception(const nested_exception&) noexcept = default; 27002: 27002: nested_exception& operator=(const nested_exception&) noexcept = default; 27002: 27002: virtual ~nested_exception() noexcept; 27002: 27002: [[noreturn]] 27002: void 27002: rethrow_nested() const 27002: { 27002: if (_M_ptr) 27002: rethrow_exception(_M_ptr); 27002: std::terminate(); 27002: } 27002: 27002: exception_ptr 27002: nested_ptr() const noexcept 27002: { return _M_ptr; } 27002: }; 27002: 27002: 27002: 27002: template 27002: struct _Nested_exception : public _Except, public nested_exception 27002: { 27002: explicit _Nested_exception(const _Except& __ex) 27002: : _Except(__ex) 27002: { } 27002: 27002: explicit _Nested_exception(_Except&& __ex) 27002: : _Except(static_cast<_Except&&>(__ex)) 27002: { } 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: [[noreturn]] 27002: inline void 27002: __throw_with_nested_impl(_Tp&& __t, true_type) 27002: { 27002: using _Up = typename remove_reference<_Tp>::type; 27002: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 27002: } 27002: 27002: template 27002: [[noreturn]] 27002: inline void 27002: __throw_with_nested_impl(_Tp&& __t, false_type) 27002: { throw std::forward<_Tp>(__t); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[noreturn]] 27002: inline void 27002: throw_with_nested(_Tp&& __t) 27002: { 27002: using _Up = typename decay<_Tp>::type; 27002: using _CopyConstructible 27002: = __and_, is_move_constructible<_Up>>; 27002: static_assert(_CopyConstructible::value, 27002: "throw_with_nested argument must be CopyConstructible"); 27002: using __nest = __and_, __bool_constant, 27002: __not_>>; 27002: std::__throw_with_nested_impl(std::forward<_Tp>(__t), __nest{}); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: using __rethrow_if_nested_cond = typename enable_if< 27002: __and_, 27002: __or_<__not_>, 27002: is_convertible<_Tp*, nested_exception*>>>::value 27002: >::type; 27002: 27002: 27002: template 27002: inline __rethrow_if_nested_cond<_Ex> 27002: __rethrow_if_nested_impl(const _Ex* __ptr) 27002: { 27002: if (auto __ne_ptr = dynamic_cast(__ptr)) 27002: __ne_ptr->rethrow_nested(); 27002: } 27002: 27002: 27002: inline void 27002: __rethrow_if_nested_impl(const void*) 27002: { } 27002: 27002: 27002: 27002: 27002: template 27002: inline void 27002: rethrow_if_nested(const _Ex& __ex) 27002: { std::__rethrow_if_nested_impl(std::__addressof(__ex)); } 27002: 27002: 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: #pragma GCC visibility pop 27002: # 170 "/usr/include/c++/12/exception" 2 3 27002: # 35 "/usr/include/c++/12/ext/concurrence.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 27002: 27002: 27002: 27002: static const _Lock_policy __default_lock_policy = 27002: 27002: 27002: 27002: _S_atomic; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class __concurrence_lock_error : public std::exception 27002: { 27002: public: 27002: virtual char const* 27002: what() const throw() 27002: { return "__gnu_cxx::__concurrence_lock_error"; } 27002: }; 27002: 27002: class __concurrence_unlock_error : public std::exception 27002: { 27002: public: 27002: virtual char const* 27002: what() const throw() 27002: { return "__gnu_cxx::__concurrence_unlock_error"; } 27002: }; 27002: 27002: class __concurrence_broadcast_error : public std::exception 27002: { 27002: public: 27002: virtual char const* 27002: what() const throw() 27002: { return "__gnu_cxx::__concurrence_broadcast_error"; } 27002: }; 27002: 27002: class __concurrence_wait_error : public std::exception 27002: { 27002: public: 27002: virtual char const* 27002: what() const throw() 27002: { return "__gnu_cxx::__concurrence_wait_error"; } 27002: }; 27002: 27002: 27002: inline void 27002: __throw_concurrence_lock_error() 27002: { (throw (__concurrence_lock_error())); } 27002: 27002: inline void 27002: __throw_concurrence_unlock_error() 27002: { (throw (__concurrence_unlock_error())); } 27002: 27002: 27002: inline void 27002: __throw_concurrence_broadcast_error() 27002: { (throw (__concurrence_broadcast_error())); } 27002: 27002: inline void 27002: __throw_concurrence_wait_error() 27002: { (throw (__concurrence_wait_error())); } 27002: 27002: 27002: class __mutex 27002: { 27002: private: 27002: 27002: __gthread_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 27002: 27002: 27002: 27002: 27002: __mutex(const __mutex&); 27002: __mutex& operator=(const __mutex&); 27002: 27002: public: 27002: __mutex() 27002: { 27002: 27002: 27002: 27002: 27002: } 27002: # 144 "/usr/include/c++/12/ext/concurrence.h" 3 27002: void lock() 27002: { 27002: 27002: if (__gthread_active_p()) 27002: { 27002: if (__gthread_mutex_lock(&_M_mutex) != 0) 27002: __throw_concurrence_lock_error(); 27002: } 27002: 27002: } 27002: 27002: void unlock() 27002: { 27002: 27002: if (__gthread_active_p()) 27002: { 27002: if (__gthread_mutex_unlock(&_M_mutex) != 0) 27002: __throw_concurrence_unlock_error(); 27002: } 27002: 27002: } 27002: 27002: __gthread_mutex_t* gthread_mutex(void) 27002: { return &_M_mutex; } 27002: }; 27002: 27002: class __recursive_mutex 27002: { 27002: private: 27002: 27002: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 27002: 27002: 27002: 27002: 27002: __recursive_mutex(const __recursive_mutex&); 27002: __recursive_mutex& operator=(const __recursive_mutex&); 27002: 27002: public: 27002: __recursive_mutex() 27002: { 27002: 27002: 27002: 27002: 27002: } 27002: # 199 "/usr/include/c++/12/ext/concurrence.h" 3 27002: void lock() 27002: { 27002: 27002: if (__gthread_active_p()) 27002: { 27002: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 27002: __throw_concurrence_lock_error(); 27002: } 27002: 27002: } 27002: 27002: void unlock() 27002: { 27002: 27002: if (__gthread_active_p()) 27002: { 27002: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 27002: __throw_concurrence_unlock_error(); 27002: } 27002: 27002: } 27002: 27002: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 27002: { return &_M_mutex; } 27002: }; 27002: 27002: 27002: 27002: 27002: class __scoped_lock 27002: { 27002: public: 27002: typedef __mutex __mutex_type; 27002: 27002: private: 27002: __mutex_type& _M_device; 27002: 27002: __scoped_lock(const __scoped_lock&); 27002: __scoped_lock& operator=(const __scoped_lock&); 27002: 27002: public: 27002: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 27002: { _M_device.lock(); } 27002: 27002: ~__scoped_lock() throw() 27002: { _M_device.unlock(); } 27002: }; 27002: 27002: 27002: class __cond 27002: { 27002: private: 27002: 27002: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 27002: 27002: 27002: 27002: 27002: __cond(const __cond&); 27002: __cond& operator=(const __cond&); 27002: 27002: public: 27002: __cond() 27002: { 27002: 27002: 27002: 27002: 27002: } 27002: # 277 "/usr/include/c++/12/ext/concurrence.h" 3 27002: void broadcast() 27002: { 27002: 27002: if (__gthread_active_p()) 27002: { 27002: if (__gthread_cond_broadcast(&_M_cond) != 0) 27002: __throw_concurrence_broadcast_error(); 27002: } 27002: 27002: } 27002: 27002: void wait(__mutex *mutex) 27002: { 27002: 27002: { 27002: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 27002: __throw_concurrence_wait_error(); 27002: } 27002: 27002: } 27002: 27002: void wait_recursive(__recursive_mutex *mutex) 27002: { 27002: 27002: { 27002: if (__gthread_cond_wait_recursive(&_M_cond, 27002: mutex->gthread_recursive_mutex()) 27002: != 0) 27002: __throw_concurrence_wait_error(); 27002: } 27002: 27002: } 27002: }; 27002: 27002: 27002: 27002: } 27002: # 63 "/usr/include/c++/12/bits/shared_ptr_base.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: template class auto_ptr; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: 27002: 27002: 27002: class bad_weak_ptr : public std::exception 27002: { 27002: public: 27002: virtual char const* what() const noexcept; 27002: 27002: virtual ~bad_weak_ptr() noexcept; 27002: }; 27002: 27002: 27002: inline void 27002: __throw_bad_weak_ptr() 27002: { (throw (bad_weak_ptr())); } 27002: 27002: using __gnu_cxx::_Lock_policy; 27002: using __gnu_cxx::__default_lock_policy; 27002: using __gnu_cxx::_S_single; 27002: using __gnu_cxx::_S_mutex; 27002: using __gnu_cxx::_S_atomic; 27002: 27002: 27002: template<_Lock_policy _Lp> 27002: class _Mutex_base 27002: { 27002: protected: 27002: 27002: enum { _S_need_barriers = 0 }; 27002: }; 27002: 27002: template<> 27002: class _Mutex_base<_S_mutex> 27002: : public __gnu_cxx::__mutex 27002: { 27002: protected: 27002: 27002: 27002: 27002: enum { _S_need_barriers = 1 }; 27002: }; 27002: 27002: template<_Lock_policy _Lp = __default_lock_policy> 27002: class _Sp_counted_base 27002: : public _Mutex_base<_Lp> 27002: { 27002: public: 27002: _Sp_counted_base() noexcept 27002: : _M_use_count(1), _M_weak_count(1) { } 27002: 27002: virtual 27002: ~_Sp_counted_base() noexcept 27002: { } 27002: 27002: 27002: 27002: virtual void 27002: _M_dispose() noexcept = 0; 27002: 27002: 27002: virtual void 27002: _M_destroy() noexcept 27002: { delete this; } 27002: 27002: virtual void* 27002: _M_get_deleter(const std::type_info&) noexcept = 0; 27002: 27002: 27002: void 27002: _M_add_ref_copy() 27002: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 27002: 27002: 27002: void 27002: _M_add_ref_lock() 27002: { 27002: if (!_M_add_ref_lock_nothrow()) 27002: __throw_bad_weak_ptr(); 27002: } 27002: 27002: 27002: bool 27002: _M_add_ref_lock_nothrow() noexcept; 27002: 27002: 27002: void 27002: _M_release() noexcept; 27002: 27002: 27002: void 27002: _M_release_last_use() noexcept 27002: { 27002: ; 27002: _M_dispose(); 27002: 27002: 27002: 27002: 27002: if (_Mutex_base<_Lp>::_S_need_barriers) 27002: { 27002: __atomic_thread_fence (4); 27002: } 27002: 27002: 27002: ; 27002: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 27002: -1) == 1) 27002: { 27002: ; 27002: _M_destroy(); 27002: } 27002: } 27002: 27002: 27002: __attribute__((__noinline__)) 27002: void 27002: _M_release_last_use_cold() noexcept 27002: { _M_release_last_use(); } 27002: 27002: 27002: void 27002: _M_weak_add_ref() noexcept 27002: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 27002: 27002: 27002: void 27002: _M_weak_release() noexcept 27002: { 27002: 27002: ; 27002: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 27002: { 27002: ; 27002: if (_Mutex_base<_Lp>::_S_need_barriers) 27002: { 27002: 27002: 27002: __atomic_thread_fence (4); 27002: } 27002: _M_destroy(); 27002: } 27002: } 27002: 27002: long 27002: _M_get_use_count() const noexcept 27002: { 27002: 27002: 27002: return __atomic_load_n(&_M_use_count, 0); 27002: } 27002: 27002: private: 27002: _Sp_counted_base(_Sp_counted_base const&) = delete; 27002: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 27002: 27002: _Atomic_word _M_use_count; 27002: _Atomic_word _M_weak_count; 27002: }; 27002: 27002: template<> 27002: inline bool 27002: _Sp_counted_base<_S_single>:: 27002: _M_add_ref_lock_nothrow() noexcept 27002: { 27002: if (_M_use_count == 0) 27002: return false; 27002: ++_M_use_count; 27002: return true; 27002: } 27002: 27002: template<> 27002: inline bool 27002: _Sp_counted_base<_S_mutex>:: 27002: _M_add_ref_lock_nothrow() noexcept 27002: { 27002: __gnu_cxx::__scoped_lock sentry(*this); 27002: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 27002: { 27002: _M_use_count = 0; 27002: return false; 27002: } 27002: return true; 27002: } 27002: 27002: template<> 27002: inline bool 27002: _Sp_counted_base<_S_atomic>:: 27002: _M_add_ref_lock_nothrow() noexcept 27002: { 27002: 27002: _Atomic_word __count = _M_get_use_count(); 27002: do 27002: { 27002: if (__count == 0) 27002: return false; 27002: 27002: 27002: } 27002: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 27002: true, 4, 27002: 0)); 27002: return true; 27002: } 27002: 27002: template<> 27002: inline void 27002: _Sp_counted_base<_S_single>::_M_add_ref_copy() 27002: { ++_M_use_count; } 27002: 27002: template<> 27002: inline void 27002: _Sp_counted_base<_S_single>::_M_release() noexcept 27002: { 27002: if (--_M_use_count == 0) 27002: { 27002: _M_dispose(); 27002: if (--_M_weak_count == 0) 27002: _M_destroy(); 27002: } 27002: } 27002: 27002: template<> 27002: inline void 27002: _Sp_counted_base<_S_mutex>::_M_release() noexcept 27002: { 27002: 27002: ; 27002: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 27002: { 27002: _M_release_last_use(); 27002: } 27002: } 27002: 27002: template<> 27002: inline void 27002: _Sp_counted_base<_S_atomic>::_M_release() noexcept 27002: { 27002: ; 27002: 27002: constexpr bool __lock_free 27002: = __atomic_always_lock_free(sizeof(long long), 0) 27002: && __atomic_always_lock_free(sizeof(_Atomic_word), 0); 27002: constexpr bool __double_word 27002: = sizeof(long long) == 2 * sizeof(_Atomic_word); 27002: 27002: 27002: constexpr bool __aligned = __alignof(long long) <= alignof(void*); 27002: if constexpr (__lock_free && __double_word && __aligned) 27002: { 27002: constexpr int __wordbits = 8 * sizeof(_Atomic_word); 27002: constexpr int __shiftbits = __double_word ? __wordbits : 0; 27002: constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); 27002: auto __both_counts = reinterpret_cast(&_M_use_count); 27002: 27002: ; 27002: if (__atomic_load_n(__both_counts, 2) == __unique_ref) 27002: { 27002: 27002: 27002: 27002: 27002: _M_weak_count = _M_use_count = 0; 27002: ; 27002: ; 27002: _M_dispose(); 27002: _M_destroy(); 27002: return; 27002: } 27002: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 27002: [[__unlikely__]] 27002: { 27002: _M_release_last_use_cold(); 27002: return; 27002: } 27002: } 27002: else 27002: 27002: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 27002: { 27002: _M_release_last_use(); 27002: } 27002: } 27002: 27002: template<> 27002: inline void 27002: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 27002: { ++_M_weak_count; } 27002: 27002: template<> 27002: inline void 27002: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 27002: { 27002: if (--_M_weak_count == 0) 27002: _M_destroy(); 27002: } 27002: 27002: template<> 27002: inline long 27002: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 27002: { return _M_use_count; } 27002: 27002: 27002: 27002: template 27002: class __shared_ptr; 27002: 27002: template 27002: class __weak_ptr; 27002: 27002: template 27002: class __enable_shared_from_this; 27002: 27002: template 27002: class shared_ptr; 27002: 27002: template 27002: class weak_ptr; 27002: 27002: template 27002: struct owner_less; 27002: 27002: template 27002: class enable_shared_from_this; 27002: 27002: template<_Lock_policy _Lp = __default_lock_policy> 27002: class __weak_count; 27002: 27002: template<_Lock_policy _Lp = __default_lock_policy> 27002: class __shared_count; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 27002: { 27002: public: 27002: explicit 27002: _Sp_counted_ptr(_Ptr __p) noexcept 27002: : _M_ptr(__p) { } 27002: 27002: virtual void 27002: _M_dispose() noexcept 27002: { delete _M_ptr; } 27002: 27002: virtual void 27002: _M_destroy() noexcept 27002: { delete this; } 27002: 27002: virtual void* 27002: _M_get_deleter(const std::type_info&) noexcept 27002: { return nullptr; } 27002: 27002: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 27002: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 27002: 27002: private: 27002: _Ptr _M_ptr; 27002: }; 27002: 27002: template<> 27002: inline void 27002: _Sp_counted_ptr::_M_dispose() noexcept { } 27002: 27002: template<> 27002: inline void 27002: _Sp_counted_ptr::_M_dispose() noexcept { } 27002: 27002: template<> 27002: inline void 27002: _Sp_counted_ptr::_M_dispose() noexcept { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Sp_ebo_helper; 27002: 27002: 27002: template 27002: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 27002: { 27002: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 27002: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 27002: 27002: static _Tp& 27002: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 27002: }; 27002: 27002: 27002: template 27002: struct _Sp_ebo_helper<_Nm, _Tp, false> 27002: { 27002: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 27002: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 27002: 27002: static _Tp& 27002: _S_get(_Sp_ebo_helper& __eboh) 27002: { return __eboh._M_tp; } 27002: 27002: private: 27002: _Tp _M_tp; 27002: }; 27002: 27002: 27002: template 27002: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 27002: { 27002: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 27002: { 27002: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 27002: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 27002: 27002: public: 27002: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 27002: : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) 27002: { } 27002: 27002: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 27002: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 27002: 27002: _Ptr _M_ptr; 27002: }; 27002: 27002: public: 27002: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 27002: 27002: 27002: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 27002: : _M_impl(__p, std::move(__d), _Alloc()) { } 27002: 27002: 27002: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 27002: : _M_impl(__p, std::move(__d), __a) { } 27002: 27002: ~_Sp_counted_deleter() noexcept { } 27002: 27002: virtual void 27002: _M_dispose() noexcept 27002: { _M_impl._M_del()(_M_impl._M_ptr); } 27002: 27002: virtual void 27002: _M_destroy() noexcept 27002: { 27002: __allocator_type __a(_M_impl._M_alloc()); 27002: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 27002: this->~_Sp_counted_deleter(); 27002: } 27002: 27002: virtual void* 27002: _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept 27002: { 27002: 27002: 27002: 27002: return __ti == typeid(_Deleter) 27002: ? std::__addressof(_M_impl._M_del()) 27002: : nullptr; 27002: 27002: 27002: 27002: } 27002: 27002: private: 27002: _Impl _M_impl; 27002: }; 27002: 27002: 27002: 27002: struct _Sp_make_shared_tag 27002: { 27002: private: 27002: template 27002: friend class _Sp_counted_ptr_inplace; 27002: 27002: static const type_info& 27002: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 27002: { 27002: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 27002: return reinterpret_cast(__tag); 27002: } 27002: 27002: static bool _S_eq(const type_info&) noexcept; 27002: }; 27002: 27002: template 27002: struct _Sp_alloc_shared_tag 27002: { 27002: const _Alloc& _M_a; 27002: }; 27002: 27002: template 27002: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 27002: { 27002: class _Impl : _Sp_ebo_helper<0, _Alloc> 27002: { 27002: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 27002: 27002: public: 27002: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 27002: 27002: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 27002: 27002: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 27002: }; 27002: 27002: public: 27002: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 27002: 27002: 27002: template 27002: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 27002: : _M_impl(__a) 27002: { 27002: 27002: 27002: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: ~_Sp_counted_ptr_inplace() noexcept { } 27002: 27002: virtual void 27002: _M_dispose() noexcept 27002: { 27002: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 27002: } 27002: 27002: 27002: virtual void 27002: _M_destroy() noexcept 27002: { 27002: __allocator_type __a(_M_impl._M_alloc()); 27002: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 27002: this->~_Sp_counted_ptr_inplace(); 27002: } 27002: 27002: private: 27002: friend class __shared_count<_Lp>; 27002: 27002: 27002: 27002: virtual void* 27002: _M_get_deleter(const std::type_info& __ti) noexcept override 27002: { 27002: auto __ptr = const_cast::type*>(_M_ptr()); 27002: 27002: 27002: 27002: 27002: if (&__ti == &_Sp_make_shared_tag::_S_ti() 27002: || 27002: 27002: __ti == typeid(_Sp_make_shared_tag) 27002: 27002: 27002: 27002: ) 27002: return __ptr; 27002: return nullptr; 27002: } 27002: 27002: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 27002: 27002: _Impl _M_impl; 27002: }; 27002: # 886 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 27002: struct __sp_array_delete 27002: { 27002: template 27002: void operator()(_Yp* __p) const { delete[] __p; } 27002: }; 27002: 27002: template<_Lock_policy _Lp> 27002: class __shared_count 27002: { 27002: 27002: template 27002: struct __not_alloc_shared_tag { using type = void; }; 27002: 27002: template 27002: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: public: 27002: constexpr __shared_count() noexcept : _M_pi(0) 27002: { } 27002: 27002: template 27002: explicit 27002: __shared_count(_Ptr __p) : _M_pi(0) 27002: { 27002: try 27002: { 27002: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 27002: } 27002: catch(...) 27002: { 27002: delete __p; 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: __shared_count(_Ptr __p, false_type) 27002: : __shared_count(__p) 27002: { } 27002: 27002: template 27002: __shared_count(_Ptr __p, true_type) 27002: : __shared_count(__p, __sp_array_delete{}, allocator()) 27002: { } 27002: 27002: template::type> 27002: __shared_count(_Ptr __p, _Deleter __d) 27002: : __shared_count(__p, std::move(__d), allocator()) 27002: { } 27002: 27002: template::type> 27002: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 27002: { 27002: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 27002: try 27002: { 27002: typename _Sp_cd_type::__allocator_type __a2(__a); 27002: auto __guard = std::__allocate_guarded(__a2); 27002: _Sp_cd_type* __mem = __guard.get(); 27002: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 27002: _M_pi = __mem; 27002: __guard = nullptr; 27002: } 27002: catch(...) 27002: { 27002: __d(__p); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 27002: _Args&&... __args) 27002: { 27002: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 27002: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 27002: auto __guard = std::__allocate_guarded(__a2); 27002: _Sp_cp_type* __mem = __guard.get(); 27002: auto __pi = ::new (__mem) 27002: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 27002: __guard = nullptr; 27002: _M_pi = __pi; 27002: __p = __pi->_M_ptr(); 27002: } 27002: # 1024 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: template 27002: explicit 27002: __shared_count(std::auto_ptr<_Tp>&& __r); 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: template 27002: explicit 27002: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 27002: { 27002: 27002: 27002: if (__r.get() == nullptr) 27002: return; 27002: 27002: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 27002: using _Del2 = __conditional_t::value, 27002: reference_wrapper::type>, 27002: _Del>; 27002: using _Sp_cd_type 27002: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 27002: using _Alloc = allocator<_Sp_cd_type>; 27002: using _Alloc_traits = allocator_traits<_Alloc>; 27002: _Alloc __a; 27002: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 27002: 27002: 27002: 27002: _Alloc_traits::construct(__a, __mem, __r.release(), 27002: std::forward<_Del>(__r.get_deleter())); 27002: _M_pi = __mem; 27002: } 27002: 27002: 27002: explicit __shared_count(const __weak_count<_Lp>& __r); 27002: 27002: 27002: explicit 27002: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; 27002: 27002: ~__shared_count() noexcept 27002: { 27002: if (_M_pi != nullptr) 27002: _M_pi->_M_release(); 27002: } 27002: 27002: __shared_count(const __shared_count& __r) noexcept 27002: : _M_pi(__r._M_pi) 27002: { 27002: if (_M_pi != nullptr) 27002: _M_pi->_M_add_ref_copy(); 27002: } 27002: 27002: __shared_count& 27002: operator=(const __shared_count& __r) noexcept 27002: { 27002: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 27002: if (__tmp != _M_pi) 27002: { 27002: if (__tmp != nullptr) 27002: __tmp->_M_add_ref_copy(); 27002: if (_M_pi != nullptr) 27002: _M_pi->_M_release(); 27002: _M_pi = __tmp; 27002: } 27002: return *this; 27002: } 27002: 27002: void 27002: _M_swap(__shared_count& __r) noexcept 27002: { 27002: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 27002: __r._M_pi = _M_pi; 27002: _M_pi = __tmp; 27002: } 27002: 27002: long 27002: _M_get_use_count() const noexcept 27002: { return _M_pi ? _M_pi->_M_get_use_count() : 0; } 27002: 27002: bool 27002: _M_unique() const noexcept 27002: { return this->_M_get_use_count() == 1; } 27002: 27002: void* 27002: _M_get_deleter(const std::type_info& __ti) const noexcept 27002: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 27002: 27002: bool 27002: _M_less(const __shared_count& __rhs) const noexcept 27002: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 27002: 27002: bool 27002: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 27002: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 27002: 27002: 27002: friend inline bool 27002: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 27002: { return __a._M_pi == __b._M_pi; } 27002: 27002: private: 27002: friend class __weak_count<_Lp>; 27002: 27002: 27002: 27002: 27002: _Sp_counted_base<_Lp>* _M_pi; 27002: }; 27002: 27002: 27002: template<_Lock_policy _Lp> 27002: class __weak_count 27002: { 27002: public: 27002: constexpr __weak_count() noexcept : _M_pi(nullptr) 27002: { } 27002: 27002: __weak_count(const __shared_count<_Lp>& __r) noexcept 27002: : _M_pi(__r._M_pi) 27002: { 27002: if (_M_pi != nullptr) 27002: _M_pi->_M_weak_add_ref(); 27002: } 27002: 27002: __weak_count(const __weak_count& __r) noexcept 27002: : _M_pi(__r._M_pi) 27002: { 27002: if (_M_pi != nullptr) 27002: _M_pi->_M_weak_add_ref(); 27002: } 27002: 27002: __weak_count(__weak_count&& __r) noexcept 27002: : _M_pi(__r._M_pi) 27002: { __r._M_pi = nullptr; } 27002: 27002: ~__weak_count() noexcept 27002: { 27002: if (_M_pi != nullptr) 27002: _M_pi->_M_weak_release(); 27002: } 27002: 27002: __weak_count& 27002: operator=(const __shared_count<_Lp>& __r) noexcept 27002: { 27002: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 27002: if (__tmp != nullptr) 27002: __tmp->_M_weak_add_ref(); 27002: if (_M_pi != nullptr) 27002: _M_pi->_M_weak_release(); 27002: _M_pi = __tmp; 27002: return *this; 27002: } 27002: 27002: __weak_count& 27002: operator=(const __weak_count& __r) noexcept 27002: { 27002: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 27002: if (__tmp != nullptr) 27002: __tmp->_M_weak_add_ref(); 27002: if (_M_pi != nullptr) 27002: _M_pi->_M_weak_release(); 27002: _M_pi = __tmp; 27002: return *this; 27002: } 27002: 27002: __weak_count& 27002: operator=(__weak_count&& __r) noexcept 27002: { 27002: if (_M_pi != nullptr) 27002: _M_pi->_M_weak_release(); 27002: _M_pi = __r._M_pi; 27002: __r._M_pi = nullptr; 27002: return *this; 27002: } 27002: 27002: void 27002: _M_swap(__weak_count& __r) noexcept 27002: { 27002: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 27002: __r._M_pi = _M_pi; 27002: _M_pi = __tmp; 27002: } 27002: 27002: long 27002: _M_get_use_count() const noexcept 27002: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 27002: 27002: bool 27002: _M_less(const __weak_count& __rhs) const noexcept 27002: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 27002: 27002: bool 27002: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 27002: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 27002: 27002: 27002: friend inline bool 27002: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 27002: { return __a._M_pi == __b._M_pi; } 27002: 27002: private: 27002: friend class __shared_count<_Lp>; 27002: 27002: 27002: 27002: 27002: _Sp_counted_base<_Lp>* _M_pi; 27002: }; 27002: 27002: 27002: template<_Lock_policy _Lp> 27002: inline 27002: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 27002: : _M_pi(__r._M_pi) 27002: { 27002: if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) 27002: __throw_bad_weak_ptr(); 27002: } 27002: 27002: 27002: template<_Lock_policy _Lp> 27002: inline 27002: __shared_count<_Lp>:: 27002: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept 27002: : _M_pi(__r._M_pi) 27002: { 27002: if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) 27002: _M_pi = nullptr; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __sp_compatible_with 27002: : false_type 27002: { }; 27002: 27002: template 27002: struct __sp_compatible_with<_Yp*, _Tp*> 27002: : is_convertible<_Yp*, _Tp*>::type 27002: { }; 27002: 27002: template 27002: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 27002: : true_type 27002: { }; 27002: 27002: template 27002: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 27002: : true_type 27002: { }; 27002: 27002: template 27002: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 27002: : true_type 27002: { }; 27002: 27002: template 27002: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 27002: : true_type 27002: { }; 27002: 27002: 27002: template 27002: struct __sp_is_constructible_arrN 27002: : false_type 27002: { }; 27002: 27002: template 27002: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 27002: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 27002: { }; 27002: 27002: 27002: template 27002: struct __sp_is_constructible_arr 27002: : false_type 27002: { }; 27002: 27002: template 27002: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 27002: : is_convertible<_Yp(*)[], _Up(*)[]>::type 27002: { }; 27002: 27002: 27002: template 27002: struct __sp_is_constructible; 27002: 27002: 27002: template 27002: struct __sp_is_constructible<_Up[_Nm], _Yp> 27002: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 27002: { }; 27002: 27002: 27002: template 27002: struct __sp_is_constructible<_Up[], _Yp> 27002: : __sp_is_constructible_arr<_Up, _Yp>::type 27002: { }; 27002: 27002: 27002: template 27002: struct __sp_is_constructible 27002: : is_convertible<_Yp*, _Tp*>::type 27002: { }; 27002: 27002: 27002: 27002: template::value, bool = is_void<_Tp>::value> 27002: class __shared_ptr_access 27002: { 27002: public: 27002: using element_type = _Tp; 27002: 27002: element_type& 27002: operator*() const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) __builtin_unreachable(); } while (false); 27002: return *_M_get(); 27002: } 27002: 27002: element_type* 27002: operator->() const noexcept 27002: { 27002: ; 27002: return _M_get(); 27002: } 27002: 27002: private: 27002: element_type* 27002: _M_get() const noexcept 27002: { return static_cast*>(this)->get(); } 27002: }; 27002: 27002: 27002: template 27002: class __shared_ptr_access<_Tp, _Lp, false, true> 27002: { 27002: public: 27002: using element_type = _Tp; 27002: 27002: element_type* 27002: operator->() const noexcept 27002: { 27002: auto __ptr = static_cast*>(this)->get(); 27002: ; 27002: return __ptr; 27002: } 27002: }; 27002: 27002: 27002: template 27002: class __shared_ptr_access<_Tp, _Lp, true, false> 27002: { 27002: public: 27002: using element_type = typename remove_extent<_Tp>::type; 27002: # 1407 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 27002: element_type& 27002: operator[](ptrdiff_t __i) const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) __builtin_unreachable(); } while (false); 27002: do { if (std::__is_constant_evaluated() && !bool(!extent<_Tp>::value || __i < extent<_Tp>::value)) __builtin_unreachable(); } while (false); 27002: return _M_get()[__i]; 27002: } 27002: 27002: private: 27002: element_type* 27002: _M_get() const noexcept 27002: { return static_cast*>(this)->get(); } 27002: }; 27002: 27002: template 27002: class __shared_ptr 27002: : public __shared_ptr_access<_Tp, _Lp> 27002: { 27002: public: 27002: using element_type = typename remove_extent<_Tp>::type; 27002: 27002: private: 27002: 27002: template 27002: using _SafeConv 27002: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 27002: 27002: 27002: template 27002: using _Compatible = typename 27002: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 27002: 27002: 27002: template 27002: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 27002: 27002: 27002: template::pointer> 27002: using _UniqCompatible = __enable_if_t<__and_< 27002: __sp_compatible_with<_Yp*, _Tp*>, 27002: is_convertible<_Ptr, element_type*>, 27002: is_move_constructible<_Del> 27002: >::value, _Res>; 27002: 27002: 27002: template 27002: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 27002: 27002: public: 27002: 27002: 27002: using weak_type = __weak_ptr<_Tp, _Lp>; 27002: 27002: 27002: constexpr __shared_ptr() noexcept 27002: : _M_ptr(0), _M_refcount() 27002: { } 27002: 27002: template> 27002: explicit 27002: __shared_ptr(_Yp* __p) 27002: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 27002: { 27002: static_assert( !is_void<_Yp>::value, "incomplete type" ); 27002: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 27002: _M_enable_shared_from_this_with(__p); 27002: } 27002: 27002: template> 27002: __shared_ptr(_Yp* __p, _Deleter __d) 27002: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 27002: { 27002: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 27002: "deleter expression d(p) is well-formed"); 27002: _M_enable_shared_from_this_with(__p); 27002: } 27002: 27002: template> 27002: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 27002: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 27002: { 27002: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 27002: "deleter expression d(p) is well-formed"); 27002: _M_enable_shared_from_this_with(__p); 27002: } 27002: 27002: template 27002: __shared_ptr(nullptr_t __p, _Deleter __d) 27002: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 27002: { } 27002: 27002: template 27002: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 27002: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 27002: { } 27002: 27002: 27002: template 27002: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 27002: element_type* __p) noexcept 27002: : _M_ptr(__p), _M_refcount(__r._M_refcount) 27002: { } 27002: 27002: 27002: template 27002: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, 27002: element_type* __p) noexcept 27002: : _M_ptr(__p), _M_refcount() 27002: { 27002: _M_refcount._M_swap(__r._M_refcount); 27002: __r._M_ptr = nullptr; 27002: } 27002: 27002: __shared_ptr(const __shared_ptr&) noexcept = default; 27002: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 27002: ~__shared_ptr() = default; 27002: 27002: template> 27002: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 27002: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 27002: { } 27002: 27002: __shared_ptr(__shared_ptr&& __r) noexcept 27002: : _M_ptr(__r._M_ptr), _M_refcount() 27002: { 27002: _M_refcount._M_swap(__r._M_refcount); 27002: __r._M_ptr = nullptr; 27002: } 27002: 27002: template> 27002: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 27002: : _M_ptr(__r._M_ptr), _M_refcount() 27002: { 27002: _M_refcount._M_swap(__r._M_refcount); 27002: __r._M_ptr = nullptr; 27002: } 27002: 27002: template> 27002: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 27002: : _M_refcount(__r._M_refcount) 27002: { 27002: 27002: 27002: _M_ptr = __r._M_ptr; 27002: } 27002: 27002: 27002: template> 27002: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 27002: : _M_ptr(__r.get()), _M_refcount() 27002: { 27002: auto __raw = __to_address(__r.get()); 27002: _M_refcount = __shared_count<_Lp>(std::move(__r)); 27002: _M_enable_shared_from_this_with(__raw); 27002: } 27002: # 1585 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: template> 27002: __shared_ptr(auto_ptr<_Yp>&& __r); 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 27002: 27002: template 27002: _Assignable<_Yp> 27002: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 27002: { 27002: _M_ptr = __r._M_ptr; 27002: _M_refcount = __r._M_refcount; 27002: return *this; 27002: } 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: template 27002: _Assignable<_Yp> 27002: operator=(auto_ptr<_Yp>&& __r) 27002: { 27002: __shared_ptr(std::move(__r)).swap(*this); 27002: return *this; 27002: } 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: __shared_ptr& 27002: operator=(__shared_ptr&& __r) noexcept 27002: { 27002: __shared_ptr(std::move(__r)).swap(*this); 27002: return *this; 27002: } 27002: 27002: template 27002: _Assignable<_Yp> 27002: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 27002: { 27002: __shared_ptr(std::move(__r)).swap(*this); 27002: return *this; 27002: } 27002: 27002: template 27002: _UniqAssignable<_Yp, _Del> 27002: operator=(unique_ptr<_Yp, _Del>&& __r) 27002: { 27002: __shared_ptr(std::move(__r)).swap(*this); 27002: return *this; 27002: } 27002: 27002: void 27002: reset() noexcept 27002: { __shared_ptr().swap(*this); } 27002: 27002: template 27002: _SafeConv<_Yp> 27002: reset(_Yp* __p) 27002: { 27002: 27002: do { if (std::__is_constant_evaluated() && !bool(__p == nullptr || __p != _M_ptr)) __builtin_unreachable(); } while (false); 27002: __shared_ptr(__p).swap(*this); 27002: } 27002: 27002: template 27002: _SafeConv<_Yp> 27002: reset(_Yp* __p, _Deleter __d) 27002: { __shared_ptr(__p, std::move(__d)).swap(*this); } 27002: 27002: template 27002: _SafeConv<_Yp> 27002: reset(_Yp* __p, _Deleter __d, _Alloc __a) 27002: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 27002: 27002: 27002: element_type* 27002: get() const noexcept 27002: { return _M_ptr; } 27002: 27002: 27002: explicit operator bool() const noexcept 27002: { return _M_ptr != nullptr; } 27002: 27002: 27002: bool 27002: unique() const noexcept 27002: { return _M_refcount._M_unique(); } 27002: 27002: 27002: long 27002: use_count() const noexcept 27002: { return _M_refcount._M_get_use_count(); } 27002: 27002: 27002: void 27002: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 27002: { 27002: std::swap(_M_ptr, __other._M_ptr); 27002: _M_refcount._M_swap(__other._M_refcount); 27002: } 27002: # 1697 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 27002: template 27002: bool 27002: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 27002: { return _M_refcount._M_less(__rhs._M_refcount); } 27002: 27002: template 27002: bool 27002: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 27002: { return _M_refcount._M_less(__rhs._M_refcount); } 27002: 27002: 27002: protected: 27002: 27002: template 27002: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 27002: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 27002: { _M_enable_shared_from_this_with(_M_ptr); } 27002: 27002: template 27002: friend __shared_ptr<_Tp1, _Lp1> 27002: __allocate_shared(const _Alloc& __a, _Args&&... __args); 27002: # 1731 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 27002: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept 27002: : _M_refcount(__r._M_refcount, std::nothrow) 27002: { 27002: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 27002: } 27002: 27002: friend class __weak_ptr<_Tp, _Lp>; 27002: 27002: private: 27002: 27002: template 27002: using __esft_base_t = decltype(__enable_shared_from_this_base( 27002: std::declval&>(), 27002: std::declval<_Yp*>())); 27002: 27002: 27002: template 27002: struct __has_esft_base 27002: : false_type { }; 27002: 27002: template 27002: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 27002: : __not_> { }; 27002: 27002: template::type> 27002: typename enable_if<__has_esft_base<_Yp2>::value>::type 27002: _M_enable_shared_from_this_with(_Yp* __p) noexcept 27002: { 27002: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 27002: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 27002: } 27002: 27002: template::type> 27002: typename enable_if::value>::type 27002: _M_enable_shared_from_this_with(_Yp*) noexcept 27002: { } 27002: 27002: void* 27002: _M_get_deleter(const std::type_info& __ti) const noexcept 27002: { return _M_refcount._M_get_deleter(__ti); } 27002: 27002: template friend class __shared_ptr; 27002: template friend class __weak_ptr; 27002: 27002: template 27002: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 27002: 27002: template 27002: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 27002: 27002: 27002: 27002: 27002: 27002: element_type* _M_ptr; 27002: __shared_count<_Lp> _M_refcount; 27002: }; 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 27002: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 27002: { return __a.get() == __b.get(); } 27002: 27002: template 27002: inline bool 27002: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 27002: { return !__a; } 27002: # 1817 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 27002: template 27002: inline bool 27002: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 27002: { return !__a; } 27002: 27002: template 27002: inline bool 27002: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 27002: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 27002: { return __a.get() != __b.get(); } 27002: 27002: template 27002: inline bool 27002: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 27002: { return (bool)__a; } 27002: 27002: template 27002: inline bool 27002: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 27002: { return (bool)__a; } 27002: 27002: template 27002: inline bool 27002: operator<(const __shared_ptr<_Tp, _Lp>& __a, 27002: const __shared_ptr<_Up, _Lp>& __b) noexcept 27002: { 27002: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 27002: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 27002: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 27002: return less<_Vp>()(__a.get(), __b.get()); 27002: } 27002: 27002: template 27002: inline bool 27002: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 27002: { 27002: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 27002: return less<_Tp_elt*>()(__a.get(), nullptr); 27002: } 27002: 27002: template 27002: inline bool 27002: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 27002: { 27002: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 27002: return less<_Tp_elt*>()(nullptr, __a.get()); 27002: } 27002: 27002: template 27002: inline bool 27002: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 27002: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 27002: { return !(__b < __a); } 27002: 27002: template 27002: inline bool 27002: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 27002: { return !(nullptr < __a); } 27002: 27002: template 27002: inline bool 27002: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 27002: { return !(__a < nullptr); } 27002: 27002: template 27002: inline bool 27002: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 27002: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 27002: { return (__b < __a); } 27002: 27002: template 27002: inline bool 27002: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 27002: { return nullptr < __a; } 27002: 27002: template 27002: inline bool 27002: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 27002: { return __a < nullptr; } 27002: 27002: template 27002: inline bool 27002: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 27002: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 27002: { return !(__a < __b); } 27002: 27002: template 27002: inline bool 27002: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 27002: { return !(__a < nullptr); } 27002: 27002: template 27002: inline bool 27002: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 27002: { return !(nullptr < __a); } 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 27002: { __a.swap(__b); } 27002: # 1927 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 27002: template 27002: inline __shared_ptr<_Tp, _Lp> 27002: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 27002: { 27002: using _Sp = __shared_ptr<_Tp, _Lp>; 27002: return _Sp(__r, static_cast(__r.get())); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline __shared_ptr<_Tp, _Lp> 27002: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 27002: { 27002: using _Sp = __shared_ptr<_Tp, _Lp>; 27002: return _Sp(__r, const_cast(__r.get())); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline __shared_ptr<_Tp, _Lp> 27002: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 27002: { 27002: using _Sp = __shared_ptr<_Tp, _Lp>; 27002: if (auto* __p = dynamic_cast(__r.get())) 27002: return _Sp(__r, __p); 27002: return _Sp(); 27002: } 27002: 27002: 27002: template 27002: inline __shared_ptr<_Tp, _Lp> 27002: reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 27002: { 27002: using _Sp = __shared_ptr<_Tp, _Lp>; 27002: return _Sp(__r, reinterpret_cast(__r.get())); 27002: } 27002: 27002: 27002: template 27002: class __weak_ptr 27002: { 27002: template 27002: using _Compatible = typename 27002: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 27002: 27002: 27002: template 27002: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 27002: 27002: public: 27002: using element_type = typename remove_extent<_Tp>::type; 27002: 27002: constexpr __weak_ptr() noexcept 27002: : _M_ptr(nullptr), _M_refcount() 27002: { } 27002: 27002: __weak_ptr(const __weak_ptr&) noexcept = default; 27002: 27002: ~__weak_ptr() = default; 27002: # 2009 "/usr/include/c++/12/bits/shared_ptr_base.h" 3 27002: template> 27002: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 27002: : _M_refcount(__r._M_refcount) 27002: { _M_ptr = __r.lock().get(); } 27002: 27002: template> 27002: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 27002: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 27002: { } 27002: 27002: __weak_ptr(__weak_ptr&& __r) noexcept 27002: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 27002: { __r._M_ptr = nullptr; } 27002: 27002: template> 27002: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 27002: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 27002: { __r._M_ptr = nullptr; } 27002: 27002: __weak_ptr& 27002: operator=(const __weak_ptr& __r) noexcept = default; 27002: 27002: template 27002: _Assignable<_Yp> 27002: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 27002: { 27002: _M_ptr = __r.lock().get(); 27002: _M_refcount = __r._M_refcount; 27002: return *this; 27002: } 27002: 27002: template 27002: _Assignable<_Yp> 27002: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 27002: { 27002: _M_ptr = __r._M_ptr; 27002: _M_refcount = __r._M_refcount; 27002: return *this; 27002: } 27002: 27002: __weak_ptr& 27002: operator=(__weak_ptr&& __r) noexcept 27002: { 27002: _M_ptr = __r._M_ptr; 27002: _M_refcount = std::move(__r._M_refcount); 27002: __r._M_ptr = nullptr; 27002: return *this; 27002: } 27002: 27002: template 27002: _Assignable<_Yp> 27002: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 27002: { 27002: _M_ptr = __r.lock().get(); 27002: _M_refcount = std::move(__r._M_refcount); 27002: __r._M_ptr = nullptr; 27002: return *this; 27002: } 27002: 27002: __shared_ptr<_Tp, _Lp> 27002: lock() const noexcept 27002: { return __shared_ptr(*this, std::nothrow); } 27002: 27002: long 27002: use_count() const noexcept 27002: { return _M_refcount._M_get_use_count(); } 27002: 27002: bool 27002: expired() const noexcept 27002: { return _M_refcount._M_get_use_count() == 0; } 27002: 27002: template 27002: bool 27002: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 27002: { return _M_refcount._M_less(__rhs._M_refcount); } 27002: 27002: template 27002: bool 27002: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 27002: { return _M_refcount._M_less(__rhs._M_refcount); } 27002: 27002: void 27002: reset() noexcept 27002: { __weak_ptr().swap(*this); } 27002: 27002: void 27002: swap(__weak_ptr& __s) noexcept 27002: { 27002: std::swap(_M_ptr, __s._M_ptr); 27002: _M_refcount._M_swap(__s._M_refcount); 27002: } 27002: 27002: private: 27002: 27002: void 27002: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 27002: { 27002: if (use_count() == 0) 27002: { 27002: _M_ptr = __ptr; 27002: _M_refcount = __refcount; 27002: } 27002: } 27002: 27002: template friend class __shared_ptr; 27002: template friend class __weak_ptr; 27002: friend class __enable_shared_from_this<_Tp, _Lp>; 27002: friend class enable_shared_from_this<_Tp>; 27002: 27002: 27002: 27002: 27002: element_type* _M_ptr; 27002: __weak_count<_Lp> _M_refcount; 27002: }; 27002: 27002: 27002: template 27002: inline void 27002: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 27002: { __a.swap(__b); } 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: template 27002: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 27002: { 27002: bool 27002: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 27002: { return __lhs.owner_before(__rhs); } 27002: 27002: bool 27002: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 27002: { return __lhs.owner_before(__rhs); } 27002: 27002: bool 27002: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 27002: { return __lhs.owner_before(__rhs); } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: template<> 27002: struct _Sp_owner_less 27002: { 27002: template 27002: auto 27002: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 27002: -> decltype(__lhs.owner_before(__rhs)) 27002: { return __lhs.owner_before(__rhs); } 27002: 27002: using is_transparent = void; 27002: }; 27002: 27002: template 27002: struct owner_less<__shared_ptr<_Tp, _Lp>> 27002: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 27002: { }; 27002: 27002: template 27002: struct owner_less<__weak_ptr<_Tp, _Lp>> 27002: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 27002: { }; 27002: 27002: 27002: template 27002: class __enable_shared_from_this 27002: { 27002: protected: 27002: constexpr __enable_shared_from_this() noexcept { } 27002: 27002: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 27002: 27002: __enable_shared_from_this& 27002: operator=(const __enable_shared_from_this&) noexcept 27002: { return *this; } 27002: 27002: ~__enable_shared_from_this() { } 27002: 27002: public: 27002: __shared_ptr<_Tp, _Lp> 27002: shared_from_this() 27002: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 27002: 27002: __shared_ptr 27002: shared_from_this() const 27002: { return __shared_ptr(this->_M_weak_this); } 27002: 27002: 27002: __weak_ptr<_Tp, _Lp> 27002: weak_from_this() noexcept 27002: { return this->_M_weak_this; } 27002: 27002: __weak_ptr 27002: weak_from_this() const noexcept 27002: { return this->_M_weak_this; } 27002: 27002: 27002: private: 27002: template 27002: void 27002: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 27002: { _M_weak_this._M_assign(__p, __n); } 27002: 27002: friend const __enable_shared_from_this* 27002: __enable_shared_from_this_base(const __shared_count<_Lp>&, 27002: const __enable_shared_from_this* __p) 27002: { return __p; } 27002: 27002: template 27002: friend class __shared_ptr; 27002: 27002: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 27002: }; 27002: 27002: template 27002: inline __shared_ptr<_Tp, _Lp> 27002: __allocate_shared(const _Alloc& __a, _Args&&... __args) 27002: { 27002: static_assert(!is_array<_Tp>::value, "make_shared not supported"); 27002: 27002: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: template 27002: inline __shared_ptr<_Tp, _Lp> 27002: __make_shared(_Args&&... __args) 27002: { 27002: typedef typename std::remove_const<_Tp>::type _Tp_nc; 27002: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: 27002: template 27002: struct hash<__shared_ptr<_Tp, _Lp>> 27002: : public __hash_base> 27002: { 27002: size_t 27002: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 27002: { 27002: return hash::element_type*>()( 27002: __s.get()); 27002: } 27002: }; 27002: 27002: 27002: } 27002: # 54 "/usr/include/c++/12/bits/shared_ptr.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 68 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: inline std::basic_ostream<_Ch, _Tr>& 27002: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 27002: const __shared_ptr<_Tp, _Lp>& __p) 27002: { 27002: __os << __p.get(); 27002: return __os; 27002: } 27002: 27002: template 27002: inline _Del* 27002: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 27002: { 27002: 27002: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline _Del* 27002: get_deleter(const shared_ptr<_Tp>& __p) noexcept 27002: { 27002: 27002: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 27002: 27002: 27002: 27002: } 27002: # 111 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: using _NonArray = __enable_if_t::value, _Tp>; 27002: # 174 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: class shared_ptr : public __shared_ptr<_Tp> 27002: { 27002: template 27002: using _Constructible = typename enable_if< 27002: is_constructible<__shared_ptr<_Tp>, _Args...>::value 27002: >::type; 27002: 27002: template 27002: using _Assignable = typename enable_if< 27002: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 27002: >::type; 27002: 27002: public: 27002: 27002: 27002: using element_type = typename __shared_ptr<_Tp>::element_type; 27002: 27002: 27002: 27002: 27002: 27002: using weak_type = weak_ptr<_Tp>; 27002: 27002: 27002: 27002: 27002: 27002: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 27002: 27002: shared_ptr(const shared_ptr&) noexcept = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: explicit 27002: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 27002: # 229 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template> 27002: shared_ptr(_Yp* __p, _Deleter __d) 27002: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 27002: # 247 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: shared_ptr(nullptr_t __p, _Deleter __d) 27002: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 27002: # 266 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template> 27002: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 27002: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 27002: # 286 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 27002: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 27002: # 310 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 27002: : __shared_ptr<_Tp>(__r, __p) { } 27002: # 349 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template&>> 27002: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 27002: : __shared_ptr<_Tp>(__r) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: shared_ptr(shared_ptr&& __r) noexcept 27002: : __shared_ptr<_Tp>(std::move(__r)) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template>> 27002: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 27002: : __shared_ptr<_Tp>(std::move(__r)) { } 27002: # 379 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template&>> 27002: explicit shared_ptr(const weak_ptr<_Yp>& __r) 27002: : __shared_ptr<_Tp>(__r) { } 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: template>> 27002: shared_ptr(auto_ptr<_Yp>&& __r); 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: 27002: template>> 27002: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 27002: : __shared_ptr<_Tp>(std::move(__r)) { } 27002: # 412 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 27002: 27002: shared_ptr& operator=(const shared_ptr&) noexcept = default; 27002: 27002: template 27002: _Assignable&> 27002: operator=(const shared_ptr<_Yp>& __r) noexcept 27002: { 27002: this->__shared_ptr<_Tp>::operator=(__r); 27002: return *this; 27002: } 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: template 27002: _Assignable> 27002: operator=(auto_ptr<_Yp>&& __r) 27002: { 27002: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 27002: return *this; 27002: } 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: shared_ptr& 27002: operator=(shared_ptr&& __r) noexcept 27002: { 27002: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 27002: return *this; 27002: } 27002: 27002: template 27002: _Assignable> 27002: operator=(shared_ptr<_Yp>&& __r) noexcept 27002: { 27002: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 27002: return *this; 27002: } 27002: 27002: template 27002: _Assignable> 27002: operator=(unique_ptr<_Yp, _Del>&& __r) 27002: { 27002: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 27002: return *this; 27002: } 27002: 27002: private: 27002: 27002: template 27002: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 27002: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 27002: { } 27002: 27002: template 27002: friend shared_ptr<_NonArray<_Yp>> 27002: allocate_shared(const _Alloc&, _Args&&...); 27002: 27002: template 27002: friend shared_ptr<_NonArray<_Yp>> 27002: make_shared(_Args&&...); 27002: # 535 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept 27002: : __shared_ptr<_Tp>(__r, std::nothrow) { } 27002: 27002: friend class weak_ptr<_Tp>; 27002: }; 27002: 27002: 27002: template 27002: shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; 27002: template 27002: shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 27002: { return __a.get() == __b.get(); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 27002: { return !__a; } 27002: # 580 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 27002: { return !__a; } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 27002: { return __a.get() != __b.get(); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 27002: { return (bool)__a; } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 27002: { return (bool)__a; } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 27002: { 27002: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 27002: using _Up_elt = typename shared_ptr<_Up>::element_type; 27002: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 27002: return less<_Vp>()(__a.get(), __b.get()); 27002: } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 27002: { 27002: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 27002: return less<_Tp_elt*>()(__a.get(), nullptr); 27002: } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 27002: { 27002: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 27002: return less<_Tp_elt*>()(nullptr, __a.get()); 27002: } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 27002: { return !(__b < __a); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 27002: { return !(nullptr < __a); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 27002: { return !(__a < nullptr); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 27002: { return (__b < __a); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 27002: { return nullptr < __a; } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 27002: { return __a < nullptr; } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 27002: { return !(__a < __b); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 27002: { return !(__a < nullptr); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] inline bool 27002: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 27002: { return !(nullptr < __a); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 27002: { __a.swap(__b); } 27002: 27002: 27002: 27002: 27002: template 27002: inline shared_ptr<_Tp> 27002: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 27002: { 27002: using _Sp = shared_ptr<_Tp>; 27002: return _Sp(__r, static_cast(__r.get())); 27002: } 27002: 27002: 27002: template 27002: inline shared_ptr<_Tp> 27002: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 27002: { 27002: using _Sp = shared_ptr<_Tp>; 27002: return _Sp(__r, const_cast(__r.get())); 27002: } 27002: 27002: 27002: template 27002: inline shared_ptr<_Tp> 27002: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 27002: { 27002: using _Sp = shared_ptr<_Tp>; 27002: if (auto* __p = dynamic_cast(__r.get())) 27002: return _Sp(__r, __p); 27002: return _Sp(); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: inline shared_ptr<_Tp> 27002: reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept 27002: { 27002: using _Sp = shared_ptr<_Tp>; 27002: return _Sp(__r, reinterpret_cast(__r.get())); 27002: } 27002: # 810 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: class weak_ptr : public __weak_ptr<_Tp> 27002: { 27002: template 27002: using _Constructible = typename enable_if< 27002: is_constructible<__weak_ptr<_Tp>, _Arg>::value 27002: >::type; 27002: 27002: template 27002: using _Assignable = typename enable_if< 27002: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 27002: >::type; 27002: 27002: public: 27002: constexpr weak_ptr() noexcept = default; 27002: 27002: template&>> 27002: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 27002: : __weak_ptr<_Tp>(__r) { } 27002: 27002: weak_ptr(const weak_ptr&) noexcept = default; 27002: 27002: template&>> 27002: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 27002: : __weak_ptr<_Tp>(__r) { } 27002: 27002: weak_ptr(weak_ptr&&) noexcept = default; 27002: 27002: template>> 27002: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 27002: : __weak_ptr<_Tp>(std::move(__r)) { } 27002: 27002: weak_ptr& 27002: operator=(const weak_ptr& __r) noexcept = default; 27002: 27002: template 27002: _Assignable&> 27002: operator=(const weak_ptr<_Yp>& __r) noexcept 27002: { 27002: this->__weak_ptr<_Tp>::operator=(__r); 27002: return *this; 27002: } 27002: 27002: template 27002: _Assignable&> 27002: operator=(const shared_ptr<_Yp>& __r) noexcept 27002: { 27002: this->__weak_ptr<_Tp>::operator=(__r); 27002: return *this; 27002: } 27002: 27002: weak_ptr& 27002: operator=(weak_ptr&& __r) noexcept = default; 27002: 27002: template 27002: _Assignable> 27002: operator=(weak_ptr<_Yp>&& __r) noexcept 27002: { 27002: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 27002: return *this; 27002: } 27002: 27002: shared_ptr<_Tp> 27002: lock() const noexcept 27002: { return shared_ptr<_Tp>(*this, std::nothrow); } 27002: }; 27002: 27002: 27002: template 27002: weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 27002: { __a.swap(__b); } 27002: 27002: 27002: 27002: template 27002: struct owner_less; 27002: 27002: 27002: template<> 27002: struct owner_less : _Sp_owner_less 27002: { }; 27002: 27002: 27002: template 27002: struct owner_less> 27002: : public _Sp_owner_less, weak_ptr<_Tp>> 27002: { }; 27002: 27002: 27002: template 27002: struct owner_less> 27002: : public _Sp_owner_less, shared_ptr<_Tp>> 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class enable_shared_from_this 27002: { 27002: protected: 27002: constexpr enable_shared_from_this() noexcept { } 27002: 27002: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 27002: 27002: enable_shared_from_this& 27002: operator=(const enable_shared_from_this&) noexcept 27002: { return *this; } 27002: 27002: ~enable_shared_from_this() { } 27002: 27002: public: 27002: shared_ptr<_Tp> 27002: shared_from_this() 27002: { return shared_ptr<_Tp>(this->_M_weak_this); } 27002: 27002: shared_ptr 27002: shared_from_this() const 27002: { return shared_ptr(this->_M_weak_this); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: weak_ptr<_Tp> 27002: weak_from_this() noexcept 27002: { return this->_M_weak_this; } 27002: 27002: weak_ptr 27002: weak_from_this() const noexcept 27002: { return this->_M_weak_this; } 27002: 27002: 27002: 27002: private: 27002: template 27002: void 27002: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 27002: { _M_weak_this._M_assign(__p, __n); } 27002: 27002: 27002: friend const enable_shared_from_this* 27002: __enable_shared_from_this_base(const __shared_count<>&, 27002: const enable_shared_from_this* __p) 27002: { return __p; } 27002: 27002: template 27002: friend class __shared_ptr; 27002: 27002: mutable weak_ptr<_Tp> _M_weak_this; 27002: }; 27002: # 988 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: inline shared_ptr<_NonArray<_Tp>> 27002: allocate_shared(const _Alloc& __a, _Args&&... __args) 27002: { 27002: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 27002: std::forward<_Args>(__args)...); 27002: } 27002: # 1003 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: inline shared_ptr<_NonArray<_Tp>> 27002: make_shared(_Args&&... __args) 27002: { 27002: using _Alloc = allocator; 27002: _Alloc __a; 27002: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 27002: std::forward<_Args>(__args)...); 27002: } 27002: # 1152 "/usr/include/c++/12/bits/shared_ptr.h" 3 27002: template 27002: struct hash> 27002: : public __hash_base> 27002: { 27002: size_t 27002: operator()(const shared_ptr<_Tp>& __s) const noexcept 27002: { 27002: return std::hash::element_type*>()(__s.get()); 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: namespace __detail::__variant 27002: { 27002: template struct _Never_valueless_alt; 27002: 27002: 27002: 27002: template 27002: struct _Never_valueless_alt> 27002: : std::true_type 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct _Never_valueless_alt> 27002: : std::true_type 27002: { }; 27002: } 27002: 27002: 27002: 27002: } 27002: # 78 "/usr/include/c++/12/memory" 2 3 27002: # 1 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 1 3 27002: # 35 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 47 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 27002: struct _Sp_locker 27002: { 27002: _Sp_locker(const _Sp_locker&) = delete; 27002: _Sp_locker& operator=(const _Sp_locker&) = delete; 27002: 27002: 27002: explicit 27002: _Sp_locker(const void*) noexcept; 27002: _Sp_locker(const void*, const void*) noexcept; 27002: ~_Sp_locker(); 27002: 27002: private: 27002: unsigned char _M_key1; 27002: unsigned char _M_key2; 27002: 27002: 27002: 27002: }; 27002: # 74 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 27002: template 27002: inline bool 27002: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>* __p) 27002: { 27002: 27002: return __gthread_active_p() == 0; 27002: 27002: 27002: 27002: } 27002: 27002: template 27002: inline bool 27002: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 27002: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 27002: # 101 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 27002: template 27002: inline shared_ptr<_Tp> 27002: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 27002: { 27002: _Sp_locker __lock{__p}; 27002: return *__p; 27002: } 27002: 27002: template 27002: inline shared_ptr<_Tp> 27002: atomic_load(const shared_ptr<_Tp>* __p) 27002: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 27002: 27002: template 27002: inline __shared_ptr<_Tp, _Lp> 27002: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 27002: { 27002: _Sp_locker __lock{__p}; 27002: return *__p; 27002: } 27002: 27002: template 27002: inline __shared_ptr<_Tp, _Lp> 27002: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 27002: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 27002: # 137 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 27002: template 27002: inline void 27002: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 27002: memory_order) 27002: { 27002: _Sp_locker __lock{__p}; 27002: __p->swap(__r); 27002: } 27002: 27002: template 27002: inline void 27002: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 27002: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 27002: 27002: template 27002: inline void 27002: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 27002: __shared_ptr<_Tp, _Lp> __r, 27002: memory_order) 27002: { 27002: _Sp_locker __lock{__p}; 27002: __p->swap(__r); 27002: } 27002: 27002: template 27002: inline void 27002: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 27002: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 27002: # 174 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 27002: template 27002: inline shared_ptr<_Tp> 27002: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 27002: memory_order) 27002: { 27002: _Sp_locker __lock{__p}; 27002: __p->swap(__r); 27002: return __r; 27002: } 27002: 27002: template 27002: inline shared_ptr<_Tp> 27002: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 27002: { 27002: return std::atomic_exchange_explicit(__p, std::move(__r), 27002: memory_order_seq_cst); 27002: } 27002: 27002: template 27002: inline __shared_ptr<_Tp, _Lp> 27002: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 27002: __shared_ptr<_Tp, _Lp> __r, 27002: memory_order) 27002: { 27002: _Sp_locker __lock{__p}; 27002: __p->swap(__r); 27002: return __r; 27002: } 27002: 27002: template 27002: inline __shared_ptr<_Tp, _Lp> 27002: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 27002: { 27002: return std::atomic_exchange_explicit(__p, std::move(__r), 27002: memory_order_seq_cst); 27002: } 27002: # 223 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 27002: template 27002: bool 27002: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 27002: shared_ptr<_Tp>* __v, 27002: shared_ptr<_Tp> __w, 27002: memory_order, 27002: memory_order) 27002: { 27002: shared_ptr<_Tp> __x; 27002: _Sp_locker __lock{__p, __v}; 27002: owner_less> __less; 27002: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 27002: { 27002: __x = std::move(*__p); 27002: *__p = std::move(__w); 27002: return true; 27002: } 27002: __x = std::move(*__v); 27002: *__v = *__p; 27002: return false; 27002: } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 27002: shared_ptr<_Tp> __w) 27002: { 27002: return std::atomic_compare_exchange_strong_explicit(__p, __v, 27002: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 27002: } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 27002: shared_ptr<_Tp>* __v, 27002: shared_ptr<_Tp> __w, 27002: memory_order __success, 27002: memory_order __failure) 27002: { 27002: return std::atomic_compare_exchange_strong_explicit(__p, __v, 27002: std::move(__w), __success, __failure); 27002: } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 27002: shared_ptr<_Tp> __w) 27002: { 27002: return std::atomic_compare_exchange_weak_explicit(__p, __v, 27002: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 27002: } 27002: 27002: template 27002: bool 27002: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 27002: __shared_ptr<_Tp, _Lp>* __v, 27002: __shared_ptr<_Tp, _Lp> __w, 27002: memory_order, 27002: memory_order) 27002: { 27002: __shared_ptr<_Tp, _Lp> __x; 27002: _Sp_locker __lock{__p, __v}; 27002: owner_less<__shared_ptr<_Tp, _Lp>> __less; 27002: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 27002: { 27002: __x = std::move(*__p); 27002: *__p = std::move(__w); 27002: return true; 27002: } 27002: __x = std::move(*__v); 27002: *__v = *__p; 27002: return false; 27002: } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 27002: __shared_ptr<_Tp, _Lp>* __v, 27002: __shared_ptr<_Tp, _Lp> __w) 27002: { 27002: return std::atomic_compare_exchange_strong_explicit(__p, __v, 27002: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 27002: } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 27002: __shared_ptr<_Tp, _Lp>* __v, 27002: __shared_ptr<_Tp, _Lp> __w, 27002: memory_order __success, 27002: memory_order __failure) 27002: { 27002: return std::atomic_compare_exchange_strong_explicit(__p, __v, 27002: std::move(__w), __success, __failure); 27002: } 27002: 27002: template 27002: inline bool 27002: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 27002: __shared_ptr<_Tp, _Lp>* __v, 27002: __shared_ptr<_Tp, _Lp> __w) 27002: { 27002: return std::atomic_compare_exchange_weak_explicit(__p, __v, 27002: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 27002: } 27002: # 796 "/usr/include/c++/12/bits/shared_ptr_atomic.h" 3 27002: 27002: } 27002: # 79 "/usr/include/c++/12/memory" 2 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/backward/auto_ptr.h" 1 3 27002: # 36 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 47 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: template 27002: struct auto_ptr_ref 27002: { 27002: _Tp1* _M_ptr; 27002: 27002: explicit 27002: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 27002: } __attribute__ ((__deprecated__)); 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: # 88 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: template 27002: class auto_ptr 27002: { 27002: private: 27002: _Tp* _M_ptr; 27002: 27002: public: 27002: 27002: typedef _Tp element_type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 27002: # 114 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 27002: # 126 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: template 27002: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 27002: # 137 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: auto_ptr& 27002: operator=(auto_ptr& __a) throw() 27002: { 27002: reset(__a.release()); 27002: return *this; 27002: } 27002: # 154 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: template 27002: auto_ptr& 27002: operator=(auto_ptr<_Tp1>& __a) throw() 27002: { 27002: reset(__a.release()); 27002: return *this; 27002: } 27002: # 172 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: ~auto_ptr() { delete _M_ptr; } 27002: # 182 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: element_type& 27002: operator*() const throw() 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) __builtin_unreachable(); } while (false); 27002: return *_M_ptr; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: element_type* 27002: operator->() const throw() 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) __builtin_unreachable(); } while (false); 27002: return _M_ptr; 27002: } 27002: # 212 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: element_type* 27002: get() const throw() { return _M_ptr; } 27002: # 226 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: element_type* 27002: release() throw() 27002: { 27002: element_type* __tmp = _M_ptr; 27002: _M_ptr = 0; 27002: return __tmp; 27002: } 27002: # 241 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: void 27002: reset(element_type* __p = 0) throw() 27002: { 27002: if (__p != _M_ptr) 27002: { 27002: delete _M_ptr; 27002: _M_ptr = __p; 27002: } 27002: } 27002: # 266 "/usr/include/c++/12/backward/auto_ptr.h" 3 27002: auto_ptr(auto_ptr_ref __ref) throw() 27002: : _M_ptr(__ref._M_ptr) { } 27002: 27002: auto_ptr& 27002: operator=(auto_ptr_ref __ref) throw() 27002: { 27002: if (__ref._M_ptr != this->get()) 27002: { 27002: delete _M_ptr; 27002: _M_ptr = __ref._M_ptr; 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: operator auto_ptr_ref<_Tp1>() throw() 27002: { return auto_ptr_ref<_Tp1>(this->release()); } 27002: 27002: template 27002: operator auto_ptr<_Tp1>() throw() 27002: { return auto_ptr<_Tp1>(this->release()); } 27002: } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); 27002: 27002: 27002: 27002: template<> 27002: class auto_ptr 27002: { 27002: public: 27002: typedef void element_type; 27002: } __attribute__ ((__deprecated__)); 27002: 27002: 27002: template<_Lock_policy _Lp> 27002: template 27002: inline 27002: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 27002: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 27002: { __r.release(); } 27002: 27002: template 27002: template 27002: inline 27002: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 27002: : _M_ptr(__r.get()), _M_refcount() 27002: { 27002: 27002: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 27002: _Tp1* __tmp = __r.get(); 27002: _M_refcount = __shared_count<_Lp>(std::move(__r)); 27002: _M_enable_shared_from_this_with(__tmp); 27002: } 27002: 27002: template 27002: template 27002: inline 27002: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 27002: : __shared_ptr<_Tp>(std::move(__r)) { } 27002: 27002: template 27002: template 27002: inline 27002: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 27002: : _M_t(__u.release(), deleter_type()) { } 27002: 27002: 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: } 27002: # 83 "/usr/include/c++/12/memory" 2 3 27002: # 91 "/usr/include/c++/12/memory" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 109 "/usr/include/c++/12/memory" 3 27002: enum class pointer_safety { relaxed, preferred, strict }; 27002: 27002: 27002: inline void 27002: declare_reachable(void*) { } 27002: 27002: 27002: template 27002: inline _Tp* 27002: undeclare_reachable(_Tp* __p) { return __p; } 27002: 27002: 27002: inline void 27002: declare_no_pointers(char*, size_t) { } 27002: 27002: 27002: inline void 27002: undeclare_no_pointers(char*, size_t) { } 27002: 27002: 27002: inline pointer_safety 27002: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 27002: 27002: 27002: 27002: } 27002: # 144 "/usr/include/c++/12/memory" 3 27002: # 1 "/usr/include/c++/12/pstl/glue_memory_defs.h" 1 3 27002: # 13 "/usr/include/c++/12/pstl/glue_memory_defs.h" 3 27002: # 1 "/usr/include/c++/12/pstl/execution_defs.h" 1 3 27002: # 15 "/usr/include/c++/12/pstl/execution_defs.h" 3 27002: namespace __pstl 27002: { 27002: namespace execution 27002: { 27002: inline namespace v1 27002: { 27002: 27002: 27002: class sequenced_policy 27002: { 27002: public: 27002: 27002: static constexpr std::false_type 27002: __allow_unsequenced() 27002: { 27002: return std::false_type{}; 27002: } 27002: static constexpr std::false_type 27002: __allow_vector() 27002: { 27002: return std::false_type{}; 27002: } 27002: static constexpr std::false_type 27002: __allow_parallel() 27002: { 27002: return std::false_type{}; 27002: } 27002: }; 27002: 27002: 27002: class parallel_policy 27002: { 27002: public: 27002: 27002: static constexpr std::false_type 27002: __allow_unsequenced() 27002: { 27002: return std::false_type{}; 27002: } 27002: static constexpr std::false_type 27002: __allow_vector() 27002: { 27002: return std::false_type{}; 27002: } 27002: static constexpr std::true_type 27002: __allow_parallel() 27002: { 27002: return std::true_type{}; 27002: } 27002: }; 27002: 27002: 27002: class parallel_unsequenced_policy 27002: { 27002: public: 27002: 27002: static constexpr std::true_type 27002: __allow_unsequenced() 27002: { 27002: return std::true_type{}; 27002: } 27002: static constexpr std::true_type 27002: __allow_vector() 27002: { 27002: return std::true_type{}; 27002: } 27002: static constexpr std::true_type 27002: __allow_parallel() 27002: { 27002: return std::true_type{}; 27002: } 27002: }; 27002: 27002: class unsequenced_policy 27002: { 27002: public: 27002: 27002: static constexpr std::true_type 27002: __allow_unsequenced() 27002: { 27002: return std::true_type{}; 27002: } 27002: static constexpr std::true_type 27002: __allow_vector() 27002: { 27002: return std::true_type{}; 27002: } 27002: static constexpr std::false_type 27002: __allow_parallel() 27002: { 27002: return std::false_type{}; 27002: } 27002: }; 27002: 27002: 27002: constexpr sequenced_policy seq{}; 27002: constexpr parallel_policy par{}; 27002: constexpr parallel_unsequenced_policy par_unseq{}; 27002: constexpr unsequenced_policy unseq{}; 27002: 27002: 27002: template 27002: struct is_execution_policy : std::false_type 27002: { 27002: }; 27002: 27002: template <> 27002: struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 27002: { 27002: }; 27002: template <> 27002: struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 27002: { 27002: }; 27002: template <> 27002: struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 27002: { 27002: }; 27002: template <> 27002: struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type 27002: { 27002: }; 27002: 27002: 27002: template 27002: constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; 27002: 27002: 27002: } 27002: } 27002: 27002: namespace __internal 27002: { 27002: template 27002: 27002: using __enable_if_execution_policy = 27002: typename std::enable_if<__pstl::execution::is_execution_policy>::value, 27002: _Tp>::type; 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: } 27002: # 14 "/usr/include/c++/12/pstl/glue_memory_defs.h" 2 3 27002: 27002: namespace std 27002: { 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 27002: 27002: } 27002: # 145 "/usr/include/c++/12/memory" 2 3 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: # 1 "/usr/include/c++/12/string" 1 3 27002: # 36 "/usr/include/c++/12/string" 3 27002: 27002: # 37 "/usr/include/c++/12/string" 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/char_traits.h" 1 3 27002: # 37 "/usr/include/c++/12/bits/char_traits.h" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/char_traits.h" 3 27002: 27002: 27002: # 1 "/usr/include/c++/12/cwchar" 1 3 27002: # 39 "/usr/include/c++/12/cwchar" 3 27002: 27002: # 40 "/usr/include/c++/12/cwchar" 3 27002: # 41 "/usr/include/c++/12/bits/char_traits.h" 2 3 27002: # 53 "/usr/include/c++/12/bits/char_traits.h" 3 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wstringop-overflow" 27002: #pragma GCC diagnostic ignored "-Wstringop-overread" 27002: #pragma GCC diagnostic ignored "-Warray-bounds" 27002: # 72 "/usr/include/c++/12/bits/char_traits.h" 3 27002: template 27002: struct _Char_types 27002: { 27002: typedef unsigned long int_type; 27002: typedef std::streampos pos_type; 27002: typedef std::streamoff off_type; 27002: typedef std::mbstate_t state_type; 27002: }; 27002: # 97 "/usr/include/c++/12/bits/char_traits.h" 3 27002: template 27002: struct char_traits 27002: { 27002: typedef _CharT char_type; 27002: typedef typename _Char_types<_CharT>::int_type int_type; 27002: typedef typename _Char_types<_CharT>::pos_type pos_type; 27002: typedef typename _Char_types<_CharT>::off_type off_type; 27002: typedef typename _Char_types<_CharT>::state_type state_type; 27002: 27002: 27002: 27002: 27002: static constexpr void 27002: assign(char_type& __c1, const char_type& __c2) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: __c1 = __c2; 27002: } 27002: 27002: static constexpr bool 27002: eq(const char_type& __c1, const char_type& __c2) 27002: { return __c1 == __c2; } 27002: 27002: static constexpr bool 27002: lt(const char_type& __c1, const char_type& __c2) 27002: { return __c1 < __c2; } 27002: 27002: static constexpr int 27002: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 27002: 27002: static constexpr std::size_t 27002: length(const char_type* __s); 27002: 27002: static constexpr const char_type* 27002: find(const char_type* __s, std::size_t __n, const char_type& __a); 27002: 27002: static char_type* 27002: move(char_type* __s1, const char_type* __s2, std::size_t __n); 27002: 27002: static char_type* 27002: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 27002: 27002: static char_type* 27002: assign(char_type* __s, std::size_t __n, char_type __a); 27002: 27002: static constexpr char_type 27002: to_char_type(const int_type& __c) 27002: { return static_cast(__c); } 27002: 27002: static constexpr int_type 27002: to_int_type(const char_type& __c) 27002: { return static_cast(__c); } 27002: 27002: static constexpr bool 27002: eq_int_type(const int_type& __c1, const int_type& __c2) 27002: { return __c1 == __c2; } 27002: 27002: static constexpr int_type 27002: eof() 27002: { return static_cast(-1); } 27002: 27002: static constexpr int_type 27002: not_eof(const int_type& __c) 27002: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 27002: }; 27002: 27002: template 27002: constexpr int 27002: char_traits<_CharT>:: 27002: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 27002: { 27002: for (std::size_t __i = 0; __i < __n; ++__i) 27002: if (lt(__s1[__i], __s2[__i])) 27002: return -1; 27002: else if (lt(__s2[__i], __s1[__i])) 27002: return 1; 27002: return 0; 27002: } 27002: 27002: template 27002: constexpr std::size_t 27002: char_traits<_CharT>:: 27002: length(const char_type* __p) 27002: { 27002: std::size_t __i = 0; 27002: while (!eq(__p[__i], char_type())) 27002: ++__i; 27002: return __i; 27002: } 27002: 27002: template 27002: constexpr const typename char_traits<_CharT>::char_type* 27002: char_traits<_CharT>:: 27002: find(const char_type* __s, std::size_t __n, const char_type& __a) 27002: { 27002: for (std::size_t __i = 0; __i < __n; ++__i) 27002: if (eq(__s[__i], __a)) 27002: return __s + __i; 27002: return 0; 27002: } 27002: 27002: template 27002: 27002: typename char_traits<_CharT>::char_type* 27002: char_traits<_CharT>:: 27002: move(char_type* __s1, const char_type* __s2, std::size_t __n) 27002: { 27002: if (__n == 0) 27002: return __s1; 27002: # 248 "/usr/include/c++/12/bits/char_traits.h" 3 27002: __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); 27002: return __s1; 27002: } 27002: 27002: template 27002: 27002: typename char_traits<_CharT>::char_type* 27002: char_traits<_CharT>:: 27002: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 27002: { 27002: # 267 "/usr/include/c++/12/bits/char_traits.h" 3 27002: __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); 27002: return __s1; 27002: } 27002: 27002: template 27002: 27002: typename char_traits<_CharT>::char_type* 27002: char_traits<_CharT>:: 27002: assign(char_type* __s, std::size_t __n, char_type __a) 27002: { 27002: # 286 "/usr/include/c++/12/bits/char_traits.h" 3 27002: if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) 27002: { 27002: unsigned char __c; 27002: __builtin_memcpy(&__c, __builtin_addressof(__a), 1); 27002: __builtin_memset(__s, __c, __n); 27002: } 27002: else 27002: { 27002: for (std::size_t __i = 0; __i < __n; ++__i) 27002: __s[__i] = __a; 27002: } 27002: return __s; 27002: } 27002: 27002: 27002: } 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 328 "/usr/include/c++/12/bits/char_traits.h" 3 27002: template 27002: struct char_traits : public __gnu_cxx::char_traits<_CharT> 27002: { }; 27002: 27002: 27002: 27002: template<> 27002: struct char_traits 27002: { 27002: typedef char char_type; 27002: typedef int int_type; 27002: typedef streampos pos_type; 27002: typedef streamoff off_type; 27002: typedef mbstate_t state_type; 27002: 27002: 27002: 27002: 27002: static constexpr void 27002: assign(char_type& __c1, const char_type& __c2) noexcept 27002: { 27002: 27002: 27002: 27002: 27002: 27002: __c1 = __c2; 27002: } 27002: 27002: static constexpr bool 27002: eq(const char_type& __c1, const char_type& __c2) noexcept 27002: { return __c1 == __c2; } 27002: 27002: static constexpr bool 27002: lt(const char_type& __c1, const char_type& __c2) noexcept 27002: { 27002: 27002: return (static_cast(__c1) 27002: < static_cast(__c2)); 27002: } 27002: 27002: static constexpr int 27002: compare(const char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: if (__n == 0) 27002: return 0; 27002: 27002: if (std::__is_constant_evaluated()) 27002: { 27002: for (size_t __i = 0; __i < __n; ++__i) 27002: if (lt(__s1[__i], __s2[__i])) 27002: return -1; 27002: else if (lt(__s2[__i], __s1[__i])) 27002: return 1; 27002: return 0; 27002: } 27002: 27002: return __builtin_memcmp(__s1, __s2, __n); 27002: } 27002: 27002: static constexpr size_t 27002: length(const char_type* __s) 27002: { 27002: 27002: if (std::__is_constant_evaluated()) 27002: return __gnu_cxx::char_traits::length(__s); 27002: 27002: return __builtin_strlen(__s); 27002: } 27002: 27002: static constexpr const char_type* 27002: find(const char_type* __s, size_t __n, const char_type& __a) 27002: { 27002: if (__n == 0) 27002: return 0; 27002: 27002: if (std::__is_constant_evaluated()) 27002: return __gnu_cxx::char_traits::find(__s, __n, __a); 27002: 27002: return static_cast(__builtin_memchr(__s, __a, __n)); 27002: } 27002: 27002: static char_type* 27002: move(char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: if (__n == 0) 27002: return __s1; 27002: 27002: 27002: 27002: 27002: return static_cast(__builtin_memmove(__s1, __s2, __n)); 27002: } 27002: 27002: static char_type* 27002: copy(char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: if (__n == 0) 27002: return __s1; 27002: 27002: 27002: 27002: 27002: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 27002: } 27002: 27002: static char_type* 27002: assign(char_type* __s, size_t __n, char_type __a) 27002: { 27002: if (__n == 0) 27002: return __s; 27002: 27002: 27002: 27002: 27002: return static_cast(__builtin_memset(__s, __a, __n)); 27002: } 27002: 27002: static constexpr char_type 27002: to_char_type(const int_type& __c) noexcept 27002: { return static_cast(__c); } 27002: 27002: 27002: 27002: static constexpr int_type 27002: to_int_type(const char_type& __c) noexcept 27002: { return static_cast(static_cast(__c)); } 27002: 27002: static constexpr bool 27002: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 27002: { return __c1 == __c2; } 27002: 27002: static constexpr int_type 27002: eof() noexcept 27002: { return static_cast(-1); } 27002: 27002: static constexpr int_type 27002: not_eof(const int_type& __c) noexcept 27002: { return (__c == eof()) ? 0 : __c; } 27002: }; 27002: 27002: 27002: 27002: 27002: template<> 27002: struct char_traits 27002: { 27002: typedef wchar_t char_type; 27002: typedef wint_t int_type; 27002: typedef streamoff off_type; 27002: typedef wstreampos pos_type; 27002: typedef mbstate_t state_type; 27002: 27002: 27002: 27002: 27002: static constexpr void 27002: assign(char_type& __c1, const char_type& __c2) noexcept 27002: { 27002: 27002: 27002: 27002: 27002: 27002: __c1 = __c2; 27002: } 27002: 27002: static constexpr bool 27002: eq(const char_type& __c1, const char_type& __c2) noexcept 27002: { return __c1 == __c2; } 27002: 27002: static constexpr bool 27002: lt(const char_type& __c1, const char_type& __c2) noexcept 27002: { return __c1 < __c2; } 27002: 27002: static constexpr int 27002: compare(const char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: if (__n == 0) 27002: return 0; 27002: 27002: if (std::__is_constant_evaluated()) 27002: return __gnu_cxx::char_traits::compare(__s1, __s2, __n); 27002: 27002: return wmemcmp(__s1, __s2, __n); 27002: } 27002: 27002: static constexpr size_t 27002: length(const char_type* __s) 27002: { 27002: 27002: if (std::__is_constant_evaluated()) 27002: return __gnu_cxx::char_traits::length(__s); 27002: 27002: return wcslen(__s); 27002: } 27002: 27002: static constexpr const char_type* 27002: find(const char_type* __s, size_t __n, const char_type& __a) 27002: { 27002: if (__n == 0) 27002: return 0; 27002: 27002: if (std::__is_constant_evaluated()) 27002: return __gnu_cxx::char_traits::find(__s, __n, __a); 27002: 27002: return wmemchr(__s, __a, __n); 27002: } 27002: 27002: static char_type* 27002: move(char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: if (__n == 0) 27002: return __s1; 27002: 27002: 27002: 27002: 27002: return wmemmove(__s1, __s2, __n); 27002: } 27002: 27002: static char_type* 27002: copy(char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: if (__n == 0) 27002: return __s1; 27002: 27002: 27002: 27002: 27002: return wmemcpy(__s1, __s2, __n); 27002: } 27002: 27002: static char_type* 27002: assign(char_type* __s, size_t __n, char_type __a) 27002: { 27002: if (__n == 0) 27002: return __s; 27002: 27002: 27002: 27002: 27002: return wmemset(__s, __a, __n); 27002: } 27002: 27002: static constexpr char_type 27002: to_char_type(const int_type& __c) noexcept 27002: { return char_type(__c); } 27002: 27002: static constexpr int_type 27002: to_int_type(const char_type& __c) noexcept 27002: { return int_type(__c); } 27002: 27002: static constexpr bool 27002: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 27002: { return __c1 == __c2; } 27002: 27002: static constexpr int_type 27002: eof() noexcept 27002: { return static_cast((0xffffffffu)); } 27002: 27002: static constexpr int_type 27002: not_eof(const int_type& __c) noexcept 27002: { return eq_int_type(__c, eof()) ? 0 : __c; } 27002: }; 27002: # 726 "/usr/include/c++/12/bits/char_traits.h" 3 27002: 27002: } 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cstdint" 1 3 27002: # 32 "/usr/include/c++/12/cstdint" 3 27002: 27002: # 33 "/usr/include/c++/12/cstdint" 3 27002: # 44 "/usr/include/c++/12/cstdint" 3 27002: namespace std 27002: { 27002: 27002: using ::int8_t; 27002: using ::int16_t; 27002: using ::int32_t; 27002: using ::int64_t; 27002: 27002: using ::int_fast8_t; 27002: using ::int_fast16_t; 27002: using ::int_fast32_t; 27002: using ::int_fast64_t; 27002: 27002: using ::int_least8_t; 27002: using ::int_least16_t; 27002: using ::int_least32_t; 27002: using ::int_least64_t; 27002: 27002: using ::intmax_t; 27002: using ::intptr_t; 27002: 27002: using ::uint8_t; 27002: using ::uint16_t; 27002: using ::uint32_t; 27002: using ::uint64_t; 27002: 27002: using ::uint_fast8_t; 27002: using ::uint_fast16_t; 27002: using ::uint_fast32_t; 27002: using ::uint_fast64_t; 27002: 27002: using ::uint_least8_t; 27002: using ::uint_least16_t; 27002: using ::uint_least32_t; 27002: using ::uint_least64_t; 27002: 27002: using ::uintmax_t; 27002: using ::uintptr_t; 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 732 "/usr/include/c++/12/bits/char_traits.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template<> 27002: struct char_traits 27002: { 27002: typedef char16_t char_type; 27002: 27002: typedef uint_least16_t int_type; 27002: 27002: 27002: 27002: 27002: 27002: typedef streamoff off_type; 27002: typedef u16streampos pos_type; 27002: typedef mbstate_t state_type; 27002: 27002: 27002: 27002: 27002: static constexpr void 27002: assign(char_type& __c1, const char_type& __c2) noexcept 27002: { 27002: 27002: 27002: 27002: 27002: 27002: __c1 = __c2; 27002: } 27002: 27002: static constexpr bool 27002: eq(const char_type& __c1, const char_type& __c2) noexcept 27002: { return __c1 == __c2; } 27002: 27002: static constexpr bool 27002: lt(const char_type& __c1, const char_type& __c2) noexcept 27002: { return __c1 < __c2; } 27002: 27002: static constexpr int 27002: compare(const char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: for (size_t __i = 0; __i < __n; ++__i) 27002: if (lt(__s1[__i], __s2[__i])) 27002: return -1; 27002: else if (lt(__s2[__i], __s1[__i])) 27002: return 1; 27002: return 0; 27002: } 27002: 27002: static constexpr size_t 27002: length(const char_type* __s) 27002: { 27002: size_t __i = 0; 27002: while (!eq(__s[__i], char_type())) 27002: ++__i; 27002: return __i; 27002: } 27002: 27002: static constexpr const char_type* 27002: find(const char_type* __s, size_t __n, const char_type& __a) 27002: { 27002: for (size_t __i = 0; __i < __n; ++__i) 27002: if (eq(__s[__i], __a)) 27002: return __s + __i; 27002: return 0; 27002: } 27002: 27002: static char_type* 27002: move(char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: if (__n == 0) 27002: return __s1; 27002: 27002: 27002: 27002: 27002: return (static_cast 27002: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 27002: } 27002: 27002: static char_type* 27002: copy(char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: if (__n == 0) 27002: return __s1; 27002: 27002: 27002: 27002: 27002: return (static_cast 27002: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 27002: } 27002: 27002: static char_type* 27002: assign(char_type* __s, size_t __n, char_type __a) 27002: { 27002: for (size_t __i = 0; __i < __n; ++__i) 27002: assign(__s[__i], __a); 27002: return __s; 27002: } 27002: 27002: static constexpr char_type 27002: to_char_type(const int_type& __c) noexcept 27002: { return char_type(__c); } 27002: 27002: static constexpr int_type 27002: to_int_type(const char_type& __c) noexcept 27002: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 27002: 27002: static constexpr bool 27002: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 27002: { return __c1 == __c2; } 27002: 27002: static constexpr int_type 27002: eof() noexcept 27002: { return static_cast(-1); } 27002: 27002: static constexpr int_type 27002: not_eof(const int_type& __c) noexcept 27002: { return eq_int_type(__c, eof()) ? 0 : __c; } 27002: }; 27002: 27002: template<> 27002: struct char_traits 27002: { 27002: typedef char32_t char_type; 27002: 27002: typedef uint_least32_t int_type; 27002: 27002: 27002: 27002: 27002: 27002: typedef streamoff off_type; 27002: typedef u32streampos pos_type; 27002: typedef mbstate_t state_type; 27002: 27002: 27002: 27002: 27002: static constexpr void 27002: assign(char_type& __c1, const char_type& __c2) noexcept 27002: { 27002: 27002: 27002: 27002: 27002: 27002: __c1 = __c2; 27002: } 27002: 27002: static constexpr bool 27002: eq(const char_type& __c1, const char_type& __c2) noexcept 27002: { return __c1 == __c2; } 27002: 27002: static constexpr bool 27002: lt(const char_type& __c1, const char_type& __c2) noexcept 27002: { return __c1 < __c2; } 27002: 27002: static constexpr int 27002: compare(const char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: for (size_t __i = 0; __i < __n; ++__i) 27002: if (lt(__s1[__i], __s2[__i])) 27002: return -1; 27002: else if (lt(__s2[__i], __s1[__i])) 27002: return 1; 27002: return 0; 27002: } 27002: 27002: static constexpr size_t 27002: length(const char_type* __s) 27002: { 27002: size_t __i = 0; 27002: while (!eq(__s[__i], char_type())) 27002: ++__i; 27002: return __i; 27002: } 27002: 27002: static constexpr const char_type* 27002: find(const char_type* __s, size_t __n, const char_type& __a) 27002: { 27002: for (size_t __i = 0; __i < __n; ++__i) 27002: if (eq(__s[__i], __a)) 27002: return __s + __i; 27002: return 0; 27002: } 27002: 27002: static char_type* 27002: move(char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: if (__n == 0) 27002: return __s1; 27002: 27002: 27002: 27002: 27002: return (static_cast 27002: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 27002: } 27002: 27002: static char_type* 27002: copy(char_type* __s1, const char_type* __s2, size_t __n) 27002: { 27002: if (__n == 0) 27002: return __s1; 27002: 27002: 27002: 27002: 27002: return (static_cast 27002: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 27002: } 27002: 27002: static char_type* 27002: assign(char_type* __s, size_t __n, char_type __a) 27002: { 27002: for (size_t __i = 0; __i < __n; ++__i) 27002: assign(__s[__i], __a); 27002: return __s; 27002: } 27002: 27002: static constexpr char_type 27002: to_char_type(const int_type& __c) noexcept 27002: { return char_type(__c); } 27002: 27002: static constexpr int_type 27002: to_int_type(const char_type& __c) noexcept 27002: { return int_type(__c); } 27002: 27002: static constexpr bool 27002: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 27002: { return __c1 == __c2; } 27002: 27002: static constexpr int_type 27002: eof() noexcept 27002: { return static_cast(-1); } 27002: 27002: static constexpr int_type 27002: not_eof(const int_type& __c) noexcept 27002: { return eq_int_type(__c, eof()) ? 0 : __c; } 27002: }; 27002: # 998 "/usr/include/c++/12/bits/char_traits.h" 3 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: } 27002: # 41 "/usr/include/c++/12/string" 2 3 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/localefwd.h" 1 3 27002: # 37 "/usr/include/c++/12/bits/localefwd.h" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/localefwd.h" 3 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 1 3 27002: # 39 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 3 27002: 27002: # 40 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 3 27002: 27002: # 1 "/usr/include/c++/12/clocale" 1 3 27002: # 39 "/usr/include/c++/12/clocale" 3 27002: 27002: # 40 "/usr/include/c++/12/clocale" 3 27002: 27002: 27002: # 1 "/usr/include/locale.h" 1 3 4 27002: # 28 "/usr/include/locale.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 29 "/usr/include/locale.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/locale.h" 1 3 4 27002: # 30 "/usr/include/locale.h" 2 3 4 27002: 27002: extern "C" { 27002: # 51 "/usr/include/locale.h" 3 4 27002: struct lconv 27002: { 27002: 27002: 27002: char *decimal_point; 27002: char *thousands_sep; 27002: 27002: 27002: 27002: 27002: 27002: char *grouping; 27002: 27002: 27002: 27002: 27002: 27002: char *int_curr_symbol; 27002: char *currency_symbol; 27002: char *mon_decimal_point; 27002: char *mon_thousands_sep; 27002: char *mon_grouping; 27002: char *positive_sign; 27002: char *negative_sign; 27002: char int_frac_digits; 27002: char frac_digits; 27002: 27002: char p_cs_precedes; 27002: 27002: char p_sep_by_space; 27002: 27002: char n_cs_precedes; 27002: 27002: char n_sep_by_space; 27002: 27002: 27002: 27002: 27002: 27002: 27002: char p_sign_posn; 27002: char n_sign_posn; 27002: 27002: 27002: char int_p_cs_precedes; 27002: 27002: char int_p_sep_by_space; 27002: 27002: char int_n_cs_precedes; 27002: 27002: char int_n_sep_by_space; 27002: 27002: 27002: 27002: 27002: 27002: 27002: char int_p_sign_posn; 27002: char int_n_sign_posn; 27002: # 118 "/usr/include/locale.h" 3 4 27002: }; 27002: 27002: 27002: 27002: extern char *setlocale (int __category, const char *__locale) noexcept (true); 27002: 27002: 27002: extern struct lconv *localeconv (void) noexcept (true); 27002: # 141 "/usr/include/locale.h" 3 4 27002: extern locale_t newlocale (int __category_mask, const char *__locale, 27002: locale_t __base) noexcept (true); 27002: # 176 "/usr/include/locale.h" 3 4 27002: extern locale_t duplocale (locale_t __dataset) noexcept (true); 27002: 27002: 27002: 27002: extern void freelocale (locale_t __dataset) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern locale_t uselocale (locale_t __dataset) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 43 "/usr/include/c++/12/clocale" 2 3 27002: # 51 "/usr/include/c++/12/clocale" 3 27002: namespace std 27002: { 27002: using ::lconv; 27002: using ::setlocale; 27002: using ::localeconv; 27002: } 27002: # 42 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: extern "C" __typeof(uselocale) __uselocale; 27002: 27002: 27002: } 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: typedef __locale_t __c_locale; 27002: # 73 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 3 27002: inline int 27002: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 27002: char* __out, 27002: const int __size __attribute__ ((__unused__)), 27002: const char* __fmt, ...) 27002: { 27002: 27002: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 27002: # 93 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++locale.h" 3 27002: __builtin_va_list __args; 27002: __builtin_va_start(__args, __fmt); 27002: 27002: 27002: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 27002: 27002: 27002: 27002: 27002: __builtin_va_end(__args); 27002: 27002: 27002: __gnu_cxx::__uselocale(__old); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: return __ret; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 41 "/usr/include/c++/12/bits/localefwd.h" 2 3 27002: 27002: # 1 "/usr/include/c++/12/cctype" 1 3 27002: # 39 "/usr/include/c++/12/cctype" 3 27002: 27002: # 40 "/usr/include/c++/12/cctype" 3 27002: 27002: 27002: # 1 "/usr/include/ctype.h" 1 3 4 27002: # 28 "/usr/include/ctype.h" 3 4 27002: extern "C" { 27002: # 46 "/usr/include/ctype.h" 3 4 27002: enum 27002: { 27002: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 27002: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 27002: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 27002: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 27002: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 27002: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 27002: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 27002: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 27002: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 27002: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 27002: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 27002: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 27002: }; 27002: # 79 "/usr/include/ctype.h" 3 4 27002: extern const unsigned short int **__ctype_b_loc (void) 27002: noexcept (true) __attribute__ ((__const__)); 27002: extern const __int32_t **__ctype_tolower_loc (void) 27002: noexcept (true) __attribute__ ((__const__)); 27002: extern const __int32_t **__ctype_toupper_loc (void) 27002: noexcept (true) __attribute__ ((__const__)); 27002: # 108 "/usr/include/ctype.h" 3 4 27002: extern int isalnum (int) noexcept (true); 27002: extern int isalpha (int) noexcept (true); 27002: extern int iscntrl (int) noexcept (true); 27002: extern int isdigit (int) noexcept (true); 27002: extern int islower (int) noexcept (true); 27002: extern int isgraph (int) noexcept (true); 27002: extern int isprint (int) noexcept (true); 27002: extern int ispunct (int) noexcept (true); 27002: extern int isspace (int) noexcept (true); 27002: extern int isupper (int) noexcept (true); 27002: extern int isxdigit (int) noexcept (true); 27002: 27002: 27002: 27002: extern int tolower (int __c) noexcept (true); 27002: 27002: 27002: extern int toupper (int __c) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int isblank (int) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int isctype (int __c, int __mask) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int isascii (int __c) noexcept (true); 27002: 27002: 27002: 27002: extern int toascii (int __c) noexcept (true); 27002: 27002: 27002: 27002: extern int _toupper (int) noexcept (true); 27002: extern int _tolower (int) noexcept (true); 27002: # 251 "/usr/include/ctype.h" 3 4 27002: extern int isalnum_l (int, locale_t) noexcept (true); 27002: extern int isalpha_l (int, locale_t) noexcept (true); 27002: extern int iscntrl_l (int, locale_t) noexcept (true); 27002: extern int isdigit_l (int, locale_t) noexcept (true); 27002: extern int islower_l (int, locale_t) noexcept (true); 27002: extern int isgraph_l (int, locale_t) noexcept (true); 27002: extern int isprint_l (int, locale_t) noexcept (true); 27002: extern int ispunct_l (int, locale_t) noexcept (true); 27002: extern int isspace_l (int, locale_t) noexcept (true); 27002: extern int isupper_l (int, locale_t) noexcept (true); 27002: extern int isxdigit_l (int, locale_t) noexcept (true); 27002: 27002: extern int isblank_l (int, locale_t) noexcept (true); 27002: 27002: 27002: 27002: extern int __tolower_l (int __c, locale_t __l) noexcept (true); 27002: extern int tolower_l (int __c, locale_t __l) noexcept (true); 27002: 27002: 27002: extern int __toupper_l (int __c, locale_t __l) noexcept (true); 27002: extern int toupper_l (int __c, locale_t __l) noexcept (true); 27002: # 327 "/usr/include/ctype.h" 3 4 27002: } 27002: # 43 "/usr/include/c++/12/cctype" 2 3 27002: # 62 "/usr/include/c++/12/cctype" 3 27002: namespace std 27002: { 27002: using ::isalnum; 27002: using ::isalpha; 27002: using ::iscntrl; 27002: using ::isdigit; 27002: using ::isgraph; 27002: using ::islower; 27002: using ::isprint; 27002: using ::ispunct; 27002: using ::isspace; 27002: using ::isupper; 27002: using ::isxdigit; 27002: using ::tolower; 27002: using ::toupper; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std 27002: { 27002: using ::isblank; 27002: } 27002: # 43 "/usr/include/c++/12/bits/localefwd.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 55 "/usr/include/c++/12/bits/localefwd.h" 3 27002: class locale; 27002: 27002: template 27002: bool 27002: has_facet(const locale&) throw(); 27002: 27002: template 27002: const _Facet& 27002: use_facet(const locale&); 27002: 27002: 27002: template 27002: bool 27002: isspace(_CharT, const locale&); 27002: 27002: template 27002: bool 27002: isprint(_CharT, const locale&); 27002: 27002: template 27002: bool 27002: iscntrl(_CharT, const locale&); 27002: 27002: template 27002: bool 27002: isupper(_CharT, const locale&); 27002: 27002: template 27002: bool 27002: islower(_CharT, const locale&); 27002: 27002: template 27002: bool 27002: isalpha(_CharT, const locale&); 27002: 27002: template 27002: bool 27002: isdigit(_CharT, const locale&); 27002: 27002: template 27002: bool 27002: ispunct(_CharT, const locale&); 27002: 27002: template 27002: bool 27002: isxdigit(_CharT, const locale&); 27002: 27002: template 27002: bool 27002: isalnum(_CharT, const locale&); 27002: 27002: template 27002: bool 27002: isgraph(_CharT, const locale&); 27002: 27002: 27002: template 27002: bool 27002: isblank(_CharT, const locale&); 27002: 27002: 27002: template 27002: _CharT 27002: toupper(_CharT, const locale&); 27002: 27002: template 27002: _CharT 27002: tolower(_CharT, const locale&); 27002: 27002: 27002: struct ctype_base; 27002: template 27002: class ctype; 27002: template<> class ctype; 27002: 27002: template<> class ctype; 27002: 27002: template 27002: class ctype_byname; 27002: 27002: 27002: class codecvt_base; 27002: template 27002: class codecvt; 27002: template<> class codecvt; 27002: 27002: template<> class codecvt; 27002: 27002: 27002: template<> class codecvt; 27002: template<> class codecvt; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class codecvt_byname; 27002: 27002: 27002: 27002: template > 27002: class num_get; 27002: template > 27002: class num_put; 27002: 27002: namespace __cxx11 { 27002: template class numpunct; 27002: template class numpunct_byname; 27002: } 27002: 27002: namespace __cxx11 { 27002: 27002: template 27002: class collate; 27002: template 27002: class collate_byname; 27002: } 27002: 27002: 27002: class time_base; 27002: namespace __cxx11 { 27002: template > 27002: class time_get; 27002: template > 27002: class time_get_byname; 27002: } 27002: template > 27002: class time_put; 27002: template > 27002: class time_put_byname; 27002: 27002: 27002: class money_base; 27002: namespace __cxx11 { 27002: template > 27002: class money_get; 27002: template > 27002: class money_put; 27002: } 27002: namespace __cxx11 { 27002: template 27002: class moneypunct; 27002: template 27002: class moneypunct_byname; 27002: } 27002: 27002: 27002: struct messages_base; 27002: namespace __cxx11 { 27002: template 27002: class messages; 27002: template 27002: class messages_byname; 27002: } 27002: 27002: 27002: } 27002: # 44 "/usr/include/c++/12/string" 2 3 27002: # 1 "/usr/include/c++/12/bits/ostream_insert.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/ostream_insert.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/ostream_insert.h" 3 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/cxxabi_forced.h" 1 3 27002: # 34 "/usr/include/c++/12/bits/cxxabi_forced.h" 3 27002: 27002: # 35 "/usr/include/c++/12/bits/cxxabi_forced.h" 3 27002: 27002: #pragma GCC visibility push(default) 27002: 27002: 27002: namespace __cxxabiv1 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class __forced_unwind 27002: { 27002: virtual ~__forced_unwind() throw(); 27002: 27002: 27002: virtual void __pure_dummy() = 0; 27002: }; 27002: } 27002: 27002: 27002: #pragma GCC visibility pop 27002: # 37 "/usr/include/c++/12/bits/ostream_insert.h" 2 3 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: inline void 27002: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 27002: const _CharT* __s, streamsize __n) 27002: { 27002: typedef basic_ostream<_CharT, _Traits> __ostream_type; 27002: typedef typename __ostream_type::ios_base __ios_base; 27002: 27002: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 27002: if (__put != __n) 27002: __out.setstate(__ios_base::badbit); 27002: } 27002: 27002: template 27002: inline void 27002: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 27002: { 27002: typedef basic_ostream<_CharT, _Traits> __ostream_type; 27002: typedef typename __ostream_type::ios_base __ios_base; 27002: 27002: const _CharT __c = __out.fill(); 27002: for (; __n > 0; --__n) 27002: { 27002: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 27002: if (_Traits::eq_int_type(__put, _Traits::eof())) 27002: { 27002: __out.setstate(__ios_base::badbit); 27002: break; 27002: } 27002: } 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 27002: const _CharT* __s, streamsize __n) 27002: { 27002: typedef basic_ostream<_CharT, _Traits> __ostream_type; 27002: typedef typename __ostream_type::ios_base __ios_base; 27002: 27002: typename __ostream_type::sentry __cerb(__out); 27002: if (__cerb) 27002: { 27002: try 27002: { 27002: const streamsize __w = __out.width(); 27002: if (__w > __n) 27002: { 27002: const bool __left = ((__out.flags() 27002: & __ios_base::adjustfield) 27002: == __ios_base::left); 27002: if (!__left) 27002: __ostream_fill(__out, __w - __n); 27002: if (__out.good()) 27002: __ostream_write(__out, __s, __n); 27002: if (__left && __out.good()) 27002: __ostream_fill(__out, __w - __n); 27002: } 27002: else 27002: __ostream_write(__out, __s, __n); 27002: __out.width(0); 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: __out._M_setstate(__ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { __out._M_setstate(__ios_base::badbit); } 27002: } 27002: return __out; 27002: } 27002: 27002: 27002: 27002: 27002: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 27002: 27002: 27002: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 27002: streamsize); 27002: 27002: 27002: 27002: 27002: } 27002: # 45 "/usr/include/c++/12/string" 2 3 27002: # 53 "/usr/include/c++/12/string" 3 27002: # 1 "/usr/include/c++/12/bits/basic_string.h" 1 3 27002: # 37 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/basic_string.h" 3 27002: # 47 "/usr/include/c++/12/bits/basic_string.h" 3 27002: # 1 "/usr/include/c++/12/string_view" 1 3 27002: # 36 "/usr/include/c++/12/string_view" 3 27002: 27002: # 37 "/usr/include/c++/12/string_view" 3 27002: # 53 "/usr/include/c++/12/string_view" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: constexpr size_t 27002: __sv_check(size_t __size, size_t __pos, const char* __s) 27002: { 27002: if (__pos > __size) 27002: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") 27002: , __s, __pos, __size); 27002: return __pos; 27002: } 27002: 27002: 27002: 27002: constexpr size_t 27002: __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept 27002: { 27002: const bool __testoff = __off < __size - __pos; 27002: return __testoff ? __off : __size - __pos; 27002: } 27002: # 99 "/usr/include/c++/12/string_view" 3 27002: template> 27002: class basic_string_view 27002: { 27002: static_assert(!is_array_v<_CharT>); 27002: static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); 27002: static_assert(is_same_v<_CharT, typename _Traits::char_type>); 27002: 27002: public: 27002: 27002: 27002: using traits_type = _Traits; 27002: using value_type = _CharT; 27002: using pointer = value_type*; 27002: using const_pointer = const value_type*; 27002: using reference = value_type&; 27002: using const_reference = const value_type&; 27002: using const_iterator = const value_type*; 27002: using iterator = const_iterator; 27002: using const_reverse_iterator = std::reverse_iterator; 27002: using reverse_iterator = const_reverse_iterator; 27002: using size_type = size_t; 27002: using difference_type = ptrdiff_t; 27002: static constexpr size_type npos = size_type(-1); 27002: 27002: 27002: 27002: constexpr 27002: basic_string_view() noexcept 27002: : _M_len{0}, _M_str{nullptr} 27002: { } 27002: 27002: constexpr basic_string_view(const basic_string_view&) noexcept = default; 27002: 27002: __attribute__((__nonnull__)) constexpr 27002: basic_string_view(const _CharT* __str) noexcept 27002: : _M_len{traits_type::length(__str)}, 27002: _M_str{__str} 27002: { } 27002: 27002: constexpr 27002: basic_string_view(const _CharT* __str, size_type __len) noexcept 27002: : _M_len{__len}, _M_str{__str} 27002: { } 27002: # 176 "/usr/include/c++/12/string_view" 3 27002: constexpr basic_string_view& 27002: operator=(const basic_string_view&) noexcept = default; 27002: 27002: 27002: 27002: constexpr const_iterator 27002: begin() const noexcept 27002: { return this->_M_str; } 27002: 27002: constexpr const_iterator 27002: end() const noexcept 27002: { return this->_M_str + this->_M_len; } 27002: 27002: constexpr const_iterator 27002: cbegin() const noexcept 27002: { return this->_M_str; } 27002: 27002: constexpr const_iterator 27002: cend() const noexcept 27002: { return this->_M_str + this->_M_len; } 27002: 27002: constexpr const_reverse_iterator 27002: rbegin() const noexcept 27002: { return const_reverse_iterator(this->end()); } 27002: 27002: constexpr const_reverse_iterator 27002: rend() const noexcept 27002: { return const_reverse_iterator(this->begin()); } 27002: 27002: constexpr const_reverse_iterator 27002: crbegin() const noexcept 27002: { return const_reverse_iterator(this->end()); } 27002: 27002: constexpr const_reverse_iterator 27002: crend() const noexcept 27002: { return const_reverse_iterator(this->begin()); } 27002: 27002: 27002: 27002: constexpr size_type 27002: size() const noexcept 27002: { return this->_M_len; } 27002: 27002: constexpr size_type 27002: length() const noexcept 27002: { return _M_len; } 27002: 27002: constexpr size_type 27002: max_size() const noexcept 27002: { 27002: return (npos - sizeof(size_type) - sizeof(void*)) 27002: / sizeof(value_type) / 4; 27002: } 27002: 27002: [[nodiscard]] constexpr bool 27002: empty() const noexcept 27002: { return this->_M_len == 0; } 27002: 27002: 27002: 27002: constexpr const_reference 27002: operator[](size_type __pos) const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__pos < this->_M_len)) __builtin_unreachable(); } while (false); 27002: return *(this->_M_str + __pos); 27002: } 27002: 27002: constexpr const_reference 27002: at(size_type __pos) const 27002: { 27002: if (__pos >= _M_len) 27002: __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") 27002: 27002: , __pos, this->size()); 27002: return *(this->_M_str + __pos); 27002: } 27002: 27002: constexpr const_reference 27002: front() const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) __builtin_unreachable(); } while (false); 27002: return *this->_M_str; 27002: } 27002: 27002: constexpr const_reference 27002: back() const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) __builtin_unreachable(); } while (false); 27002: return *(this->_M_str + this->_M_len - 1); 27002: } 27002: 27002: constexpr const_pointer 27002: data() const noexcept 27002: { return this->_M_str; } 27002: 27002: 27002: 27002: constexpr void 27002: remove_prefix(size_type __n) noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) __builtin_unreachable(); } while (false); 27002: this->_M_str += __n; 27002: this->_M_len -= __n; 27002: } 27002: 27002: constexpr void 27002: remove_suffix(size_type __n) noexcept 27002: { this->_M_len -= __n; } 27002: 27002: constexpr void 27002: swap(basic_string_view& __sv) noexcept 27002: { 27002: auto __tmp = *this; 27002: *this = __sv; 27002: __sv = __tmp; 27002: } 27002: 27002: 27002: 27002: 27002: size_type 27002: copy(_CharT* __str, size_type __n, size_type __pos = 0) const 27002: { 27002: ; 27002: __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); 27002: const size_type __rlen = std::min(__n, _M_len - __pos); 27002: 27002: 27002: traits_type::copy(__str, data() + __pos, __rlen); 27002: return __rlen; 27002: } 27002: 27002: constexpr basic_string_view 27002: substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) 27002: { 27002: __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); 27002: const size_type __rlen = std::min(__n, _M_len - __pos); 27002: return basic_string_view{_M_str + __pos, __rlen}; 27002: } 27002: 27002: constexpr int 27002: compare(basic_string_view __str) const noexcept 27002: { 27002: const size_type __rlen = std::min(this->_M_len, __str._M_len); 27002: int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); 27002: if (__ret == 0) 27002: __ret = _S_compare(this->_M_len, __str._M_len); 27002: return __ret; 27002: } 27002: 27002: constexpr int 27002: compare(size_type __pos1, size_type __n1, basic_string_view __str) const 27002: { return this->substr(__pos1, __n1).compare(__str); } 27002: 27002: constexpr int 27002: compare(size_type __pos1, size_type __n1, 27002: basic_string_view __str, size_type __pos2, size_type __n2) const 27002: { 27002: return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); 27002: } 27002: 27002: __attribute__((__nonnull__)) constexpr int 27002: compare(const _CharT* __str) const noexcept 27002: { return this->compare(basic_string_view{__str}); } 27002: 27002: __attribute__((__nonnull__)) constexpr int 27002: compare(size_type __pos1, size_type __n1, const _CharT* __str) const 27002: { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } 27002: 27002: constexpr int 27002: compare(size_type __pos1, size_type __n1, 27002: const _CharT* __str, size_type __n2) const noexcept(false) 27002: { 27002: return this->substr(__pos1, __n1) 27002: .compare(basic_string_view(__str, __n2)); 27002: } 27002: # 402 "/usr/include/c++/12/string_view" 3 27002: constexpr size_type 27002: find(basic_string_view __str, size_type __pos = 0) const noexcept 27002: { return this->find(__str._M_str, __pos, __str._M_len); } 27002: 27002: constexpr size_type 27002: find(_CharT __c, size_type __pos = 0) const noexcept; 27002: 27002: constexpr size_type 27002: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 27002: 27002: __attribute__((__nonnull__)) constexpr size_type 27002: find(const _CharT* __str, size_type __pos = 0) const noexcept 27002: { return this->find(__str, __pos, traits_type::length(__str)); } 27002: 27002: constexpr size_type 27002: rfind(basic_string_view __str, size_type __pos = npos) const noexcept 27002: { return this->rfind(__str._M_str, __pos, __str._M_len); } 27002: 27002: constexpr size_type 27002: rfind(_CharT __c, size_type __pos = npos) const noexcept; 27002: 27002: constexpr size_type 27002: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 27002: 27002: __attribute__((__nonnull__)) constexpr size_type 27002: rfind(const _CharT* __str, size_type __pos = npos) const noexcept 27002: { return this->rfind(__str, __pos, traits_type::length(__str)); } 27002: 27002: constexpr size_type 27002: find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept 27002: { return this->find_first_of(__str._M_str, __pos, __str._M_len); } 27002: 27002: constexpr size_type 27002: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 27002: { return this->find(__c, __pos); } 27002: 27002: constexpr size_type 27002: find_first_of(const _CharT* __str, size_type __pos, 27002: size_type __n) const noexcept; 27002: 27002: __attribute__((__nonnull__)) constexpr size_type 27002: find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept 27002: { return this->find_first_of(__str, __pos, traits_type::length(__str)); } 27002: 27002: constexpr size_type 27002: find_last_of(basic_string_view __str, 27002: size_type __pos = npos) const noexcept 27002: { return this->find_last_of(__str._M_str, __pos, __str._M_len); } 27002: 27002: constexpr size_type 27002: find_last_of(_CharT __c, size_type __pos=npos) const noexcept 27002: { return this->rfind(__c, __pos); } 27002: 27002: constexpr size_type 27002: find_last_of(const _CharT* __str, size_type __pos, 27002: size_type __n) const noexcept; 27002: 27002: __attribute__((__nonnull__)) constexpr size_type 27002: find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept 27002: { return this->find_last_of(__str, __pos, traits_type::length(__str)); } 27002: 27002: constexpr size_type 27002: find_first_not_of(basic_string_view __str, 27002: size_type __pos = 0) const noexcept 27002: { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } 27002: 27002: constexpr size_type 27002: find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; 27002: 27002: constexpr size_type 27002: find_first_not_of(const _CharT* __str, 27002: size_type __pos, size_type __n) const noexcept; 27002: 27002: __attribute__((__nonnull__)) constexpr size_type 27002: find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept 27002: { 27002: return this->find_first_not_of(__str, __pos, 27002: traits_type::length(__str)); 27002: } 27002: 27002: constexpr size_type 27002: find_last_not_of(basic_string_view __str, 27002: size_type __pos = npos) const noexcept 27002: { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } 27002: 27002: constexpr size_type 27002: find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; 27002: 27002: constexpr size_type 27002: find_last_not_of(const _CharT* __str, 27002: size_type __pos, size_type __n) const noexcept; 27002: 27002: __attribute__((__nonnull__)) constexpr size_type 27002: find_last_not_of(const _CharT* __str, 27002: size_type __pos = npos) const noexcept 27002: { 27002: return this->find_last_not_of(__str, __pos, 27002: traits_type::length(__str)); 27002: } 27002: 27002: private: 27002: 27002: static constexpr int 27002: _S_compare(size_type __n1, size_type __n2) noexcept 27002: { 27002: using __limits = __gnu_cxx::__int_traits; 27002: const difference_type __diff = __n1 - __n2; 27002: if (__diff > __limits::__max) 27002: return __limits::__max; 27002: if (__diff < __limits::__min) 27002: return __limits::__min; 27002: return static_cast(__diff); 27002: } 27002: 27002: size_t _M_len; 27002: const _CharT* _M_str; 27002: }; 27002: # 538 "/usr/include/c++/12/string_view" 3 27002: template 27002: constexpr bool 27002: operator==(basic_string_view<_CharT, _Traits> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 27002: 27002: template 27002: constexpr bool 27002: operator==(basic_string_view<_CharT, _Traits> __x, 27002: __type_identity_t> __y) 27002: noexcept 27002: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 27002: # 567 "/usr/include/c++/12/string_view" 3 27002: template 27002: constexpr bool 27002: operator==(__type_identity_t> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 27002: 27002: template 27002: constexpr bool 27002: operator!=(basic_string_view<_CharT, _Traits> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return !(__x == __y); } 27002: 27002: template 27002: constexpr bool 27002: operator!=(basic_string_view<_CharT, _Traits> __x, 27002: __type_identity_t> __y) 27002: noexcept 27002: { return !(__x == __y); } 27002: 27002: template 27002: constexpr bool 27002: operator!=(__type_identity_t> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return !(__x == __y); } 27002: 27002: template 27002: constexpr bool 27002: operator< (basic_string_view<_CharT, _Traits> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return __x.compare(__y) < 0; } 27002: 27002: template 27002: constexpr bool 27002: operator< (basic_string_view<_CharT, _Traits> __x, 27002: __type_identity_t> __y) 27002: noexcept 27002: { return __x.compare(__y) < 0; } 27002: 27002: template 27002: constexpr bool 27002: operator< (__type_identity_t> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return __x.compare(__y) < 0; } 27002: 27002: template 27002: constexpr bool 27002: operator> (basic_string_view<_CharT, _Traits> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return __x.compare(__y) > 0; } 27002: 27002: template 27002: constexpr bool 27002: operator> (basic_string_view<_CharT, _Traits> __x, 27002: __type_identity_t> __y) 27002: noexcept 27002: { return __x.compare(__y) > 0; } 27002: 27002: template 27002: constexpr bool 27002: operator> (__type_identity_t> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return __x.compare(__y) > 0; } 27002: 27002: template 27002: constexpr bool 27002: operator<=(basic_string_view<_CharT, _Traits> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return __x.compare(__y) <= 0; } 27002: 27002: template 27002: constexpr bool 27002: operator<=(basic_string_view<_CharT, _Traits> __x, 27002: __type_identity_t> __y) 27002: noexcept 27002: { return __x.compare(__y) <= 0; } 27002: 27002: template 27002: constexpr bool 27002: operator<=(__type_identity_t> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return __x.compare(__y) <= 0; } 27002: 27002: template 27002: constexpr bool 27002: operator>=(basic_string_view<_CharT, _Traits> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return __x.compare(__y) >= 0; } 27002: 27002: template 27002: constexpr bool 27002: operator>=(basic_string_view<_CharT, _Traits> __x, 27002: __type_identity_t> __y) 27002: noexcept 27002: { return __x.compare(__y) >= 0; } 27002: 27002: template 27002: constexpr bool 27002: operator>=(__type_identity_t> __x, 27002: basic_string_view<_CharT, _Traits> __y) noexcept 27002: { return __x.compare(__y) >= 0; } 27002: 27002: 27002: 27002: template 27002: inline basic_ostream<_CharT, _Traits>& 27002: operator<<(basic_ostream<_CharT, _Traits>& __os, 27002: basic_string_view<_CharT,_Traits> __str) 27002: { return __ostream_insert(__os, __str.data(), __str.size()); } 27002: 27002: 27002: 27002: 27002: using string_view = basic_string_view; 27002: using wstring_view = basic_string_view; 27002: 27002: 27002: 27002: using u16string_view = basic_string_view; 27002: using u32string_view = basic_string_view; 27002: 27002: 27002: 27002: template 27002: struct hash; 27002: 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const string_view& __str) const noexcept 27002: { return std::_Hash_impl::hash(__str.data(), __str.length()); } 27002: }; 27002: 27002: template<> 27002: struct __is_fast_hash> : std::false_type 27002: { }; 27002: 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const wstring_view& __s) const noexcept 27002: { return std::_Hash_impl::hash(__s.data(), 27002: __s.length() * sizeof(wchar_t)); } 27002: }; 27002: 27002: template<> 27002: struct __is_fast_hash> : std::false_type 27002: { }; 27002: # 734 "/usr/include/c++/12/string_view" 3 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const u16string_view& __s) const noexcept 27002: { return std::_Hash_impl::hash(__s.data(), 27002: __s.length() * sizeof(char16_t)); } 27002: }; 27002: 27002: template<> 27002: struct __is_fast_hash> : std::false_type 27002: { }; 27002: 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const u32string_view& __s) const noexcept 27002: { return std::_Hash_impl::hash(__s.data(), 27002: __s.length() * sizeof(char32_t)); } 27002: }; 27002: 27002: template<> 27002: struct __is_fast_hash> : std::false_type 27002: { }; 27002: 27002: inline namespace literals 27002: { 27002: inline namespace string_view_literals 27002: { 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wliteral-suffix" 27002: inline constexpr basic_string_view 27002: operator""sv(const char* __str, size_t __len) noexcept 27002: { return basic_string_view{__str, __len}; } 27002: 27002: inline constexpr basic_string_view 27002: operator""sv(const wchar_t* __str, size_t __len) noexcept 27002: { return basic_string_view{__str, __len}; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline constexpr basic_string_view 27002: operator""sv(const char16_t* __str, size_t __len) noexcept 27002: { return basic_string_view{__str, __len}; } 27002: 27002: inline constexpr basic_string_view 27002: operator""sv(const char32_t* __str, size_t __len) noexcept 27002: { return basic_string_view{__str, __len}; } 27002: 27002: #pragma GCC diagnostic pop 27002: } 27002: } 27002: # 808 "/usr/include/c++/12/string_view" 3 27002: 27002: } 27002: 27002: # 1 "/usr/include/c++/12/bits/string_view.tcc" 1 3 27002: # 37 "/usr/include/c++/12/bits/string_view.tcc" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/string_view.tcc" 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: constexpr typename basic_string_view<_CharT, _Traits>::size_type 27002: basic_string_view<_CharT, _Traits>:: 27002: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept 27002: { 27002: ; 27002: 27002: if (__n == 0) 27002: return __pos <= _M_len ? __pos : npos; 27002: if (__pos >= _M_len) 27002: return npos; 27002: 27002: const _CharT __elem0 = __str[0]; 27002: const _CharT* __first = _M_str + __pos; 27002: const _CharT* const __last = _M_str + _M_len; 27002: size_type __len = _M_len - __pos; 27002: 27002: while (__len >= __n) 27002: { 27002: 27002: __first = traits_type::find(__first, __len - __n + 1, __elem0); 27002: if (!__first) 27002: return npos; 27002: 27002: 27002: 27002: if (traits_type::compare(__first, __str, __n) == 0) 27002: return __first - _M_str; 27002: __len = __last - ++__first; 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: constexpr typename basic_string_view<_CharT, _Traits>::size_type 27002: basic_string_view<_CharT, _Traits>:: 27002: find(_CharT __c, size_type __pos) const noexcept 27002: { 27002: size_type __ret = npos; 27002: if (__pos < this->_M_len) 27002: { 27002: const size_type __n = this->_M_len - __pos; 27002: const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); 27002: if (__p) 27002: __ret = __p - this->_M_str; 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: constexpr typename basic_string_view<_CharT, _Traits>::size_type 27002: basic_string_view<_CharT, _Traits>:: 27002: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept 27002: { 27002: ; 27002: 27002: if (__n <= this->_M_len) 27002: { 27002: __pos = std::min(size_type(this->_M_len - __n), __pos); 27002: do 27002: { 27002: if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) 27002: return __pos; 27002: } 27002: while (__pos-- > 0); 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: constexpr typename basic_string_view<_CharT, _Traits>::size_type 27002: basic_string_view<_CharT, _Traits>:: 27002: rfind(_CharT __c, size_type __pos) const noexcept 27002: { 27002: size_type __size = this->_M_len; 27002: if (__size > 0) 27002: { 27002: if (--__size > __pos) 27002: __size = __pos; 27002: for (++__size; __size-- > 0; ) 27002: if (traits_type::eq(this->_M_str[__size], __c)) 27002: return __size; 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: constexpr typename basic_string_view<_CharT, _Traits>::size_type 27002: basic_string_view<_CharT, _Traits>:: 27002: find_first_of(const _CharT* __str, size_type __pos, 27002: size_type __n) const noexcept 27002: { 27002: ; 27002: for (; __n && __pos < this->_M_len; ++__pos) 27002: { 27002: const _CharT* __p = traits_type::find(__str, __n, 27002: this->_M_str[__pos]); 27002: if (__p) 27002: return __pos; 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: constexpr typename basic_string_view<_CharT, _Traits>::size_type 27002: basic_string_view<_CharT, _Traits>:: 27002: find_last_of(const _CharT* __str, size_type __pos, 27002: size_type __n) const noexcept 27002: { 27002: ; 27002: size_type __size = this->size(); 27002: if (__size && __n) 27002: { 27002: if (--__size > __pos) 27002: __size = __pos; 27002: do 27002: { 27002: if (traits_type::find(__str, __n, this->_M_str[__size])) 27002: return __size; 27002: } 27002: while (__size-- != 0); 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: constexpr typename basic_string_view<_CharT, _Traits>::size_type 27002: basic_string_view<_CharT, _Traits>:: 27002: find_first_not_of(const _CharT* __str, size_type __pos, 27002: size_type __n) const noexcept 27002: { 27002: ; 27002: for (; __pos < this->_M_len; ++__pos) 27002: if (!traits_type::find(__str, __n, this->_M_str[__pos])) 27002: return __pos; 27002: return npos; 27002: } 27002: 27002: template 27002: constexpr typename basic_string_view<_CharT, _Traits>::size_type 27002: basic_string_view<_CharT, _Traits>:: 27002: find_first_not_of(_CharT __c, size_type __pos) const noexcept 27002: { 27002: for (; __pos < this->_M_len; ++__pos) 27002: if (!traits_type::eq(this->_M_str[__pos], __c)) 27002: return __pos; 27002: return npos; 27002: } 27002: 27002: template 27002: constexpr typename basic_string_view<_CharT, _Traits>::size_type 27002: basic_string_view<_CharT, _Traits>:: 27002: find_last_not_of(const _CharT* __str, size_type __pos, 27002: size_type __n) const noexcept 27002: { 27002: ; 27002: size_type __size = this->_M_len; 27002: if (__size) 27002: { 27002: if (--__size > __pos) 27002: __size = __pos; 27002: do 27002: { 27002: if (!traits_type::find(__str, __n, this->_M_str[__size])) 27002: return __size; 27002: } 27002: while (__size--); 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: constexpr typename basic_string_view<_CharT, _Traits>::size_type 27002: basic_string_view<_CharT, _Traits>:: 27002: find_last_not_of(_CharT __c, size_type __pos) const noexcept 27002: { 27002: size_type __size = this->_M_len; 27002: if (__size) 27002: { 27002: if (--__size > __pos) 27002: __size = __pos; 27002: do 27002: { 27002: if (!traits_type::eq(this->_M_str[__size], __c)) 27002: return __size; 27002: } 27002: while (__size--); 27002: } 27002: return npos; 27002: } 27002: 27002: 27002: } 27002: # 812 "/usr/include/c++/12/string_view" 2 3 27002: # 48 "/usr/include/c++/12/bits/basic_string.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace __cxx11 { 27002: # 84 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: class basic_string 27002: { 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind<_CharT>::other _Char_alloc_type; 27002: 27002: 27002: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 27002: # 122 "/usr/include/c++/12/bits/basic_string.h" 3 27002: public: 27002: typedef _Traits traits_type; 27002: typedef typename _Traits::char_type value_type; 27002: typedef _Char_alloc_type allocator_type; 27002: typedef typename _Alloc_traits::size_type size_type; 27002: typedef typename _Alloc_traits::difference_type difference_type; 27002: typedef typename _Alloc_traits::reference reference; 27002: typedef typename _Alloc_traits::const_reference const_reference; 27002: typedef typename _Alloc_traits::pointer pointer; 27002: typedef typename _Alloc_traits::const_pointer const_pointer; 27002: typedef __gnu_cxx::__normal_iterator iterator; 27002: typedef __gnu_cxx::__normal_iterator 27002: const_iterator; 27002: typedef std::reverse_iterator const_reverse_iterator; 27002: typedef std::reverse_iterator reverse_iterator; 27002: 27002: 27002: static const size_type npos = static_cast(-1); 27002: 27002: protected: 27002: 27002: 27002: 27002: 27002: typedef const_iterator __const_iterator; 27002: 27002: 27002: private: 27002: 27002: 27002: typedef basic_string_view<_CharT, _Traits> __sv_type; 27002: 27002: template 27002: using _If_sv = enable_if_t< 27002: __and_, 27002: __not_>, 27002: __not_>>::value, 27002: _Res>; 27002: 27002: 27002: 27002: static __sv_type 27002: _S_to_string_view(__sv_type __svt) noexcept 27002: { return __svt; } 27002: 27002: 27002: 27002: 27002: 27002: struct __sv_wrapper 27002: { 27002: explicit 27002: __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } 27002: 27002: __sv_type _M_sv; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: basic_string(__sv_wrapper __svw, const _Alloc& __a) 27002: : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } 27002: 27002: 27002: 27002: struct _Alloc_hider : allocator_type 27002: { 27002: 27002: 27002: 27002: 27002: 27002: _Alloc_hider(pointer __dat, const _Alloc& __a) 27002: : allocator_type(__a), _M_p(__dat) { } 27002: 27002: 27002: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 27002: : allocator_type(std::move(__a)), _M_p(__dat) { } 27002: 27002: 27002: pointer _M_p; 27002: }; 27002: 27002: _Alloc_hider _M_dataplus; 27002: size_type _M_string_length; 27002: 27002: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 27002: 27002: union 27002: { 27002: _CharT _M_local_buf[_S_local_capacity + 1]; 27002: size_type _M_allocated_capacity; 27002: }; 27002: 27002: 27002: void 27002: _M_data(pointer __p) 27002: { _M_dataplus._M_p = __p; } 27002: 27002: 27002: void 27002: _M_length(size_type __length) 27002: { _M_string_length = __length; } 27002: 27002: 27002: pointer 27002: _M_data() const 27002: { return _M_dataplus._M_p; } 27002: 27002: 27002: pointer 27002: _M_local_data() 27002: { 27002: 27002: return std::pointer_traits::pointer_to(*_M_local_buf); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: const_pointer 27002: _M_local_data() const 27002: { 27002: 27002: return std::pointer_traits::pointer_to(*_M_local_buf); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: void 27002: _M_capacity(size_type __capacity) 27002: { _M_allocated_capacity = __capacity; } 27002: 27002: 27002: void 27002: _M_set_length(size_type __n) 27002: { 27002: _M_length(__n); 27002: traits_type::assign(_M_data()[__n], _CharT()); 27002: } 27002: 27002: 27002: bool 27002: _M_is_local() const 27002: { return _M_data() == _M_local_data(); } 27002: 27002: 27002: 27002: pointer 27002: _M_create(size_type&, size_type); 27002: 27002: 27002: void 27002: _M_dispose() 27002: { 27002: if (!_M_is_local()) 27002: _M_destroy(_M_allocated_capacity); 27002: } 27002: 27002: 27002: void 27002: _M_destroy(size_type __size) throw() 27002: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 27002: # 319 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: void 27002: _M_construct(_InIterator __beg, _InIterator __end, 27002: std::input_iterator_tag); 27002: 27002: 27002: 27002: template 27002: 27002: void 27002: _M_construct(_FwdIterator __beg, _FwdIterator __end, 27002: std::forward_iterator_tag); 27002: 27002: 27002: void 27002: _M_construct(size_type __req, _CharT __c); 27002: 27002: 27002: allocator_type& 27002: _M_get_allocator() 27002: { return _M_dataplus; } 27002: 27002: 27002: const allocator_type& 27002: _M_get_allocator() const 27002: { return _M_dataplus; } 27002: 27002: 27002: __attribute__((__always_inline__)) 27002: constexpr 27002: pointer 27002: _M_use_local_data() noexcept 27002: { 27002: 27002: 27002: 27002: 27002: 27002: return _M_local_data(); 27002: } 27002: 27002: private: 27002: # 377 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: _M_check(size_type __pos, const char* __s) const 27002: { 27002: if (__pos > this->size()) 27002: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 27002: , 27002: __s, __pos, this->size()); 27002: return __pos; 27002: } 27002: 27002: 27002: void 27002: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 27002: { 27002: if (this->max_size() - (this->size() - __n1) < __n2) 27002: __throw_length_error((__s)); 27002: } 27002: 27002: 27002: 27002: 27002: size_type 27002: _M_limit(size_type __pos, size_type __off) const noexcept 27002: { 27002: const bool __testoff = __off < this->size() - __pos; 27002: return __testoff ? __off : this->size() - __pos; 27002: } 27002: 27002: 27002: bool 27002: _M_disjunct(const _CharT* __s) const noexcept 27002: { 27002: return (less()(__s, _M_data()) 27002: || less()(_M_data() + this->size(), __s)); 27002: } 27002: 27002: 27002: 27002: 27002: static void 27002: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 27002: { 27002: if (__n == 1) 27002: traits_type::assign(*__d, *__s); 27002: else 27002: traits_type::copy(__d, __s, __n); 27002: } 27002: 27002: 27002: static void 27002: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 27002: { 27002: if (__n == 1) 27002: traits_type::assign(*__d, *__s); 27002: else 27002: traits_type::move(__d, __s, __n); 27002: } 27002: 27002: 27002: static void 27002: _S_assign(_CharT* __d, size_type __n, _CharT __c) 27002: { 27002: if (__n == 1) 27002: traits_type::assign(*__d, __c); 27002: else 27002: traits_type::assign(__d, __n, __c); 27002: } 27002: 27002: 27002: 27002: template 27002: 27002: static void 27002: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 27002: { 27002: for (; __k1 != __k2; ++__k1, (void)++__p) 27002: traits_type::assign(*__p, *__k1); 27002: } 27002: 27002: 27002: static void 27002: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 27002: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 27002: 27002: 27002: static void 27002: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 27002: noexcept 27002: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 27002: 27002: 27002: static void 27002: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 27002: { _S_copy(__p, __k1, __k2 - __k1); } 27002: 27002: 27002: static void 27002: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 27002: noexcept 27002: { _S_copy(__p, __k1, __k2 - __k1); } 27002: 27002: 27002: static int 27002: _S_compare(size_type __n1, size_type __n2) noexcept 27002: { 27002: const difference_type __d = difference_type(__n1 - __n2); 27002: 27002: if (__d > __gnu_cxx::__numeric_traits::__max) 27002: return __gnu_cxx::__numeric_traits::__max; 27002: else if (__d < __gnu_cxx::__numeric_traits::__min) 27002: return __gnu_cxx::__numeric_traits::__min; 27002: else 27002: return int(__d); 27002: } 27002: 27002: 27002: void 27002: _M_assign(const basic_string&); 27002: 27002: 27002: void 27002: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 27002: size_type __len2); 27002: 27002: 27002: void 27002: _M_erase(size_type __pos, size_type __n); 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string() 27002: noexcept(is_nothrow_default_constructible<_Alloc>::value) 27002: : _M_dataplus(_M_local_data()) 27002: { 27002: _M_use_local_data(); 27002: _M_set_length(0); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: basic_string(const _Alloc& __a) noexcept 27002: : _M_dataplus(_M_local_data(), __a) 27002: { 27002: _M_use_local_data(); 27002: _M_set_length(0); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string(const basic_string& __str) 27002: : _M_dataplus(_M_local_data(), 27002: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 27002: { 27002: _M_construct(__str._M_data(), __str._M_data() + __str.length(), 27002: std::forward_iterator_tag()); 27002: } 27002: # 556 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string(const basic_string& __str, size_type __pos, 27002: const _Alloc& __a = _Alloc()) 27002: : _M_dataplus(_M_local_data(), __a) 27002: { 27002: const _CharT* __start = __str._M_data() 27002: + __str._M_check(__pos, "basic_string::basic_string"); 27002: _M_construct(__start, __start + __str._M_limit(__pos, npos), 27002: std::forward_iterator_tag()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string(const basic_string& __str, size_type __pos, 27002: size_type __n) 27002: : _M_dataplus(_M_local_data()) 27002: { 27002: const _CharT* __start = __str._M_data() 27002: + __str._M_check(__pos, "basic_string::basic_string"); 27002: _M_construct(__start, __start + __str._M_limit(__pos, __n), 27002: std::forward_iterator_tag()); 27002: } 27002: # 591 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string(const basic_string& __str, size_type __pos, 27002: size_type __n, const _Alloc& __a) 27002: : _M_dataplus(_M_local_data(), __a) 27002: { 27002: const _CharT* __start 27002: = __str._M_data() + __str._M_check(__pos, "string::string"); 27002: _M_construct(__start, __start + __str._M_limit(__pos, __n), 27002: std::forward_iterator_tag()); 27002: } 27002: # 611 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string(const _CharT* __s, size_type __n, 27002: const _Alloc& __a = _Alloc()) 27002: : _M_dataplus(_M_local_data(), __a) 27002: { 27002: 27002: if (__s == 0 && __n > 0) 27002: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 27002: ); 27002: _M_construct(__s, __s + __n, std::forward_iterator_tag()); 27002: } 27002: # 631 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template> 27002: 27002: 27002: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 27002: : _M_dataplus(_M_local_data(), __a) 27002: { 27002: 27002: if (__s == 0) 27002: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 27002: ); 27002: const _CharT* __end = __s + traits_type::length(__s); 27002: _M_construct(__s, __end, forward_iterator_tag()); 27002: } 27002: # 654 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template> 27002: 27002: 27002: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 27002: : _M_dataplus(_M_local_data(), __a) 27002: { _M_construct(__n, __c); } 27002: # 669 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string(basic_string&& __str) noexcept 27002: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 27002: { 27002: if (__str._M_is_local()) 27002: { 27002: traits_type::copy(_M_local_buf, __str._M_local_buf, 27002: __str.length() + 1); 27002: } 27002: else 27002: { 27002: _M_data(__str._M_data()); 27002: _M_capacity(__str._M_allocated_capacity); 27002: } 27002: 27002: 27002: 27002: 27002: _M_length(__str.length()); 27002: __str._M_data(__str._M_local_data()); 27002: __str._M_set_length(0); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 27002: : _M_dataplus(_M_local_data(), __a) 27002: { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } 27002: 27002: 27002: basic_string(const basic_string& __str, const _Alloc& __a) 27002: : _M_dataplus(_M_local_data(), __a) 27002: { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } 27002: 27002: 27002: basic_string(basic_string&& __str, const _Alloc& __a) 27002: noexcept(_Alloc_traits::_S_always_equal()) 27002: : _M_dataplus(_M_local_data(), __a) 27002: { 27002: if (__str._M_is_local()) 27002: { 27002: traits_type::copy(_M_local_buf, __str._M_local_buf, 27002: __str.length() + 1); 27002: _M_length(__str.length()); 27002: __str._M_set_length(0); 27002: } 27002: else if (_Alloc_traits::_S_always_equal() 27002: || __str.get_allocator() == __a) 27002: { 27002: _M_data(__str._M_data()); 27002: _M_length(__str.length()); 27002: _M_capacity(__str._M_allocated_capacity); 27002: __str._M_data(__str._M_local_buf); 27002: __str._M_set_length(0); 27002: } 27002: else 27002: _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); 27002: } 27002: # 745 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template> 27002: 27002: 27002: 27002: 27002: basic_string(_InputIterator __beg, _InputIterator __end, 27002: const _Alloc& __a = _Alloc()) 27002: : _M_dataplus(_M_local_data(), __a) 27002: { 27002: 27002: _M_construct(__beg, __end, std::__iterator_category(__beg)); 27002: 27002: 27002: 27002: 27002: } 27002: # 771 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template>> 27002: 27002: basic_string(const _Tp& __t, size_type __pos, size_type __n, 27002: const _Alloc& __a = _Alloc()) 27002: : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: 27002: explicit 27002: basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) 27002: : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: ~basic_string() 27002: { _M_dispose(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: operator=(const basic_string& __str) 27002: { 27002: return this->assign(__str); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: operator=(const _CharT* __s) 27002: { return this->assign(__s); } 27002: # 824 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: operator=(_CharT __c) 27002: { 27002: this->assign(1, __c); 27002: return *this; 27002: } 27002: # 842 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: operator=(basic_string&& __str) 27002: noexcept(_Alloc_traits::_S_nothrow_move()) 27002: { 27002: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 27002: && !_Alloc_traits::_S_always_equal() 27002: && _M_get_allocator() != __str._M_get_allocator()) 27002: { 27002: 27002: _M_destroy(_M_allocated_capacity); 27002: _M_data(_M_local_data()); 27002: _M_set_length(0); 27002: } 27002: 27002: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 27002: 27002: if (__str._M_is_local()) 27002: { 27002: 27002: 27002: 27002: if (__builtin_expect(std::__addressof(__str) != this, true)) 27002: { 27002: if (__str.size()) 27002: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 27002: _M_set_length(__str.size()); 27002: } 27002: } 27002: else if (_Alloc_traits::_S_propagate_on_move_assign() 27002: || _Alloc_traits::_S_always_equal() 27002: || _M_get_allocator() == __str._M_get_allocator()) 27002: { 27002: 27002: pointer __data = nullptr; 27002: size_type __capacity; 27002: if (!_M_is_local()) 27002: { 27002: if (_Alloc_traits::_S_always_equal()) 27002: { 27002: 27002: __data = _M_data(); 27002: __capacity = _M_allocated_capacity; 27002: } 27002: else 27002: _M_destroy(_M_allocated_capacity); 27002: } 27002: 27002: _M_data(__str._M_data()); 27002: _M_length(__str.length()); 27002: _M_capacity(__str._M_allocated_capacity); 27002: if (__data) 27002: { 27002: __str._M_data(__data); 27002: __str._M_capacity(__capacity); 27002: } 27002: else 27002: __str._M_data(__str._M_local_buf); 27002: } 27002: else 27002: assign(__str); 27002: __str.clear(); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: operator=(initializer_list<_CharT> __l) 27002: { 27002: this->assign(__l.begin(), __l.size()); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: operator=(const _Tp& __svt) 27002: { return this->assign(__svt); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: operator __sv_type() const noexcept 27002: { return __sv_type(data(), size()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: begin() noexcept 27002: { return iterator(_M_data()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: begin() const noexcept 27002: { return const_iterator(_M_data()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: end() noexcept 27002: { return iterator(_M_data() + this->size()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: end() const noexcept 27002: { return const_iterator(_M_data() + this->size()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: rbegin() noexcept 27002: { return reverse_iterator(this->end()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: rbegin() const noexcept 27002: { return const_reverse_iterator(this->end()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: rend() noexcept 27002: { return reverse_iterator(this->begin()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: rend() const noexcept 27002: { return const_reverse_iterator(this->begin()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: cbegin() const noexcept 27002: { return const_iterator(this->_M_data()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: cend() const noexcept 27002: { return const_iterator(this->_M_data() + this->size()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: crbegin() const noexcept 27002: { return const_reverse_iterator(this->end()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: crend() const noexcept 27002: { return const_reverse_iterator(this->begin()); } 27002: 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_string_length; } 27002: 27002: 27002: 27002: 27002: size_type 27002: length() const noexcept 27002: { return _M_string_length; } 27002: 27002: 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 27002: # 1089 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: void 27002: resize(size_type __n, _CharT __c); 27002: # 1103 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: void 27002: resize(size_type __n) 27002: { this->resize(__n, _CharT()); } 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: void 27002: shrink_to_fit() noexcept 27002: { reserve(); } 27002: #pragma GCC diagnostic pop 27002: # 1130 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: capacity() const noexcept 27002: { 27002: return _M_is_local() ? size_type(_S_local_capacity) 27002: : _M_allocated_capacity; 27002: } 27002: # 1155 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: void 27002: reserve(size_type __res_arg); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: reserve(); 27002: 27002: 27002: 27002: 27002: 27002: void 27002: clear() noexcept 27002: { _M_set_length(0); } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: bool 27002: empty() const noexcept 27002: { return this->size() == 0; } 27002: # 1197 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: const_reference 27002: operator[] (size_type __pos) const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) __builtin_unreachable(); } while (false); 27002: return _M_data()[__pos]; 27002: } 27002: # 1215 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: reference 27002: operator[](size_type __pos) 27002: { 27002: 27002: 27002: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) __builtin_unreachable(); } while (false); 27002: 27002: ; 27002: return _M_data()[__pos]; 27002: } 27002: # 1237 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: const_reference 27002: at(size_type __n) const 27002: { 27002: if (__n >= this->size()) 27002: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 27002: 27002: , 27002: __n, this->size()); 27002: return _M_data()[__n]; 27002: } 27002: # 1259 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: reference 27002: at(size_type __n) 27002: { 27002: if (__n >= size()) 27002: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 27002: 27002: , 27002: __n, this->size()); 27002: return _M_data()[__n]; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: reference 27002: front() noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 27002: return operator[](0); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reference 27002: front() const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 27002: return operator[](0); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reference 27002: back() noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 27002: return operator[](this->size() - 1); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reference 27002: back() const noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 27002: return operator[](this->size() - 1); 27002: } 27002: # 1327 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: operator+=(const basic_string& __str) 27002: { return this->append(__str); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: operator+=(const _CharT* __s) 27002: { return this->append(__s); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: operator+=(_CharT __c) 27002: { 27002: this->push_back(__c); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: operator+=(initializer_list<_CharT> __l) 27002: { return this->append(__l.begin(), __l.size()); } 27002: # 1373 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: operator+=(const _Tp& __svt) 27002: { return this->append(__svt); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: append(const basic_string& __str) 27002: { return this->append(__str._M_data(), __str.size()); } 27002: # 1403 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: append(const basic_string& __str, size_type __pos, size_type __n = npos) 27002: { return this->append(__str._M_data() 27002: + __str._M_check(__pos, "basic_string::append"), 27002: __str._M_limit(__pos, __n)); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: append(const _CharT* __s, size_type __n) 27002: { 27002: ; 27002: _M_check_length(size_type(0), __n, "basic_string::append"); 27002: return _M_append(__s, __n); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: append(const _CharT* __s) 27002: { 27002: ; 27002: const size_type __n = traits_type::length(__s); 27002: _M_check_length(size_type(0), __n, "basic_string::append"); 27002: return _M_append(__s, __n); 27002: } 27002: # 1448 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: append(size_type __n, _CharT __c) 27002: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: append(initializer_list<_CharT> __l) 27002: { return this->append(__l.begin(), __l.size()); } 27002: # 1474 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template> 27002: 27002: 27002: 27002: 27002: basic_string& 27002: append(_InputIterator __first, _InputIterator __last) 27002: { return this->replace(end(), end(), __first, __last); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: append(const _Tp& __svt) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->append(__sv.data(), __sv.size()); 27002: } 27002: # 1506 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: append(const _Tp& __svt, size_type __pos, size_type __n = npos) 27002: { 27002: __sv_type __sv = __svt; 27002: return _M_append(__sv.data() 27002: + std::__sv_check(__sv.size(), __pos, "basic_string::append"), 27002: std::__sv_limit(__sv.size(), __pos, __n)); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: push_back(_CharT __c) 27002: { 27002: const size_type __size = this->size(); 27002: if (__size + 1 > this->capacity()) 27002: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 27002: traits_type::assign(this->_M_data()[__size], __c); 27002: this->_M_set_length(__size + 1); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: assign(const basic_string& __str) 27002: { 27002: 27002: if (_Alloc_traits::_S_propagate_on_copy_assign()) 27002: { 27002: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 27002: && _M_get_allocator() != __str._M_get_allocator()) 27002: { 27002: 27002: 27002: if (__str.size() <= _S_local_capacity) 27002: { 27002: _M_destroy(_M_allocated_capacity); 27002: _M_data(_M_use_local_data()); 27002: _M_set_length(0); 27002: } 27002: else 27002: { 27002: const auto __len = __str.size(); 27002: auto __alloc = __str._M_get_allocator(); 27002: 27002: auto __ptr = _Alloc_traits::allocate(__alloc, __len + 1); 27002: _M_destroy(_M_allocated_capacity); 27002: _M_data(__ptr); 27002: _M_capacity(__len); 27002: _M_set_length(__len); 27002: } 27002: } 27002: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 27002: } 27002: 27002: this->_M_assign(__str); 27002: return *this; 27002: } 27002: # 1584 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: assign(basic_string&& __str) 27002: noexcept(_Alloc_traits::_S_nothrow_move()) 27002: { 27002: 27002: 27002: return *this = std::move(__str); 27002: } 27002: # 1608 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 27002: { return _M_replace(size_type(0), this->size(), __str._M_data() 27002: + __str._M_check(__pos, "basic_string::assign"), 27002: __str._M_limit(__pos, __n)); } 27002: # 1625 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: assign(const _CharT* __s, size_type __n) 27002: { 27002: ; 27002: return _M_replace(size_type(0), this->size(), __s, __n); 27002: } 27002: # 1642 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: assign(const _CharT* __s) 27002: { 27002: ; 27002: return _M_replace(size_type(0), this->size(), __s, 27002: traits_type::length(__s)); 27002: } 27002: # 1660 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: assign(size_type __n, _CharT __c) 27002: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 27002: # 1674 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template> 27002: 27002: 27002: 27002: 27002: basic_string& 27002: assign(_InputIterator __first, _InputIterator __last) 27002: { return this->replace(begin(), end(), __first, __last); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_string& 27002: assign(initializer_list<_CharT> __l) 27002: { return this->assign(__l.begin(), __l.size()); } 27002: # 1702 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: assign(const _Tp& __svt) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->assign(__sv.data(), __sv.size()); 27002: } 27002: # 1718 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: assign(const _Tp& __svt, size_type __pos, size_type __n = npos) 27002: { 27002: __sv_type __sv = __svt; 27002: return _M_replace(size_type(0), this->size(), 27002: __sv.data() 27002: + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), 27002: std::__sv_limit(__sv.size(), __pos, __n)); 27002: } 27002: # 1747 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: iterator 27002: insert(const_iterator __p, size_type __n, _CharT __c) 27002: { 27002: ; 27002: const size_type __pos = __p - begin(); 27002: this->replace(__p, __p, __n, __c); 27002: return iterator(this->_M_data() + __pos); 27002: } 27002: # 1790 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template> 27002: 27002: iterator 27002: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 27002: { 27002: ; 27002: const size_type __pos = __p - begin(); 27002: this->replace(__p, __p, __beg, __end); 27002: return iterator(this->_M_data() + __pos); 27002: } 27002: # 1827 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: iterator 27002: insert(const_iterator __p, initializer_list<_CharT> __l) 27002: { return this->insert(__p, __l.begin(), __l.end()); } 27002: # 1855 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: insert(size_type __pos1, const basic_string& __str) 27002: { return this->replace(__pos1, size_type(0), 27002: __str._M_data(), __str.size()); } 27002: # 1879 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: insert(size_type __pos1, const basic_string& __str, 27002: size_type __pos2, size_type __n = npos) 27002: { return this->replace(__pos1, size_type(0), __str._M_data() 27002: + __str._M_check(__pos2, "basic_string::insert"), 27002: __str._M_limit(__pos2, __n)); } 27002: # 1903 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: insert(size_type __pos, const _CharT* __s, size_type __n) 27002: { return this->replace(__pos, size_type(0), __s, __n); } 27002: # 1923 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: insert(size_type __pos, const _CharT* __s) 27002: { 27002: ; 27002: return this->replace(__pos, size_type(0), __s, 27002: traits_type::length(__s)); 27002: } 27002: # 1948 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: insert(size_type __pos, size_type __n, _CharT __c) 27002: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 27002: size_type(0), __n, __c); } 27002: # 1967 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: iterator 27002: insert(__const_iterator __p, _CharT __c) 27002: { 27002: ; 27002: const size_type __pos = __p - begin(); 27002: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 27002: return iterator(_M_data() + __pos); 27002: } 27002: # 1984 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: insert(size_type __pos, const _Tp& __svt) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->insert(__pos, __sv.data(), __sv.size()); 27002: } 27002: # 2001 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: insert(size_type __pos1, const _Tp& __svt, 27002: size_type __pos2, size_type __n = npos) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->replace(__pos1, size_type(0), 27002: __sv.data() 27002: + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), 27002: std::__sv_limit(__sv.size(), __pos2, __n)); 27002: } 27002: # 2030 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: erase(size_type __pos = 0, size_type __n = npos) 27002: { 27002: _M_check(__pos, "basic_string::erase"); 27002: if (__n == npos) 27002: this->_M_set_length(__pos); 27002: else if (__n != 0) 27002: this->_M_erase(__pos, _M_limit(__pos, __n)); 27002: return *this; 27002: } 27002: # 2050 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: iterator 27002: erase(__const_iterator __position) 27002: { 27002: 27002: ; 27002: const size_type __pos = __position - begin(); 27002: this->_M_erase(__pos, size_type(1)); 27002: return iterator(_M_data() + __pos); 27002: } 27002: # 2070 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: iterator 27002: erase(__const_iterator __first, __const_iterator __last) 27002: { 27002: 27002: ; 27002: const size_type __pos = __first - begin(); 27002: if (__last == end()) 27002: this->_M_set_length(__pos); 27002: else 27002: this->_M_erase(__pos, __last - __first); 27002: return iterator(this->_M_data() + __pos); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: pop_back() noexcept 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); 27002: _M_erase(size() - 1, 1); 27002: } 27002: # 2116 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: replace(size_type __pos, size_type __n, const basic_string& __str) 27002: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 27002: # 2139 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: replace(size_type __pos1, size_type __n1, const basic_string& __str, 27002: size_type __pos2, size_type __n2 = npos) 27002: { return this->replace(__pos1, __n1, __str._M_data() 27002: + __str._M_check(__pos2, "basic_string::replace"), 27002: __str._M_limit(__pos2, __n2)); } 27002: # 2165 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: replace(size_type __pos, size_type __n1, const _CharT* __s, 27002: size_type __n2) 27002: { 27002: ; 27002: return _M_replace(_M_check(__pos, "basic_string::replace"), 27002: _M_limit(__pos, __n1), __s, __n2); 27002: } 27002: # 2191 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: replace(size_type __pos, size_type __n1, const _CharT* __s) 27002: { 27002: ; 27002: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 27002: } 27002: # 2216 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 27002: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 27002: _M_limit(__pos, __n1), __n2, __c); } 27002: # 2235 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: replace(__const_iterator __i1, __const_iterator __i2, 27002: const basic_string& __str) 27002: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 27002: # 2256 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: replace(__const_iterator __i1, __const_iterator __i2, 27002: const _CharT* __s, size_type __n) 27002: { 27002: 27002: ; 27002: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 27002: } 27002: # 2279 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 27002: { 27002: ; 27002: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 27002: } 27002: # 2301 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 27002: _CharT __c) 27002: { 27002: 27002: ; 27002: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 27002: } 27002: # 2327 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template> 27002: 27002: basic_string& 27002: replace(const_iterator __i1, const_iterator __i2, 27002: _InputIterator __k1, _InputIterator __k2) 27002: { 27002: 27002: ; 27002: ; 27002: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 27002: std::__false_type()); 27002: } 27002: # 2360 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& 27002: replace(__const_iterator __i1, __const_iterator __i2, 27002: _CharT* __k1, _CharT* __k2) 27002: { 27002: 27002: ; 27002: ; 27002: return this->replace(__i1 - begin(), __i2 - __i1, 27002: __k1, __k2 - __k1); 27002: } 27002: 27002: 27002: basic_string& 27002: replace(__const_iterator __i1, __const_iterator __i2, 27002: const _CharT* __k1, const _CharT* __k2) 27002: { 27002: 27002: ; 27002: ; 27002: return this->replace(__i1 - begin(), __i2 - __i1, 27002: __k1, __k2 - __k1); 27002: } 27002: 27002: 27002: basic_string& 27002: replace(__const_iterator __i1, __const_iterator __i2, 27002: iterator __k1, iterator __k2) 27002: { 27002: 27002: ; 27002: ; 27002: return this->replace(__i1 - begin(), __i2 - __i1, 27002: __k1.base(), __k2 - __k1); 27002: } 27002: 27002: 27002: basic_string& 27002: replace(__const_iterator __i1, __const_iterator __i2, 27002: const_iterator __k1, const_iterator __k2) 27002: { 27002: 27002: ; 27002: ; 27002: return this->replace(__i1 - begin(), __i2 - __i1, 27002: __k1.base(), __k2 - __k1); 27002: } 27002: # 2423 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string& replace(const_iterator __i1, const_iterator __i2, 27002: initializer_list<_CharT> __l) 27002: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 27002: # 2437 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: replace(size_type __pos, size_type __n, const _Tp& __svt) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->replace(__pos, __n, __sv.data(), __sv.size()); 27002: } 27002: # 2455 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: replace(size_type __pos1, size_type __n1, const _Tp& __svt, 27002: size_type __pos2, size_type __n2 = npos) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->replace(__pos1, __n1, 27002: __sv.data() 27002: + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), 27002: std::__sv_limit(__sv.size(), __pos2, __n2)); 27002: } 27002: # 2477 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, basic_string&> 27002: replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->replace(__i1 - begin(), __i2 - __i1, __sv); 27002: } 27002: 27002: 27002: private: 27002: template 27002: 27002: basic_string& 27002: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 27002: _Integer __n, _Integer __val, __true_type) 27002: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 27002: 27002: template 27002: 27002: basic_string& 27002: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 27002: _InputIterator __k1, _InputIterator __k2, 27002: __false_type); 27002: 27002: 27002: basic_string& 27002: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 27002: _CharT __c); 27002: 27002: 27002: basic_string& 27002: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 27002: const size_type __len2); 27002: 27002: 27002: basic_string& 27002: _M_append(const _CharT* __s, size_type __n); 27002: 27002: public: 27002: # 2530 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 27002: # 2541 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: void 27002: swap(basic_string& __s) noexcept; 27002: # 2552 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: const _CharT* 27002: c_str() const noexcept 27002: { return _M_data(); } 27002: # 2565 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: const _CharT* 27002: data() const noexcept 27002: { return _M_data(); } 27002: # 2577 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: _CharT* 27002: data() noexcept 27002: { return _M_data(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return _M_get_allocator(); } 27002: # 2603 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find(const _CharT* __s, size_type __pos, size_type __n) const 27002: noexcept; 27002: # 2618 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find(const basic_string& __str, size_type __pos = 0) const 27002: noexcept 27002: { return this->find(__str.data(), __pos, __str.size()); } 27002: # 2631 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, size_type> 27002: find(const _Tp& __svt, size_type __pos = 0) const 27002: noexcept(is_same<_Tp, __sv_type>::value) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->find(__sv.data(), __pos, __sv.size()); 27002: } 27002: # 2652 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find(const _CharT* __s, size_type __pos = 0) const noexcept 27002: { 27002: ; 27002: return this->find(__s, __pos, traits_type::length(__s)); 27002: } 27002: # 2670 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find(_CharT __c, size_type __pos = 0) const noexcept; 27002: # 2684 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: rfind(const basic_string& __str, size_type __pos = npos) const 27002: noexcept 27002: { return this->rfind(__str.data(), __pos, __str.size()); } 27002: # 2697 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, size_type> 27002: rfind(const _Tp& __svt, size_type __pos = npos) const 27002: noexcept(is_same<_Tp, __sv_type>::value) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->rfind(__sv.data(), __pos, __sv.size()); 27002: } 27002: # 2720 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: rfind(const _CharT* __s, size_type __pos, size_type __n) const 27002: noexcept; 27002: # 2735 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: rfind(const _CharT* __s, size_type __pos = npos) const 27002: { 27002: ; 27002: return this->rfind(__s, __pos, traits_type::length(__s)); 27002: } 27002: # 2753 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: rfind(_CharT __c, size_type __pos = npos) const noexcept; 27002: # 2768 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_first_of(const basic_string& __str, size_type __pos = 0) const 27002: noexcept 27002: { return this->find_first_of(__str.data(), __pos, __str.size()); } 27002: # 2782 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, size_type> 27002: find_first_of(const _Tp& __svt, size_type __pos = 0) const 27002: noexcept(is_same<_Tp, __sv_type>::value) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->find_first_of(__sv.data(), __pos, __sv.size()); 27002: } 27002: # 2805 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 27002: noexcept; 27002: # 2820 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_first_of(const _CharT* __s, size_type __pos = 0) const 27002: noexcept 27002: { 27002: ; 27002: return this->find_first_of(__s, __pos, traits_type::length(__s)); 27002: } 27002: # 2841 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 27002: { return this->find(__c, __pos); } 27002: # 2857 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_last_of(const basic_string& __str, size_type __pos = npos) const 27002: noexcept 27002: { return this->find_last_of(__str.data(), __pos, __str.size()); } 27002: # 2871 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, size_type> 27002: find_last_of(const _Tp& __svt, size_type __pos = npos) const 27002: noexcept(is_same<_Tp, __sv_type>::value) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->find_last_of(__sv.data(), __pos, __sv.size()); 27002: } 27002: # 2894 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 27002: noexcept; 27002: # 2909 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_last_of(const _CharT* __s, size_type __pos = npos) const 27002: noexcept 27002: { 27002: ; 27002: return this->find_last_of(__s, __pos, traits_type::length(__s)); 27002: } 27002: # 2930 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 27002: { return this->rfind(__c, __pos); } 27002: # 2945 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 27002: noexcept 27002: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 27002: # 2959 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: _If_sv<_Tp, size_type> 27002: 27002: find_first_not_of(const _Tp& __svt, size_type __pos = 0) const 27002: noexcept(is_same<_Tp, __sv_type>::value) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->find_first_not_of(__sv.data(), __pos, __sv.size()); 27002: } 27002: # 2982 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_first_not_of(const _CharT* __s, size_type __pos, 27002: size_type __n) const noexcept; 27002: # 2997 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 27002: noexcept 27002: { 27002: ; 27002: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 27002: } 27002: # 3016 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_first_not_of(_CharT __c, size_type __pos = 0) const 27002: noexcept; 27002: # 3032 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 27002: noexcept 27002: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 27002: # 3046 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, size_type> 27002: find_last_not_of(const _Tp& __svt, size_type __pos = npos) const 27002: noexcept(is_same<_Tp, __sv_type>::value) 27002: { 27002: __sv_type __sv = __svt; 27002: return this->find_last_not_of(__sv.data(), __pos, __sv.size()); 27002: } 27002: # 3069 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_last_not_of(const _CharT* __s, size_type __pos, 27002: size_type __n) const noexcept; 27002: # 3084 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 27002: noexcept 27002: { 27002: ; 27002: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 27002: } 27002: # 3103 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: size_type 27002: find_last_not_of(_CharT __c, size_type __pos = npos) const 27002: noexcept; 27002: # 3120 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: basic_string 27002: substr(size_type __pos = 0, size_type __n = npos) const 27002: { return basic_string(*this, 27002: _M_check(__pos, "basic_string::substr"), __n); } 27002: # 3140 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: int 27002: compare(const basic_string& __str) const 27002: { 27002: const size_type __size = this->size(); 27002: const size_type __osize = __str.size(); 27002: const size_type __len = std::min(__size, __osize); 27002: 27002: int __r = traits_type::compare(_M_data(), __str.data(), __len); 27002: if (!__r) 27002: __r = _S_compare(__size, __osize); 27002: return __r; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: _If_sv<_Tp, int> 27002: compare(const _Tp& __svt) const 27002: noexcept(is_same<_Tp, __sv_type>::value) 27002: { 27002: __sv_type __sv = __svt; 27002: const size_type __size = this->size(); 27002: const size_type __osize = __sv.size(); 27002: const size_type __len = std::min(__size, __osize); 27002: 27002: int __r = traits_type::compare(_M_data(), __sv.data(), __len); 27002: if (!__r) 27002: __r = _S_compare(__size, __osize); 27002: return __r; 27002: } 27002: # 3185 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, int> 27002: compare(size_type __pos, size_type __n, const _Tp& __svt) const 27002: noexcept(is_same<_Tp, __sv_type>::value) 27002: { 27002: __sv_type __sv = __svt; 27002: return __sv_type(*this).substr(__pos, __n).compare(__sv); 27002: } 27002: # 3205 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: _If_sv<_Tp, int> 27002: compare(size_type __pos1, size_type __n1, const _Tp& __svt, 27002: size_type __pos2, size_type __n2 = npos) const 27002: noexcept(is_same<_Tp, __sv_type>::value) 27002: { 27002: __sv_type __sv = __svt; 27002: return __sv_type(*this) 27002: .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); 27002: } 27002: # 3237 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: int 27002: compare(size_type __pos, size_type __n, const basic_string& __str) const; 27002: # 3264 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: int 27002: compare(size_type __pos1, size_type __n1, const basic_string& __str, 27002: size_type __pos2, size_type __n2 = npos) const; 27002: # 3283 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: int 27002: compare(const _CharT* __s) const noexcept; 27002: # 3308 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: int 27002: compare(size_type __pos, size_type __n1, const _CharT* __s) const; 27002: # 3336 "/usr/include/c++/12/bits/basic_string.h" 3 27002: 27002: int 27002: compare(size_type __pos, size_type __n1, const _CharT* __s, 27002: size_type __n2) const; 27002: # 3382 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template friend class basic_stringbuf; 27002: }; 27002: } 27002: 27002: } 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: namespace __cxx11 { 27002: template::value_type, 27002: typename _Allocator = allocator<_CharT>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireAllocator<_Allocator>> 27002: basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) 27002: -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; 27002: 27002: 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) 27002: -> basic_string<_CharT, _Traits, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: basic_string(basic_string_view<_CharT, _Traits>, 27002: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 27002: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 27002: const _Allocator& = _Allocator()) 27002: -> basic_string<_CharT, _Traits, _Allocator>; 27002: } 27002: # 3429 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: basic_string<_CharT, _Traits, _Alloc> 27002: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: { 27002: basic_string<_CharT, _Traits, _Alloc> __str(__lhs); 27002: __str.append(__rhs); 27002: return __str; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: basic_string<_CharT,_Traits,_Alloc> 27002: operator+(const _CharT* __lhs, 27002: const basic_string<_CharT,_Traits,_Alloc>& __rhs); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: basic_string<_CharT,_Traits,_Alloc> 27002: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline basic_string<_CharT, _Traits, _Alloc> 27002: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const _CharT* __rhs) 27002: { 27002: basic_string<_CharT, _Traits, _Alloc> __str(__lhs); 27002: __str.append(__rhs); 27002: return __str; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline basic_string<_CharT, _Traits, _Alloc> 27002: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 27002: { 27002: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 27002: typedef typename __string_type::size_type __size_type; 27002: __string_type __str(__lhs); 27002: __str.append(__size_type(1), __rhs); 27002: return __str; 27002: } 27002: 27002: 27002: template 27002: 27002: inline basic_string<_CharT, _Traits, _Alloc> 27002: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: { return std::move(__lhs.append(__rhs)); } 27002: 27002: template 27002: 27002: inline basic_string<_CharT, _Traits, _Alloc> 27002: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 27002: { return std::move(__rhs.insert(0, __lhs)); } 27002: 27002: template 27002: 27002: inline basic_string<_CharT, _Traits, _Alloc> 27002: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 27002: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 27002: { 27002: 27002: using _Alloc_traits = allocator_traits<_Alloc>; 27002: bool __use_rhs = false; 27002: if constexpr (typename _Alloc_traits::is_always_equal{}) 27002: __use_rhs = true; 27002: else if (__lhs.get_allocator() == __rhs.get_allocator()) 27002: __use_rhs = true; 27002: if (__use_rhs) 27002: 27002: { 27002: const auto __size = __lhs.size() + __rhs.size(); 27002: if (__size > __lhs.capacity() && __size <= __rhs.capacity()) 27002: return std::move(__rhs.insert(0, __lhs)); 27002: } 27002: return std::move(__lhs.append(__rhs)); 27002: } 27002: 27002: template 27002: 27002: inline basic_string<_CharT, _Traits, _Alloc> 27002: operator+(const _CharT* __lhs, 27002: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 27002: { return std::move(__rhs.insert(0, __lhs)); } 27002: 27002: template 27002: 27002: inline basic_string<_CharT, _Traits, _Alloc> 27002: operator+(_CharT __lhs, 27002: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 27002: { return std::move(__rhs.insert(0, 1, __lhs)); } 27002: 27002: template 27002: 27002: inline basic_string<_CharT, _Traits, _Alloc> 27002: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 27002: const _CharT* __rhs) 27002: { return std::move(__lhs.append(__rhs)); } 27002: 27002: template 27002: 27002: inline basic_string<_CharT, _Traits, _Alloc> 27002: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 27002: _CharT __rhs) 27002: { return std::move(__lhs.append(1, __rhs)); } 27002: # 3572 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: inline bool 27002: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: noexcept 27002: { return __lhs.compare(__rhs) == 0; } 27002: 27002: template 27002: 27002: inline 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, bool>::__type 27002: operator==(const basic_string<_CharT>& __lhs, 27002: const basic_string<_CharT>& __rhs) noexcept 27002: { return (__lhs.size() == __rhs.size() 27002: && !std::char_traits<_CharT>::compare(__lhs.data(), __rhs.data(), 27002: __lhs.size())); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline bool 27002: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const _CharT* __rhs) 27002: { return __lhs.compare(__rhs) == 0; } 27002: # 3638 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: inline bool 27002: operator==(const _CharT* __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: { return __rhs.compare(__lhs) == 0; } 27002: # 3651 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: inline bool 27002: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: noexcept 27002: { return !(__lhs == __rhs); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const _CharT* __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: { return !(__lhs == __rhs); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const _CharT* __rhs) 27002: { return !(__lhs == __rhs); } 27002: # 3689 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: inline bool 27002: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: noexcept 27002: { return __lhs.compare(__rhs) < 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const _CharT* __rhs) 27002: { return __lhs.compare(__rhs) < 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator<(const _CharT* __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: { return __rhs.compare(__lhs) > 0; } 27002: # 3727 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: inline bool 27002: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: noexcept 27002: { return __lhs.compare(__rhs) > 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const _CharT* __rhs) 27002: { return __lhs.compare(__rhs) > 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator>(const _CharT* __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: { return __rhs.compare(__lhs) < 0; } 27002: # 3765 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: inline bool 27002: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: noexcept 27002: { return __lhs.compare(__rhs) <= 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const _CharT* __rhs) 27002: { return __lhs.compare(__rhs) <= 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator<=(const _CharT* __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: { return __rhs.compare(__lhs) >= 0; } 27002: # 3803 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: inline bool 27002: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: noexcept 27002: { return __lhs.compare(__rhs) >= 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: const _CharT* __rhs) 27002: { return __lhs.compare(__rhs) >= 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator>=(const _CharT* __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: { return __rhs.compare(__lhs) <= 0; } 27002: # 3842 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: 27002: inline void 27002: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 27002: basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: noexcept(noexcept(__lhs.swap(__rhs))) 27002: { __lhs.swap(__rhs); } 27002: # 3863 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: operator>>(basic_istream<_CharT, _Traits>& __is, 27002: basic_string<_CharT, _Traits, _Alloc>& __str); 27002: 27002: template<> 27002: basic_istream& 27002: operator>>(basic_istream& __is, basic_string& __str); 27002: # 3881 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: inline basic_ostream<_CharT, _Traits>& 27002: operator<<(basic_ostream<_CharT, _Traits>& __os, 27002: const basic_string<_CharT, _Traits, _Alloc>& __str) 27002: { 27002: 27002: 27002: return __ostream_insert(__os, __str.data(), __str.size()); 27002: } 27002: # 3904 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: getline(basic_istream<_CharT, _Traits>& __is, 27002: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 27002: # 3921 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template 27002: inline basic_istream<_CharT, _Traits>& 27002: getline(basic_istream<_CharT, _Traits>& __is, 27002: basic_string<_CharT, _Traits, _Alloc>& __str) 27002: { return std::getline(__is, __str, __is.widen('\n')); } 27002: 27002: 27002: 27002: template 27002: inline basic_istream<_CharT, _Traits>& 27002: getline(basic_istream<_CharT, _Traits>&& __is, 27002: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 27002: { return std::getline(__is, __str, __delim); } 27002: 27002: 27002: template 27002: inline basic_istream<_CharT, _Traits>& 27002: getline(basic_istream<_CharT, _Traits>&& __is, 27002: basic_string<_CharT, _Traits, _Alloc>& __str) 27002: { return std::getline(__is, __str); } 27002: 27002: 27002: template<> 27002: basic_istream& 27002: getline(basic_istream& __in, basic_string& __str, 27002: char __delim); 27002: 27002: 27002: template<> 27002: basic_istream& 27002: getline(basic_istream& __in, basic_string& __str, 27002: wchar_t __delim); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/ext/string_conversions.h" 1 3 27002: # 32 "/usr/include/c++/12/ext/string_conversions.h" 3 27002: 27002: # 33 "/usr/include/c++/12/ext/string_conversions.h" 3 27002: # 41 "/usr/include/c++/12/ext/string_conversions.h" 3 27002: # 1 "/usr/include/c++/12/cstdlib" 1 3 27002: # 39 "/usr/include/c++/12/cstdlib" 3 27002: 27002: # 40 "/usr/include/c++/12/cstdlib" 3 27002: # 42 "/usr/include/c++/12/ext/string_conversions.h" 2 3 27002: # 1 "/usr/include/c++/12/cwchar" 1 3 27002: # 39 "/usr/include/c++/12/cwchar" 3 27002: 27002: # 40 "/usr/include/c++/12/cwchar" 3 27002: # 43 "/usr/include/c++/12/ext/string_conversions.h" 2 3 27002: # 1 "/usr/include/c++/12/cstdio" 1 3 27002: # 39 "/usr/include/c++/12/cstdio" 3 27002: 27002: # 40 "/usr/include/c++/12/cstdio" 3 27002: 27002: 27002: # 1 "/usr/include/stdio.h" 1 3 4 27002: # 27 "/usr/include/stdio.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 27002: # 28 "/usr/include/stdio.h" 2 3 4 27002: 27002: extern "C" { 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 34 "/usr/include/stdio.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdarg.h" 1 3 4 27002: # 37 "/usr/include/stdio.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 1 3 4 27002: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 3 4 27002: typedef struct _G_fpos_t 27002: { 27002: __off_t __pos; 27002: __mbstate_t __state; 27002: } __fpos_t; 27002: # 40 "/usr/include/stdio.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 1 3 4 27002: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 3 4 27002: typedef struct _G_fpos64_t 27002: { 27002: __off64_t __pos; 27002: __mbstate_t __state; 27002: } __fpos64_t; 27002: # 41 "/usr/include/stdio.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 1 3 4 27002: # 35 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 3 4 27002: struct _IO_FILE; 27002: struct _IO_marker; 27002: struct _IO_codecvt; 27002: struct _IO_wide_data; 27002: 27002: 27002: 27002: 27002: typedef void _IO_lock_t; 27002: 27002: 27002: 27002: 27002: 27002: struct _IO_FILE 27002: { 27002: int _flags; 27002: 27002: 27002: char *_IO_read_ptr; 27002: char *_IO_read_end; 27002: char *_IO_read_base; 27002: char *_IO_write_base; 27002: char *_IO_write_ptr; 27002: char *_IO_write_end; 27002: char *_IO_buf_base; 27002: char *_IO_buf_end; 27002: 27002: 27002: char *_IO_save_base; 27002: char *_IO_backup_base; 27002: char *_IO_save_end; 27002: 27002: struct _IO_marker *_markers; 27002: 27002: struct _IO_FILE *_chain; 27002: 27002: int _fileno; 27002: int _flags2; 27002: __off_t _old_offset; 27002: 27002: 27002: unsigned short _cur_column; 27002: signed char _vtable_offset; 27002: char _shortbuf[1]; 27002: 27002: _IO_lock_t *_lock; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __off64_t _offset; 27002: 27002: struct _IO_codecvt *_codecvt; 27002: struct _IO_wide_data *_wide_data; 27002: struct _IO_FILE *_freeres_list; 27002: void *_freeres_buf; 27002: size_t __pad5; 27002: int _mode; 27002: 27002: char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; 27002: }; 27002: # 44 "/usr/include/stdio.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 1 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 3 4 27002: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 27002: size_t __nbytes); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 27002: size_t __nbytes); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 27002: 27002: 27002: typedef int cookie_close_function_t (void *__cookie); 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef struct _IO_cookie_io_functions_t 27002: { 27002: cookie_read_function_t *read; 27002: cookie_write_function_t *write; 27002: cookie_seek_function_t *seek; 27002: cookie_close_function_t *close; 27002: } cookie_io_functions_t; 27002: # 47 "/usr/include/stdio.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: typedef __gnuc_va_list va_list; 27002: # 84 "/usr/include/stdio.h" 3 4 27002: typedef __fpos_t fpos_t; 27002: 27002: 27002: 27002: 27002: typedef __fpos64_t fpos64_t; 27002: # 133 "/usr/include/stdio.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4 27002: # 134 "/usr/include/stdio.h" 2 3 4 27002: # 143 "/usr/include/stdio.h" 3 4 27002: extern FILE *stdin; 27002: extern FILE *stdout; 27002: extern FILE *stderr; 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int remove (const char *__filename) noexcept (true); 27002: 27002: extern int rename (const char *__old, const char *__new) noexcept (true); 27002: 27002: 27002: 27002: extern int renameat (int __oldfd, const char *__old, int __newfd, 27002: const char *__new) noexcept (true); 27002: # 170 "/usr/include/stdio.h" 3 4 27002: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 27002: const char *__new, unsigned int __flags) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fclose (FILE *__stream); 27002: # 188 "/usr/include/stdio.h" 3 4 27002: extern FILE *tmpfile (void) 27002: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 27002: # 200 "/usr/include/stdio.h" 3 4 27002: extern FILE *tmpfile64 (void) 27002: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: # 222 "/usr/include/stdio.h" 3 4 27002: extern char *tempnam (const char *__dir, const char *__pfx) 27002: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fflush (FILE *__stream); 27002: # 239 "/usr/include/stdio.h" 3 4 27002: extern int fflush_unlocked (FILE *__stream); 27002: # 249 "/usr/include/stdio.h" 3 4 27002: extern int fcloseall (void); 27002: # 258 "/usr/include/stdio.h" 3 4 27002: extern FILE *fopen (const char *__restrict __filename, 27002: const char *__restrict __modes) 27002: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern FILE *freopen (const char *__restrict __filename, 27002: const char *__restrict __modes, 27002: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 27002: # 283 "/usr/include/stdio.h" 3 4 27002: extern FILE *fopen64 (const char *__restrict __filename, 27002: const char *__restrict __modes) 27002: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 27002: extern FILE *freopen64 (const char *__restrict __filename, 27002: const char *__restrict __modes, 27002: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) 27002: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: extern FILE *fopencookie (void *__restrict __magic_cookie, 27002: const char *__restrict __modes, 27002: cookie_io_functions_t __io_funcs) noexcept (true) 27002: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 27002: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) 27002: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 27002: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); 27002: 27002: 27002: 27002: 27002: 27002: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true); 27002: 27002: 27002: 27002: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 27002: int __modes, size_t __n) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 27002: size_t __size) noexcept (true); 27002: 27002: 27002: extern void setlinebuf (FILE *__stream) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fprintf (FILE *__restrict __stream, 27002: const char *__restrict __format, ...); 27002: 27002: 27002: 27002: 27002: extern int printf (const char *__restrict __format, ...); 27002: 27002: extern int sprintf (char *__restrict __s, 27002: const char *__restrict __format, ...) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 27002: __gnuc_va_list __arg); 27002: 27002: 27002: 27002: 27002: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 27002: 27002: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 27002: __gnuc_va_list __arg) noexcept (true); 27002: 27002: 27002: 27002: extern int snprintf (char *__restrict __s, size_t __maxlen, 27002: const char *__restrict __format, ...) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 27002: 27002: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 27002: const char *__restrict __format, __gnuc_va_list __arg) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 27002: 27002: 27002: 27002: 27002: 27002: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 27002: __gnuc_va_list __arg) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 27002: extern int __asprintf (char **__restrict __ptr, 27002: const char *__restrict __fmt, ...) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 27002: extern int asprintf (char **__restrict __ptr, 27002: const char *__restrict __fmt, ...) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int vdprintf (int __fd, const char *__restrict __fmt, 27002: __gnuc_va_list __arg) 27002: __attribute__ ((__format__ (__printf__, 2, 0))); 27002: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 27002: __attribute__ ((__format__ (__printf__, 2, 3))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fscanf (FILE *__restrict __stream, 27002: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 27002: 27002: extern int sscanf (const char *__restrict __s, 27002: const char *__restrict __format, ...) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 27002: # 431 "/usr/include/stdio.h" 2 3 4 27002: 27002: 27002: 27002: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf") 27002: 27002: __attribute__ ((__warn_unused_result__)); 27002: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf") 27002: __attribute__ ((__warn_unused_result__)); 27002: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc99_sscanf") 27002: 27002: ; 27002: # 459 "/usr/include/stdio.h" 3 4 27002: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 27002: __gnuc_va_list __arg) 27002: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 27002: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: extern int vsscanf (const char *__restrict __s, 27002: const char *__restrict __format, __gnuc_va_list __arg) 27002: noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); 27002: 27002: 27002: 27002: 27002: 27002: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf") 27002: 27002: 27002: 27002: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 27002: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf") 27002: 27002: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 27002: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc99_vsscanf") 27002: 27002: 27002: 27002: __attribute__ ((__format__ (__scanf__, 2, 0))); 27002: # 513 "/usr/include/stdio.h" 3 4 27002: extern int fgetc (FILE *__stream); 27002: extern int getc (FILE *__stream); 27002: 27002: 27002: 27002: 27002: 27002: extern int getchar (void); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int getc_unlocked (FILE *__stream); 27002: extern int getchar_unlocked (void); 27002: # 538 "/usr/include/stdio.h" 3 4 27002: extern int fgetc_unlocked (FILE *__stream); 27002: # 549 "/usr/include/stdio.h" 3 4 27002: extern int fputc (int __c, FILE *__stream); 27002: extern int putc (int __c, FILE *__stream); 27002: 27002: 27002: 27002: 27002: 27002: extern int putchar (int __c); 27002: # 565 "/usr/include/stdio.h" 3 4 27002: extern int fputc_unlocked (int __c, FILE *__stream); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int putc_unlocked (int __c, FILE *__stream); 27002: extern int putchar_unlocked (int __c); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int getw (FILE *__stream); 27002: 27002: 27002: extern int putw (int __w, FILE *__stream); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: # 615 "/usr/include/stdio.h" 3 4 27002: extern char *fgets_unlocked (char *__restrict __s, int __n, 27002: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: # 632 "/usr/include/stdio.h" 3 4 27002: extern __ssize_t __getdelim (char **__restrict __lineptr, 27002: size_t *__restrict __n, int __delimiter, 27002: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 27002: extern __ssize_t getdelim (char **__restrict __lineptr, 27002: size_t *__restrict __n, int __delimiter, 27002: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern __ssize_t getline (char **__restrict __lineptr, 27002: size_t *__restrict __n, 27002: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fputs (const char *__restrict __s, FILE *__restrict __stream); 27002: 27002: 27002: 27002: 27002: 27002: extern int puts (const char *__s); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int ungetc (int __c, FILE *__stream); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern size_t fread (void *__restrict __ptr, size_t __size, 27002: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 27002: size_t __n, FILE *__restrict __s); 27002: # 691 "/usr/include/stdio.h" 3 4 27002: extern int fputs_unlocked (const char *__restrict __s, 27002: FILE *__restrict __stream); 27002: # 702 "/usr/include/stdio.h" 3 4 27002: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 27002: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 27002: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 27002: size_t __n, FILE *__restrict __stream); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fseek (FILE *__stream, long int __off, int __whence); 27002: 27002: 27002: 27002: 27002: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern void rewind (FILE *__stream); 27002: # 736 "/usr/include/stdio.h" 3 4 27002: extern int fseeko (FILE *__stream, __off_t __off, int __whence); 27002: 27002: 27002: 27002: 27002: extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__)); 27002: # 760 "/usr/include/stdio.h" 3 4 27002: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); 27002: 27002: 27002: 27002: 27002: extern int fsetpos (FILE *__stream, const fpos_t *__pos); 27002: # 779 "/usr/include/stdio.h" 3 4 27002: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); 27002: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)); 27002: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); 27002: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); 27002: 27002: 27002: 27002: extern void clearerr (FILE *__stream) noexcept (true); 27002: 27002: extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern void clearerr_unlocked (FILE *__stream) noexcept (true); 27002: extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern void perror (const char *__s); 27002: 27002: 27002: 27002: 27002: extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: # 823 "/usr/include/stdio.h" 3 4 27002: extern int pclose (FILE *__stream); 27002: 27002: 27002: 27002: 27002: 27002: extern FILE *popen (const char *__command, const char *__modes) 27002: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern char *ctermid (char *__s) noexcept (true) 27002: __attribute__ ((__access__ (__write_only__, 1))); 27002: 27002: 27002: 27002: 27002: 27002: extern char *cuserid (char *__s) 27002: __attribute__ ((__access__ (__write_only__, 1))); 27002: 27002: 27002: 27002: 27002: struct obstack; 27002: 27002: 27002: extern int obstack_printf (struct obstack *__restrict __obstack, 27002: const char *__restrict __format, ...) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); 27002: extern int obstack_vprintf (struct obstack *__restrict __obstack, 27002: const char *__restrict __format, 27002: __gnuc_va_list __args) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern void flockfile (FILE *__stream) noexcept (true); 27002: 27002: 27002: 27002: extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: extern void funlockfile (FILE *__stream) noexcept (true); 27002: # 885 "/usr/include/stdio.h" 3 4 27002: extern int __uflow (FILE *); 27002: extern int __overflow (FILE *, int); 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 1 3 4 27002: # 26 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 27002: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 27002: const char *__restrict __format, ...) noexcept (true) 27002: __attribute__ ((__access__ (__write_only__, 1, 3))); 27002: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 27002: const char *__restrict __format, 27002: __gnuc_va_list __ap) noexcept (true) 27002: __attribute__ ((__access__ (__write_only__, 1, 3))); 27002: 27002: 27002: 27002: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 27002: size_t __slen, const char *__restrict __format, 27002: ...) noexcept (true) 27002: __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 27002: size_t __slen, const char *__restrict __format, 27002: __gnuc_va_list __ap) noexcept (true) 27002: __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: 27002: 27002: 27002: 27002: 27002: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 27002: const char *__restrict __format, ...); 27002: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 27002: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 27002: const char *__restrict __format, __gnuc_va_list __ap); 27002: extern int __vprintf_chk (int __flag, const char *__restrict __format, 27002: __gnuc_va_list __ap); 27002: 27002: 27002: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 27002: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 27002: extern int __vdprintf_chk (int __fd, int __flag, 27002: const char *__restrict __fmt, __gnuc_va_list __arg) 27002: __attribute__ ((__format__ (__printf__, 3, 0))); 27002: 27002: 27002: 27002: 27002: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 27002: const char *__restrict __fmt, ...) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 27002: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 27002: const char *__restrict __fmt, __gnuc_va_list __arg) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 27002: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 27002: int __flag, const char *__restrict __format, 27002: ...) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 27002: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 27002: int __flag, 27002: const char *__restrict __format, 27002: __gnuc_va_list __args) 27002: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 27002: # 90 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 27002: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 27002: FILE *__restrict __stream) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))); 27002: 27002: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 27002: size_t __size, size_t __n, 27002: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 27002: int __n, FILE *__restrict __stream) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))); 27002: 27002: 27002: 27002: 27002: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 27002: size_t __size, size_t __n, 27002: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 27002: # 891 "/usr/include/stdio.h" 2 3 4 27002: # 902 "/usr/include/stdio.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4 27002: # 46 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: getchar (void) 27002: { 27002: return getc (stdin); 27002: } 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: fgetc_unlocked (FILE *__fp) 27002: { 27002: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: getc_unlocked (FILE *__fp) 27002: { 27002: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 27002: } 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: getchar_unlocked (void) 27002: { 27002: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 27002: } 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: putchar (int __c) 27002: { 27002: return putc (__c, stdout); 27002: } 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: fputc_unlocked (int __c, FILE *__stream) 27002: { 27002: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: putc_unlocked (int __c, FILE *__stream) 27002: { 27002: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 27002: } 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: putchar_unlocked (int __c) 27002: { 27002: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 27002: getline (char **__lineptr, size_t *__n, FILE *__stream) 27002: { 27002: return __getdelim (__lineptr, __n, '\n', __stream); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) 27002: { 27002: return (((__stream)->_flags & 0x0010) != 0); 27002: } 27002: 27002: 27002: extern __inline __attribute__ ((__gnu_inline__)) int 27002: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) 27002: { 27002: return (((__stream)->_flags & 0x0020) != 0); 27002: } 27002: # 903 "/usr/include/stdio.h" 2 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 1 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) 27002: { 27002: return __builtin___sprintf_chk (__s, 2 - 1, 27002: __builtin_object_size (__s, 2 > 1), __fmt, 27002: __builtin_va_arg_pack ()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) vsprintf (char *__restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 27002: 27002: { 27002: return __builtin___vsprintf_chk (__s, 2 - 1, 27002: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 27002: } 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) 27002: 27002: { 27002: return __builtin___snprintf_chk (__s, __n, 2 - 1, 27002: __builtin_object_size (__s, 2 > 1), __fmt, 27002: __builtin_va_arg_pack ()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) vsnprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 27002: 27002: { 27002: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 27002: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 27002: { 27002: return __fprintf_chk (__stream, 2 - 1, __fmt, 27002: __builtin_va_arg_pack ()); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: printf (const char *__restrict __fmt, ...) 27002: { 27002: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: vprintf (const char *__restrict __fmt, __gnuc_va_list __ap) 27002: { 27002: 27002: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 27002: 27002: 27002: 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: vfprintf (FILE *__restrict __stream, 27002: const char *__restrict __fmt, __gnuc_va_list __ap) 27002: { 27002: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 27002: } 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: dprintf (int __fd, const char *__restrict __fmt, ...) 27002: { 27002: return __dprintf_chk (__fd, 2 - 1, __fmt, 27002: __builtin_va_arg_pack ()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 27002: { 27002: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 27002: } 27002: 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 27002: { 27002: return __asprintf_chk (__ptr, 2 - 1, __fmt, 27002: __builtin_va_arg_pack ()); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 27002: 27002: { 27002: return __asprintf_chk (__ptr, 2 - 1, __fmt, 27002: __builtin_va_arg_pack ()); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) 27002: 27002: { 27002: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 27002: __builtin_va_arg_pack ()); 27002: } 27002: # 165 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 27002: 27002: { 27002: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 27002: 27002: { 27002: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 27002: __ap); 27002: } 27002: # 198 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 27002: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) char * 27002: fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 27002: { 27002: size_t sz = __builtin_object_size (__s, 2 > 1); 27002: 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))))))) 27002: return __fgets_alias (__s, __n, __stream); 27002: 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))))) 27002: return __fgets_chk_warn (__s, sz, __n, __stream); 27002: return __fgets_chk (__s, sz, __n, __stream); 27002: } 27002: 27002: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)); 27002: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 27002: 27002: 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 27002: fread (void *__restrict __ptr, size_t __size, size_t __n, 27002: FILE *__restrict __stream) 27002: { 27002: size_t sz = __builtin_object_size (__ptr, 0); 27002: 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)))))) 27002: return __fread_alias (__ptr, __size, __n, __stream); 27002: 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)))) 27002: return __fread_chk_warn (__ptr, sz, __size, __n, __stream); 27002: return __fread_chk (__ptr, sz, __size, __n, __stream); 27002: } 27002: 27002: 27002: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) char * 27002: fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) 27002: { 27002: size_t sz = __builtin_object_size (__s, 2 > 1); 27002: 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))))))) 27002: return __fgets_unlocked_alias (__s, __n, __stream); 27002: 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))))) 27002: return __fgets_unlocked_chk_warn (__s, sz, __n, __stream); 27002: return __fgets_unlocked_chk (__s, sz, __n, __stream); 27002: } 27002: 27002: 27002: 27002: 27002: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)); 27002: 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") 27002: 27002: 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 27002: fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, 27002: FILE *__restrict __stream) 27002: { 27002: size_t sz = __builtin_object_size (__ptr, 0); 27002: 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)))))) 27002: { 27002: 27002: if (__builtin_constant_p (__size) 27002: && __builtin_constant_p (__n) 27002: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 27002: && __size * __n <= 8) 27002: { 27002: size_t __cnt = __size * __n; 27002: char *__cptr = (char *) __ptr; 27002: if (__cnt == 0) 27002: return 0; 27002: 27002: for (; __cnt > 0; --__cnt) 27002: { 27002: int __c = getc_unlocked (__stream); 27002: if (__c == (-1)) 27002: break; 27002: *__cptr++ = __c; 27002: } 27002: return (__cptr - (char *) __ptr) / __size; 27002: } 27002: 27002: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 27002: } 27002: 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)))) 27002: return __fread_unlocked_chk_warn (__ptr, sz, __size, __n, __stream); 27002: return __fread_unlocked_chk (__ptr, sz, __size, __n, __stream); 27002: 27002: } 27002: # 907 "/usr/include/stdio.h" 2 3 4 27002: 27002: 27002: } 27002: # 43 "/usr/include/c++/12/cstdio" 2 3 27002: # 96 "/usr/include/c++/12/cstdio" 3 27002: namespace std 27002: { 27002: using ::FILE; 27002: using ::fpos_t; 27002: 27002: using ::clearerr; 27002: using ::fclose; 27002: using ::feof; 27002: using ::ferror; 27002: using ::fflush; 27002: using ::fgetc; 27002: using ::fgetpos; 27002: using ::fgets; 27002: using ::fopen; 27002: using ::fprintf; 27002: using ::fputc; 27002: using ::fputs; 27002: using ::fread; 27002: using ::freopen; 27002: using ::fscanf; 27002: using ::fseek; 27002: using ::fsetpos; 27002: using ::ftell; 27002: using ::fwrite; 27002: using ::getc; 27002: using ::getchar; 27002: 27002: 27002: 27002: 27002: using ::perror; 27002: using ::printf; 27002: using ::putc; 27002: using ::putchar; 27002: using ::puts; 27002: using ::remove; 27002: using ::rename; 27002: using ::rewind; 27002: using ::scanf; 27002: using ::setbuf; 27002: using ::setvbuf; 27002: using ::sprintf; 27002: using ::sscanf; 27002: using ::tmpfile; 27002: 27002: using ::tmpnam; 27002: 27002: using ::ungetc; 27002: using ::vfprintf; 27002: using ::vprintf; 27002: using ::vsprintf; 27002: } 27002: # 157 "/usr/include/c++/12/cstdio" 3 27002: namespace __gnu_cxx 27002: { 27002: # 175 "/usr/include/c++/12/cstdio" 3 27002: using ::snprintf; 27002: using ::vfscanf; 27002: using ::vscanf; 27002: using ::vsnprintf; 27002: using ::vsscanf; 27002: 27002: } 27002: 27002: namespace std 27002: { 27002: using ::__gnu_cxx::snprintf; 27002: using ::__gnu_cxx::vfscanf; 27002: using ::__gnu_cxx::vscanf; 27002: using ::__gnu_cxx::vsnprintf; 27002: using ::__gnu_cxx::vsscanf; 27002: } 27002: # 44 "/usr/include/c++/12/ext/string_conversions.h" 2 3 27002: # 1 "/usr/include/c++/12/cerrno" 1 3 27002: # 39 "/usr/include/c++/12/cerrno" 3 27002: 27002: # 40 "/usr/include/c++/12/cerrno" 3 27002: 27002: 27002: # 1 "/usr/include/errno.h" 1 3 4 27002: # 28 "/usr/include/errno.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 1 3 4 27002: # 26 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 3 4 27002: # 1 "/usr/include/linux/errno.h" 1 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/asm/errno.h" 1 3 4 27002: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 27002: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 27002: # 2 "/usr/include/arm-linux-gnueabihf/asm/errno.h" 2 3 4 27002: # 2 "/usr/include/linux/errno.h" 2 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 2 3 4 27002: # 29 "/usr/include/errno.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: extern "C" { 27002: 27002: 27002: extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern char *program_invocation_name; 27002: extern char *program_invocation_short_name; 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 1 3 4 27002: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 3 4 27002: typedef int error_t; 27002: # 49 "/usr/include/errno.h" 2 3 4 27002: 27002: 27002: 27002: } 27002: # 43 "/usr/include/c++/12/cerrno" 2 3 27002: # 45 "/usr/include/c++/12/ext/string_conversions.h" 2 3 27002: 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: _Ret 27002: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 27002: const char* __name, const _CharT* __str, std::size_t* __idx, 27002: _Base... __base) 27002: { 27002: _Ret __ret; 27002: 27002: _CharT* __endptr; 27002: 27002: struct _Save_errno { 27002: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 27002: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 27002: int _M_errno; 27002: } const __save_errno; 27002: 27002: struct _Range_chk { 27002: static bool 27002: _S_chk(_TRet, std::false_type) { return false; } 27002: 27002: static bool 27002: _S_chk(_TRet __val, std::true_type) 27002: { 27002: return __val < _TRet(__numeric_traits::__min) 27002: || __val > _TRet(__numeric_traits::__max); 27002: } 27002: }; 27002: 27002: const _TRet __tmp = __convf(__str, &__endptr, __base...); 27002: 27002: if (__endptr == __str) 27002: std::__throw_invalid_argument(__name); 27002: else if ((*__errno_location ()) == 34 27002: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 27002: std::__throw_out_of_range(__name); 27002: else 27002: __ret = __tmp; 27002: 27002: if (__idx) 27002: *__idx = __endptr - __str; 27002: 27002: return __ret; 27002: } 27002: 27002: 27002: template 27002: _String 27002: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 27002: __builtin_va_list), std::size_t __n, 27002: const _CharT* __fmt, ...) 27002: { 27002: 27002: 27002: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 27002: * __n)); 27002: 27002: __builtin_va_list __args; 27002: __builtin_va_start(__args, __fmt); 27002: 27002: const int __len = __convf(__s, __n, __fmt, __args); 27002: 27002: __builtin_va_end(__args); 27002: 27002: return _String(__s, __s + __len); 27002: } 27002: 27002: 27002: } 27002: # 3961 "/usr/include/c++/12/bits/basic_string.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/charconv.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/charconv.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/charconv.h" 3 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace __detail 27002: { 27002: 27002: template 27002: constexpr unsigned 27002: __to_chars_len(_Tp __value, int __base = 10) noexcept 27002: { 27002: static_assert(is_integral<_Tp>::value, "implementation bug"); 27002: static_assert(is_unsigned<_Tp>::value, "implementation bug"); 27002: 27002: unsigned __n = 1; 27002: const unsigned __b2 = __base * __base; 27002: const unsigned __b3 = __b2 * __base; 27002: const unsigned long __b4 = __b3 * __base; 27002: for (;;) 27002: { 27002: if (__value < (unsigned)__base) return __n; 27002: if (__value < __b2) return __n + 1; 27002: if (__value < __b3) return __n + 2; 27002: if (__value < __b4) return __n + 3; 27002: __value /= __b4; 27002: __n += 4; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: void 27002: __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept 27002: { 27002: static_assert(is_integral<_Tp>::value, "implementation bug"); 27002: static_assert(is_unsigned<_Tp>::value, "implementation bug"); 27002: 27002: static constexpr char __digits[201] = 27002: "0001020304050607080910111213141516171819" 27002: "2021222324252627282930313233343536373839" 27002: "4041424344454647484950515253545556575859" 27002: "6061626364656667686970717273747576777879" 27002: "8081828384858687888990919293949596979899"; 27002: unsigned __pos = __len - 1; 27002: while (__val >= 100) 27002: { 27002: auto const __num = (__val % 100) * 2; 27002: __val /= 100; 27002: __first[__pos] = __digits[__num + 1]; 27002: __first[__pos - 1] = __digits[__num]; 27002: __pos -= 2; 27002: } 27002: if (__val >= 10) 27002: { 27002: auto const __num = __val * 2; 27002: __first[1] = __digits[__num + 1]; 27002: __first[0] = __digits[__num]; 27002: } 27002: else 27002: __first[0] = '0' + __val; 27002: } 27002: 27002: } 27002: 27002: } 27002: # 3962 "/usr/include/c++/12/bits/basic_string.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace __cxx11 { 27002: 27002: 27002: 27002: inline int 27002: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 27002: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 27002: __idx, __base); } 27002: 27002: inline long 27002: stol(const string& __str, size_t* __idx = 0, int __base = 10) 27002: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 27002: __idx, __base); } 27002: 27002: inline unsigned long 27002: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 27002: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 27002: __idx, __base); } 27002: 27002: inline long long 27002: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 27002: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 27002: __idx, __base); } 27002: 27002: inline unsigned long long 27002: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 27002: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 27002: __idx, __base); } 27002: 27002: 27002: inline float 27002: stof(const string& __str, size_t* __idx = 0) 27002: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 27002: 27002: inline double 27002: stod(const string& __str, size_t* __idx = 0) 27002: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 27002: 27002: inline long double 27002: stold(const string& __str, size_t* __idx = 0) 27002: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 27002: 27002: 27002: 27002: 27002: inline string 27002: to_string(int __val) 27002: 27002: noexcept 27002: 27002: { 27002: const bool __neg = __val < 0; 27002: const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; 27002: const auto __len = __detail::__to_chars_len(__uval); 27002: string __str(__neg + __len, '-'); 27002: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 27002: return __str; 27002: } 27002: 27002: inline string 27002: to_string(unsigned __val) 27002: 27002: noexcept 27002: 27002: { 27002: string __str(__detail::__to_chars_len(__val), '\0'); 27002: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 27002: return __str; 27002: } 27002: 27002: inline string 27002: to_string(long __val) 27002: 27002: noexcept 27002: 27002: { 27002: const bool __neg = __val < 0; 27002: const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; 27002: const auto __len = __detail::__to_chars_len(__uval); 27002: string __str(__neg + __len, '-'); 27002: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 27002: return __str; 27002: } 27002: 27002: inline string 27002: to_string(unsigned long __val) 27002: 27002: noexcept 27002: 27002: { 27002: string __str(__detail::__to_chars_len(__val), '\0'); 27002: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 27002: return __str; 27002: } 27002: 27002: inline string 27002: to_string(long long __val) 27002: { 27002: const bool __neg = __val < 0; 27002: const unsigned long long __uval 27002: = __neg ? (unsigned long long)~__val + 1ull : __val; 27002: const auto __len = __detail::__to_chars_len(__uval); 27002: string __str(__neg + __len, '-'); 27002: __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); 27002: return __str; 27002: } 27002: 27002: inline string 27002: to_string(unsigned long long __val) 27002: { 27002: string __str(__detail::__to_chars_len(__val), '\0'); 27002: __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); 27002: return __str; 27002: } 27002: 27002: 27002: 27002: 27002: inline string 27002: to_string(float __val) 27002: { 27002: const int __n = 27002: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 27002: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 27002: "%f", __val); 27002: } 27002: 27002: inline string 27002: to_string(double __val) 27002: { 27002: const int __n = 27002: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 27002: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 27002: "%f", __val); 27002: } 27002: 27002: inline string 27002: to_string(long double __val) 27002: { 27002: const int __n = 27002: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 27002: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 27002: "%Lf", __val); 27002: } 27002: 27002: 27002: 27002: inline int 27002: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 27002: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 27002: __idx, __base); } 27002: 27002: inline long 27002: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 27002: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 27002: __idx, __base); } 27002: 27002: inline unsigned long 27002: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 27002: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 27002: __idx, __base); } 27002: 27002: inline long long 27002: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 27002: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 27002: __idx, __base); } 27002: 27002: inline unsigned long long 27002: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 27002: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 27002: __idx, __base); } 27002: 27002: 27002: inline float 27002: stof(const wstring& __str, size_t* __idx = 0) 27002: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 27002: 27002: inline double 27002: stod(const wstring& __str, size_t* __idx = 0) 27002: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 27002: 27002: inline long double 27002: stold(const wstring& __str, size_t* __idx = 0) 27002: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 27002: 27002: 27002: 27002: inline wstring 27002: to_wstring(int __val) 27002: { return __gnu_cxx::__to_xstring(&std::vswprintf, 4 * sizeof(int), 27002: L"%d", __val); } 27002: 27002: inline wstring 27002: to_wstring(unsigned __val) 27002: { return __gnu_cxx::__to_xstring(&std::vswprintf, 27002: 4 * sizeof(unsigned), 27002: L"%u", __val); } 27002: 27002: inline wstring 27002: to_wstring(long __val) 27002: { return __gnu_cxx::__to_xstring(&std::vswprintf, 4 * sizeof(long), 27002: L"%ld", __val); } 27002: 27002: inline wstring 27002: to_wstring(unsigned long __val) 27002: { return __gnu_cxx::__to_xstring(&std::vswprintf, 27002: 4 * sizeof(unsigned long), 27002: L"%lu", __val); } 27002: 27002: inline wstring 27002: to_wstring(long long __val) 27002: { return __gnu_cxx::__to_xstring(&std::vswprintf, 27002: 4 * sizeof(long long), 27002: L"%lld", __val); } 27002: 27002: inline wstring 27002: to_wstring(unsigned long long __val) 27002: { return __gnu_cxx::__to_xstring(&std::vswprintf, 27002: 4 * sizeof(unsigned long long), 27002: L"%llu", __val); } 27002: 27002: inline wstring 27002: to_wstring(float __val) 27002: { 27002: const int __n = 27002: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 27002: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 27002: L"%f", __val); 27002: } 27002: 27002: inline wstring 27002: to_wstring(double __val) 27002: { 27002: const int __n = 27002: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 27002: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 27002: L"%f", __val); 27002: } 27002: 27002: inline wstring 27002: to_wstring(long double __val) 27002: { 27002: const int __n = 27002: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 27002: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 27002: L"%Lf", __val); 27002: } 27002: 27002: 27002: 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const string& __s) const noexcept 27002: { return std::_Hash_impl::hash(__s.data(), __s.length()); } 27002: }; 27002: 27002: template<> 27002: struct __is_fast_hash> : std::false_type 27002: { }; 27002: 27002: 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const wstring& __s) const noexcept 27002: { return std::_Hash_impl::hash(__s.data(), 27002: __s.length() * sizeof(wchar_t)); } 27002: }; 27002: 27002: template<> 27002: struct __is_fast_hash> : std::false_type 27002: { }; 27002: # 4281 "/usr/include/c++/12/bits/basic_string.h" 3 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const u16string& __s) const noexcept 27002: { return std::_Hash_impl::hash(__s.data(), 27002: __s.length() * sizeof(char16_t)); } 27002: }; 27002: 27002: template<> 27002: struct __is_fast_hash> : std::false_type 27002: { }; 27002: 27002: 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const u32string& __s) const noexcept 27002: { return std::_Hash_impl::hash(__s.data(), 27002: __s.length() * sizeof(char32_t)); } 27002: }; 27002: 27002: template<> 27002: struct __is_fast_hash> : std::false_type 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: inline namespace literals 27002: { 27002: inline namespace string_literals 27002: { 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wliteral-suffix" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: inline basic_string 27002: operator""s(const char* __str, size_t __len) 27002: { return basic_string{__str, __len}; } 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: inline basic_string 27002: operator""s(const wchar_t* __str, size_t __len) 27002: { return basic_string{__str, __len}; } 27002: # 4344 "/usr/include/c++/12/bits/basic_string.h" 3 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: inline basic_string 27002: operator""s(const char16_t* __str, size_t __len) 27002: { return basic_string{__str, __len}; } 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: inline basic_string 27002: operator""s(const char32_t* __str, size_t __len) 27002: { return basic_string{__str, __len}; } 27002: 27002: 27002: #pragma GCC diagnostic pop 27002: } 27002: } 27002: 27002: 27002: namespace __detail::__variant 27002: { 27002: template struct _Never_valueless_alt; 27002: 27002: 27002: 27002: template 27002: struct _Never_valueless_alt> 27002: : __and_< 27002: is_nothrow_move_constructible>, 27002: is_nothrow_move_assignable> 27002: >::type 27002: { }; 27002: } 27002: 27002: 27002: 27002: 27002: } 27002: # 54 "/usr/include/c++/12/string" 2 3 27002: # 1 "/usr/include/c++/12/bits/basic_string.tcc" 1 3 27002: # 42 "/usr/include/c++/12/bits/basic_string.tcc" 3 27002: 27002: # 43 "/usr/include/c++/12/bits/basic_string.tcc" 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: template 27002: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>::npos; 27002: 27002: template 27002: 27002: void 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: swap(basic_string& __s) noexcept 27002: { 27002: if (this == std::__addressof(__s)) 27002: return; 27002: 27002: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 27002: 27002: if (_M_is_local()) 27002: if (__s._M_is_local()) 27002: { 27002: if (length() && __s.length()) 27002: { 27002: _CharT __tmp_data[_S_local_capacity + 1]; 27002: traits_type::copy(__tmp_data, __s._M_local_buf, 27002: __s.length() + 1); 27002: traits_type::copy(__s._M_local_buf, _M_local_buf, 27002: length() + 1); 27002: traits_type::copy(_M_local_buf, __tmp_data, 27002: __s.length() + 1); 27002: } 27002: else if (__s.length()) 27002: { 27002: traits_type::copy(_M_local_buf, __s._M_local_buf, 27002: __s.length() + 1); 27002: _M_length(__s.length()); 27002: __s._M_set_length(0); 27002: return; 27002: } 27002: else if (length()) 27002: { 27002: traits_type::copy(__s._M_local_buf, _M_local_buf, 27002: length() + 1); 27002: __s._M_length(length()); 27002: _M_set_length(0); 27002: return; 27002: } 27002: } 27002: else 27002: { 27002: const size_type __tmp_capacity = __s._M_allocated_capacity; 27002: traits_type::copy(__s._M_local_buf, _M_local_buf, 27002: length() + 1); 27002: _M_data(__s._M_data()); 27002: __s._M_data(__s._M_local_buf); 27002: _M_capacity(__tmp_capacity); 27002: } 27002: else 27002: { 27002: const size_type __tmp_capacity = _M_allocated_capacity; 27002: if (__s._M_is_local()) 27002: { 27002: traits_type::copy(_M_local_buf, __s._M_local_buf, 27002: __s.length() + 1); 27002: __s._M_data(_M_data()); 27002: _M_data(_M_local_buf); 27002: } 27002: else 27002: { 27002: pointer __tmp_ptr = _M_data(); 27002: _M_data(__s._M_data()); 27002: __s._M_data(__tmp_ptr); 27002: _M_capacity(__s._M_allocated_capacity); 27002: } 27002: __s._M_capacity(__tmp_capacity); 27002: } 27002: 27002: const size_type __tmp_length = length(); 27002: _M_length(__s.length()); 27002: __s._M_length(__tmp_length); 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::pointer 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_create(size_type& __capacity, size_type __old_capacity) 27002: { 27002: 27002: 27002: if (__capacity > max_size()) 27002: std::__throw_length_error(("basic_string::_M_create")); 27002: 27002: 27002: 27002: 27002: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 27002: { 27002: __capacity = 2 * __old_capacity; 27002: 27002: if (__capacity > max_size()) 27002: __capacity = max_size(); 27002: } 27002: 27002: 27002: 27002: return _Alloc_traits::allocate(_M_get_allocator(), __capacity + 1); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: template 27002: 27002: void 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_construct(_InIterator __beg, _InIterator __end, 27002: std::input_iterator_tag) 27002: { 27002: size_type __len = 0; 27002: size_type __capacity = size_type(_S_local_capacity); 27002: 27002: pointer __p = _M_use_local_data(); 27002: 27002: while (__beg != __end && __len < __capacity) 27002: { 27002: __p[__len++] = *__beg; 27002: ++__beg; 27002: } 27002: 27002: struct _Guard 27002: { 27002: 27002: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 27002: 27002: 27002: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 27002: 27002: basic_string* _M_guarded; 27002: } __guard(this); 27002: 27002: while (__beg != __end) 27002: { 27002: if (__len == __capacity) 27002: { 27002: 27002: __capacity = __len + 1; 27002: pointer __another = _M_create(__capacity, __len); 27002: this->_S_copy(__another, _M_data(), __len); 27002: _M_dispose(); 27002: _M_data(__another); 27002: _M_capacity(__capacity); 27002: } 27002: traits_type::assign(_M_data()[__len++], *__beg); 27002: ++__beg; 27002: } 27002: 27002: __guard._M_guarded = 0; 27002: 27002: _M_set_length(__len); 27002: } 27002: 27002: template 27002: template 27002: 27002: void 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_construct(_InIterator __beg, _InIterator __end, 27002: std::forward_iterator_tag) 27002: { 27002: size_type __dnew = static_cast(std::distance(__beg, __end)); 27002: 27002: if (__dnew > size_type(_S_local_capacity)) 27002: { 27002: _M_data(_M_create(__dnew, size_type(0))); 27002: _M_capacity(__dnew); 27002: } 27002: else 27002: _M_use_local_data(); 27002: 27002: 27002: struct _Guard 27002: { 27002: 27002: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 27002: 27002: 27002: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 27002: 27002: basic_string* _M_guarded; 27002: } __guard(this); 27002: 27002: this->_S_copy_chars(_M_data(), __beg, __end); 27002: 27002: __guard._M_guarded = 0; 27002: 27002: _M_set_length(__dnew); 27002: } 27002: 27002: template 27002: 27002: void 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_construct(size_type __n, _CharT __c) 27002: { 27002: if (__n > size_type(_S_local_capacity)) 27002: { 27002: _M_data(_M_create(__n, size_type(0))); 27002: _M_capacity(__n); 27002: } 27002: else 27002: _M_use_local_data(); 27002: 27002: if (__n) 27002: this->_S_assign(_M_data(), __n, __c); 27002: 27002: _M_set_length(__n); 27002: } 27002: 27002: template 27002: 27002: void 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_assign(const basic_string& __str) 27002: { 27002: if (this != std::__addressof(__str)) 27002: { 27002: const size_type __rsize = __str.length(); 27002: const size_type __capacity = capacity(); 27002: 27002: if (__rsize > __capacity) 27002: { 27002: size_type __new_capacity = __rsize; 27002: pointer __tmp = _M_create(__new_capacity, __capacity); 27002: _M_dispose(); 27002: _M_data(__tmp); 27002: _M_capacity(__new_capacity); 27002: } 27002: 27002: if (__rsize) 27002: this->_S_copy(_M_data(), __str._M_data(), __rsize); 27002: 27002: _M_set_length(__rsize); 27002: } 27002: } 27002: 27002: template 27002: 27002: void 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: reserve(size_type __res) 27002: { 27002: const size_type __capacity = capacity(); 27002: 27002: 27002: 27002: 27002: if (__res <= __capacity) 27002: return; 27002: 27002: pointer __tmp = _M_create(__res, __capacity); 27002: this->_S_copy(__tmp, _M_data(), length() + 1); 27002: _M_dispose(); 27002: _M_data(__tmp); 27002: _M_capacity(__res); 27002: } 27002: 27002: template 27002: 27002: void 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 27002: size_type __len2) 27002: { 27002: const size_type __how_much = length() - __pos - __len1; 27002: 27002: size_type __new_capacity = length() + __len2 - __len1; 27002: pointer __r = _M_create(__new_capacity, capacity()); 27002: 27002: if (__pos) 27002: this->_S_copy(__r, _M_data(), __pos); 27002: if (__s && __len2) 27002: this->_S_copy(__r + __pos, __s, __len2); 27002: if (__how_much) 27002: this->_S_copy(__r + __pos + __len2, 27002: _M_data() + __pos + __len1, __how_much); 27002: 27002: _M_dispose(); 27002: _M_data(__r); 27002: _M_capacity(__new_capacity); 27002: } 27002: 27002: template 27002: 27002: void 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_erase(size_type __pos, size_type __n) 27002: { 27002: const size_type __how_much = length() - __pos - __n; 27002: 27002: if (__how_much && __n) 27002: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 27002: 27002: _M_set_length(length() - __n); 27002: } 27002: 27002: template 27002: 27002: void 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: reserve() 27002: { 27002: if (_M_is_local()) 27002: return; 27002: 27002: const size_type __length = length(); 27002: const size_type __capacity = _M_allocated_capacity; 27002: 27002: if (__length <= size_type(_S_local_capacity)) 27002: { 27002: this->_S_copy(_M_use_local_data(), _M_data(), __length + 1); 27002: _M_destroy(__capacity); 27002: _M_data(_M_local_data()); 27002: } 27002: 27002: else if (__length < __capacity) 27002: try 27002: { 27002: pointer __tmp 27002: = _Alloc_traits::allocate(_M_get_allocator(), __length + 1); 27002: this->_S_copy(__tmp, _M_data(), __length + 1); 27002: _M_dispose(); 27002: _M_data(__tmp); 27002: _M_capacity(__length); 27002: } 27002: catch (const __cxxabiv1::__forced_unwind&) 27002: { throw; } 27002: catch (...) 27002: { } 27002: 27002: } 27002: 27002: template 27002: 27002: void 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: resize(size_type __n, _CharT __c) 27002: { 27002: const size_type __size = this->size(); 27002: if (__size < __n) 27002: this->append(__n - __size, __c); 27002: else if (__n < __size) 27002: this->_M_set_length(__n); 27002: } 27002: 27002: template 27002: 27002: basic_string<_CharT, _Traits, _Alloc>& 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_append(const _CharT* __s, size_type __n) 27002: { 27002: const size_type __len = __n + this->size(); 27002: 27002: if (__len <= this->capacity()) 27002: { 27002: if (__n) 27002: this->_S_copy(this->_M_data() + this->size(), __s, __n); 27002: } 27002: else 27002: this->_M_mutate(this->size(), size_type(0), __s, __n); 27002: 27002: this->_M_set_length(__len); 27002: return *this; 27002: } 27002: 27002: template 27002: template 27002: 27002: basic_string<_CharT, _Traits, _Alloc>& 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 27002: _InputIterator __k1, _InputIterator __k2, 27002: std::__false_type) 27002: { 27002: 27002: 27002: const basic_string __s(__k1, __k2, this->get_allocator()); 27002: const size_type __n1 = __i2 - __i1; 27002: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 27002: __s.size()); 27002: } 27002: 27002: template 27002: 27002: basic_string<_CharT, _Traits, _Alloc>& 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 27002: _CharT __c) 27002: { 27002: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 27002: 27002: const size_type __old_size = this->size(); 27002: const size_type __new_size = __old_size + __n2 - __n1; 27002: 27002: if (__new_size <= this->capacity()) 27002: { 27002: pointer __p = this->_M_data() + __pos1; 27002: 27002: const size_type __how_much = __old_size - __pos1 - __n1; 27002: if (__how_much && __n1 != __n2) 27002: this->_S_move(__p + __n2, __p + __n1, __how_much); 27002: } 27002: else 27002: this->_M_mutate(__pos1, __n1, 0, __n2); 27002: 27002: if (__n2) 27002: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 27002: 27002: this->_M_set_length(__new_size); 27002: return *this; 27002: } 27002: 27002: template 27002: 27002: basic_string<_CharT, _Traits, _Alloc>& 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 27002: const size_type __len2) 27002: { 27002: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 27002: 27002: const size_type __old_size = this->size(); 27002: const size_type __new_size = __old_size + __len2 - __len1; 27002: 27002: if (__new_size <= this->capacity()) 27002: { 27002: pointer __p = this->_M_data() + __pos; 27002: 27002: const size_type __how_much = __old_size - __pos - __len1; 27002: # 503 "/usr/include/c++/12/bits/basic_string.tcc" 3 27002: if (_M_disjunct(__s)) 27002: { 27002: if (__how_much && __len1 != __len2) 27002: this->_S_move(__p + __len2, __p + __len1, __how_much); 27002: if (__len2) 27002: this->_S_copy(__p, __s, __len2); 27002: } 27002: else 27002: { 27002: 27002: if (__len2 && __len2 <= __len1) 27002: this->_S_move(__p, __s, __len2); 27002: if (__how_much && __len1 != __len2) 27002: this->_S_move(__p + __len2, __p + __len1, __how_much); 27002: if (__len2 > __len1) 27002: { 27002: if (__s + __len2 <= __p + __len1) 27002: this->_S_move(__p, __s, __len2); 27002: else if (__s >= __p + __len1) 27002: { 27002: 27002: 27002: const size_type __poff = (__s - __p) + (__len2 - __len1); 27002: this->_S_copy(__p, __p + __poff, __len2); 27002: } 27002: else 27002: { 27002: const size_type __nleft = (__p + __len1) - __s; 27002: this->_S_move(__p, __s, __nleft); 27002: this->_S_copy(__p + __nleft, __p + __len2, 27002: __len2 - __nleft); 27002: } 27002: } 27002: } 27002: } 27002: else 27002: this->_M_mutate(__pos, __len1, __s, __len2); 27002: 27002: this->_M_set_length(__new_size); 27002: return *this; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: copy(_CharT* __s, size_type __n, size_type __pos) const 27002: { 27002: _M_check(__pos, "basic_string::copy"); 27002: __n = _M_limit(__pos, __n); 27002: ; 27002: if (__n) 27002: _S_copy(__s, _M_data() + __pos, __n); 27002: 27002: return __n; 27002: } 27002: # 603 "/usr/include/c++/12/bits/basic_string.tcc" 3 27002: template 27002: 27002: basic_string<_CharT, _Traits, _Alloc> 27002: operator+(const _CharT* __lhs, 27002: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: { 27002: ; 27002: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 27002: typedef typename __string_type::size_type __size_type; 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind<_CharT>::other _Char_alloc_type; 27002: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 27002: const __size_type __len = _Traits::length(__lhs); 27002: __string_type __str(_Alloc_traits::_S_select_on_copy( 27002: __rhs.get_allocator())); 27002: __str.reserve(__len + __rhs.size()); 27002: __str.append(__lhs, __len); 27002: __str.append(__rhs); 27002: return __str; 27002: } 27002: 27002: template 27002: 27002: basic_string<_CharT, _Traits, _Alloc> 27002: operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) 27002: { 27002: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 27002: typedef typename __string_type::size_type __size_type; 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind<_CharT>::other _Char_alloc_type; 27002: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 27002: __string_type __str(_Alloc_traits::_S_select_on_copy( 27002: __rhs.get_allocator())); 27002: const __size_type __len = __rhs.size(); 27002: __str.reserve(__len + 1); 27002: __str.append(__size_type(1), __lhs); 27002: __str.append(__rhs); 27002: return __str; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: find(const _CharT* __s, size_type __pos, size_type __n) const 27002: noexcept 27002: { 27002: ; 27002: const size_type __size = this->size(); 27002: 27002: if (__n == 0) 27002: return __pos <= __size ? __pos : npos; 27002: if (__pos >= __size) 27002: return npos; 27002: 27002: const _CharT __elem0 = __s[0]; 27002: const _CharT* const __data = data(); 27002: const _CharT* __first = __data + __pos; 27002: const _CharT* const __last = __data + __size; 27002: size_type __len = __size - __pos; 27002: 27002: while (__len >= __n) 27002: { 27002: 27002: __first = traits_type::find(__first, __len - __n + 1, __elem0); 27002: if (!__first) 27002: return npos; 27002: 27002: 27002: 27002: if (traits_type::compare(__first, __s, __n) == 0) 27002: return __first - __data; 27002: __len = __last - ++__first; 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: find(_CharT __c, size_type __pos) const noexcept 27002: { 27002: size_type __ret = npos; 27002: const size_type __size = this->size(); 27002: if (__pos < __size) 27002: { 27002: const _CharT* __data = _M_data(); 27002: const size_type __n = __size - __pos; 27002: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 27002: if (__p) 27002: __ret = __p - __data; 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: rfind(const _CharT* __s, size_type __pos, size_type __n) const 27002: noexcept 27002: { 27002: ; 27002: const size_type __size = this->size(); 27002: if (__n <= __size) 27002: { 27002: __pos = std::min(size_type(__size - __n), __pos); 27002: const _CharT* __data = _M_data(); 27002: do 27002: { 27002: if (traits_type::compare(__data + __pos, __s, __n) == 0) 27002: return __pos; 27002: } 27002: while (__pos-- > 0); 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: rfind(_CharT __c, size_type __pos) const noexcept 27002: { 27002: size_type __size = this->size(); 27002: if (__size) 27002: { 27002: if (--__size > __pos) 27002: __size = __pos; 27002: for (++__size; __size-- > 0; ) 27002: if (traits_type::eq(_M_data()[__size], __c)) 27002: return __size; 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 27002: noexcept 27002: { 27002: ; 27002: for (; __n && __pos < this->size(); ++__pos) 27002: { 27002: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 27002: if (__p) 27002: return __pos; 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 27002: noexcept 27002: { 27002: ; 27002: size_type __size = this->size(); 27002: if (__size && __n) 27002: { 27002: if (--__size > __pos) 27002: __size = __pos; 27002: do 27002: { 27002: if (traits_type::find(__s, __n, _M_data()[__size])) 27002: return __size; 27002: } 27002: while (__size-- != 0); 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 27002: noexcept 27002: { 27002: ; 27002: for (; __pos < this->size(); ++__pos) 27002: if (!traits_type::find(__s, __n, _M_data()[__pos])) 27002: return __pos; 27002: return npos; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: find_first_not_of(_CharT __c, size_type __pos) const noexcept 27002: { 27002: for (; __pos < this->size(); ++__pos) 27002: if (!traits_type::eq(_M_data()[__pos], __c)) 27002: return __pos; 27002: return npos; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 27002: noexcept 27002: { 27002: ; 27002: size_type __size = this->size(); 27002: if (__size) 27002: { 27002: if (--__size > __pos) 27002: __size = __pos; 27002: do 27002: { 27002: if (!traits_type::find(__s, __n, _M_data()[__size])) 27002: return __size; 27002: } 27002: while (__size--); 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: 27002: typename basic_string<_CharT, _Traits, _Alloc>::size_type 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: find_last_not_of(_CharT __c, size_type __pos) const noexcept 27002: { 27002: size_type __size = this->size(); 27002: if (__size) 27002: { 27002: if (--__size > __pos) 27002: __size = __pos; 27002: do 27002: { 27002: if (!traits_type::eq(_M_data()[__size], __c)) 27002: return __size; 27002: } 27002: while (__size--); 27002: } 27002: return npos; 27002: } 27002: 27002: template 27002: 27002: int 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: compare(size_type __pos, size_type __n, const basic_string& __str) const 27002: { 27002: _M_check(__pos, "basic_string::compare"); 27002: __n = _M_limit(__pos, __n); 27002: const size_type __osize = __str.size(); 27002: const size_type __len = std::min(__n, __osize); 27002: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 27002: if (!__r) 27002: __r = _S_compare(__n, __osize); 27002: return __r; 27002: } 27002: 27002: template 27002: 27002: int 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: compare(size_type __pos1, size_type __n1, const basic_string& __str, 27002: size_type __pos2, size_type __n2) const 27002: { 27002: _M_check(__pos1, "basic_string::compare"); 27002: __str._M_check(__pos2, "basic_string::compare"); 27002: __n1 = _M_limit(__pos1, __n1); 27002: __n2 = __str._M_limit(__pos2, __n2); 27002: const size_type __len = std::min(__n1, __n2); 27002: int __r = traits_type::compare(_M_data() + __pos1, 27002: __str.data() + __pos2, __len); 27002: if (!__r) 27002: __r = _S_compare(__n1, __n2); 27002: return __r; 27002: } 27002: 27002: template 27002: 27002: int 27002: basic_string<_CharT, _Traits, _Alloc>:: 27002: compare(const _CharT* __s) const noexcept 27002: { 27002: ; 27002: const size_type __size = this->size(); 27002: const size_type __osize = traits_type::length(__s); 27002: const size_type __len = std::min(__size, __osize); 27002: int __r = traits_type::compare(_M_data(), __s, __len); 27002: if (!__r) 27002: __r = _S_compare(__size, __osize); 27002: return __r; 27002: } 27002: 27002: template 27002: 27002: int 27002: basic_string <_CharT, _Traits, _Alloc>:: 27002: compare(size_type __pos, size_type __n1, const _CharT* __s) const 27002: { 27002: ; 27002: _M_check(__pos, "basic_string::compare"); 27002: __n1 = _M_limit(__pos, __n1); 27002: const size_type __osize = traits_type::length(__s); 27002: const size_type __len = std::min(__n1, __osize); 27002: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 27002: if (!__r) 27002: __r = _S_compare(__n1, __osize); 27002: return __r; 27002: } 27002: 27002: template 27002: 27002: int 27002: basic_string <_CharT, _Traits, _Alloc>:: 27002: compare(size_type __pos, size_type __n1, const _CharT* __s, 27002: size_type __n2) const 27002: { 27002: ; 27002: _M_check(__pos, "basic_string::compare"); 27002: __n1 = _M_limit(__pos, __n1); 27002: const size_type __len = std::min(__n1, __n2); 27002: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 27002: if (!__r) 27002: __r = _S_compare(__n1, __n2); 27002: return __r; 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: operator>>(basic_istream<_CharT, _Traits>& __in, 27002: basic_string<_CharT, _Traits, _Alloc>& __str) 27002: { 27002: typedef basic_istream<_CharT, _Traits> __istream_type; 27002: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 27002: typedef typename __istream_type::ios_base __ios_base; 27002: typedef typename __istream_type::int_type __int_type; 27002: typedef typename __string_type::size_type __size_type; 27002: typedef ctype<_CharT> __ctype_type; 27002: typedef typename __ctype_type::ctype_base __ctype_base; 27002: 27002: __size_type __extracted = 0; 27002: typename __ios_base::iostate __err = __ios_base::goodbit; 27002: typename __istream_type::sentry __cerb(__in, false); 27002: if (__cerb) 27002: { 27002: try 27002: { 27002: 27002: __str.erase(); 27002: _CharT __buf[128]; 27002: __size_type __len = 0; 27002: const streamsize __w = __in.width(); 27002: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 27002: : __str.max_size(); 27002: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 27002: const __int_type __eof = _Traits::eof(); 27002: __int_type __c = __in.rdbuf()->sgetc(); 27002: 27002: while (__extracted < __n 27002: && !_Traits::eq_int_type(__c, __eof) 27002: && !__ct.is(__ctype_base::space, 27002: _Traits::to_char_type(__c))) 27002: { 27002: if (__len == sizeof(__buf) / sizeof(_CharT)) 27002: { 27002: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 27002: __len = 0; 27002: } 27002: __buf[__len++] = _Traits::to_char_type(__c); 27002: ++__extracted; 27002: __c = __in.rdbuf()->snextc(); 27002: } 27002: __str.append(__buf, __len); 27002: 27002: if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) 27002: __err |= __ios_base::eofbit; 27002: __in.width(0); 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: __in._M_setstate(__ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { 27002: 27002: 27002: 27002: __in._M_setstate(__ios_base::badbit); 27002: } 27002: } 27002: 27002: if (!__extracted) 27002: __err |= __ios_base::failbit; 27002: if (__err) 27002: __in.setstate(__err); 27002: return __in; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: getline(basic_istream<_CharT, _Traits>& __in, 27002: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 27002: { 27002: typedef basic_istream<_CharT, _Traits> __istream_type; 27002: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 27002: typedef typename __istream_type::ios_base __ios_base; 27002: typedef typename __istream_type::int_type __int_type; 27002: typedef typename __string_type::size_type __size_type; 27002: 27002: __size_type __extracted = 0; 27002: const __size_type __n = __str.max_size(); 27002: typename __ios_base::iostate __err = __ios_base::goodbit; 27002: typename __istream_type::sentry __cerb(__in, true); 27002: if (__cerb) 27002: { 27002: try 27002: { 27002: __str.erase(); 27002: const __int_type __idelim = _Traits::to_int_type(__delim); 27002: const __int_type __eof = _Traits::eof(); 27002: __int_type __c = __in.rdbuf()->sgetc(); 27002: 27002: while (__extracted < __n 27002: && !_Traits::eq_int_type(__c, __eof) 27002: && !_Traits::eq_int_type(__c, __idelim)) 27002: { 27002: __str += _Traits::to_char_type(__c); 27002: ++__extracted; 27002: __c = __in.rdbuf()->snextc(); 27002: } 27002: 27002: if (_Traits::eq_int_type(__c, __eof)) 27002: __err |= __ios_base::eofbit; 27002: else if (_Traits::eq_int_type(__c, __idelim)) 27002: { 27002: ++__extracted; 27002: __in.rdbuf()->sbumpc(); 27002: } 27002: else 27002: __err |= __ios_base::failbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: __in._M_setstate(__ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { 27002: 27002: 27002: 27002: __in._M_setstate(__ios_base::badbit); 27002: } 27002: } 27002: if (!__extracted) 27002: __err |= __ios_base::failbit; 27002: if (__err) 27002: __in.setstate(__err); 27002: return __in; 27002: } 27002: # 1082 "/usr/include/c++/12/bits/basic_string.tcc" 3 27002: extern template class basic_string; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern template 27002: basic_istream& 27002: operator>>(basic_istream&, string&); 27002: extern template 27002: basic_ostream& 27002: operator<<(basic_ostream&, const string&); 27002: extern template 27002: basic_istream& 27002: getline(basic_istream&, string&, char); 27002: extern template 27002: basic_istream& 27002: getline(basic_istream&, string&); 27002: 27002: 27002: 27002: extern template class basic_string; 27002: 27002: 27002: 27002: 27002: 27002: extern template 27002: basic_istream& 27002: operator>>(basic_istream&, wstring&); 27002: extern template 27002: basic_ostream& 27002: operator<<(basic_ostream&, const wstring&); 27002: extern template 27002: basic_istream& 27002: getline(basic_istream&, wstring&, wchar_t); 27002: extern template 27002: basic_istream& 27002: getline(basic_istream&, wstring&); 27002: 27002: 27002: 27002: 27002: } 27002: # 55 "/usr/include/c++/12/string" 2 3 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace pmr { 27002: template class polymorphic_allocator; 27002: template> 27002: using basic_string = std::basic_string<_CharT, _Traits, 27002: polymorphic_allocator<_CharT>>; 27002: using string = basic_string; 27002: 27002: 27002: 27002: using u16string = basic_string; 27002: using u32string = basic_string; 27002: using wstring = basic_string; 27002: } 27002: 27002: template 27002: struct __hash_string_base 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const _Str& __s) const noexcept 27002: { return hash>{}(__s); } 27002: }; 27002: 27002: template<> 27002: struct hash 27002: : public __hash_string_base 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct hash 27002: : public __hash_string_base 27002: { }; 27002: template<> 27002: struct hash 27002: : public __hash_string_base 27002: { }; 27002: template<> 27002: struct hash 27002: : public __hash_string_base 27002: { }; 27002: 27002: 27002: } 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: # 1 "/usr/include/c++/12/unordered_set" 1 3 27002: # 32 "/usr/include/c++/12/unordered_set" 3 27002: 27002: # 33 "/usr/include/c++/12/unordered_set" 3 27002: # 47 "/usr/include/c++/12/unordered_set" 3 27002: # 1 "/usr/include/c++/12/bits/unordered_set.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: template 27002: using __uset_traits = __detail::_Hashtable_traits<_Cache, true, true>; 27002: 27002: template, 27002: typename _Pred = std::equal_to<_Value>, 27002: typename _Alloc = std::allocator<_Value>, 27002: typename _Tr = __uset_traits<__cache_default<_Value, _Hash>::value>> 27002: using __uset_hashtable = _Hashtable<_Value, _Value, _Alloc, 27002: __detail::_Identity, _Pred, _Hash, 27002: __detail::_Mod_range_hashing, 27002: __detail::_Default_ranged_hash, 27002: __detail::_Prime_rehash_policy, _Tr>; 27002: 27002: 27002: template 27002: using __umset_traits = __detail::_Hashtable_traits<_Cache, true, false>; 27002: 27002: template, 27002: typename _Pred = std::equal_to<_Value>, 27002: typename _Alloc = std::allocator<_Value>, 27002: typename _Tr = __umset_traits<__cache_default<_Value, _Hash>::value>> 27002: using __umset_hashtable = _Hashtable<_Value, _Value, _Alloc, 27002: __detail::_Identity, 27002: _Pred, _Hash, 27002: __detail::_Mod_range_hashing, 27002: __detail::_Default_ranged_hash, 27002: __detail::_Prime_rehash_policy, _Tr>; 27002: 27002: template 27002: class unordered_multiset; 27002: # 93 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: template, 27002: typename _Pred = equal_to<_Value>, 27002: typename _Alloc = allocator<_Value>> 27002: class unordered_set 27002: { 27002: typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 27002: _Hashtable _M_h; 27002: 27002: public: 27002: 27002: 27002: 27002: typedef typename _Hashtable::key_type key_type; 27002: typedef typename _Hashtable::value_type value_type; 27002: typedef typename _Hashtable::hasher hasher; 27002: typedef typename _Hashtable::key_equal key_equal; 27002: typedef typename _Hashtable::allocator_type allocator_type; 27002: 27002: 27002: 27002: 27002: typedef typename _Hashtable::pointer pointer; 27002: typedef typename _Hashtable::const_pointer const_pointer; 27002: typedef typename _Hashtable::reference reference; 27002: typedef typename _Hashtable::const_reference const_reference; 27002: typedef typename _Hashtable::iterator iterator; 27002: typedef typename _Hashtable::const_iterator const_iterator; 27002: typedef typename _Hashtable::local_iterator local_iterator; 27002: typedef typename _Hashtable::const_local_iterator const_local_iterator; 27002: typedef typename _Hashtable::size_type size_type; 27002: typedef typename _Hashtable::difference_type difference_type; 27002: 27002: 27002: 27002: using node_type = typename _Hashtable::node_type; 27002: using insert_return_type = typename _Hashtable::insert_return_type; 27002: 27002: 27002: 27002: 27002: 27002: unordered_set() = default; 27002: # 144 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: explicit 27002: unordered_set(size_type __n, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__n, __hf, __eql, __a) 27002: { } 27002: # 165 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: template 27002: unordered_set(_InputIterator __first, _InputIterator __last, 27002: size_type __n = 0, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__first, __last, __n, __hf, __eql, __a) 27002: { } 27002: 27002: 27002: unordered_set(const unordered_set&) = default; 27002: 27002: 27002: unordered_set(unordered_set&&) = default; 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: unordered_set(const allocator_type& __a) 27002: : _M_h(__a) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: unordered_set(const unordered_set& __uset, 27002: const allocator_type& __a) 27002: : _M_h(__uset._M_h, __a) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: unordered_set(unordered_set&& __uset, 27002: const allocator_type& __a) 27002: noexcept( noexcept(_Hashtable(std::move(__uset._M_h), __a)) ) 27002: : _M_h(std::move(__uset._M_h), __a) 27002: { } 27002: # 221 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: unordered_set(initializer_list __l, 27002: size_type __n = 0, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__l, __n, __hf, __eql, __a) 27002: { } 27002: 27002: unordered_set(size_type __n, const allocator_type& __a) 27002: : unordered_set(__n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: unordered_set(size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_set(__n, __hf, key_equal(), __a) 27002: { } 27002: 27002: template 27002: unordered_set(_InputIterator __first, _InputIterator __last, 27002: size_type __n, 27002: const allocator_type& __a) 27002: : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: template 27002: unordered_set(_InputIterator __first, _InputIterator __last, 27002: size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_set(__first, __last, __n, __hf, key_equal(), __a) 27002: { } 27002: 27002: unordered_set(initializer_list __l, 27002: size_type __n, 27002: const allocator_type& __a) 27002: : unordered_set(__l, __n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: unordered_set(initializer_list __l, 27002: size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_set(__l, __n, __hf, key_equal(), __a) 27002: { } 27002: 27002: 27002: unordered_set& 27002: operator=(const unordered_set&) = default; 27002: 27002: 27002: unordered_set& 27002: operator=(unordered_set&&) = default; 27002: # 283 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: unordered_set& 27002: operator=(initializer_list __l) 27002: { 27002: _M_h = __l; 27002: return *this; 27002: } 27002: 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return _M_h.get_allocator(); } 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return _M_h.empty(); } 27002: 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_h.size(); } 27002: 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return _M_h.max_size(); } 27002: # 319 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: begin() noexcept 27002: { return _M_h.begin(); } 27002: 27002: const_iterator 27002: begin() const noexcept 27002: { return _M_h.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: end() noexcept 27002: { return _M_h.end(); } 27002: 27002: const_iterator 27002: end() const noexcept 27002: { return _M_h.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: cbegin() const noexcept 27002: { return _M_h.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: cend() const noexcept 27002: { return _M_h.end(); } 27002: # 375 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: template 27002: std::pair 27002: emplace(_Args&&... __args) 27002: { return _M_h.emplace(std::forward<_Args>(__args)...); } 27002: # 401 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: template 27002: iterator 27002: emplace_hint(const_iterator __pos, _Args&&... __args) 27002: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 27002: # 420 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: std::pair 27002: insert(const value_type& __x) 27002: { return _M_h.insert(__x); } 27002: 27002: std::pair 27002: insert(value_type&& __x) 27002: { return _M_h.insert(std::move(__x)); } 27002: # 449 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: insert(const_iterator __hint, const value_type& __x) 27002: { return _M_h.insert(__hint, __x); } 27002: 27002: iterator 27002: insert(const_iterator __hint, value_type&& __x) 27002: { return _M_h.insert(__hint, std::move(__x)); } 27002: # 467 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: template 27002: void 27002: insert(_InputIterator __first, _InputIterator __last) 27002: { _M_h.insert(__first, __last); } 27002: # 479 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: void 27002: insert(initializer_list __l) 27002: { _M_h.insert(__l); } 27002: 27002: 27002: 27002: node_type 27002: extract(const_iterator __pos) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 27002: return _M_h.extract(__pos); 27002: } 27002: 27002: 27002: node_type 27002: extract(const key_type& __key) 27002: { return _M_h.extract(__key); } 27002: 27002: 27002: insert_return_type 27002: insert(node_type&& __nh) 27002: { return _M_h._M_reinsert_node(std::move(__nh)); } 27002: 27002: 27002: iterator 27002: insert(const_iterator, node_type&& __nh) 27002: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 27002: # 522 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: erase(const_iterator __position) 27002: { return _M_h.erase(__position); } 27002: 27002: 27002: iterator 27002: erase(iterator __position) 27002: { return _M_h.erase(__position); } 27002: # 544 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: size_type 27002: erase(const key_type& __x) 27002: { return _M_h.erase(__x); } 27002: # 562 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: erase(const_iterator __first, const_iterator __last) 27002: { return _M_h.erase(__first, __last); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: clear() noexcept 27002: { _M_h.clear(); } 27002: # 585 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: void 27002: swap(unordered_set& __x) 27002: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 27002: { _M_h.swap(__x._M_h); } 27002: 27002: 27002: template 27002: friend class std::_Hash_merge_helper; 27002: 27002: template 27002: void 27002: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Hash_merge_helper; 27002: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: template 27002: void 27002: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Hash_merge_helper; 27002: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: hasher 27002: hash_function() const 27002: { return _M_h.hash_function(); } 27002: 27002: 27002: 27002: key_equal 27002: key_eq() const 27002: { return _M_h.key_eq(); } 27002: # 649 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: find(const key_type& __x) 27002: { return _M_h.find(__x); } 27002: # 661 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: const_iterator 27002: find(const key_type& __x) const 27002: { return _M_h.find(__x); } 27002: # 684 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: size_type 27002: count(const key_type& __x) const 27002: { return _M_h.count(__x); } 27002: # 725 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) 27002: { return _M_h.equal_range(__x); } 27002: # 737 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) const 27002: { return _M_h.equal_range(__x); } 27002: # 753 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: size_type 27002: bucket_count() const noexcept 27002: { return _M_h.bucket_count(); } 27002: 27002: 27002: size_type 27002: max_bucket_count() const noexcept 27002: { return _M_h.max_bucket_count(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_type 27002: bucket_size(size_type __n) const 27002: { return _M_h.bucket_size(__n); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_type 27002: bucket(const key_type& __key) const 27002: { return _M_h.bucket(__key); } 27002: # 787 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: local_iterator 27002: begin(size_type __n) 27002: { return _M_h.begin(__n); } 27002: 27002: const_local_iterator 27002: begin(size_type __n) const 27002: { return _M_h.begin(__n); } 27002: 27002: const_local_iterator 27002: cbegin(size_type __n) const 27002: { return _M_h.cbegin(__n); } 27002: # 807 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: local_iterator 27002: end(size_type __n) 27002: { return _M_h.end(__n); } 27002: 27002: const_local_iterator 27002: end(size_type __n) const 27002: { return _M_h.end(__n); } 27002: 27002: const_local_iterator 27002: cend(size_type __n) const 27002: { return _M_h.cend(__n); } 27002: 27002: 27002: 27002: 27002: 27002: float 27002: load_factor() const noexcept 27002: { return _M_h.load_factor(); } 27002: 27002: 27002: 27002: float 27002: max_load_factor() const noexcept 27002: { return _M_h.max_load_factor(); } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: max_load_factor(float __z) 27002: { _M_h.max_load_factor(__z); } 27002: # 848 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: void 27002: rehash(size_type __n) 27002: { _M_h.rehash(__n); } 27002: # 859 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: void 27002: reserve(size_type __n) 27002: { _M_h.reserve(__n); } 27002: 27002: template 27002: friend bool 27002: operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, 27002: const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&); 27002: }; 27002: 27002: 27002: 27002: template::value_type>, 27002: typename _Pred = 27002: equal_to::value_type>, 27002: typename _Allocator = 27002: allocator::value_type>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireNotAllocator<_Pred>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_set(_InputIterator, _InputIterator, 27002: unordered_set::size_type = {}, 27002: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 27002: -> unordered_set::value_type, 27002: _Hash, _Pred, _Allocator>; 27002: 27002: template, 27002: typename _Pred = equal_to<_Tp>, 27002: typename _Allocator = allocator<_Tp>, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireNotAllocator<_Pred>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_set(initializer_list<_Tp>, 27002: unordered_set::size_type = {}, 27002: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 27002: -> unordered_set<_Tp, _Hash, _Pred, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_set(_InputIterator, _InputIterator, 27002: unordered_set::size_type, _Allocator) 27002: -> unordered_set::value_type, 27002: hash< 27002: typename iterator_traits<_InputIterator>::value_type>, 27002: equal_to< 27002: typename iterator_traits<_InputIterator>::value_type>, 27002: _Allocator>; 27002: 27002: template, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_set(_InputIterator, _InputIterator, 27002: unordered_set::size_type, 27002: _Hash, _Allocator) 27002: -> unordered_set::value_type, 27002: _Hash, 27002: equal_to< 27002: typename iterator_traits<_InputIterator>::value_type>, 27002: _Allocator>; 27002: 27002: template> 27002: unordered_set(initializer_list<_Tp>, 27002: unordered_set::size_type, _Allocator) 27002: -> unordered_set<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_set(initializer_list<_Tp>, 27002: unordered_set::size_type, _Hash, _Allocator) 27002: -> unordered_set<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 27002: # 959 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: template, 27002: typename _Pred = equal_to<_Value>, 27002: typename _Alloc = allocator<_Value>> 27002: class unordered_multiset 27002: { 27002: typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 27002: _Hashtable _M_h; 27002: 27002: public: 27002: 27002: 27002: 27002: typedef typename _Hashtable::key_type key_type; 27002: typedef typename _Hashtable::value_type value_type; 27002: typedef typename _Hashtable::hasher hasher; 27002: typedef typename _Hashtable::key_equal key_equal; 27002: typedef typename _Hashtable::allocator_type allocator_type; 27002: 27002: 27002: 27002: 27002: typedef typename _Hashtable::pointer pointer; 27002: typedef typename _Hashtable::const_pointer const_pointer; 27002: typedef typename _Hashtable::reference reference; 27002: typedef typename _Hashtable::const_reference const_reference; 27002: typedef typename _Hashtable::iterator iterator; 27002: typedef typename _Hashtable::const_iterator const_iterator; 27002: typedef typename _Hashtable::local_iterator local_iterator; 27002: typedef typename _Hashtable::const_local_iterator const_local_iterator; 27002: typedef typename _Hashtable::size_type size_type; 27002: typedef typename _Hashtable::difference_type difference_type; 27002: 27002: 27002: 27002: using node_type = typename _Hashtable::node_type; 27002: 27002: 27002: 27002: 27002: 27002: unordered_multiset() = default; 27002: # 1009 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: explicit 27002: unordered_multiset(size_type __n, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__n, __hf, __eql, __a) 27002: { } 27002: # 1030 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: template 27002: unordered_multiset(_InputIterator __first, _InputIterator __last, 27002: size_type __n = 0, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__first, __last, __n, __hf, __eql, __a) 27002: { } 27002: 27002: 27002: unordered_multiset(const unordered_multiset&) = default; 27002: 27002: 27002: unordered_multiset(unordered_multiset&&) = default; 27002: # 1056 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: unordered_multiset(initializer_list __l, 27002: size_type __n = 0, 27002: const hasher& __hf = hasher(), 27002: const key_equal& __eql = key_equal(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_h(__l, __n, __hf, __eql, __a) 27002: { } 27002: 27002: 27002: unordered_multiset& 27002: operator=(const unordered_multiset&) = default; 27002: 27002: 27002: unordered_multiset& 27002: operator=(unordered_multiset&&) = default; 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: unordered_multiset(const allocator_type& __a) 27002: : _M_h(__a) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: unordered_multiset(const unordered_multiset& __umset, 27002: const allocator_type& __a) 27002: : _M_h(__umset._M_h, __a) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: unordered_multiset(unordered_multiset&& __umset, 27002: const allocator_type& __a) 27002: noexcept( noexcept(_Hashtable(std::move(__umset._M_h), __a)) ) 27002: : _M_h(std::move(__umset._M_h), __a) 27002: { } 27002: 27002: unordered_multiset(size_type __n, const allocator_type& __a) 27002: : unordered_multiset(__n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: unordered_multiset(size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_multiset(__n, __hf, key_equal(), __a) 27002: { } 27002: 27002: template 27002: unordered_multiset(_InputIterator __first, _InputIterator __last, 27002: size_type __n, 27002: const allocator_type& __a) 27002: : unordered_multiset(__first, __last, __n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: template 27002: unordered_multiset(_InputIterator __first, _InputIterator __last, 27002: size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_multiset(__first, __last, __n, __hf, key_equal(), __a) 27002: { } 27002: 27002: unordered_multiset(initializer_list __l, 27002: size_type __n, 27002: const allocator_type& __a) 27002: : unordered_multiset(__l, __n, hasher(), key_equal(), __a) 27002: { } 27002: 27002: unordered_multiset(initializer_list __l, 27002: size_type __n, const hasher& __hf, 27002: const allocator_type& __a) 27002: : unordered_multiset(__l, __n, __hf, key_equal(), __a) 27002: { } 27002: # 1148 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: unordered_multiset& 27002: operator=(initializer_list __l) 27002: { 27002: _M_h = __l; 27002: return *this; 27002: } 27002: 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return _M_h.get_allocator(); } 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return _M_h.empty(); } 27002: 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_h.size(); } 27002: 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return _M_h.max_size(); } 27002: # 1184 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: begin() noexcept 27002: { return _M_h.begin(); } 27002: 27002: const_iterator 27002: begin() const noexcept 27002: { return _M_h.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: end() noexcept 27002: { return _M_h.end(); } 27002: 27002: const_iterator 27002: end() const noexcept 27002: { return _M_h.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: cbegin() const noexcept 27002: { return _M_h.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: cend() const noexcept 27002: { return _M_h.end(); } 27002: # 1232 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: template 27002: iterator 27002: emplace(_Args&&... __args) 27002: { return _M_h.emplace(std::forward<_Args>(__args)...); } 27002: # 1254 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: template 27002: iterator 27002: emplace_hint(const_iterator __pos, _Args&&... __args) 27002: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 27002: # 1267 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: insert(const value_type& __x) 27002: { return _M_h.insert(__x); } 27002: 27002: iterator 27002: insert(value_type&& __x) 27002: { return _M_h.insert(std::move(__x)); } 27002: # 1293 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: insert(const_iterator __hint, const value_type& __x) 27002: { return _M_h.insert(__hint, __x); } 27002: 27002: iterator 27002: insert(const_iterator __hint, value_type&& __x) 27002: { return _M_h.insert(__hint, std::move(__x)); } 27002: # 1310 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: template 27002: void 27002: insert(_InputIterator __first, _InputIterator __last) 27002: { _M_h.insert(__first, __last); } 27002: # 1322 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: void 27002: insert(initializer_list __l) 27002: { _M_h.insert(__l); } 27002: 27002: 27002: 27002: node_type 27002: extract(const_iterator __pos) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 27002: return _M_h.extract(__pos); 27002: } 27002: 27002: 27002: node_type 27002: extract(const key_type& __key) 27002: { return _M_h.extract(__key); } 27002: 27002: 27002: iterator 27002: insert(node_type&& __nh) 27002: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 27002: 27002: 27002: iterator 27002: insert(const_iterator __hint, node_type&& __nh) 27002: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 27002: # 1366 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: erase(const_iterator __position) 27002: { return _M_h.erase(__position); } 27002: 27002: 27002: iterator 27002: erase(iterator __position) 27002: { return _M_h.erase(__position); } 27002: # 1389 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: size_type 27002: erase(const key_type& __x) 27002: { return _M_h.erase(__x); } 27002: # 1409 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: erase(const_iterator __first, const_iterator __last) 27002: { return _M_h.erase(__first, __last); } 27002: # 1420 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: void 27002: clear() noexcept 27002: { _M_h.clear(); } 27002: # 1433 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: void 27002: swap(unordered_multiset& __x) 27002: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 27002: { _M_h.swap(__x._M_h); } 27002: 27002: 27002: template 27002: friend class std::_Hash_merge_helper; 27002: 27002: template 27002: void 27002: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 27002: { 27002: using _Merge_helper 27002: = _Hash_merge_helper; 27002: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: template 27002: void 27002: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 27002: { 27002: using _Merge_helper 27002: = _Hash_merge_helper; 27002: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: hasher 27002: hash_function() const 27002: { return _M_h.hash_function(); } 27002: 27002: 27002: 27002: key_equal 27002: key_eq() const 27002: { return _M_h.key_eq(); } 27002: # 1499 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: iterator 27002: find(const key_type& __x) 27002: { return _M_h.find(__x); } 27002: # 1511 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: const_iterator 27002: find(const key_type& __x) const 27002: { return _M_h.find(__x); } 27002: # 1530 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: size_type 27002: count(const key_type& __x) const 27002: { return _M_h.count(__x); } 27002: # 1568 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) 27002: { return _M_h.equal_range(__x); } 27002: # 1580 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) const 27002: { return _M_h.equal_range(__x); } 27002: # 1596 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: size_type 27002: bucket_count() const noexcept 27002: { return _M_h.bucket_count(); } 27002: 27002: 27002: size_type 27002: max_bucket_count() const noexcept 27002: { return _M_h.max_bucket_count(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_type 27002: bucket_size(size_type __n) const 27002: { return _M_h.bucket_size(__n); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_type 27002: bucket(const key_type& __key) const 27002: { return _M_h.bucket(__key); } 27002: # 1630 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: local_iterator 27002: begin(size_type __n) 27002: { return _M_h.begin(__n); } 27002: 27002: const_local_iterator 27002: begin(size_type __n) const 27002: { return _M_h.begin(__n); } 27002: 27002: const_local_iterator 27002: cbegin(size_type __n) const 27002: { return _M_h.cbegin(__n); } 27002: # 1650 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: local_iterator 27002: end(size_type __n) 27002: { return _M_h.end(__n); } 27002: 27002: const_local_iterator 27002: end(size_type __n) const 27002: { return _M_h.end(__n); } 27002: 27002: const_local_iterator 27002: cend(size_type __n) const 27002: { return _M_h.cend(__n); } 27002: 27002: 27002: 27002: 27002: 27002: float 27002: load_factor() const noexcept 27002: { return _M_h.load_factor(); } 27002: 27002: 27002: 27002: float 27002: max_load_factor() const noexcept 27002: { return _M_h.max_load_factor(); } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: max_load_factor(float __z) 27002: { _M_h.max_load_factor(__z); } 27002: # 1691 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: void 27002: rehash(size_type __n) 27002: { _M_h.rehash(__n); } 27002: # 1702 "/usr/include/c++/12/bits/unordered_set.h" 3 27002: void 27002: reserve(size_type __n) 27002: { _M_h.reserve(__n); } 27002: 27002: template 27002: friend bool 27002: operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, 27002: const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&); 27002: }; 27002: 27002: 27002: 27002: 27002: template::value_type>, 27002: typename _Pred = 27002: equal_to::value_type>, 27002: typename _Allocator = 27002: allocator::value_type>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireNotAllocator<_Pred>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multiset(_InputIterator, _InputIterator, 27002: unordered_multiset::size_type = {}, 27002: _Hash = _Hash(), _Pred = _Pred(), 27002: _Allocator = _Allocator()) 27002: -> unordered_multiset::value_type, 27002: _Hash, _Pred, _Allocator>; 27002: 27002: template, 27002: typename _Pred = equal_to<_Tp>, 27002: typename _Allocator = allocator<_Tp>, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireNotAllocator<_Pred>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multiset(initializer_list<_Tp>, 27002: unordered_multiset::size_type = {}, 27002: _Hash = _Hash(), _Pred = _Pred(), 27002: _Allocator = _Allocator()) 27002: -> unordered_multiset<_Tp, _Hash, _Pred, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multiset(_InputIterator, _InputIterator, 27002: unordered_multiset::size_type, _Allocator) 27002: -> unordered_multiset::value_type, 27002: hash::value_type>, 27002: equal_to::value_type>, 27002: _Allocator>; 27002: 27002: template, 27002: typename = _RequireNotAllocatorOrIntegral<_Hash>, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multiset(_InputIterator, _InputIterator, 27002: unordered_multiset::size_type, 27002: _Hash, _Allocator) 27002: -> unordered_multiset::value_type, 27002: _Hash, 27002: equal_to< 27002: typename 27002: iterator_traits<_InputIterator>::value_type>, 27002: _Allocator>; 27002: 27002: template> 27002: unordered_multiset(initializer_list<_Tp>, 27002: unordered_multiset::size_type, _Allocator) 27002: -> unordered_multiset<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: unordered_multiset(initializer_list<_Tp>, 27002: unordered_multiset::size_type, _Hash, _Allocator) 27002: -> unordered_multiset<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 27002: unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: template 27002: inline void 27002: swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 27002: unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: template 27002: inline bool 27002: operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 27002: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 27002: { return __x._M_h._M_equal(__y._M_h); } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 27002: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: inline bool 27002: operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 27002: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 27002: { return __x._M_h._M_equal(__y._M_h); } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 27002: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Hash_merge_helper< 27002: std::unordered_set<_Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> 27002: { 27002: private: 27002: template 27002: using unordered_set = std::unordered_set<_Tp...>; 27002: template 27002: using unordered_multiset = std::unordered_multiset<_Tp...>; 27002: 27002: friend unordered_set<_Val, _Hash1, _Eq1, _Alloc>; 27002: 27002: static auto& 27002: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 27002: { return __set._M_h; } 27002: 27002: static auto& 27002: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 27002: { return __set._M_h; } 27002: }; 27002: 27002: 27002: template 27002: struct _Hash_merge_helper< 27002: std::unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>, 27002: _Hash2, _Eq2> 27002: { 27002: private: 27002: template 27002: using unordered_set = std::unordered_set<_Tp...>; 27002: template 27002: using unordered_multiset = std::unordered_multiset<_Tp...>; 27002: 27002: friend unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>; 27002: 27002: static auto& 27002: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 27002: { return __set._M_h; } 27002: 27002: static auto& 27002: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 27002: { return __set._M_h; } 27002: }; 27002: 27002: 27002: 27002: } 27002: # 48 "/usr/include/c++/12/unordered_set" 2 3 27002: # 56 "/usr/include/c++/12/unordered_set" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace pmr 27002: { 27002: template class polymorphic_allocator; 27002: template, 27002: typename _Pred = std::equal_to<_Key>> 27002: using unordered_set 27002: = std::unordered_set<_Key, _Hash, _Pred, 27002: polymorphic_allocator<_Key>>; 27002: template, 27002: typename _Pred = std::equal_to<_Key>> 27002: using unordered_multiset 27002: = std::unordered_multiset<_Key, _Hash, _Pred, 27002: polymorphic_allocator<_Key>>; 27002: } 27002: 27002: } 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/utility" 1 3 27002: # 58 "/usr/include/c++/12/utility" 3 27002: 27002: # 59 "/usr/include/c++/12/utility" 3 27002: # 68 "/usr/include/c++/12/utility" 3 27002: # 1 "/usr/include/c++/12/bits/stl_relops.h" 1 3 27002: # 62 "/usr/include/c++/12/bits/stl_relops.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: namespace rel_ops 27002: { 27002: # 86 "/usr/include/c++/12/bits/stl_relops.h" 3 27002: template 27002: inline bool 27002: operator!=(const _Tp& __x, const _Tp& __y) 27002: { return !(__x == __y); } 27002: # 99 "/usr/include/c++/12/bits/stl_relops.h" 3 27002: template 27002: inline bool 27002: operator>(const _Tp& __x, const _Tp& __y) 27002: { return __y < __x; } 27002: # 112 "/usr/include/c++/12/bits/stl_relops.h" 3 27002: template 27002: inline bool 27002: operator<=(const _Tp& __x, const _Tp& __y) 27002: { return !(__y < __x); } 27002: # 125 "/usr/include/c++/12/bits/stl_relops.h" 3 27002: template 27002: inline bool 27002: operator>=(const _Tp& __x, const _Tp& __y) 27002: { return !(__x < __y); } 27002: } 27002: 27002: 27002: } 27002: # 69 "/usr/include/c++/12/utility" 2 3 27002: # 82 "/usr/include/c++/12/utility" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: inline _Tp 27002: exchange(_Tp& __obj, _Up&& __new_val) 27002: noexcept(__and_, 27002: is_nothrow_assignable<_Tp&, _Up>>::value) 27002: { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } 27002: 27002: 27002: 27002: 27002: template 27002: [[nodiscard]] 27002: constexpr add_const_t<_Tp>& 27002: as_const(_Tp& __t) noexcept 27002: { return __t; } 27002: 27002: template 27002: void as_const(const _Tp&&) = delete; 27002: # 220 "/usr/include/c++/12/utility" 3 27002: 27002: } 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rocksdb_namespace.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/status.h" 1 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/status.h" 27002: 27002: # 31 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/status.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 1 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: 27002: 27002: # 1 "/usr/include/c++/12/cassert" 1 3 27002: # 41 "/usr/include/c++/12/cassert" 3 27002: 27002: # 42 "/usr/include/c++/12/cassert" 3 27002: 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 66 "/usr/include/assert.h" 3 4 27002: extern "C" { 27002: 27002: 27002: extern void __assert_fail (const char *__assertion, const char *__file, 27002: unsigned int __line, const char *__function) 27002: noexcept (true) __attribute__ ((__noreturn__)); 27002: 27002: 27002: extern void __assert_perror_fail (int __errnum, const char *__file, 27002: unsigned int __line, const char *__function) 27002: noexcept (true) __attribute__ ((__noreturn__)); 27002: 27002: 27002: 27002: 27002: extern void __assert (const char *__assertion, const char *__file, int __line) 27002: noexcept (true) __attribute__ ((__noreturn__)); 27002: 27002: 27002: } 27002: # 45 "/usr/include/c++/12/cassert" 2 3 27002: # 22 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 2 27002: # 1 "/usr/include/c++/12/cstddef" 1 3 27002: # 42 "/usr/include/c++/12/cstddef" 3 27002: 27002: # 43 "/usr/include/c++/12/cstddef" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 51 "/usr/include/c++/12/cstddef" 2 3 27002: 27002: extern "C++" 27002: { 27002: 27002: namespace std 27002: { 27002: 27002: using ::max_align_t; 27002: } 27002: 27002: 27002: 27002: namespace std 27002: { 27002: 27002: 27002: 27002: 27002: enum class byte : unsigned char {}; 27002: 27002: template struct __byte_operand { }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: 27002: 27002: 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: template<> struct __byte_operand { using __type = byte; }; 27002: # 108 "/usr/include/c++/12/cstddef" 3 27002: template 27002: struct __byte_operand 27002: : __byte_operand<_IntegerType> { }; 27002: template 27002: struct __byte_operand 27002: : __byte_operand<_IntegerType> { }; 27002: template 27002: struct __byte_operand 27002: : __byte_operand<_IntegerType> { }; 27002: 27002: template 27002: using __byte_op_t = typename __byte_operand<_IntegerType>::__type; 27002: 27002: template 27002: constexpr __byte_op_t<_IntegerType> 27002: operator<<(byte __b, _IntegerType __shift) noexcept 27002: { return (byte)(unsigned char)((unsigned)__b << __shift); } 27002: 27002: template 27002: constexpr __byte_op_t<_IntegerType> 27002: operator>>(byte __b, _IntegerType __shift) noexcept 27002: { return (byte)(unsigned char)((unsigned)__b >> __shift); } 27002: 27002: constexpr byte 27002: operator|(byte __l, byte __r) noexcept 27002: { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } 27002: 27002: constexpr byte 27002: operator&(byte __l, byte __r) noexcept 27002: { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } 27002: 27002: constexpr byte 27002: operator^(byte __l, byte __r) noexcept 27002: { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } 27002: 27002: constexpr byte 27002: operator~(byte __b) noexcept 27002: { return (byte)(unsigned char)~(unsigned)__b; } 27002: 27002: template 27002: constexpr __byte_op_t<_IntegerType>& 27002: operator<<=(byte& __b, _IntegerType __shift) noexcept 27002: { return __b = __b << __shift; } 27002: 27002: template 27002: constexpr __byte_op_t<_IntegerType>& 27002: operator>>=(byte& __b, _IntegerType __shift) noexcept 27002: { return __b = __b >> __shift; } 27002: 27002: constexpr byte& 27002: operator|=(byte& __l, byte __r) noexcept 27002: { return __l = __l | __r; } 27002: 27002: constexpr byte& 27002: operator&=(byte& __l, byte __r) noexcept 27002: { return __l = __l & __r; } 27002: 27002: constexpr byte& 27002: operator^=(byte& __l, byte __r) noexcept 27002: { return __l = __l ^ __r; } 27002: 27002: template 27002: [[nodiscard]] 27002: constexpr _IntegerType 27002: to_integer(__byte_op_t<_IntegerType> __b) noexcept 27002: { return _IntegerType(__b); } 27002: 27002: 27002: } 27002: 27002: } 27002: # 23 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 2 27002: # 1 "/usr/include/c++/12/cstdio" 1 3 27002: # 39 "/usr/include/c++/12/cstdio" 3 27002: 27002: # 40 "/usr/include/c++/12/cstdio" 3 27002: # 24 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 2 27002: # 1 "/usr/include/c++/12/cstring" 1 3 27002: # 39 "/usr/include/c++/12/cstring" 3 27002: 27002: # 40 "/usr/include/c++/12/cstring" 3 27002: 27002: 27002: # 1 "/usr/include/string.h" 1 3 4 27002: # 26 "/usr/include/string.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 27002: # 27 "/usr/include/string.h" 2 3 4 27002: 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 34 "/usr/include/string.h" 2 3 4 27002: # 43 "/usr/include/string.h" 3 4 27002: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 27002: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern void *memmove (void *__dest, const void *__src, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: 27002: extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 27002: int __c, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); 27002: 27002: 27002: 27002: 27002: extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int memcmp (const void *__s1, const void *__s2, size_t __n) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: # 80 "/usr/include/string.h" 3 4 27002: extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: extern "C++" 27002: { 27002: extern void *memchr (void *__s, int __c, size_t __n) 27002: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: extern const void *memchr (const void *__s, int __c, size_t __n) 27002: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * 27002: memchr (void *__s, int __c, size_t __n) noexcept (true) 27002: { 27002: return __builtin_memchr (__s, __c, __n); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * 27002: memchr (const void *__s, int __c, size_t __n) noexcept (true) 27002: { 27002: return __builtin_memchr (__s, __c, __n); 27002: } 27002: 27002: } 27002: # 115 "/usr/include/string.h" 3 4 27002: extern "C++" void *rawmemchr (void *__s, int __c) 27002: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: extern "C++" const void *rawmemchr (const void *__s, int __c) 27002: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern "C++" void *memrchr (void *__s, int __c, size_t __n) 27002: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 27002: __attribute__ ((__access__ (__read_only__, 1, 3))); 27002: extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) 27002: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 27002: __attribute__ ((__access__ (__read_only__, 1, 3))); 27002: # 141 "/usr/include/string.h" 3 4 27002: extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: extern char *strncpy (char *__restrict __dest, 27002: const char *__restrict __src, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern char *strcat (char *__restrict __dest, const char *__restrict __src) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: extern char *strncat (char *__restrict __dest, const char *__restrict __src, 27002: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int strcmp (const char *__s1, const char *__s2) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: extern int strncmp (const char *__s1, const char *__s2, size_t __n) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int strcoll (const char *__s1, const char *__s2) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: extern size_t strxfrm (char *__restrict __dest, 27002: const char *__restrict __src, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 27002: 27002: 27002: extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 27002: locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) 27002: __attribute__ ((__access__ (__write_only__, 1, 3))); 27002: 27002: 27002: 27002: 27002: 27002: extern char *strdup (const char *__s) 27002: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern char *strndup (const char *__string, size_t __n) 27002: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 27002: # 224 "/usr/include/string.h" 3 4 27002: extern "C++" 27002: { 27002: extern char *strchr (char *__s, int __c) 27002: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: extern const char *strchr (const char *__s, int __c) 27002: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 27002: strchr (char *__s, int __c) noexcept (true) 27002: { 27002: return __builtin_strchr (__s, __c); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 27002: strchr (const char *__s, int __c) noexcept (true) 27002: { 27002: return __builtin_strchr (__s, __c); 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern "C++" 27002: { 27002: extern char *strrchr (char *__s, int __c) 27002: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: extern const char *strrchr (const char *__s, int __c) 27002: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 27002: strrchr (char *__s, int __c) noexcept (true) 27002: { 27002: return __builtin_strrchr (__s, __c); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 27002: strrchr (const char *__s, int __c) noexcept (true) 27002: { 27002: return __builtin_strrchr (__s, __c); 27002: } 27002: 27002: } 27002: # 281 "/usr/include/string.h" 3 4 27002: extern "C++" char *strchrnul (char *__s, int __c) 27002: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: extern "C++" const char *strchrnul (const char *__s, int __c) 27002: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: # 293 "/usr/include/string.h" 3 4 27002: extern size_t strcspn (const char *__s, const char *__reject) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern size_t strspn (const char *__s, const char *__accept) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern "C++" 27002: { 27002: extern char *strpbrk (char *__s, const char *__accept) 27002: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: extern const char *strpbrk (const char *__s, const char *__accept) 27002: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 27002: strpbrk (char *__s, const char *__accept) noexcept (true) 27002: { 27002: return __builtin_strpbrk (__s, __accept); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 27002: strpbrk (const char *__s, const char *__accept) noexcept (true) 27002: { 27002: return __builtin_strpbrk (__s, __accept); 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern "C++" 27002: { 27002: extern char *strstr (char *__haystack, const char *__needle) 27002: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: extern const char *strstr (const char *__haystack, const char *__needle) 27002: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 27002: strstr (char *__haystack, const char *__needle) noexcept (true) 27002: { 27002: return __builtin_strstr (__haystack, __needle); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 27002: strstr (const char *__haystack, const char *__needle) noexcept (true) 27002: { 27002: return __builtin_strstr (__haystack, __needle); 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern char *strtok (char *__restrict __s, const char *__restrict __delim) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: extern char *__strtok_r (char *__restrict __s, 27002: const char *__restrict __delim, 27002: char **__restrict __save_ptr) 27002: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 27002: 27002: extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 27002: char **__restrict __save_ptr) 27002: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 27002: 27002: 27002: 27002: 27002: 27002: extern "C++" char *strcasestr (char *__haystack, const char *__needle) 27002: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: extern "C++" const char *strcasestr (const char *__haystack, 27002: const char *__needle) 27002: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: # 389 "/usr/include/string.h" 3 4 27002: extern void *memmem (const void *__haystack, size_t __haystacklen, 27002: const void *__needle, size_t __needlelen) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) 27002: __attribute__ ((__access__ (__read_only__, 1, 2))) 27002: __attribute__ ((__access__ (__read_only__, 3, 4))); 27002: 27002: 27002: 27002: extern void *__mempcpy (void *__restrict __dest, 27002: const void *__restrict __src, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: extern void *mempcpy (void *__restrict __dest, 27002: const void *__restrict __src, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: extern size_t strlen (const char *__s) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: extern size_t strnlen (const char *__string, size_t __maxlen) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: extern char *strerror (int __errnum) noexcept (true); 27002: # 444 "/usr/include/string.h" 3 4 27002: extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: 27002: 27002: 27002: 27002: extern const char *strerrordesc_np (int __err) noexcept (true); 27002: 27002: extern const char *strerrorname_np (int __err) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); 27002: 27002: 27002: 27002: # 1 "/usr/include/strings.h" 1 3 4 27002: # 23 "/usr/include/strings.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 24 "/usr/include/strings.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern "C" { 27002: 27002: 27002: 27002: extern int bcmp (const void *__s1, const void *__s2, size_t __n) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern void bcopy (const void *__src, void *__dest, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern "C++" 27002: { 27002: extern char *index (char *__s, int __c) 27002: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: extern const char *index (const char *__s, int __c) 27002: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 27002: index (char *__s, int __c) noexcept (true) 27002: { 27002: return __builtin_index (__s, __c); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 27002: index (const char *__s, int __c) noexcept (true) 27002: { 27002: return __builtin_index (__s, __c); 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern "C++" 27002: { 27002: extern char *rindex (char *__s, int __c) 27002: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: extern const char *rindex (const char *__s, int __c) 27002: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 27002: rindex (char *__s, int __c) noexcept (true) 27002: { 27002: return __builtin_rindex (__s, __c); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 27002: rindex (const char *__s, int __c) noexcept (true) 27002: { 27002: return __builtin_rindex (__s, __c); 27002: } 27002: 27002: } 27002: # 104 "/usr/include/strings.h" 3 4 27002: extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: 27002: extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); 27002: __extension__ extern int ffsll (long long int __ll) 27002: noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern int strcasecmp (const char *__s1, const char *__s2) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 27002: 27002: 27002: 27002: extern int strncasecmp_l (const char *__s1, const char *__s2, 27002: size_t __n, locale_t __loc) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 1 3 4 27002: # 22 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 3 4 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 27002: __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) 27002: { 27002: (void) __builtin___memmove_chk (__dest, __src, __len, 27002: __builtin_object_size (__dest, 0)); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 27002: __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) 27002: { 27002: (void) __builtin___memset_chk (__dest, '\0', __len, 27002: __builtin_object_size (__dest, 0)); 27002: } 27002: # 145 "/usr/include/strings.h" 2 3 4 27002: # 463 "/usr/include/string.h" 2 3 4 27002: 27002: 27002: 27002: extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 27002: __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: 27002: 27002: 27002: extern char *strsep (char **__restrict __stringp, 27002: const char *__restrict __delim) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: extern char *strsignal (int __sig) noexcept (true); 27002: 27002: 27002: 27002: extern const char *sigabbrev_np (int __sig) noexcept (true); 27002: 27002: 27002: extern const char *sigdescr_np (int __sig) noexcept (true); 27002: 27002: 27002: 27002: extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: extern char *__stpncpy (char *__restrict __dest, 27002: const char *__restrict __src, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: extern char *stpncpy (char *__restrict __dest, 27002: const char *__restrict __src, size_t __n) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: extern int strverscmp (const char *__s1, const char *__s2) 27002: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 27002: __attribute__ ((__access__ (__read_write__, 1, 2))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern "C++" char *basename (char *__filename) 27002: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 27002: extern "C++" const char *basename (const char *__filename) 27002: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 27002: # 535 "/usr/include/string.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 1 3 4 27002: # 25 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 27002: __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 27002: 27002: { 27002: return __builtin___memcpy_chk (__dest, __src, __len, 27002: __builtin_object_size (__dest, 0)); 27002: } 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 27002: __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) 27002: { 27002: return __builtin___memmove_chk (__dest, __src, __len, 27002: __builtin_object_size (__dest, 0)); 27002: } 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 27002: __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 27002: 27002: { 27002: return __builtin___mempcpy_chk (__dest, __src, __len, 27002: __builtin_object_size (__dest, 0)); 27002: } 27002: # 56 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 27002: __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) 27002: { 27002: return __builtin___memset_chk (__dest, __ch, __len, 27002: __builtin_object_size (__dest, 0)); 27002: } 27002: 27002: 27002: 27002: 27002: void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 27002: __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) 27002: { 27002: __explicit_bzero_chk (__dest, __len, __builtin_object_size (__dest, 0)); 27002: } 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 27002: __attribute__ ((__leaf__)) strcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) 27002: { 27002: return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 27002: } 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 27002: __attribute__ ((__leaf__)) stpcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) 27002: { 27002: return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 27002: } 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 27002: __attribute__ ((__leaf__)) strncpy (char *__restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 27002: 27002: { 27002: return __builtin___strncpy_chk (__dest, __src, __len, 27002: __builtin_object_size (__dest, 2 > 1)); 27002: } 27002: 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 27002: __attribute__ ((__leaf__)) stpncpy (char *__dest, const char *__src, size_t __n) noexcept (true) 27002: { 27002: return __builtin___stpncpy_chk (__dest, __src, __n, 27002: __builtin_object_size (__dest, 2 > 1)); 27002: } 27002: # 127 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 27002: __attribute__ ((__leaf__)) strcat (char *__restrict __dest, const char *__restrict __src) noexcept (true) 27002: { 27002: return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 27002: } 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 27002: __attribute__ ((__leaf__)) strncat (char *__restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 27002: 27002: { 27002: return __builtin___strncat_chk (__dest, __src, __len, 27002: __builtin_object_size (__dest, 2 > 1)); 27002: } 27002: # 536 "/usr/include/string.h" 2 3 4 27002: 27002: 27002: 27002: } 27002: # 43 "/usr/include/c++/12/cstring" 2 3 27002: # 71 "/usr/include/c++/12/cstring" 3 27002: extern "C++" 27002: { 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: using ::memchr; 27002: using ::memcmp; 27002: using ::memcpy; 27002: using ::memmove; 27002: using ::memset; 27002: using ::strcat; 27002: using ::strcmp; 27002: using ::strcoll; 27002: using ::strcpy; 27002: using ::strcspn; 27002: using ::strerror; 27002: using ::strlen; 27002: using ::strncat; 27002: using ::strncmp; 27002: using ::strncpy; 27002: using ::strspn; 27002: using ::strtok; 27002: using ::strxfrm; 27002: using ::strchr; 27002: using ::strpbrk; 27002: using ::strrchr; 27002: using ::strstr; 27002: # 122 "/usr/include/c++/12/cstring" 3 27002: 27002: } 27002: } 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 2 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cleanable.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cleanable.h" 27002: 27002: 27002: 27002: 27002: 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cleanable.h" 27002: namespace rocksdb { 27002: 27002: class Cleanable { 27002: public: 27002: Cleanable(); 27002: 27002: Cleanable(Cleanable&) = delete; 27002: Cleanable& operator=(Cleanable&) = delete; 27002: 27002: 27002: ~Cleanable(); 27002: 27002: 27002: Cleanable(Cleanable&&) noexcept; 27002: Cleanable& operator=(Cleanable&&) noexcept; 27002: 27002: 27002: 27002: 27002: 27002: 27002: using CleanupFunction = void (*)(void* arg1, void* arg2); 27002: 27002: 27002: void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2); 27002: 27002: 27002: 27002: void DelegateCleanupsTo(Cleanable* other); 27002: 27002: 27002: inline void Reset() { 27002: DoCleanup(); 27002: cleanup_.function = nullptr; 27002: cleanup_.next = nullptr; 27002: } 27002: 27002: inline bool HasCleanups() { return cleanup_.function != nullptr; } 27002: 27002: protected: 27002: struct Cleanup { 27002: CleanupFunction function; 27002: void* arg1; 27002: void* arg2; 27002: Cleanup* next; 27002: }; 27002: Cleanup cleanup_; 27002: 27002: void RegisterCleanup(Cleanup* c); 27002: 27002: private: 27002: 27002: 27002: 27002: inline void DoCleanup() { 27002: if (cleanup_.function != nullptr) { 27002: (*cleanup_.function)(cleanup_.arg1, cleanup_.arg2); 27002: for (Cleanup* c = cleanup_.next; c != nullptr;) { 27002: (*c->function)(c->arg1, c->arg2); 27002: Cleanup* next = c->next; 27002: delete c; 27002: c = next; 27002: } 27002: } 27002: } 27002: }; 27002: # 89 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cleanable.h" 27002: class SharedCleanablePtr { 27002: public: 27002: 27002: SharedCleanablePtr() {} 27002: 27002: SharedCleanablePtr(const SharedCleanablePtr& from); 27002: SharedCleanablePtr(SharedCleanablePtr&& from) noexcept; 27002: SharedCleanablePtr& operator=(const SharedCleanablePtr& from); 27002: SharedCleanablePtr& operator=(SharedCleanablePtr&& from) noexcept; 27002: 27002: ~SharedCleanablePtr(); 27002: 27002: 27002: void Allocate(); 27002: 27002: void Reset(); 27002: 27002: Cleanable& operator*(); 27002: Cleanable* operator->(); 27002: 27002: Cleanable* get(); 27002: 27002: 27002: 27002: 27002: 27002: 27002: void RegisterCopyWith(Cleanable* target); 27002: 27002: 27002: 27002: 27002: void MoveAsCleanupTo(Cleanable* target); 27002: 27002: private: 27002: struct Impl; 27002: Impl* ptr_ = nullptr; 27002: }; 27002: 27002: } 27002: # 29 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class Slice { 27002: public: 27002: 27002: Slice() : data_(""), size_(0) {} 27002: 27002: 27002: Slice(const char* d, size_t n) : data_(d), size_(n) {} 27002: 27002: 27002: 27002: Slice(const std::string& s) : data_(s.data()), size_(s.size()) {} 27002: 27002: 27002: 27002: Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size()) {} 27002: 27002: 27002: 27002: Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } 27002: 27002: 27002: 27002: Slice(const struct SliceParts& parts, std::string* buf); 27002: 27002: 27002: const char* data() const { return data_; } 27002: 27002: 27002: size_t size() const { return size_; } 27002: 27002: 27002: bool empty() const { return size_ == 0; } 27002: 27002: 27002: 27002: char operator[](size_t n) const { 27002: 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: n < size() 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "n < size()" 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 68, __extension__ __PRETTY_FUNCTION__)) 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: return data_[n]; 27002: } 27002: 27002: 27002: void clear() { 27002: data_ = ""; 27002: size_ = 0; 27002: } 27002: 27002: 27002: void remove_prefix(size_t n) { 27002: 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: n <= size() 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "n <= size()" 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 80, __extension__ __PRETTY_FUNCTION__)) 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: data_ += n; 27002: size_ -= n; 27002: } 27002: 27002: void remove_suffix(size_t n) { 27002: 27002: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: n <= size() 27002: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "n <= size()" 27002: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 86, __extension__ __PRETTY_FUNCTION__)) 27002: # 86 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: size_ -= n; 27002: } 27002: 27002: 27002: 27002: std::string ToString(bool hex = false) const; 27002: 27002: 27002: std::string_view ToStringView() const { 27002: return std::string_view(data_, size_); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool DecodeHex(std::string* result) const; 27002: 27002: 27002: 27002: 27002: 27002: int compare(const Slice& b) const; 27002: 27002: 27002: bool starts_with(const Slice& x) const { 27002: return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0)); 27002: } 27002: 27002: bool ends_with(const Slice& x) const { 27002: return ((size_ >= x.size_) && 27002: (memcmp(data_ + size_ - x.size_, x.data_, x.size_) == 0)); 27002: } 27002: 27002: 27002: size_t difference_offset(const Slice& b) const; 27002: 27002: 27002: const char* data_; 27002: size_t size_; 27002: 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class PinnableSlice : public Slice, public Cleanable { 27002: public: 27002: PinnableSlice() { buf_ = &self_space_; } 27002: explicit PinnableSlice(std::string* buf) { buf_ = buf; } 27002: 27002: PinnableSlice(PinnableSlice&& other); 27002: PinnableSlice& operator=(PinnableSlice&& other); 27002: 27002: 27002: PinnableSlice(PinnableSlice&) = delete; 27002: PinnableSlice& operator=(PinnableSlice&) = delete; 27002: 27002: inline void PinSlice(const Slice& s, CleanupFunction f, void* arg1, 27002: void* arg2) { 27002: 27002: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: !pinned_ 27002: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "!pinned_" 27002: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 152, __extension__ __PRETTY_FUNCTION__)) 27002: # 152 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: pinned_ = true; 27002: data_ = s.data(); 27002: size_ = s.size(); 27002: RegisterCleanup(f, arg1, arg2); 27002: 27002: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: pinned_ 27002: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "pinned_" 27002: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 157, __extension__ __PRETTY_FUNCTION__)) 27002: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: } 27002: 27002: inline void PinSlice(const Slice& s, Cleanable* cleanable) { 27002: 27002: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: !pinned_ 27002: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "!pinned_" 27002: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 161, __extension__ __PRETTY_FUNCTION__)) 27002: # 161 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: pinned_ = true; 27002: data_ = s.data(); 27002: size_ = s.size(); 27002: if (cleanable != nullptr) { 27002: cleanable->DelegateCleanupsTo(this); 27002: } 27002: 27002: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: pinned_ 27002: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "pinned_" 27002: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 168, __extension__ __PRETTY_FUNCTION__)) 27002: # 168 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: } 27002: 27002: inline void PinSelf(const Slice& slice) { 27002: 27002: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: !pinned_ 27002: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "!pinned_" 27002: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 172, __extension__ __PRETTY_FUNCTION__)) 27002: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: buf_->assign(slice.data(), slice.size()); 27002: data_ = buf_->data(); 27002: size_ = buf_->size(); 27002: 27002: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: !pinned_ 27002: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "!pinned_" 27002: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 176, __extension__ __PRETTY_FUNCTION__)) 27002: # 176 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: } 27002: 27002: inline void PinSelf() { 27002: 27002: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: !pinned_ 27002: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "!pinned_" 27002: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 180, __extension__ __PRETTY_FUNCTION__)) 27002: # 180 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: data_ = buf_->data(); 27002: size_ = buf_->size(); 27002: 27002: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: !pinned_ 27002: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "!pinned_" 27002: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 183, __extension__ __PRETTY_FUNCTION__)) 27002: # 183 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: } 27002: 27002: void remove_suffix(size_t n) { 27002: 27002: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: n <= size() 27002: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "n <= size()" 27002: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 187, __extension__ __PRETTY_FUNCTION__)) 27002: # 187 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: if (pinned_) { 27002: size_ -= n; 27002: } else { 27002: buf_->erase(size() - n, n); 27002: PinSelf(); 27002: } 27002: } 27002: 27002: void remove_prefix(size_t n) { 27002: 27002: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: n <= size() 27002: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "n <= size()" 27002: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 197, __extension__ __PRETTY_FUNCTION__)) 27002: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: if (pinned_) { 27002: data_ += n; 27002: size_ -= n; 27002: } else { 27002: buf_->erase(0, n); 27002: PinSelf(); 27002: } 27002: } 27002: 27002: void Reset() { 27002: Cleanable::Reset(); 27002: pinned_ = false; 27002: size_ = 0; 27002: } 27002: 27002: inline std::string* GetSelf() { return buf_; } 27002: 27002: inline bool IsPinned() const { return pinned_; } 27002: 27002: private: 27002: friend class PinnableSlice4Test; 27002: std::string self_space_; 27002: std::string* buf_; 27002: bool pinned_ = false; 27002: }; 27002: 27002: 27002: 27002: struct SliceParts { 27002: SliceParts(const Slice* _parts, int _num_parts) 27002: : parts(_parts), num_parts(_num_parts) {} 27002: SliceParts() : parts(nullptr), num_parts(0) {} 27002: 27002: const Slice* parts; 27002: int num_parts; 27002: }; 27002: 27002: inline bool operator==(const Slice& x, const Slice& y) { 27002: return ((x.size() == y.size()) && 27002: (memcmp(x.data(), y.data(), x.size()) == 0)); 27002: } 27002: 27002: inline bool operator!=(const Slice& x, const Slice& y) { return !(x == y); } 27002: 27002: inline int Slice::compare(const Slice& b) const { 27002: 27002: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: (static_cast ( 27002: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: data_ != nullptr && b.data_ != nullptr 27002: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: "data_ != nullptr && b.data_ != nullptr" 27002: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 3 4 27002: , "./include/rocksdb/slice.h", 243, __extension__ __PRETTY_FUNCTION__)) 27002: # 243 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice.h" 27002: ; 27002: const size_t min_len = (size_ < b.size_) ? size_ : b.size_; 27002: int r = memcmp(data_, b.data_, min_len); 27002: if (r == 0) { 27002: if (size_ < b.size_) 27002: r = -1; 27002: else if (size_ > b.size_) 27002: r = +1; 27002: } 27002: return r; 27002: } 27002: 27002: inline size_t Slice::difference_offset(const Slice& b) const { 27002: size_t off = 0; 27002: const size_t len = (size_ < b.size_) ? size_ : b.size_; 27002: for (; off < len; off++) { 27002: if (data_[off] != b.data_[off]) break; 27002: } 27002: return off; 27002: } 27002: 27002: } 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/status.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class Status { 27002: public: 27002: 27002: Status() 27002: : code_(kOk), 27002: subcode_(kNone), 27002: sev_(kNoError), 27002: retryable_(false), 27002: data_loss_(false), 27002: scope_(0), 27002: state_(nullptr) {} 27002: ~Status() { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: 27002: Status(const Status& s); 27002: Status& operator=(const Status& s); 27002: Status(Status&& s) noexcept; 27002: Status& operator=(Status&& s) noexcept; 27002: bool operator==(const Status& rhs) const; 27002: bool operator!=(const Status& rhs) const; 27002: 27002: 27002: 27002: 27002: inline void PermitUncheckedError() const { MarkChecked(); } 27002: 27002: inline void MustCheck() const { 27002: 27002: 27002: 27002: } 27002: 27002: enum Code : unsigned char { 27002: kOk = 0, 27002: kNotFound = 1, 27002: kCorruption = 2, 27002: kNotSupported = 3, 27002: kInvalidArgument = 4, 27002: kIOError = 5, 27002: kMergeInProgress = 6, 27002: kIncomplete = 7, 27002: kShutdownInProgress = 8, 27002: kTimedOut = 9, 27002: kAborted = 10, 27002: kBusy = 11, 27002: kExpired = 12, 27002: kTryAgain = 13, 27002: kCompactionTooLarge = 14, 27002: kColumnFamilyDropped = 15, 27002: kMaxCode 27002: }; 27002: 27002: Code code() const { 27002: MarkChecked(); 27002: return code_; 27002: } 27002: 27002: enum SubCode : unsigned char { 27002: kNone = 0, 27002: kMutexTimeout = 1, 27002: kLockTimeout = 2, 27002: kLockLimit = 3, 27002: kNoSpace = 4, 27002: kDeadlock = 5, 27002: kStaleFile = 6, 27002: kMemoryLimit = 7, 27002: kSpaceLimit = 8, 27002: kPathNotFound = 9, 27002: KMergeOperandsInsufficientCapacity = 10, 27002: kManualCompactionPaused = 11, 27002: kOverwritten = 12, 27002: kTxnNotPrepared = 13, 27002: kIOFenced = 14, 27002: kMaxSubCode 27002: }; 27002: 27002: SubCode subcode() const { 27002: MarkChecked(); 27002: return subcode_; 27002: } 27002: 27002: enum Severity : unsigned char { 27002: kNoError = 0, 27002: kSoftError = 1, 27002: kHardError = 2, 27002: kFatalError = 3, 27002: kUnrecoverableError = 4, 27002: kMaxSeverity 27002: }; 27002: 27002: Status(const Status& s, Severity sev); 27002: 27002: Status(Code _code, SubCode _subcode, Severity _sev, const Slice& msg) 27002: : Status(_code, _subcode, msg, "", _sev) {} 27002: 27002: Severity severity() const { 27002: MarkChecked(); 27002: return sev_; 27002: } 27002: 27002: 27002: const char* getState() const { 27002: MarkChecked(); 27002: return state_.get(); 27002: } 27002: 27002: 27002: static Status OK() { return Status(); } 27002: 27002: 27002: 27002: 27002: 27002: static Status OkOverwritten() { return Status(kOk, kOverwritten); } 27002: 27002: 27002: static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kNotFound, msg, msg2); 27002: } 27002: 27002: 27002: static Status NotFound(SubCode msg = kNone) { return Status(kNotFound, msg); } 27002: 27002: static Status NotFound(SubCode sc, const Slice& msg, 27002: const Slice& msg2 = Slice()) { 27002: return Status(kNotFound, sc, msg, msg2); 27002: } 27002: 27002: static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kCorruption, msg, msg2); 27002: } 27002: static Status Corruption(SubCode msg = kNone) { 27002: return Status(kCorruption, msg); 27002: } 27002: 27002: static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kNotSupported, msg, msg2); 27002: } 27002: static Status NotSupported(SubCode msg = kNone) { 27002: return Status(kNotSupported, msg); 27002: } 27002: 27002: static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kInvalidArgument, msg, msg2); 27002: } 27002: static Status InvalidArgument(SubCode msg = kNone) { 27002: return Status(kInvalidArgument, msg); 27002: } 27002: 27002: static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kIOError, msg, msg2); 27002: } 27002: static Status IOError(SubCode msg = kNone) { return Status(kIOError, msg); } 27002: 27002: static Status MergeInProgress(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kMergeInProgress, msg, msg2); 27002: } 27002: static Status MergeInProgress(SubCode msg = kNone) { 27002: return Status(kMergeInProgress, msg); 27002: } 27002: 27002: static Status Incomplete(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kIncomplete, msg, msg2); 27002: } 27002: static Status Incomplete(SubCode msg = kNone) { 27002: return Status(kIncomplete, msg); 27002: } 27002: 27002: static Status ShutdownInProgress(SubCode msg = kNone) { 27002: return Status(kShutdownInProgress, msg); 27002: } 27002: static Status ShutdownInProgress(const Slice& msg, 27002: const Slice& msg2 = Slice()) { 27002: return Status(kShutdownInProgress, msg, msg2); 27002: } 27002: static Status Aborted(SubCode msg = kNone) { return Status(kAborted, msg); } 27002: static Status Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kAborted, msg, msg2); 27002: } 27002: 27002: static Status Busy(SubCode msg = kNone) { return Status(kBusy, msg); } 27002: static Status Busy(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kBusy, msg, msg2); 27002: } 27002: 27002: static Status TimedOut(SubCode msg = kNone) { return Status(kTimedOut, msg); } 27002: static Status TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kTimedOut, msg, msg2); 27002: } 27002: 27002: static Status Expired(SubCode msg = kNone) { return Status(kExpired, msg); } 27002: static Status Expired(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kExpired, msg, msg2); 27002: } 27002: 27002: static Status TryAgain(SubCode msg = kNone) { return Status(kTryAgain, msg); } 27002: static Status TryAgain(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kTryAgain, msg, msg2); 27002: } 27002: 27002: static Status CompactionTooLarge(SubCode msg = kNone) { 27002: return Status(kCompactionTooLarge, msg); 27002: } 27002: static Status CompactionTooLarge(const Slice& msg, 27002: const Slice& msg2 = Slice()) { 27002: return Status(kCompactionTooLarge, msg, msg2); 27002: } 27002: 27002: static Status ColumnFamilyDropped(SubCode msg = kNone) { 27002: return Status(kColumnFamilyDropped, msg); 27002: } 27002: 27002: static Status ColumnFamilyDropped(const Slice& msg, 27002: const Slice& msg2 = Slice()) { 27002: return Status(kColumnFamilyDropped, msg, msg2); 27002: } 27002: 27002: static Status NoSpace() { return Status(kIOError, kNoSpace); } 27002: static Status NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kIOError, kNoSpace, msg, msg2); 27002: } 27002: 27002: static Status MemoryLimit() { return Status(kAborted, kMemoryLimit); } 27002: static Status MemoryLimit(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kAborted, kMemoryLimit, msg, msg2); 27002: } 27002: 27002: static Status SpaceLimit() { return Status(kIOError, kSpaceLimit); } 27002: static Status SpaceLimit(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kIOError, kSpaceLimit, msg, msg2); 27002: } 27002: 27002: static Status PathNotFound() { return Status(kIOError, kPathNotFound); } 27002: static Status PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kIOError, kPathNotFound, msg, msg2); 27002: } 27002: 27002: static Status TxnNotPrepared() { 27002: return Status(kInvalidArgument, kTxnNotPrepared); 27002: } 27002: static Status TxnNotPrepared(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return Status(kInvalidArgument, kTxnNotPrepared, msg, msg2); 27002: } 27002: 27002: 27002: bool ok() const { 27002: MarkChecked(); 27002: return code() == kOk; 27002: } 27002: 27002: 27002: 27002: bool IsOkOverwritten() const { 27002: MarkChecked(); 27002: return code() == kOk && subcode() == kOverwritten; 27002: } 27002: 27002: 27002: bool IsNotFound() const { 27002: MarkChecked(); 27002: return code() == kNotFound; 27002: } 27002: 27002: 27002: bool IsCorruption() const { 27002: MarkChecked(); 27002: return code() == kCorruption; 27002: } 27002: 27002: 27002: bool IsNotSupported() const { 27002: MarkChecked(); 27002: return code() == kNotSupported; 27002: } 27002: 27002: 27002: bool IsInvalidArgument() const { 27002: MarkChecked(); 27002: return code() == kInvalidArgument; 27002: } 27002: 27002: 27002: bool IsIOError() const { 27002: MarkChecked(); 27002: return code() == kIOError; 27002: } 27002: 27002: 27002: bool IsMergeInProgress() const { 27002: MarkChecked(); 27002: return code() == kMergeInProgress; 27002: } 27002: 27002: 27002: bool IsIncomplete() const { 27002: MarkChecked(); 27002: return code() == kIncomplete; 27002: } 27002: 27002: 27002: bool IsShutdownInProgress() const { 27002: MarkChecked(); 27002: return code() == kShutdownInProgress; 27002: } 27002: 27002: bool IsTimedOut() const { 27002: MarkChecked(); 27002: return code() == kTimedOut; 27002: } 27002: 27002: bool IsAborted() const { 27002: MarkChecked(); 27002: return code() == kAborted; 27002: } 27002: 27002: bool IsLockLimit() const { 27002: MarkChecked(); 27002: return code() == kAborted && subcode() == kLockLimit; 27002: } 27002: 27002: 27002: 27002: bool IsBusy() const { 27002: MarkChecked(); 27002: return code() == kBusy; 27002: } 27002: 27002: bool IsDeadlock() const { 27002: MarkChecked(); 27002: return code() == kBusy && subcode() == kDeadlock; 27002: } 27002: 27002: 27002: bool IsExpired() const { 27002: MarkChecked(); 27002: return code() == kExpired; 27002: } 27002: 27002: 27002: 27002: 27002: bool IsTryAgain() const { 27002: MarkChecked(); 27002: return code() == kTryAgain; 27002: } 27002: 27002: 27002: bool IsCompactionTooLarge() const { 27002: MarkChecked(); 27002: return code() == kCompactionTooLarge; 27002: } 27002: 27002: 27002: bool IsColumnFamilyDropped() const { 27002: MarkChecked(); 27002: return code() == kColumnFamilyDropped; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool IsNoSpace() const { 27002: MarkChecked(); 27002: return (code() == kIOError) && (subcode() == kNoSpace); 27002: } 27002: 27002: 27002: 27002: 27002: bool IsMemoryLimit() const { 27002: MarkChecked(); 27002: return (code() == kAborted) && (subcode() == kMemoryLimit); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: bool IsPathNotFound() const { 27002: MarkChecked(); 27002: return (code() == kIOError || code() == kNotFound) && 27002: (subcode() == kPathNotFound); 27002: } 27002: 27002: 27002: 27002: bool IsManualCompactionPaused() const { 27002: MarkChecked(); 27002: return (code() == kIncomplete) && (subcode() == kManualCompactionPaused); 27002: } 27002: 27002: 27002: bool IsTxnNotPrepared() const { 27002: MarkChecked(); 27002: return (code() == kInvalidArgument) && (subcode() == kTxnNotPrepared); 27002: } 27002: 27002: 27002: bool IsIOFenced() const { 27002: MarkChecked(); 27002: return (code() == kIOError) && (subcode() == kIOFenced); 27002: } 27002: 27002: 27002: 27002: std::string ToString() const; 27002: 27002: protected: 27002: Code code_; 27002: SubCode subcode_; 27002: Severity sev_; 27002: bool retryable_; 27002: bool data_loss_; 27002: unsigned char scope_; 27002: 27002: 27002: std::unique_ptr state_; 27002: 27002: 27002: 27002: 27002: explicit Status(Code _code, SubCode _subcode = kNone) 27002: : code_(_code), 27002: subcode_(_subcode), 27002: sev_(kNoError), 27002: retryable_(false), 27002: data_loss_(false), 27002: scope_(0) {} 27002: 27002: explicit Status(Code _code, SubCode _subcode, bool retryable, bool data_loss, 27002: unsigned char scope) 27002: : code_(_code), 27002: subcode_(_subcode), 27002: sev_(kNoError), 27002: retryable_(retryable), 27002: data_loss_(data_loss), 27002: scope_(scope) {} 27002: 27002: Status(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2, 27002: Severity sev = kNoError); 27002: Status(Code _code, const Slice& msg, const Slice& msg2) 27002: : Status(_code, kNone, msg, msg2) {} 27002: 27002: static std::unique_ptr CopyState(const char* s); 27002: 27002: inline void MarkChecked() const { 27002: 27002: 27002: 27002: } 27002: }; 27002: 27002: inline Status::Status(const Status& s) 27002: : code_(s.code_), 27002: subcode_(s.subcode_), 27002: sev_(s.sev_), 27002: retryable_(s.retryable_), 27002: data_loss_(s.data_loss_), 27002: scope_(s.scope_) { 27002: s.MarkChecked(); 27002: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 27002: } 27002: inline Status::Status(const Status& s, Severity sev) 27002: : code_(s.code_), 27002: subcode_(s.subcode_), 27002: sev_(sev), 27002: retryable_(s.retryable_), 27002: data_loss_(s.data_loss_), 27002: scope_(s.scope_) { 27002: s.MarkChecked(); 27002: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 27002: } 27002: inline Status& Status::operator=(const Status& s) { 27002: if (this != &s) { 27002: s.MarkChecked(); 27002: MustCheck(); 27002: code_ = s.code_; 27002: subcode_ = s.subcode_; 27002: sev_ = s.sev_; 27002: retryable_ = s.retryable_; 27002: data_loss_ = s.data_loss_; 27002: scope_ = s.scope_; 27002: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 27002: } 27002: return *this; 27002: } 27002: 27002: inline Status::Status(Status&& s) noexcept : Status() { 27002: s.MarkChecked(); 27002: *this = std::move(s); 27002: } 27002: 27002: inline Status& Status::operator=(Status&& s) noexcept { 27002: if (this != &s) { 27002: s.MarkChecked(); 27002: MustCheck(); 27002: code_ = std::move(s.code_); 27002: s.code_ = kOk; 27002: subcode_ = std::move(s.subcode_); 27002: s.subcode_ = kNone; 27002: sev_ = std::move(s.sev_); 27002: s.sev_ = kNoError; 27002: retryable_ = std::move(s.retryable_); 27002: s.retryable_ = false; 27002: data_loss_ = std::move(s.data_loss_); 27002: s.data_loss_ = false; 27002: scope_ = std::move(s.scope_); 27002: s.scope_ = 0; 27002: state_ = std::move(s.state_); 27002: } 27002: return *this; 27002: } 27002: 27002: inline bool Status::operator==(const Status& rhs) const { 27002: MarkChecked(); 27002: rhs.MarkChecked(); 27002: return (code_ == rhs.code_); 27002: } 27002: 27002: inline bool Status::operator!=(const Status& rhs) const { 27002: MarkChecked(); 27002: rhs.MarkChecked(); 27002: return !(*this == rhs); 27002: } 27002: 27002: } 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 2 27002: 27002: namespace rocksdb { 27002: class Logger; 27002: class ObjectRegistry; 27002: class OptionTypeInfo; 27002: struct ColumnFamilyOptions; 27002: struct ConfigOptions; 27002: struct DBOptions; 27002: # 44 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: class Configurable { 27002: protected: 27002: friend class ConfigurableHelper; 27002: struct RegisteredOptions { 27002: 27002: std::string name; 27002: 27002: void* opt_ptr; 27002: 27002: 27002: const std::unordered_map* type_map; 27002: 27002: }; 27002: 27002: public: 27002: virtual ~Configurable() {} 27002: # 70 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: template 27002: const T* GetOptions() const { 27002: return GetOptions(T::kName()); 27002: } 27002: template 27002: T* GetOptions() { 27002: return GetOptions(T::kName()); 27002: } 27002: template 27002: const T* GetOptions(const std::string& name) const { 27002: return reinterpret_cast(GetOptionsPtr(name)); 27002: } 27002: template 27002: T* GetOptions(const std::string& name) { 27002: return reinterpret_cast(const_cast(GetOptionsPtr(name))); 27002: } 27002: # 116 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: Status ConfigureFromMap( 27002: const ConfigOptions& config_options, 27002: const std::unordered_map& opt_map); 27002: Status ConfigureFromMap( 27002: const ConfigOptions& config_options, 27002: const std::unordered_map& opt_map, 27002: std::unordered_map* unused); 27002: # 136 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: Status ConfigureOption(const ConfigOptions& config_options, 27002: const std::string& name, const std::string& value); 27002: # 162 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: Status ConfigureFromString(const ConfigOptions& config_options, 27002: const std::string& opts); 27002: # 172 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: Status GetOptionString(const ConfigOptions& config_options, 27002: std::string* result) const; 27002: 27002: 27002: 27002: 27002: 27002: 27002: std::string ToString(const ConfigOptions& config_options) const { 27002: return ToString(config_options, ""); 27002: } 27002: std::string ToString(const ConfigOptions& config_options, 27002: const std::string& prefix) const; 27002: 27002: 27002: 27002: 27002: 27002: 27002: Status GetOptionNames(const ConfigOptions& config_options, 27002: std::unordered_set* result) const; 27002: # 203 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: virtual Status GetOption(const ConfigOptions& config_options, 27002: const std::string& name, std::string* value) const; 27002: # 214 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: virtual bool AreEquivalent(const ConfigOptions& config_options, 27002: const Configurable* other, 27002: std::string* name) const; 27002: 27002: 27002: 27002: 27002: virtual std::string GetPrintableOptions() const { return ""; } 27002: # 245 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: virtual Status PrepareOptions(const ConfigOptions& config_options); 27002: # 261 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: virtual Status ValidateOptions(const DBOptions& db_opts, 27002: const ColumnFamilyOptions& cf_opts) const; 27002: # 278 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: static Status GetOptionsMap( 27002: const std::string& opt_value, const std::string& default_id, 27002: std::string* id, std::unordered_map* options); 27002: 27002: protected: 27002: # 293 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: virtual const void* GetOptionsPtr(const std::string& name) const; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status ParseStringOptions(const ConfigOptions& config_options, 27002: const std::string& opts_str); 27002: # 315 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: virtual Status ConfigureOptions( 27002: const ConfigOptions& config_options, 27002: const std::unordered_map& opts_map, 27002: std::unordered_map* unused); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status ParseOption(const ConfigOptions& config_options, 27002: const OptionTypeInfo& opt_info, 27002: const std::string& opt_name, 27002: const std::string& opt_value, void* opt_ptr); 27002: # 345 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: virtual bool OptionsAreEqual(const ConfigOptions& config_options, 27002: const OptionTypeInfo& opt_info, 27002: const std::string& name, 27002: const void* const this_ptr, 27002: const void* const that_ptr, 27002: std::string* bad_name) const; 27002: 27002: 27002: 27002: 27002: virtual std::string SerializeOptions(const ConfigOptions& config_options, 27002: const std::string& header) const; 27002: 27002: 27002: 27002: virtual std::string GetOptionName(const std::string& long_name) const; 27002: # 381 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/configurable.h" 27002: template 27002: void RegisterOptions( 27002: T* opt_ptr, 27002: const std::unordered_map* opt_map) { 27002: RegisterOptions(T::kName(), opt_ptr, opt_map); 27002: } 27002: void RegisterOptions( 27002: const std::string& name, void* opt_ptr, 27002: const std::unordered_map* opt_map); 27002: 27002: 27002: inline bool HasRegisteredOptions() const { return !options_.empty(); } 27002: 27002: private: 27002: 27002: 27002: 27002: std::vector options_; 27002: }; 27002: } 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: # 56 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 27002: class Customizable : public Configurable { 27002: public: 27002: ~Customizable() override {} 27002: 27002: 27002: virtual const char* Name() const = 0; 27002: 27002: 27002: 27002: 27002: virtual std::string GetId() const { 27002: std::string id = Name(); 27002: return id; 27002: } 27002: # 89 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 27002: virtual bool IsInstanceOf(const std::string& name) const { 27002: if (name.empty()) { 27002: return false; 27002: } else if (name == Name()) { 27002: return true; 27002: } else { 27002: const char* nickname = NickName(); 27002: if (nickname != nullptr && name == nickname) { 27002: return true; 27002: } else { 27002: return false; 27002: } 27002: } 27002: } 27002: 27002: const void* GetOptionsPtr(const std::string& name) const override { 27002: const void* ptr = Configurable::GetOptionsPtr(name); 27002: if (ptr != nullptr) { 27002: return ptr; 27002: } else { 27002: const auto inner = Inner(); 27002: if (inner != nullptr) { 27002: return inner->GetOptionsPtr(name); 27002: } else { 27002: return nullptr; 27002: } 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: const T* CheckedCast() const { 27002: if (IsInstanceOf(T::kClassName())) { 27002: return static_cast(this); 27002: } else { 27002: const auto inner = Inner(); 27002: if (inner != nullptr) { 27002: return inner->CheckedCast(); 27002: } else { 27002: return nullptr; 27002: } 27002: } 27002: } 27002: 27002: template 27002: T* CheckedCast() { 27002: if (IsInstanceOf(T::kClassName())) { 27002: return static_cast(this); 27002: } else { 27002: auto inner = const_cast(Inner()); 27002: if (inner != nullptr) { 27002: return inner->CheckedCast(); 27002: } else { 27002: return nullptr; 27002: } 27002: } 27002: } 27002: # 157 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 27002: bool AreEquivalent(const ConfigOptions& config_options, 27002: const Configurable* other, 27002: std::string* mismatch) const override; 27002: 27002: 27002: 27002: Status GetOption(const ConfigOptions& config_options, const std::string& name, 27002: std::string* value) const override; 27002: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 27002: static Status GetOptionsMap( 27002: const ConfigOptions& config_options, const Customizable* custom, 27002: const std::string& opt_value, std::string* id, 27002: std::unordered_map* options); 27002: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 27002: static Status ConfigureNewObject( 27002: const ConfigOptions& config_options, Customizable* object, 27002: const std::unordered_map& options); 27002: 27002: 27002: 27002: 27002: virtual const Customizable* Inner() const { return nullptr; } 27002: 27002: protected: 27002: # 219 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/customizable.h" 27002: std::string GenerateIndividualId() const; 27002: 27002: 27002: 27002: 27002: virtual const char* NickName() const { return ""; } 27002: 27002: std::string GetOptionName(const std::string& long_name) const override; 27002: 27002: std::string SerializeOptions(const ConfigOptions& options, 27002: const std::string& prefix) const override; 27002: 27002: }; 27002: 27002: } 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: 27002: 27002: 27002: class CompareInterface { 27002: public: 27002: virtual ~CompareInterface() {} 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 27002: virtual int Compare(const Slice& a, const Slice& b) const = 0; 27002: }; 27002: # 44 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 27002: class Comparator : public Customizable, public CompareInterface { 27002: public: 27002: Comparator() : timestamp_size_(0) {} 27002: 27002: Comparator(size_t ts_sz) : timestamp_size_(ts_sz) {} 27002: 27002: Comparator(const Comparator& orig) : timestamp_size_(orig.timestamp_size_) {} 27002: 27002: Comparator& operator=(const Comparator& rhs) { 27002: if (this != &rhs) { 27002: timestamp_size_ = rhs.timestamp_size_; 27002: } 27002: return *this; 27002: } 27002: 27002: ~Comparator() override {} 27002: 27002: static Status CreateFromString(const ConfigOptions& opts, 27002: const std::string& id, 27002: const Comparator** comp); 27002: static const char* Type() { return "Comparator"; } 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 27002: const char* Name() const override = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual bool Equal(const Slice& a, const Slice& b) const { 27002: return Compare(a, b) == 0; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void FindShortestSeparator(std::string* start, 27002: const Slice& limit) const = 0; 27002: 27002: 27002: 27002: 27002: virtual void FindShortSuccessor(std::string* key) const = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual bool IsSameLengthImmediateSuccessor(const Slice& , 27002: const Slice& ) const { 27002: return false; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual bool CanKeysWithDifferentByteContentsBeEqual() const { return true; } 27002: 27002: 27002: 27002: virtual const Comparator* GetRootComparator() const { return this; } 27002: 27002: inline size_t timestamp_size() const { return timestamp_size_; } 27002: 27002: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 27002: return CompareWithoutTimestamp(a, true, b, true); 27002: } 27002: # 136 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/comparator.h" 27002: virtual int CompareTimestamp(const Slice& , 27002: const Slice& ) const { 27002: return 0; 27002: } 27002: 27002: virtual int CompareWithoutTimestamp(const Slice& a, bool , 27002: const Slice& b, bool ) const { 27002: return Compare(a, b); 27002: } 27002: 27002: virtual bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 27002: return 0 == 27002: CompareWithoutTimestamp(a, true, b, true); 27002: } 27002: 27002: private: 27002: size_t timestamp_size_; 27002: }; 27002: 27002: 27002: 27002: 27002: extern const Comparator* BytewiseComparator(); 27002: 27002: 27002: 27002: extern const Comparator* ReverseBytewiseComparator(); 27002: 27002: } 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 1 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: struct ConfigOptions; 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 27002: class SliceTransform : public Customizable { 27002: public: 27002: virtual ~SliceTransform(){}; 27002: 27002: 27002: virtual const char* Name() const override = 0; 27002: static const char* Type() { return "SliceTransform"; } 27002: 27002: 27002: static Status CreateFromString(const ConfigOptions& config_options, 27002: const std::string& id, 27002: std::shared_ptr* result); 27002: 27002: 27002: 27002: std::string AsString() const; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Slice Transform(const Slice& key) const = 0; 27002: # 71 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 27002: virtual bool InDomain(const Slice& key) const = 0; 27002: 27002: 27002: 27002: virtual bool InRange(const Slice& ) const { return false; } 27002: # 92 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 27002: virtual bool FullLengthEnabled(size_t* ) const { return false; } 27002: # 119 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/slice_transform.h" 27002: virtual bool SameResultWhenAppended(const Slice& ) const { 27002: return false; 27002: } 27002: }; 27002: 27002: 27002: 27002: extern const SliceTransform* NewFixedPrefixTransform(size_t prefix_len); 27002: 27002: 27002: 27002: extern const SliceTransform* NewCappedPrefixTransform(size_t cap_len); 27002: 27002: 27002: extern const SliceTransform* NewNoopTransform(); 27002: 27002: } 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/types.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: using ColumnFamilyId = uint32_t; 27002: 27002: 27002: using SequenceNumber = uint64_t; 27002: 27002: const SequenceNumber kMinUnCommittedSeq = 1; 27002: 27002: enum class TableFileCreationReason { 27002: kFlush, 27002: kCompaction, 27002: kRecovery, 27002: kMisc, 27002: }; 27002: 27002: enum class BlobFileCreationReason { 27002: kFlush, 27002: kCompaction, 27002: kRecovery, 27002: }; 27002: 27002: 27002: 27002: enum FileType { 27002: kWalFile, 27002: kDBLockFile, 27002: kTableFile, 27002: kDescriptorFile, 27002: kCurrentFile, 27002: kTempFile, 27002: kInfoLogFile, 27002: kMetaDatabase, 27002: kIdentityFile, 27002: kOptionsFile, 27002: kBlobFile 27002: }; 27002: 27002: 27002: 27002: enum EntryType { 27002: kEntryPut, 27002: kEntryDelete, 27002: kEntrySingleDelete, 27002: kEntryMerge, 27002: kEntryRangeDeletion, 27002: kEntryBlobIndex, 27002: kEntryDeleteWithTimestamp, 27002: kEntryWideColumnEntity, 27002: kEntryOther, 27002: }; 27002: 27002: } 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/coding.h" 1 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/util/coding.h" 27002: 27002: # 1 "/usr/include/c++/12/algorithm" 1 3 27002: # 58 "/usr/include/c++/12/algorithm" 3 27002: 27002: # 59 "/usr/include/c++/12/algorithm" 3 27002: # 73 "/usr/include/c++/12/algorithm" 3 27002: # 1 "/usr/include/c++/12/pstl/glue_algorithm_defs.h" 1 3 27002: # 17 "/usr/include/c++/12/pstl/glue_algorithm_defs.h" 3 27002: 27002: # 17 "/usr/include/c++/12/pstl/glue_algorithm_defs.h" 3 27002: namespace std 27002: { 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 27002: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 27002: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 27002: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 27002: _ForwardIterator2 __s_last); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 27002: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 27002: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 27002: typename iterator_traits<_ForwardIterator>::difference_type> 27002: count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 27002: typename iterator_traits<_ForwardIterator>::difference_type> 27002: count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 27002: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 27002: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 27002: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 27002: _ForwardIterator2 __s_last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 27002: const _Tp& __value, _BinaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 27002: const _Tp& __value); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, 27002: _Predicate __pred); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 27002: _UnaryOperation __op); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator __result, _BinaryOperation __op); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, 27002: const _Tp& __new_value); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, 27002: const _Tp& __new_value); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 27002: const _Tp& __old_value, const _Tp& __new_value); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result, _Predicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 27002: const _Tp& __value); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 27002: _BinaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 27002: _ForwardIterator __d_first); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> 27002: stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 27002: _UnaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 27002: partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 27002: _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 27002: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator2 __last2, _BinaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 27002: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _BinaryPredicate __pred); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 27002: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator2 __last2); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 27002: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _BinaryPredicate __p); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator2 __last2, _BinaryPredicate __p); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator2 __last2); 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 27002: _RandomAccessIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 27002: _RandomAccessIterator __last); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 27002: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 27002: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 27002: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 27002: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 27002: _RandomAccessIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 27002: _RandomAccessIterator __last); 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator2 __last2, _ForwardIterator __d_first); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 27002: _BidirectionalIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 27002: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 27002: _BidirectionalIterator __last); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator2 __last2, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator2 __last2); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 27002: _ForwardIterator2 __last2, _ForwardIterator __result); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, 27002: _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 27002: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 27002: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 27002: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 27002: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 27002: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 27002: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _ForwardIterator2 __last2); 27002: 27002: } 27002: # 74 "/usr/include/c++/12/algorithm" 2 3 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/util/coding.h" 2 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/port.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/port/port.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 1 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 27002: 27002: 27002: # 1 "/usr/include/c++/12/thread" 1 3 27002: # 32 "/usr/include/c++/12/thread" 3 27002: 27002: # 33 "/usr/include/c++/12/thread" 3 27002: # 43 "/usr/include/c++/12/thread" 3 27002: # 1 "/usr/include/c++/12/bits/std_thread.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/std_thread.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/std_thread.h" 3 27002: # 52 "/usr/include/c++/12/bits/std_thread.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class thread 27002: { 27002: public: 27002: 27002: 27002: 27002: struct _State 27002: { 27002: virtual ~_State(); 27002: virtual void _M_run() = 0; 27002: }; 27002: using _State_ptr = unique_ptr<_State>; 27002: 27002: using native_handle_type = __gthread_t; 27002: 27002: 27002: 27002: 27002: 27002: class id 27002: { 27002: native_handle_type _M_thread; 27002: 27002: public: 27002: id() noexcept : _M_thread() { } 27002: 27002: explicit 27002: id(native_handle_type __id) : _M_thread(__id) { } 27002: 27002: private: 27002: friend class thread; 27002: friend struct hash; 27002: 27002: friend bool 27002: operator==(id __x, id __y) noexcept; 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator<(id __x, id __y) noexcept; 27002: 27002: 27002: template 27002: friend basic_ostream<_CharT, _Traits>& 27002: operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); 27002: }; 27002: 27002: private: 27002: id _M_id; 27002: 27002: 27002: 27002: 27002: template 27002: using __not_same = __not_, thread>>; 27002: 27002: public: 27002: thread() noexcept = default; 27002: 27002: 27002: template>> 27002: explicit 27002: thread(_Callable&& __f, _Args&&... __args) 27002: { 27002: static_assert( __is_invocable::type, 27002: typename decay<_Args>::type...>::value, 27002: "std::thread arguments must be invocable after conversion to rvalues" 27002: ); 27002: 27002: 27002: 27002: 27002: 27002: auto __depend = nullptr; 27002: 27002: using _Wrapper = _Call_wrapper<_Callable, _Args...>; 27002: 27002: 27002: _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( 27002: std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), 27002: __depend); 27002: } 27002: 27002: 27002: ~thread() 27002: { 27002: if (joinable()) 27002: std::__terminate(); 27002: } 27002: 27002: thread(const thread&) = delete; 27002: 27002: thread(thread&& __t) noexcept 27002: { swap(__t); } 27002: 27002: thread& operator=(const thread&) = delete; 27002: 27002: thread& operator=(thread&& __t) noexcept 27002: { 27002: if (joinable()) 27002: std::__terminate(); 27002: swap(__t); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(thread& __t) noexcept 27002: { std::swap(_M_id, __t._M_id); } 27002: 27002: bool 27002: joinable() const noexcept 27002: { return !(_M_id == id()); } 27002: 27002: void 27002: join(); 27002: 27002: void 27002: detach(); 27002: 27002: id 27002: get_id() const noexcept 27002: { return _M_id; } 27002: 27002: 27002: 27002: native_handle_type 27002: native_handle() 27002: { return _M_id._M_thread; } 27002: 27002: 27002: static unsigned int 27002: hardware_concurrency() noexcept; 27002: 27002: 27002: private: 27002: template 27002: struct _State_impl : public _State 27002: { 27002: _Callable _M_func; 27002: 27002: template 27002: _State_impl(_Args&&... __args) 27002: : _M_func{{std::forward<_Args>(__args)...}} 27002: { } 27002: 27002: void 27002: _M_run() { _M_func(); } 27002: }; 27002: 27002: void 27002: _M_start_thread(_State_ptr, void (*)()); 27002: # 235 "/usr/include/c++/12/bits/std_thread.h" 3 27002: private: 27002: 27002: template 27002: struct _Invoker 27002: { 27002: _Tuple _M_t; 27002: 27002: template 27002: struct __result; 27002: template 27002: struct __result> 27002: : __invoke_result<_Fn, _Args...> 27002: { }; 27002: 27002: template 27002: typename __result<_Tuple>::type 27002: _M_invoke(_Index_tuple<_Ind...>) 27002: { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } 27002: 27002: typename __result<_Tuple>::type 27002: operator()() 27002: { 27002: using _Indices 27002: = typename _Build_index_tuple::value>::__type; 27002: return _M_invoke(_Indices()); 27002: } 27002: }; 27002: 27002: public: 27002: template 27002: using _Call_wrapper = _Invoker::type...>>; 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline void 27002: swap(thread& __x, thread& __y) noexcept 27002: { __x.swap(__y); } 27002: 27002: inline bool 27002: operator==(thread::id __x, thread::id __y) noexcept 27002: { 27002: 27002: 27002: 27002: 27002: return __x._M_thread == __y._M_thread; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const thread::id& __id) const noexcept 27002: { return std::_Hash_impl::hash(__id._M_thread); } 27002: }; 27002: 27002: namespace this_thread 27002: { 27002: 27002: inline thread::id 27002: get_id() noexcept 27002: { 27002: 27002: 27002: 27002: return thread::id(pthread_self()); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: inline void 27002: yield() noexcept 27002: { 27002: 27002: __gthread_yield(); 27002: 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: 27002: } 27002: # 44 "/usr/include/c++/12/thread" 2 3 27002: # 1 "/usr/include/c++/12/bits/this_thread_sleep.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/this_thread_sleep.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/this_thread_sleep.h" 3 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/chrono.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/chrono.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/chrono.h" 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/ratio" 1 3 27002: # 33 "/usr/include/c++/12/ratio" 3 27002: 27002: # 34 "/usr/include/c++/12/ratio" 3 27002: # 42 "/usr/include/c++/12/ratio" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 56 "/usr/include/c++/12/ratio" 3 27002: template 27002: struct __static_sign 27002: : integral_constant 27002: { }; 27002: 27002: template 27002: struct __static_abs 27002: : integral_constant::value> 27002: { }; 27002: 27002: template 27002: struct __static_gcd 27002: : __static_gcd<_Qn, (_Pn % _Qn)> 27002: { }; 27002: 27002: template 27002: struct __static_gcd<_Pn, 0> 27002: : integral_constant::value> 27002: { }; 27002: 27002: template 27002: struct __static_gcd<0, _Qn> 27002: : integral_constant::value> 27002: { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __safe_multiply 27002: { 27002: private: 27002: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 27002: 27002: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 27002: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 27002: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 27002: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 27002: 27002: static_assert(__a1 == 0 || __b1 == 0, 27002: "overflow in multiplication"); 27002: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 27002: "overflow in multiplication"); 27002: static_assert(__b0 * __a0 <= 0x7fffffffffffffffLL, 27002: "overflow in multiplication"); 27002: static_assert((__a0 * __b1 + __b0 * __a1) * __c 27002: <= 0x7fffffffffffffffLL - __b0 * __a0, 27002: "overflow in multiplication"); 27002: 27002: public: 27002: static const intmax_t value = _Pn * _Qn; 27002: }; 27002: 27002: 27002: 27002: template 27002: struct __big_less 27002: : integral_constant 27002: { }; 27002: 27002: template 27002: struct __big_add 27002: { 27002: static constexpr uintmax_t __lo = __lo1 + __lo2; 27002: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 27002: (__lo1 + __lo2 < __lo1)); 27002: }; 27002: 27002: 27002: template 27002: struct __big_sub 27002: { 27002: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 27002: "Internal library error"); 27002: static constexpr uintmax_t __lo = __lo1 - __lo2; 27002: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 27002: (__lo1 < __lo2)); 27002: }; 27002: 27002: 27002: template 27002: struct __big_mul 27002: { 27002: private: 27002: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 27002: static constexpr uintmax_t __x0 = __x % __c; 27002: static constexpr uintmax_t __x1 = __x / __c; 27002: static constexpr uintmax_t __y0 = __y % __c; 27002: static constexpr uintmax_t __y1 = __y / __c; 27002: static constexpr uintmax_t __x0y0 = __x0 * __y0; 27002: static constexpr uintmax_t __x0y1 = __x0 * __y1; 27002: static constexpr uintmax_t __x1y0 = __x1 * __y0; 27002: static constexpr uintmax_t __x1y1 = __x1 * __y1; 27002: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 27002: static constexpr uintmax_t __mix_lo = __mix * __c; 27002: static constexpr uintmax_t __mix_hi 27002: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 27002: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 27002: public: 27002: static constexpr uintmax_t __hi = _Res::__hi; 27002: static constexpr uintmax_t __lo = _Res::__lo; 27002: }; 27002: 27002: 27002: 27002: template 27002: struct __big_div_impl 27002: { 27002: private: 27002: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 27002: "Internal library error"); 27002: static_assert(__n1 < __d, "Internal library error"); 27002: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 27002: static constexpr uintmax_t __d1 = __d / __c; 27002: static constexpr uintmax_t __d0 = __d % __c; 27002: 27002: static constexpr uintmax_t __q1x = __n1 / __d1; 27002: static constexpr uintmax_t __r1x = __n1 % __d1; 27002: static constexpr uintmax_t __m = __q1x * __d0; 27002: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 27002: static constexpr uintmax_t __r1z = __r1y + __d; 27002: static constexpr uintmax_t __r1 27002: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 27002: ? (__r1z + __d) : __r1z : __r1y) - __m; 27002: static constexpr uintmax_t __q1 27002: = __q1x - ((__r1y < __m) 27002: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 27002: static constexpr uintmax_t __q0x = __r1 / __d1; 27002: static constexpr uintmax_t __r0x = __r1 % __d1; 27002: static constexpr uintmax_t __n = __q0x * __d0; 27002: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 27002: static constexpr uintmax_t __r0z = __r0y + __d; 27002: static constexpr uintmax_t __r0 27002: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 27002: ? (__r0z + __d) : __r0z : __r0y) - __n; 27002: static constexpr uintmax_t __q0 27002: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 27002: && (__r0z < __n)) ? 2 : 1 : 0); 27002: 27002: public: 27002: static constexpr uintmax_t __quot = __q1 * __c + __q0; 27002: static constexpr uintmax_t __rem = __r0; 27002: 27002: private: 27002: typedef __big_mul<__quot, __d> _Prod; 27002: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 27002: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 27002: "Internal library error"); 27002: }; 27002: 27002: template 27002: struct __big_div 27002: { 27002: private: 27002: static_assert(__d != 0, "Internal library error"); 27002: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 27002: "This library calls __builtin_clzll on uintmax_t, which " 27002: "is unsafe on your platform. Please complain to " 27002: "http://gcc.gnu.org/bugzilla/"); 27002: static constexpr int __shift = __builtin_clzll(__d); 27002: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 27002: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 27002: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 27002: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 27002: static constexpr uintmax_t __new_d = __d * __c1; 27002: static constexpr uintmax_t __new_n0 = __n0 * __c1; 27002: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 27002: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 27002: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 27002: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 27002: 27002: public: 27002: static constexpr uintmax_t __quot_hi = __n1 / __d; 27002: static constexpr uintmax_t __quot_lo = _Res::__quot; 27002: static constexpr uintmax_t __rem = _Res::__rem / __c1; 27002: 27002: private: 27002: typedef __big_mul<__quot_lo, __d> _P0; 27002: typedef __big_mul<__quot_hi, __d> _P1; 27002: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 27002: 27002: static_assert(_P1::__hi == 0, "Internal library error"); 27002: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 27002: 27002: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 27002: "Internal library error"); 27002: static_assert(__rem < __d, "Internal library error"); 27002: }; 27002: # 265 "/usr/include/c++/12/ratio" 3 27002: template 27002: struct ratio 27002: { 27002: static_assert(_Den != 0, "denominator cannot be zero"); 27002: static_assert(_Num >= -0x7fffffffffffffffLL && _Den >= -0x7fffffffffffffffLL, 27002: "out of range"); 27002: 27002: 27002: static constexpr intmax_t num = 27002: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 27002: 27002: static constexpr intmax_t den = 27002: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 27002: 27002: typedef ratio type; 27002: }; 27002: # 292 "/usr/include/c++/12/ratio" 3 27002: template 27002: struct __ratio_multiply 27002: { 27002: private: 27002: static const intmax_t __gcd1 = 27002: __static_gcd<_R1::num, _R2::den>::value; 27002: static const intmax_t __gcd2 = 27002: __static_gcd<_R2::num, _R1::den>::value; 27002: 27002: public: 27002: typedef ratio< 27002: __safe_multiply<(_R1::num / __gcd1), 27002: (_R2::num / __gcd2)>::value, 27002: __safe_multiply<(_R1::den / __gcd2), 27002: (_R2::den / __gcd1)>::value> type; 27002: 27002: static constexpr intmax_t num = type::num; 27002: static constexpr intmax_t den = type::den; 27002: }; 27002: # 323 "/usr/include/c++/12/ratio" 3 27002: template 27002: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 27002: 27002: 27002: 27002: template 27002: struct __ratio_divide 27002: { 27002: static_assert(_R2::num != 0, "division by 0"); 27002: 27002: typedef typename __ratio_multiply< 27002: _R1, 27002: ratio<_R2::den, _R2::num>>::type type; 27002: 27002: static constexpr intmax_t num = type::num; 27002: static constexpr intmax_t den = type::den; 27002: }; 27002: # 352 "/usr/include/c++/12/ratio" 3 27002: template 27002: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 27002: 27002: 27002: template 27002: struct ratio_equal 27002: : integral_constant 27002: { }; 27002: 27002: 27002: template 27002: struct ratio_not_equal 27002: : integral_constant::value> 27002: { }; 27002: 27002: 27002: 27002: 27002: template, 27002: typename _Right = __big_mul<_R2::num,_R1::den> > 27002: struct __ratio_less_impl_1 27002: : integral_constant::value> 27002: { }; 27002: 27002: template::value 27002: != __static_sign<_R2::num>::value)), 27002: bool = (__static_sign<_R1::num>::value == -1 27002: && __static_sign<_R2::num>::value == -1)> 27002: struct __ratio_less_impl 27002: : __ratio_less_impl_1<_R1, _R2>::type 27002: { }; 27002: 27002: template 27002: struct __ratio_less_impl<_R1, _R2, true, false> 27002: : integral_constant 27002: { }; 27002: 27002: template 27002: struct __ratio_less_impl<_R1, _R2, false, true> 27002: : __ratio_less_impl_1, 27002: ratio<-_R1::num, _R1::den> >::type 27002: { }; 27002: 27002: 27002: 27002: 27002: template 27002: struct ratio_less 27002: : __ratio_less_impl<_R1, _R2>::type 27002: { }; 27002: 27002: 27002: template 27002: struct ratio_less_equal 27002: : integral_constant::value> 27002: { }; 27002: 27002: 27002: template 27002: struct ratio_greater 27002: : integral_constant::value> 27002: { }; 27002: 27002: 27002: template 27002: struct ratio_greater_equal 27002: : integral_constant::value> 27002: { }; 27002: 27002: 27002: template 27002: inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; 27002: template 27002: inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; 27002: template 27002: inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; 27002: template 27002: inline constexpr bool ratio_less_equal_v = 27002: ratio_less_equal<_R1, _R2>::value; 27002: template 27002: inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; 27002: template 27002: inline constexpr bool ratio_greater_equal_v 27002: = ratio_greater_equal<_R1, _R2>::value; 27002: 27002: 27002: 27002: 27002: template= 0), 27002: bool = (_R2::num >= 0), 27002: bool = ratio_less::value, _R1::den>, 27002: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 27002: struct __ratio_add_impl 27002: { 27002: private: 27002: typedef typename __ratio_add_impl< 27002: ratio<-_R1::num, _R1::den>, 27002: ratio<-_R2::num, _R2::den> >::type __t; 27002: public: 27002: typedef ratio<-__t::num, __t::den> type; 27002: }; 27002: 27002: 27002: template 27002: struct __ratio_add_impl<_R1, _R2, true, true, __b> 27002: { 27002: private: 27002: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 27002: static constexpr uintmax_t __d2 = _R2::den / __g; 27002: typedef __big_mul<_R1::den, __d2> __d; 27002: typedef __big_mul<_R1::num, _R2::den / __g> __x; 27002: typedef __big_mul<_R2::num, _R1::den / __g> __y; 27002: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 27002: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 27002: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 27002: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 27002: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 27002: static_assert(__n_final::__rem == 0, "Internal library error"); 27002: static_assert(__n_final::__quot_hi == 0 && 27002: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 27002: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 27002: static_assert(__d_final::__hi == 0 && 27002: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 27002: public: 27002: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 27002: }; 27002: 27002: template 27002: struct __ratio_add_impl<_R1, _R2, false, true, true> 27002: : __ratio_add_impl<_R2, _R1> 27002: { }; 27002: 27002: 27002: template 27002: struct __ratio_add_impl<_R1, _R2, true, false, false> 27002: { 27002: private: 27002: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 27002: static constexpr uintmax_t __d2 = _R2::den / __g; 27002: typedef __big_mul<_R1::den, __d2> __d; 27002: typedef __big_mul<_R1::num, _R2::den / __g> __x; 27002: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 27002: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 27002: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 27002: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 27002: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 27002: static_assert(__n_final::__rem == 0, "Internal library error"); 27002: static_assert(__n_final::__quot_hi == 0 && 27002: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 27002: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 27002: static_assert(__d_final::__hi == 0 && 27002: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 27002: public: 27002: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 27002: }; 27002: 27002: template 27002: struct __ratio_add 27002: { 27002: typedef typename __ratio_add_impl<_R1, _R2>::type type; 27002: static constexpr intmax_t num = type::num; 27002: static constexpr intmax_t den = type::den; 27002: }; 27002: # 532 "/usr/include/c++/12/ratio" 3 27002: template 27002: using ratio_add = typename __ratio_add<_R1, _R2>::type; 27002: 27002: 27002: 27002: template 27002: struct __ratio_subtract 27002: { 27002: typedef typename __ratio_add< 27002: _R1, 27002: ratio<-_R2::num, _R2::den>>::type type; 27002: 27002: static constexpr intmax_t num = type::num; 27002: static constexpr intmax_t den = type::den; 27002: }; 27002: # 559 "/usr/include/c++/12/ratio" 3 27002: template 27002: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 27002: 27002: 27002: typedef ratio<1, 1000000000000000000> atto; 27002: typedef ratio<1, 1000000000000000> femto; 27002: typedef ratio<1, 1000000000000> pico; 27002: typedef ratio<1, 1000000000> nano; 27002: typedef ratio<1, 1000000> micro; 27002: typedef ratio<1, 1000> milli; 27002: typedef ratio<1, 100> centi; 27002: typedef ratio<1, 10> deci; 27002: typedef ratio< 10, 1> deca; 27002: typedef ratio< 100, 1> hecto; 27002: typedef ratio< 1000, 1> kilo; 27002: typedef ratio< 1000000, 1> mega; 27002: typedef ratio< 1000000000, 1> giga; 27002: typedef ratio< 1000000000000, 1> tera; 27002: typedef ratio< 1000000000000000, 1> peta; 27002: typedef ratio< 1000000000000000000, 1> exa; 27002: 27002: 27002: 27002: } 27002: # 38 "/usr/include/c++/12/bits/chrono.h" 2 3 27002: 27002: # 1 "/usr/include/c++/12/limits" 1 3 27002: # 40 "/usr/include/c++/12/limits" 3 27002: 27002: # 41 "/usr/include/c++/12/limits" 3 27002: # 158 "/usr/include/c++/12/limits" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: enum float_round_style 27002: { 27002: round_indeterminate = -1, 27002: round_toward_zero = 0, 27002: round_to_nearest = 1, 27002: round_toward_infinity = 2, 27002: round_toward_neg_infinity = 3 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: enum float_denorm_style 27002: { 27002: 27002: denorm_indeterminate = -1, 27002: 27002: denorm_absent = 0, 27002: 27002: denorm_present = 1 27002: }; 27002: # 202 "/usr/include/c++/12/limits" 3 27002: struct __numeric_limits_base 27002: { 27002: 27002: 27002: static constexpr bool is_specialized = false; 27002: 27002: 27002: 27002: 27002: static constexpr int digits = 0; 27002: 27002: 27002: static constexpr int digits10 = 0; 27002: 27002: 27002: 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: 27002: 27002: static constexpr bool is_signed = false; 27002: 27002: 27002: static constexpr bool is_integer = false; 27002: 27002: 27002: 27002: 27002: static constexpr bool is_exact = false; 27002: 27002: 27002: 27002: static constexpr int radix = 0; 27002: 27002: 27002: 27002: static constexpr int min_exponent = 0; 27002: 27002: 27002: 27002: static constexpr int min_exponent10 = 0; 27002: 27002: 27002: 27002: 27002: static constexpr int max_exponent = 0; 27002: 27002: 27002: 27002: static constexpr int max_exponent10 = 0; 27002: 27002: 27002: static constexpr bool has_infinity = false; 27002: 27002: 27002: 27002: static constexpr bool has_quiet_NaN = false; 27002: 27002: 27002: 27002: static constexpr bool has_signaling_NaN = false; 27002: 27002: 27002: static constexpr float_denorm_style has_denorm = denorm_absent; 27002: 27002: 27002: 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: 27002: 27002: static constexpr bool is_iec559 = false; 27002: 27002: 27002: 27002: 27002: static constexpr bool is_bounded = false; 27002: # 288 "/usr/include/c++/12/limits" 3 27002: static constexpr bool is_modulo = false; 27002: 27002: 27002: static constexpr bool traps = false; 27002: 27002: 27002: static constexpr bool tinyness_before = false; 27002: 27002: 27002: 27002: 27002: static constexpr float_round_style round_style = 27002: round_toward_zero; 27002: }; 27002: # 311 "/usr/include/c++/12/limits" 3 27002: template 27002: struct numeric_limits : public __numeric_limits_base 27002: { 27002: 27002: 27002: static constexpr _Tp 27002: min() noexcept { return _Tp(); } 27002: 27002: 27002: static constexpr _Tp 27002: max() noexcept { return _Tp(); } 27002: 27002: 27002: 27002: 27002: static constexpr _Tp 27002: lowest() noexcept { return _Tp(); } 27002: 27002: 27002: 27002: 27002: static constexpr _Tp 27002: epsilon() noexcept { return _Tp(); } 27002: 27002: 27002: static constexpr _Tp 27002: round_error() noexcept { return _Tp(); } 27002: 27002: 27002: static constexpr _Tp 27002: infinity() noexcept { return _Tp(); } 27002: 27002: 27002: 27002: static constexpr _Tp 27002: quiet_NaN() noexcept { return _Tp(); } 27002: 27002: 27002: 27002: static constexpr _Tp 27002: signaling_NaN() noexcept { return _Tp(); } 27002: 27002: 27002: 27002: 27002: static constexpr _Tp 27002: denorm_min() noexcept { return _Tp(); } 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct numeric_limits 27002: : public numeric_limits<_Tp> { }; 27002: 27002: template 27002: struct numeric_limits 27002: : public numeric_limits<_Tp> { }; 27002: 27002: template 27002: struct numeric_limits 27002: : public numeric_limits<_Tp> { }; 27002: # 383 "/usr/include/c++/12/limits" 3 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr bool 27002: min() noexcept { return false; } 27002: 27002: static constexpr bool 27002: max() noexcept { return true; } 27002: 27002: 27002: static constexpr bool 27002: lowest() noexcept { return min(); } 27002: 27002: static constexpr int digits = 1; 27002: static constexpr int digits10 = 0; 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = false; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr bool 27002: epsilon() noexcept { return false; } 27002: 27002: static constexpr bool 27002: round_error() noexcept { return false; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr bool 27002: infinity() noexcept { return false; } 27002: 27002: static constexpr bool 27002: quiet_NaN() noexcept { return false; } 27002: 27002: static constexpr bool 27002: signaling_NaN() noexcept { return false; } 27002: 27002: static constexpr bool 27002: denorm_min() noexcept { return false; } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = false; 27002: 27002: 27002: 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr char 27002: 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); } 27002: 27002: static constexpr char 27002: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 27002: 27002: 27002: static constexpr char 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 27002: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = ((char)(-1) < 0); 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr char 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr char 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr 27002: char infinity() noexcept { return char(); } 27002: 27002: static constexpr char 27002: quiet_NaN() noexcept { return char(); } 27002: 27002: static constexpr char 27002: signaling_NaN() noexcept { return char(); } 27002: 27002: static constexpr char 27002: denorm_min() noexcept { return static_cast(0); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = !is_signed; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr signed char 27002: min() noexcept { return -0x7f - 1; } 27002: 27002: static constexpr signed char 27002: max() noexcept { return 0x7f; } 27002: 27002: 27002: static constexpr signed char 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 27002: static constexpr int digits10 27002: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = true; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr signed char 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr signed char 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr signed char 27002: infinity() noexcept { return static_cast(0); } 27002: 27002: static constexpr signed char 27002: quiet_NaN() noexcept { return static_cast(0); } 27002: 27002: static constexpr signed char 27002: signaling_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr signed char 27002: denorm_min() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = false; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr unsigned char 27002: min() noexcept { return 0; } 27002: 27002: static constexpr unsigned char 27002: max() noexcept { return 0x7f * 2U + 1; } 27002: 27002: 27002: static constexpr unsigned char 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits 27002: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 27002: static constexpr int digits10 27002: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = false; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr unsigned char 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr unsigned char 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr unsigned char 27002: infinity() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned char 27002: quiet_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned char 27002: signaling_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned char 27002: denorm_min() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = true; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr wchar_t 27002: 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); } 27002: 27002: static constexpr wchar_t 27002: 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); } 27002: 27002: 27002: static constexpr wchar_t 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 27002: static constexpr int digits10 27002: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr wchar_t 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr wchar_t 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr wchar_t 27002: infinity() noexcept { return wchar_t(); } 27002: 27002: static constexpr wchar_t 27002: quiet_NaN() noexcept { return wchar_t(); } 27002: 27002: static constexpr wchar_t 27002: signaling_NaN() noexcept { return wchar_t(); } 27002: 27002: static constexpr wchar_t 27002: denorm_min() noexcept { return wchar_t(); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = !is_signed; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: # 796 "/usr/include/c++/12/limits" 3 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr char16_t 27002: 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); } 27002: 27002: static constexpr char16_t 27002: 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); } 27002: 27002: static constexpr char16_t 27002: lowest() noexcept { return min(); } 27002: 27002: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 27002: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 27002: static constexpr int max_digits10 = 0; 27002: static constexpr bool is_signed = ((char16_t)(-1) < 0); 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr char16_t 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr char16_t 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr char16_t 27002: infinity() noexcept { return char16_t(); } 27002: 27002: static constexpr char16_t 27002: quiet_NaN() noexcept { return char16_t(); } 27002: 27002: static constexpr char16_t 27002: signaling_NaN() noexcept { return char16_t(); } 27002: 27002: static constexpr char16_t 27002: denorm_min() noexcept { return char16_t(); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = !is_signed; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr char32_t 27002: 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); } 27002: 27002: static constexpr char32_t 27002: 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); } 27002: 27002: static constexpr char32_t 27002: lowest() noexcept { return min(); } 27002: 27002: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 27002: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 27002: static constexpr int max_digits10 = 0; 27002: static constexpr bool is_signed = ((char32_t)(-1) < 0); 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr char32_t 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr char32_t 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr char32_t 27002: infinity() noexcept { return char32_t(); } 27002: 27002: static constexpr char32_t 27002: quiet_NaN() noexcept { return char32_t(); } 27002: 27002: static constexpr char32_t 27002: signaling_NaN() noexcept { return char32_t(); } 27002: 27002: static constexpr char32_t 27002: denorm_min() noexcept { return char32_t(); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = !is_signed; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style = round_toward_zero; 27002: }; 27002: 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr short 27002: min() noexcept { return -0x7fff - 1; } 27002: 27002: static constexpr short 27002: max() noexcept { return 0x7fff; } 27002: 27002: 27002: static constexpr short 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 27002: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = true; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr short 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr short 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr short 27002: infinity() noexcept { return short(); } 27002: 27002: static constexpr short 27002: quiet_NaN() noexcept { return short(); } 27002: 27002: static constexpr short 27002: signaling_NaN() noexcept { return short(); } 27002: 27002: static constexpr short 27002: denorm_min() noexcept { return short(); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = false; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr unsigned short 27002: min() noexcept { return 0; } 27002: 27002: static constexpr unsigned short 27002: max() noexcept { return 0x7fff * 2U + 1; } 27002: 27002: 27002: static constexpr unsigned short 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits 27002: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 27002: static constexpr int digits10 27002: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = false; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr unsigned short 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr unsigned short 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr unsigned short 27002: infinity() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned short 27002: quiet_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned short 27002: signaling_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned short 27002: denorm_min() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = true; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr int 27002: min() noexcept { return -0x7fffffff - 1; } 27002: 27002: static constexpr int 27002: max() noexcept { return 0x7fffffff; } 27002: 27002: 27002: static constexpr int 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 27002: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = true; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr int 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr int 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr int 27002: infinity() noexcept { return static_cast(0); } 27002: 27002: static constexpr int 27002: quiet_NaN() noexcept { return static_cast(0); } 27002: 27002: static constexpr int 27002: signaling_NaN() noexcept { return static_cast(0); } 27002: 27002: static constexpr int 27002: denorm_min() noexcept { return static_cast(0); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = false; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr unsigned int 27002: min() noexcept { return 0; } 27002: 27002: static constexpr unsigned int 27002: max() noexcept { return 0x7fffffff * 2U + 1; } 27002: 27002: 27002: static constexpr unsigned int 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits 27002: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 27002: static constexpr int digits10 27002: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = false; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr unsigned int 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr unsigned int 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr unsigned int 27002: infinity() noexcept { return static_cast(0); } 27002: 27002: static constexpr unsigned int 27002: quiet_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned int 27002: signaling_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned int 27002: denorm_min() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = true; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr long 27002: min() noexcept { return -0x7fffffffL - 1; } 27002: 27002: static constexpr long 27002: max() noexcept { return 0x7fffffffL; } 27002: 27002: 27002: static constexpr long 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 27002: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = true; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr long 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr long 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr long 27002: infinity() noexcept { return static_cast(0); } 27002: 27002: static constexpr long 27002: quiet_NaN() noexcept { return static_cast(0); } 27002: 27002: static constexpr long 27002: signaling_NaN() noexcept { return static_cast(0); } 27002: 27002: static constexpr long 27002: denorm_min() noexcept { return static_cast(0); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = false; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr unsigned long 27002: min() noexcept { return 0; } 27002: 27002: static constexpr unsigned long 27002: max() noexcept { return 0x7fffffffL * 2UL + 1; } 27002: 27002: 27002: static constexpr unsigned long 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits 27002: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 27002: static constexpr int digits10 27002: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = false; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr unsigned long 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr unsigned long 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr unsigned long 27002: infinity() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned long 27002: quiet_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned long 27002: signaling_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned long 27002: denorm_min() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = true; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr long long 27002: min() noexcept { return -0x7fffffffffffffffLL - 1; } 27002: 27002: static constexpr long long 27002: max() noexcept { return 0x7fffffffffffffffLL; } 27002: 27002: 27002: static constexpr long long 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits 27002: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 27002: static constexpr int digits10 27002: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = true; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr long long 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr long long 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr long long 27002: infinity() noexcept { return static_cast(0); } 27002: 27002: static constexpr long long 27002: quiet_NaN() noexcept { return static_cast(0); } 27002: 27002: static constexpr long long 27002: signaling_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr long long 27002: denorm_min() noexcept { return static_cast(0); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = false; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr unsigned long long 27002: min() noexcept { return 0; } 27002: 27002: static constexpr unsigned long long 27002: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 27002: 27002: 27002: static constexpr unsigned long long 27002: lowest() noexcept { return min(); } 27002: 27002: 27002: static constexpr int digits 27002: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 27002: static constexpr int digits10 27002: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 27002: 27002: static constexpr int max_digits10 = 0; 27002: 27002: static constexpr bool is_signed = false; 27002: static constexpr bool is_integer = true; 27002: static constexpr bool is_exact = true; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr unsigned long long 27002: epsilon() noexcept { return 0; } 27002: 27002: static constexpr unsigned long long 27002: round_error() noexcept { return 0; } 27002: 27002: static constexpr int min_exponent = 0; 27002: static constexpr int min_exponent10 = 0; 27002: static constexpr int max_exponent = 0; 27002: static constexpr int max_exponent10 = 0; 27002: 27002: static constexpr bool has_infinity = false; 27002: static constexpr bool has_quiet_NaN = false; 27002: static constexpr bool has_signaling_NaN = false; 27002: static constexpr float_denorm_style has_denorm 27002: = denorm_absent; 27002: static constexpr bool has_denorm_loss = false; 27002: 27002: static constexpr unsigned long long 27002: infinity() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned long long 27002: quiet_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned long long 27002: signaling_NaN() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr unsigned long long 27002: denorm_min() noexcept 27002: { return static_cast(0); } 27002: 27002: static constexpr bool is_iec559 = false; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = true; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = false; 27002: static constexpr float_round_style round_style 27002: = round_toward_zero; 27002: }; 27002: # 1669 "/usr/include/c++/12/limits" 3 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr float 27002: min() noexcept { return 1.1754943508222875e-38F; } 27002: 27002: static constexpr float 27002: max() noexcept { return 3.4028234663852886e+38F; } 27002: 27002: 27002: static constexpr float 27002: lowest() noexcept { return -3.4028234663852886e+38F; } 27002: 27002: 27002: static constexpr int digits = 24; 27002: static constexpr int digits10 = 6; 27002: 27002: static constexpr int max_digits10 27002: = (2 + (24) * 643L / 2136); 27002: 27002: static constexpr bool is_signed = true; 27002: static constexpr bool is_integer = false; 27002: static constexpr bool is_exact = false; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr float 27002: epsilon() noexcept { return 1.1920928955078125e-7F; } 27002: 27002: static constexpr float 27002: round_error() noexcept { return 0.5F; } 27002: 27002: static constexpr int min_exponent = (-125); 27002: static constexpr int min_exponent10 = (-37); 27002: static constexpr int max_exponent = 128; 27002: static constexpr int max_exponent10 = 38; 27002: 27002: static constexpr bool has_infinity = 1; 27002: static constexpr bool has_quiet_NaN = 1; 27002: static constexpr bool has_signaling_NaN = has_quiet_NaN; 27002: static constexpr float_denorm_style has_denorm 27002: = bool(1) ? denorm_present : denorm_absent; 27002: static constexpr bool has_denorm_loss 27002: = false; 27002: 27002: static constexpr float 27002: infinity() noexcept { return __builtin_huge_valf(); } 27002: 27002: static constexpr float 27002: quiet_NaN() noexcept { return __builtin_nanf(""); } 27002: 27002: static constexpr float 27002: signaling_NaN() noexcept { return __builtin_nansf(""); } 27002: 27002: static constexpr float 27002: denorm_min() noexcept { return 1.4012984643248171e-45F; } 27002: 27002: static constexpr bool is_iec559 27002: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = false; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before 27002: = false; 27002: static constexpr float_round_style round_style 27002: = round_to_nearest; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr double 27002: min() noexcept { return double(2.2250738585072014e-308L); } 27002: 27002: static constexpr double 27002: max() noexcept { return double(1.7976931348623157e+308L); } 27002: 27002: 27002: static constexpr double 27002: lowest() noexcept { return -double(1.7976931348623157e+308L); } 27002: 27002: 27002: static constexpr int digits = 53; 27002: static constexpr int digits10 = 15; 27002: 27002: static constexpr int max_digits10 27002: = (2 + (53) * 643L / 2136); 27002: 27002: static constexpr bool is_signed = true; 27002: static constexpr bool is_integer = false; 27002: static constexpr bool is_exact = false; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr double 27002: epsilon() noexcept { return double(2.2204460492503131e-16L); } 27002: 27002: static constexpr double 27002: round_error() noexcept { return 0.5; } 27002: 27002: static constexpr int min_exponent = (-1021); 27002: static constexpr int min_exponent10 = (-307); 27002: static constexpr int max_exponent = 1024; 27002: static constexpr int max_exponent10 = 308; 27002: 27002: static constexpr bool has_infinity = 1; 27002: static constexpr bool has_quiet_NaN = 1; 27002: static constexpr bool has_signaling_NaN = has_quiet_NaN; 27002: static constexpr float_denorm_style has_denorm 27002: = bool(1) ? denorm_present : denorm_absent; 27002: static constexpr bool has_denorm_loss 27002: = false; 27002: 27002: static constexpr double 27002: infinity() noexcept { return __builtin_huge_val(); } 27002: 27002: static constexpr double 27002: quiet_NaN() noexcept { return __builtin_nan(""); } 27002: 27002: static constexpr double 27002: signaling_NaN() noexcept { return __builtin_nans(""); } 27002: 27002: static constexpr double 27002: denorm_min() noexcept { return double(4.9406564584124654e-324L); } 27002: 27002: static constexpr bool is_iec559 27002: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = false; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before 27002: = false; 27002: static constexpr float_round_style round_style 27002: = round_to_nearest; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct numeric_limits 27002: { 27002: static constexpr bool is_specialized = true; 27002: 27002: static constexpr long double 27002: min() noexcept { return 2.2250738585072014e-308L; } 27002: 27002: static constexpr long double 27002: max() noexcept { return 1.7976931348623157e+308L; } 27002: 27002: 27002: static constexpr long double 27002: lowest() noexcept { return -1.7976931348623157e+308L; } 27002: 27002: 27002: static constexpr int digits = 53; 27002: static constexpr int digits10 = 15; 27002: 27002: static constexpr int max_digits10 27002: = (2 + (53) * 643L / 2136); 27002: 27002: static constexpr bool is_signed = true; 27002: static constexpr bool is_integer = false; 27002: static constexpr bool is_exact = false; 27002: static constexpr int radix = 2; 27002: 27002: static constexpr long double 27002: epsilon() noexcept { return 2.2204460492503131e-16L; } 27002: 27002: static constexpr long double 27002: round_error() noexcept { return 0.5L; } 27002: 27002: static constexpr int min_exponent = (-1021); 27002: static constexpr int min_exponent10 = (-307); 27002: static constexpr int max_exponent = 1024; 27002: static constexpr int max_exponent10 = 308; 27002: 27002: static constexpr bool has_infinity = 1; 27002: static constexpr bool has_quiet_NaN = 1; 27002: static constexpr bool has_signaling_NaN = has_quiet_NaN; 27002: static constexpr float_denorm_style has_denorm 27002: = bool(1) ? denorm_present : denorm_absent; 27002: static constexpr bool has_denorm_loss 27002: = false; 27002: 27002: static constexpr long double 27002: infinity() noexcept { return __builtin_huge_vall(); } 27002: 27002: static constexpr long double 27002: quiet_NaN() noexcept { return __builtin_nanl(""); } 27002: 27002: static constexpr long double 27002: signaling_NaN() noexcept { return __builtin_nansl(""); } 27002: 27002: static constexpr long double 27002: denorm_min() noexcept { return 4.9406564584124654e-324L; } 27002: 27002: static constexpr bool is_iec559 27002: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 27002: static constexpr bool is_bounded = true; 27002: static constexpr bool is_modulo = false; 27002: 27002: static constexpr bool traps = false; 27002: static constexpr bool tinyness_before = 27002: false; 27002: static constexpr float_round_style round_style = 27002: round_to_nearest; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 40 "/usr/include/c++/12/bits/chrono.h" 2 3 27002: # 1 "/usr/include/c++/12/ctime" 1 3 27002: # 39 "/usr/include/c++/12/ctime" 3 27002: 27002: # 40 "/usr/include/c++/12/ctime" 3 27002: # 58 "/usr/include/c++/12/ctime" 3 27002: namespace std 27002: { 27002: using ::clock_t; 27002: using ::time_t; 27002: using ::tm; 27002: 27002: using ::clock; 27002: using ::difftime; 27002: using ::mktime; 27002: using ::time; 27002: using ::asctime; 27002: using ::ctime; 27002: using ::gmtime; 27002: using ::localtime; 27002: using ::strftime; 27002: } 27002: 27002: 27002: 27002: namespace std 27002: { 27002: using ::timespec; 27002: using ::timespec_get; 27002: } 27002: # 41 "/usr/include/c++/12/bits/chrono.h" 2 3 27002: # 1 "/usr/include/c++/12/bits/parse_numbers.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/parse_numbers.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/parse_numbers.h" 3 27002: # 42 "/usr/include/c++/12/bits/parse_numbers.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: namespace __parse_int 27002: { 27002: template 27002: struct _Digit; 27002: 27002: template 27002: struct _Digit<_Base, '0'> : integral_constant 27002: { 27002: using __valid = true_type; 27002: }; 27002: 27002: template 27002: struct _Digit<_Base, '1'> : integral_constant 27002: { 27002: using __valid = true_type; 27002: }; 27002: 27002: template 27002: struct _Digit_impl : integral_constant 27002: { 27002: static_assert(_Base > _Val, "invalid digit"); 27002: using __valid = true_type; 27002: }; 27002: 27002: template 27002: struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> 27002: { }; 27002: 27002: template 27002: struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> 27002: { }; 27002: 27002: 27002: template 27002: struct _Digit<_Base, '\''> : integral_constant 27002: { 27002: using __valid = false_type; 27002: }; 27002: 27002: 27002: 27002: template 27002: using __ull_constant = integral_constant; 27002: 27002: template 27002: struct _Power_help 27002: { 27002: using __next = typename _Power_help<_Base, _Digs...>::type; 27002: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 27002: using type 27002: = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; 27002: }; 27002: 27002: template 27002: struct _Power_help<_Base, _Dig> 27002: { 27002: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 27002: using type = __ull_constant<__valid_digit::value>; 27002: }; 27002: 27002: template 27002: struct _Power : _Power_help<_Base, _Digs...>::type 27002: { }; 27002: 27002: template 27002: struct _Power<_Base> : __ull_constant<0> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct _Number_help 27002: { 27002: using __digit = _Digit<_Base, _Dig>; 27002: using __valid_digit = typename __digit::__valid; 27002: using __next = _Number_help<_Base, 27002: __valid_digit::value ? _Pow / _Base : _Pow, 27002: _Digs...>; 27002: using type = __ull_constant<_Pow * __digit::value + __next::type::value>; 27002: static_assert((type::value / _Pow) == __digit::value, 27002: "integer literal does not fit in unsigned long long"); 27002: }; 27002: 27002: 27002: template 27002: struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> 27002: : _Number_help<_Base, _Pow, _Dig, _Digs...> 27002: { }; 27002: 27002: 27002: template 27002: struct _Number_help<_Base, 1ULL, _Dig> 27002: { 27002: using type = __ull_constant<_Digit<_Base, _Dig>::value>; 27002: }; 27002: 27002: template 27002: struct _Number 27002: : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type 27002: { }; 27002: 27002: template 27002: struct _Number<_Base> 27002: : __ull_constant<0> 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct _Parse_int; 27002: 27002: template 27002: struct _Parse_int<'0', 'b', _Digs...> 27002: : _Number<2U, _Digs...>::type 27002: { }; 27002: 27002: template 27002: struct _Parse_int<'0', 'B', _Digs...> 27002: : _Number<2U, _Digs...>::type 27002: { }; 27002: 27002: template 27002: struct _Parse_int<'0', 'x', _Digs...> 27002: : _Number<16U, _Digs...>::type 27002: { }; 27002: 27002: template 27002: struct _Parse_int<'0', 'X', _Digs...> 27002: : _Number<16U, _Digs...>::type 27002: { }; 27002: 27002: template 27002: struct _Parse_int<'0', _Digs...> 27002: : _Number<8U, _Digs...>::type 27002: { }; 27002: 27002: template 27002: struct _Parse_int 27002: : _Number<10U, _Digs...>::type 27002: { }; 27002: 27002: } 27002: 27002: 27002: namespace __select_int 27002: { 27002: template 27002: struct _Select_int_base; 27002: 27002: template 27002: struct _Select_int_base<_Val, _IntType, _Ints...> 27002: : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), 27002: integral_constant<_IntType, (_IntType)_Val>, 27002: _Select_int_base<_Val, _Ints...>> 27002: { }; 27002: 27002: template 27002: struct _Select_int_base<_Val> 27002: { }; 27002: 27002: template 27002: using _Select_int = typename _Select_int_base< 27002: __parse_int::_Parse_int<_Digs...>::value, 27002: unsigned char, 27002: unsigned short, 27002: unsigned int, 27002: unsigned long, 27002: unsigned long long 27002: >::type; 27002: 27002: } 27002: 27002: 27002: } 27002: # 42 "/usr/include/c++/12/bits/chrono.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: namespace filesystem { struct __file_clock; }; 27002: 27002: 27002: namespace chrono 27002: { 27002: 27002: 27002: 27002: 27002: template> 27002: struct duration; 27002: 27002: 27002: template 27002: struct time_point; 27002: 27002: } 27002: # 77 "/usr/include/c++/12/bits/chrono.h" 3 27002: template 27002: struct __duration_common_type 27002: { }; 27002: 27002: template 27002: struct __duration_common_type<_CT, _Period1, _Period2, 27002: __void_t> 27002: { 27002: private: 27002: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; 27002: using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; 27002: using __cr = typename _CT::type; 27002: using __r = ratio<__gcd_num::value, 27002: (_Period1::den / __gcd_den::value) * _Period2::den>; 27002: 27002: public: 27002: using type = chrono::duration<__cr, typename __r::type>; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct common_type, 27002: chrono::duration<_Rep2, _Period2>> 27002: : __duration_common_type, 27002: typename _Period1::type, 27002: typename _Period2::type> 27002: { }; 27002: 27002: 27002: template 27002: struct common_type, 27002: chrono::duration<_Rep, _Period>> 27002: { 27002: using type = chrono::duration::type, 27002: typename _Period::type>; 27002: }; 27002: 27002: 27002: template 27002: struct common_type> 27002: { 27002: using type = chrono::duration::type, 27002: typename _Period::type>; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __timepoint_common_type 27002: { }; 27002: 27002: template 27002: struct __timepoint_common_type<_CT, _Clock, __void_t> 27002: { 27002: using type = chrono::time_point<_Clock, typename _CT::type>; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct common_type, 27002: chrono::time_point<_Clock, _Duration2>> 27002: : __timepoint_common_type, _Clock> 27002: { }; 27002: 27002: 27002: template 27002: struct common_type, 27002: chrono::time_point<_Clock, _Duration>> 27002: { using type = chrono::time_point<_Clock, _Duration>; }; 27002: 27002: 27002: template 27002: struct common_type> 27002: { using type = chrono::time_point<_Clock, _Duration>; }; 27002: 27002: 27002: 27002: 27002: namespace chrono 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct __duration_cast_impl 27002: { 27002: template 27002: static constexpr _ToDur 27002: __cast(const duration<_Rep, _Period>& __d) 27002: { 27002: typedef typename _ToDur::rep __to_rep; 27002: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 27002: * static_cast<_CR>(_CF::num) 27002: / static_cast<_CR>(_CF::den))); 27002: } 27002: }; 27002: 27002: template 27002: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 27002: { 27002: template 27002: static constexpr _ToDur 27002: __cast(const duration<_Rep, _Period>& __d) 27002: { 27002: typedef typename _ToDur::rep __to_rep; 27002: return _ToDur(static_cast<__to_rep>(__d.count())); 27002: } 27002: }; 27002: 27002: template 27002: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 27002: { 27002: template 27002: static constexpr _ToDur 27002: __cast(const duration<_Rep, _Period>& __d) 27002: { 27002: typedef typename _ToDur::rep __to_rep; 27002: return _ToDur(static_cast<__to_rep>( 27002: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 27002: } 27002: }; 27002: 27002: template 27002: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 27002: { 27002: template 27002: static constexpr _ToDur 27002: __cast(const duration<_Rep, _Period>& __d) 27002: { 27002: typedef typename _ToDur::rep __to_rep; 27002: return _ToDur(static_cast<__to_rep>( 27002: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 27002: } 27002: }; 27002: 27002: template 27002: struct __is_duration 27002: : std::false_type 27002: { }; 27002: 27002: template 27002: struct __is_duration> 27002: : std::true_type 27002: { }; 27002: 27002: template 27002: using __enable_if_is_duration 27002: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 27002: 27002: template 27002: using __disable_if_is_duration 27002: = typename enable_if::value, _Tp>::type; 27002: 27002: 27002: 27002: 27002: template 27002: constexpr __enable_if_is_duration<_ToDur> 27002: duration_cast(const duration<_Rep, _Period>& __d) 27002: { 27002: typedef typename _ToDur::period __to_period; 27002: typedef typename _ToDur::rep __to_rep; 27002: typedef ratio_divide<_Period, __to_period> __cf; 27002: typedef typename common_type<__to_rep, _Rep, intmax_t>::type __cr; 27002: typedef __duration_cast_impl<_ToDur, __cf, __cr, 27002: __cf::num == 1, __cf::den == 1> __dc; 27002: return __dc::__cast(__d); 27002: } 27002: 27002: 27002: template 27002: struct treat_as_floating_point 27002: : is_floating_point<_Rep> 27002: { }; 27002: 27002: 27002: template 27002: inline constexpr bool treat_as_floating_point_v = 27002: treat_as_floating_point<_Rep>::value; 27002: # 332 "/usr/include/c++/12/bits/chrono.h" 3 27002: template 27002: constexpr __enable_if_is_duration<_ToDur> 27002: floor(const duration<_Rep, _Period>& __d) 27002: { 27002: auto __to = chrono::duration_cast<_ToDur>(__d); 27002: if (__to > __d) 27002: return __to - _ToDur{1}; 27002: return __to; 27002: } 27002: 27002: template 27002: constexpr __enable_if_is_duration<_ToDur> 27002: ceil(const duration<_Rep, _Period>& __d) 27002: { 27002: auto __to = chrono::duration_cast<_ToDur>(__d); 27002: if (__to < __d) 27002: return __to + _ToDur{1}; 27002: return __to; 27002: } 27002: 27002: template 27002: constexpr enable_if_t< 27002: __and_<__is_duration<_ToDur>, 27002: __not_>>::value, 27002: _ToDur> 27002: round(const duration<_Rep, _Period>& __d) 27002: { 27002: _ToDur __t0 = chrono::floor<_ToDur>(__d); 27002: _ToDur __t1 = __t0 + _ToDur{1}; 27002: auto __diff0 = __d - __t0; 27002: auto __diff1 = __t1 - __d; 27002: if (__diff0 == __diff1) 27002: { 27002: if (__t0.count() & 1) 27002: return __t1; 27002: return __t0; 27002: } 27002: else if (__diff0 < __diff1) 27002: return __t0; 27002: return __t1; 27002: } 27002: 27002: template 27002: constexpr 27002: enable_if_t::is_signed, duration<_Rep, _Period>> 27002: abs(duration<_Rep, _Period> __d) 27002: { 27002: if (__d >= __d.zero()) 27002: return __d; 27002: return -__d; 27002: } 27002: 27002: 27002: namespace __detail { using chrono::ceil; } 27002: # 412 "/usr/include/c++/12/bits/chrono.h" 3 27002: template 27002: struct duration_values 27002: { 27002: static constexpr _Rep 27002: zero() noexcept 27002: { return _Rep(0); } 27002: 27002: static constexpr _Rep 27002: max() noexcept 27002: { return numeric_limits<_Rep>::max(); } 27002: 27002: static constexpr _Rep 27002: min() noexcept 27002: { return numeric_limits<_Rep>::lowest(); } 27002: }; 27002: 27002: 27002: 27002: template 27002: struct __is_ratio 27002: : std::false_type 27002: { }; 27002: 27002: template 27002: struct __is_ratio> 27002: : std::true_type 27002: { }; 27002: 27002: 27002: 27002: template 27002: struct duration 27002: { 27002: private: 27002: template 27002: using __is_float = treat_as_floating_point<_Rep2>; 27002: 27002: static constexpr intmax_t 27002: _S_gcd(intmax_t __m, intmax_t __n) noexcept 27002: { 27002: 27002: 27002: 27002: do 27002: { 27002: intmax_t __rem = __m % __n; 27002: __m = __n; 27002: __n = __rem; 27002: } 27002: while (__n != 0); 27002: return __m; 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), 27002: (_R1::den / __gcd2) * (_R2::num / __gcd1)>; 27002: 27002: 27002: template 27002: using __is_harmonic 27002: = __bool_constant<__divide<_Period2, _Period>::den == 1>; 27002: 27002: public: 27002: 27002: using rep = _Rep; 27002: using period = typename _Period::type; 27002: 27002: static_assert(!__is_duration<_Rep>::value, "rep cannot be a duration"); 27002: static_assert(__is_ratio<_Period>::value, 27002: "period must be a specialization of ratio"); 27002: static_assert(_Period::num > 0, "period must be positive"); 27002: 27002: 27002: constexpr duration() = default; 27002: 27002: duration(const duration&) = default; 27002: 27002: 27002: 27002: template, 27002: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 27002: constexpr explicit duration(const _Rep2& __rep) 27002: : __r(static_cast(__rep)) { } 27002: 27002: template, 27002: __or_<__is_float, 27002: __and_<__is_harmonic<_Period2>, 27002: __not_<__is_float<_Rep2>>>>>> 27002: constexpr duration(const duration<_Rep2, _Period2>& __d) 27002: : __r(duration_cast(__d).count()) { } 27002: 27002: ~duration() = default; 27002: duration& operator=(const duration&) = default; 27002: 27002: 27002: constexpr rep 27002: count() const 27002: { return __r; } 27002: 27002: 27002: 27002: constexpr duration::type, period> 27002: operator+() const 27002: { return duration::type, period>(__r); } 27002: 27002: constexpr duration::type, period> 27002: operator-() const 27002: { return duration::type, period>(-__r); } 27002: 27002: constexpr duration& 27002: operator++() 27002: { 27002: ++__r; 27002: return *this; 27002: } 27002: 27002: constexpr duration 27002: operator++(int) 27002: { return duration(__r++); } 27002: 27002: constexpr duration& 27002: operator--() 27002: { 27002: --__r; 27002: return *this; 27002: } 27002: 27002: constexpr duration 27002: operator--(int) 27002: { return duration(__r--); } 27002: 27002: constexpr duration& 27002: operator+=(const duration& __d) 27002: { 27002: __r += __d.count(); 27002: return *this; 27002: } 27002: 27002: constexpr duration& 27002: operator-=(const duration& __d) 27002: { 27002: __r -= __d.count(); 27002: return *this; 27002: } 27002: 27002: constexpr duration& 27002: operator*=(const rep& __rhs) 27002: { 27002: __r *= __rhs; 27002: return *this; 27002: } 27002: 27002: constexpr duration& 27002: operator/=(const rep& __rhs) 27002: { 27002: __r /= __rhs; 27002: return *this; 27002: } 27002: 27002: 27002: template 27002: constexpr 27002: typename enable_if::value, 27002: duration&>::type 27002: operator%=(const rep& __rhs) 27002: { 27002: __r %= __rhs; 27002: return *this; 27002: } 27002: 27002: template 27002: constexpr 27002: typename enable_if::value, 27002: duration&>::type 27002: operator%=(const duration& __d) 27002: { 27002: __r %= __d.count(); 27002: return *this; 27002: } 27002: 27002: 27002: static constexpr duration 27002: zero() noexcept 27002: { return duration(duration_values::zero()); } 27002: 27002: static constexpr duration 27002: min() noexcept 27002: { return duration(duration_values::min()); } 27002: 27002: static constexpr duration 27002: max() noexcept 27002: { return duration(duration_values::max()); } 27002: 27002: private: 27002: rep __r; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr typename common_type, 27002: duration<_Rep2, _Period2>>::type 27002: operator+(const duration<_Rep1, _Period1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { 27002: typedef duration<_Rep1, _Period1> __dur1; 27002: typedef duration<_Rep2, _Period2> __dur2; 27002: typedef typename common_type<__dur1,__dur2>::type __cd; 27002: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 27002: } 27002: 27002: 27002: template 27002: constexpr typename common_type, 27002: duration<_Rep2, _Period2>>::type 27002: operator-(const duration<_Rep1, _Period1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { 27002: typedef duration<_Rep1, _Period1> __dur1; 27002: typedef duration<_Rep2, _Period2> __dur2; 27002: typedef typename common_type<__dur1,__dur2>::type __cd; 27002: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 27002: } 27002: # 661 "/usr/include/c++/12/bits/chrono.h" 3 27002: template::type> 27002: using __common_rep_t = typename 27002: enable_if::value, _CRep>::type; 27002: # 673 "/usr/include/c++/12/bits/chrono.h" 3 27002: template 27002: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 27002: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 27002: { 27002: typedef duration::type, _Period> 27002: __cd; 27002: return __cd(__cd(__d).count() * __s); 27002: } 27002: 27002: template 27002: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 27002: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 27002: { return __d * __s; } 27002: 27002: template 27002: constexpr 27002: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 27002: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 27002: { 27002: typedef duration::type, _Period> 27002: __cd; 27002: return __cd(__cd(__d).count() / __s); 27002: } 27002: 27002: template 27002: constexpr typename common_type<_Rep1, _Rep2>::type 27002: operator/(const duration<_Rep1, _Period1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { 27002: typedef duration<_Rep1, _Period1> __dur1; 27002: typedef duration<_Rep2, _Period2> __dur2; 27002: typedef typename common_type<__dur1,__dur2>::type __cd; 27002: return __cd(__lhs).count() / __cd(__rhs).count(); 27002: } 27002: 27002: 27002: template 27002: constexpr 27002: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 27002: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 27002: { 27002: typedef duration::type, _Period> 27002: __cd; 27002: return __cd(__cd(__d).count() % __s); 27002: } 27002: 27002: template 27002: constexpr typename common_type, 27002: duration<_Rep2, _Period2>>::type 27002: operator%(const duration<_Rep1, _Period1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { 27002: typedef duration<_Rep1, _Period1> __dur1; 27002: typedef duration<_Rep2, _Period2> __dur2; 27002: typedef typename common_type<__dur1,__dur2>::type __cd; 27002: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 27002: } 27002: # 741 "/usr/include/c++/12/bits/chrono.h" 3 27002: template 27002: constexpr bool 27002: operator==(const duration<_Rep1, _Period1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { 27002: typedef duration<_Rep1, _Period1> __dur1; 27002: typedef duration<_Rep2, _Period2> __dur2; 27002: typedef typename common_type<__dur1,__dur2>::type __ct; 27002: return __ct(__lhs).count() == __ct(__rhs).count(); 27002: } 27002: 27002: template 27002: constexpr bool 27002: operator<(const duration<_Rep1, _Period1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { 27002: typedef duration<_Rep1, _Period1> __dur1; 27002: typedef duration<_Rep2, _Period2> __dur2; 27002: typedef typename common_type<__dur1,__dur2>::type __ct; 27002: return __ct(__lhs).count() < __ct(__rhs).count(); 27002: } 27002: # 778 "/usr/include/c++/12/bits/chrono.h" 3 27002: template 27002: constexpr bool 27002: operator!=(const duration<_Rep1, _Period1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { return !(__lhs == __rhs); } 27002: 27002: 27002: template 27002: constexpr bool 27002: operator<=(const duration<_Rep1, _Period1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { return !(__rhs < __lhs); } 27002: 27002: template 27002: constexpr bool 27002: operator>(const duration<_Rep1, _Period1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { return __rhs < __lhs; } 27002: 27002: template 27002: constexpr bool 27002: operator>=(const duration<_Rep1, _Period1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { return !(__lhs < __rhs); } 27002: # 822 "/usr/include/c++/12/bits/chrono.h" 3 27002: using nanoseconds = duration; 27002: 27002: 27002: using microseconds = duration; 27002: 27002: 27002: using milliseconds = duration; 27002: 27002: 27002: using seconds = duration; 27002: 27002: 27002: using minutes = duration>; 27002: 27002: 27002: using hours = duration>; 27002: # 855 "/usr/include/c++/12/bits/chrono.h" 3 27002: template 27002: struct time_point 27002: { 27002: static_assert(__is_duration<_Dur>::value, 27002: "duration must be a specialization of std::chrono::duration"); 27002: 27002: typedef _Clock clock; 27002: typedef _Dur duration; 27002: typedef typename duration::rep rep; 27002: typedef typename duration::period period; 27002: 27002: constexpr time_point() : __d(duration::zero()) 27002: { } 27002: 27002: constexpr explicit time_point(const duration& __dur) 27002: : __d(__dur) 27002: { } 27002: 27002: 27002: template>> 27002: constexpr time_point(const time_point& __t) 27002: : __d(__t.time_since_epoch()) 27002: { } 27002: 27002: 27002: constexpr duration 27002: time_since_epoch() const 27002: { return __d; } 27002: # 910 "/usr/include/c++/12/bits/chrono.h" 3 27002: constexpr time_point& 27002: operator+=(const duration& __dur) 27002: { 27002: __d += __dur; 27002: return *this; 27002: } 27002: 27002: constexpr time_point& 27002: operator-=(const duration& __dur) 27002: { 27002: __d -= __dur; 27002: return *this; 27002: } 27002: 27002: 27002: static constexpr time_point 27002: min() noexcept 27002: { return time_point(duration::min()); } 27002: 27002: static constexpr time_point 27002: max() noexcept 27002: { return time_point(duration::max()); } 27002: 27002: private: 27002: duration __d; 27002: }; 27002: 27002: 27002: template 27002: constexpr typename enable_if<__is_duration<_ToDur>::value, 27002: time_point<_Clock, _ToDur>>::type 27002: time_point_cast(const time_point<_Clock, _Dur>& __t) 27002: { 27002: typedef time_point<_Clock, _ToDur> __time_point; 27002: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 27002: } 27002: 27002: 27002: template 27002: constexpr 27002: enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 27002: floor(const time_point<_Clock, _Dur>& __tp) 27002: { 27002: return time_point<_Clock, _ToDur>{ 27002: chrono::floor<_ToDur>(__tp.time_since_epoch())}; 27002: } 27002: 27002: template 27002: constexpr 27002: enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 27002: ceil(const time_point<_Clock, _Dur>& __tp) 27002: { 27002: return time_point<_Clock, _ToDur>{ 27002: chrono::ceil<_ToDur>(__tp.time_since_epoch())}; 27002: } 27002: 27002: template 27002: constexpr enable_if_t< 27002: __and_<__is_duration<_ToDur>, 27002: __not_>>::value, 27002: time_point<_Clock, _ToDur>> 27002: round(const time_point<_Clock, _Dur>& __tp) 27002: { 27002: return time_point<_Clock, _ToDur>{ 27002: chrono::round<_ToDur>(__tp.time_since_epoch())}; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr time_point<_Clock, 27002: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 27002: operator+(const time_point<_Clock, _Dur1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { 27002: typedef duration<_Rep2, _Period2> __dur2; 27002: typedef typename common_type<_Dur1,__dur2>::type __ct; 27002: typedef time_point<_Clock, __ct> __time_point; 27002: return __time_point(__lhs.time_since_epoch() + __rhs); 27002: } 27002: 27002: 27002: template 27002: constexpr time_point<_Clock, 27002: typename common_type, _Dur2>::type> 27002: operator+(const duration<_Rep1, _Period1>& __lhs, 27002: const time_point<_Clock, _Dur2>& __rhs) 27002: { 27002: typedef duration<_Rep1, _Period1> __dur1; 27002: typedef typename common_type<__dur1,_Dur2>::type __ct; 27002: typedef time_point<_Clock, __ct> __time_point; 27002: return __time_point(__rhs.time_since_epoch() + __lhs); 27002: } 27002: 27002: 27002: template 27002: constexpr time_point<_Clock, 27002: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 27002: operator-(const time_point<_Clock, _Dur1>& __lhs, 27002: const duration<_Rep2, _Period2>& __rhs) 27002: { 27002: typedef duration<_Rep2, _Period2> __dur2; 27002: typedef typename common_type<_Dur1,__dur2>::type __ct; 27002: typedef time_point<_Clock, __ct> __time_point; 27002: return __time_point(__lhs.time_since_epoch() -__rhs); 27002: } 27002: 27002: 27002: template 27002: constexpr typename common_type<_Dur1, _Dur2>::type 27002: operator-(const time_point<_Clock, _Dur1>& __lhs, 27002: const time_point<_Clock, _Dur2>& __rhs) 27002: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: constexpr bool 27002: operator==(const time_point<_Clock, _Dur1>& __lhs, 27002: const time_point<_Clock, _Dur2>& __rhs) 27002: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 27002: # 1050 "/usr/include/c++/12/bits/chrono.h" 3 27002: template 27002: constexpr bool 27002: operator!=(const time_point<_Clock, _Dur1>& __lhs, 27002: const time_point<_Clock, _Dur2>& __rhs) 27002: { return !(__lhs == __rhs); } 27002: 27002: 27002: template 27002: constexpr bool 27002: operator<(const time_point<_Clock, _Dur1>& __lhs, 27002: const time_point<_Clock, _Dur2>& __rhs) 27002: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 27002: 27002: template 27002: constexpr bool 27002: operator<=(const time_point<_Clock, _Dur1>& __lhs, 27002: const time_point<_Clock, _Dur2>& __rhs) 27002: { return !(__rhs < __lhs); } 27002: 27002: template 27002: constexpr bool 27002: operator>(const time_point<_Clock, _Dur1>& __lhs, 27002: const time_point<_Clock, _Dur2>& __rhs) 27002: { return __rhs < __lhs; } 27002: 27002: template 27002: constexpr bool 27002: operator>=(const time_point<_Clock, _Dur1>& __lhs, 27002: const time_point<_Clock, _Dur2>& __rhs) 27002: { return !(__lhs < __rhs); } 27002: # 1102 "/usr/include/c++/12/bits/chrono.h" 3 27002: inline namespace _V2 { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct system_clock 27002: { 27002: typedef chrono::nanoseconds duration; 27002: typedef duration::rep rep; 27002: typedef duration::period period; 27002: typedef chrono::time_point time_point; 27002: 27002: static_assert(system_clock::duration::min() 27002: < system_clock::duration::zero(), 27002: "a clock's minimum duration cannot be less than its epoch"); 27002: 27002: static constexpr bool is_steady = false; 27002: 27002: static time_point 27002: now() noexcept; 27002: 27002: 27002: static std::time_t 27002: to_time_t(const time_point& __t) noexcept 27002: { 27002: return std::time_t(duration_cast 27002: (__t.time_since_epoch()).count()); 27002: } 27002: 27002: static time_point 27002: from_time_t(std::time_t __t) noexcept 27002: { 27002: typedef chrono::time_point __from; 27002: return time_point_cast 27002: (__from(chrono::seconds(__t))); 27002: } 27002: }; 27002: # 1150 "/usr/include/c++/12/bits/chrono.h" 3 27002: struct steady_clock 27002: { 27002: typedef chrono::nanoseconds duration; 27002: typedef duration::rep rep; 27002: typedef duration::period period; 27002: typedef chrono::time_point time_point; 27002: 27002: static constexpr bool is_steady = true; 27002: 27002: static time_point 27002: now() noexcept; 27002: }; 27002: # 1172 "/usr/include/c++/12/bits/chrono.h" 3 27002: using high_resolution_clock = system_clock; 27002: 27002: } 27002: # 1198 "/usr/include/c++/12/bits/chrono.h" 3 27002: } 27002: 27002: 27002: 27002: 27002: inline namespace literals 27002: { 27002: # 1229 "/usr/include/c++/12/bits/chrono.h" 3 27002: inline namespace chrono_literals 27002: { 27002: 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wliteral-suffix" 27002: 27002: template 27002: constexpr _Dur __check_overflow() 27002: { 27002: using _Val = __parse_int::_Parse_int<_Digits...>; 27002: constexpr typename _Dur::rep __repval = _Val::value; 27002: static_assert(__repval >= 0 && __repval == _Val::value, 27002: "literal value cannot be represented by duration type"); 27002: return _Dur(__repval); 27002: } 27002: 27002: 27002: 27002: constexpr chrono::duration> 27002: operator""h(long double __hours) 27002: { return chrono::duration>{__hours}; } 27002: 27002: 27002: template 27002: constexpr chrono::hours 27002: operator""h() 27002: { return __check_overflow(); } 27002: 27002: 27002: constexpr chrono::duration> 27002: operator""min(long double __mins) 27002: { return chrono::duration>{__mins}; } 27002: 27002: 27002: template 27002: constexpr chrono::minutes 27002: operator""min() 27002: { return __check_overflow(); } 27002: 27002: 27002: constexpr chrono::duration 27002: operator""s(long double __secs) 27002: { return chrono::duration{__secs}; } 27002: 27002: 27002: template 27002: constexpr chrono::seconds 27002: operator""s() 27002: { return __check_overflow(); } 27002: 27002: 27002: constexpr chrono::duration 27002: operator""ms(long double __msecs) 27002: { return chrono::duration{__msecs}; } 27002: 27002: 27002: template 27002: constexpr chrono::milliseconds 27002: operator""ms() 27002: { return __check_overflow(); } 27002: 27002: 27002: constexpr chrono::duration 27002: operator""us(long double __usecs) 27002: { return chrono::duration{__usecs}; } 27002: 27002: 27002: template 27002: constexpr chrono::microseconds 27002: operator""us() 27002: { return __check_overflow(); } 27002: 27002: 27002: constexpr chrono::duration 27002: operator""ns(long double __nsecs) 27002: { return chrono::duration{__nsecs}; } 27002: 27002: 27002: template 27002: constexpr chrono::nanoseconds 27002: operator""ns() 27002: { return __check_overflow(); } 27002: 27002: #pragma GCC diagnostic pop 27002: 27002: } 27002: } 27002: 27002: namespace chrono 27002: { 27002: using namespace literals::chrono_literals; 27002: } 27002: 27002: 27002: 27002: namespace filesystem 27002: { 27002: struct __file_clock 27002: { 27002: using duration = chrono::nanoseconds; 27002: using rep = duration::rep; 27002: using period = duration::period; 27002: using time_point = chrono::time_point<__file_clock>; 27002: static constexpr bool is_steady = false; 27002: 27002: static time_point 27002: now() noexcept 27002: { return _S_from_sys(chrono::system_clock::now()); } 27002: # 1355 "/usr/include/c++/12/bits/chrono.h" 3 27002: private: 27002: using __sys_clock = chrono::system_clock; 27002: 27002: 27002: 27002: 27002: static constexpr chrono::seconds _S_epoch_diff{6437664000}; 27002: 27002: protected: 27002: 27002: template 27002: static 27002: chrono::time_point<__file_clock, _Dur> 27002: _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept 27002: { 27002: using __file_time = chrono::time_point<__file_clock, _Dur>; 27002: return __file_time{__t.time_since_epoch()} - _S_epoch_diff; 27002: } 27002: 27002: 27002: template 27002: static 27002: chrono::time_point<__sys_clock, _Dur> 27002: _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept 27002: { 27002: using __sys_time = chrono::time_point<__sys_clock, _Dur>; 27002: return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; 27002: } 27002: }; 27002: } 27002: 27002: 27002: 27002: } 27002: # 37 "/usr/include/c++/12/bits/this_thread_sleep.h" 2 3 27002: 27002: 27002: # 1 "/usr/include/c++/12/cerrno" 1 3 27002: # 39 "/usr/include/c++/12/cerrno" 3 27002: 27002: # 40 "/usr/include/c++/12/cerrno" 3 27002: # 40 "/usr/include/c++/12/bits/this_thread_sleep.h" 2 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 56 "/usr/include/c++/12/bits/this_thread_sleep.h" 3 27002: namespace this_thread 27002: { 27002: # 66 "/usr/include/c++/12/bits/this_thread_sleep.h" 3 27002: template 27002: inline void 27002: sleep_for(const chrono::duration<_Rep, _Period>& __rtime) 27002: { 27002: if (__rtime <= __rtime.zero()) 27002: return; 27002: auto __s = chrono::duration_cast(__rtime); 27002: auto __ns = chrono::duration_cast(__rtime - __s); 27002: 27002: struct ::timespec __ts = 27002: { 27002: static_cast(__s.count()), 27002: static_cast(__ns.count()) 27002: }; 27002: while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) 27002: { } 27002: 27002: 27002: 27002: } 27002: 27002: 27002: template 27002: inline void 27002: sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) 27002: { 27002: 27002: 27002: 27002: auto __now = _Clock::now(); 27002: if (_Clock::is_steady) 27002: { 27002: if (__now < __atime) 27002: sleep_for(__atime - __now); 27002: return; 27002: } 27002: while (__now < __atime) 27002: { 27002: sleep_for(__atime - __now); 27002: __now = _Clock::now(); 27002: } 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: 27002: } 27002: # 45 "/usr/include/c++/12/thread" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 65 "/usr/include/c++/12/thread" 3 27002: inline bool 27002: operator!=(thread::id __x, thread::id __y) noexcept 27002: { return !(__x == __y); } 27002: 27002: inline bool 27002: operator<(thread::id __x, thread::id __y) noexcept 27002: { 27002: 27002: 27002: return __x._M_thread < __y._M_thread; 27002: } 27002: 27002: inline bool 27002: operator<=(thread::id __x, thread::id __y) noexcept 27002: { return !(__y < __x); } 27002: 27002: inline bool 27002: operator>(thread::id __x, thread::id __y) noexcept 27002: { return __y < __x; } 27002: 27002: inline bool 27002: operator>=(thread::id __x, thread::id __y) noexcept 27002: { return !(__x < __y); } 27002: 27002: 27002: template 27002: inline basic_ostream<_CharT, _Traits>& 27002: operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) 27002: { 27002: if (__id == thread::id()) 27002: return __out << "thread::id of a non-executing thread"; 27002: else 27002: return __out << __id._M_thread; 27002: } 27002: # 262 "/usr/include/c++/12/thread" 3 27002: 27002: } 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 1 27002: # 23 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compression_type.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compression_type.h" 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: 27002: enum CompressionType : unsigned char { 27002: 27002: 27002: kNoCompression = 0x0, 27002: kSnappyCompression = 0x1, 27002: kZlibCompression = 0x2, 27002: kBZip2Compression = 0x3, 27002: kLZ4Compression = 0x4, 27002: kLZ4HCCompression = 0x5, 27002: kXpressCompression = 0x6, 27002: kZSTD = 0x7, 27002: 27002: 27002: 27002: 27002: 27002: 27002: kZSTDNotFinalCompression = 0x40, 27002: 27002: 27002: kDisableCompressionOption = 0xff, 27002: }; 27002: 27002: } 27002: # 31 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memory_allocator.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: class MemoryAllocator : public Customizable { 27002: public: 27002: static const char* Type() { return "MemoryAllocator"; } 27002: static Status CreateFromString(const ConfigOptions& options, 27002: const std::string& value, 27002: std::shared_ptr* result); 27002: 27002: 27002: virtual void* Allocate(size_t size) = 0; 27002: 27002: 27002: virtual void Deallocate(void* p) = 0; 27002: 27002: 27002: 27002: virtual size_t UsableSize(void* , size_t allocation_size) const { 27002: 27002: return allocation_size; 27002: } 27002: 27002: std::string GetId() const override { return GenerateIndividualId(); } 27002: }; 27002: 27002: struct JemallocAllocatorOptions { 27002: static const char* kName() { return "JemallocAllocatorOptions"; } 27002: 27002: 27002: 27002: 27002: 27002: bool limit_tcache_size = false; 27002: 27002: 27002: 27002: size_t tcache_size_lower_bound = 1024; 27002: 27002: 27002: 27002: size_t tcache_size_upper_bound = 16 * 1024; 27002: }; 27002: # 77 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memory_allocator.h" 27002: extern Status NewJemallocNodumpAllocator( 27002: JemallocAllocatorOptions& options, 27002: std::shared_ptr* memory_allocator); 27002: 27002: } 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/map" 1 3 27002: # 58 "/usr/include/c++/12/map" 3 27002: 27002: # 59 "/usr/include/c++/12/map" 3 27002: 27002: # 1 "/usr/include/c++/12/bits/stl_tree.h" 1 3 27002: # 61 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: 27002: # 62 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: # 75 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: 27002: # 75 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 99 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: enum _Rb_tree_color { _S_red = false, _S_black = true }; 27002: 27002: struct _Rb_tree_node_base 27002: { 27002: typedef _Rb_tree_node_base* _Base_ptr; 27002: typedef const _Rb_tree_node_base* _Const_Base_ptr; 27002: 27002: _Rb_tree_color _M_color; 27002: _Base_ptr _M_parent; 27002: _Base_ptr _M_left; 27002: _Base_ptr _M_right; 27002: 27002: static _Base_ptr 27002: _S_minimum(_Base_ptr __x) noexcept 27002: { 27002: while (__x->_M_left != 0) __x = __x->_M_left; 27002: return __x; 27002: } 27002: 27002: static _Const_Base_ptr 27002: _S_minimum(_Const_Base_ptr __x) noexcept 27002: { 27002: while (__x->_M_left != 0) __x = __x->_M_left; 27002: return __x; 27002: } 27002: 27002: static _Base_ptr 27002: _S_maximum(_Base_ptr __x) noexcept 27002: { 27002: while (__x->_M_right != 0) __x = __x->_M_right; 27002: return __x; 27002: } 27002: 27002: static _Const_Base_ptr 27002: _S_maximum(_Const_Base_ptr __x) noexcept 27002: { 27002: while (__x->_M_right != 0) __x = __x->_M_right; 27002: return __x; 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct _Rb_tree_key_compare 27002: { 27002: _Key_compare _M_key_compare; 27002: 27002: _Rb_tree_key_compare() 27002: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 27002: 27002: : _M_key_compare() 27002: { } 27002: 27002: _Rb_tree_key_compare(const _Key_compare& __comp) 27002: : _M_key_compare(__comp) 27002: { } 27002: 27002: 27002: 27002: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 27002: 27002: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 27002: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 27002: : _M_key_compare(__x._M_key_compare) 27002: { } 27002: 27002: }; 27002: 27002: 27002: struct _Rb_tree_header 27002: { 27002: _Rb_tree_node_base _M_header; 27002: size_t _M_node_count; 27002: 27002: _Rb_tree_header() noexcept 27002: { 27002: _M_header._M_color = _S_red; 27002: _M_reset(); 27002: } 27002: 27002: 27002: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 27002: { 27002: if (__x._M_header._M_parent != nullptr) 27002: _M_move_data(__x); 27002: else 27002: { 27002: _M_header._M_color = _S_red; 27002: _M_reset(); 27002: } 27002: } 27002: 27002: 27002: void 27002: _M_move_data(_Rb_tree_header& __from) 27002: { 27002: _M_header._M_color = __from._M_header._M_color; 27002: _M_header._M_parent = __from._M_header._M_parent; 27002: _M_header._M_left = __from._M_header._M_left; 27002: _M_header._M_right = __from._M_header._M_right; 27002: _M_header._M_parent->_M_parent = &_M_header; 27002: _M_node_count = __from._M_node_count; 27002: 27002: __from._M_reset(); 27002: } 27002: 27002: void 27002: _M_reset() 27002: { 27002: _M_header._M_parent = 0; 27002: _M_header._M_left = &_M_header; 27002: _M_header._M_right = &_M_header; 27002: _M_node_count = 0; 27002: } 27002: }; 27002: 27002: template 27002: struct _Rb_tree_node : public _Rb_tree_node_base 27002: { 27002: typedef _Rb_tree_node<_Val>* _Link_type; 27002: # 231 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 27002: 27002: _Val* 27002: _M_valptr() 27002: { return _M_storage._M_ptr(); } 27002: 27002: const _Val* 27002: _M_valptr() const 27002: { return _M_storage._M_ptr(); } 27002: 27002: }; 27002: 27002: __attribute__ ((__pure__)) _Rb_tree_node_base* 27002: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 27002: 27002: __attribute__ ((__pure__)) const _Rb_tree_node_base* 27002: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 27002: 27002: __attribute__ ((__pure__)) _Rb_tree_node_base* 27002: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 27002: 27002: __attribute__ ((__pure__)) const _Rb_tree_node_base* 27002: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 27002: 27002: template 27002: struct _Rb_tree_iterator 27002: { 27002: typedef _Tp value_type; 27002: typedef _Tp& reference; 27002: typedef _Tp* pointer; 27002: 27002: typedef bidirectional_iterator_tag iterator_category; 27002: typedef ptrdiff_t difference_type; 27002: 27002: typedef _Rb_tree_iterator<_Tp> _Self; 27002: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 27002: typedef _Rb_tree_node<_Tp>* _Link_type; 27002: 27002: _Rb_tree_iterator() noexcept 27002: : _M_node() { } 27002: 27002: explicit 27002: _Rb_tree_iterator(_Base_ptr __x) noexcept 27002: : _M_node(__x) { } 27002: 27002: reference 27002: operator*() const noexcept 27002: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 27002: 27002: pointer 27002: operator->() const noexcept 27002: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 27002: 27002: _Self& 27002: operator++() noexcept 27002: { 27002: _M_node = _Rb_tree_increment(_M_node); 27002: return *this; 27002: } 27002: 27002: _Self 27002: operator++(int) noexcept 27002: { 27002: _Self __tmp = *this; 27002: _M_node = _Rb_tree_increment(_M_node); 27002: return __tmp; 27002: } 27002: 27002: _Self& 27002: operator--() noexcept 27002: { 27002: _M_node = _Rb_tree_decrement(_M_node); 27002: return *this; 27002: } 27002: 27002: _Self 27002: operator--(int) noexcept 27002: { 27002: _Self __tmp = *this; 27002: _M_node = _Rb_tree_decrement(_M_node); 27002: return __tmp; 27002: } 27002: 27002: friend bool 27002: operator==(const _Self& __x, const _Self& __y) noexcept 27002: { return __x._M_node == __y._M_node; } 27002: 27002: 27002: friend bool 27002: operator!=(const _Self& __x, const _Self& __y) noexcept 27002: { return __x._M_node != __y._M_node; } 27002: 27002: 27002: _Base_ptr _M_node; 27002: }; 27002: 27002: template 27002: struct _Rb_tree_const_iterator 27002: { 27002: typedef _Tp value_type; 27002: typedef const _Tp& reference; 27002: typedef const _Tp* pointer; 27002: 27002: typedef _Rb_tree_iterator<_Tp> iterator; 27002: 27002: typedef bidirectional_iterator_tag iterator_category; 27002: typedef ptrdiff_t difference_type; 27002: 27002: typedef _Rb_tree_const_iterator<_Tp> _Self; 27002: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 27002: typedef const _Rb_tree_node<_Tp>* _Link_type; 27002: 27002: _Rb_tree_const_iterator() noexcept 27002: : _M_node() { } 27002: 27002: explicit 27002: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 27002: : _M_node(__x) { } 27002: 27002: _Rb_tree_const_iterator(const iterator& __it) noexcept 27002: : _M_node(__it._M_node) { } 27002: 27002: iterator 27002: _M_const_cast() const noexcept 27002: { return iterator(const_cast(_M_node)); } 27002: 27002: reference 27002: operator*() const noexcept 27002: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 27002: 27002: pointer 27002: operator->() const noexcept 27002: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 27002: 27002: _Self& 27002: operator++() noexcept 27002: { 27002: _M_node = _Rb_tree_increment(_M_node); 27002: return *this; 27002: } 27002: 27002: _Self 27002: operator++(int) noexcept 27002: { 27002: _Self __tmp = *this; 27002: _M_node = _Rb_tree_increment(_M_node); 27002: return __tmp; 27002: } 27002: 27002: _Self& 27002: operator--() noexcept 27002: { 27002: _M_node = _Rb_tree_decrement(_M_node); 27002: return *this; 27002: } 27002: 27002: _Self 27002: operator--(int) noexcept 27002: { 27002: _Self __tmp = *this; 27002: _M_node = _Rb_tree_decrement(_M_node); 27002: return __tmp; 27002: } 27002: 27002: friend bool 27002: operator==(const _Self& __x, const _Self& __y) noexcept 27002: { return __x._M_node == __y._M_node; } 27002: 27002: 27002: friend bool 27002: operator!=(const _Self& __x, const _Self& __y) noexcept 27002: { return __x._M_node != __y._M_node; } 27002: 27002: 27002: _Base_ptr _M_node; 27002: }; 27002: 27002: void 27002: _Rb_tree_insert_and_rebalance(const bool __insert_left, 27002: _Rb_tree_node_base* __x, 27002: _Rb_tree_node_base* __p, 27002: _Rb_tree_node_base& __header) throw (); 27002: 27002: _Rb_tree_node_base* 27002: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 27002: _Rb_tree_node_base& __header) throw (); 27002: 27002: 27002: template 27002: struct _Rb_tree_merge_helper { }; 27002: 27002: 27002: template > 27002: class _Rb_tree 27002: { 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 27002: 27002: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 27002: 27002: protected: 27002: typedef _Rb_tree_node_base* _Base_ptr; 27002: typedef const _Rb_tree_node_base* _Const_Base_ptr; 27002: typedef _Rb_tree_node<_Val>* _Link_type; 27002: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 27002: 27002: private: 27002: 27002: 27002: struct _Reuse_or_alloc_node 27002: { 27002: _Reuse_or_alloc_node(_Rb_tree& __t) 27002: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 27002: { 27002: if (_M_root) 27002: { 27002: _M_root->_M_parent = 0; 27002: 27002: if (_M_nodes->_M_left) 27002: _M_nodes = _M_nodes->_M_left; 27002: } 27002: else 27002: _M_nodes = 0; 27002: } 27002: 27002: 27002: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 27002: 27002: 27002: ~_Reuse_or_alloc_node() 27002: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 27002: 27002: template 27002: _Link_type 27002: operator()(_Arg&& __arg) 27002: { 27002: _Link_type __node = static_cast<_Link_type>(_M_extract()); 27002: if (__node) 27002: { 27002: _M_t._M_destroy_node(__node); 27002: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 27002: return __node; 27002: } 27002: 27002: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 27002: } 27002: 27002: private: 27002: _Base_ptr 27002: _M_extract() 27002: { 27002: if (!_M_nodes) 27002: return _M_nodes; 27002: 27002: _Base_ptr __node = _M_nodes; 27002: _M_nodes = _M_nodes->_M_parent; 27002: if (_M_nodes) 27002: { 27002: if (_M_nodes->_M_right == __node) 27002: { 27002: _M_nodes->_M_right = 0; 27002: 27002: if (_M_nodes->_M_left) 27002: { 27002: _M_nodes = _M_nodes->_M_left; 27002: 27002: while (_M_nodes->_M_right) 27002: _M_nodes = _M_nodes->_M_right; 27002: 27002: if (_M_nodes->_M_left) 27002: _M_nodes = _M_nodes->_M_left; 27002: } 27002: } 27002: else 27002: _M_nodes->_M_left = 0; 27002: } 27002: else 27002: _M_root = 0; 27002: 27002: return __node; 27002: } 27002: 27002: _Base_ptr _M_root; 27002: _Base_ptr _M_nodes; 27002: _Rb_tree& _M_t; 27002: }; 27002: 27002: 27002: 27002: struct _Alloc_node 27002: { 27002: _Alloc_node(_Rb_tree& __t) 27002: : _M_t(__t) { } 27002: 27002: template 27002: _Link_type 27002: operator()(_Arg&& __arg) const 27002: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 27002: 27002: private: 27002: _Rb_tree& _M_t; 27002: }; 27002: 27002: public: 27002: typedef _Key key_type; 27002: typedef _Val value_type; 27002: typedef value_type* pointer; 27002: typedef const value_type* const_pointer; 27002: typedef value_type& reference; 27002: typedef const value_type& const_reference; 27002: typedef size_t size_type; 27002: typedef ptrdiff_t difference_type; 27002: typedef _Alloc allocator_type; 27002: 27002: _Node_allocator& 27002: _M_get_Node_allocator() noexcept 27002: { return this->_M_impl; } 27002: 27002: const _Node_allocator& 27002: _M_get_Node_allocator() const noexcept 27002: { return this->_M_impl; } 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return allocator_type(_M_get_Node_allocator()); } 27002: 27002: protected: 27002: _Link_type 27002: _M_get_node() 27002: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 27002: 27002: void 27002: _M_put_node(_Link_type __p) noexcept 27002: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 27002: # 588 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: template 27002: void 27002: _M_construct_node(_Link_type __node, _Args&&... __args) 27002: { 27002: try 27002: { 27002: ::new(__node) _Rb_tree_node<_Val>; 27002: _Alloc_traits::construct(_M_get_Node_allocator(), 27002: __node->_M_valptr(), 27002: std::forward<_Args>(__args)...); 27002: } 27002: catch(...) 27002: { 27002: __node->~_Rb_tree_node<_Val>(); 27002: _M_put_node(__node); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: _Link_type 27002: _M_create_node(_Args&&... __args) 27002: { 27002: _Link_type __tmp = _M_get_node(); 27002: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 27002: return __tmp; 27002: } 27002: 27002: 27002: void 27002: _M_destroy_node(_Link_type __p) noexcept 27002: { 27002: 27002: 27002: 27002: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 27002: __p->~_Rb_tree_node<_Val>(); 27002: 27002: } 27002: 27002: void 27002: _M_drop_node(_Link_type __p) noexcept 27002: { 27002: _M_destroy_node(__p); 27002: _M_put_node(__p); 27002: } 27002: 27002: template 27002: _Link_type 27002: _M_clone_node(_Link_type __x, _NodeGen& __node_gen) 27002: { 27002: 27002: using _Vp = __conditional_t<_MoveValue, 27002: value_type&&, 27002: const value_type&>; 27002: 27002: _Link_type __tmp 27002: = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); 27002: __tmp->_M_color = __x->_M_color; 27002: __tmp->_M_left = 0; 27002: __tmp->_M_right = 0; 27002: return __tmp; 27002: } 27002: 27002: protected: 27002: 27002: 27002: 27002: 27002: template 27002: 27002: struct _Rb_tree_impl 27002: : public _Node_allocator 27002: , public _Rb_tree_key_compare<_Key_compare> 27002: , public _Rb_tree_header 27002: { 27002: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 27002: 27002: _Rb_tree_impl() 27002: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 27002: 27002: 27002: : _Node_allocator() 27002: { } 27002: 27002: _Rb_tree_impl(const _Rb_tree_impl& __x) 27002: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 27002: , _Base_key_compare(__x._M_key_compare) 27002: , _Rb_tree_header() 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: _Rb_tree_impl(_Rb_tree_impl&&) 27002: noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) 27002: = default; 27002: 27002: explicit 27002: _Rb_tree_impl(_Node_allocator&& __a) 27002: : _Node_allocator(std::move(__a)) 27002: { } 27002: 27002: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 27002: : _Node_allocator(std::move(__a)), 27002: _Base_key_compare(std::move(__x)), 27002: _Rb_tree_header(std::move(__x)) 27002: { } 27002: 27002: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 27002: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 27002: { } 27002: 27002: }; 27002: 27002: _Rb_tree_impl<_Compare> _M_impl; 27002: 27002: protected: 27002: _Base_ptr& 27002: _M_root() noexcept 27002: { return this->_M_impl._M_header._M_parent; } 27002: 27002: _Const_Base_ptr 27002: _M_root() const noexcept 27002: { return this->_M_impl._M_header._M_parent; } 27002: 27002: _Base_ptr& 27002: _M_leftmost() noexcept 27002: { return this->_M_impl._M_header._M_left; } 27002: 27002: _Const_Base_ptr 27002: _M_leftmost() const noexcept 27002: { return this->_M_impl._M_header._M_left; } 27002: 27002: _Base_ptr& 27002: _M_rightmost() noexcept 27002: { return this->_M_impl._M_header._M_right; } 27002: 27002: _Const_Base_ptr 27002: _M_rightmost() const noexcept 27002: { return this->_M_impl._M_header._M_right; } 27002: 27002: _Link_type 27002: _M_mbegin() const noexcept 27002: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 27002: 27002: _Link_type 27002: _M_begin() noexcept 27002: { return _M_mbegin(); } 27002: 27002: _Const_Link_type 27002: _M_begin() const noexcept 27002: { 27002: return static_cast<_Const_Link_type> 27002: (this->_M_impl._M_header._M_parent); 27002: } 27002: 27002: _Base_ptr 27002: _M_end() noexcept 27002: { return &this->_M_impl._M_header; } 27002: 27002: _Const_Base_ptr 27002: _M_end() const noexcept 27002: { return &this->_M_impl._M_header; } 27002: 27002: static const _Key& 27002: _S_key(_Const_Link_type __x) 27002: { 27002: 27002: 27002: 27002: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 27002: "comparison object must be invocable " 27002: "with two arguments of key type"); 27002: 27002: 27002: 27002: if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) 27002: static_assert( 27002: is_invocable_v, 27002: "comparison object must be invocable as const"); 27002: 27002: 27002: 27002: return _KeyOfValue()(*__x->_M_valptr()); 27002: } 27002: 27002: static _Link_type 27002: _S_left(_Base_ptr __x) noexcept 27002: { return static_cast<_Link_type>(__x->_M_left); } 27002: 27002: static _Const_Link_type 27002: _S_left(_Const_Base_ptr __x) noexcept 27002: { return static_cast<_Const_Link_type>(__x->_M_left); } 27002: 27002: static _Link_type 27002: _S_right(_Base_ptr __x) noexcept 27002: { return static_cast<_Link_type>(__x->_M_right); } 27002: 27002: static _Const_Link_type 27002: _S_right(_Const_Base_ptr __x) noexcept 27002: { return static_cast<_Const_Link_type>(__x->_M_right); } 27002: 27002: static const _Key& 27002: _S_key(_Const_Base_ptr __x) 27002: { return _S_key(static_cast<_Const_Link_type>(__x)); } 27002: 27002: static _Base_ptr 27002: _S_minimum(_Base_ptr __x) noexcept 27002: { return _Rb_tree_node_base::_S_minimum(__x); } 27002: 27002: static _Const_Base_ptr 27002: _S_minimum(_Const_Base_ptr __x) noexcept 27002: { return _Rb_tree_node_base::_S_minimum(__x); } 27002: 27002: static _Base_ptr 27002: _S_maximum(_Base_ptr __x) noexcept 27002: { return _Rb_tree_node_base::_S_maximum(__x); } 27002: 27002: static _Const_Base_ptr 27002: _S_maximum(_Const_Base_ptr __x) noexcept 27002: { return _Rb_tree_node_base::_S_maximum(__x); } 27002: 27002: public: 27002: typedef _Rb_tree_iterator iterator; 27002: typedef _Rb_tree_const_iterator const_iterator; 27002: 27002: typedef std::reverse_iterator reverse_iterator; 27002: typedef std::reverse_iterator const_reverse_iterator; 27002: 27002: 27002: using node_type = _Node_handle<_Key, _Val, _Node_allocator>; 27002: using insert_return_type = _Node_insert_return< 27002: __conditional_t, const_iterator, iterator>, 27002: node_type>; 27002: 27002: 27002: pair<_Base_ptr, _Base_ptr> 27002: _M_get_insert_unique_pos(const key_type& __k); 27002: 27002: pair<_Base_ptr, _Base_ptr> 27002: _M_get_insert_equal_pos(const key_type& __k); 27002: 27002: pair<_Base_ptr, _Base_ptr> 27002: _M_get_insert_hint_unique_pos(const_iterator __pos, 27002: const key_type& __k); 27002: 27002: pair<_Base_ptr, _Base_ptr> 27002: _M_get_insert_hint_equal_pos(const_iterator __pos, 27002: const key_type& __k); 27002: 27002: private: 27002: 27002: template 27002: iterator 27002: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 27002: 27002: iterator 27002: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 27002: 27002: template 27002: iterator 27002: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 27002: 27002: template 27002: iterator 27002: _M_insert_equal_lower(_Arg&& __x); 27002: 27002: iterator 27002: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 27002: 27002: iterator 27002: _M_insert_equal_lower_node(_Link_type __z); 27002: # 879 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: enum { __as_lvalue, __as_rvalue }; 27002: 27002: template 27002: _Link_type 27002: _M_copy(_Link_type, _Base_ptr, _NodeGen&); 27002: 27002: template 27002: _Link_type 27002: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 27002: { 27002: _Link_type __root = 27002: _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); 27002: _M_leftmost() = _S_minimum(__root); 27002: _M_rightmost() = _S_maximum(__root); 27002: _M_impl._M_node_count = __x._M_impl._M_node_count; 27002: return __root; 27002: } 27002: 27002: _Link_type 27002: _M_copy(const _Rb_tree& __x) 27002: { 27002: _Alloc_node __an(*this); 27002: return _M_copy<__as_lvalue>(__x, __an); 27002: } 27002: 27002: void 27002: _M_erase(_Link_type __x); 27002: 27002: iterator 27002: _M_lower_bound(_Link_type __x, _Base_ptr __y, 27002: const _Key& __k); 27002: 27002: const_iterator 27002: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 27002: const _Key& __k) const; 27002: 27002: iterator 27002: _M_upper_bound(_Link_type __x, _Base_ptr __y, 27002: const _Key& __k); 27002: 27002: const_iterator 27002: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 27002: const _Key& __k) const; 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: _Rb_tree() = default; 27002: 27002: 27002: _Rb_tree(const _Compare& __comp, 27002: const allocator_type& __a = allocator_type()) 27002: : _M_impl(__comp, _Node_allocator(__a)) { } 27002: 27002: _Rb_tree(const _Rb_tree& __x) 27002: : _M_impl(__x._M_impl) 27002: { 27002: if (__x._M_root() != 0) 27002: _M_root() = _M_copy(__x); 27002: } 27002: 27002: 27002: _Rb_tree(const allocator_type& __a) 27002: : _M_impl(_Node_allocator(__a)) 27002: { } 27002: 27002: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 27002: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 27002: { 27002: if (__x._M_root() != nullptr) 27002: _M_root() = _M_copy(__x); 27002: } 27002: 27002: _Rb_tree(_Rb_tree&&) = default; 27002: 27002: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 27002: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 27002: { } 27002: 27002: private: 27002: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 27002: noexcept(is_nothrow_default_constructible<_Compare>::value) 27002: : _M_impl(std::move(__x._M_impl), std::move(__a)) 27002: { } 27002: 27002: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 27002: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 27002: { 27002: if (__x._M_root() != nullptr) 27002: _M_move_data(__x, false_type{}); 27002: } 27002: 27002: public: 27002: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 27002: noexcept( noexcept( 27002: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 27002: std::declval())) ) 27002: : _Rb_tree(std::move(__x), std::move(__a), 27002: typename _Alloc_traits::is_always_equal{}) 27002: { } 27002: 27002: 27002: ~_Rb_tree() noexcept 27002: { _M_erase(_M_begin()); } 27002: 27002: _Rb_tree& 27002: operator=(const _Rb_tree& __x); 27002: 27002: 27002: _Compare 27002: key_comp() const 27002: { return _M_impl._M_key_compare; } 27002: 27002: iterator 27002: begin() noexcept 27002: { return iterator(this->_M_impl._M_header._M_left); } 27002: 27002: const_iterator 27002: begin() const noexcept 27002: { return const_iterator(this->_M_impl._M_header._M_left); } 27002: 27002: iterator 27002: end() noexcept 27002: { return iterator(&this->_M_impl._M_header); } 27002: 27002: const_iterator 27002: end() const noexcept 27002: { return const_iterator(&this->_M_impl._M_header); } 27002: 27002: reverse_iterator 27002: rbegin() noexcept 27002: { return reverse_iterator(end()); } 27002: 27002: const_reverse_iterator 27002: rbegin() const noexcept 27002: { return const_reverse_iterator(end()); } 27002: 27002: reverse_iterator 27002: rend() noexcept 27002: { return reverse_iterator(begin()); } 27002: 27002: const_reverse_iterator 27002: rend() const noexcept 27002: { return const_reverse_iterator(begin()); } 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return _M_impl._M_node_count == 0; } 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_impl._M_node_count; } 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 27002: 27002: void 27002: swap(_Rb_tree& __t) 27002: noexcept(__is_nothrow_swappable<_Compare>::value); 27002: 27002: 27002: 27002: template 27002: pair 27002: _M_insert_unique(_Arg&& __x); 27002: 27002: template 27002: iterator 27002: _M_insert_equal(_Arg&& __x); 27002: 27002: template 27002: iterator 27002: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 27002: 27002: template 27002: iterator 27002: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 27002: { 27002: _Alloc_node __an(*this); 27002: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 27002: } 27002: 27002: template 27002: iterator 27002: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 27002: 27002: template 27002: iterator 27002: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 27002: { 27002: _Alloc_node __an(*this); 27002: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 27002: } 27002: 27002: template 27002: pair 27002: _M_emplace_unique(_Args&&... __args); 27002: 27002: template 27002: iterator 27002: _M_emplace_equal(_Args&&... __args); 27002: 27002: template 27002: iterator 27002: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 27002: 27002: template 27002: iterator 27002: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 27002: 27002: template 27002: using __same_value_type 27002: = is_same::value_type>; 27002: 27002: template 27002: __enable_if_t<__same_value_type<_InputIterator>::value> 27002: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 27002: { 27002: _Alloc_node __an(*this); 27002: for (; __first != __last; ++__first) 27002: _M_insert_unique_(end(), *__first, __an); 27002: } 27002: 27002: template 27002: __enable_if_t::value> 27002: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 27002: { 27002: for (; __first != __last; ++__first) 27002: _M_emplace_unique(*__first); 27002: } 27002: 27002: template 27002: __enable_if_t<__same_value_type<_InputIterator>::value> 27002: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 27002: { 27002: _Alloc_node __an(*this); 27002: for (; __first != __last; ++__first) 27002: _M_insert_equal_(end(), *__first, __an); 27002: } 27002: 27002: template 27002: __enable_if_t::value> 27002: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 27002: { 27002: _Alloc_node __an(*this); 27002: for (; __first != __last; ++__first) 27002: _M_emplace_equal(*__first); 27002: } 27002: # 1179 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: private: 27002: void 27002: _M_erase_aux(const_iterator __position); 27002: 27002: void 27002: _M_erase_aux(const_iterator __first, const_iterator __last); 27002: 27002: public: 27002: 27002: 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iterator 27002: erase(const_iterator __position) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__position != end())) __builtin_unreachable(); } while (false); 27002: const_iterator __result = __position; 27002: ++__result; 27002: _M_erase_aux(__position); 27002: return __result._M_const_cast(); 27002: } 27002: 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iterator 27002: erase(iterator __position) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__position != end())) __builtin_unreachable(); } while (false); 27002: iterator __result = __position; 27002: ++__result; 27002: _M_erase_aux(__position); 27002: return __result; 27002: } 27002: # 1228 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: size_type 27002: erase(const key_type& __x); 27002: 27002: 27002: 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iterator 27002: erase(const_iterator __first, const_iterator __last) 27002: { 27002: _M_erase_aux(__first, __last); 27002: return __last._M_const_cast(); 27002: } 27002: # 1251 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: void 27002: clear() noexcept 27002: { 27002: _M_erase(_M_begin()); 27002: _M_impl._M_reset(); 27002: } 27002: 27002: 27002: iterator 27002: find(const key_type& __k); 27002: 27002: const_iterator 27002: find(const key_type& __k) const; 27002: 27002: size_type 27002: count(const key_type& __k) const; 27002: 27002: iterator 27002: lower_bound(const key_type& __k) 27002: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 27002: 27002: const_iterator 27002: lower_bound(const key_type& __k) const 27002: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 27002: 27002: iterator 27002: upper_bound(const key_type& __k) 27002: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 27002: 27002: const_iterator 27002: upper_bound(const key_type& __k) const 27002: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 27002: 27002: pair 27002: equal_range(const key_type& __k); 27002: 27002: pair 27002: equal_range(const key_type& __k) const; 27002: 27002: 27002: template> 27002: iterator 27002: _M_find_tr(const _Kt& __k) 27002: { 27002: const _Rb_tree* __const_this = this; 27002: return __const_this->_M_find_tr(__k)._M_const_cast(); 27002: } 27002: 27002: template> 27002: const_iterator 27002: _M_find_tr(const _Kt& __k) const 27002: { 27002: auto __j = _M_lower_bound_tr(__k); 27002: if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) 27002: __j = end(); 27002: return __j; 27002: } 27002: 27002: template> 27002: size_type 27002: _M_count_tr(const _Kt& __k) const 27002: { 27002: auto __p = _M_equal_range_tr(__k); 27002: return std::distance(__p.first, __p.second); 27002: } 27002: 27002: template> 27002: iterator 27002: _M_lower_bound_tr(const _Kt& __k) 27002: { 27002: const _Rb_tree* __const_this = this; 27002: return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); 27002: } 27002: 27002: template> 27002: const_iterator 27002: _M_lower_bound_tr(const _Kt& __k) const 27002: { 27002: auto __x = _M_begin(); 27002: auto __y = _M_end(); 27002: while (__x != 0) 27002: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 27002: { 27002: __y = __x; 27002: __x = _S_left(__x); 27002: } 27002: else 27002: __x = _S_right(__x); 27002: return const_iterator(__y); 27002: } 27002: 27002: template> 27002: iterator 27002: _M_upper_bound_tr(const _Kt& __k) 27002: { 27002: const _Rb_tree* __const_this = this; 27002: return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); 27002: } 27002: 27002: template> 27002: const_iterator 27002: _M_upper_bound_tr(const _Kt& __k) const 27002: { 27002: auto __x = _M_begin(); 27002: auto __y = _M_end(); 27002: while (__x != 0) 27002: if (_M_impl._M_key_compare(__k, _S_key(__x))) 27002: { 27002: __y = __x; 27002: __x = _S_left(__x); 27002: } 27002: else 27002: __x = _S_right(__x); 27002: return const_iterator(__y); 27002: } 27002: 27002: template> 27002: pair 27002: _M_equal_range_tr(const _Kt& __k) 27002: { 27002: const _Rb_tree* __const_this = this; 27002: auto __ret = __const_this->_M_equal_range_tr(__k); 27002: return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; 27002: } 27002: 27002: template> 27002: pair 27002: _M_equal_range_tr(const _Kt& __k) const 27002: { 27002: auto __low = _M_lower_bound_tr(__k); 27002: auto __high = __low; 27002: auto& __cmp = _M_impl._M_key_compare; 27002: while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) 27002: ++__high; 27002: return { __low, __high }; 27002: } 27002: 27002: 27002: 27002: bool 27002: __rb_verify() const; 27002: 27002: 27002: _Rb_tree& 27002: operator=(_Rb_tree&&) 27002: noexcept(_Alloc_traits::_S_nothrow_move() 27002: && is_nothrow_move_assignable<_Compare>::value); 27002: 27002: template 27002: void 27002: _M_assign_unique(_Iterator, _Iterator); 27002: 27002: template 27002: void 27002: _M_assign_equal(_Iterator, _Iterator); 27002: 27002: private: 27002: 27002: void 27002: _M_move_data(_Rb_tree& __x, true_type) 27002: { _M_impl._M_move_data(__x._M_impl); } 27002: 27002: 27002: 27002: void 27002: _M_move_data(_Rb_tree&, false_type); 27002: 27002: 27002: void 27002: _M_move_assign(_Rb_tree&, true_type); 27002: 27002: 27002: 27002: void 27002: _M_move_assign(_Rb_tree&, false_type); 27002: 27002: 27002: 27002: public: 27002: 27002: insert_return_type 27002: _M_reinsert_node_unique(node_type&& __nh) 27002: { 27002: insert_return_type __ret; 27002: if (__nh.empty()) 27002: __ret.position = end(); 27002: else 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 27002: 27002: auto __res = _M_get_insert_unique_pos(__nh._M_key()); 27002: if (__res.second) 27002: { 27002: __ret.position 27002: = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 27002: __nh._M_ptr = nullptr; 27002: __ret.inserted = true; 27002: } 27002: else 27002: { 27002: __ret.node = std::move(__nh); 27002: __ret.position = iterator(__res.first); 27002: __ret.inserted = false; 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: 27002: iterator 27002: _M_reinsert_node_equal(node_type&& __nh) 27002: { 27002: iterator __ret; 27002: if (__nh.empty()) 27002: __ret = end(); 27002: else 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 27002: auto __res = _M_get_insert_equal_pos(__nh._M_key()); 27002: if (__res.second) 27002: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 27002: else 27002: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 27002: __nh._M_ptr = nullptr; 27002: } 27002: return __ret; 27002: } 27002: 27002: 27002: iterator 27002: _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) 27002: { 27002: iterator __ret; 27002: if (__nh.empty()) 27002: __ret = end(); 27002: else 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 27002: auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); 27002: if (__res.second) 27002: { 27002: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 27002: __nh._M_ptr = nullptr; 27002: } 27002: else 27002: __ret = iterator(__res.first); 27002: } 27002: return __ret; 27002: } 27002: 27002: 27002: iterator 27002: _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) 27002: { 27002: iterator __ret; 27002: if (__nh.empty()) 27002: __ret = end(); 27002: else 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); 27002: auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); 27002: if (__res.second) 27002: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 27002: else 27002: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 27002: __nh._M_ptr = nullptr; 27002: } 27002: return __ret; 27002: } 27002: 27002: 27002: node_type 27002: extract(const_iterator __pos) 27002: { 27002: auto __ptr = _Rb_tree_rebalance_for_erase( 27002: __pos._M_const_cast()._M_node, _M_impl._M_header); 27002: --_M_impl._M_node_count; 27002: return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; 27002: } 27002: 27002: 27002: node_type 27002: extract(const key_type& __k) 27002: { 27002: node_type __nh; 27002: auto __pos = find(__k); 27002: if (__pos != end()) 27002: __nh = extract(const_iterator(__pos)); 27002: return __nh; 27002: } 27002: 27002: template 27002: using _Compatible_tree 27002: = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; 27002: 27002: template 27002: friend class _Rb_tree_merge_helper; 27002: 27002: 27002: template 27002: void 27002: _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept 27002: { 27002: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 27002: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 27002: { 27002: auto __pos = __i++; 27002: auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); 27002: if (__res.second) 27002: { 27002: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 27002: auto __ptr = _Rb_tree_rebalance_for_erase( 27002: __pos._M_node, __src_impl._M_header); 27002: --__src_impl._M_node_count; 27002: _M_insert_node(__res.first, __res.second, 27002: static_cast<_Link_type>(__ptr)); 27002: } 27002: } 27002: } 27002: 27002: 27002: template 27002: void 27002: _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept 27002: { 27002: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 27002: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 27002: { 27002: auto __pos = __i++; 27002: auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); 27002: if (__res.second) 27002: { 27002: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 27002: auto __ptr = _Rb_tree_rebalance_for_erase( 27002: __pos._M_node, __src_impl._M_header); 27002: --__src_impl._M_node_count; 27002: _M_insert_node(__res.first, __res.second, 27002: static_cast<_Link_type>(__ptr)); 27002: } 27002: } 27002: } 27002: 27002: 27002: friend bool 27002: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 27002: { 27002: return __x.size() == __y.size() 27002: && std::equal(__x.begin(), __x.end(), __y.begin()); 27002: } 27002: # 1620 "/usr/include/c++/12/bits/stl_tree.h" 3 27002: friend bool 27002: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 27002: { 27002: return std::lexicographical_compare(__x.begin(), __x.end(), 27002: __y.begin(), __y.end()); 27002: } 27002: 27002: 27002: private: 27002: 27002: 27002: struct _Auto_node 27002: { 27002: template 27002: _Auto_node(_Rb_tree& __t, _Args&&... __args) 27002: : _M_t(__t), 27002: _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) 27002: { } 27002: 27002: ~_Auto_node() 27002: { 27002: if (_M_node) 27002: _M_t._M_drop_node(_M_node); 27002: } 27002: 27002: _Auto_node(_Auto_node&& __n) 27002: : _M_t(__n._M_t), _M_node(__n._M_node) 27002: { __n._M_node = nullptr; } 27002: 27002: const _Key& 27002: _M_key() const 27002: { return _S_key(_M_node); } 27002: 27002: iterator 27002: _M_insert(pair<_Base_ptr, _Base_ptr> __p) 27002: { 27002: auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); 27002: _M_node = nullptr; 27002: return __it; 27002: } 27002: 27002: iterator 27002: _M_insert_equal_lower() 27002: { 27002: auto __it = _M_t._M_insert_equal_lower_node(_M_node); 27002: _M_node = nullptr; 27002: return __it; 27002: } 27002: 27002: _Rb_tree& _M_t; 27002: _Link_type _M_node; 27002: }; 27002: 27002: }; 27002: 27002: template 27002: inline void 27002: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 27002: { __x.swap(__y); } 27002: 27002: 27002: template 27002: void 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_move_data(_Rb_tree& __x, false_type) 27002: { 27002: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 27002: _M_move_data(__x, true_type()); 27002: else 27002: { 27002: constexpr bool __move = !__move_if_noexcept_cond::value; 27002: _Alloc_node __an(*this); 27002: _M_root() = _M_copy<__move>(__x, __an); 27002: if constexpr (__move) 27002: __x.clear(); 27002: } 27002: } 27002: 27002: template 27002: inline void 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_move_assign(_Rb_tree& __x, true_type) 27002: { 27002: clear(); 27002: if (__x._M_root() != nullptr) 27002: _M_move_data(__x, true_type()); 27002: std::__alloc_on_move(_M_get_Node_allocator(), 27002: __x._M_get_Node_allocator()); 27002: } 27002: 27002: template 27002: void 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_move_assign(_Rb_tree& __x, false_type) 27002: { 27002: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 27002: return _M_move_assign(__x, true_type{}); 27002: 27002: 27002: 27002: _Reuse_or_alloc_node __roan(*this); 27002: _M_impl._M_reset(); 27002: if (__x._M_root() != nullptr) 27002: { 27002: _M_root() = _M_copy<__as_rvalue>(__x, __roan); 27002: __x.clear(); 27002: } 27002: } 27002: 27002: template 27002: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: operator=(_Rb_tree&& __x) 27002: noexcept(_Alloc_traits::_S_nothrow_move() 27002: && is_nothrow_move_assignable<_Compare>::value) 27002: { 27002: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 27002: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 27002: return *this; 27002: } 27002: 27002: template 27002: template 27002: void 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_assign_unique(_Iterator __first, _Iterator __last) 27002: { 27002: _Reuse_or_alloc_node __roan(*this); 27002: _M_impl._M_reset(); 27002: for (; __first != __last; ++__first) 27002: _M_insert_unique_(end(), *__first, __roan); 27002: } 27002: 27002: template 27002: template 27002: void 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_assign_equal(_Iterator __first, _Iterator __last) 27002: { 27002: _Reuse_or_alloc_node __roan(*this); 27002: _M_impl._M_reset(); 27002: for (; __first != __last; ++__first) 27002: _M_insert_equal_(end(), *__first, __roan); 27002: } 27002: 27002: 27002: template 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: operator=(const _Rb_tree& __x) 27002: { 27002: if (this != std::__addressof(__x)) 27002: { 27002: 27002: 27002: if (_Alloc_traits::_S_propagate_on_copy_assign()) 27002: { 27002: auto& __this_alloc = this->_M_get_Node_allocator(); 27002: auto& __that_alloc = __x._M_get_Node_allocator(); 27002: if (!_Alloc_traits::_S_always_equal() 27002: && __this_alloc != __that_alloc) 27002: { 27002: 27002: 27002: clear(); 27002: std::__alloc_on_copy(__this_alloc, __that_alloc); 27002: } 27002: } 27002: 27002: 27002: _Reuse_or_alloc_node __roan(*this); 27002: _M_impl._M_reset(); 27002: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 27002: if (__x._M_root() != 0) 27002: _M_root() = _M_copy<__as_lvalue>(__x, __roan); 27002: } 27002: 27002: return *this; 27002: } 27002: 27002: template 27002: 27002: template 27002: 27002: 27002: 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_insert_(_Base_ptr __x, _Base_ptr __p, 27002: 27002: _Arg&& __v, 27002: 27002: 27002: 27002: _NodeGen& __node_gen) 27002: { 27002: bool __insert_left = (__x != 0 || __p == _M_end() 27002: || _M_impl._M_key_compare(_KeyOfValue()(__v), 27002: _S_key(__p))); 27002: 27002: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 27002: 27002: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 27002: this->_M_impl._M_header); 27002: ++_M_impl._M_node_count; 27002: return iterator(__z); 27002: } 27002: 27002: template 27002: 27002: template 27002: 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: 27002: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 27002: 27002: 27002: 27002: { 27002: bool __insert_left = (__p == _M_end() 27002: || !_M_impl._M_key_compare(_S_key(__p), 27002: _KeyOfValue()(__v))); 27002: 27002: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 27002: 27002: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 27002: this->_M_impl._M_header); 27002: ++_M_impl._M_node_count; 27002: return iterator(__z); 27002: } 27002: 27002: template 27002: 27002: template 27002: 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: 27002: _M_insert_equal_lower(_Arg&& __v) 27002: 27002: 27002: 27002: { 27002: _Link_type __x = _M_begin(); 27002: _Base_ptr __y = _M_end(); 27002: while (__x != 0) 27002: { 27002: __y = __x; 27002: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 27002: _S_left(__x) : _S_right(__x); 27002: } 27002: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 27002: } 27002: 27002: template 27002: template 27002: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 27002: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 27002: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 27002: { 27002: 27002: _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); 27002: __top->_M_parent = __p; 27002: 27002: try 27002: { 27002: if (__x->_M_right) 27002: __top->_M_right = 27002: _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); 27002: __p = __top; 27002: __x = _S_left(__x); 27002: 27002: while (__x != 0) 27002: { 27002: _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); 27002: __p->_M_left = __y; 27002: __y->_M_parent = __p; 27002: if (__x->_M_right) 27002: __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), 27002: __y, __node_gen); 27002: __p = __y; 27002: __x = _S_left(__x); 27002: } 27002: } 27002: catch(...) 27002: { 27002: _M_erase(__top); 27002: throw; 27002: } 27002: return __top; 27002: } 27002: 27002: template 27002: void 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_erase(_Link_type __x) 27002: { 27002: 27002: while (__x != 0) 27002: { 27002: _M_erase(_S_right(__x)); 27002: _Link_type __y = _S_left(__x); 27002: _M_drop_node(__x); 27002: __x = __y; 27002: } 27002: } 27002: 27002: template 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_lower_bound(_Link_type __x, _Base_ptr __y, 27002: const _Key& __k) 27002: { 27002: while (__x != 0) 27002: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 27002: __y = __x, __x = _S_left(__x); 27002: else 27002: __x = _S_right(__x); 27002: return iterator(__y); 27002: } 27002: 27002: template 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::const_iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 27002: const _Key& __k) const 27002: { 27002: while (__x != 0) 27002: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 27002: __y = __x, __x = _S_left(__x); 27002: else 27002: __x = _S_right(__x); 27002: return const_iterator(__y); 27002: } 27002: 27002: template 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_upper_bound(_Link_type __x, _Base_ptr __y, 27002: const _Key& __k) 27002: { 27002: while (__x != 0) 27002: if (_M_impl._M_key_compare(__k, _S_key(__x))) 27002: __y = __x, __x = _S_left(__x); 27002: else 27002: __x = _S_right(__x); 27002: return iterator(__y); 27002: } 27002: 27002: template 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::const_iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 27002: const _Key& __k) const 27002: { 27002: while (__x != 0) 27002: if (_M_impl._M_key_compare(__k, _S_key(__x))) 27002: __y = __x, __x = _S_left(__x); 27002: else 27002: __x = _S_right(__x); 27002: return const_iterator(__y); 27002: } 27002: 27002: template 27002: pair::iterator, 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::iterator> 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: equal_range(const _Key& __k) 27002: { 27002: _Link_type __x = _M_begin(); 27002: _Base_ptr __y = _M_end(); 27002: while (__x != 0) 27002: { 27002: if (_M_impl._M_key_compare(_S_key(__x), __k)) 27002: __x = _S_right(__x); 27002: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 27002: __y = __x, __x = _S_left(__x); 27002: else 27002: { 27002: _Link_type __xu(__x); 27002: _Base_ptr __yu(__y); 27002: __y = __x, __x = _S_left(__x); 27002: __xu = _S_right(__xu); 27002: return pair(_M_lower_bound(__x, __y, __k), 27002: _M_upper_bound(__xu, __yu, __k)); 27002: } 27002: } 27002: return pair(iterator(__y), 27002: iterator(__y)); 27002: } 27002: 27002: template 27002: pair::const_iterator, 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::const_iterator> 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: equal_range(const _Key& __k) const 27002: { 27002: _Const_Link_type __x = _M_begin(); 27002: _Const_Base_ptr __y = _M_end(); 27002: while (__x != 0) 27002: { 27002: if (_M_impl._M_key_compare(_S_key(__x), __k)) 27002: __x = _S_right(__x); 27002: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 27002: __y = __x, __x = _S_left(__x); 27002: else 27002: { 27002: _Const_Link_type __xu(__x); 27002: _Const_Base_ptr __yu(__y); 27002: __y = __x, __x = _S_left(__x); 27002: __xu = _S_right(__xu); 27002: return pair(_M_lower_bound(__x, __y, __k), 27002: _M_upper_bound(__xu, __yu, __k)); 27002: } 27002: } 27002: return pair(const_iterator(__y), 27002: const_iterator(__y)); 27002: } 27002: 27002: template 27002: void 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: swap(_Rb_tree& __t) 27002: noexcept(__is_nothrow_swappable<_Compare>::value) 27002: { 27002: if (_M_root() == 0) 27002: { 27002: if (__t._M_root() != 0) 27002: _M_impl._M_move_data(__t._M_impl); 27002: } 27002: else if (__t._M_root() == 0) 27002: __t._M_impl._M_move_data(_M_impl); 27002: else 27002: { 27002: std::swap(_M_root(),__t._M_root()); 27002: std::swap(_M_leftmost(),__t._M_leftmost()); 27002: std::swap(_M_rightmost(),__t._M_rightmost()); 27002: 27002: _M_root()->_M_parent = _M_end(); 27002: __t._M_root()->_M_parent = __t._M_end(); 27002: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 27002: } 27002: 27002: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 27002: 27002: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 27002: __t._M_get_Node_allocator()); 27002: } 27002: 27002: template 27002: pair::_Base_ptr, 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::_Base_ptr> 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_get_insert_unique_pos(const key_type& __k) 27002: { 27002: typedef pair<_Base_ptr, _Base_ptr> _Res; 27002: _Link_type __x = _M_begin(); 27002: _Base_ptr __y = _M_end(); 27002: bool __comp = true; 27002: while (__x != 0) 27002: { 27002: __y = __x; 27002: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 27002: __x = __comp ? _S_left(__x) : _S_right(__x); 27002: } 27002: iterator __j = iterator(__y); 27002: if (__comp) 27002: { 27002: if (__j == begin()) 27002: return _Res(__x, __y); 27002: else 27002: --__j; 27002: } 27002: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 27002: return _Res(__x, __y); 27002: return _Res(__j._M_node, 0); 27002: } 27002: 27002: template 27002: pair::_Base_ptr, 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::_Base_ptr> 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_get_insert_equal_pos(const key_type& __k) 27002: { 27002: typedef pair<_Base_ptr, _Base_ptr> _Res; 27002: _Link_type __x = _M_begin(); 27002: _Base_ptr __y = _M_end(); 27002: while (__x != 0) 27002: { 27002: __y = __x; 27002: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 27002: _S_left(__x) : _S_right(__x); 27002: } 27002: return _Res(__x, __y); 27002: } 27002: 27002: template 27002: 27002: template 27002: 27002: pair::iterator, bool> 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: 27002: _M_insert_unique(_Arg&& __v) 27002: 27002: 27002: 27002: { 27002: typedef pair _Res; 27002: pair<_Base_ptr, _Base_ptr> __res 27002: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 27002: 27002: if (__res.second) 27002: { 27002: _Alloc_node __an(*this); 27002: return _Res(_M_insert_(__res.first, __res.second, 27002: std::forward<_Arg>(__v), __an), 27002: true); 27002: } 27002: 27002: return _Res(iterator(__res.first), false); 27002: } 27002: 27002: template 27002: 27002: template 27002: 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: 27002: _M_insert_equal(_Arg&& __v) 27002: 27002: 27002: 27002: { 27002: pair<_Base_ptr, _Base_ptr> __res 27002: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 27002: _Alloc_node __an(*this); 27002: return _M_insert_(__res.first, __res.second, 27002: std::forward<_Arg>(__v), __an); 27002: } 27002: 27002: template 27002: pair::_Base_ptr, 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::_Base_ptr> 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_get_insert_hint_unique_pos(const_iterator __position, 27002: const key_type& __k) 27002: { 27002: iterator __pos = __position._M_const_cast(); 27002: typedef pair<_Base_ptr, _Base_ptr> _Res; 27002: 27002: 27002: if (__pos._M_node == _M_end()) 27002: { 27002: if (size() > 0 27002: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 27002: return _Res(0, _M_rightmost()); 27002: else 27002: return _M_get_insert_unique_pos(__k); 27002: } 27002: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 27002: { 27002: 27002: iterator __before = __pos; 27002: if (__pos._M_node == _M_leftmost()) 27002: return _Res(_M_leftmost(), _M_leftmost()); 27002: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 27002: { 27002: if (_S_right(__before._M_node) == 0) 27002: return _Res(0, __before._M_node); 27002: else 27002: return _Res(__pos._M_node, __pos._M_node); 27002: } 27002: else 27002: return _M_get_insert_unique_pos(__k); 27002: } 27002: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 27002: { 27002: 27002: iterator __after = __pos; 27002: if (__pos._M_node == _M_rightmost()) 27002: return _Res(0, _M_rightmost()); 27002: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 27002: { 27002: if (_S_right(__pos._M_node) == 0) 27002: return _Res(0, __pos._M_node); 27002: else 27002: return _Res(__after._M_node, __after._M_node); 27002: } 27002: else 27002: return _M_get_insert_unique_pos(__k); 27002: } 27002: else 27002: 27002: return _Res(__pos._M_node, 0); 27002: } 27002: 27002: template 27002: 27002: template 27002: 27002: 27002: 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_insert_unique_(const_iterator __position, 27002: 27002: _Arg&& __v, 27002: 27002: 27002: 27002: _NodeGen& __node_gen) 27002: { 27002: pair<_Base_ptr, _Base_ptr> __res 27002: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 27002: 27002: if (__res.second) 27002: return _M_insert_(__res.first, __res.second, 27002: std::forward<_Arg>(__v), 27002: __node_gen); 27002: return iterator(__res.first); 27002: } 27002: 27002: template 27002: pair::_Base_ptr, 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::_Base_ptr> 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 27002: { 27002: iterator __pos = __position._M_const_cast(); 27002: typedef pair<_Base_ptr, _Base_ptr> _Res; 27002: 27002: 27002: if (__pos._M_node == _M_end()) 27002: { 27002: if (size() > 0 27002: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 27002: return _Res(0, _M_rightmost()); 27002: else 27002: return _M_get_insert_equal_pos(__k); 27002: } 27002: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 27002: { 27002: 27002: iterator __before = __pos; 27002: if (__pos._M_node == _M_leftmost()) 27002: return _Res(_M_leftmost(), _M_leftmost()); 27002: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 27002: { 27002: if (_S_right(__before._M_node) == 0) 27002: return _Res(0, __before._M_node); 27002: else 27002: return _Res(__pos._M_node, __pos._M_node); 27002: } 27002: else 27002: return _M_get_insert_equal_pos(__k); 27002: } 27002: else 27002: { 27002: 27002: iterator __after = __pos; 27002: if (__pos._M_node == _M_rightmost()) 27002: return _Res(0, _M_rightmost()); 27002: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 27002: { 27002: if (_S_right(__pos._M_node) == 0) 27002: return _Res(0, __pos._M_node); 27002: else 27002: return _Res(__after._M_node, __after._M_node); 27002: } 27002: else 27002: return _Res(0, 0); 27002: } 27002: } 27002: 27002: template 27002: 27002: template 27002: 27002: 27002: 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_insert_equal_(const_iterator __position, 27002: 27002: _Arg&& __v, 27002: 27002: 27002: 27002: _NodeGen& __node_gen) 27002: { 27002: pair<_Base_ptr, _Base_ptr> __res 27002: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 27002: 27002: if (__res.second) 27002: return _M_insert_(__res.first, __res.second, 27002: std::forward<_Arg>(__v), 27002: __node_gen); 27002: 27002: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 27002: } 27002: 27002: 27002: template 27002: auto 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 27002: -> iterator 27002: { 27002: bool __insert_left = (__x != 0 || __p == _M_end() 27002: || _M_impl._M_key_compare(_S_key(__z), 27002: _S_key(__p))); 27002: 27002: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 27002: this->_M_impl._M_header); 27002: ++_M_impl._M_node_count; 27002: return iterator(__z); 27002: } 27002: 27002: template 27002: auto 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h:12, from /build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.cc:6: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ : 27002: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 27002: -> iterator 27002: { 27002: bool __insert_left = (__p == _M_end() 27002: || !_M_impl._M_key_compare(_S_key(__p), 27002: _S_key(__z))); 27002: 27002: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 27002: this->_M_impl._M_header); 27002: ++_M_impl._M_node_count; 27002: return iterator(__z); 27002: } 27002: 27002: template 27002: auto 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_insert_equal_lower_node(_Link_type __z) 27002: -> iterator 27002: { 27002: _Link_type __x = _M_begin(); 27002: _Base_ptr __y = _M_end(); 27002: while (__x != 0) 27002: { 27002: __y = __x; 27002: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 27002: _S_left(__x) : _S_right(__x); 27002: } 27002: return _M_insert_lower_node(__y, __z); 27002: } 27002: 27002: template 27002: template 27002: auto 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_emplace_unique(_Args&&... __args) 27002: -> pair 27002: { 27002: _Auto_node __z(*this, std::forward<_Args>(__args)...); 27002: auto __res = _M_get_insert_unique_pos(__z._M_key()); 27002: if (__res.second) 27002: return {__z._M_insert(__res), true}; 27002: return {iterator(__res.first), false}; 27002: } 27002: 27002: template 27002: template 27002: auto 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_emplace_equal(_Args&&... __args) 27002: -> iterator 27002: { 27002: _Auto_node __z(*this, std::forward<_Args>(__args)...); 27002: auto __res = _M_get_insert_equal_pos(__z._M_key()); 27002: return __z._M_insert(__res); 27002: } 27002: 27002: template 27002: template 27002: auto 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 27002: -> iterator 27002: { 27002: _Auto_node __z(*this, std::forward<_Args>(__args)...); 27002: auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); 27002: if (__res.second) 27002: return __z._M_insert(__res); 27002: return iterator(__res.first); 27002: } 27002: 27002: template 27002: template 27002: auto 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 27002: -> iterator 27002: { 27002: _Auto_node __z(*this, std::forward<_Args>(__args)...); 27002: auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); 27002: if (__res.second) 27002: return __z._M_insert(__res); 27002: return __z._M_insert_equal_lower(); 27002: } 27002: 27002: 27002: 27002: template 27002: void 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_erase_aux(const_iterator __position) 27002: { 27002: _Link_type __y = 27002: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 27002: (const_cast<_Base_ptr>(__position._M_node), 27002: this->_M_impl._M_header)); 27002: _M_drop_node(__y); 27002: --_M_impl._M_node_count; 27002: } 27002: 27002: template 27002: void 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: _M_erase_aux(const_iterator __first, const_iterator __last) 27002: { 27002: if (__first == begin() && __last == end()) 27002: clear(); 27002: else 27002: while (__first != __last) 27002: _M_erase_aux(__first++); 27002: } 27002: 27002: template 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: erase(const _Key& __x) 27002: { 27002: pair __p = equal_range(__x); 27002: const size_type __old_size = size(); 27002: _M_erase_aux(__p.first, __p.second); 27002: return __old_size - size(); 27002: } 27002: 27002: template 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: find(const _Key& __k) 27002: { 27002: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 27002: return (__j == end() 27002: || _M_impl._M_key_compare(__k, 27002: _S_key(__j._M_node))) ? end() : __j; 27002: } 27002: 27002: template 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, 27002: _Compare, _Alloc>::const_iterator 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: find(const _Key& __k) const 27002: { 27002: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 27002: return (__j == end() 27002: || _M_impl._M_key_compare(__k, 27002: _S_key(__j._M_node))) ? end() : __j; 27002: } 27002: 27002: template 27002: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 27002: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 27002: count(const _Key& __k) const 27002: { 27002: pair __p = equal_range(__k); 27002: const size_type __n = std::distance(__p.first, __p.second); 27002: return __n; 27002: } 27002: 27002: __attribute__ ((__pure__)) unsigned int 27002: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 27002: const _Rb_tree_node_base* __root) throw (); 27002: 27002: template 27002: bool 27002: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 27002: { 27002: if (_M_impl._M_node_count == 0 || begin() == end()) 27002: return _M_impl._M_node_count == 0 && begin() == end() 27002: && this->_M_impl._M_header._M_left == _M_end() 27002: && this->_M_impl._M_header._M_right == _M_end(); 27002: 27002: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 27002: for (const_iterator __it = begin(); __it != end(); ++__it) 27002: { 27002: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 27002: _Const_Link_type __L = _S_left(__x); 27002: _Const_Link_type __R = _S_right(__x); 27002: 27002: if (__x->_M_color == _S_red) 27002: if ((__L && __L->_M_color == _S_red) 27002: || (__R && __R->_M_color == _S_red)) 27002: return false; 27002: 27002: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 27002: return false; 27002: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 27002: return false; 27002: 27002: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 27002: return false; 27002: } 27002: 27002: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 27002: return false; 27002: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 27002: return false; 27002: return true; 27002: } 27002: 27002: 27002: 27002: template 27002: struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, 27002: _Cmp2> 27002: { 27002: private: 27002: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; 27002: 27002: static auto& 27002: _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) 27002: { return __tree._M_impl; } 27002: }; 27002: 27002: 27002: 27002: } 27002: # 61 "/usr/include/c++/12/map" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_map.h" 1 3 27002: # 66 "/usr/include/c++/12/bits/stl_map.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: class multimap; 27002: # 98 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template , 27002: typename _Alloc = std::allocator > > 27002: class map 27002: { 27002: public: 27002: typedef _Key key_type; 27002: typedef _Tp mapped_type; 27002: typedef std::pair value_type; 27002: typedef _Compare key_compare; 27002: typedef _Alloc allocator_type; 27002: 27002: private: 27002: # 128 "/usr/include/c++/12/bits/stl_map.h" 3 27002: public: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: class value_compare 27002: : public std::binary_function 27002: { 27002: friend class map<_Key, _Tp, _Compare, _Alloc>; 27002: protected: 27002: _Compare comp; 27002: 27002: value_compare(_Compare __c) 27002: : comp(__c) { } 27002: 27002: public: 27002: bool operator()(const value_type& __x, const value_type& __y) const 27002: { return comp(__x.first, __y.first); } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: private: 27002: 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind::other _Pair_alloc_type; 27002: 27002: typedef _Rb_tree, 27002: key_compare, _Pair_alloc_type> _Rep_type; 27002: 27002: 27002: _Rep_type _M_t; 27002: 27002: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 27002: 27002: 27002: template> 27002: static constexpr bool __usable_key 27002: = __or_v, 27002: __and_, is_scalar<_Key>>>; 27002: 27002: 27002: public: 27002: 27002: 27002: typedef typename _Alloc_traits::pointer pointer; 27002: typedef typename _Alloc_traits::const_pointer const_pointer; 27002: typedef typename _Alloc_traits::reference reference; 27002: typedef typename _Alloc_traits::const_reference const_reference; 27002: typedef typename _Rep_type::iterator iterator; 27002: typedef typename _Rep_type::const_iterator const_iterator; 27002: typedef typename _Rep_type::size_type size_type; 27002: typedef typename _Rep_type::difference_type difference_type; 27002: typedef typename _Rep_type::reverse_iterator reverse_iterator; 27002: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 27002: 27002: 27002: using node_type = typename _Rep_type::node_type; 27002: using insert_return_type = typename _Rep_type::insert_return_type; 27002: # 195 "/usr/include/c++/12/bits/stl_map.h" 3 27002: map() = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: map(const _Compare& __comp, 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Pair_alloc_type(__a)) { } 27002: # 217 "/usr/include/c++/12/bits/stl_map.h" 3 27002: map(const map&) = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: map(map&&) = default; 27002: # 238 "/usr/include/c++/12/bits/stl_map.h" 3 27002: map(initializer_list __l, 27002: const _Compare& __comp = _Compare(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Pair_alloc_type(__a)) 27002: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 27002: 27002: 27002: explicit 27002: map(const allocator_type& __a) 27002: : _M_t(_Pair_alloc_type(__a)) { } 27002: 27002: 27002: map(const map& __m, const __type_identity_t& __a) 27002: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 27002: 27002: 27002: map(map&& __m, const __type_identity_t& __a) 27002: noexcept(is_nothrow_copy_constructible<_Compare>::value 27002: && _Alloc_traits::_S_always_equal()) 27002: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 27002: 27002: 27002: map(initializer_list __l, const allocator_type& __a) 27002: : _M_t(_Pair_alloc_type(__a)) 27002: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 27002: 27002: 27002: template 27002: map(_InputIterator __first, _InputIterator __last, 27002: const allocator_type& __a) 27002: : _M_t(_Pair_alloc_type(__a)) 27002: { _M_t._M_insert_range_unique(__first, __last); } 27002: # 282 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: map(_InputIterator __first, _InputIterator __last) 27002: : _M_t() 27002: { _M_t._M_insert_range_unique(__first, __last); } 27002: # 299 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: map(_InputIterator __first, _InputIterator __last, 27002: const _Compare& __comp, 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Pair_alloc_type(__a)) 27002: { _M_t._M_insert_range_unique(__first, __last); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ~map() = default; 27002: # 328 "/usr/include/c++/12/bits/stl_map.h" 3 27002: map& 27002: operator=(const map&) = default; 27002: 27002: 27002: map& 27002: operator=(map&&) = default; 27002: # 346 "/usr/include/c++/12/bits/stl_map.h" 3 27002: map& 27002: operator=(initializer_list __l) 27002: { 27002: _M_t._M_assign_unique(__l.begin(), __l.end()); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return allocator_type(_M_t.get_allocator()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: begin() noexcept 27002: { return _M_t.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: begin() const noexcept 27002: { return _M_t.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: end() noexcept 27002: { return _M_t.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: end() const noexcept 27002: { return _M_t.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: rbegin() noexcept 27002: { return _M_t.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: rbegin() const noexcept 27002: { return _M_t.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: rend() noexcept 27002: { return _M_t.rend(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: rend() const noexcept 27002: { return _M_t.rend(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: cbegin() const noexcept 27002: { return _M_t.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: cend() const noexcept 27002: { return _M_t.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: crbegin() const noexcept 27002: { return _M_t.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: crend() const noexcept 27002: { return _M_t.rend(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return _M_t.empty(); } 27002: 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_t.size(); } 27002: 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return _M_t.max_size(); } 27002: # 501 "/usr/include/c++/12/bits/stl_map.h" 3 27002: mapped_type& 27002: operator[](const key_type& __k) 27002: { 27002: 27002: 27002: 27002: iterator __i = lower_bound(__k); 27002: 27002: if (__i == end() || key_comp()(__k, (*__i).first)) 27002: 27002: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 27002: std::tuple(__k), 27002: std::tuple<>()); 27002: 27002: 27002: 27002: return (*__i).second; 27002: } 27002: 27002: 27002: mapped_type& 27002: operator[](key_type&& __k) 27002: { 27002: 27002: 27002: 27002: iterator __i = lower_bound(__k); 27002: 27002: if (__i == end() || key_comp()(__k, (*__i).first)) 27002: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 27002: std::forward_as_tuple(std::move(__k)), 27002: std::tuple<>()); 27002: return (*__i).second; 27002: } 27002: # 546 "/usr/include/c++/12/bits/stl_map.h" 3 27002: mapped_type& 27002: at(const key_type& __k) 27002: { 27002: iterator __i = lower_bound(__k); 27002: if (__i == end() || key_comp()(__k, (*__i).first)) 27002: __throw_out_of_range(("map::at")); 27002: return (*__i).second; 27002: } 27002: 27002: const mapped_type& 27002: at(const key_type& __k) const 27002: { 27002: const_iterator __i = lower_bound(__k); 27002: if (__i == end() || key_comp()(__k, (*__i).first)) 27002: __throw_out_of_range(("map::at")); 27002: return (*__i).second; 27002: } 27002: # 584 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: std::pair 27002: emplace(_Args&&... __args) 27002: { 27002: 27002: if constexpr (sizeof...(_Args) == 2) 27002: if constexpr (is_same_v>) 27002: { 27002: auto&& [__a, __v] = pair<_Args&...>(__args...); 27002: if constexpr (__usable_key) 27002: { 27002: const key_type& __k = __a; 27002: iterator __i = lower_bound(__k); 27002: if (__i == end() || key_comp()(__k, (*__i).first)) 27002: { 27002: __i = emplace_hint(__i, std::forward<_Args>(__args)...); 27002: return {__i, true}; 27002: } 27002: return {__i, false}; 27002: } 27002: } 27002: 27002: return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); 27002: } 27002: # 634 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: iterator 27002: emplace_hint(const_iterator __pos, _Args&&... __args) 27002: { 27002: return _M_t._M_emplace_hint_unique(__pos, 27002: std::forward<_Args>(__args)...); 27002: } 27002: 27002: 27002: 27002: 27002: node_type 27002: extract(const_iterator __pos) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 27002: return _M_t.extract(__pos); 27002: } 27002: 27002: 27002: node_type 27002: extract(const key_type& __x) 27002: { return _M_t.extract(__x); } 27002: 27002: 27002: insert_return_type 27002: insert(node_type&& __nh) 27002: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 27002: 27002: 27002: iterator 27002: insert(const_iterator __hint, node_type&& __nh) 27002: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 27002: 27002: template 27002: friend struct std::_Rb_tree_merge_helper; 27002: 27002: template 27002: void 27002: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Rb_tree_merge_helper; 27002: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: template 27002: void 27002: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Rb_tree_merge_helper; 27002: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 27002: { merge(__source); } 27002: # 719 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: pair 27002: try_emplace(const key_type& __k, _Args&&... __args) 27002: { 27002: iterator __i = lower_bound(__k); 27002: if (__i == end() || key_comp()(__k, (*__i).first)) 27002: { 27002: __i = emplace_hint(__i, std::piecewise_construct, 27002: std::forward_as_tuple(__k), 27002: std::forward_as_tuple( 27002: std::forward<_Args>(__args)...)); 27002: return {__i, true}; 27002: } 27002: return {__i, false}; 27002: } 27002: 27002: 27002: template 27002: pair 27002: try_emplace(key_type&& __k, _Args&&... __args) 27002: { 27002: iterator __i = lower_bound(__k); 27002: if (__i == end() || key_comp()(__k, (*__i).first)) 27002: { 27002: __i = emplace_hint(__i, std::piecewise_construct, 27002: std::forward_as_tuple(std::move(__k)), 27002: std::forward_as_tuple( 27002: std::forward<_Args>(__args)...)); 27002: return {__i, true}; 27002: } 27002: return {__i, false}; 27002: } 27002: # 779 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: iterator 27002: try_emplace(const_iterator __hint, const key_type& __k, 27002: _Args&&... __args) 27002: { 27002: iterator __i; 27002: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 27002: if (__true_hint.second) 27002: __i = emplace_hint(iterator(__true_hint.second), 27002: std::piecewise_construct, 27002: std::forward_as_tuple(__k), 27002: std::forward_as_tuple( 27002: std::forward<_Args>(__args)...)); 27002: else 27002: __i = iterator(__true_hint.first); 27002: return __i; 27002: } 27002: 27002: 27002: template 27002: iterator 27002: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 27002: { 27002: iterator __i; 27002: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 27002: if (__true_hint.second) 27002: __i = emplace_hint(iterator(__true_hint.second), 27002: std::piecewise_construct, 27002: std::forward_as_tuple(std::move(__k)), 27002: std::forward_as_tuple( 27002: std::forward<_Args>(__args)...)); 27002: else 27002: __i = iterator(__true_hint.first); 27002: return __i; 27002: } 27002: # 832 "/usr/include/c++/12/bits/stl_map.h" 3 27002: std::pair 27002: insert(const value_type& __x) 27002: { return _M_t._M_insert_unique(__x); } 27002: 27002: 27002: 27002: 27002: std::pair 27002: insert(value_type&& __x) 27002: { return _M_t._M_insert_unique(std::move(__x)); } 27002: 27002: template 27002: __enable_if_t::value, 27002: pair> 27002: insert(_Pair&& __x) 27002: { 27002: 27002: using _P2 = remove_reference_t<_Pair>; 27002: if constexpr (__is_pair<_P2>) 27002: if constexpr (is_same_v>) 27002: if constexpr (__usable_key) 27002: { 27002: const key_type& __k = __x.first; 27002: iterator __i = lower_bound(__k); 27002: if (__i == end() || key_comp()(__k, (*__i).first)) 27002: { 27002: __i = emplace_hint(__i, std::forward<_Pair>(__x)); 27002: return {__i, true}; 27002: } 27002: return {__i, false}; 27002: } 27002: 27002: return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); 27002: } 27002: # 877 "/usr/include/c++/12/bits/stl_map.h" 3 27002: void 27002: insert(std::initializer_list __list) 27002: { insert(__list.begin(), __list.end()); } 27002: # 906 "/usr/include/c++/12/bits/stl_map.h" 3 27002: iterator 27002: 27002: insert(const_iterator __position, const value_type& __x) 27002: 27002: 27002: 27002: { return _M_t._M_insert_unique_(__position, __x); } 27002: 27002: 27002: 27002: 27002: iterator 27002: insert(const_iterator __position, value_type&& __x) 27002: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 27002: 27002: template 27002: __enable_if_t::value, iterator> 27002: insert(const_iterator __position, _Pair&& __x) 27002: { 27002: return _M_t._M_emplace_hint_unique(__position, 27002: std::forward<_Pair>(__x)); 27002: } 27002: # 939 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: void 27002: insert(_InputIterator __first, _InputIterator __last) 27002: { _M_t._M_insert_range_unique(__first, __last); } 27002: # 964 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: pair 27002: insert_or_assign(const key_type& __k, _Obj&& __obj) 27002: { 27002: iterator __i = lower_bound(__k); 27002: if (__i == end() || key_comp()(__k, (*__i).first)) 27002: { 27002: __i = emplace_hint(__i, std::piecewise_construct, 27002: std::forward_as_tuple(__k), 27002: std::forward_as_tuple( 27002: std::forward<_Obj>(__obj))); 27002: return {__i, true}; 27002: } 27002: (*__i).second = std::forward<_Obj>(__obj); 27002: return {__i, false}; 27002: } 27002: 27002: 27002: template 27002: pair 27002: insert_or_assign(key_type&& __k, _Obj&& __obj) 27002: { 27002: iterator __i = lower_bound(__k); 27002: if (__i == end() || key_comp()(__k, (*__i).first)) 27002: { 27002: __i = emplace_hint(__i, std::piecewise_construct, 27002: std::forward_as_tuple(std::move(__k)), 27002: std::forward_as_tuple( 27002: std::forward<_Obj>(__obj))); 27002: return {__i, true}; 27002: } 27002: (*__i).second = std::forward<_Obj>(__obj); 27002: return {__i, false}; 27002: } 27002: # 1019 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: iterator 27002: insert_or_assign(const_iterator __hint, 27002: const key_type& __k, _Obj&& __obj) 27002: { 27002: iterator __i; 27002: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 27002: if (__true_hint.second) 27002: { 27002: return emplace_hint(iterator(__true_hint.second), 27002: std::piecewise_construct, 27002: std::forward_as_tuple(__k), 27002: std::forward_as_tuple( 27002: std::forward<_Obj>(__obj))); 27002: } 27002: __i = iterator(__true_hint.first); 27002: (*__i).second = std::forward<_Obj>(__obj); 27002: return __i; 27002: } 27002: 27002: 27002: template 27002: iterator 27002: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 27002: { 27002: iterator __i; 27002: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 27002: if (__true_hint.second) 27002: { 27002: return emplace_hint(iterator(__true_hint.second), 27002: std::piecewise_construct, 27002: std::forward_as_tuple(std::move(__k)), 27002: std::forward_as_tuple( 27002: std::forward<_Obj>(__obj))); 27002: } 27002: __i = iterator(__true_hint.first); 27002: (*__i).second = std::forward<_Obj>(__obj); 27002: return __i; 27002: } 27002: # 1078 "/usr/include/c++/12/bits/stl_map.h" 3 27002: iterator 27002: erase(const_iterator __position) 27002: { return _M_t.erase(__position); } 27002: 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iterator 27002: erase(iterator __position) 27002: { return _M_t.erase(__position); } 27002: # 1115 "/usr/include/c++/12/bits/stl_map.h" 3 27002: size_type 27002: erase(const key_type& __x) 27002: { return _M_t.erase(__x); } 27002: # 1135 "/usr/include/c++/12/bits/stl_map.h" 3 27002: iterator 27002: erase(const_iterator __first, const_iterator __last) 27002: { return _M_t.erase(__first, __last); } 27002: # 1169 "/usr/include/c++/12/bits/stl_map.h" 3 27002: void 27002: swap(map& __x) 27002: noexcept(__is_nothrow_swappable<_Compare>::value) 27002: { _M_t.swap(__x._M_t); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: clear() noexcept 27002: { _M_t.clear(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: key_compare 27002: key_comp() const 27002: { return _M_t.key_comp(); } 27002: 27002: 27002: 27002: 27002: 27002: value_compare 27002: value_comp() const 27002: { return value_compare(_M_t.key_comp()); } 27002: # 1216 "/usr/include/c++/12/bits/stl_map.h" 3 27002: iterator 27002: find(const key_type& __x) 27002: { return _M_t.find(__x); } 27002: 27002: 27002: template 27002: auto 27002: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 27002: { return _M_t._M_find_tr(__x); } 27002: # 1241 "/usr/include/c++/12/bits/stl_map.h" 3 27002: const_iterator 27002: find(const key_type& __x) const 27002: { return _M_t.find(__x); } 27002: 27002: 27002: template 27002: auto 27002: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 27002: { return _M_t._M_find_tr(__x); } 27002: # 1262 "/usr/include/c++/12/bits/stl_map.h" 3 27002: size_type 27002: count(const key_type& __x) const 27002: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 27002: 27002: 27002: template 27002: auto 27002: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 27002: { return _M_t._M_count_tr(__x); } 27002: # 1305 "/usr/include/c++/12/bits/stl_map.h" 3 27002: iterator 27002: lower_bound(const key_type& __x) 27002: { return _M_t.lower_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: lower_bound(const _Kt& __x) 27002: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 27002: { return iterator(_M_t._M_lower_bound_tr(__x)); } 27002: # 1330 "/usr/include/c++/12/bits/stl_map.h" 3 27002: const_iterator 27002: lower_bound(const key_type& __x) const 27002: { return _M_t.lower_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: lower_bound(const _Kt& __x) const 27002: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 27002: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 27002: # 1350 "/usr/include/c++/12/bits/stl_map.h" 3 27002: iterator 27002: upper_bound(const key_type& __x) 27002: { return _M_t.upper_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: upper_bound(const _Kt& __x) 27002: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 27002: { return iterator(_M_t._M_upper_bound_tr(__x)); } 27002: # 1370 "/usr/include/c++/12/bits/stl_map.h" 3 27002: const_iterator 27002: upper_bound(const key_type& __x) const 27002: { return _M_t.upper_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: upper_bound(const _Kt& __x) const 27002: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 27002: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 27002: # 1399 "/usr/include/c++/12/bits/stl_map.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) 27002: { return _M_t.equal_range(__x); } 27002: 27002: 27002: template 27002: auto 27002: equal_range(const _Kt& __x) 27002: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 27002: { return pair(_M_t._M_equal_range_tr(__x)); } 27002: # 1428 "/usr/include/c++/12/bits/stl_map.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) const 27002: { return _M_t.equal_range(__x); } 27002: 27002: 27002: template 27002: auto 27002: equal_range(const _Kt& __x) const 27002: -> decltype(pair( 27002: _M_t._M_equal_range_tr(__x))) 27002: { 27002: return pair( 27002: _M_t._M_equal_range_tr(__x)); 27002: } 27002: 27002: 27002: 27002: template 27002: friend bool 27002: operator==(const map<_K1, _T1, _C1, _A1>&, 27002: const map<_K1, _T1, _C1, _A1>&); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: friend bool 27002: operator<(const map<_K1, _T1, _C1, _A1>&, 27002: const map<_K1, _T1, _C1, _A1>&); 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: template>, 27002: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireNotAllocator<_Compare>, 27002: typename = _RequireAllocator<_Allocator>> 27002: map(_InputIterator, _InputIterator, 27002: _Compare = _Compare(), _Allocator = _Allocator()) 27002: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 27002: _Compare, _Allocator>; 27002: 27002: template, 27002: typename _Allocator = allocator>, 27002: typename = _RequireNotAllocator<_Compare>, 27002: typename = _RequireAllocator<_Allocator>> 27002: map(initializer_list>, 27002: _Compare = _Compare(), _Allocator = _Allocator()) 27002: -> map<_Key, _Tp, _Compare, _Allocator>; 27002: 27002: template , 27002: typename = _RequireAllocator<_Allocator>> 27002: map(_InputIterator, _InputIterator, _Allocator) 27002: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 27002: less<__iter_key_t<_InputIterator>>, _Allocator>; 27002: 27002: template> 27002: map(initializer_list>, _Allocator) 27002: -> map<_Key, _Tp, less<_Key>, _Allocator>; 27002: # 1509 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: inline bool 27002: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const map<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return __x._M_t == __y._M_t; } 27002: # 1547 "/usr/include/c++/12/bits/stl_map.h" 3 27002: template 27002: inline bool 27002: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const map<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return __x._M_t < __y._M_t; } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const map<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: inline bool 27002: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const map<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return __y < __x; } 27002: 27002: 27002: template 27002: inline bool 27002: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const map<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return !(__y < __x); } 27002: 27002: 27002: template 27002: inline bool 27002: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const map<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 27002: map<_Key, _Tp, _Compare, _Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct 27002: _Rb_tree_merge_helper, 27002: _Cmp2> 27002: { 27002: private: 27002: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; 27002: 27002: static auto& 27002: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 27002: { return __map._M_t; } 27002: 27002: static auto& 27002: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 27002: { return __map._M_t; } 27002: }; 27002: 27002: 27002: 27002: } 27002: # 62 "/usr/include/c++/12/map" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_multimap.h" 1 3 27002: # 64 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: class map; 27002: # 96 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: template , 27002: typename _Alloc = std::allocator > > 27002: class multimap 27002: { 27002: public: 27002: typedef _Key key_type; 27002: typedef _Tp mapped_type; 27002: typedef std::pair value_type; 27002: typedef _Compare key_compare; 27002: typedef _Alloc allocator_type; 27002: 27002: private: 27002: # 127 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: public: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: class value_compare 27002: : public std::binary_function 27002: { 27002: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 27002: protected: 27002: _Compare comp; 27002: 27002: value_compare(_Compare __c) 27002: : comp(__c) { } 27002: 27002: public: 27002: bool operator()(const value_type& __x, const value_type& __y) const 27002: { return comp(__x.first, __y.first); } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: private: 27002: 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind::other _Pair_alloc_type; 27002: 27002: typedef _Rb_tree, 27002: key_compare, _Pair_alloc_type> _Rep_type; 27002: 27002: _Rep_type _M_t; 27002: 27002: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 27002: 27002: public: 27002: 27002: 27002: typedef typename _Alloc_traits::pointer pointer; 27002: typedef typename _Alloc_traits::const_pointer const_pointer; 27002: typedef typename _Alloc_traits::reference reference; 27002: typedef typename _Alloc_traits::const_reference const_reference; 27002: typedef typename _Rep_type::iterator iterator; 27002: typedef typename _Rep_type::const_iterator const_iterator; 27002: typedef typename _Rep_type::size_type size_type; 27002: typedef typename _Rep_type::difference_type difference_type; 27002: typedef typename _Rep_type::reverse_iterator reverse_iterator; 27002: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 27002: 27002: 27002: using node_type = typename _Rep_type::node_type; 27002: # 185 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: multimap() = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: multimap(const _Compare& __comp, 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Pair_alloc_type(__a)) { } 27002: # 207 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: multimap(const multimap&) = default; 27002: # 216 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: multimap(multimap&&) = default; 27002: # 228 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: multimap(initializer_list __l, 27002: const _Compare& __comp = _Compare(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Pair_alloc_type(__a)) 27002: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 27002: 27002: 27002: explicit 27002: multimap(const allocator_type& __a) 27002: : _M_t(_Pair_alloc_type(__a)) { } 27002: 27002: 27002: multimap(const multimap& __m, 27002: const __type_identity_t& __a) 27002: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 27002: 27002: 27002: multimap(multimap&& __m, const __type_identity_t& __a) 27002: noexcept(is_nothrow_copy_constructible<_Compare>::value 27002: && _Alloc_traits::_S_always_equal()) 27002: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 27002: 27002: 27002: multimap(initializer_list __l, const allocator_type& __a) 27002: : _M_t(_Pair_alloc_type(__a)) 27002: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 27002: 27002: 27002: template 27002: multimap(_InputIterator __first, _InputIterator __last, 27002: const allocator_type& __a) 27002: : _M_t(_Pair_alloc_type(__a)) 27002: { _M_t._M_insert_range_equal(__first, __last); } 27002: # 272 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: template 27002: multimap(_InputIterator __first, _InputIterator __last) 27002: : _M_t() 27002: { _M_t._M_insert_range_equal(__first, __last); } 27002: # 288 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: template 27002: multimap(_InputIterator __first, _InputIterator __last, 27002: const _Compare& __comp, 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Pair_alloc_type(__a)) 27002: { _M_t._M_insert_range_equal(__first, __last); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ~multimap() = default; 27002: # 317 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: multimap& 27002: operator=(const multimap&) = default; 27002: 27002: 27002: multimap& 27002: operator=(multimap&&) = default; 27002: # 335 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: multimap& 27002: operator=(initializer_list __l) 27002: { 27002: _M_t._M_assign_equal(__l.begin(), __l.end()); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return allocator_type(_M_t.get_allocator()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: begin() noexcept 27002: { return _M_t.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: begin() const noexcept 27002: { return _M_t.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: end() noexcept 27002: { return _M_t.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: end() const noexcept 27002: { return _M_t.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: rbegin() noexcept 27002: { return _M_t.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: rbegin() const noexcept 27002: { return _M_t.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: rend() noexcept 27002: { return _M_t.rend(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: rend() const noexcept 27002: { return _M_t.rend(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: cbegin() const noexcept 27002: { return _M_t.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_iterator 27002: cend() const noexcept 27002: { return _M_t.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: crbegin() const noexcept 27002: { return _M_t.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const_reverse_iterator 27002: crend() const noexcept 27002: { return _M_t.rend(); } 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return _M_t.empty(); } 27002: 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_t.size(); } 27002: 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return _M_t.max_size(); } 27002: # 493 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: template 27002: iterator 27002: emplace(_Args&&... __args) 27002: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 27002: # 520 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: template 27002: iterator 27002: emplace_hint(const_iterator __pos, _Args&&... __args) 27002: { 27002: return _M_t._M_emplace_hint_equal(__pos, 27002: std::forward<_Args>(__args)...); 27002: } 27002: # 542 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: iterator 27002: insert(const value_type& __x) 27002: { return _M_t._M_insert_equal(__x); } 27002: 27002: 27002: 27002: 27002: iterator 27002: insert(value_type&& __x) 27002: { return _M_t._M_insert_equal(std::move(__x)); } 27002: 27002: template 27002: __enable_if_t::value, iterator> 27002: insert(_Pair&& __x) 27002: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 27002: # 581 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: iterator 27002: 27002: insert(const_iterator __position, const value_type& __x) 27002: 27002: 27002: 27002: { return _M_t._M_insert_equal_(__position, __x); } 27002: 27002: 27002: 27002: 27002: iterator 27002: insert(const_iterator __position, value_type&& __x) 27002: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 27002: 27002: template 27002: __enable_if_t::value, iterator> 27002: insert(const_iterator __position, _Pair&& __x) 27002: { 27002: return _M_t._M_emplace_hint_equal(__position, 27002: std::forward<_Pair>(__x)); 27002: } 27002: # 615 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: template 27002: void 27002: insert(_InputIterator __first, _InputIterator __last) 27002: { _M_t._M_insert_range_equal(__first, __last); } 27002: # 628 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: void 27002: insert(initializer_list __l) 27002: { this->insert(__l.begin(), __l.end()); } 27002: 27002: 27002: 27002: 27002: node_type 27002: extract(const_iterator __pos) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 27002: return _M_t.extract(__pos); 27002: } 27002: 27002: 27002: node_type 27002: extract(const key_type& __x) 27002: { return _M_t.extract(__x); } 27002: 27002: 27002: iterator 27002: insert(node_type&& __nh) 27002: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 27002: 27002: 27002: iterator 27002: insert(const_iterator __hint, node_type&& __nh) 27002: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 27002: 27002: template 27002: friend struct std::_Rb_tree_merge_helper; 27002: 27002: template 27002: void 27002: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Rb_tree_merge_helper; 27002: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: template 27002: void 27002: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Rb_tree_merge_helper; 27002: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 27002: { merge(__source); } 27002: # 705 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: iterator 27002: erase(const_iterator __position) 27002: { return _M_t.erase(__position); } 27002: 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iterator 27002: erase(iterator __position) 27002: { return _M_t.erase(__position); } 27002: # 742 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: size_type 27002: erase(const key_type& __x) 27002: { return _M_t.erase(__x); } 27002: # 763 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: iterator 27002: erase(const_iterator __first, const_iterator __last) 27002: { return _M_t.erase(__first, __last); } 27002: # 800 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: void 27002: swap(multimap& __x) 27002: noexcept(__is_nothrow_swappable<_Compare>::value) 27002: { _M_t.swap(__x._M_t); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: clear() noexcept 27002: { _M_t.clear(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: key_compare 27002: key_comp() const 27002: { return _M_t.key_comp(); } 27002: 27002: 27002: 27002: 27002: 27002: value_compare 27002: value_comp() const 27002: { return value_compare(_M_t.key_comp()); } 27002: # 846 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: iterator 27002: find(const key_type& __x) 27002: { return _M_t.find(__x); } 27002: 27002: 27002: template 27002: auto 27002: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 27002: { return _M_t._M_find_tr(__x); } 27002: # 870 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: const_iterator 27002: find(const key_type& __x) const 27002: { return _M_t.find(__x); } 27002: 27002: 27002: template 27002: auto 27002: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 27002: { return _M_t._M_find_tr(__x); } 27002: # 888 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: size_type 27002: count(const key_type& __x) const 27002: { return _M_t.count(__x); } 27002: 27002: 27002: template 27002: auto 27002: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 27002: { return _M_t._M_count_tr(__x); } 27002: # 931 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: iterator 27002: lower_bound(const key_type& __x) 27002: { return _M_t.lower_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: lower_bound(const _Kt& __x) 27002: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 27002: { return iterator(_M_t._M_lower_bound_tr(__x)); } 27002: # 956 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: const_iterator 27002: lower_bound(const key_type& __x) const 27002: { return _M_t.lower_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: lower_bound(const _Kt& __x) const 27002: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 27002: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 27002: # 976 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: iterator 27002: upper_bound(const key_type& __x) 27002: { return _M_t.upper_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: upper_bound(const _Kt& __x) 27002: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 27002: { return iterator(_M_t._M_upper_bound_tr(__x)); } 27002: # 996 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: const_iterator 27002: upper_bound(const key_type& __x) const 27002: { return _M_t.upper_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: upper_bound(const _Kt& __x) const 27002: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 27002: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 27002: # 1023 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) 27002: { return _M_t.equal_range(__x); } 27002: 27002: 27002: template 27002: auto 27002: equal_range(const _Kt& __x) 27002: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 27002: { return pair(_M_t._M_equal_range_tr(__x)); } 27002: # 1050 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) const 27002: { return _M_t.equal_range(__x); } 27002: 27002: 27002: template 27002: auto 27002: equal_range(const _Kt& __x) const 27002: -> decltype(pair( 27002: _M_t._M_equal_range_tr(__x))) 27002: { 27002: return pair( 27002: _M_t._M_equal_range_tr(__x)); 27002: } 27002: 27002: 27002: 27002: template 27002: friend bool 27002: operator==(const multimap<_K1, _T1, _C1, _A1>&, 27002: const multimap<_K1, _T1, _C1, _A1>&); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: friend bool 27002: operator<(const multimap<_K1, _T1, _C1, _A1>&, 27002: const multimap<_K1, _T1, _C1, _A1>&); 27002: 27002: }; 27002: 27002: 27002: 27002: template>, 27002: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireNotAllocator<_Compare>, 27002: typename = _RequireAllocator<_Allocator>> 27002: multimap(_InputIterator, _InputIterator, 27002: _Compare = _Compare(), _Allocator = _Allocator()) 27002: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 27002: _Compare, _Allocator>; 27002: 27002: template, 27002: typename _Allocator = allocator>, 27002: typename = _RequireNotAllocator<_Compare>, 27002: typename = _RequireAllocator<_Allocator>> 27002: multimap(initializer_list>, 27002: _Compare = _Compare(), _Allocator = _Allocator()) 27002: -> multimap<_Key, _Tp, _Compare, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: multimap(_InputIterator, _InputIterator, _Allocator) 27002: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 27002: less<__iter_key_t<_InputIterator>>, _Allocator>; 27002: 27002: template> 27002: multimap(initializer_list>, _Allocator) 27002: -> multimap<_Key, _Tp, less<_Key>, _Allocator>; 27002: # 1130 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: template 27002: inline bool 27002: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return __x._M_t == __y._M_t; } 27002: # 1168 "/usr/include/c++/12/bits/stl_multimap.h" 3 27002: template 27002: inline bool 27002: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return __x._M_t < __y._M_t; } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: inline bool 27002: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return __y < __x; } 27002: 27002: 27002: template 27002: inline bool 27002: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return !(__y < __x); } 27002: 27002: 27002: template 27002: inline bool 27002: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 27002: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 27002: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct 27002: _Rb_tree_merge_helper, 27002: _Cmp2> 27002: { 27002: private: 27002: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; 27002: 27002: static auto& 27002: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 27002: { return __map._M_t; } 27002: 27002: static auto& 27002: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 27002: { return __map._M_t; } 27002: }; 27002: 27002: 27002: 27002: } 27002: # 63 "/usr/include/c++/12/map" 2 3 27002: # 71 "/usr/include/c++/12/map" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace pmr 27002: { 27002: template class polymorphic_allocator; 27002: template> 27002: using map 27002: = std::map<_Key, _Tp, _Cmp, 27002: polymorphic_allocator>>; 27002: template> 27002: using multimap 27002: = std::multimap<_Key, _Tp, _Cmp, 27002: polymorphic_allocator>>; 27002: } 27002: 27002: } 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 2 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 27002: namespace rocksdb { 27002: # 30 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 27002: enum Tickers : uint32_t { 27002: 27002: 27002: 27002: 27002: BLOCK_CACHE_MISS = 0, 27002: 27002: 27002: 27002: 27002: BLOCK_CACHE_HIT, 27002: 27002: BLOCK_CACHE_ADD, 27002: 27002: BLOCK_CACHE_ADD_FAILURES, 27002: 27002: BLOCK_CACHE_INDEX_MISS, 27002: 27002: BLOCK_CACHE_INDEX_HIT, 27002: 27002: BLOCK_CACHE_INDEX_ADD, 27002: 27002: BLOCK_CACHE_INDEX_BYTES_INSERT, 27002: 27002: BLOCK_CACHE_INDEX_BYTES_EVICT, 27002: 27002: BLOCK_CACHE_FILTER_MISS, 27002: 27002: BLOCK_CACHE_FILTER_HIT, 27002: 27002: BLOCK_CACHE_FILTER_ADD, 27002: 27002: BLOCK_CACHE_FILTER_BYTES_INSERT, 27002: 27002: BLOCK_CACHE_FILTER_BYTES_EVICT, 27002: 27002: BLOCK_CACHE_DATA_MISS, 27002: 27002: BLOCK_CACHE_DATA_HIT, 27002: 27002: BLOCK_CACHE_DATA_ADD, 27002: 27002: BLOCK_CACHE_DATA_BYTES_INSERT, 27002: 27002: BLOCK_CACHE_BYTES_READ, 27002: 27002: BLOCK_CACHE_BYTES_WRITE, 27002: 27002: 27002: BLOOM_FILTER_USEFUL, 27002: 27002: BLOOM_FILTER_FULL_POSITIVE, 27002: 27002: 27002: BLOOM_FILTER_FULL_TRUE_POSITIVE, 27002: 27002: BLOOM_FILTER_MICROS, 27002: 27002: 27002: PERSISTENT_CACHE_HIT, 27002: 27002: PERSISTENT_CACHE_MISS, 27002: 27002: 27002: SIM_BLOCK_CACHE_HIT, 27002: 27002: SIM_BLOCK_CACHE_MISS, 27002: 27002: 27002: MEMTABLE_HIT, 27002: 27002: MEMTABLE_MISS, 27002: 27002: 27002: GET_HIT_L0, 27002: 27002: GET_HIT_L1, 27002: 27002: GET_HIT_L2_AND_UP, 27002: 27002: 27002: 27002: 27002: 27002: COMPACTION_KEY_DROP_NEWER_ENTRY, 27002: 27002: COMPACTION_KEY_DROP_OBSOLETE, 27002: COMPACTION_KEY_DROP_RANGE_DEL, 27002: COMPACTION_KEY_DROP_USER, 27002: COMPACTION_RANGE_DEL_DROP_OBSOLETE, 27002: 27002: COMPACTION_OPTIMIZED_DEL_DROP_OBSOLETE, 27002: 27002: COMPACTION_CANCELLED, 27002: 27002: 27002: NUMBER_KEYS_WRITTEN, 27002: 27002: NUMBER_KEYS_READ, 27002: 27002: NUMBER_KEYS_UPDATED, 27002: 27002: 27002: BYTES_WRITTEN, 27002: 27002: 27002: 27002: 27002: BYTES_READ, 27002: 27002: NUMBER_DB_SEEK, 27002: NUMBER_DB_NEXT, 27002: NUMBER_DB_PREV, 27002: 27002: NUMBER_DB_SEEK_FOUND, 27002: NUMBER_DB_NEXT_FOUND, 27002: NUMBER_DB_PREV_FOUND, 27002: 27002: 27002: ITER_BYTES_READ, 27002: NO_FILE_CLOSES, 27002: NO_FILE_OPENS, 27002: NO_FILE_ERRORS, 27002: 27002: STALL_L0_SLOWDOWN_MICROS, 27002: 27002: STALL_MEMTABLE_COMPACTION_MICROS, 27002: 27002: STALL_L0_NUM_FILES_MICROS, 27002: 27002: STALL_MICROS, 27002: 27002: 27002: DB_MUTEX_WAIT_MICROS, 27002: RATE_LIMIT_DELAY_MILLIS, 27002: 27002: NO_ITERATORS, 27002: 27002: 27002: NUMBER_MULTIGET_CALLS, 27002: NUMBER_MULTIGET_KEYS_READ, 27002: NUMBER_MULTIGET_BYTES_READ, 27002: 27002: 27002: 27002: NUMBER_FILTERED_DELETES, 27002: NUMBER_MERGE_FAILURES, 27002: 27002: 27002: 27002: 27002: BLOOM_FILTER_PREFIX_CHECKED, 27002: BLOOM_FILTER_PREFIX_USEFUL, 27002: 27002: 27002: 27002: NUMBER_OF_RESEEKS_IN_ITERATION, 27002: 27002: 27002: 27002: GET_UPDATES_SINCE_CALLS, 27002: BLOCK_CACHE_COMPRESSED_MISS, 27002: BLOCK_CACHE_COMPRESSED_HIT, 27002: 27002: BLOCK_CACHE_COMPRESSED_ADD, 27002: 27002: BLOCK_CACHE_COMPRESSED_ADD_FAILURES, 27002: WAL_FILE_SYNCED, 27002: WAL_FILE_BYTES, 27002: 27002: 27002: 27002: WRITE_DONE_BY_SELF, 27002: WRITE_DONE_BY_OTHER, 27002: WRITE_TIMEDOUT, 27002: WRITE_WITH_WAL, 27002: COMPACT_READ_BYTES, 27002: COMPACT_WRITE_BYTES, 27002: FLUSH_WRITE_BYTES, 27002: 27002: 27002: COMPACT_READ_BYTES_MARKED, 27002: COMPACT_READ_BYTES_PERIODIC, 27002: COMPACT_READ_BYTES_TTL, 27002: COMPACT_WRITE_BYTES_MARKED, 27002: COMPACT_WRITE_BYTES_PERIODIC, 27002: COMPACT_WRITE_BYTES_TTL, 27002: 27002: 27002: 27002: NUMBER_DIRECT_LOAD_TABLE_PROPERTIES, 27002: NUMBER_SUPERVERSION_ACQUIRES, 27002: NUMBER_SUPERVERSION_RELEASES, 27002: NUMBER_SUPERVERSION_CLEANUPS, 27002: 27002: 27002: NUMBER_BLOCK_COMPRESSED, 27002: NUMBER_BLOCK_DECOMPRESSED, 27002: 27002: NUMBER_BLOCK_NOT_COMPRESSED, 27002: MERGE_OPERATION_TOTAL_TIME, 27002: FILTER_OPERATION_TOTAL_TIME, 27002: 27002: 27002: ROW_CACHE_HIT, 27002: ROW_CACHE_MISS, 27002: 27002: 27002: 27002: 27002: 27002: 27002: READ_AMP_ESTIMATE_USEFUL_BYTES, 27002: READ_AMP_TOTAL_READ_BYTES, 27002: 27002: 27002: NUMBER_RATE_LIMITER_DRAINS, 27002: 27002: 27002: NUMBER_ITER_SKIP, 27002: 27002: 27002: 27002: BLOB_DB_NUM_PUT, 27002: 27002: BLOB_DB_NUM_WRITE, 27002: 27002: BLOB_DB_NUM_GET, 27002: 27002: BLOB_DB_NUM_MULTIGET, 27002: 27002: 27002: BLOB_DB_NUM_SEEK, 27002: 27002: BLOB_DB_NUM_NEXT, 27002: 27002: BLOB_DB_NUM_PREV, 27002: 27002: BLOB_DB_NUM_KEYS_WRITTEN, 27002: 27002: BLOB_DB_NUM_KEYS_READ, 27002: 27002: 27002: BLOB_DB_BYTES_WRITTEN, 27002: 27002: 27002: BLOB_DB_BYTES_READ, 27002: 27002: 27002: BLOB_DB_WRITE_INLINED, 27002: 27002: 27002: BLOB_DB_WRITE_INLINED_TTL, 27002: 27002: 27002: BLOB_DB_WRITE_BLOB, 27002: 27002: 27002: BLOB_DB_WRITE_BLOB_TTL, 27002: 27002: BLOB_DB_BLOB_FILE_BYTES_WRITTEN, 27002: 27002: BLOB_DB_BLOB_FILE_BYTES_READ, 27002: 27002: BLOB_DB_BLOB_FILE_SYNCED, 27002: 27002: 27002: BLOB_DB_BLOB_INDEX_EXPIRED_COUNT, 27002: 27002: 27002: BLOB_DB_BLOB_INDEX_EXPIRED_SIZE, 27002: 27002: 27002: BLOB_DB_BLOB_INDEX_EVICTED_COUNT, 27002: 27002: 27002: BLOB_DB_BLOB_INDEX_EVICTED_SIZE, 27002: 27002: 27002: BLOB_DB_GC_NUM_FILES, 27002: 27002: 27002: BLOB_DB_GC_NUM_NEW_FILES, 27002: 27002: BLOB_DB_GC_FAILURES, 27002: 27002: 27002: BLOB_DB_GC_NUM_KEYS_OVERWRITTEN, 27002: 27002: 27002: BLOB_DB_GC_NUM_KEYS_EXPIRED, 27002: 27002: BLOB_DB_GC_NUM_KEYS_RELOCATED, 27002: 27002: 27002: BLOB_DB_GC_BYTES_OVERWRITTEN, 27002: 27002: 27002: BLOB_DB_GC_BYTES_EXPIRED, 27002: 27002: BLOB_DB_GC_BYTES_RELOCATED, 27002: 27002: 27002: BLOB_DB_FIFO_NUM_FILES_EVICTED, 27002: 27002: 27002: BLOB_DB_FIFO_NUM_KEYS_EVICTED, 27002: 27002: 27002: BLOB_DB_FIFO_BYTES_EVICTED, 27002: 27002: 27002: 27002: 27002: TXN_PREPARE_MUTEX_OVERHEAD, 27002: 27002: TXN_OLD_COMMIT_MAP_MUTEX_OVERHEAD, 27002: 27002: TXN_DUPLICATE_KEY_OVERHEAD, 27002: 27002: TXN_SNAPSHOT_MUTEX_OVERHEAD, 27002: 27002: TXN_GET_TRY_AGAIN, 27002: 27002: 27002: 27002: 27002: NUMBER_MULTIGET_KEYS_FOUND, 27002: 27002: NO_ITERATOR_CREATED, 27002: NO_ITERATOR_DELETED, 27002: 27002: BLOCK_CACHE_COMPRESSION_DICT_MISS, 27002: BLOCK_CACHE_COMPRESSION_DICT_HIT, 27002: BLOCK_CACHE_COMPRESSION_DICT_ADD, 27002: BLOCK_CACHE_COMPRESSION_DICT_BYTES_INSERT, 27002: BLOCK_CACHE_COMPRESSION_DICT_BYTES_EVICT, 27002: 27002: 27002: 27002: BLOCK_CACHE_ADD_REDUNDANT, 27002: 27002: 27002: BLOCK_CACHE_INDEX_ADD_REDUNDANT, 27002: 27002: 27002: BLOCK_CACHE_FILTER_ADD_REDUNDANT, 27002: 27002: 27002: BLOCK_CACHE_DATA_ADD_REDUNDANT, 27002: 27002: 27002: 27002: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT, 27002: 27002: 27002: 27002: FILES_MARKED_TRASH, 27002: 27002: FILES_DELETED_IMMEDIATELY, 27002: 27002: 27002: 27002: ERROR_HANDLER_BG_ERROR_COUNT, 27002: ERROR_HANDLER_BG_IO_ERROR_COUNT, 27002: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT, 27002: ERROR_HANDLER_AUTORESUME_COUNT, 27002: ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT, 27002: ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT, 27002: 27002: 27002: 27002: MEMTABLE_PAYLOAD_BYTES_AT_FLUSH, 27002: 27002: MEMTABLE_GARBAGE_BYTES_AT_FLUSH, 27002: 27002: 27002: SECONDARY_CACHE_HITS, 27002: 27002: 27002: VERIFY_CHECKSUM_READ_BYTES, 27002: 27002: 27002: BACKUP_READ_BYTES, 27002: BACKUP_WRITE_BYTES, 27002: 27002: 27002: REMOTE_COMPACT_READ_BYTES, 27002: REMOTE_COMPACT_WRITE_BYTES, 27002: 27002: 27002: HOT_FILE_READ_BYTES, 27002: WARM_FILE_READ_BYTES, 27002: COLD_FILE_READ_BYTES, 27002: HOT_FILE_READ_COUNT, 27002: WARM_FILE_READ_COUNT, 27002: COLD_FILE_READ_COUNT, 27002: 27002: 27002: LAST_LEVEL_READ_BYTES, 27002: LAST_LEVEL_READ_COUNT, 27002: NON_LAST_LEVEL_READ_BYTES, 27002: NON_LAST_LEVEL_READ_COUNT, 27002: 27002: BLOCK_CHECKSUM_COMPUTE_COUNT, 27002: MULTIGET_COROUTINE_COUNT, 27002: 27002: 27002: 27002: BLOB_DB_CACHE_MISS, 27002: 27002: BLOB_DB_CACHE_HIT, 27002: 27002: BLOB_DB_CACHE_ADD, 27002: 27002: BLOB_DB_CACHE_ADD_FAILURES, 27002: 27002: BLOB_DB_CACHE_BYTES_READ, 27002: 27002: BLOB_DB_CACHE_BYTES_WRITE, 27002: 27002: 27002: READ_ASYNC_MICROS, 27002: 27002: ASYNC_READ_ERROR_COUNT, 27002: 27002: TICKER_ENUM_MAX 27002: }; 27002: 27002: 27002: 27002: extern const std::vector> TickersNameMap; 27002: # 471 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 27002: enum Histograms : uint32_t { 27002: DB_GET = 0, 27002: DB_WRITE, 27002: COMPACTION_TIME, 27002: COMPACTION_CPU_TIME, 27002: SUBCOMPACTION_SETUP_TIME, 27002: TABLE_SYNC_MICROS, 27002: COMPACTION_OUTFILE_SYNC_MICROS, 27002: WAL_FILE_SYNC_MICROS, 27002: MANIFEST_FILE_SYNC_MICROS, 27002: 27002: TABLE_OPEN_IO_MICROS, 27002: DB_MULTIGET, 27002: READ_BLOCK_COMPACTION_MICROS, 27002: READ_BLOCK_GET_MICROS, 27002: WRITE_RAW_BLOCK_MICROS, 27002: STALL_L0_SLOWDOWN_COUNT, 27002: STALL_MEMTABLE_COMPACTION_COUNT, 27002: STALL_L0_NUM_FILES_COUNT, 27002: HARD_RATE_LIMIT_DELAY_COUNT, 27002: SOFT_RATE_LIMIT_DELAY_COUNT, 27002: NUM_FILES_IN_SINGLE_COMPACTION, 27002: DB_SEEK, 27002: WRITE_STALL, 27002: SST_READ_MICROS, 27002: 27002: NUM_SUBCOMPACTIONS_SCHEDULED, 27002: 27002: BYTES_PER_READ, 27002: BYTES_PER_WRITE, 27002: BYTES_PER_MULTIGET, 27002: 27002: 27002: 27002: BYTES_COMPRESSED, 27002: BYTES_DECOMPRESSED, 27002: COMPRESSION_TIMES_NANOS, 27002: DECOMPRESSION_TIMES_NANOS, 27002: 27002: 27002: READ_NUM_MERGE_OPERANDS, 27002: 27002: 27002: 27002: BLOB_DB_KEY_SIZE, 27002: 27002: BLOB_DB_VALUE_SIZE, 27002: 27002: 27002: BLOB_DB_WRITE_MICROS, 27002: 27002: BLOB_DB_GET_MICROS, 27002: 27002: BLOB_DB_MULTIGET_MICROS, 27002: 27002: 27002: BLOB_DB_SEEK_MICROS, 27002: 27002: BLOB_DB_NEXT_MICROS, 27002: 27002: BLOB_DB_PREV_MICROS, 27002: 27002: BLOB_DB_BLOB_FILE_WRITE_MICROS, 27002: 27002: BLOB_DB_BLOB_FILE_READ_MICROS, 27002: 27002: BLOB_DB_BLOB_FILE_SYNC_MICROS, 27002: 27002: BLOB_DB_GC_MICROS, 27002: 27002: BLOB_DB_COMPRESSION_MICROS, 27002: 27002: BLOB_DB_DECOMPRESSION_MICROS, 27002: 27002: FLUSH_TIME, 27002: SST_BATCH_SIZE, 27002: 27002: 27002: 27002: NUM_INDEX_AND_FILTER_BLOCKS_READ_PER_LEVEL, 27002: 27002: 27002: NUM_DATA_BLOCKS_READ_PER_LEVEL, 27002: 27002: NUM_SST_READ_PER_LEVEL, 27002: 27002: 27002: ERROR_HANDLER_AUTORESUME_RETRY_COUNT, 27002: 27002: 27002: ASYNC_READ_BYTES, 27002: POLL_WAIT_MICROS, 27002: 27002: 27002: PREFETCHED_BYTES_DISCARDED, 27002: 27002: 27002: MULTIGET_IO_BATCH_SIZE, 27002: 27002: 27002: NUM_LEVEL_READ_PER_MULTIGET, 27002: 27002: 27002: ASYNC_PREFETCH_ABORT_MICROS, 27002: 27002: HISTOGRAM_ENUM_MAX, 27002: }; 27002: 27002: extern const std::vector> HistogramsNameMap; 27002: 27002: struct HistogramData { 27002: double median; 27002: double percentile95; 27002: double percentile99; 27002: double average; 27002: double standard_deviation; 27002: 27002: 27002: double max = 0.0; 27002: uint64_t count = 0; 27002: uint64_t sum = 0; 27002: double min = 0.0; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: enum StatsLevel : uint8_t { 27002: 27002: kDisableAll, 27002: 27002: kExceptTickers = kDisableAll, 27002: 27002: kExceptHistogramOrTimers, 27002: 27002: kExceptTimers, 27002: 27002: 27002: kExceptDetailedTimers, 27002: 27002: 27002: kExceptTimeForMutex, 27002: 27002: 27002: 27002: kAll, 27002: }; 27002: # 633 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 27002: class Statistics : public Customizable { 27002: public: 27002: ~Statistics() override {} 27002: static const char* Type() { return "Statistics"; } 27002: static Status CreateFromString(const ConfigOptions& opts, 27002: const std::string& value, 27002: std::shared_ptr* result); 27002: 27002: 27002: 27002: const char* Name() const override { return ""; } 27002: virtual uint64_t getTickerCount(uint32_t tickerType) const = 0; 27002: virtual void histogramData(uint32_t type, 27002: HistogramData* const data) const = 0; 27002: virtual std::string getHistogramString(uint32_t ) const { return ""; } 27002: virtual void recordTick(uint32_t tickerType, uint64_t count = 0) = 0; 27002: virtual void setTickerCount(uint32_t tickerType, uint64_t count) = 0; 27002: virtual uint64_t getAndResetTickerCount(uint32_t tickerType) = 0; 27002: virtual void reportTimeToHistogram(uint32_t histogramType, uint64_t time) { 27002: if (get_stats_level() <= StatsLevel::kExceptTimers) { 27002: return; 27002: } 27002: recordInHistogram(histogramType, time); 27002: } 27002: 27002: 27002: 27002: virtual void measureTime(uint32_t , uint64_t ) { 27002: 27002: 27002: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 3 4 27002: (static_cast ( 27002: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 27002: false 27002: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 27002: "false" 27002: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 3 4 27002: , "./include/rocksdb/statistics.h", 662, __extension__ __PRETTY_FUNCTION__)) 27002: # 662 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h" 27002: ; 27002: } 27002: virtual void recordInHistogram(uint32_t histogramType, uint64_t time) { 27002: 27002: 27002: 27002: 27002: measureTime(histogramType, time); 27002: } 27002: 27002: 27002: virtual Status Reset() { return Status::NotSupported("Not implemented"); } 27002: 27002: 27002: using Customizable::ToString; 27002: 27002: 27002: virtual std::string ToString() const { 27002: 27002: return std::string("ToString(): not implemented"); 27002: } 27002: 27002: virtual bool getTickerMap(std::map*) const { 27002: 27002: return false; 27002: } 27002: 27002: 27002: virtual bool HistEnabledForType(uint32_t type) const { 27002: return type < HISTOGRAM_ENUM_MAX; 27002: } 27002: void set_stats_level(StatsLevel sl) { 27002: stats_level_.store(sl, std::memory_order_relaxed); 27002: } 27002: StatsLevel get_stats_level() const { 27002: return stats_level_.load(std::memory_order_relaxed); 27002: } 27002: 27002: private: 27002: std::atomic stats_level_{kExceptDetailedTimers}; 27002: }; 27002: 27002: 27002: std::shared_ptr CreateDBStatistics(); 27002: 27002: } 27002: # 34 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class Cache; 27002: struct ConfigOptions; 27002: class SecondaryCache; 27002: 27002: extern const bool kDefaultToAdaptiveMutex; 27002: 27002: enum CacheMetadataChargePolicy { 27002: 27002: 27002: kDontChargeCacheMetadata, 27002: 27002: 27002: 27002: kFullChargeCacheMetadata 27002: }; 27002: const CacheMetadataChargePolicy kDefaultCacheMetadataChargePolicy = 27002: kFullChargeCacheMetadata; 27002: 27002: 27002: 27002: struct ShardedCacheOptions { 27002: 27002: 27002: 27002: size_t capacity = 0; 27002: 27002: 27002: 27002: 27002: 27002: int num_shard_bits = -1; 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool strict_capacity_limit = false; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: std::shared_ptr memory_allocator; 27002: 27002: 27002: CacheMetadataChargePolicy metadata_charge_policy = 27002: kDefaultCacheMetadataChargePolicy; 27002: 27002: ShardedCacheOptions() {} 27002: ShardedCacheOptions( 27002: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 27002: std::shared_ptr _memory_allocator = nullptr, 27002: CacheMetadataChargePolicy _metadata_charge_policy = 27002: kDefaultCacheMetadataChargePolicy) 27002: : capacity(_capacity), 27002: num_shard_bits(_num_shard_bits), 27002: strict_capacity_limit(_strict_capacity_limit), 27002: memory_allocator(std::move(_memory_allocator)), 27002: metadata_charge_policy(_metadata_charge_policy) {} 27002: }; 27002: 27002: struct LRUCacheOptions : public ShardedCacheOptions { 27002: # 127 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: double high_pri_pool_ratio = 0.5; 27002: double low_pri_pool_ratio = 0.0; 27002: 27002: 27002: 27002: 27002: 27002: bool use_adaptive_mutex = kDefaultToAdaptiveMutex; 27002: 27002: 27002: std::shared_ptr secondary_cache; 27002: 27002: LRUCacheOptions() {} 27002: LRUCacheOptions(size_t _capacity, int _num_shard_bits, 27002: bool _strict_capacity_limit, double _high_pri_pool_ratio, 27002: std::shared_ptr _memory_allocator = nullptr, 27002: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 27002: CacheMetadataChargePolicy _metadata_charge_policy = 27002: kDefaultCacheMetadataChargePolicy, 27002: double _low_pri_pool_ratio = 0.0) 27002: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 27002: std::move(_memory_allocator), 27002: _metadata_charge_policy), 27002: high_pri_pool_ratio(_high_pri_pool_ratio), 27002: low_pri_pool_ratio(_low_pri_pool_ratio), 27002: use_adaptive_mutex(_use_adaptive_mutex) {} 27002: }; 27002: # 163 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: extern std::shared_ptr NewLRUCache( 27002: size_t capacity, int num_shard_bits = -1, 27002: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 27002: std::shared_ptr memory_allocator = nullptr, 27002: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 27002: CacheMetadataChargePolicy metadata_charge_policy = 27002: kDefaultCacheMetadataChargePolicy, 27002: double low_pri_pool_ratio = 0.0); 27002: 27002: extern std::shared_ptr NewLRUCache(const LRUCacheOptions& cache_opts); 27002: 27002: 27002: 27002: 27002: 27002: struct CompressedSecondaryCacheOptions : LRUCacheOptions { 27002: 27002: CompressionType compression_type = CompressionType::kLZ4Compression; 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint32_t compress_format_version = 2; 27002: 27002: 27002: 27002: bool enable_custom_split_merge = false; 27002: 27002: CompressedSecondaryCacheOptions() {} 27002: CompressedSecondaryCacheOptions( 27002: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 27002: double _high_pri_pool_ratio, double _low_pri_pool_ratio = 0.0, 27002: std::shared_ptr _memory_allocator = nullptr, 27002: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 27002: CacheMetadataChargePolicy _metadata_charge_policy = 27002: kDefaultCacheMetadataChargePolicy, 27002: CompressionType _compression_type = CompressionType::kLZ4Compression, 27002: uint32_t _compress_format_version = 2, 27002: bool _enable_custom_split_merge = false) 27002: : LRUCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 27002: _high_pri_pool_ratio, std::move(_memory_allocator), 27002: _use_adaptive_mutex, _metadata_charge_policy, 27002: _low_pri_pool_ratio), 27002: compression_type(_compression_type), 27002: compress_format_version(_compress_format_version), 27002: enable_custom_split_merge(_enable_custom_split_merge) {} 27002: }; 27002: 27002: 27002: 27002: extern std::shared_ptr NewCompressedSecondaryCache( 27002: size_t capacity, int num_shard_bits = -1, 27002: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 27002: double low_pri_pool_ratio = 0.0, 27002: std::shared_ptr memory_allocator = nullptr, 27002: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 27002: CacheMetadataChargePolicy metadata_charge_policy = 27002: kDefaultCacheMetadataChargePolicy, 27002: CompressionType compression_type = CompressionType::kLZ4Compression, 27002: uint32_t compress_format_version = 2, 27002: bool enable_custom_split_merge = false); 27002: 27002: extern std::shared_ptr NewCompressedSecondaryCache( 27002: const CompressedSecondaryCacheOptions& opts); 27002: # 237 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: struct HyperClockCacheOptions : public ShardedCacheOptions { 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: size_t estimated_entry_charge; 27002: 27002: HyperClockCacheOptions( 27002: size_t _capacity, size_t _estimated_entry_charge, 27002: int _num_shard_bits = -1, bool _strict_capacity_limit = false, 27002: std::shared_ptr _memory_allocator = nullptr, 27002: CacheMetadataChargePolicy _metadata_charge_policy = 27002: kDefaultCacheMetadataChargePolicy) 27002: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 27002: std::move(_memory_allocator), 27002: _metadata_charge_policy), 27002: estimated_entry_charge(_estimated_entry_charge) {} 27002: 27002: 27002: std::shared_ptr MakeSharedCache() const; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: extern std::shared_ptr NewClockCache( 27002: size_t capacity, int num_shard_bits = -1, 27002: bool strict_capacity_limit = false, 27002: CacheMetadataChargePolicy metadata_charge_policy = 27002: kDefaultCacheMetadataChargePolicy); 27002: 27002: class Cache { 27002: public: 27002: # 306 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: enum class Priority { HIGH, LOW, BOTTOM }; 27002: # 335 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: using SizeCallback = size_t (*)(void* obj); 27002: 27002: 27002: 27002: 27002: 27002: using SaveToCallback = Status (*)(void* from_obj, size_t from_offset, 27002: size_t length, void* out); 27002: 27002: 27002: 27002: 27002: using DeleterFn = void (*)(const Slice& key, void* value); 27002: 27002: 27002: 27002: 27002: struct CacheItemHelper { 27002: SizeCallback size_cb; 27002: SaveToCallback saveto_cb; 27002: DeleterFn del_cb; 27002: 27002: CacheItemHelper() : size_cb(nullptr), saveto_cb(nullptr), del_cb(nullptr) {} 27002: CacheItemHelper(SizeCallback _size_cb, SaveToCallback _saveto_cb, 27002: DeleterFn _del_cb) 27002: : size_cb(_size_cb), saveto_cb(_saveto_cb), del_cb(_del_cb) {} 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: using CreateCallback = std::function; 27002: 27002: Cache(std::shared_ptr allocator = nullptr) 27002: : memory_allocator_(std::move(allocator)) {} 27002: 27002: Cache(const Cache&) = delete; 27002: Cache& operator=(const Cache&) = delete; 27002: # 387 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: static Status CreateFromString(const ConfigOptions& config_options, 27002: const std::string& value, 27002: std::shared_ptr* result); 27002: 27002: 27002: 27002: 27002: 27002: virtual ~Cache() {} 27002: 27002: 27002: struct Handle {}; 27002: 27002: 27002: virtual const char* Name() const = 0; 27002: # 420 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: virtual Status Insert(const Slice& key, void* value, size_t charge, 27002: DeleterFn deleter, Handle** handle = nullptr, 27002: Priority priority = Priority::LOW) = 0; 27002: # 431 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: virtual Handle* Lookup(const Slice& key, Statistics* stats = nullptr) = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual bool Ref(Handle* handle) = 0; 27002: # 450 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: virtual bool Release(Handle* handle, bool erase_if_last_ref = false) = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual void* Value(Handle* handle) = 0; 27002: 27002: 27002: 27002: 27002: virtual void Erase(const Slice& key) = 0; 27002: 27002: 27002: 27002: 27002: virtual uint64_t NewId() = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual void SetCapacity(size_t capacity) = 0; 27002: 27002: 27002: 27002: virtual void SetStrictCapacityLimit(bool strict_capacity_limit) = 0; 27002: 27002: 27002: 27002: virtual bool HasStrictCapacityLimit() const = 0; 27002: 27002: 27002: virtual size_t GetCapacity() const = 0; 27002: 27002: 27002: virtual size_t GetUsage() const = 0; 27002: 27002: 27002: 27002: 27002: virtual size_t GetOccupancyCount() const { return 27002: # 491 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 3 4 27002: (4294967295U) 27002: # 491 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: ; } 27002: 27002: 27002: 27002: 27002: virtual size_t GetTableAddressCount() const { return 0; } 27002: 27002: 27002: virtual size_t GetUsage(Handle* handle) const = 0; 27002: 27002: 27002: virtual size_t GetPinnedUsage() const = 0; 27002: 27002: 27002: virtual size_t GetCharge(Handle* handle) const = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual DeleterFn GetDeleter(Handle* handle) const = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void DisownData() { 27002: 27002: } 27002: 27002: struct ApplyToAllEntriesOptions { 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t average_entries_per_lock = 256; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: virtual void ApplyToAllEntries( 27002: const std::function& callback, 27002: const ApplyToAllEntriesOptions& opts) = 0; 27002: 27002: 27002: virtual void ApplyToAllCacheEntries(void (*callback)(void* value, 27002: size_t charge), 27002: bool ) { 27002: ApplyToAllEntries([callback](const Slice&, void* value, size_t charge, 27002: DeleterFn) { callback(value, charge); }, 27002: {}); 27002: } 27002: 27002: 27002: 27002: virtual void EraseUnRefEntries() = 0; 27002: 27002: virtual std::string GetPrintableOptions() const { return ""; } 27002: 27002: MemoryAllocator* memory_allocator() const { return memory_allocator_.get(); } 27002: # 599 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: virtual Status Insert(const Slice& key, void* value, 27002: const CacheItemHelper* helper, size_t charge, 27002: Handle** handle = nullptr, 27002: Priority priority = Priority::LOW) { 27002: if (!helper) { 27002: return Status::InvalidArgument(); 27002: } 27002: return Insert(key, value, charge, helper->del_cb, handle, priority); 27002: } 27002: # 649 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: virtual Handle* Lookup(const Slice& key, const CacheItemHelper* , 27002: const CreateCallback& , 27002: Priority , bool , 27002: Statistics* stats = nullptr) { 27002: return Lookup(key, stats); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual bool Release(Handle* handle, bool , 27002: bool erase_if_last_ref) { 27002: return Release(handle, erase_if_last_ref); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual bool IsReady(Handle* ) { return true; } 27002: # 679 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h" 27002: virtual void Wait(Handle* ) {} 27002: 27002: 27002: 27002: 27002: virtual void WaitAll(std::vector& ) {} 27002: 27002: private: 27002: std::shared_ptr memory_allocator_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: enum class CacheEntryRole { 27002: 27002: kDataBlock, 27002: 27002: kFilterBlock, 27002: 27002: kFilterMetaBlock, 27002: 27002: kDeprecatedFilterBlock, 27002: 27002: kIndexBlock, 27002: 27002: kOtherBlock, 27002: 27002: kWriteBuffer, 27002: 27002: 27002: kCompressionDictionaryBuildingBuffer, 27002: 27002: 27002: kFilterConstruction, 27002: 27002: kBlockBasedTableReader, 27002: 27002: kFileMetadata, 27002: 27002: kBlobValue, 27002: 27002: 27002: kBlobCache, 27002: 27002: 27002: kMisc, 27002: }; 27002: constexpr uint32_t kNumCacheEntryRoles = 27002: static_cast(CacheEntryRole::kMisc) + 1; 27002: 27002: 27002: const std::string& GetCacheEntryRoleName(CacheEntryRole); 27002: 27002: 27002: 27002: 27002: struct BlockCacheEntryStatsMapKeys { 27002: static const std::string& CacheId(); 27002: static const std::string& CacheCapacityBytes(); 27002: static const std::string& LastCollectionDurationSeconds(); 27002: static const std::string& LastCollectionAgeSeconds(); 27002: 27002: static std::string EntryCount(CacheEntryRole); 27002: static std::string UsedBytes(CacheEntryRole); 27002: static std::string UsedPercent(CacheEntryRole); 27002: }; 27002: 27002: } 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 1 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/stdlib.h" 1 3 27002: # 36 "/usr/include/c++/12/stdlib.h" 3 27002: # 1 "/usr/include/c++/12/cstdlib" 1 3 27002: # 39 "/usr/include/c++/12/cstdlib" 3 27002: 27002: # 40 "/usr/include/c++/12/cstdlib" 3 27002: # 37 "/usr/include/c++/12/stdlib.h" 2 3 27002: 27002: 27002: # 38 "/usr/include/c++/12/stdlib.h" 3 27002: using std::abort; 27002: using std::atexit; 27002: using std::exit; 27002: 27002: 27002: using std::at_quick_exit; 27002: 27002: 27002: using std::quick_exit; 27002: 27002: 27002: 27002: 27002: using std::div_t; 27002: using std::ldiv_t; 27002: 27002: using std::abs; 27002: using std::atof; 27002: using std::atoi; 27002: using std::atol; 27002: using std::bsearch; 27002: using std::calloc; 27002: using std::div; 27002: using std::free; 27002: using std::getenv; 27002: using std::labs; 27002: using std::ldiv; 27002: using std::malloc; 27002: 27002: using std::mblen; 27002: using std::mbstowcs; 27002: using std::mbtowc; 27002: 27002: using std::qsort; 27002: using std::rand; 27002: using std::realloc; 27002: using std::srand; 27002: using std::strtod; 27002: using std::strtol; 27002: using std::strtoul; 27002: using std::system; 27002: 27002: using std::wcstombs; 27002: using std::wctomb; 27002: # 40 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 2 27002: 27002: 27002: # 1 "/usr/include/c++/12/stdexcept" 1 3 27002: # 36 "/usr/include/c++/12/stdexcept" 3 27002: 27002: # 37 "/usr/include/c++/12/stdexcept" 3 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: struct __cow_string 27002: { 27002: union { 27002: const char* _M_p; 27002: char _M_bytes[sizeof(const char*)]; 27002: }; 27002: 27002: __cow_string(); 27002: __cow_string(const std::string&); 27002: __cow_string(const char*, size_t); 27002: __cow_string(const __cow_string&) noexcept; 27002: __cow_string& operator=(const __cow_string&) noexcept; 27002: ~__cow_string(); 27002: 27002: __cow_string(__cow_string&&) noexcept; 27002: __cow_string& operator=(__cow_string&&) noexcept; 27002: 27002: }; 27002: 27002: typedef basic_string __sso_string; 27002: # 113 "/usr/include/c++/12/stdexcept" 3 27002: class logic_error : public exception 27002: { 27002: __cow_string _M_msg; 27002: 27002: public: 27002: 27002: explicit 27002: logic_error(const string& __arg) ; 27002: 27002: 27002: explicit 27002: logic_error(const char*) ; 27002: 27002: logic_error(logic_error&&) noexcept; 27002: logic_error& operator=(logic_error&&) noexcept; 27002: 27002: 27002: 27002: logic_error(const logic_error&) noexcept; 27002: logic_error& operator=(const logic_error&) noexcept; 27002: 27002: 27002: 27002: 27002: 27002: virtual ~logic_error() noexcept; 27002: 27002: 27002: 27002: virtual const char* 27002: what() const noexcept; 27002: 27002: 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: 27002: class domain_error : public logic_error 27002: { 27002: public: 27002: explicit domain_error(const string& __arg) ; 27002: 27002: explicit domain_error(const char*) ; 27002: domain_error(const domain_error&) = default; 27002: domain_error& operator=(const domain_error&) = default; 27002: domain_error(domain_error&&) = default; 27002: domain_error& operator=(domain_error&&) = default; 27002: 27002: virtual ~domain_error() noexcept; 27002: }; 27002: 27002: 27002: class invalid_argument : public logic_error 27002: { 27002: public: 27002: explicit invalid_argument(const string& __arg) ; 27002: 27002: explicit invalid_argument(const char*) ; 27002: invalid_argument(const invalid_argument&) = default; 27002: invalid_argument& operator=(const invalid_argument&) = default; 27002: invalid_argument(invalid_argument&&) = default; 27002: invalid_argument& operator=(invalid_argument&&) = default; 27002: 27002: virtual ~invalid_argument() noexcept; 27002: }; 27002: 27002: 27002: 27002: class length_error : public logic_error 27002: { 27002: public: 27002: explicit length_error(const string& __arg) ; 27002: 27002: explicit length_error(const char*) ; 27002: length_error(const length_error&) = default; 27002: length_error& operator=(const length_error&) = default; 27002: length_error(length_error&&) = default; 27002: length_error& operator=(length_error&&) = default; 27002: 27002: virtual ~length_error() noexcept; 27002: }; 27002: 27002: 27002: 27002: class out_of_range : public logic_error 27002: { 27002: public: 27002: explicit out_of_range(const string& __arg) ; 27002: 27002: explicit out_of_range(const char*) ; 27002: out_of_range(const out_of_range&) = default; 27002: out_of_range& operator=(const out_of_range&) = default; 27002: out_of_range(out_of_range&&) = default; 27002: out_of_range& operator=(out_of_range&&) = default; 27002: 27002: virtual ~out_of_range() noexcept; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class runtime_error : public exception 27002: { 27002: __cow_string _M_msg; 27002: 27002: public: 27002: 27002: explicit 27002: runtime_error(const string& __arg) ; 27002: 27002: 27002: explicit 27002: runtime_error(const char*) ; 27002: 27002: runtime_error(runtime_error&&) noexcept; 27002: runtime_error& operator=(runtime_error&&) noexcept; 27002: 27002: 27002: 27002: runtime_error(const runtime_error&) noexcept; 27002: runtime_error& operator=(const runtime_error&) noexcept; 27002: 27002: 27002: 27002: 27002: 27002: virtual ~runtime_error() noexcept; 27002: 27002: 27002: 27002: virtual const char* 27002: what() const noexcept; 27002: 27002: 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: class range_error : public runtime_error 27002: { 27002: public: 27002: explicit range_error(const string& __arg) ; 27002: 27002: explicit range_error(const char*) ; 27002: range_error(const range_error&) = default; 27002: range_error& operator=(const range_error&) = default; 27002: range_error(range_error&&) = default; 27002: range_error& operator=(range_error&&) = default; 27002: 27002: virtual ~range_error() noexcept; 27002: }; 27002: 27002: 27002: class overflow_error : public runtime_error 27002: { 27002: public: 27002: explicit overflow_error(const string& __arg) ; 27002: 27002: explicit overflow_error(const char*) ; 27002: overflow_error(const overflow_error&) = default; 27002: overflow_error& operator=(const overflow_error&) = default; 27002: overflow_error(overflow_error&&) = default; 27002: overflow_error& operator=(overflow_error&&) = default; 27002: 27002: virtual ~overflow_error() noexcept; 27002: }; 27002: 27002: 27002: class underflow_error : public runtime_error 27002: { 27002: public: 27002: explicit underflow_error(const string& __arg) ; 27002: 27002: explicit underflow_error(const char*) ; 27002: underflow_error(const underflow_error&) = default; 27002: underflow_error& operator=(const underflow_error&) = default; 27002: underflow_error(underflow_error&&) = default; 27002: underflow_error& operator=(underflow_error&&) = default; 27002: 27002: virtual ~underflow_error() noexcept; 27002: }; 27002: 27002: 27002: 27002: 27002: } 27002: # 43 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 2 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 48 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 27002: namespace rocksdb { 27002: 27002: class Arena; 27002: class Allocator; 27002: class LookupKey; 27002: class SliceTransform; 27002: class Logger; 27002: struct DBOptions; 27002: 27002: using KeyHandle = void*; 27002: 27002: extern Slice GetLengthPrefixedSlice(const char* data); 27002: 27002: class MemTableRep { 27002: public: 27002: 27002: 27002: class KeyComparator { 27002: public: 27002: using DecodedType = rocksdb::Slice; 27002: 27002: virtual DecodedType decode_key(const char* key) const { 27002: 27002: 27002: return GetLengthPrefixedSlice(key); 27002: } 27002: 27002: 27002: 27002: virtual int operator()(const char* prefix_len_key1, 27002: const char* prefix_len_key2) const = 0; 27002: 27002: virtual int operator()(const char* prefix_len_key, 27002: const Slice& key) const = 0; 27002: 27002: virtual ~KeyComparator() {} 27002: }; 27002: 27002: explicit MemTableRep(Allocator* allocator) : allocator_(allocator) {} 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual KeyHandle Allocate(const size_t len, char** buf); 27002: 27002: 27002: 27002: 27002: 27002: virtual void Insert(KeyHandle handle) = 0; 27002: 27002: 27002: 27002: 27002: virtual bool InsertKey(KeyHandle handle) { 27002: Insert(handle); 27002: return true; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void InsertWithHint(KeyHandle handle, void** ) { 27002: 27002: Insert(handle); 27002: } 27002: 27002: 27002: 27002: 27002: virtual bool InsertKeyWithHint(KeyHandle handle, void** hint) { 27002: InsertWithHint(handle, hint); 27002: return true; 27002: } 27002: # 137 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 27002: virtual void InsertWithHintConcurrently(KeyHandle handle, void** ) { 27002: 27002: InsertConcurrently(handle); 27002: } 27002: 27002: 27002: 27002: 27002: virtual bool InsertKeyWithHintConcurrently(KeyHandle handle, void** hint) { 27002: InsertWithHintConcurrently(handle, hint); 27002: return true; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void InsertConcurrently(KeyHandle handle); 27002: 27002: 27002: 27002: 27002: virtual bool InsertKeyConcurrently(KeyHandle handle) { 27002: InsertConcurrently(handle); 27002: return true; 27002: } 27002: 27002: 27002: virtual bool Contains(const char* key) const = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual void MarkReadOnly() {} 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void MarkFlushed() {} 27002: # 194 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 27002: virtual void Get(const LookupKey& k, void* callback_args, 27002: bool (*callback_func)(void* arg, const char* entry)); 27002: 27002: virtual uint64_t ApproximateNumEntries(const Slice& , 27002: const Slice& ) { 27002: return 0; 27002: } 27002: 27002: 27002: 27002: virtual void UniqueRandomSample(const uint64_t num_entries, 27002: const uint64_t target_sample_size, 27002: std::unordered_set* entries) { 27002: (void)num_entries; 27002: (void)target_sample_size; 27002: (void)entries; 27002: 27002: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 3 4 27002: (static_cast ( 27002: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 27002: false 27002: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 27002: "false" 27002: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 3 4 27002: , "./include/rocksdb/memtablerep.h", 210, __extension__ __PRETTY_FUNCTION__)) 27002: # 210 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 27002: ; 27002: } 27002: 27002: 27002: 27002: virtual size_t ApproximateMemoryUsage() = 0; 27002: 27002: virtual ~MemTableRep() {} 27002: 27002: 27002: class Iterator { 27002: public: 27002: 27002: 27002: 27002: virtual ~Iterator() {} 27002: 27002: 27002: virtual bool Valid() const = 0; 27002: 27002: 27002: 27002: virtual const char* key() const = 0; 27002: 27002: 27002: 27002: virtual void Next() = 0; 27002: 27002: 27002: 27002: virtual void Prev() = 0; 27002: 27002: 27002: virtual void Seek(const Slice& internal_key, const char* memtable_key) = 0; 27002: 27002: 27002: virtual void SeekForPrev(const Slice& internal_key, 27002: const char* memtable_key) = 0; 27002: 27002: virtual void RandomSeek() {} 27002: 27002: 27002: 27002: virtual void SeekToFirst() = 0; 27002: 27002: 27002: 27002: virtual void SeekToLast() = 0; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Iterator* GetIterator(Arena* arena = nullptr) = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Iterator* GetDynamicPrefixIterator(Arena* arena = nullptr) { 27002: return GetIterator(arena); 27002: } 27002: 27002: 27002: 27002: virtual bool IsMergeOperatorSupported() const { return true; } 27002: 27002: 27002: 27002: virtual bool IsSnapshotSupported() const { return true; } 27002: 27002: protected: 27002: 27002: 27002: virtual Slice UserKey(const char* key) const; 27002: 27002: Allocator* allocator_; 27002: }; 27002: 27002: 27002: 27002: class MemTableRepFactory : public Customizable { 27002: public: 27002: ~MemTableRepFactory() override {} 27002: 27002: static const char* Type() { return "MemTableRepFactory"; } 27002: static Status CreateFromString(const ConfigOptions& config_options, 27002: const std::string& id, 27002: std::unique_ptr* factory); 27002: static Status CreateFromString(const ConfigOptions& config_options, 27002: const std::string& id, 27002: std::shared_ptr* factory); 27002: 27002: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 27002: Allocator*, const SliceTransform*, 27002: Logger* logger) = 0; 27002: virtual MemTableRep* CreateMemTableRep( 27002: const MemTableRep::KeyComparator& key_cmp, Allocator* allocator, 27002: const SliceTransform* slice_transform, Logger* logger, 27002: uint32_t ) { 27002: return CreateMemTableRep(key_cmp, allocator, slice_transform, logger); 27002: } 27002: 27002: const char* Name() const override = 0; 27002: 27002: 27002: 27002: virtual bool IsInsertConcurrentlySupported() const { return false; } 27002: 27002: 27002: 27002: 27002: 27002: virtual bool CanHandleDuplicatedKey() const { return false; } 27002: }; 27002: # 337 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 27002: class SkipListFactory : public MemTableRepFactory { 27002: public: 27002: explicit SkipListFactory(size_t lookahead = 0); 27002: 27002: 27002: static const char* kClassName() { return "SkipListFactory"; } 27002: static const char* kNickName() { return "skip_list"; } 27002: virtual const char* Name() const override { return kClassName(); } 27002: virtual const char* NickName() const override { return kNickName(); } 27002: std::string GetId() const override; 27002: 27002: 27002: using MemTableRepFactory::CreateMemTableRep; 27002: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 27002: Allocator*, const SliceTransform*, 27002: Logger* logger) override; 27002: 27002: bool IsInsertConcurrentlySupported() const override { return true; } 27002: 27002: bool CanHandleDuplicatedKey() const override { return true; } 27002: 27002: private: 27002: size_t lookahead_; 27002: }; 27002: # 371 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 27002: class VectorRepFactory : public MemTableRepFactory { 27002: size_t count_; 27002: 27002: public: 27002: explicit VectorRepFactory(size_t count = 0); 27002: 27002: 27002: static const char* kClassName() { return "VectorRepFactory"; } 27002: static const char* kNickName() { return "vector"; } 27002: const char* Name() const override { return kClassName(); } 27002: const char* NickName() const override { return kNickName(); } 27002: 27002: 27002: using MemTableRepFactory::CreateMemTableRep; 27002: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 27002: Allocator*, const SliceTransform*, 27002: Logger* logger) override; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern MemTableRepFactory* NewHashSkipListRepFactory( 27002: size_t bucket_count = 1000000, int32_t skiplist_height = 4, 27002: int32_t skiplist_branching_factor = 4); 27002: # 416 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/memtablerep.h" 27002: extern MemTableRepFactory* NewHashLinkListRepFactory( 27002: size_t bucket_count = 50000, size_t huge_page_tlb_size = 0, 27002: int bucket_entries_logging_threshold = 4096, 27002: bool if_log_bucket_dist_when_flash = true, 27002: uint32_t threshold_use_skiplist = 256); 27002: 27002: 27002: } 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/climits" 1 3 27002: # 39 "/usr/include/c++/12/climits" 3 27002: 27002: # 40 "/usr/include/c++/12/climits" 3 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 1 3 4 27002: # 34 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/syslimits.h" 1 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 1 3 4 27002: # 203 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 3 4 27002: # 1 "/usr/include/limits.h" 1 3 4 27002: # 26 "/usr/include/limits.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 27002: # 27 "/usr/include/limits.h" 2 3 4 27002: # 195 "/usr/include/limits.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 1 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 27002: # 28 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 27002: # 161 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 1 3 4 27002: # 38 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 3 4 27002: # 1 "/usr/include/linux/limits.h" 1 3 4 27002: # 39 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 2 3 4 27002: # 162 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 27002: # 196 "/usr/include/limits.h" 2 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix2_lim.h" 1 3 4 27002: # 200 "/usr/include/limits.h" 2 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 1 3 4 27002: # 64 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio_lim.h" 1 3 4 27002: # 65 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 2 3 4 27002: # 204 "/usr/include/limits.h" 2 3 4 27002: # 204 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 2 3 4 27002: # 8 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/syslimits.h" 2 3 4 27002: # 35 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 2 3 4 27002: # 43 "/usr/include/c++/12/climits" 2 3 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 2 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: enum CompactionStopStyle { 27002: kCompactionStopStyleSimilarSize, 27002: kCompactionStopStyleTotalSize 27002: }; 27002: 27002: class CompactionOptionsUniversal { 27002: public: 27002: 27002: 27002: 27002: unsigned int size_ratio; 27002: 27002: 27002: unsigned int min_merge_width; 27002: 27002: 27002: unsigned int max_merge_width; 27002: # 48 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 27002: unsigned int max_size_amplification_percent; 27002: # 66 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 27002: int compression_size_percent; 27002: 27002: 27002: 27002: CompactionStopStyle stop_style; 27002: 27002: 27002: 27002: 27002: bool allow_trivial_move; 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool incremental; 27002: 27002: 27002: CompactionOptionsUniversal() 27002: : size_ratio(1), 27002: min_merge_width(2), 27002: max_merge_width( 27002: # 88 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 3 4 27002: (0x7fffffff * 2U + 1U) 27002: # 88 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/universal_compaction.h" 27002: ), 27002: max_size_amplification_percent(200), 27002: compression_size_percent(-1), 27002: stop_style(kCompactionStopStyleTotalSize), 27002: allow_trivial_move(false), 27002: incremental(false) {} 27002: }; 27002: 27002: } 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: class SliceTransform; 27002: class TablePropertiesCollectorFactory; 27002: class TableFactory; 27002: struct Options; 27002: 27002: enum CompactionStyle : char { 27002: 27002: kCompactionStyleLevel = 0x0, 27002: 27002: 27002: kCompactionStyleUniversal = 0x1, 27002: 27002: 27002: kCompactionStyleFIFO = 0x2, 27002: 27002: 27002: 27002: kCompactionStyleNone = 0x3, 27002: }; 27002: 27002: 27002: 27002: 27002: enum CompactionPri : char { 27002: 27002: kByCompensatedSize = 0x0, 27002: 27002: 27002: kOldestLargestSeqFirst = 0x1, 27002: 27002: 27002: 27002: kOldestSmallestSeqFirst = 0x2, 27002: 27002: 27002: 27002: kMinOverlappingRatio = 0x3, 27002: 27002: 27002: 27002: 27002: kRoundRobin = 0x4, 27002: }; 27002: 27002: struct CompactionOptionsFIFO { 27002: 27002: 27002: 27002: uint64_t max_table_files_size; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool allow_compaction = false; 27002: 27002: 27002: 27002: uint64_t age_for_warm = 0; 27002: 27002: CompactionOptionsFIFO() : max_table_files_size(1 * 1024 * 1024 * 1024) {} 27002: CompactionOptionsFIFO(uint64_t _max_table_files_size, bool _allow_compaction) 27002: : max_table_files_size(_max_table_files_size), 27002: allow_compaction(_allow_compaction) {} 27002: }; 27002: 27002: 27002: struct CompressionOptions { 27002: 27002: 27002: 27002: 27002: 27002: 27002: const static int kDefaultCompressionLevel = 32767; 27002: 27002: int window_bits; 27002: int level; 27002: int strategy; 27002: # 125 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint32_t max_dict_bytes; 27002: # 134 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint32_t zstd_max_train_bytes; 27002: # 149 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint32_t parallel_threads; 27002: # 160 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool enabled; 27002: # 181 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint64_t max_dict_buffer_bytes; 27002: # 195 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool use_zstd_dict_trainer; 27002: 27002: CompressionOptions() 27002: : window_bits(-14), 27002: level(kDefaultCompressionLevel), 27002: strategy(0), 27002: max_dict_bytes(0), 27002: zstd_max_train_bytes(0), 27002: parallel_threads(1), 27002: enabled(false), 27002: max_dict_buffer_bytes(0), 27002: use_zstd_dict_trainer(true) {} 27002: CompressionOptions(int wbits, int _lev, int _strategy, 27002: uint32_t _max_dict_bytes, uint32_t _zstd_max_train_bytes, 27002: uint32_t _parallel_threads, bool _enabled, 27002: uint64_t _max_dict_buffer_bytes, 27002: bool _use_zstd_dict_trainer) 27002: : window_bits(wbits), 27002: level(_lev), 27002: strategy(_strategy), 27002: max_dict_bytes(_max_dict_bytes), 27002: zstd_max_train_bytes(_zstd_max_train_bytes), 27002: parallel_threads(_parallel_threads), 27002: enabled(_enabled), 27002: max_dict_buffer_bytes(_max_dict_buffer_bytes), 27002: use_zstd_dict_trainer(_use_zstd_dict_trainer) {} 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: enum class Temperature : uint8_t { 27002: kUnknown = 0, 27002: kHot = 0x04, 27002: kWarm = 0x08, 27002: kCold = 0x0C, 27002: kLastTemperature, 27002: }; 27002: 27002: 27002: 27002: 27002: enum class CacheTier : uint8_t { 27002: kVolatileTier = 0, 27002: kNonVolatileBlockTier = 0x01, 27002: }; 27002: 27002: enum UpdateStatus { 27002: UPDATE_FAILED = 0, 27002: UPDATED_INPLACE = 1, 27002: UPDATED = 2, 27002: }; 27002: 27002: enum class PrepopulateBlobCache : uint8_t { 27002: kDisable = 0x0, 27002: kFlushOnly = 0x1, 27002: }; 27002: 27002: struct AdvancedColumnFamilyOptions { 27002: # 266 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: int max_write_buffer_number = 2; 27002: # 278 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: int min_write_buffer_number_to_merge = 1; 27002: # 287 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: int max_write_buffer_number_to_maintain = 0; 27002: # 334 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: int64_t max_write_buffer_size_to_maintain = 0; 27002: # 348 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool inplace_update_support = false; 27002: 27002: 27002: 27002: 27002: 27002: size_t inplace_update_num_locks = 10000; 27002: # 371 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: double experimental_mempurge_threshold = 0.0; 27002: # 414 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: UpdateStatus (*inplace_callback)(char* existing_value, 27002: uint32_t* existing_value_size, 27002: Slice delta_value, 27002: std::string* merged_value) = nullptr; 27002: # 433 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: double memtable_prefix_bloom_size_ratio = 0.0; 27002: # 442 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool memtable_whole_key_filtering = false; 27002: # 454 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: size_t memtable_huge_page_size = 0; 27002: # 475 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: std::shared_ptr 27002: memtable_insert_with_hint_prefix_extractor = nullptr; 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint32_t bloom_locality = 0; 27002: # 501 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: size_t arena_block_size = 0; 27002: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: std::vector compression_per_level; 27002: 27002: 27002: int num_levels = 7; 27002: # 544 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: int level0_slowdown_writes_trigger = 20; 27002: 27002: 27002: 27002: 27002: 27002: 27002: int level0_stop_writes_trigger = 36; 27002: # 565 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint64_t target_file_size_base = 64 * 1048576; 27002: 27002: 27002: 27002: 27002: 27002: int target_file_size_multiplier = 1; 27002: # 652 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool level_compaction_dynamic_level_bytes = false; 27002: # 661 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool level_compaction_dynamic_file_size = true; 27002: 27002: 27002: 27002: 27002: double max_bytes_for_level_multiplier = 10; 27002: # 675 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: std::vector max_bytes_for_level_multiplier_additional = 27002: std::vector(num_levels, 1); 27002: # 685 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint64_t max_compaction_bytes = 0; 27002: # 696 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool ignore_max_compaction_bytes_for_input = true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t soft_pending_compaction_bytes_limit = 64 * 1073741824ull; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t hard_pending_compaction_bytes_limit = 256 * 1073741824ull; 27002: 27002: 27002: CompactionStyle compaction_style = kCompactionStyleLevel; 27002: 27002: 27002: 27002: 27002: CompactionPri compaction_pri = kMinOverlappingRatio; 27002: 27002: 27002: 27002: 27002: 27002: 27002: CompactionOptionsUniversal compaction_options_universal; 27002: 27002: 27002: 27002: 27002: 27002: 27002: CompactionOptionsFIFO compaction_options_fifo; 27002: # 744 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint64_t max_sequential_skip_in_iterations = 8; 27002: 27002: 27002: 27002: 27002: std::shared_ptr memtable_factory = 27002: std::shared_ptr(new SkipListFactory); 27002: # 769 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: using TablePropertiesCollectorFactories = 27002: std::vector>; 27002: TablePropertiesCollectorFactories table_properties_collector_factories; 27002: # 784 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: size_t max_successive_merges = 0; 27002: # 800 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool optimize_filters_for_hits = false; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool check_flush_compaction_key_order = true; 27002: # 817 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool paranoid_file_checks = false; 27002: # 827 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool force_consistency_checks = true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool report_bg_io_stats = false; 27002: # 856 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint64_t ttl = 0xfffffffffffffffe; 27002: # 888 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint64_t periodic_compaction_seconds = 0xfffffffffffffffe; 27002: 27002: 27002: 27002: 27002: 27002: uint64_t sample_for_compression = 0; 27002: # 909 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: Temperature bottommost_temperature = Temperature::kUnknown; 27002: Temperature last_level_temperature = Temperature::kUnknown; 27002: # 927 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint64_t preclude_last_level_data_seconds = 0; 27002: # 950 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint64_t preserve_internal_time_seconds = 0; 27002: # 964 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool enable_blob_files = false; 27002: # 976 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint64_t min_blob_size = 0; 27002: # 985 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint64_t blob_file_size = 1ULL << 28; 27002: # 994 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: CompressionType blob_compression_type = kNoCompression; 27002: # 1006 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: bool enable_blob_garbage_collection = false; 27002: # 1017 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: double blob_garbage_collection_age_cutoff = 0.25; 27002: # 1030 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: double blob_garbage_collection_force_threshold = 1.0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t blob_compaction_readahead_size = 0; 27002: # 1052 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: int blob_file_starting_level = 0; 27002: # 1062 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: std::shared_ptr blob_cache = nullptr; 27002: # 1073 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: PrepopulateBlobCache prepopulate_blob_cache = PrepopulateBlobCache::kDisable; 27002: # 1088 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h" 27002: uint32_t memtable_protection_bytes_per_key = 0; 27002: 27002: 27002: AdvancedColumnFamilyOptions(); 27002: 27002: explicit AdvancedColumnFamilyOptions(const Options& options); 27002: 27002: 27002: }; 27002: 27002: } 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 2 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: template 27002: class SmallEnumSet { 27002: public: 27002: SmallEnumSet() : state_(0) {} 27002: 27002: ~SmallEnumSet() {} 27002: 27002: 27002: 27002: bool Add(const ENUM_TYPE value) { 27002: static_assert(MAX_VALUE <= 63, "Size currently limited to 64"); 27002: 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 27002: (static_cast ( 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 27002: value >= 0 && value <= MAX_VALUE 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 27002: "value >= 0 && value <= MAX_VALUE" 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 27002: , "./include/rocksdb/data_structure.h", 32, __extension__ __PRETTY_FUNCTION__)) 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 27002: ; 27002: uint64_t old_state = state_; 27002: uint64_t tmp = 1; 27002: state_ |= (tmp << value); 27002: return old_state != state_; 27002: } 27002: 27002: 27002: bool Contains(const ENUM_TYPE value) { 27002: static_assert(MAX_VALUE <= 63, "Size currently limited to 64"); 27002: 27002: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 27002: (static_cast ( 27002: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 27002: value >= 0 && value <= MAX_VALUE 27002: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 27002: "value >= 0 && value <= MAX_VALUE" 27002: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 3 4 27002: , "./include/rocksdb/data_structure.h", 42, __extension__ __PRETTY_FUNCTION__)) 27002: # 42 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/data_structure.h" 27002: ; 27002: uint64_t tmp = 1; 27002: return state_ & (tmp << value); 27002: } 27002: 27002: private: 27002: uint64_t state_; 27002: }; 27002: 27002: } 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 1 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cstdarg" 1 3 27002: # 39 "/usr/include/c++/12/cstdarg" 3 27002: 27002: # 40 "/usr/include/c++/12/cstdarg" 3 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stdarg.h" 1 3 4 27002: # 44 "/usr/include/c++/12/cstdarg" 2 3 27002: # 53 "/usr/include/c++/12/cstdarg" 3 27002: 27002: # 53 "/usr/include/c++/12/cstdarg" 3 27002: namespace std 27002: { 27002: using ::va_list; 27002: } 27002: # 22 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 2 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/functor_wrapper.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/functor_wrapper.h" 27002: namespace rocksdb { 27002: 27002: namespace detail { 27002: template 27002: struct IndexSequence {}; 27002: 27002: template 27002: struct IndexSequenceHelper 27002: : public IndexSequenceHelper {}; 27002: 27002: template 27002: struct IndexSequenceHelper<0U, Next...> { 27002: using type = IndexSequence; 27002: }; 27002: 27002: template 27002: using make_index_sequence = typename IndexSequenceHelper::type; 27002: 27002: template 27002: void call(Function f, Tuple t, IndexSequence) { 27002: f(std::get(t)...); 27002: } 27002: 27002: template 27002: void call(Function f, Tuple t) { 27002: static constexpr auto size = std::tuple_size::value; 27002: call(f, t, make_index_sequence{}); 27002: } 27002: } 27002: 27002: template 27002: class FunctorWrapper { 27002: public: 27002: explicit FunctorWrapper(std::function functor, Args &&...args) 27002: : functor_(std::move(functor)), args_(std::forward(args)...) {} 27002: 27002: void invoke() { detail::call(functor_, args_); } 27002: 27002: private: 27002: std::function functor_; 27002: std::tuple args_; 27002: }; 27002: } 27002: # 30 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/thread_status.h" 1 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/thread_status.h" 27002: 27002: # 29 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/thread_status.h" 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: template 27002: struct constexpr_max { 27002: static const int result = (A > B) ? A : B; 27002: }; 27002: 27002: 27002: 27002: 27002: struct ThreadStatus { 27002: 27002: enum ThreadType : int { 27002: HIGH_PRIORITY = 0, 27002: LOW_PRIORITY, 27002: USER, 27002: BOTTOM_PRIORITY, 27002: NUM_THREAD_TYPES 27002: }; 27002: 27002: 27002: 27002: 27002: enum OperationType : int { 27002: OP_UNKNOWN = 0, 27002: OP_COMPACTION, 27002: OP_FLUSH, 27002: NUM_OP_TYPES 27002: }; 27002: 27002: enum OperationStage : int { 27002: STAGE_UNKNOWN = 0, 27002: STAGE_FLUSH_RUN, 27002: STAGE_FLUSH_WRITE_L0, 27002: STAGE_COMPACTION_PREPARE, 27002: STAGE_COMPACTION_RUN, 27002: STAGE_COMPACTION_PROCESS_KV, 27002: STAGE_COMPACTION_INSTALL, 27002: STAGE_COMPACTION_SYNC_FILE, 27002: STAGE_PICK_MEMTABLES_TO_FLUSH, 27002: STAGE_MEMTABLE_ROLLBACK, 27002: STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 27002: NUM_OP_STAGES 27002: }; 27002: 27002: enum CompactionPropertyType : int { 27002: COMPACTION_JOB_ID = 0, 27002: COMPACTION_INPUT_OUTPUT_LEVEL, 27002: COMPACTION_PROP_FLAGS, 27002: COMPACTION_TOTAL_INPUT_BYTES, 27002: COMPACTION_BYTES_READ, 27002: COMPACTION_BYTES_WRITTEN, 27002: NUM_COMPACTION_PROPERTIES 27002: }; 27002: 27002: enum FlushPropertyType : int { 27002: FLUSH_JOB_ID = 0, 27002: FLUSH_BYTES_MEMTABLES, 27002: FLUSH_BYTES_WRITTEN, 27002: NUM_FLUSH_PROPERTIES 27002: }; 27002: 27002: 27002: 27002: static const int kNumOperationProperties = 27002: constexpr_max::result; 27002: 27002: 27002: 27002: 27002: enum StateType : int { 27002: STATE_UNKNOWN = 0, 27002: STATE_MUTEX_WAIT = 1, 27002: NUM_STATE_TYPES 27002: }; 27002: 27002: ThreadStatus(const uint64_t _id, const ThreadType _thread_type, 27002: const std::string& _db_name, const std::string& _cf_name, 27002: const OperationType _operation_type, 27002: const uint64_t _op_elapsed_micros, 27002: const OperationStage _operation_stage, 27002: const uint64_t _op_props[], const StateType _state_type) 27002: : thread_id(_id), 27002: thread_type(_thread_type), 27002: db_name(_db_name), 27002: cf_name(_cf_name), 27002: operation_type(_operation_type), 27002: op_elapsed_micros(_op_elapsed_micros), 27002: operation_stage(_operation_stage), 27002: state_type(_state_type) { 27002: for (int i = 0; i < kNumOperationProperties; ++i) { 27002: op_properties[i] = _op_props[i]; 27002: } 27002: } 27002: 27002: 27002: const uint64_t thread_id; 27002: 27002: 27002: 27002: const ThreadType thread_type; 27002: 27002: 27002: 27002: 27002: const std::string db_name; 27002: 27002: 27002: 27002: 27002: const std::string cf_name; 27002: 27002: 27002: const OperationType operation_type; 27002: 27002: 27002: const uint64_t op_elapsed_micros; 27002: 27002: 27002: 27002: const OperationStage operation_stage; 27002: 27002: 27002: 27002: 27002: uint64_t op_properties[kNumOperationProperties]; 27002: 27002: 27002: const StateType state_type; 27002: 27002: 27002: 27002: 27002: static std::string GetThreadTypeName(ThreadType thread_type); 27002: 27002: 27002: static const std::string& GetOperationName(OperationType op_type); 27002: 27002: static const std::string MicrosToString(uint64_t op_elapsed_time); 27002: 27002: 27002: static const std::string& GetOperationStageName(OperationStage stage); 27002: 27002: 27002: 27002: static const std::string& GetOperationPropertyName(OperationType op_type, 27002: int i); 27002: 27002: 27002: 27002: static std::map InterpretOperationProperties( 27002: OperationType op_type, const uint64_t* op_properties); 27002: 27002: 27002: static const std::string& GetStateName(StateType state_type); 27002: }; 27002: 27002: } 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 2 27002: # 47 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: namespace rocksdb { 27002: 27002: class DynamicLibrary; 27002: class FileLock; 27002: class Logger; 27002: class RandomAccessFile; 27002: class SequentialFile; 27002: class Slice; 27002: struct DataVerificationInfo; 27002: class WritableFile; 27002: class RandomRWFile; 27002: class MemoryMappedFileBuffer; 27002: class Directory; 27002: struct DBOptions; 27002: struct ImmutableDBOptions; 27002: struct MutableDBOptions; 27002: class RateLimiter; 27002: class ThreadStatusUpdater; 27002: struct ThreadStatus; 27002: class FileSystem; 27002: class SystemClock; 27002: struct ConfigOptions; 27002: 27002: const size_t kDefaultPageSize = 4 * 1024; 27002: 27002: enum class CpuPriority { 27002: kIdle = 0, 27002: kLow = 1, 27002: kNormal = 2, 27002: kHigh = 3, 27002: }; 27002: 27002: 27002: struct EnvOptions { 27002: 27002: EnvOptions(); 27002: 27002: 27002: explicit EnvOptions(const DBOptions& options); 27002: 27002: 27002: 27002: bool use_mmap_reads = false; 27002: 27002: 27002: bool use_mmap_writes = true; 27002: 27002: 27002: bool use_direct_reads = false; 27002: 27002: 27002: bool use_direct_writes = false; 27002: 27002: 27002: bool allow_fallocate = true; 27002: 27002: 27002: bool set_fd_cloexec = true; 27002: 27002: 27002: 27002: 27002: 27002: uint64_t bytes_per_sync = 0; 27002: # 127 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: bool strict_bytes_per_sync = false; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool fallocate_with_keep_size = true; 27002: 27002: 27002: size_t compaction_readahead_size = 0; 27002: 27002: 27002: size_t random_access_max_buffer_size = 0; 27002: 27002: 27002: size_t writable_file_max_buffer_size = 1024 * 1024; 27002: 27002: 27002: RateLimiter* rate_limiter = nullptr; 27002: }; 27002: 27002: 27002: 27002: 27002: class Env : public Customizable { 27002: public: 27002: static const char* kDefaultName() { return "DefaultEnv"; } 27002: struct FileAttributes { 27002: 27002: std::string name; 27002: 27002: 27002: uint64_t size_bytes; 27002: }; 27002: 27002: Env(); 27002: 27002: 27002: explicit Env(const std::shared_ptr& fs); 27002: Env(const std::shared_ptr& fs, 27002: const std::shared_ptr& clock); 27002: 27002: Env(const Env&) = delete; 27002: void operator=(const Env&) = delete; 27002: 27002: ~Env() override; 27002: 27002: static const char* Type() { return "Environment"; } 27002: 27002: 27002: 27002: const char* Name() const override { return ""; } 27002: 27002: 27002: 27002: 27002: static Status LoadEnv(const std::string& value, Env** result); 27002: 27002: 27002: 27002: 27002: static Status LoadEnv(const std::string& value, Env** result, 27002: std::shared_ptr* guard); 27002: # 206 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: static Status CreateFromString(const ConfigOptions& config_options, 27002: const std::string& value, Env** result); 27002: static Status CreateFromString(const ConfigOptions& config_options, 27002: const std::string& value, Env** result, 27002: std::shared_ptr* guard); 27002: 27002: 27002: 27002: 27002: 27002: static Status CreateFromUri(const ConfigOptions& options, 27002: const std::string& env_uri, 27002: const std::string& fs_uri, Env** result, 27002: std::shared_ptr* guard); 27002: 27002: 27002: 27002: 27002: 27002: 27002: static Env* Default(); 27002: 27002: 27002: virtual Status RegisterDbPaths(const std::vector& ) { 27002: return Status::OK(); 27002: } 27002: 27002: virtual Status UnregisterDbPaths(const std::vector& ) { 27002: return Status::OK(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status NewSequentialFile(const std::string& fname, 27002: std::unique_ptr* result, 27002: const EnvOptions& options) = 0; 27002: # 254 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status NewRandomAccessFile(const std::string& fname, 27002: std::unique_ptr* result, 27002: const EnvOptions& options) = 0; 27002: 27002: 27002: enum WriteLifeTimeHint { 27002: WLTH_NOT_SET = 0, 27002: WLTH_NONE, 27002: WLTH_SHORT, 27002: WLTH_MEDIUM, 27002: WLTH_LONG, 27002: WLTH_EXTREME, 27002: }; 27002: # 275 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status NewWritableFile(const std::string& fname, 27002: std::unique_ptr* result, 27002: const EnvOptions& options) = 0; 27002: # 287 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status ReopenWritableFile(const std::string& , 27002: std::unique_ptr* , 27002: const EnvOptions& ) { 27002: return Status::NotSupported("Env::ReopenWritableFile() not supported."); 27002: } 27002: 27002: 27002: virtual Status ReuseWritableFile(const std::string& fname, 27002: const std::string& old_fname, 27002: std::unique_ptr* result, 27002: const EnvOptions& options); 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status NewRandomRWFile(const std::string& , 27002: std::unique_ptr* , 27002: const EnvOptions& ) { 27002: return Status::NotSupported("RandomRWFile is not implemented in this Env"); 27002: } 27002: 27002: 27002: 27002: 27002: virtual Status NewMemoryMappedFileBuffer( 27002: const std::string& , 27002: std::unique_ptr* ) { 27002: return Status::NotSupported( 27002: "MemoryMappedFileBuffer is not implemented in this Env"); 27002: } 27002: # 327 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status NewDirectory(const std::string& name, 27002: std::unique_ptr* result) = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status FileExists(const std::string& fname) = 0; 27002: # 345 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status GetChildren(const std::string& dir, 27002: std::vector* result) = 0; 27002: # 359 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status GetChildrenFileAttributes(const std::string& dir, 27002: std::vector* result); 27002: 27002: 27002: virtual Status DeleteFile(const std::string& fname) = 0; 27002: 27002: 27002: virtual Status Truncate(const std::string& , size_t ) { 27002: return Status::NotSupported("Truncate is not supported for this Env"); 27002: } 27002: 27002: 27002: virtual Status CreateDir(const std::string& dirname) = 0; 27002: 27002: 27002: 27002: virtual Status CreateDirIfMissing(const std::string& dirname) = 0; 27002: 27002: 27002: 27002: 27002: virtual Status DeleteDir(const std::string& dirname) = 0; 27002: 27002: 27002: virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0; 27002: 27002: 27002: virtual Status GetFileModificationTime(const std::string& fname, 27002: uint64_t* file_mtime) = 0; 27002: 27002: virtual Status RenameFile(const std::string& src, 27002: const std::string& target) = 0; 27002: 27002: 27002: virtual Status LinkFile(const std::string& , 27002: const std::string& ) { 27002: return Status::NotSupported("LinkFile is not supported for this Env"); 27002: } 27002: 27002: virtual Status NumFileLinks(const std::string& , 27002: uint64_t* ) { 27002: return Status::NotSupported( 27002: "Getting number of file links is not supported for this Env"); 27002: } 27002: 27002: virtual Status AreFilesSame(const std::string& , 27002: const std::string& , bool* ) { 27002: return Status::NotSupported("AreFilesSame is not supported for this Env"); 27002: } 27002: # 423 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status LockFile(const std::string& fname, FileLock** lock) = 0; 27002: 27002: 27002: 27002: 27002: virtual Status UnlockFile(FileLock* lock) = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status LoadLibrary(const std::string& , 27002: const std::string& , 27002: std::shared_ptr* ) { 27002: return Status::NotSupported("LoadLibrary is not implemented in this Env"); 27002: } 27002: 27002: 27002: enum Priority { BOTTOM, LOW, HIGH, USER, TOTAL }; 27002: 27002: static std::string PriorityToString(Priority priority); 27002: 27002: 27002: enum IOPriority { 27002: IO_LOW = 0, 27002: IO_MID = 1, 27002: IO_HIGH = 2, 27002: IO_USER = 3, 27002: IO_TOTAL = 4 27002: }; 27002: # 466 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual void Schedule(void (*function)(void* arg), void* arg, 27002: Priority pri = LOW, void* tag = nullptr, 27002: void (*unschedFunction)(void* arg) = nullptr) = 0; 27002: 27002: 27002: 27002: virtual int UnSchedule(void* , Priority ) { return 0; } 27002: 27002: 27002: 27002: virtual void StartThread(void (*function)(void* arg), void* arg) = 0; 27002: 27002: 27002: 27002: template 27002: void StartThreadTyped(FunctionT function, Args&&... args) { 27002: using FWType = FunctorWrapper; 27002: StartThread( 27002: [](void* arg) { 27002: auto* functor = static_cast(arg); 27002: functor->invoke(); 27002: delete functor; 27002: }, 27002: new FWType(std::function(function), 27002: std::forward(args)...)); 27002: } 27002: 27002: 27002: virtual void WaitForJoin() {} 27002: 27002: 27002: virtual int ReserveThreads(int , Priority ) { 27002: return 0; 27002: } 27002: 27002: 27002: 27002: virtual int ReleaseThreads(int , Priority ) { 27002: return 0; 27002: } 27002: 27002: 27002: virtual unsigned int GetThreadPoolQueueLen(Priority = LOW) const { 27002: return 0; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual Status GetTestDirectory(std::string* path) = 0; 27002: 27002: 27002: 27002: 27002: virtual Status NewLogger(const std::string& fname, 27002: std::shared_ptr* result); 27002: 27002: 27002: 27002: 27002: virtual uint64_t NowMicros() = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 27002: 27002: 27002: virtual uint64_t NowCPUNanos() { return 0; } 27002: 27002: 27002: virtual void SleepForMicroseconds(int micros) = 0; 27002: 27002: 27002: 27002: virtual Status GetHostName(char* name, uint64_t len) = 0; 27002: 27002: 27002: 27002: 27002: virtual Status GetHostNameString(std::string* result); 27002: 27002: 27002: 27002: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 27002: 27002: 27002: virtual Status GetAbsolutePath(const std::string& db_path, 27002: std::string* output_path) = 0; 27002: 27002: 27002: 27002: 27002: virtual void SetBackgroundThreads(int number, Priority pri = LOW) = 0; 27002: virtual int GetBackgroundThreads(Priority pri = LOW) = 0; 27002: 27002: virtual Status SetAllowNonOwnerAccess(bool ) { 27002: return Status::NotSupported("Env::SetAllowNonOwnerAccess() not supported."); 27002: } 27002: 27002: 27002: 27002: 27002: virtual void IncBackgroundThreadsIfNeeded(int number, Priority pri) = 0; 27002: 27002: 27002: virtual void LowerThreadPoolIOPriority(Priority = LOW) {} 27002: 27002: 27002: virtual Status LowerThreadPoolCPUPriority(Priority , 27002: CpuPriority ) { 27002: return Status::NotSupported( 27002: "Env::LowerThreadPoolCPUPriority(Priority, CpuPriority) not supported"); 27002: } 27002: 27002: 27002: virtual void LowerThreadPoolCPUPriority(Priority = LOW) {} 27002: 27002: 27002: virtual std::string TimeToString(uint64_t time) = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual std::string GenerateUniqueId(); 27002: 27002: 27002: 27002: virtual EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const; 27002: 27002: 27002: 27002: 27002: virtual EnvOptions OptimizeForManifestRead( 27002: const EnvOptions& env_options) const; 27002: 27002: 27002: 27002: 27002: virtual EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 27002: const DBOptions& db_options) const; 27002: 27002: 27002: 27002: virtual EnvOptions OptimizeForManifestWrite( 27002: const EnvOptions& env_options) const; 27002: 27002: 27002: 27002: 27002: virtual EnvOptions OptimizeForCompactionTableWrite( 27002: const EnvOptions& env_options, 27002: const ImmutableDBOptions& immutable_ops) const; 27002: 27002: 27002: 27002: 27002: virtual EnvOptions OptimizeForCompactionTableRead( 27002: const EnvOptions& env_options, 27002: const ImmutableDBOptions& db_options) const; 27002: 27002: 27002: 27002: 27002: virtual EnvOptions OptimizeForBlobFileRead( 27002: const EnvOptions& env_options, 27002: const ImmutableDBOptions& db_options) const; 27002: 27002: 27002: virtual Status GetThreadList(std::vector* ) { 27002: return Status::NotSupported("Env::GetThreadList() not supported."); 27002: } 27002: 27002: 27002: 27002: 27002: virtual ThreadStatusUpdater* GetThreadStatusUpdater() const { 27002: return thread_status_updater_; 27002: } 27002: 27002: 27002: virtual uint64_t GetThreadID() const; 27002: 27002: 27002: 27002: 27002: 27002: virtual Status GetFreeSpace(const std::string& , 27002: uint64_t* ) { 27002: return Status::NotSupported("Env::GetFreeSpace() not supported."); 27002: } 27002: 27002: 27002: virtual Status IsDirectory(const std::string& , bool* ) { 27002: return Status::NotSupported("Env::IsDirectory() not supported."); 27002: } 27002: 27002: virtual void SanitizeEnvOptions(EnvOptions* ) const {} 27002: 27002: 27002: 27002: const std::shared_ptr& GetFileSystem() const; 27002: 27002: 27002: 27002: const std::shared_ptr& GetSystemClock() const; 27002: 27002: 27002: 27002: protected: 27002: 27002: 27002: ThreadStatusUpdater* thread_status_updater_; 27002: 27002: 27002: std::shared_ptr file_system_; 27002: 27002: 27002: std::shared_ptr system_clock_; 27002: 27002: private: 27002: static const size_t kMaxHostNameLen = 256; 27002: }; 27002: 27002: 27002: 27002: 27002: ThreadStatusUpdater* CreateThreadStatusUpdater(); 27002: 27002: 27002: class SequentialFile { 27002: public: 27002: SequentialFile() {} 27002: virtual ~SequentialFile(); 27002: # 717 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status Read(size_t n, Slice* result, char* scratch) = 0; 27002: # 726 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status Skip(uint64_t n) = 0; 27002: 27002: 27002: 27002: virtual bool use_direct_io() const { return false; } 27002: 27002: 27002: 27002: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 27002: 27002: 27002: 27002: 27002: virtual Status InvalidateCache(size_t , size_t ) { 27002: return Status::NotSupported( 27002: "SequentialFile::InvalidateCache not supported."); 27002: } 27002: 27002: 27002: 27002: virtual Status PositionedRead(uint64_t , size_t , 27002: Slice* , char* ) { 27002: return Status::NotSupported( 27002: "SequentialFile::PositionedRead() not supported."); 27002: } 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: struct ReadRequest { 27002: 27002: uint64_t offset; 27002: 27002: 27002: 27002: size_t len; 27002: 27002: 27002: 27002: char* scratch; 27002: 27002: 27002: 27002: Slice result; 27002: 27002: 27002: Status status; 27002: }; 27002: 27002: 27002: class RandomAccessFile { 27002: public: 27002: RaIn file included from /usr/include/c++/12/set:60, from /build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h:10: /usr/include/c++/12/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 = {long long unsigned int&, std::unique_ptr >}; _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/12/bits/stl_tree.h:2457:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2457 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ndomAccessFile() {} 27002: virtual ~RandomAccessFile(); 27002: # 797 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status Read(uint64_t offset, size_t n, Slice* result, 27002: char* scratch) const = 0; 27002: 27002: 27002: virtual Status Prefetch(uint64_t , size_t ) { 27002: return Status::OK(); 27002: } 27002: # 812 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status MultiRead(ReadRequest* reqs, size_t num_reqs) { 27002: 27002: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 27002: (static_cast ( 27002: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: reqs != nullptr 27002: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: "reqs != nullptr" 27002: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 27002: , "./include/rocksdb/env.h", 813, __extension__ __PRETTY_FUNCTION__)) 27002: # 813 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: ; 27002: for (size_t i = 0; i < num_reqs; ++i) { 27002: ReadRequest& req = reqs[i]; 27002: req.status = Read(req.offset, req.len, &req.result, req.scratch); 27002: } 27002: return Status::OK(); 27002: } 27002: # 836 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual size_t GetUniqueId(char* , size_t ) const { 27002: return 0; 27002: 27002: } 27002: 27002: enum AccessPattern { NORMAL, RANDOM, SEQUENTIAL, WILLNEED, DONTNEED }; 27002: 27002: virtual void Hint(AccessPattern ) {} 27002: 27002: 27002: 27002: virtual bool use_direct_io() const { return false; } 27002: 27002: 27002: 27002: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 27002: 27002: 27002: 27002: 27002: virtual Status InvalidateCache(size_t , size_t ) { 27002: return Status::NotSupported( 27002: "RandomAccessFile::InvalidateCache not supported."); 27002: } 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: class WritableFile { 27002: public: 27002: WritableFile() 27002: : last_preallocated_block_(0), 27002: preallocation_block_size_(0), 27002: io_priority_(Env::IO_TOTAL), 27002: write_hint_(Env::WLTH_NOT_SET), 27002: strict_bytes_per_sync_(false) {} 27002: 27002: explicit WritableFile(const EnvOptions& options) 27002: : last_preallocated_block_(0), 27002: preallocation_block_size_(0), 27002: io_priority_(Env::IO_TOTAL), 27002: write_hint_(Env::WLTH_NOT_SET), 27002: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 27002: 27002: WritableFile(const WritableFile&) = delete; 27002: void operator=(const WritableFile&) = delete; 27002: 27002: virtual ~WritableFile(); 27002: 27002: 27002: 27002: 27002: virtual Status Append(const Slice& data) = 0; 27002: # 901 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status Append(const Slice& data, 27002: const DataVerificationInfo& ) { 27002: return Append(data); 27002: } 27002: # 926 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status PositionedAppend(const Slice& , 27002: uint64_t ) { 27002: return Status::NotSupported( 27002: "WritableFile::PositionedAppend() not supported."); 27002: } 27002: # 939 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status PositionedAppend( 27002: const Slice& , uint64_t , 27002: const DataVerificationInfo& ) { 27002: return Status::NotSupported("PositionedAppend"); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual Status Truncate(uint64_t ) { return Status::OK(); } 27002: virtual Status Close() = 0; 27002: virtual Status Flush() = 0; 27002: virtual Status Sync() = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status Fsync() { return Sync(); } 27002: 27002: 27002: 27002: virtual bool IsSyncThreadSafe() const { return false; } 27002: 27002: 27002: 27002: virtual bool use_direct_io() const { return false; } 27002: 27002: 27002: 27002: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 27002: # 985 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 27002: 27002: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 27002: 27002: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 27002: write_hint_ = hint; 27002: } 27002: 27002: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 27002: 27002: 27002: 27002: virtual uint64_t GetFileSize() { return 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void SetPreallocationBlockSize(size_t size) { 27002: preallocation_block_size_ = size; 27002: } 27002: 27002: virtual void GetPreallocationStatus(size_t* block_size, 27002: size_t* last_allocated_block) { 27002: *last_allocated_block = last_preallocated_block_; 27002: *block_size = preallocation_block_size_; 27002: } 27002: 27002: 27002: virtual size_t GetUniqueId(char* , size_t ) const { 27002: return 0; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual Status InvalidateCache(size_t , size_t ) { 27002: return Status::NotSupported("WritableFile::InvalidateCache not supported."); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status RangeSync(uint64_t , uint64_t ) { 27002: if (strict_bytes_per_sync_) { 27002: return Sync(); 27002: } 27002: return Status::OK(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void PrepareWrite(size_t offset, size_t len) { 27002: if (preallocation_block_size_ == 0) { 27002: return; 27002: } 27002: 27002: 27002: 27002: const auto block_size = preallocation_block_size_; 27002: size_t new_last_preallocated_block = 27002: (offset + len + block_size - 1) / block_size; 27002: if (new_last_preallocated_block > last_preallocated_block_) { 27002: size_t num_spanned_blocks = 27002: new_last_preallocated_block - last_preallocated_block_; 27002: 27002: Allocate(block_size * last_preallocated_block_, 27002: block_size * num_spanned_blocks) 27002: .PermitUncheckedError(); 27002: last_preallocated_block_ = new_last_preallocated_block; 27002: } 27002: } 27002: 27002: 27002: virtual Status Allocate(uint64_t , uint64_t ) { 27002: return Status::OK(); 27002: } 27002: 27002: 27002: 27002: 27002: protected: 27002: size_t preallocation_block_size() { return preallocation_block_size_; } 27002: 27002: private: 27002: size_t last_preallocated_block_; 27002: size_t preallocation_block_size_; 27002: 27002: protected: 27002: Env::IOPriority io_priority_; 27002: Env::WriteLifeTimeHint write_hint_; 27002: const bool strict_bytes_per_sync_; 27002: }; 27002: 27002: 27002: class RandomRWFile { 27002: public: 27002: RandomRWFile() {} 27002: 27002: RandomRWFile(const RandomRWFile&) = delete; 27002: RandomRWFile& operator=(const RandomRWFile&) = delete; 27002: 27002: virtual ~RandomRWFile() {} 27002: 27002: 27002: 27002: virtual bool use_direct_io() const { return false; } 27002: 27002: 27002: 27002: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 27002: 27002: 27002: 27002: virtual Status Write(uint64_t offset, const Slice& data) = 0; 27002: # 1118 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: virtual Status Read(uint64_t offset, size_t n, Slice* result, 27002: char* scratch) const = 0; 27002: 27002: virtual Status Flush() = 0; 27002: 27002: virtual Status Sync() = 0; 27002: 27002: virtual Status Fsync() { return Sync(); } 27002: 27002: virtual Status Close() = 0; 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: 27002: class MemoryMappedFileBuffer { 27002: public: 27002: MemoryMappedFileBuffer(void* _base, size_t _length) 27002: : base_(_base), length_(_length) {} 27002: 27002: virtual ~MemoryMappedFileBuffer() = 0; 27002: 27002: 27002: 27002: MemoryMappedFileBuffer(const MemoryMappedFileBuffer&) = delete; 27002: MemoryMappedFileBuffer& operator=(const MemoryMappedFileBuffer&) = delete; 27002: 27002: void* GetBase() const { return base_; } 27002: size_t GetLen() const { return length_; } 27002: 27002: protected: 27002: void* base_; 27002: const size_t length_; 27002: }; 27002: 27002: 27002: 27002: class Directory { 27002: public: 27002: virtual ~Directory() {} 27002: 27002: virtual Status Fsync() = 0; 27002: 27002: virtual Status Close() { return Status::NotSupported("Close"); } 27002: 27002: virtual size_t GetUniqueId(char* , size_t ) const { 27002: return 0; 27002: } 27002: 27002: 27002: 27002: }; 27002: 27002: enum InfoLogLevel : unsigned char { 27002: DEBUG_LEVEL = 0, 27002: INFO_LEVEL, 27002: WARN_LEVEL, 27002: ERROR_LEVEL, 27002: FATAL_LEVEL, 27002: HEADER_LEVEL, 27002: NUM_INFO_LOG_LEVELS, 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class Logger { 27002: public: 27002: size_t kDoNotSupportGetLogFileSize = (std::numeric_limits::max)(); 27002: 27002: explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) 27002: : closed_(false), log_level_(log_level) {} 27002: 27002: Logger(const Logger&) = delete; 27002: void operator=(const Logger&) = delete; 27002: 27002: virtual ~Logger(); 27002: 27002: 27002: 27002: 27002: virtual Status Close(); 27002: 27002: 27002: 27002: 27002: virtual void LogHeader(const char* format, va_list ap) { 27002: 27002: 27002: Logv(InfoLogLevel::INFO_LEVEL, format, ap); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void Logv(const char* , va_list ) { 27002: 27002: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 27002: (static_cast ( 27002: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: false 27002: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: "false" 27002: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 27002: , "./include/rocksdb/env.h", 1220, __extension__ __PRETTY_FUNCTION__)) 27002: # 1220 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: ; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual void Logv(const InfoLogLevel log_level, const char* format, 27002: va_list ap); 27002: 27002: virtual size_t GetLogFileSize() const { return kDoNotSupportGetLogFileSize; } 27002: 27002: virtual void Flush() {} 27002: virtual InfoLogLevel GetInfoLogLevel() const { return log_level_; } 27002: virtual void SetInfoLogLevel(const InfoLogLevel log_level) { 27002: log_level_ = log_level; 27002: } 27002: 27002: 27002: 27002: protected: 27002: virtual Status CloseImpl(); 27002: bool closed_; 27002: 27002: private: 27002: InfoLogLevel log_level_; 27002: }; 27002: 27002: 27002: 27002: 27002: class FileLock { 27002: public: 27002: FileLock() {} 27002: virtual ~FileLock(); 27002: 27002: private: 27002: 27002: FileLock(const FileLock&) = delete; 27002: void operator=(const FileLock&) = delete; 27002: }; 27002: 27002: class DynamicLibrary { 27002: public: 27002: virtual ~DynamicLibrary() {} 27002: 27002: 27002: virtual const char* Name() const = 0; 27002: 27002: 27002: 27002: template 27002: Status LoadFunction(const std::string& sym_name, std::function* function) { 27002: 27002: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 27002: (static_cast ( 27002: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: nullptr != function 27002: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: "nullptr != function" 27002: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 3 4 27002: , "./include/rocksdb/env.h", 1273, __extension__ __PRETTY_FUNCTION__)) 27002: # 1273 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: ; 27002: void* ptr = nullptr; 27002: Status s = LoadSymbol(sym_name, &ptr); 27002: *function = reinterpret_cast(ptr); 27002: return s; 27002: } 27002: 27002: virtual Status LoadSymbol(const std::string& sym_name, void** func) = 0; 27002: }; 27002: 27002: extern void LogFlush(const std::shared_ptr& info_log); 27002: 27002: extern void Log(const InfoLogLevel log_level, 27002: const std::shared_ptr& info_log, const char* format, 27002: ...) __attribute__((__format__(__printf__, 3, 4))); 27002: 27002: 27002: extern void Header(const std::shared_ptr& info_log, const char* format, 27002: ...) __attribute__((__format__(__printf__, 2, 3))); 27002: extern void Debug(const std::shared_ptr& info_log, const char* format, 27002: ...) __attribute__((__format__(__printf__, 2, 3))); 27002: extern void Info(const std::shared_ptr& info_log, const char* format, 27002: ...) __attribute__((__format__(__printf__, 2, 3))); 27002: extern void Warn(const std::shared_ptr& info_log, const char* format, 27002: ...) __attribute__((__format__(__printf__, 2, 3))); 27002: extern void Error(const std::shared_ptr& info_log, const char* format, 27002: ...) __attribute__((__format__(__printf__, 2, 3))); 27002: extern void Fatal(const std::shared_ptr& info_log, const char* format, 27002: ...) __attribute__((__format__(__printf__, 2, 3))); 27002: 27002: 27002: 27002: extern void Log(const std::shared_ptr& info_log, const char* format, 27002: ...) __attribute__((__format__(__printf__, 2, 3))); 27002: 27002: extern void LogFlush(Logger* info_log); 27002: 27002: extern void Log(const InfoLogLevel log_level, Logger* info_log, 27002: const char* format, ...) __attribute__((__format__(__printf__, 3, 4))); 27002: 27002: 27002: extern void Log(Logger* info_log, const char* format, ...) 27002: __attribute__((__format__(__printf__, 2, 3))); 27002: 27002: 27002: extern void Header(Logger* info_log, const char* format, ...) 27002: __attribute__((__format__(__printf__, 2, 3))); 27002: extern void Debug(Logger* info_log, const char* format, ...) 27002: __attribute__((__format__(__printf__, 2, 3))); 27002: extern void Info(Logger* info_log, const char* format, ...) 27002: __attribute__((__format__(__printf__, 2, 3))); 27002: extern void Warn(Logger* info_log, const char* format, ...) 27002: __attribute__((__format__(__printf__, 2, 3))); 27002: extern void Error(Logger* info_log, const char* format, ...) 27002: __attribute__((__format__(__printf__, 2, 3))); 27002: extern void Fatal(Logger* info_log, const char* format, ...) 27002: __attribute__((__format__(__printf__, 2, 3))); 27002: 27002: 27002: extern Status WriteStringToFile(Env* env, const Slice& data, 27002: const std::string& fname, 27002: bool should_sync = false); 27002: 27002: 27002: extern Status ReadFileToString(Env* env, const std::string& fname, 27002: std::string* data); 27002: # 1368 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/env.h" 27002: class EnvWrapper : public Env { 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: struct Target { 27002: Env* env; 27002: std::shared_ptr guard; 27002: 27002: 27002: explicit Target(Env* t) : env(t) {} 27002: 27002: 27002: explicit Target(std::unique_ptr&& t) : guard(t.release()) { 27002: env = guard.get(); 27002: } 27002: 27002: 27002: explicit Target(const std::shared_ptr& t) : guard(t) { 27002: env = guard.get(); 27002: } 27002: 27002: 27002: void Prepare() { 27002: if (guard.get() != nullptr) { 27002: env = guard.get(); 27002: } else if (env == nullptr) { 27002: env = Env::Default(); 27002: } 27002: } 27002: }; 27002: 27002: 27002: explicit EnvWrapper(Env* t); 27002: explicit EnvWrapper(std::unique_ptr&& t); 27002: explicit EnvWrapper(const std::shared_ptr& t); 27002: ~EnvWrapper() override; 27002: 27002: 27002: Env* target() const { return target_.env; } 27002: 27002: 27002: 27002: const char* Name() const override { return target_.env->Name(); } 27002: 27002: 27002: Status RegisterDbPaths(const std::vector& paths) override { 27002: return target_.env->RegisterDbPaths(paths); 27002: } 27002: 27002: Status UnregisterDbPaths(const std::vector& paths) override { 27002: return target_.env->UnregisterDbPaths(paths); 27002: } 27002: 27002: Status NewSequentialFile(const std::string& f, 27002: std::unique_ptr* r, 27002: const EnvOptions& options) override { 27002: return target_.env->NewSequentialFile(f, r, options); 27002: } 27002: Status NewRandomAccessFile(const std::string& f, 27002: std::unique_ptr* r, 27002: const EnvOptions& options) override { 27002: return target_.env->NewRandomAccessFile(f, r, options); 27002: } 27002: Status NewWritableFile(const std::string& f, std::unique_ptr* r, 27002: const EnvOptions& options) override { 27002: return target_.env->NewWritableFile(f, r, options); 27002: } 27002: Status ReopenWritableFile(const std::string& fname, 27002: std::unique_ptr* result, 27002: const EnvOptions& options) override { 27002: return target_.env->ReopenWritableFile(fname, result, options); 27002: } 27002: Status ReuseWritableFile(const std::string& fname, 27002: const std::string& old_fname, 27002: std::unique_ptr* r, 27002: const EnvOptions& options) override { 27002: return target_.env->ReuseWritableFile(fname, old_fname, r, options); 27002: } 27002: Status NewRandomRWFile(const std::string& fname, 27002: std::unique_ptr* result, 27002: const EnvOptions& options) override { 27002: return target_.env->NewRandomRWFile(fname, result, options); 27002: } 27002: Status NewMemoryMappedFileBuffer( 27002: const std::string& fname, 27002: std::unique_ptr* result) override { 27002: return target_.env->NewMemoryMappedFileBuffer(fname, result); 27002: } 27002: Status NewDirectory(const std::string& name, 27002: std::unique_ptr* result) override { 27002: return target_.env->NewDirectory(name, result); 27002: } 27002: Status FileExists(const std::string& f) override { 27002: return target_.env->FileExists(f); 27002: } 27002: Status GetChildren(const std::string& dir, 27002: std::vector* r) override { 27002: return target_.env->GetChildren(dir, r); 27002: } 27002: Status GetChildrenFileAttributes( 27002: const std::string& dir, std::vector* result) override { 27002: return target_.env->GetChildrenFileAttributes(dir, result); 27002: } 27002: Status DeleteFile(const std::string& f) override { 27002: return target_.env->DeleteFile(f); 27002: } 27002: Status Truncate(const std::string& fname, size_t size) override { 27002: return target_.env->Truncate(fname, size); 27002: } 27002: Status CreateDir(const std::string& d) override { 27002: return target_.env->CreateDir(d); 27002: } 27002: Status CreateDirIfMissing(const std::string& d) override { 27002: return target_.env->CreateDirIfMissing(d); 27002: } 27002: Status DeleteDir(const std::string& d) override { 27002: return target_.env->DeleteDir(d); 27002: } 27002: Status GetFileSize(const std::string& f, uint64_t* s) override { 27002: return target_.env->GetFileSize(f, s); 27002: } 27002: 27002: Status GetFileModificationTime(const std::string& fname, 27002: uint64_t* file_mtime) override { 27002: return target_.env->GetFileModificationTime(fname, file_mtime); 27002: } 27002: 27002: Status RenameFile(const std::string& s, const std::string& t) override { 27002: return target_.env->RenameFile(s, t); 27002: } 27002: 27002: Status LinkFile(const std::string& s, const std::string& t) override { 27002: return target_.env->LinkFile(s, t); 27002: } 27002: 27002: Status NumFileLinks(const std::string& fname, uint64_t* count) override { 27002: return target_.env->NumFileLinks(fname, count); 27002: } 27002: 27002: Status AreFilesSame(const std::string& first, const std::string& second, 27002: bool* res) override { 27002: return target_.env->AreFilesSame(first, second, res); 27002: } 27002: 27002: Status LockFile(const std::string& f, FileLock** l) override { 27002: return target_.env->LockFile(f, l); 27002: } 27002: 27002: Status UnlockFile(FileLock* l) override { return target_.env->UnlockFile(l); } 27002: 27002: Status IsDirectory(const std::string& path, bool* is_dir) override { 27002: return target_.env->IsDirectory(path, is_dir); 27002: } 27002: 27002: Status LoadLibrary(const std::string& lib_name, 27002: const std::string& search_path, 27002: std::shared_ptr* result) override { 27002: return target_.env->LoadLibrary(lib_name, search_path, result); 27002: } 27002: 27002: void Schedule(void (*f)(void* arg), void* a, Priority pri, 27002: void* tag = nullptr, void (*u)(void* arg) = nullptr) override { 27002: return target_.env->Schedule(f, a, pri, tag, u); 27002: } 27002: 27002: int UnSchedule(void* tag, Priority pri) override { 27002: return target_.env->UnSchedule(tag, pri); 27002: } 27002: 27002: void StartThread(void (*f)(void*), void* a) override { 27002: return target_.env->StartThread(f, a); 27002: } 27002: void WaitForJoin() override { return target_.env->WaitForJoin(); } 27002: unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { 27002: return target_.env->GetThreadPoolQueueLen(pri); 27002: } 27002: 27002: int ReserveThreads(int threads_to_be_reserved, Priority pri) override { 27002: return target_.env->ReserveThreads(threads_to_be_reserved, pri); 27002: } 27002: 27002: int ReleaseThreads(int threads_to_be_released, Priority pri) override { 27002: return target_.env->ReleaseThreads(threads_to_be_released, pri); 27002: } 27002: 27002: Status GetTestDirectory(std::string* path) override { 27002: return target_.env->GetTestDirectory(path); 27002: } 27002: Status NewLogger(const std::string& fname, 27002: std::shared_ptr* result) override { 27002: return target_.env->NewLogger(fname, result); 27002: } 27002: uint64_t NowMicros() override { return target_.env->NowMicros(); } 27002: uint64_t NowNanos() override { return target_.env->NowNanos(); } 27002: uint64_t NowCPUNanos() override { return target_.env->NowCPUNanos(); } 27002: 27002: void SleepForMicroseconds(int micros) override { 27002: target_.env->SleepForMicroseconds(micros); 27002: } 27002: Status GetHostName(char* name, uint64_t len) override { 27002: return target_.env->GetHostName(name, len); 27002: } 27002: Status GetCurrentTime(int64_t* unix_time) override { 27002: return target_.env->GetCurrentTime(unix_time); 27002: } 27002: Status GetAbsolutePath(const std::string& db_path, 27002: std::string* output_path) override { 27002: return target_.env->GetAbsolutePath(db_path, output_path); 27002: } 27002: void SetBackgroundThreads(int num, Priority pri) override { 27002: return target_.env->SetBackgroundThreads(num, pri); 27002: } 27002: int GetBackgroundThreads(Priority pri) override { 27002: return target_.env->GetBackgroundThreads(pri); 27002: } 27002: 27002: Status SetAllowNonOwnerAccess(bool allow_non_owner_access) override { 27002: return target_.env->SetAllowNonOwnerAccess(allow_non_owner_access); 27002: } 27002: 27002: void IncBackgroundThreadsIfNeeded(int num, Priority pri) override { 27002: return target_.env->IncBackgroundThreadsIfNeeded(num, pri); 27002: } 27002: 27002: void LowerThreadPoolIOPriority(Priority pool) override { 27002: target_.env->LowerThreadPoolIOPriority(pool); 27002: } 27002: 27002: void LowerThreadPoolCPUPriority(Priority pool) override { 27002: target_.env->LowerThreadPoolCPUPriority(pool); 27002: } 27002: 27002: Status LowerThreadPoolCPUPriority(Priority pool, CpuPriority pri) override { 27002: return target_.env->LowerThreadPoolCPUPriority(pool, pri); 27002: } 27002: 27002: std::string TimeToString(uint64_t time) override { 27002: return target_.env->TimeToString(time); 27002: } 27002: 27002: Status GetThreadList(std::vector* thread_list) override { 27002: return target_.env->GetThreadList(thread_list); 27002: } 27002: 27002: ThreadStatusUpdater* GetThreadStatusUpdater() const override { 27002: return target_.env->GetThreadStatusUpdater(); 27002: } 27002: 27002: uint64_t GetThreadID() const override { return target_.env->GetThreadID(); } 27002: 27002: std::string GenerateUniqueId() override { 27002: return target_.env->GenerateUniqueId(); 27002: } 27002: 27002: EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const override { 27002: return target_.env->OptimizeForLogRead(env_options); 27002: } 27002: EnvOptions OptimizeForManifestRead( 27002: const EnvOptions& env_options) const override { 27002: return target_.env->OptimizeForManifestRead(env_options); 27002: } 27002: EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 27002: const DBOptions& db_options) const override { 27002: return target_.env->OptimizeForLogWrite(env_options, db_options); 27002: } 27002: EnvOptions OptimizeForManifestWrite( 27002: const EnvOptions& env_options) const override { 27002: return target_.env->OptimizeForManifestWrite(env_options); 27002: } 27002: EnvOptions OptimizeForCompactionTableWrite( 27002: const EnvOptions& env_options, 27002: const ImmutableDBOptions& immutable_ops) const override { 27002: return target_.env->OptimizeForCompactionTableWrite(env_options, 27002: immutable_ops); 27002: } 27002: EnvOptions OptimizeForCompactionTableRead( 27002: const EnvOptions& env_options, 27002: const ImmutableDBOptions& db_options) const override { 27002: return target_.env->OptimizeForCompactionTableRead(env_options, db_options); 27002: } 27002: EnvOptions OptimizeForBlobFileRead( 27002: const EnvOptions& env_options, 27002: const ImmutableDBOptions& db_options) const override { 27002: return target_.env->OptimizeForBlobFileRead(env_options, db_options); 27002: } 27002: Status GetFreeSpace(const std::string& path, uint64_t* diskfree) override { 27002: return target_.env->GetFreeSpace(path, diskfree); 27002: } 27002: void SanitizeEnvOptions(EnvOptions* env_opts) const override { 27002: target_.env->SanitizeEnvOptions(env_opts); 27002: } 27002: Status PrepareOptions(const ConfigOptions& options) override; 27002: 27002: std::string SerializeOptions(const ConfigOptions& config_options, 27002: const std::string& header) const override; 27002: 27002: 27002: private: 27002: Target target_; 27002: }; 27002: 27002: class SequentialFileWrapper : public SequentialFile { 27002: public: 27002: explicit SequentialFileWrapper(SequentialFile* target) : target_(target) {} 27002: 27002: Status Read(size_t n, Slice* result, char* scratch) override { 27002: return target_->Read(n, result, scratch); 27002: } 27002: Status Skip(uint64_t n) override { return target_->Skip(n); } 27002: bool use_direct_io() const override { return target_->use_direct_io(); } 27002: size_t GetRequiredBufferAlignment() const override { 27002: return target_->GetRequiredBufferAlignment(); 27002: } 27002: Status InvalidateCache(size_t offset, size_t length) override { 27002: return target_->InvalidateCache(offset, length); 27002: } 27002: Status PositionedRead(uint64_t offset, size_t n, Slice* result, 27002: char* scratch) override { 27002: return target_->PositionedRead(offset, n, result, scratch); 27002: } 27002: 27002: private: 27002: SequentialFile* target_; 27002: }; 27002: 27002: class RandomAccessFileWrapper : public RandomAccessFile { 27002: public: 27002: explicit RandomAccessFileWrapper(RandomAccessFile* target) 27002: : target_(target) {} 27002: 27002: Status Read(uint64_t offset, size_t n, Slice* result, 27002: char* scratch) const override { 27002: return target_->Read(offset, n, result, scratch); 27002: } 27002: Status MultiRead(ReadRequest* reqs, size_t num_reqs) override { 27002: return target_->MultiRead(reqs, num_reqs); 27002: } 27002: Status Prefetch(uint64_t offset, size_t n) override { 27002: return target_->Prefetch(offset, n); 27002: } 27002: size_t GetUniqueId(char* id, size_t max_size) const override { 27002: return target_->GetUniqueId(id, max_size); 27002: } 27002: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 27002: bool use_direct_io() const override { return target_->use_direct_io(); } 27002: size_t GetRequiredBufferAlignment() const override { 27002: return target_->GetRequiredBufferAlignment(); 27002: } 27002: Status InvalidateCache(size_t offset, size_t length) override { 27002: return target_->InvalidateCache(offset, length); 27002: } 27002: 27002: private: 27002: RandomAccessFile* target_; 27002: }; 27002: 27002: class WritableFileWrapper : public WritableFile { 27002: public: 27002: explicit WritableFileWrapper(WritableFile* t) : target_(t) {} 27002: 27002: Status Append(const Slice& data) override { return target_->Append(data); } 27002: Status Append(const Slice& data, 27002: const DataVerificationInfo& verification_info) override { 27002: return target_->Append(data, verification_info); 27002: } 27002: Status PositionedAppend(const Slice& data, uint64_t offset) override { 27002: return target_->PositionedAppend(data, offset); 27002: } 27002: Status PositionedAppend( 27002: const Slice& data, uint64_t offset, 27002: const DataVerificationInfo& verification_info) override { 27002: return target_->PositionedAppend(data, offset, verification_info); 27002: } 27002: Status Truncate(uint64_t size) override { return target_->Truncate(size); } 27002: Status Close() override { return target_->Close(); } 27002: Status Flush() override { return target_->Flush(); } 27002: Status Sync() override { return target_->Sync(); } 27002: Status Fsync() override { return target_->Fsync(); } 27002: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 27002: 27002: bool use_direct_io() const override { return target_->use_direct_io(); } 27002: 27002: size_t GetRequiredBufferAlignment() const override { 27002: return target_->GetRequiredBufferAlignment(); 27002: } 27002: 27002: void SetIOPriority(Env::IOPriority pri) override { 27002: target_->SetIOPriority(pri); 27002: } 27002: 27002: Env::IOPriority GetIOPriority() override { return target_->GetIOPriority(); } 27002: 27002: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 27002: target_->SetWriteLifeTimeHint(hint); 27002: } 27002: 27002: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 27002: return target_->GetWriteLifeTimeHint(); 27002: } 27002: 27002: uint64_t GetFileSize() override { return target_->GetFileSize(); } 27002: 27002: void SetPreallocationBlockSize(size_t size) override { 27002: target_->SetPreallocationBlockSize(size); 27002: } 27002: 27002: void GetPreallocationStatus(size_t* block_size, 27002: size_t* last_allocated_block) override { 27002: target_->GetPreallocationStatus(block_size, last_allocated_block); 27002: } 27002: 27002: size_t GetUniqueId(char* id, size_t max_size) const override { 27002: return target_->GetUniqueId(id, max_size); 27002: } 27002: 27002: Status InvalidateCache(size_t offset, size_t length) override { 27002: return target_->InvalidateCache(offset, length); 27002: } 27002: 27002: Status RangeSync(uint64_t offset, uint64_t nbytes) override { 27002: return target_->RangeSync(offset, nbytes); 27002: } 27002: 27002: void PrepareWrite(size_t offset, size_t len) override { 27002: target_->PrepareWrite(offset, len); 27002: } 27002: 27002: Status Allocate(uint64_t offset, uint64_t len) override { 27002: return target_->Allocate(offset, len); 27002: } 27002: 27002: private: 27002: WritableFile* target_; 27002: }; 27002: 27002: class RandomRWFileWrapper : public RandomRWFile { 27002: public: 27002: explicit RandomRWFileWrapper(RandomRWFile* target) : target_(target) {} 27002: 27002: bool use_direct_io() const override { return target_->use_direct_io(); } 27002: size_t GetRequiredBufferAlignment() const override { 27002: return target_->GetRequiredBufferAlignment(); 27002: } 27002: Status Write(uint64_t offset, const Slice& data) override { 27002: return target_->Write(offset, data); 27002: } 27002: Status Read(uint64_t offset, size_t n, Slice* result, 27002: char* scratch) const override { 27002: return target_->Read(offset, n, result, scratch); 27002: } 27002: Status Flush() override { return target_->Flush(); } 27002: Status Sync() override { return target_->Sync(); } 27002: Status Fsync() override { return target_->Fsync(); } 27002: Status Close() override { return target_->Close(); } 27002: 27002: private: 27002: RandomRWFile* target_; 27002: }; 27002: 27002: class DirectoryWrapper : public Directory { 27002: public: 27002: explicit DirectoryWrapper(Directory* target) : target_(target) {} 27002: 27002: Status Fsync() override { return target_->Fsync(); } 27002: Status Close() override { return target_->Close(); } 27002: size_t GetUniqueId(char* id, size_t max_size) const override { 27002: return target_->GetUniqueId(id, max_size); 27002: } 27002: 27002: private: 27002: Directory* target_; 27002: }; 27002: 27002: class LoggerWrapper : public Logger { 27002: public: 27002: explicit LoggerWrapper(Logger* target) : target_(target) {} 27002: 27002: Status Close() override { return target_->Close(); } 27002: void LogHeader(const char* format, va_list ap) override { 27002: return target_->LogHeader(format, ap); 27002: } 27002: void Logv(const char* format, va_list ap) override { 27002: return target_->Logv(format, ap); 27002: } 27002: void Logv(const InfoLogLevel log_level, const char* format, 27002: va_list ap) override { 27002: return target_->Logv(log_level, format, ap); 27002: } 27002: size_t GetLogFileSize() const override { return target_->GetLogFileSize(); } 27002: void Flush() override { return target_->Flush(); } 27002: InfoLogLevel GetInfoLogLevel() const override { 27002: return target_->GetInfoLogLevel(); 27002: } 27002: void SetInfoLogLevel(const InfoLogLevel log_level) override { 27002: return target_->SetInfoLogLevel(log_level); 27002: } 27002: 27002: private: 27002: Logger* target_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: Env* NewMemEnv(Env* base_env); 27002: 27002: 27002: 27002: 27002: Env* NewTimedEnv(Env* base_env); 27002: 27002: 27002: 27002: 27002: Status NewEnvLogger(const std::string& fname, Env* env, 27002: std::shared_ptr* result); 27002: 27002: 27002: 27002: std::unique_ptr NewCompositeEnv(const std::shared_ptr& fs); 27002: 27002: } 27002: # 26 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 27002: 27002: 27002: # 1 "/usr/include/c++/12/cassert" 1 3 27002: # 41 "/usr/include/c++/12/cassert" 3 27002: 27002: # 42 "/usr/include/c++/12/cassert" 3 27002: 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 45 "/usr/include/c++/12/cassert" 2 3 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 2 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 27002: namespace rocksdb { 27002: 27002: 27002: constexpr char kUnknownFileChecksum[] = ""; 27002: 27002: constexpr char kUnknownFileChecksumFuncName[] = "Unknown"; 27002: 27002: 27002: 27002: constexpr char kStandardDbFileChecksumFuncName[] = "FileChecksumCrc32c"; 27002: 27002: struct FileChecksumGenContext { 27002: std::string file_name; 27002: 27002: 27002: 27002: 27002: std::string requested_checksum_func_name; 27002: }; 27002: # 50 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 27002: class FileChecksumGenerator { 27002: public: 27002: virtual ~FileChecksumGenerator() {} 27002: 27002: 27002: 27002: 27002: virtual void Update(const char* data, size_t n) = 0; 27002: 27002: 27002: virtual void Finalize() = 0; 27002: 27002: 27002: 27002: virtual std::string GetChecksum() const = 0; 27002: 27002: 27002: virtual const char* Name() const = 0; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FileChecksumGenFactory : public Customizable { 27002: public: 27002: ~FileChecksumGenFactory() override {} 27002: static const char* Type() { return "FileChecksumGenFactory"; } 27002: static Status CreateFromString( 27002: const ConfigOptions& options, const std::string& value, 27002: std::shared_ptr* result); 27002: 27002: 27002: virtual std::unique_ptr CreateFileChecksumGenerator( 27002: const FileChecksumGenContext& context) = 0; 27002: 27002: 27002: const char* Name() const override = 0; 27002: }; 27002: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 27002: class FileChecksumList { 27002: public: 27002: virtual ~FileChecksumList() {} 27002: 27002: 27002: virtual void reset() = 0; 27002: 27002: 27002: virtual size_t size() const = 0; 27002: 27002: 27002: 27002: 27002: virtual Status GetAllFileChecksums( 27002: std::vector* file_numbers, std::vector* checksums, 27002: std::vector* checksum_func_names) = 0; 27002: 27002: 27002: 27002: virtual Status SearchOneFileChecksum(uint64_t file_number, 27002: std::string* checksum, 27002: std::string* checksum_func_name) = 0; 27002: 27002: 27002: virtual Status InsertOneFileChecksum( 27002: uint64_t file_number, const std::string& checksum, 27002: const std::string& checksum_func_name) = 0; 27002: 27002: 27002: virtual Status RemoveOneFileChecksum(uint64_t file_number) = 0; 27002: }; 27002: 27002: 27002: extern FileChecksumList* NIn file included from /usr/include/c++/12/map:61, from /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/statistics.h:11, from /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/cache.h:33, from /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/advanced_options.h:13, from /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h:20, from /build/reproducible-path/rocksdb-7.8.3/port/port_posix.h:16, from /build/reproducible-path/rocksdb-7.8.3/port/port.h:18, from /build/reproducible-path/rocksdb-7.8.3/util/coding.h:22, from /build/reproducible-path/rocksdb-7.8.3/db/dbformat.h:21, from /build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h:14: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {long long unsigned int&, std::unique_ptr >}; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {long long unsigned int&, std::unique_ptr >}; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/12/bits/stl_map.h:599:22, inlined from 'std::map > rocksdb::FragmentedRangeTombstoneIterator::SplitBySnapshot(const std::vector&)' at /build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.cc:490:21: /usr/include/c++/12/bits/stl_map.h:638: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 638 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 639 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ewFileChecksumList(); 27002: # 143 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_checksum.h" 27002: extern std::shared_ptr 27002: GetFileChecksumGenCrc32cFactory(); 27002: 27002: } 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/chrono" 1 3 27002: # 33 "/usr/include/c++/12/chrono" 3 27002: 27002: # 34 "/usr/include/c++/12/chrono" 3 27002: # 45 "/usr/include/c++/12/chrono" 3 27002: 27002: # 45 "/usr/include/c++/12/chrono" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 62 "/usr/include/c++/12/chrono" 3 27002: namespace chrono 27002: { 27002: # 2058 "/usr/include/c++/12/chrono" 3 27002: } 27002: # 2181 "/usr/include/c++/12/chrono" 3 27002: 27002: } 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 2 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_job_stats.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 8 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_job_stats.h" 2 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_job_stats.h" 27002: namespace rocksdb { 27002: struct CompactionJobStats { 27002: CompactionJobStats() { Reset(); } 27002: void Reset(); 27002: 27002: void Add(const CompactionJobStats& stats); 27002: 27002: 27002: uint64_t elapsed_micros; 27002: 27002: 27002: uint64_t cpu_micros; 27002: 27002: 27002: uint64_t num_input_records; 27002: 27002: uint64_t num_blobs_read; 27002: 27002: size_t num_input_files; 27002: 27002: size_t num_input_files_at_output_level; 27002: 27002: 27002: uint64_t num_output_records; 27002: 27002: size_t num_output_files; 27002: 27002: size_t num_output_files_blob; 27002: 27002: 27002: bool is_full_compaction; 27002: 27002: bool is_manual_compaction; 27002: 27002: 27002: uint64_t total_input_bytes; 27002: 27002: uint64_t total_blob_bytes_read; 27002: 27002: uint64_t total_output_bytes; 27002: 27002: uint64_t total_output_bytes_blob; 27002: 27002: 27002: 27002: 27002: uint64_t num_records_replaced; 27002: 27002: 27002: uint64_t total_input_raw_key_bytes; 27002: 27002: uint64_t total_input_raw_value_bytes; 27002: 27002: 27002: 27002: uint64_t num_input_deletion_records; 27002: 27002: 27002: 27002: uint64_t num_expired_deletion_records; 27002: 27002: 27002: 27002: uint64_t num_corrupt_keys; 27002: 27002: 27002: 27002: 27002: 27002: uint64_t file_write_nanos; 27002: 27002: 27002: uint64_t file_range_sync_nanos; 27002: 27002: 27002: uint64_t file_fsync_nanos; 27002: 27002: 27002: uint64_t file_prepare_write_nanos; 27002: 27002: 27002: 27002: static const size_t kMaxPrefixLength = 8; 27002: 27002: std::string smallest_output_key_prefix; 27002: std::string largest_output_key_prefix; 27002: 27002: 27002: uint64_t num_single_del_fallthru; 27002: 27002: 27002: uint64_t num_single_del_mismatch; 27002: 27002: 27002: }; 27002: } 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 2 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 1 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cstring" 1 3 27002: # 39 "/usr/include/c++/12/cstring" 3 27002: 27002: # 40 "/usr/include/c++/12/cstring" 3 27002: # 22 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class IOStatus : public Status { 27002: public: 27002: using Code = Status::Code; 27002: using SubCode = Status::SubCode; 27002: 27002: enum IOErrorScope : unsigned char { 27002: kIOErrorScopeFileSystem, 27002: kIOErrorScopeFile, 27002: kIOErrorScopeRange, 27002: kIOErrorScopeMax, 27002: }; 27002: 27002: 27002: IOStatus() : IOStatus(kOk, kNone) {} 27002: ~IOStatus() {} 27002: 27002: 27002: IOStatus(const IOStatus& s); 27002: IOStatus& operator=(const IOStatus& s); 27002: IOStatus(IOStatus&& s) noexcept; 27002: IOStatus& operator=(IOStatus&& s) noexcept; 27002: bool operator==(const IOStatus& rhs) const; 27002: bool operator!=(const IOStatus& rhs) const; 27002: 27002: void SetRetryable(bool retryable) { retryable_ = retryable; } 27002: void SetDataLoss(bool data_loss) { data_loss_ = data_loss; } 27002: void SetScope(IOErrorScope scope) { 27002: scope_ = static_cast(scope); 27002: } 27002: 27002: bool GetRetryable() const { return retryable_; } 27002: bool GetDataLoss() const { return data_loss_; } 27002: IOErrorScope GetScope() const { return static_cast(scope_); } 27002: 27002: 27002: static IOStatus OK() { return IOStatus(); } 27002: 27002: static IOStatus NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return IOStatus(kNotSupported, msg, msg2); 27002: } 27002: static IOStatus NotSupported(SubCode msg = kNone) { 27002: return IOStatus(kNotSupported, msg); 27002: } 27002: 27002: 27002: static IOStatus NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return IOStatus(kNotFound, msg, msg2); 27002: } 27002: 27002: static IOStatus NotFound(SubCode msg = kNone) { 27002: return IOStatus(kNotFound, msg); 27002: } 27002: 27002: static IOStatus Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return IOStatus(kCorruption, msg, msg2); 27002: } 27002: static IOStatus Corruption(SubCode msg = kNone) { 27002: return IOStatus(kCorruption, msg); 27002: } 27002: 27002: static IOStatus InvalidArgument(const Slice& msg, 27002: const Slice& msg2 = Slice()) { 27002: return IOStatus(kInvalidArgument, msg, msg2); 27002: } 27002: static IOStatus InvalidArgument(SubCode msg = kNone) { 27002: return IOStatus(kInvalidArgument, msg); 27002: } 27002: 27002: static IOStatus IOError(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return IOStatus(kIOError, msg, msg2); 27002: } 27002: static IOStatus IOError(SubCode msg = kNone) { 27002: return IOStatus(kIOError, msg); 27002: } 27002: 27002: static IOStatus Busy(SubCode msg = kNone) { return IOStatus(kBusy, msg); } 27002: static IOStatus Busy(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return IOStatus(kBusy, msg, msg2); 27002: } 27002: 27002: static IOStatus TimedOut(SubCode msg = kNone) { 27002: return IOStatus(kTimedOut, msg); 27002: } 27002: static IOStatus TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return IOStatus(kTimedOut, msg, msg2); 27002: } 27002: 27002: static IOStatus NoSpace() { return IOStatus(kIOError, kNoSpace); } 27002: static IOStatus NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return IOStatus(kIOError, kNoSpace, msg, msg2); 27002: } 27002: 27002: static IOStatus PathNotFound() { return IOStatus(kIOError, kPathNotFound); } 27002: static IOStatus PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return IOStatus(kIOError, kPathNotFound, msg, msg2); 27002: } 27002: 27002: static IOStatus IOFenced() { return IOStatus(kIOError, kIOFenced); } 27002: static IOStatus IOFenced(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return IOStatus(kIOError, kIOFenced, msg, msg2); 27002: } 27002: 27002: static IOStatus Aborted(SubCode msg = kNone) { 27002: return IOStatus(kAborted, msg); 27002: } 27002: static IOStatus Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 27002: return IOStatus(kAborted, msg, msg2); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: private: 27002: friend IOStatus status_to_io_status(Status&&); 27002: 27002: explicit IOStatus(Code _code, SubCode _subcode = kNone) 27002: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) {} 27002: 27002: IOStatus(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2); 27002: IOStatus(Code _code, const Slice& msg, const Slice& msg2) 27002: : IOStatus(_code, kNone, msg, msg2) {} 27002: }; 27002: 27002: inline IOStatus::IOStatus(Code _code, SubCode _subcode, const Slice& msg, 27002: const Slice& msg2) 27002: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) { 27002: 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 27002: (static_cast ( 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 27002: code_ != kOk 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 27002: "code_ != kOk" 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 27002: , "./include/rocksdb/io_status.h", 153, __extension__ __PRETTY_FUNCTION__)) 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 27002: ; 27002: 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 27002: (static_cast ( 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 27002: subcode_ != kMaxSubCode 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 27002: "subcode_ != kMaxSubCode" 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 3 4 27002: , "./include/rocksdb/io_status.h", 154, __extension__ __PRETTY_FUNCTION__)) 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/io_status.h" 27002: ; 27002: const size_t len1 = msg.size(); 27002: const size_t len2 = msg2.size(); 27002: const size_t size = len1 + (len2 ? (2 + len2) : 0); 27002: char* const result = new char[size + 1]; 27002: memcpy(result, msg.data(), len1); 27002: if (len2) { 27002: result[len1] = ':'; 27002: result[len1 + 1] = ' '; 27002: memcpy(result + len1 + 2, msg2.data(), len2); 27002: } 27002: result[size] = '\0'; 27002: state_.reset(result); 27002: } 27002: 27002: inline IOStatus::IOStatus(const IOStatus& s) : Status(s.code_, s.subcode_) { 27002: 27002: 27002: 27002: retryable_ = s.retryable_; 27002: data_loss_ = s.data_loss_; 27002: scope_ = s.scope_; 27002: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 27002: } 27002: inline IOStatus& IOStatus::operator=(const IOStatus& s) { 27002: 27002: 27002: if (this != &s) { 27002: 27002: 27002: 27002: 27002: code_ = s.code_; 27002: subcode_ = s.subcode_; 27002: retryable_ = s.retryable_; 27002: data_loss_ = s.data_loss_; 27002: scope_ = s.scope_; 27002: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 27002: } 27002: return *this; 27002: } 27002: 27002: inline IOStatus::IOStatus(IOStatus&& s) noexcept : IOStatus() { 27002: *this = std::move(s); 27002: } 27002: 27002: inline IOStatus& IOStatus::operator=(IOStatus&& s) noexcept { 27002: if (this != &s) { 27002: 27002: 27002: 27002: 27002: code_ = std::move(s.code_); 27002: s.code_ = kOk; 27002: subcode_ = std::move(s.subcode_); 27002: s.subcode_ = kNone; 27002: retryable_ = s.retryable_; 27002: data_loss_ = s.data_loss_; 27002: scope_ = s.scope_; 27002: s.scope_ = kIOErrorScopeFileSystem; 27002: state_ = std::move(s.state_); 27002: } 27002: return *this; 27002: } 27002: 27002: inline bool IOStatus::operator==(const IOStatus& rhs) const { 27002: 27002: 27002: 27002: 27002: return (code_ == rhs.code_); 27002: } 27002: 27002: inline bool IOStatus::operator!=(const IOStatus& rhs) const { 27002: 27002: 27002: 27002: 27002: return !(*this == rhs); 27002: } 27002: 27002: inline IOStatus status_to_io_status(Status&& status) { 27002: IOStatus io_s; 27002: Status& s = io_s; 27002: s = std::move(status); 27002: return io_s; 27002: } 27002: 27002: } 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_properties.h" 1 27002: 27002: 27002: 27002: 27002: 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_properties.h" 27002: namespace rocksdb { 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_properties.h" 27002: using UserCollectedProperties = std::map; 27002: 27002: 27002: struct TablePropertiesNames { 27002: static const std::string kDbId; 27002: static const std::string kDbSessionId; 27002: static const std::string kDbHostId; 27002: static const std::string kOriginalFileNumber; 27002: static const std::string kDataSize; 27002: static const std::string kIndexSize; 27002: static const std::string kIndexPartitions; 27002: static const std::string kTopLevelIndexSize; 27002: static const std::string kIndexKeyIsUserKey; 27002: static const std::string kIndexValueIsDeltaEncoded; 27002: static const std::string kFilterSize; 27002: static const std::string kRawKeySize; 27002: static const std::string kRawValueSize; 27002: static const std::string kNumDataBlocks; 27002: static const std::string kNumEntries; 27002: static const std::string kNumFilterEntries; 27002: static const std::string kDeletedKeys; 27002: static const std::string kMergeOperands; 27002: static const std::string kNumRangeDeletions; 27002: static const std::string kFormatVersion; 27002: static const std::string kFixedKeyLen; 27002: static const std::string kFilterPolicy; 27002: static const std::string kColumnFamilyName; 27002: static const std::string kColumnFamilyId; 27002: static const std::string kComparator; 27002: static const std::string kMergeOperator; 27002: static const std::string kPrefixExtractorName; 27002: static const std::string kPropertyCollectors; 27002: static const std::string kCompression; 27002: static const std::string kCompressionOptions; 27002: static const std::string kCreationTime; 27002: static const std::string kOldestKeyTime; 27002: static const std::string kFileCreationTime; 27002: static const std::string kSlowCompressionEstimatedDataSize; 27002: static const std::string kFastCompressionEstimatedDataSize; 27002: static const std::string kSequenceNumberTimeMapping; 27002: }; 27002: # 88 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_properties.h" 27002: class TablePropertiesCollector { 27002: public: 27002: virtual ~TablePropertiesCollector() {} 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status Add(const Slice& , const Slice& ) { 27002: return Status::InvalidArgument( 27002: "TablePropertiesCollector::Add() deprecated."); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual Status AddUserKey(const Slice& key, const Slice& value, 27002: EntryType , SequenceNumber , 27002: uint64_t ) { 27002: 27002: return Add(key, value); 27002: } 27002: 27002: 27002: virtual void BlockAdd(uint64_t , 27002: uint64_t , 27002: uint64_t ) { 27002: 27002: return; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual Status Finish(UserCollectedProperties* properties) = 0; 27002: 27002: 27002: 27002: virtual UserCollectedProperties GetReadableProperties() const = 0; 27002: 27002: 27002: virtual const char* Name() const = 0; 27002: 27002: 27002: virtual bool NeedCompact() const { return false; } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class TablePropertiesCollectorFactory : public Customizable { 27002: public: 27002: struct Context { 27002: uint32_t column_family_id; 27002: 27002: 27002: int level_at_creation = kUnknownLevelAtCreation; 27002: static const uint32_t kUnknownColumnFamily; 27002: static const int kUnknownLevelAtCreation = -1; 27002: }; 27002: 27002: ~TablePropertiesCollectorFactory() override {} 27002: static const char* Type() { return "TablePropertiesCollectorFactory"; } 27002: static Status CreateFromString( 27002: const ConfigOptions& options, const std::string& value, 27002: std::shared_ptr* result); 27002: 27002: 27002: virtual TablePropertiesCollector* CreateTablePropertiesCollector( 27002: TablePropertiesCollectorFactory::Context context) = 0; 27002: 27002: 27002: const char* Name() const override = 0; 27002: 27002: 27002: 27002: 27002: virtual std::string ToString() const { return Name(); } 27002: }; 27002: 27002: 27002: 27002: struct TableProperties { 27002: public: 27002: 27002: 27002: uint64_t orig_file_number = 0; 27002: 27002: uint64_t data_size = 0; 27002: 27002: uint64_t index_size = 0; 27002: 27002: uint64_t index_partitions = 0; 27002: 27002: uint64_t top_level_index_size = 0; 27002: 27002: 27002: uint64_t index_key_is_user_key = 0; 27002: 27002: uint64_t index_value_is_delta_encoded = 0; 27002: 27002: uint64_t filter_size = 0; 27002: 27002: uint64_t raw_key_size = 0; 27002: 27002: uint64_t raw_value_size = 0; 27002: 27002: uint64_t num_data_blocks = 0; 27002: 27002: uint64_t num_entries = 0; 27002: 27002: uint64_t num_filter_entries = 0; 27002: 27002: uint64_t num_deletions = 0; 27002: 27002: uint64_t num_merge_operands = 0; 27002: 27002: uint64_t num_range_deletions = 0; 27002: 27002: uint64_t format_version = 0; 27002: 27002: uint64_t fixed_key_len = 0; 27002: 27002: 27002: uint64_t column_family_id = rocksdb:: 27002: TablePropertiesCollectorFactory::Context::kUnknownColumnFamily; 27002: 27002: 27002: 27002: uint64_t creation_time = 0; 27002: 27002: 27002: uint64_t oldest_key_time = 0; 27002: 27002: uint64_t file_creation_time = 0; 27002: 27002: 27002: 27002: uint64_t slow_compression_estimated_data_size = 0; 27002: 27002: 27002: 27002: uint64_t fast_compression_estimated_data_size = 0; 27002: 27002: 27002: 27002: uint64_t external_sst_file_global_seqno_offset = 0; 27002: 27002: 27002: 27002: 27002: std::string db_id; 27002: 27002: 27002: 27002: 27002: 27002: std::string db_session_id; 27002: 27002: 27002: 27002: 27002: 27002: std::string db_host_id; 27002: 27002: 27002: 27002: std::string column_family_name; 27002: 27002: 27002: 27002: std::string filter_policy_name; 27002: 27002: 27002: std::string comparator_name; 27002: 27002: 27002: 27002: std::string merge_operator_name; 27002: 27002: 27002: 27002: std::string prefix_extractor_name; 27002: 27002: 27002: 27002: 27002: std::string property_collectors_names; 27002: 27002: 27002: std::string compression_name; 27002: 27002: 27002: std::string compression_options; 27002: 27002: 27002: std::string seqno_to_time_mapping; 27002: 27002: 27002: UserCollectedProperties user_collected_properties; 27002: UserCollectedProperties readable_properties; 27002: 27002: 27002: 27002: std::string ToString(const std::string& prop_delim = "; ", 27002: const std::string& kv_delim = "=") const; 27002: 27002: 27002: 27002: void Add(const TableProperties& tp); 27002: 27002: 27002: 27002: 27002: std::map GetAggregatablePropertiesAsMap() const; 27002: 27002: 27002: 27002: std::size_t ApproximateMemoryUsage() const; 27002: }; 27002: # 323 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_properties.h" 27002: extern uint64_t GetDeletedKeys(const UserCollectedProperties& props); 27002: extern uint64_t GetMergeOperands(const UserCollectedProperties& props, 27002: bool* property_present); 27002: 27002: } 27002: # 22 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: using TablePropertiesCollection = 27002: std::unordered_map>; 27002: 27002: class DB; 27002: class ColumnFamilyHandle; 27002: class Status; 27002: struct CompactionJobStats; 27002: 27002: struct FileCreationBriefInfo { 27002: FileCreationBriefInfo() = default; 27002: FileCreationBriefInfo(const std::string& _db_name, 27002: const std::string& _cf_name, 27002: const std::string& _file_path, int _job_id) 27002: : db_name(_db_name), 27002: cf_name(_cf_name), 27002: file_path(_file_path), 27002: job_id(_job_id) {} 27002: 27002: std::string db_name; 27002: 27002: std::string cf_name; 27002: 27002: std::string file_path; 27002: 27002: 27002: int job_id = 0; 27002: }; 27002: 27002: struct TableFileCreationBriefInfo : public FileCreationBriefInfo { 27002: 27002: TableFileCreationReason reason; 27002: }; 27002: 27002: struct TableFileCreationInfo : public TableFileCreationBriefInfo { 27002: TableFileCreationInfo() = default; 27002: explicit TableFileCreationInfo(TableProperties&& prop) 27002: : table_properties(prop) {} 27002: 27002: uint64_t file_size; 27002: 27002: TableProperties table_properties; 27002: 27002: Status status; 27002: 27002: std::string file_checksum; 27002: 27002: std::string file_checksum_func_name; 27002: }; 27002: 27002: struct BlobFileCreationBriefInfo : public FileCreationBriefInfo { 27002: BlobFileCreationBriefInfo(const std::string& _db_name, 27002: const std::string& _cf_name, 27002: const std::string& _file_path, int _job_id, 27002: BlobFileCreationReason _reason) 27002: : FileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id), 27002: reason(_reason) {} 27002: 27002: BlobFileCreationReason reason; 27002: }; 27002: 27002: struct BlobFileCreationInfo : public BlobFileCreationBriefInfo { 27002: BlobFileCreationInfo(const std::string& _db_name, const std::string& _cf_name, 27002: const std::string& _file_path, int _job_id, 27002: BlobFileCreationReason _reason, 27002: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 27002: Status _status, const std::string& _file_checksum, 27002: const std::string& _file_checksum_func_name) 27002: : BlobFileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id, 27002: _reason), 27002: total_blob_count(_total_blob_count), 27002: total_blob_bytes(_total_blob_bytes), 27002: status(_status), 27002: file_checksum(_file_checksum), 27002: file_checksum_func_name(_file_checksum_func_name) {} 27002: 27002: 27002: uint64_t total_blob_count; 27002: 27002: uint64_t total_blob_bytes; 27002: 27002: Status status; 27002: 27002: std::string file_checksum; 27002: 27002: std::string file_checksum_func_name; 27002: }; 27002: 27002: enum class CompactionReason : int { 27002: kUnknown = 0, 27002: 27002: kLevelL0FilesNum, 27002: 27002: kLevelMaxLevelSize, 27002: 27002: kUniversalSizeAmplification, 27002: 27002: kUniversalSizeRatio, 27002: 27002: kUniversalSortedRunNum, 27002: 27002: kFIFOMaxSize, 27002: 27002: kFIFOReduceNumFiles, 27002: 27002: kFIFOTtl, 27002: 27002: kManualCompaction, 27002: 27002: kFilesMarkedForCompaction, 27002: 27002: 27002: kBottommostFiles, 27002: 27002: kTtl, 27002: 27002: 27002: kFlush, 27002: 27002: kExternalSstIngestion, 27002: 27002: kPeriodicCompaction, 27002: 27002: kChangeTemperature, 27002: 27002: kForcedBlobGC, 27002: 27002: 27002: kRoundRobinTtl, 27002: 27002: kNumOfReasons, 27002: }; 27002: 27002: enum class FlushReason : int { 27002: kOthers = 0x00, 27002: kGetLiveFiles = 0x01, 27002: kShutDown = 0x02, 27002: kExternalFileIngestion = 0x03, 27002: kManualCompaction = 0x04, 27002: kWriteBufferManager = 0x05, 27002: kWriteBufferFull = 0x06, 27002: kTest = 0x07, 27002: kDeleteFiles = 0x08, 27002: kAutoCompaction = 0x09, 27002: kManualFlush = 0x0a, 27002: kErrorRecovery = 0xb, 27002: 27002: 27002: kErrorRecoveryRetryFlush = 0xc, 27002: kWalFull = 0xd, 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: enum class BackgroundErrorReason { 27002: kFlush, 27002: kCompaction, 27002: kWriteCallback, 27002: kMemTable, 27002: kManifestWrite, 27002: kFlushNoWAL, 27002: kManifestWriteNoWAL, 27002: }; 27002: 27002: enum class WriteStallCondition { 27002: kNormal, 27002: kDelayed, 27002: kStopped, 27002: }; 27002: 27002: struct WriteStallInfo { 27002: 27002: std::string cf_name; 27002: 27002: struct { 27002: WriteStallCondition cur; 27002: WriteStallCondition prev; 27002: } condition; 27002: }; 27002: 27002: 27002: 27002: struct FileDeletionInfo { 27002: FileDeletionInfo() = default; 27002: 27002: FileDeletionInfo(const std::string& _db_name, const std::string& _file_path, 27002: int _job_id, Status _status) 27002: : db_name(_db_name), 27002: file_path(_file_path), 27002: job_id(_job_id), 27002: status(_status) {} 27002: 27002: std::string db_name; 27002: 27002: std::string file_path; 27002: 27002: int job_id = 0; 27002: 27002: Status status; 27002: }; 27002: 27002: struct TableFileDeletionInfo : public FileDeletionInfo {}; 27002: 27002: struct BlobFileDeletionInfo : public FileDeletionInfo { 27002: BlobFileDeletionInfo(const std::string& _db_name, 27002: const std::string& _file_path, int _job_id, 27002: Status _status) 27002: : FileDeletionInfo(_db_name, _file_path, _job_id, _status) {} 27002: }; 27002: 27002: enum class FileOperationType { 27002: kRead, 27002: kWrite, 27002: kTruncate, 27002: kClose, 27002: kFlush, 27002: kSync, 27002: kFsync, 27002: kRangeSync, 27002: kAppend, 27002: kPositionedAppend, 27002: kOpen 27002: }; 27002: 27002: struct FileOperationInfo { 27002: using Duration = std::chrono::nanoseconds; 27002: using SteadyTimePoint = 27002: std::chrono::time_point; 27002: using SystemTimePoint = 27002: std::chrono::time_point; 27002: using StartTimePoint = std::pair; 27002: using FinishTimePoint = SteadyTimePoint; 27002: 27002: FileOperationType type; 27002: const std::string& path; 27002: 27002: 27002: Temperature temperature; 27002: uint64_t offset; 27002: size_t length; 27002: const Duration duration; 27002: const SystemTimePoint& start_ts; 27002: Status status; 27002: 27002: FileOperationInfo(const FileOperationType _type, const std::string& _path, 27002: const StartTimePoint& _start_ts, 27002: const FinishTimePoint& _finish_ts, const Status& _status, 27002: const Temperature _temperature = Temperature::kUnknown) 27002: : type(_type), 27002: path(_path), 27002: temperature(_temperature), 27002: duration(std::chrono::duration_cast( 27002: _finish_ts - _start_ts.second)), 27002: start_ts(_start_ts.first), 27002: status(_status) {} 27002: static StartTimePoint StartNow() { 27002: return std::make_pair( 27002: std::chrono::system_clock::now(), std::chrono::steady_clock::now()); 27002: } 27002: static FinishTimePoint FinishNow() { 27002: return std::chrono::steady_clock::now(); 27002: } 27002: }; 27002: 27002: struct BlobFileInfo { 27002: BlobFileInfo(const std::string& _blob_file_path, 27002: const uint64_t _blob_file_number) 27002: : blob_file_path(_blob_file_path), blob_file_number(_blob_file_number) {} 27002: 27002: std::string blob_file_path; 27002: uint64_t blob_file_number; 27002: }; 27002: 27002: struct BlobFileAdditionInfo : public BlobFileInfo { 27002: BlobFileAdditionInfo(const std::string& _blob_file_path, 27002: const uint64_t _blob_file_number, 27002: const uint64_t _total_blob_count, 27002: const uint64_t _total_blob_bytes) 27002: : BlobFileInfo(_blob_file_path, _blob_file_number), 27002: total_blob_count(_total_blob_count), 27002: total_blob_bytes(_total_blob_bytes) {} 27002: uint64_t total_blob_count; 27002: uint64_t total_blob_bytes; 27002: }; 27002: 27002: struct BlobFileGarbageInfo : public BlobFileInfo { 27002: BlobFileGarbageInfo(const std::string& _blob_file_path, 27002: const uint64_t _blob_file_number, 27002: const uint64_t _garbage_blob_count, 27002: const uint64_t _garbage_blob_bytes) 27002: : BlobFileInfo(_blob_file_path, _blob_file_number), 27002: garbage_blob_count(_garbage_blob_count), 27002: garbage_blob_bytes(_garbage_blob_bytes) {} 27002: uint64_t garbage_blob_count; 27002: uint64_t garbage_blob_bytes; 27002: }; 27002: 27002: struct FlushJobInfo { 27002: 27002: uint32_t cf_id; 27002: 27002: std::string cf_name; 27002: 27002: std::string file_path; 27002: 27002: uint64_t file_number; 27002: 27002: uint64_t oldest_blob_file_number; 27002: 27002: uint64_t thread_id; 27002: 27002: int job_id; 27002: 27002: 27002: 27002: 27002: bool triggered_writes_slowdown; 27002: 27002: 27002: 27002: 27002: bool triggered_writes_stop; 27002: 27002: SequenceNumber smallest_seqno; 27002: 27002: SequenceNumber largest_seqno; 27002: 27002: TableProperties table_properties; 27002: 27002: FlushReason flush_reason; 27002: 27002: 27002: CompressionType blob_compression_type; 27002: 27002: 27002: std::vector blob_file_addition_infos; 27002: }; 27002: 27002: struct CompactionFileInfo { 27002: 27002: int level; 27002: 27002: 27002: uint64_t file_number; 27002: 27002: 27002: uint64_t oldest_blob_file_number; 27002: }; 27002: 27002: struct SubcompactionJobInfo { 27002: ~SubcompactionJobInfo() { status.PermitUncheckedError(); } 27002: 27002: uint32_t cf_id; 27002: 27002: std::string cf_name; 27002: 27002: Status status; 27002: 27002: uint64_t thread_id; 27002: 27002: int job_id; 27002: 27002: 27002: 27002: 27002: 27002: int subcompaction_job_id; 27002: 27002: int base_input_level; 27002: 27002: int output_level; 27002: 27002: 27002: CompactionReason compaction_reason; 27002: 27002: 27002: CompressionType compression; 27002: 27002: 27002: CompactionJobStats stats; 27002: 27002: 27002: CompressionType blob_compression_type; 27002: }; 27002: 27002: struct CompactionJobInfo { 27002: ~CompactionJobInfo() { status.PermitUncheckedError(); } 27002: 27002: uint32_t cf_id; 27002: 27002: std::string cf_name; 27002: 27002: Status status; 27002: 27002: uint64_t thread_id; 27002: 27002: int job_id; 27002: 27002: 27002: int base_input_level; 27002: 27002: int output_level; 27002: # 437 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: std::vector input_files; 27002: 27002: 27002: std::vector input_file_infos; 27002: 27002: 27002: std::vector output_files; 27002: 27002: 27002: std::vector output_file_infos; 27002: 27002: 27002: 27002: TablePropertiesCollection table_properties; 27002: 27002: 27002: CompactionReason compaction_reason; 27002: 27002: 27002: CompressionType compression; 27002: 27002: 27002: CompactionJobStats stats; 27002: 27002: 27002: CompressionType blob_compression_type; 27002: 27002: 27002: 27002: std::vector blob_file_addition_infos; 27002: 27002: 27002: 27002: std::vector blob_file_garbage_infos; 27002: }; 27002: 27002: struct MemTableInfo { 27002: 27002: std::string cf_name; 27002: 27002: 27002: SequenceNumber first_seqno; 27002: 27002: 27002: 27002: 27002: SequenceNumber earliest_seqno; 27002: 27002: uint64_t num_entries; 27002: 27002: uint64_t num_deletes; 27002: }; 27002: 27002: struct ExternalFileIngestionInfo { 27002: 27002: std::string cf_name; 27002: 27002: std::string external_file_path; 27002: 27002: std::string internal_file_path; 27002: 27002: SequenceNumber global_seqno; 27002: 27002: TableProperties table_properties; 27002: }; 27002: 27002: 27002: struct BackgroundErrorRecoveryInfo { 27002: 27002: Status old_bg_error; 27002: 27002: 27002: 27002: Status new_bg_error; 27002: }; 27002: 27002: struct IOErrorInfo { 27002: IOErrorInfo(const IOStatus& _io_status, FileOperationType _operation, 27002: const std::string& _file_path, size_t _length, uint64_t _offset) 27002: : io_status(_io_status), 27002: operation(_operation), 27002: file_path(_file_path), 27002: length(_length), 27002: offset(_offset) {} 27002: 27002: IOStatus io_status; 27002: FileOperationType operation; 27002: std::string file_path; 27002: size_t length; 27002: uint64_t offset; 27002: }; 27002: # 560 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: class EventListener : public Customizable { 27002: public: 27002: static const char* Type() { return "EventListener"; } 27002: static Status CreateFromString(const ConfigOptions& options, 27002: const std::string& id, 27002: std::shared_ptr* result); 27002: const char* Name() const override { 27002: 27002: 27002: return ""; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void OnFlushCompleted(DB* , 27002: const FlushJobInfo& ) {} 27002: # 588 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnFlushBegin(DB* , 27002: const FlushJobInfo& ) {} 27002: # 602 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnTableFileDeleted(const TableFileDeletionInfo& ) {} 27002: # 611 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnCompactionBegin(DB* , const CompactionJobInfo& ) {} 27002: # 626 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnCompactionCompleted(DB* , 27002: const CompactionJobInfo& ) {} 27002: # 646 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnSubcompactionBegin(const SubcompactionJobInfo& ) {} 27002: # 664 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnSubcompactionCompleted(const SubcompactionJobInfo& ) {} 27002: # 681 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnTableFileCreated(const TableFileCreationInfo& ) {} 27002: # 690 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnTableFileCreationStarted( 27002: const TableFileCreationBriefInfo& ) {} 27002: # 703 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnMemTableSealed(const MemTableInfo& ) {} 27002: # 713 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnColumnFamilyHandleDeletionStarted( 27002: ColumnFamilyHandle* ) {} 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void OnExternalFileIngested( 27002: DB* , const ExternalFileIngestionInfo& ) {} 27002: # 736 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnBackgroundError(BackgroundErrorReason , 27002: Status* ) {} 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void OnStallConditionsChanged(const WriteStallInfo& ) {} 27002: 27002: 27002: 27002: virtual void OnFileReadFinish(const FileOperationInfo& ) {} 27002: 27002: 27002: 27002: virtual void OnFileWriteFinish(const FileOperationInfo& ) {} 27002: 27002: 27002: 27002: virtual void OnFileFlushFinish(const FileOperationInfo& ) {} 27002: 27002: 27002: 27002: virtual void OnFileSyncFinish(const FileOperationInfo& ) {} 27002: 27002: 27002: 27002: virtual void OnFileRangeSyncFinish(const FileOperationInfo& ) {} 27002: 27002: 27002: 27002: virtual void OnFileTruncateFinish(const FileOperationInfo& ) {} 27002: 27002: 27002: 27002: virtual void OnFileCloseFinish(const FileOperationInfo& ) {} 27002: 27002: 27002: 27002: virtual bool ShouldBeNotifiedOnFileIO() { return false; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void OnErrorRecoveryBegin(BackgroundErrorReason , 27002: Status , 27002: bool* ) {} 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void OnErrorRecoveryCompleted(Status old_bg_error) { 27002: old_bg_error.PermitUncheckedError(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void OnErrorRecoveryEnd(const BackgroundErrorRecoveryInfo& ) { 27002: } 27002: # 812 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnBlobFileCreationStarted( 27002: const BlobFileCreationBriefInfo& ) {} 27002: # 823 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: virtual void OnBlobFileCreated(const BlobFileCreationInfo& ) {} 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void OnBlobFileDeleted(const BlobFileDeletionInfo& ) {} 27002: 27002: 27002: 27002: virtual void OnIOError(const IOErrorInfo& ) {} 27002: 27002: ~EventListener() override {} 27002: }; 27002: # 847 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/listener.h" 27002: } 27002: # 28 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/sst_partitioner.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/sst_partitioner.h" 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: 27002: enum PartitionerResult : char { 27002: 27002: kNotRequired = 0x0, 27002: 27002: kRequired = 0x1 27002: 27002: }; 27002: 27002: struct PartitionerRequest { 27002: PartitionerRequest(const Slice& prev_user_key_, 27002: const Slice& current_user_key_, 27002: uint64_t current_output_file_size_) 27002: : prev_user_key(&prev_user_key_), 27002: current_user_key(¤t_user_key_), 27002: current_output_file_size(current_output_file_size_) {} 27002: const Slice* prev_user_key; 27002: const Slice* current_user_key; 27002: uint64_t current_output_file_size; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class SstPartitioner { 27002: public: 27002: virtual ~SstPartitioner() {} 27002: 27002: 27002: virtual const char* Name() const = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual PartitionerResult ShouldPartition( 27002: const PartitionerRequest& request) = 0; 27002: 27002: 27002: 27002: virtual bool CanDoTrivialMove(const Slice& smallest_user_key, 27002: const Slice& largest_user_key) = 0; 27002: 27002: 27002: struct Context { 27002: 27002: bool is_full_compaction; 27002: 27002: 27002: bool is_manual_compaction; 27002: 27002: int output_level; 27002: 27002: Slice smallest_user_key; 27002: 27002: Slice largest_user_key; 27002: }; 27002: }; 27002: 27002: 27002: 27002: 27002: class SstPartitionerFactory : public Customizable { 27002: public: 27002: ~SstPartitionerFactory() override {} 27002: static const char* Type() { return "SstPartitionerFactory"; } 27002: static Status CreateFromString( 27002: const ConfigOptions& options, const std::string& value, 27002: std::shared_ptr* result); 27002: 27002: virtual std::unique_ptr CreatePartitioner( 27002: const SstPartitioner::Context& context) const = 0; 27002: 27002: 27002: const char* Name() const override = 0; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: class SstPartitionerFixedPrefix : public SstPartitioner { 27002: public: 27002: explicit SstPartitionerFixedPrefix(size_t len) : len_(len) {} 27002: 27002: virtual ~SstPartitionerFixedPrefix() override {} 27002: 27002: const char* Name() const override { return "SstPartitionerFixedPrefix"; } 27002: 27002: PartitionerResult ShouldPartition(const PartitionerRequest& request) override; 27002: 27002: bool CanDoTrivialMove(const Slice& smallest_user_key, 27002: const Slice& largest_user_key) override; 27002: 27002: private: 27002: size_t len_; 27002: }; 27002: 27002: 27002: 27002: 27002: class SstPartitionerFixedPrefixFactory : public SstPartitionerFactory { 27002: public: 27002: explicit SstPartitionerFixedPrefixFactory(size_t len); 27002: 27002: ~SstPartitionerFixedPrefixFactory() override {} 27002: 27002: static const char* kClassName() { return "SstPartitionerFixedPrefixFactory"; } 27002: const char* Name() const override { return kClassName(); } 27002: 27002: std::unique_ptr CreatePartitioner( 27002: const SstPartitioner::Context& ) const override; 27002: 27002: private: 27002: size_t len_; 27002: }; 27002: 27002: extern std::shared_ptr 27002: NewSstPartitionerFixedPrefixFactory(size_t prefix_len); 27002: 27002: } 27002: # 29 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/version.h" 1 27002: 27002: 27002: 27002: 27002: 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/version.h" 27002: namespace rocksdb { 27002: 27002: 27002: const std::unordered_map& GetRocksBuildProperties(); 27002: 27002: 27002: 27002: 27002: std::string GetRocksVersionAsString(bool with_patch = true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: std::string GetRocksBuildInfoAsString(const std::string& program, 27002: bool verbose = false); 27002: } 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 1 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/condition_variable" 1 3 27002: # 32 "/usr/include/c++/12/condition_variable" 3 27002: 27002: # 33 "/usr/include/c++/12/condition_variable" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/std_mutex.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/std_mutex.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/std_mutex.h" 3 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/system_error" 1 3 27002: # 32 "/usr/include/c++/12/system_error" 3 27002: 27002: # 33 "/usr/include/c++/12/system_error" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/error_constants.h" 1 3 27002: # 34 "/usr/include/arm-linux-gnueabihf/c++/12/bits/error_constants.h" 3 27002: # 1 "/usr/include/c++/12/cerrno" 1 3 27002: # 39 "/usr/include/c++/12/cerrno" 3 27002: 27002: # 40 "/usr/include/c++/12/cerrno" 3 27002: # 35 "/usr/include/arm-linux-gnueabihf/c++/12/bits/error_constants.h" 2 3 27002: 27002: 27002: # 36 "/usr/include/arm-linux-gnueabihf/c++/12/bits/error_constants.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: enum class errc 27002: { 27002: address_family_not_supported = 97, 27002: address_in_use = 98, 27002: address_not_available = 99, 27002: already_connected = 106, 27002: argument_list_too_long = 7, 27002: argument_out_of_domain = 33, 27002: bad_address = 14, 27002: bad_file_descriptor = 9, 27002: 27002: 27002: bad_message = 74, 27002: 27002: 27002: broken_pipe = 32, 27002: connection_aborted = 103, 27002: connection_already_in_progress = 114, 27002: connection_refused = 111, 27002: connection_reset = 104, 27002: cross_device_link = 18, 27002: destination_address_required = 89, 27002: device_or_resource_busy = 16, 27002: directory_not_empty = 39, 27002: executable_format_error = 8, 27002: file_exists = 17, 27002: file_too_large = 27, 27002: filename_too_long = 36, 27002: function_not_supported = 38, 27002: host_unreachable = 113, 27002: 27002: 27002: identifier_removed = 43, 27002: 27002: 27002: illegal_byte_sequence = 84, 27002: inappropriate_io_control_operation = 25, 27002: interrupted = 4, 27002: invalid_argument = 22, 27002: invalid_seek = 29, 27002: io_error = 5, 27002: is_a_directory = 21, 27002: message_size = 90, 27002: network_down = 100, 27002: network_reset = 102, 27002: network_unreachable = 101, 27002: no_buffer_space = 105, 27002: no_child_process = 10, 27002: 27002: 27002: no_link = 67, 27002: 27002: 27002: no_lock_available = 37, 27002: 27002: 27002: no_message_available = 61, 27002: 27002: 27002: no_message = 42, 27002: no_protocol_option = 92, 27002: no_space_on_device = 28, 27002: 27002: 27002: no_stream_resources = 63, 27002: 27002: 27002: no_such_device_or_address = 6, 27002: no_such_device = 19, 27002: no_such_file_or_directory = 2, 27002: no_such_process = 3, 27002: not_a_directory = 20, 27002: not_a_socket = 88, 27002: 27002: 27002: not_a_stream = 60, 27002: 27002: 27002: not_connected = 107, 27002: not_enough_memory = 12, 27002: 27002: 27002: not_supported = 95, 27002: 27002: 27002: 27002: operation_canceled = 125, 27002: 27002: 27002: operation_in_progress = 115, 27002: operation_not_permitted = 1, 27002: operation_not_supported = 95, 27002: operation_would_block = 11, 27002: 27002: 27002: owner_dead = 130, 27002: 27002: 27002: permission_denied = 13, 27002: 27002: 27002: protocol_error = 71, 27002: 27002: 27002: protocol_not_supported = 93, 27002: read_only_file_system = 30, 27002: resource_deadlock_would_occur = 35, 27002: resource_unavailable_try_again = 11, 27002: result_out_of_range = 34, 27002: 27002: 27002: state_not_recoverable = 131, 27002: 27002: 27002: 27002: stream_timeout = 62, 27002: 27002: 27002: 27002: text_file_busy = 26, 27002: 27002: 27002: timed_out = 110, 27002: too_many_files_open_in_system = 23, 27002: too_many_files_open = 24, 27002: too_many_links = 31, 27002: too_many_symbolic_link_levels = 40, 27002: 27002: 27002: value_too_large = 75, 27002: 27002: 27002: wrong_protocol_type = 91 27002: }; 27002: 27002: 27002: } 27002: # 40 "/usr/include/c++/12/system_error" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: class error_code; 27002: class error_condition; 27002: class system_error; 27002: 27002: 27002: template 27002: struct is_error_code_enum : public false_type { }; 27002: 27002: 27002: template 27002: struct is_error_condition_enum : public false_type { }; 27002: 27002: template<> 27002: struct is_error_condition_enum 27002: : public true_type { }; 27002: 27002: 27002: template 27002: inline constexpr bool is_error_code_enum_v = 27002: is_error_code_enum<_Tp>::value; 27002: template 27002: inline constexpr bool is_error_condition_enum_v = 27002: is_error_condition_enum<_Tp>::value; 27002: 27002: 27002: 27002: inline namespace _V2 { 27002: # 97 "/usr/include/c++/12/system_error" 3 27002: class error_category 27002: { 27002: public: 27002: constexpr error_category() noexcept = default; 27002: 27002: virtual ~error_category(); 27002: 27002: error_category(const error_category&) = delete; 27002: error_category& operator=(const error_category&) = delete; 27002: 27002: virtual const char* 27002: name() const noexcept = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: private: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: virtual __cow_string 27002: _M_message(int) const; 27002: 27002: public: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: virtual string 27002: message(int) const = 0; 27002: # 133 "/usr/include/c++/12/system_error" 3 27002: public: 27002: virtual error_condition 27002: default_error_condition(int __i) const noexcept; 27002: 27002: virtual bool 27002: equivalent(int __i, const error_condition& __cond) const noexcept; 27002: 27002: virtual bool 27002: equivalent(const error_code& __code, int __i) const noexcept; 27002: 27002: bool 27002: operator==(const error_category& __other) const noexcept 27002: { return this == &__other; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool 27002: operator!=(const error_category& __other) const noexcept 27002: { return this != &__other; } 27002: 27002: bool 27002: operator<(const error_category& __other) const noexcept 27002: { return less()(this, &__other); } 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: __attribute__ ((__const__)) const error_category& generic_category() noexcept; 27002: 27002: 27002: __attribute__ ((__const__)) const error_category& system_category() noexcept; 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: error_code make_error_code(errc) noexcept; 27002: # 196 "/usr/include/c++/12/system_error" 3 27002: class error_code 27002: { 27002: public: 27002: error_code() noexcept 27002: : _M_value(0), _M_cat(&system_category()) { } 27002: 27002: error_code(int __v, const error_category& __cat) noexcept 27002: : _M_value(__v), _M_cat(&__cat) { } 27002: 27002: template::value>::type> 27002: error_code(_ErrorCodeEnum __e) noexcept 27002: { *this = make_error_code(__e); } 27002: 27002: void 27002: assign(int __v, const error_category& __cat) noexcept 27002: { 27002: _M_value = __v; 27002: _M_cat = &__cat; 27002: } 27002: 27002: void 27002: clear() noexcept 27002: { assign(0, system_category()); } 27002: 27002: 27002: template 27002: typename enable_if::value, 27002: error_code&>::type 27002: operator=(_ErrorCodeEnum __e) noexcept 27002: { return *this = make_error_code(__e); } 27002: 27002: int 27002: value() const noexcept { return _M_value; } 27002: 27002: const error_category& 27002: category() const noexcept { return *_M_cat; } 27002: 27002: error_condition 27002: default_error_condition() const noexcept; 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: string 27002: message() const 27002: { return category().message(value()); } 27002: 27002: explicit operator bool() const noexcept 27002: { return _M_value != 0; } 27002: 27002: 27002: private: 27002: int _M_value; 27002: const error_category* _M_cat; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: inline error_code 27002: make_error_code(errc __e) noexcept 27002: { return error_code(static_cast(__e), generic_category()); } 27002: # 268 "/usr/include/c++/12/system_error" 3 27002: inline bool 27002: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 27002: { 27002: return (__lhs.category() < __rhs.category() 27002: || (__lhs.category() == __rhs.category() 27002: && __lhs.value() < __rhs.value())); 27002: } 27002: 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 27002: { return (__os << __e.category().name() << ':' << __e.value()); } 27002: 27002: 27002: 27002: error_condition make_error_condition(errc) noexcept; 27002: # 297 "/usr/include/c++/12/system_error" 3 27002: class error_condition 27002: { 27002: public: 27002: error_condition() noexcept 27002: : _M_value(0), _M_cat(&generic_category()) { } 27002: 27002: error_condition(int __v, const error_category& __cat) noexcept 27002: : _M_value(__v), _M_cat(&__cat) { } 27002: 27002: template::value>::type> 27002: error_condition(_ErrorConditionEnum __e) noexcept 27002: { *this = make_error_condition(__e); } 27002: 27002: void 27002: assign(int __v, const error_category& __cat) noexcept 27002: { 27002: _M_value = __v; 27002: _M_cat = &__cat; 27002: } 27002: 27002: 27002: template 27002: typename enable_if::value, error_condition&>::type 27002: operator=(_ErrorConditionEnum __e) noexcept 27002: { return *this = make_error_condition(__e); } 27002: 27002: void 27002: clear() noexcept 27002: { assign(0, generic_category()); } 27002: 27002: 27002: int 27002: value() const noexcept { return _M_value; } 27002: 27002: const error_category& 27002: category() const noexcept { return *_M_cat; } 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: string 27002: message() const 27002: { return category().message(value()); } 27002: 27002: explicit operator bool() const noexcept 27002: { return _M_value != 0; } 27002: 27002: 27002: private: 27002: int _M_value; 27002: const error_category* _M_cat; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: inline error_condition 27002: make_error_condition(errc __e) noexcept 27002: { return error_condition(static_cast(__e), generic_category()); } 27002: 27002: 27002: 27002: 27002: inline bool 27002: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 27002: { return (__lhs.category() == __rhs.category() 27002: && __lhs.value() == __rhs.value()); } 27002: 27002: 27002: inline bool 27002: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 27002: { 27002: return (__lhs.category().equivalent(__lhs.value(), __rhs) 27002: || __rhs.category().equivalent(__lhs, __rhs.value())); 27002: } 27002: 27002: 27002: inline bool 27002: operator==(const error_condition& __lhs, 27002: const error_condition& __rhs) noexcept 27002: { 27002: return (__lhs.category() == __rhs.category() 27002: && __lhs.value() == __rhs.value()); 27002: } 27002: # 397 "/usr/include/c++/12/system_error" 3 27002: inline bool 27002: operator<(const error_condition& __lhs, 27002: const error_condition& __rhs) noexcept 27002: { 27002: return (__lhs.category() < __rhs.category() 27002: || (__lhs.category() == __rhs.category() 27002: && __lhs.value() < __rhs.value())); 27002: } 27002: 27002: 27002: inline bool 27002: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 27002: { 27002: return (__rhs.category().equivalent(__rhs.value(), __lhs) 27002: || __lhs.category().equivalent(__rhs, __lhs.value())); 27002: } 27002: 27002: 27002: inline bool 27002: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 27002: { return !(__lhs == __rhs); } 27002: 27002: 27002: inline bool 27002: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 27002: { return !(__lhs == __rhs); } 27002: 27002: 27002: inline bool 27002: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 27002: { return !(__lhs == __rhs); } 27002: 27002: 27002: inline bool 27002: operator!=(const error_condition& __lhs, 27002: const error_condition& __rhs) noexcept 27002: { return !(__lhs == __rhs); } 27002: # 446 "/usr/include/c++/12/system_error" 3 27002: class system_error : public std::runtime_error 27002: { 27002: private: 27002: error_code _M_code; 27002: 27002: public: 27002: system_error(error_code __ec = error_code()) 27002: : runtime_error(__ec.message()), _M_code(__ec) { } 27002: 27002: system_error(error_code __ec, const string& __what) 27002: : runtime_error(__what + ": " + __ec.message()), _M_code(__ec) { } 27002: 27002: system_error(error_code __ec, const char* __what) 27002: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 27002: 27002: system_error(int __v, const error_category& __ecat, const char* __what) 27002: : system_error(error_code(__v, __ecat), __what) { } 27002: 27002: system_error(int __v, const error_category& __ecat) 27002: : runtime_error(error_code(__v, __ecat).message()), 27002: _M_code(__v, __ecat) { } 27002: 27002: system_error(int __v, const error_category& __ecat, const string& __what) 27002: : runtime_error(__what + ": " + error_code(__v, __ecat).message()), 27002: _M_code(__v, __ecat) { } 27002: 27002: 27002: system_error (const system_error &) = default; 27002: system_error &operator= (const system_error &) = default; 27002: 27002: 27002: virtual ~system_error() noexcept; 27002: 27002: const error_code& 27002: code() const noexcept { return _M_code; } 27002: }; 27002: 27002: 27002: } 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const error_code& __e) const noexcept 27002: { 27002: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 27002: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: struct hash 27002: : public __hash_base 27002: { 27002: size_t 27002: operator()(const error_condition& __e) const noexcept 27002: { 27002: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 27002: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 27002: } 27002: }; 27002: 27002: 27002: 27002: } 27002: # 40 "/usr/include/c++/12/bits/std_mutex.h" 2 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 57 "/usr/include/c++/12/bits/std_mutex.h" 3 27002: class __mutex_base 27002: { 27002: protected: 27002: typedef __gthread_mutex_t __native_type; 27002: 27002: 27002: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 27002: 27002: constexpr __mutex_base() noexcept = default; 27002: # 78 "/usr/include/c++/12/bits/std_mutex.h" 3 27002: __mutex_base(const __mutex_base&) = delete; 27002: __mutex_base& operator=(const __mutex_base&) = delete; 27002: }; 27002: 27002: 27002: class mutex : private __mutex_base 27002: { 27002: public: 27002: typedef __native_type* native_handle_type; 27002: 27002: 27002: constexpr 27002: 27002: mutex() noexcept = default; 27002: ~mutex() = default; 27002: 27002: mutex(const mutex&) = delete; 27002: mutex& operator=(const mutex&) = delete; 27002: 27002: void 27002: lock() 27002: { 27002: int __e = __gthread_mutex_lock(&_M_mutex); 27002: 27002: 27002: if (__e) 27002: __throw_system_error(__e); 27002: } 27002: 27002: bool 27002: try_lock() noexcept 27002: { 27002: 27002: return !__gthread_mutex_trylock(&_M_mutex); 27002: } 27002: 27002: void 27002: unlock() 27002: { 27002: 27002: __gthread_mutex_unlock(&_M_mutex); 27002: } 27002: 27002: native_handle_type 27002: native_handle() noexcept 27002: { return &_M_mutex; } 27002: }; 27002: 27002: 27002: class __condvar 27002: { 27002: using timespec = __gthread_time_t; 27002: 27002: public: 27002: __condvar() noexcept 27002: { 27002: 27002: 27002: 27002: } 27002: 27002: ~__condvar() 27002: { 27002: int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); 27002: do { if (std::__is_constant_evaluated() && !bool(__e != 16)) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: __condvar(const __condvar&) = delete; 27002: __condvar& operator=(const __condvar&) = delete; 27002: 27002: __gthread_cond_t* native_handle() noexcept { return &_M_cond; } 27002: 27002: 27002: void 27002: wait(mutex& __m) 27002: { 27002: int __e __attribute__((__unused__)) 27002: = __gthread_cond_wait(&_M_cond, __m.native_handle()); 27002: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: void 27002: wait_until(mutex& __m, timespec& __abs_time) 27002: { 27002: __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); 27002: } 27002: 27002: 27002: void 27002: wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) 27002: { 27002: pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, 27002: &__abs_time); 27002: } 27002: 27002: 27002: void 27002: notify_one() noexcept 27002: { 27002: int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); 27002: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: void 27002: notify_all() noexcept 27002: { 27002: int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); 27002: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: protected: 27002: 27002: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: struct defer_lock_t { explicit defer_lock_t() = default; }; 27002: 27002: 27002: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 27002: 27002: 27002: 27002: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 27002: 27002: 27002: inline constexpr defer_lock_t defer_lock { }; 27002: 27002: 27002: inline constexpr try_to_lock_t try_to_lock { }; 27002: 27002: 27002: inline constexpr adopt_lock_t adopt_lock { }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class lock_guard 27002: { 27002: public: 27002: typedef _Mutex mutex_type; 27002: 27002: explicit lock_guard(mutex_type& __m) : _M_device(__m) 27002: { _M_device.lock(); } 27002: 27002: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 27002: { } 27002: 27002: ~lock_guard() 27002: { _M_device.unlock(); } 27002: 27002: lock_guard(const lock_guard&) = delete; 27002: lock_guard& operator=(const lock_guard&) = delete; 27002: 27002: private: 27002: mutex_type& _M_device; 27002: }; 27002: 27002: 27002: 27002: } 27002: # 40 "/usr/include/c++/12/condition_variable" 2 3 27002: # 1 "/usr/include/c++/12/bits/unique_lock.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/unique_lock.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/unique_lock.h" 3 27002: # 43 "/usr/include/c++/12/bits/unique_lock.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 56 "/usr/include/c++/12/bits/unique_lock.h" 3 27002: template 27002: class unique_lock 27002: { 27002: public: 27002: typedef _Mutex mutex_type; 27002: 27002: unique_lock() noexcept 27002: : _M_device(0), _M_owns(false) 27002: { } 27002: 27002: explicit unique_lock(mutex_type& __m) 27002: : _M_device(std::__addressof(__m)), _M_owns(false) 27002: { 27002: lock(); 27002: _M_owns = true; 27002: } 27002: 27002: unique_lock(mutex_type& __m, defer_lock_t) noexcept 27002: : _M_device(std::__addressof(__m)), _M_owns(false) 27002: { } 27002: 27002: unique_lock(mutex_type& __m, try_to_lock_t) 27002: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 27002: { } 27002: 27002: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 27002: : _M_device(std::__addressof(__m)), _M_owns(true) 27002: { 27002: 27002: } 27002: 27002: template 27002: unique_lock(mutex_type& __m, 27002: const chrono::time_point<_Clock, _Duration>& __atime) 27002: : _M_device(std::__addressof(__m)), 27002: _M_owns(_M_device->try_lock_until(__atime)) 27002: { } 27002: 27002: template 27002: unique_lock(mutex_type& __m, 27002: const chrono::duration<_Rep, _Period>& __rtime) 27002: : _M_device(std::__addressof(__m)), 27002: _M_owns(_M_device->try_lock_for(__rtime)) 27002: { } 27002: 27002: ~unique_lock() 27002: { 27002: if (_M_owns) 27002: unlock(); 27002: } 27002: 27002: unique_lock(const unique_lock&) = delete; 27002: unique_lock& operator=(const unique_lock&) = delete; 27002: 27002: unique_lock(unique_lock&& __u) noexcept 27002: : _M_device(__u._M_device), _M_owns(__u._M_owns) 27002: { 27002: __u._M_device = 0; 27002: __u._M_owns = false; 27002: } 27002: 27002: unique_lock& operator=(unique_lock&& __u) noexcept 27002: { 27002: if(_M_owns) 27002: unlock(); 27002: 27002: unique_lock(std::move(__u)).swap(*this); 27002: 27002: __u._M_device = 0; 27002: __u._M_owns = false; 27002: 27002: return *this; 27002: } 27002: 27002: void 27002: lock() 27002: { 27002: if (!_M_device) 27002: __throw_system_error(int(errc::operation_not_permitted)); 27002: else if (_M_owns) 27002: __throw_system_error(int(errc::resource_deadlock_would_occur)); 27002: else 27002: { 27002: _M_device->lock(); 27002: _M_owns = true; 27002: } 27002: } 27002: 27002: bool 27002: try_lock() 27002: { 27002: if (!_M_device) 27002: __throw_system_error(int(errc::operation_not_permitted)); 27002: else if (_M_owns) 27002: __throw_system_error(int(errc::resource_deadlock_would_occur)); 27002: else 27002: { 27002: _M_owns = _M_device->try_lock(); 27002: return _M_owns; 27002: } 27002: } 27002: 27002: template 27002: bool 27002: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 27002: { 27002: if (!_M_device) 27002: __throw_system_error(int(errc::operation_not_permitted)); 27002: else if (_M_owns) 27002: __throw_system_error(int(errc::resource_deadlock_would_occur)); 27002: else 27002: { 27002: _M_owns = _M_device->try_lock_until(__atime); 27002: return _M_owns; 27002: } 27002: } 27002: 27002: template 27002: bool 27002: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 27002: { 27002: if (!_M_device) 27002: __throw_system_error(int(errc::operation_not_permitted)); 27002: else if (_M_owns) 27002: __throw_system_error(int(errc::resource_deadlock_would_occur)); 27002: else 27002: { 27002: _M_owns = _M_device->try_lock_for(__rtime); 27002: return _M_owns; 27002: } 27002: } 27002: 27002: void 27002: unlock() 27002: { 27002: if (!_M_owns) 27002: __throw_system_error(int(errc::operation_not_permitted)); 27002: else if (_M_device) 27002: { 27002: _M_device->unlock(); 27002: _M_owns = false; 27002: } 27002: } 27002: 27002: void 27002: swap(unique_lock& __u) noexcept 27002: { 27002: std::swap(_M_device, __u._M_device); 27002: std::swap(_M_owns, __u._M_owns); 27002: } 27002: 27002: mutex_type* 27002: release() noexcept 27002: { 27002: mutex_type* __ret = _M_device; 27002: _M_device = 0; 27002: _M_owns = false; 27002: return __ret; 27002: } 27002: 27002: bool 27002: owns_lock() const noexcept 27002: { return _M_owns; } 27002: 27002: explicit operator bool() const noexcept 27002: { return owns_lock(); } 27002: 27002: mutex_type* 27002: mutex() const noexcept 27002: { return _M_device; } 27002: 27002: private: 27002: mutex_type* _M_device; 27002: bool _M_owns; 27002: }; 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 27002: { __x.swap(__y); } 27002: 27002: 27002: } 27002: # 41 "/usr/include/c++/12/condition_variable" 2 3 27002: # 51 "/usr/include/c++/12/condition_variable" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 64 "/usr/include/c++/12/condition_variable" 3 27002: enum class cv_status { no_timeout, timeout }; 27002: 27002: 27002: class condition_variable 27002: { 27002: using steady_clock = chrono::steady_clock; 27002: using system_clock = chrono::system_clock; 27002: 27002: using __clock_t = steady_clock; 27002: 27002: 27002: 27002: 27002: __condvar _M_cond; 27002: 27002: public: 27002: typedef __gthread_cond_t* native_handle_type; 27002: 27002: condition_variable() noexcept; 27002: ~condition_variable() noexcept; 27002: 27002: condition_variable(const condition_variable&) = delete; 27002: condition_variable& operator=(const condition_variable&) = delete; 27002: 27002: void 27002: notify_one() noexcept; 27002: 27002: void 27002: notify_all() noexcept; 27002: 27002: void 27002: wait(unique_lock& __lock); 27002: 27002: template 27002: void 27002: wait(unique_lock& __lock, _Predicate __p) 27002: { 27002: while (!__p()) 27002: wait(__lock); 27002: } 27002: 27002: 27002: template 27002: cv_status 27002: wait_until(unique_lock& __lock, 27002: const chrono::time_point& __atime) 27002: { return __wait_until_impl(__lock, __atime); } 27002: 27002: 27002: template 27002: cv_status 27002: wait_until(unique_lock& __lock, 27002: const chrono::time_point& __atime) 27002: { return __wait_until_impl(__lock, __atime); } 27002: 27002: template 27002: cv_status 27002: wait_until(unique_lock& __lock, 27002: const chrono::time_point<_Clock, _Duration>& __atime) 27002: { 27002: 27002: 27002: 27002: using __s_dur = typename __clock_t::duration; 27002: const typename _Clock::time_point __c_entry = _Clock::now(); 27002: const __clock_t::time_point __s_entry = __clock_t::now(); 27002: const auto __delta = __atime - __c_entry; 27002: const auto __s_atime = __s_entry + 27002: chrono::__detail::ceil<__s_dur>(__delta); 27002: 27002: if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) 27002: return cv_status::no_timeout; 27002: 27002: 27002: 27002: if (_Clock::now() < __atime) 27002: return cv_status::no_timeout; 27002: return cv_status::timeout; 27002: } 27002: 27002: template 27002: bool 27002: wait_until(unique_lock& __lock, 27002: const chrono::time_point<_Clock, _Duration>& __atime, 27002: _Predicate __p) 27002: { 27002: while (!__p()) 27002: if (wait_until(__lock, __atime) == cv_status::timeout) 27002: return __p(); 27002: return true; 27002: } 27002: 27002: template 27002: cv_status 27002: wait_for(unique_lock& __lock, 27002: const chrono::duration<_Rep, _Period>& __rtime) 27002: { 27002: using __dur = typename steady_clock::duration; 27002: return wait_until(__lock, 27002: steady_clock::now() + 27002: chrono::__detail::ceil<__dur>(__rtime)); 27002: } 27002: 27002: template 27002: bool 27002: wait_for(unique_lock& __lock, 27002: const chrono::duration<_Rep, _Period>& __rtime, 27002: _Predicate __p) 27002: { 27002: using __dur = typename steady_clock::duration; 27002: return wait_until(__lock, 27002: steady_clock::now() + 27002: chrono::__detail::ceil<__dur>(__rtime), 27002: std::move(__p)); 27002: } 27002: 27002: native_handle_type 27002: native_handle() 27002: { return _M_cond.native_handle(); } 27002: 27002: private: 27002: 27002: template 27002: cv_status 27002: __wait_until_impl(unique_lock& __lock, 27002: const chrono::time_point& __atime) 27002: { 27002: auto __s = chrono::time_point_cast(__atime); 27002: auto __ns = chrono::duration_cast(__atime - __s); 27002: 27002: __gthread_time_t __ts = 27002: { 27002: static_cast(__s.time_since_epoch().count()), 27002: static_cast(__ns.count()) 27002: }; 27002: 27002: _M_cond.wait_until(*__lock.mutex(), 1, __ts); 27002: 27002: return (steady_clock::now() < __atime 27002: ? cv_status::no_timeout : cv_status::timeout); 27002: } 27002: 27002: 27002: template 27002: cv_status 27002: __wait_until_impl(unique_lock& __lock, 27002: const chrono::time_point& __atime) 27002: { 27002: auto __s = chrono::time_point_cast(__atime); 27002: auto __ns = chrono::duration_cast(__atime - __s); 27002: 27002: __gthread_time_t __ts = 27002: { 27002: static_cast(__s.time_since_epoch().count()), 27002: static_cast(__ns.count()) 27002: }; 27002: 27002: _M_cond.wait_until(*__lock.mutex(), __ts); 27002: 27002: return (system_clock::now() < __atime 27002: ? cv_status::no_timeout : cv_status::timeout); 27002: } 27002: }; 27002: 27002: void 27002: notify_all_at_thread_exit(condition_variable&, unique_lock); 27002: 27002: struct __at_thread_exit_elt 27002: { 27002: __at_thread_exit_elt* _M_next; 27002: void (*_M_cb)(void*); 27002: }; 27002: 27002: inline namespace _V2 { 27002: 27002: 27002: 27002: class condition_variable_any 27002: { 27002: 27002: using __clock_t = chrono::steady_clock; 27002: 27002: 27002: 27002: condition_variable _M_cond; 27002: shared_ptr _M_mutex; 27002: 27002: 27002: template 27002: struct _Unlock 27002: { 27002: explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: ~_Unlock() noexcept(false) 27002: { 27002: if (uncaught_exception()) 27002: { 27002: try 27002: { _M_lock.lock(); } 27002: catch(const __cxxabiv1::__forced_unwind&) 27002: { throw; } 27002: catch(...) 27002: { } 27002: } 27002: else 27002: _M_lock.lock(); 27002: } 27002: #pragma GCC diagnostic pop 27002: 27002: _Unlock(const _Unlock&) = delete; 27002: _Unlock& operator=(const _Unlock&) = delete; 27002: 27002: _Lock& _M_lock; 27002: }; 27002: 27002: public: 27002: condition_variable_any() : _M_mutex(std::make_shared()) { } 27002: ~condition_variable_any() = default; 27002: 27002: condition_variable_any(const condition_variable_any&) = delete; 27002: condition_variable_any& operator=(const condition_variable_any&) = delete; 27002: 27002: void 27002: notify_one() noexcept 27002: { 27002: lock_guard __lock(*_M_mutex); 27002: _M_cond.notify_one(); 27002: } 27002: 27002: void 27002: notify_all() noexcept 27002: { 27002: lock_guard __lock(*_M_mutex); 27002: _M_cond.notify_all(); 27002: } 27002: 27002: template 27002: void 27002: wait(_Lock& __lock) 27002: { 27002: shared_ptr __mutex = _M_mutex; 27002: unique_lock __my_lock(*__mutex); 27002: _Unlock<_Lock> __unlock(__lock); 27002: 27002: 27002: unique_lock __my_lock2(std::move(__my_lock)); 27002: _M_cond.wait(__my_lock2); 27002: } 27002: 27002: 27002: template 27002: void 27002: wait(_Lock& __lock, _Predicate __p) 27002: { 27002: while (!__p()) 27002: wait(__lock); 27002: } 27002: 27002: template 27002: cv_status 27002: wait_until(_Lock& __lock, 27002: const chrono::time_point<_Clock, _Duration>& __atime) 27002: { 27002: shared_ptr __mutex = _M_mutex; 27002: unique_lock __my_lock(*__mutex); 27002: _Unlock<_Lock> __unlock(__lock); 27002: 27002: 27002: unique_lock __my_lock2(std::move(__my_lock)); 27002: return _M_cond.wait_until(__my_lock2, __atime); 27002: } 27002: 27002: template 27002: bool 27002: wait_until(_Lock& __lock, 27002: const chrono::time_point<_Clock, _Duration>& __atime, 27002: _Predicate __p) 27002: { 27002: while (!__p()) 27002: if (wait_until(__lock, __atime) == cv_status::timeout) 27002: return __p(); 27002: return true; 27002: } 27002: 27002: template 27002: cv_status 27002: wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) 27002: { return wait_until(__lock, __clock_t::now() + __rtime); } 27002: 27002: template 27002: bool 27002: wait_for(_Lock& __lock, 27002: const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) 27002: { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } 27002: # 440 "/usr/include/c++/12/condition_variable" 3 27002: }; 27002: 27002: } 27002: 27002: 27002: 27002: } 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 2 27002: 27002: # 1 "/usr/include/c++/12/list" 1 3 27002: # 58 "/usr/include/c++/12/list" 3 27002: 27002: # 59 "/usr/include/c++/12/list" 3 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/stl_list.h" 1 3 27002: # 68 "/usr/include/c++/12/bits/stl_list.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: namespace __detail 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct _List_node_base 27002: { 27002: _List_node_base* _M_next; 27002: _List_node_base* _M_prev; 27002: 27002: static void 27002: swap(_List_node_base& __x, _List_node_base& __y) noexcept; 27002: 27002: void 27002: _M_transfer(_List_node_base* const __first, 27002: _List_node_base* const __last) noexcept; 27002: 27002: void 27002: _M_reverse() noexcept; 27002: 27002: void 27002: _M_hook(_List_node_base* const __position) noexcept; 27002: 27002: void 27002: _M_unhook() noexcept; 27002: }; 27002: 27002: 27002: struct _List_node_header : public _List_node_base 27002: { 27002: 27002: std::size_t _M_size; 27002: 27002: 27002: _List_node_header() noexcept 27002: { _M_init(); } 27002: 27002: 27002: _List_node_header(_List_node_header&& __x) noexcept 27002: : _List_node_base{ __x._M_next, __x._M_prev } 27002: 27002: , _M_size(__x._M_size) 27002: 27002: { 27002: if (__x._M_base()->_M_next == __x._M_base()) 27002: this->_M_next = this->_M_prev = this; 27002: else 27002: { 27002: this->_M_next->_M_prev = this->_M_prev->_M_next = this->_M_base(); 27002: __x._M_init(); 27002: } 27002: } 27002: 27002: void 27002: _M_move_nodes(_List_node_header&& __x) 27002: { 27002: _List_node_base* const __xnode = __x._M_base(); 27002: if (__xnode->_M_next == __xnode) 27002: _M_init(); 27002: else 27002: { 27002: _List_node_base* const __node = this->_M_base(); 27002: __node->_M_next = __xnode->_M_next; 27002: __node->_M_prev = __xnode->_M_prev; 27002: __node->_M_next->_M_prev = __node->_M_prev->_M_next = __node; 27002: 27002: _M_size = __x._M_size; 27002: 27002: __x._M_init(); 27002: } 27002: } 27002: 27002: 27002: void 27002: _M_init() noexcept 27002: { 27002: this->_M_next = this->_M_prev = this; 27002: 27002: this->_M_size = 0; 27002: 27002: } 27002: 27002: private: 27002: _List_node_base* _M_base() { return this; } 27002: }; 27002: 27002: 27002: struct _Scratch_list : _List_node_base 27002: { 27002: _Scratch_list() { _M_next = _M_prev = this; } 27002: 27002: bool empty() const { return _M_next == this; } 27002: 27002: void swap(_List_node_base& __l) { _List_node_base::swap(*this, __l); } 27002: 27002: template 27002: struct _Ptr_cmp 27002: { 27002: _Cmp _M_cmp; 27002: 27002: bool 27002: operator()(__detail::_List_node_base* __lhs, 27002: __detail::_List_node_base* __rhs) 27002: { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); } 27002: }; 27002: 27002: template 27002: struct _Ptr_cmp<_Iter, void> 27002: { 27002: bool 27002: operator()(__detail::_List_node_base* __lhs, 27002: __detail::_List_node_base* __rhs) const 27002: { return *_Iter(__lhs) < *_Iter(__rhs); } 27002: }; 27002: 27002: 27002: template 27002: void 27002: merge(_List_node_base& __x, _Cmp __comp) 27002: { 27002: _List_node_base* __first1 = _M_next; 27002: _List_node_base* const __last1 = this; 27002: _List_node_base* __first2 = __x._M_next; 27002: _List_node_base* const __last2 = std::__addressof(__x); 27002: 27002: while (__first1 != __last1 && __first2 != __last2) 27002: { 27002: if (__comp(__first2, __first1)) 27002: { 27002: _List_node_base* __next = __first2->_M_next; 27002: __first1->_M_transfer(__first2, __next); 27002: __first2 = __next; 27002: } 27002: else 27002: __first1 = __first1->_M_next; 27002: } 27002: if (__first2 != __last2) 27002: this->_M_transfer(__first2, __last2); 27002: } 27002: 27002: 27002: void _M_take_one(_List_node_base* __i) 27002: { this->_M_transfer(__i, __i->_M_next); } 27002: 27002: 27002: void _M_put_all(_List_node_base* __i) 27002: { 27002: if (!empty()) 27002: __i->_M_transfer(_M_next, this); 27002: } 27002: }; 27002: 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: struct _List_node : public __detail::_List_node_base 27002: { 27002: 27002: __gnu_cxx::__aligned_membuf<_Tp> _M_storage; 27002: _Tp* _M_valptr() { return _M_storage._M_ptr(); } 27002: _Tp const* _M_valptr() const { return _M_storage._M_ptr(); } 27002: 27002: 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _List_iterator 27002: { 27002: typedef _List_iterator<_Tp> _Self; 27002: typedef _List_node<_Tp> _Node; 27002: 27002: typedef ptrdiff_t difference_type; 27002: typedef std::bidirectional_iterator_tag iterator_category; 27002: typedef _Tp value_type; 27002: typedef _Tp* pointer; 27002: typedef _Tp& reference; 27002: 27002: _List_iterator() noexcept 27002: : _M_node() { } 27002: 27002: explicit 27002: _List_iterator(__detail::_List_node_base* __x) noexcept 27002: : _M_node(__x) { } 27002: 27002: _Self 27002: _M_const_cast() const noexcept 27002: { return *this; } 27002: 27002: 27002: [[__nodiscard__]] 27002: reference 27002: operator*() const noexcept 27002: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 27002: 27002: [[__nodiscard__]] 27002: pointer 27002: operator->() const noexcept 27002: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 27002: 27002: _Self& 27002: operator++() noexcept 27002: { 27002: _M_node = _M_node->_M_next; 27002: return *this; 27002: } 27002: 27002: _Self 27002: operator++(int) noexcept 27002: { 27002: _Self __tmp = *this; 27002: _M_node = _M_node->_M_next; 27002: return __tmp; 27002: } 27002: 27002: _Self& 27002: operator--() noexcept 27002: { 27002: _M_node = _M_node->_M_prev; 27002: return *this; 27002: } 27002: 27002: _Self 27002: operator--(int) noexcept 27002: { 27002: _Self __tmp = *this; 27002: _M_node = _M_node->_M_prev; 27002: return __tmp; 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator==(const _Self& __x, const _Self& __y) noexcept 27002: { return __x._M_node == __y._M_node; } 27002: 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator!=(const _Self& __x, const _Self& __y) noexcept 27002: { return __x._M_node != __y._M_node; } 27002: 27002: 27002: 27002: __detail::_List_node_base* _M_node; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _List_const_iterator 27002: { 27002: typedef _List_const_iterator<_Tp> _Self; 27002: typedef const _List_node<_Tp> _Node; 27002: typedef _List_iterator<_Tp> iterator; 27002: 27002: typedef ptrdiff_t difference_type; 27002: typedef std::bidirectional_iterator_tag iterator_category; 27002: typedef _Tp value_type; 27002: typedef const _Tp* pointer; 27002: typedef const _Tp& reference; 27002: 27002: _List_const_iterator() noexcept 27002: : _M_node() { } 27002: 27002: explicit 27002: _List_const_iterator(const __detail::_List_node_base* __x) 27002: noexcept 27002: : _M_node(__x) { } 27002: 27002: _List_const_iterator(const iterator& __x) noexcept 27002: : _M_node(__x._M_node) { } 27002: 27002: iterator 27002: _M_const_cast() const noexcept 27002: { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } 27002: 27002: 27002: [[__nodiscard__]] 27002: reference 27002: operator*() const noexcept 27002: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 27002: 27002: [[__nodiscard__]] 27002: pointer 27002: operator->() const noexcept 27002: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 27002: 27002: _Self& 27002: operator++() noexcept 27002: { 27002: _M_node = _M_node->_M_next; 27002: return *this; 27002: } 27002: 27002: _Self 27002: operator++(int) noexcept 27002: { 27002: _Self __tmp = *this; 27002: _M_node = _M_node->_M_next; 27002: return __tmp; 27002: } 27002: 27002: _Self& 27002: operator--() noexcept 27002: { 27002: _M_node = _M_node->_M_prev; 27002: return *this; 27002: } 27002: 27002: _Self 27002: operator--(int) noexcept 27002: { 27002: _Self __tmp = *this; 27002: _M_node = _M_node->_M_prev; 27002: return __tmp; 27002: } 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator==(const _Self& __x, const _Self& __y) noexcept 27002: { return __x._M_node == __y._M_node; } 27002: 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator!=(const _Self& __x, const _Self& __y) noexcept 27002: { return __x._M_node != __y._M_node; } 27002: 27002: 27002: 27002: const __detail::_List_node_base* _M_node; 27002: }; 27002: 27002: namespace __cxx11 { 27002: 27002: template 27002: class _List_base 27002: { 27002: protected: 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind<_Tp>::other _Tp_alloc_type; 27002: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tp_alloc_traits; 27002: typedef typename _Tp_alloc_traits::template 27002: rebind<_List_node<_Tp> >::other _Node_alloc_type; 27002: typedef __gnu_cxx::__alloc_traits<_Node_alloc_type> _Node_alloc_traits; 27002: 27002: 27002: static size_t 27002: _S_distance(const __detail::_List_node_base* __first, 27002: const __detail::_List_node_base* __last) 27002: { 27002: size_t __n = 0; 27002: while (__first != __last) 27002: { 27002: __first = __first->_M_next; 27002: ++__n; 27002: } 27002: return __n; 27002: } 27002: 27002: 27002: struct _List_impl 27002: : public _Node_alloc_type 27002: { 27002: __detail::_List_node_header _M_node; 27002: 27002: _List_impl() noexcept(is_nothrow_default_constructible<_Node_alloc_type>::value) 27002: 27002: : _Node_alloc_type() 27002: { } 27002: 27002: _List_impl(const _Node_alloc_type& __a) noexcept 27002: : _Node_alloc_type(__a) 27002: { } 27002: 27002: 27002: _List_impl(_List_impl&&) = default; 27002: 27002: _List_impl(_Node_alloc_type&& __a, _List_impl&& __x) 27002: : _Node_alloc_type(std::move(__a)), _M_node(std::move(__x._M_node)) 27002: { } 27002: 27002: _List_impl(_Node_alloc_type&& __a) noexcept 27002: : _Node_alloc_type(std::move(__a)) 27002: { } 27002: 27002: }; 27002: 27002: _List_impl _M_impl; 27002: 27002: 27002: size_t _M_get_size() const { return _M_impl._M_node._M_size; } 27002: 27002: void _M_set_size(size_t __n) { _M_impl._M_node._M_size = __n; } 27002: 27002: void _M_inc_size(size_t __n) { _M_impl._M_node._M_size += __n; } 27002: 27002: void _M_dec_size(size_t __n) { _M_impl._M_node._M_size -= __n; } 27002: 27002: 27002: size_t 27002: _M_distance(const __detail::_List_node_base* __first, 27002: const __detail::_List_node_base* __last) const 27002: { return _S_distance(__first, __last); } 27002: 27002: 27002: size_t _M_node_count() const { return _M_get_size(); } 27002: # 516 "/usr/include/c++/12/bits/stl_list.h" 3 27002: typename _Node_alloc_traits::pointer 27002: _M_get_node() 27002: { return _Node_alloc_traits::allocate(_M_impl, 1); } 27002: 27002: void 27002: _M_put_node(typename _Node_alloc_traits::pointer __p) noexcept 27002: { _Node_alloc_traits::deallocate(_M_impl, __p, 1); } 27002: 27002: public: 27002: typedef _Alloc allocator_type; 27002: 27002: _Node_alloc_type& 27002: _M_get_Node_allocator() noexcept 27002: { return _M_impl; } 27002: 27002: const _Node_alloc_type& 27002: _M_get_Node_allocator() const noexcept 27002: { return _M_impl; } 27002: 27002: 27002: _List_base() = default; 27002: 27002: 27002: 27002: 27002: _List_base(const _Node_alloc_type& __a) noexcept 27002: : _M_impl(__a) 27002: { } 27002: 27002: 27002: _List_base(_List_base&&) = default; 27002: 27002: 27002: _List_base(_List_base&& __x, _Node_alloc_type&& __a) 27002: : _M_impl(std::move(__a)) 27002: { 27002: if (__x._M_get_Node_allocator() == _M_get_Node_allocator()) 27002: _M_move_nodes(std::move(__x)); 27002: 27002: } 27002: 27002: 27002: 27002: _List_base(_Node_alloc_type&& __a, _List_base&& __x) 27002: : _M_impl(std::move(__a), std::move(__x._M_impl)) 27002: { } 27002: 27002: 27002: _List_base(_Node_alloc_type&& __a) 27002: : _M_impl(std::move(__a)) 27002: { } 27002: 27002: void 27002: _M_move_nodes(_List_base&& __x) 27002: { _M_impl._M_node._M_move_nodes(std::move(__x._M_impl._M_node)); } 27002: 27002: 27002: 27002: ~_List_base() noexcept 27002: { _M_clear(); } 27002: 27002: void 27002: _M_clear() noexcept; 27002: 27002: void 27002: _M_init() noexcept 27002: { this->_M_impl._M_node._M_init(); } 27002: }; 27002: # 631 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template > 27002: class list : protected _List_base<_Tp, _Alloc> 27002: { 27002: # 644 "/usr/include/c++/12/bits/stl_list.h" 3 27002: static_assert(is_same::type, _Tp>::value, 27002: "std::list must have a non-const, non-volatile value_type"); 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef _List_base<_Tp, _Alloc> _Base; 27002: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 27002: typedef typename _Base::_Tp_alloc_traits _Tp_alloc_traits; 27002: typedef typename _Base::_Node_alloc_type _Node_alloc_type; 27002: typedef typename _Base::_Node_alloc_traits _Node_alloc_traits; 27002: 27002: public: 27002: typedef _Tp value_type; 27002: typedef typename _Tp_alloc_traits::pointer pointer; 27002: typedef typename _Tp_alloc_traits::const_pointer const_pointer; 27002: typedef typename _Tp_alloc_traits::reference reference; 27002: typedef typename _Tp_alloc_traits::const_reference const_reference; 27002: typedef _List_iterator<_Tp> iterator; 27002: typedef _List_const_iterator<_Tp> const_iterator; 27002: typedef std::reverse_iterator const_reverse_iterator; 27002: typedef std::reverse_iterator reverse_iterator; 27002: typedef size_t size_type; 27002: typedef ptrdiff_t difference_type; 27002: typedef _Alloc allocator_type; 27002: 27002: protected: 27002: 27002: 27002: typedef _List_node<_Tp> _Node; 27002: 27002: using _Base::_M_impl; 27002: using _Base::_M_put_node; 27002: using _Base::_M_get_node; 27002: using _Base::_M_get_Node_allocator; 27002: # 706 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template 27002: _Node* 27002: _M_create_node(_Args&&... __args) 27002: { 27002: auto __p = this->_M_get_node(); 27002: auto& __alloc = _M_get_Node_allocator(); 27002: __allocated_ptr<_Node_alloc_type> __guard{__alloc, __p}; 27002: _Node_alloc_traits::construct(__alloc, __p->_M_valptr(), 27002: std::forward<_Args>(__args)...); 27002: __guard = nullptr; 27002: return __p; 27002: } 27002: 27002: 27002: 27002: static size_t 27002: _S_distance(const_iterator __first, const_iterator __last) 27002: { return std::distance(__first, __last); } 27002: 27002: 27002: size_t 27002: _M_node_count() const 27002: { return this->_M_get_size(); } 27002: # 741 "/usr/include/c++/12/bits/stl_list.h" 3 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: list() = default; 27002: # 758 "/usr/include/c++/12/bits/stl_list.h" 3 27002: explicit 27002: list(const allocator_type& __a) noexcept 27002: : _Base(_Node_alloc_type(__a)) { } 27002: # 771 "/usr/include/c++/12/bits/stl_list.h" 3 27002: explicit 27002: list(size_type __n, const allocator_type& __a = allocator_type()) 27002: : _Base(_Node_alloc_type(__a)) 27002: { _M_default_initialize(__n); } 27002: # 784 "/usr/include/c++/12/bits/stl_list.h" 3 27002: list(size_type __n, const value_type& __value, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(_Node_alloc_type(__a)) 27002: { _M_fill_initialize(__n, __value); } 27002: # 811 "/usr/include/c++/12/bits/stl_list.h" 3 27002: list(const list& __x) 27002: : _Base(_Node_alloc_traits:: 27002: _S_select_on_copy(__x._M_get_Node_allocator())) 27002: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 27002: # 824 "/usr/include/c++/12/bits/stl_list.h" 3 27002: list(list&&) = default; 27002: # 834 "/usr/include/c++/12/bits/stl_list.h" 3 27002: list(initializer_list __l, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(_Node_alloc_type(__a)) 27002: { _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); } 27002: 27002: list(const list& __x, const __type_identity_t& __a) 27002: : _Base(_Node_alloc_type(__a)) 27002: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 27002: 27002: private: 27002: list(list&& __x, const allocator_type& __a, true_type) noexcept 27002: : _Base(_Node_alloc_type(__a), std::move(__x)) 27002: { } 27002: 27002: list(list&& __x, const allocator_type& __a, false_type) 27002: : _Base(_Node_alloc_type(__a)) 27002: { 27002: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 27002: this->_M_move_nodes(std::move(__x)); 27002: else 27002: insert(begin(), std::__make_move_if_noexcept_iterator(__x.begin()), 27002: std::__make_move_if_noexcept_iterator(__x.end())); 27002: } 27002: 27002: public: 27002: list(list&& __x, const __type_identity_t& __a) 27002: noexcept(_Node_alloc_traits::_S_always_equal()) 27002: : list(std::move(__x), __a, 27002: typename _Node_alloc_traits::is_always_equal{}) 27002: { } 27002: # 877 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template> 27002: list(_InputIterator __first, _InputIterator __last, 27002: const allocator_type& __a = allocator_type()) 27002: : _Base(_Node_alloc_type(__a)) 27002: { _M_initialize_dispatch(__first, __last, __false_type()); } 27002: # 903 "/usr/include/c++/12/bits/stl_list.h" 3 27002: ~list() = default; 27002: # 914 "/usr/include/c++/12/bits/stl_list.h" 3 27002: list& 27002: operator=(const list& __x); 27002: # 928 "/usr/include/c++/12/bits/stl_list.h" 3 27002: list& 27002: operator=(list&& __x) 27002: noexcept(_Node_alloc_traits::_S_nothrow_move()) 27002: { 27002: constexpr bool __move_storage = 27002: _Node_alloc_traits::_S_propagate_on_move_assign() 27002: || _Node_alloc_traits::_S_always_equal(); 27002: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 27002: return *this; 27002: } 27002: # 946 "/usr/include/c++/12/bits/stl_list.h" 3 27002: list& 27002: operator=(initializer_list __l) 27002: { 27002: this->assign(__l.begin(), __l.end()); 27002: return *this; 27002: } 27002: # 964 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: assign(size_type __n, const value_type& __val) 27002: { _M_fill_assign(__n, __val); } 27002: # 981 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template> 27002: void 27002: assign(_InputIterator __first, _InputIterator __last) 27002: { _M_assign_dispatch(__first, __last, __false_type()); } 27002: # 1005 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: assign(initializer_list __l) 27002: { this->_M_assign_dispatch(__l.begin(), __l.end(), __false_type()); } 27002: 27002: 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return allocator_type(_Base::_M_get_Node_allocator()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: iterator 27002: begin() noexcept 27002: { return iterator(this->_M_impl._M_node._M_next); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: begin() const noexcept 27002: { return const_iterator(this->_M_impl._M_node._M_next); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: iterator 27002: end() noexcept 27002: { return iterator(&this->_M_impl._M_node); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: end() const noexcept 27002: { return const_iterator(&this->_M_impl._M_node); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reverse_iterator 27002: rbegin() noexcept 27002: { return reverse_iterator(end()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: rbegin() const noexcept 27002: { return const_reverse_iterator(end()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reverse_iterator 27002: rend() noexcept 27002: { return reverse_iterator(begin()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: rend() const noexcept 27002: { return const_reverse_iterator(begin()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: cbegin() const noexcept 27002: { return const_iterator(this->_M_impl._M_node._M_next); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_iterator 27002: cend() const noexcept 27002: { return const_iterator(&this->_M_impl._M_node); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: crbegin() const noexcept 27002: { return const_reverse_iterator(end()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reverse_iterator 27002: crend() const noexcept 27002: { return const_reverse_iterator(begin()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } 27002: 27002: 27002: [[__nodiscard__]] 27002: size_type 27002: size() const noexcept 27002: { return _M_node_count(); } 27002: 27002: 27002: [[__nodiscard__]] 27002: size_type 27002: max_size() const noexcept 27002: { return _Node_alloc_traits::max_size(_M_get_Node_allocator()); } 27002: # 1168 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: resize(size_type __new_size); 27002: # 1181 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: resize(size_type __new_size, const value_type& __x); 27002: # 1203 "/usr/include/c++/12/bits/stl_list.h" 3 27002: [[__nodiscard__]] 27002: reference 27002: front() noexcept 27002: { return *begin(); } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: front() const noexcept 27002: { return *begin(); } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: reference 27002: back() noexcept 27002: { 27002: iterator __tmp = end(); 27002: --__tmp; 27002: return *__tmp; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: const_reference 27002: back() const noexcept 27002: { 27002: const_iterator __tmp = end(); 27002: --__tmp; 27002: return *__tmp; 27002: } 27002: # 1254 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: push_front(const value_type& __x) 27002: { this->_M_insert(begin(), __x); } 27002: 27002: 27002: void 27002: push_front(value_type&& __x) 27002: { this->_M_insert(begin(), std::move(__x)); } 27002: 27002: template 27002: 27002: reference 27002: 27002: 27002: 27002: emplace_front(_Args&&... __args) 27002: { 27002: this->_M_insert(begin(), std::forward<_Args>(__args)...); 27002: 27002: return front(); 27002: 27002: } 27002: # 1290 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: pop_front() noexcept 27002: { this->_M_erase(begin()); } 27002: # 1304 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: push_back(const value_type& __x) 27002: { this->_M_insert(end(), __x); } 27002: 27002: 27002: void 27002: push_back(value_type&& __x) 27002: { this->_M_insert(end(), std::move(__x)); } 27002: 27002: template 27002: 27002: reference 27002: 27002: 27002: 27002: emplace_back(_Args&&... __args) 27002: { 27002: this->_M_insert(end(), std::forward<_Args>(__args)...); 27002: 27002: return back(); 27002: 27002: } 27002: # 1339 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: pop_back() noexcept 27002: { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } 27002: # 1356 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template 27002: iterator 27002: emplace(const_iterator __position, _Args&&... __args); 27002: # 1371 "/usr/include/c++/12/bits/stl_list.h" 3 27002: iterator 27002: insert(const_iterator __position, const value_type& __x); 27002: # 1401 "/usr/include/c++/12/bits/stl_list.h" 3 27002: iterator 27002: insert(const_iterator __position, value_type&& __x) 27002: { return emplace(__position, std::move(__x)); } 27002: # 1420 "/usr/include/c++/12/bits/stl_list.h" 3 27002: iterator 27002: insert(const_iterator __p, initializer_list __l) 27002: { return this->insert(__p, __l.begin(), __l.end()); } 27002: # 1440 "/usr/include/c++/12/bits/stl_list.h" 3 27002: iterator 27002: insert(const_iterator __position, size_type __n, const value_type& __x); 27002: # 1479 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template> 27002: iterator 27002: insert(const_iterator __position, _InputIterator __first, 27002: _InputIterator __last); 27002: # 1523 "/usr/include/c++/12/bits/stl_list.h" 3 27002: iterator 27002: 27002: erase(const_iterator __position) noexcept; 27002: # 1548 "/usr/include/c++/12/bits/stl_list.h" 3 27002: iterator 27002: 27002: erase(const_iterator __first, const_iterator __last) noexcept 27002: 27002: 27002: 27002: { 27002: while (__first != __last) 27002: __first = erase(__first); 27002: return __last._M_const_cast(); 27002: } 27002: # 1571 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: swap(list& __x) noexcept 27002: { 27002: __detail::_List_node_base::swap(this->_M_impl._M_node, 27002: __x._M_impl._M_node); 27002: 27002: size_t __xsize = __x._M_get_size(); 27002: __x._M_set_size(this->_M_get_size()); 27002: this->_M_set_size(__xsize); 27002: 27002: _Node_alloc_traits::_S_on_swap(this->_M_get_Node_allocator(), 27002: __x._M_get_Node_allocator()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: clear() noexcept 27002: { 27002: _Base::_M_clear(); 27002: _Base::_M_init(); 27002: } 27002: # 1610 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: 27002: splice(const_iterator __position, list&& __x) noexcept 27002: 27002: 27002: 27002: { 27002: if (!__x.empty()) 27002: { 27002: _M_check_equal_allocators(__x); 27002: 27002: this->_M_transfer(__position._M_const_cast(), 27002: __x.begin(), __x.end()); 27002: 27002: this->_M_inc_size(__x._M_get_size()); 27002: __x._M_set_size(0); 27002: } 27002: } 27002: 27002: 27002: void 27002: splice(const_iterator __position, list& __x) noexcept 27002: { splice(__position, std::move(__x)); } 27002: # 1646 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: splice(const_iterator __position, list&& __x, const_iterator __i) noexcept 27002: # 1661 "/usr/include/c++/12/bits/stl_list.h" 3 27002: { 27002: iterator __j = __i._M_const_cast(); 27002: ++__j; 27002: if (__position == __i || __position == __j) 27002: return; 27002: 27002: if (this != std::__addressof(__x)) 27002: _M_check_equal_allocators(__x); 27002: 27002: this->_M_transfer(__position._M_const_cast(), 27002: __i._M_const_cast(), __j); 27002: 27002: this->_M_inc_size(1); 27002: __x._M_dec_size(1); 27002: } 27002: # 1688 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: splice(const_iterator __position, list& __x, const_iterator __i) noexcept 27002: { splice(__position, std::move(__x), __i); } 27002: # 1707 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: splice(const_iterator __position, list&& __x, const_iterator __first, 27002: const_iterator __last) noexcept 27002: # 1727 "/usr/include/c++/12/bits/stl_list.h" 3 27002: { 27002: if (__first != __last) 27002: { 27002: if (this != std::__addressof(__x)) 27002: _M_check_equal_allocators(__x); 27002: 27002: size_t __n = _S_distance(__first, __last); 27002: this->_M_inc_size(__n); 27002: __x._M_dec_size(__n); 27002: 27002: this->_M_transfer(__position._M_const_cast(), 27002: __first._M_const_cast(), 27002: __last._M_const_cast()); 27002: } 27002: } 27002: # 1757 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: splice(const_iterator __position, list& __x, const_iterator __first, 27002: const_iterator __last) noexcept 27002: { splice(__position, std::move(__x), __first, __last); } 27002: 27002: 27002: private: 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef void __remove_return_type; 27002: 27002: 27002: public: 27002: # 1786 "/usr/include/c++/12/bits/stl_list.h" 3 27002: 27002: __remove_return_type 27002: remove(const _Tp& __value); 27002: # 1801 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template 27002: __remove_return_type 27002: remove_if(_Predicate); 27002: # 1815 "/usr/include/c++/12/bits/stl_list.h" 3 27002: 27002: __remove_return_type 27002: unique(); 27002: # 1831 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template 27002: __remove_return_type 27002: unique(_BinaryPredicate); 27002: # 1847 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: merge(list&& __x); 27002: 27002: void 27002: merge(list& __x) 27002: { merge(std::move(__x)); } 27002: # 1872 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template 27002: void 27002: merge(list&& __x, _StrictWeakOrdering __comp); 27002: 27002: template 27002: void 27002: merge(list& __x, _StrictWeakOrdering __comp) 27002: { merge(std::move(__x), __comp); } 27002: # 1891 "/usr/include/c++/12/bits/stl_list.h" 3 27002: void 27002: reverse() noexcept 27002: { this->_M_impl._M_node._M_reverse(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: sort(); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: void 27002: sort(_StrictWeakOrdering); 27002: 27002: protected: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: void 27002: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 27002: { _M_fill_initialize(static_cast(__n), __x); } 27002: 27002: 27002: template 27002: void 27002: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 27002: __false_type) 27002: { 27002: for (; __first != __last; ++__first) 27002: 27002: emplace_back(*__first); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: void 27002: _M_fill_initialize(size_type __n, const value_type& __x) 27002: { 27002: for (; __n; --__n) 27002: push_back(__x); 27002: } 27002: 27002: 27002: 27002: void 27002: _M_default_initialize(size_type __n) 27002: { 27002: for (; __n; --__n) 27002: emplace_back(); 27002: } 27002: 27002: 27002: void 27002: _M_default_append(size_type __n); 27002: # 1969 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template 27002: void 27002: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 27002: { _M_fill_assign(__n, __val); } 27002: 27002: 27002: template 27002: void 27002: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 27002: __false_type); 27002: 27002: 27002: 27002: void 27002: _M_fill_assign(size_type __n, const value_type& __val); 27002: 27002: 27002: 27002: void 27002: _M_transfer(iterator __position, iterator __first, iterator __last) 27002: { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } 27002: # 2001 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template 27002: void 27002: _M_insert(iterator __position, _Args&&... __args) 27002: { 27002: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 27002: __tmp->_M_hook(__position._M_node); 27002: this->_M_inc_size(1); 27002: } 27002: 27002: 27002: 27002: void 27002: _M_erase(iterator __position) noexcept 27002: { 27002: this->_M_dec_size(1); 27002: __position._M_node->_M_unhook(); 27002: _Node* __n = static_cast<_Node*>(__position._M_node); 27002: 27002: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __n->_M_valptr()); 27002: 27002: 27002: 27002: 27002: _M_put_node(__n); 27002: } 27002: 27002: 27002: void 27002: _M_check_equal_allocators(list& __x) noexcept 27002: { 27002: if (std::__alloc_neq:: 27002: _S_do_it(_M_get_Node_allocator(), __x._M_get_Node_allocator())) 27002: __builtin_abort(); 27002: } 27002: 27002: 27002: const_iterator 27002: _M_resize_pos(size_type& __new_size) const; 27002: 27002: 27002: void 27002: _M_move_assign(list&& __x, true_type) noexcept 27002: { 27002: this->clear(); 27002: this->_M_move_nodes(std::move(__x)); 27002: std::__alloc_on_move(this->_M_get_Node_allocator(), 27002: __x._M_get_Node_allocator()); 27002: } 27002: 27002: void 27002: _M_move_assign(list&& __x, false_type) 27002: { 27002: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 27002: _M_move_assign(std::move(__x), true_type{}); 27002: else 27002: 27002: 27002: _M_assign_dispatch(std::make_move_iterator(__x.begin()), 27002: std::make_move_iterator(__x.end()), 27002: __false_type{}); 27002: } 27002: 27002: 27002: 27002: 27002: struct _Finalize_merge 27002: { 27002: explicit 27002: _Finalize_merge(list& __dest, list& __src, const iterator& __src_next) 27002: : _M_dest(__dest), _M_src(__src), _M_next(__src_next) 27002: { } 27002: 27002: ~_Finalize_merge() 27002: { 27002: 27002: 27002: 27002: const size_t __num_unmerged = std::distance(_M_next, _M_src.end()); 27002: const size_t __orig_size = _M_src._M_get_size(); 27002: _M_dest._M_inc_size(__orig_size - __num_unmerged); 27002: _M_src._M_set_size(__num_unmerged); 27002: } 27002: 27002: list& _M_dest; 27002: list& _M_src; 27002: const iterator& _M_next; 27002: 27002: 27002: _Finalize_merge(const _Finalize_merge&) = delete; 27002: 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: template::value_type, 27002: typename _Allocator = allocator<_ValT>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireAllocator<_Allocator>> 27002: list(_InputIterator, _InputIterator, _Allocator = _Allocator()) 27002: -> list<_ValT, _Allocator>; 27002: 27002: 27002: } 27002: # 2121 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 27002: { 27002: 27002: if (__x.size() != __y.size()) 27002: return false; 27002: 27002: 27002: typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; 27002: const_iterator __end1 = __x.end(); 27002: const_iterator __end2 = __y.end(); 27002: 27002: const_iterator __i1 = __x.begin(); 27002: const_iterator __i2 = __y.begin(); 27002: while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) 27002: { 27002: ++__i1; 27002: ++__i2; 27002: } 27002: return __i1 == __end1 && __i2 == __end2; 27002: } 27002: # 2178 "/usr/include/c++/12/bits/stl_list.h" 3 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 27002: { return std::lexicographical_compare(__x.begin(), __x.end(), 27002: __y.begin(), __y.end()); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 27002: { return __y < __x; } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 27002: { return !(__y < __x); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline ptrdiff_t 27002: __distance(std::_List_iterator<_Tp> __first, 27002: std::_List_iterator<_Tp> __last, 27002: input_iterator_tag __tag) 27002: { 27002: typedef std::_List_const_iterator<_Tp> _CIter; 27002: return std::__distance(_CIter(__first), _CIter(__last), __tag); 27002: } 27002: 27002: template 27002: inline ptrdiff_t 27002: __distance(std::_List_const_iterator<_Tp> __first, 27002: std::_List_const_iterator<_Tp> __last, 27002: input_iterator_tag) 27002: { 27002: typedef __detail::_List_node_header _Sentinel; 27002: std::_List_const_iterator<_Tp> __beyond = __last; 27002: ++__beyond; 27002: const bool __whole = __first == __beyond; 27002: if (__builtin_constant_p (__whole) && __whole) 27002: return static_cast(__last._M_node)->_M_size; 27002: 27002: ptrdiff_t __n = 0; 27002: while (__first != __last) 27002: { 27002: ++__first; 27002: ++__n; 27002: } 27002: return __n; 27002: } 27002: 27002: 27002: 27002: } 27002: # 64 "/usr/include/c++/12/list" 2 3 27002: # 1 "/usr/include/c++/12/bits/list.tcc" 1 3 27002: # 59 "/usr/include/c++/12/bits/list.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: void 27002: _List_base<_Tp, _Alloc>:: 27002: _M_clear() noexcept 27002: { 27002: typedef _List_node<_Tp> _Node; 27002: __detail::_List_node_base* __cur = _M_impl._M_node._M_next; 27002: while (__cur != &_M_impl._M_node) 27002: { 27002: _Node* __tmp = static_cast<_Node*>(__cur); 27002: __cur = __tmp->_M_next; 27002: _Tp* __val = __tmp->_M_valptr(); 27002: 27002: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __val); 27002: 27002: 27002: 27002: _M_put_node(__tmp); 27002: } 27002: } 27002: 27002: 27002: template 27002: template 27002: typename list<_Tp, _Alloc>::iterator 27002: list<_Tp, _Alloc>:: 27002: emplace(const_iterator __position, _Args&&... __args) 27002: { 27002: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 27002: __tmp->_M_hook(__position._M_const_cast()._M_node); 27002: this->_M_inc_size(1); 27002: return iterator(__tmp); 27002: } 27002: 27002: 27002: template 27002: typename list<_Tp, _Alloc>::iterator 27002: list<_Tp, _Alloc>:: 27002: 27002: insert(const_iterator __position, const value_type& __x) 27002: 27002: 27002: 27002: { 27002: _Node* __tmp = _M_create_node(__x); 27002: __tmp->_M_hook(__position._M_const_cast()._M_node); 27002: this->_M_inc_size(1); 27002: return iterator(__tmp); 27002: } 27002: 27002: 27002: template 27002: typename list<_Tp, _Alloc>::iterator 27002: list<_Tp, _Alloc>:: 27002: insert(const_iterator __position, size_type __n, const value_type& __x) 27002: { 27002: if (__n) 27002: { 27002: list __tmp(__n, __x, get_allocator()); 27002: iterator __it = __tmp.begin(); 27002: splice(__position, __tmp); 27002: return __it; 27002: } 27002: return __position._M_const_cast(); 27002: } 27002: 27002: template 27002: template 27002: typename list<_Tp, _Alloc>::iterator 27002: list<_Tp, _Alloc>:: 27002: insert(const_iterator __position, _InputIterator __first, 27002: _InputIterator __last) 27002: { 27002: list __tmp(__first, __last, get_allocator()); 27002: if (!__tmp.empty()) 27002: { 27002: iterator __it = __tmp.begin(); 27002: splice(__position, __tmp); 27002: return __it; 27002: } 27002: return __position._M_const_cast(); 27002: } 27002: 27002: 27002: template 27002: typename list<_Tp, _Alloc>::iterator 27002: list<_Tp, _Alloc>:: 27002: 27002: erase(const_iterator __position) noexcept 27002: 27002: 27002: 27002: { 27002: iterator __ret = iterator(__position._M_node->_M_next); 27002: _M_erase(__position._M_const_cast()); 27002: return __ret; 27002: } 27002: # 173 "/usr/include/c++/12/bits/list.tcc" 3 27002: template 27002: typename list<_Tp, _Alloc>::const_iterator 27002: list<_Tp, _Alloc>:: 27002: _M_resize_pos(size_type& __new_size) const 27002: { 27002: const_iterator __i; 27002: 27002: const size_type __len = size(); 27002: if (__new_size < __len) 27002: { 27002: if (__new_size <= __len / 2) 27002: { 27002: __i = begin(); 27002: std::advance(__i, __new_size); 27002: } 27002: else 27002: { 27002: __i = end(); 27002: ptrdiff_t __num_erase = __len - __new_size; 27002: std::advance(__i, -__num_erase); 27002: } 27002: __new_size = 0; 27002: return __i; 27002: } 27002: else 27002: __i = end(); 27002: 27002: 27002: 27002: 27002: 27002: __new_size -= __len; 27002: return __i; 27002: } 27002: 27002: 27002: template 27002: void 27002: list<_Tp, _Alloc>:: 27002: _M_default_append(size_type __n) 27002: { 27002: size_type __i = 0; 27002: try 27002: { 27002: for (; __i < __n; ++__i) 27002: emplace_back(); 27002: } 27002: catch(...) 27002: { 27002: for (; __i; --__i) 27002: pop_back(); 27002: throw; 27002: } 27002: } 27002: 27002: template 27002: void 27002: list<_Tp, _Alloc>:: 27002: resize(size_type __new_size) 27002: { 27002: const_iterator __i = _M_resize_pos(__new_size); 27002: if (__new_size) 27002: _M_default_append(__new_size); 27002: else 27002: erase(__i, end()); 27002: } 27002: 27002: template 27002: void 27002: list<_Tp, _Alloc>:: 27002: resize(size_type __new_size, const value_type& __x) 27002: { 27002: const_iterator __i = _M_resize_pos(__new_size); 27002: if (__new_size) 27002: insert(end(), __new_size, __x); 27002: else 27002: erase(__i, end()); 27002: } 27002: # 265 "/usr/include/c++/12/bits/list.tcc" 3 27002: template 27002: list<_Tp, _Alloc>& 27002: list<_Tp, _Alloc>:: 27002: operator=(const list& __x) 27002: { 27002: if (this != std::__addressof(__x)) 27002: { 27002: 27002: if (_Node_alloc_traits::_S_propagate_on_copy_assign()) 27002: { 27002: auto& __this_alloc = this->_M_get_Node_allocator(); 27002: auto& __that_alloc = __x._M_get_Node_allocator(); 27002: if (!_Node_alloc_traits::_S_always_equal() 27002: && __this_alloc != __that_alloc) 27002: { 27002: 27002: clear(); 27002: } 27002: std::__alloc_on_copy(__this_alloc, __that_alloc); 27002: } 27002: 27002: _M_assign_dispatch(__x.begin(), __x.end(), __false_type()); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: void 27002: list<_Tp, _Alloc>:: 27002: _M_fill_assign(size_type __n, const value_type& __val) 27002: { 27002: iterator __i = begin(); 27002: for (; __i != end() && __n > 0; ++__i, --__n) 27002: *__i = __val; 27002: if (__n > 0) 27002: insert(end(), __n, __val); 27002: else 27002: erase(__i, end()); 27002: } 27002: 27002: template 27002: template 27002: void 27002: list<_Tp, _Alloc>:: 27002: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, 27002: __false_type) 27002: { 27002: iterator __first1 = begin(); 27002: iterator __last1 = end(); 27002: for (; __first1 != __last1 && __first2 != __last2; 27002: ++__first1, (void)++__first2) 27002: *__first1 = *__first2; 27002: if (__first2 == __last2) 27002: erase(__first1, __last1); 27002: else 27002: insert(__last1, __first2, __last2); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: typename list<_Tp, _Alloc>::__remove_return_type 27002: list<_Tp, _Alloc>:: 27002: remove(const value_type& __value) 27002: { 27002: 27002: 27002: 27002: list __to_destroy(get_allocator()); 27002: iterator __first = begin(); 27002: iterator __last = end(); 27002: while (__first != __last) 27002: { 27002: iterator __next = __first; 27002: ++__next; 27002: if (*__first == __value) 27002: { 27002: 27002: 27002: 27002: __to_destroy.splice(__to_destroy.begin(), *this, __first); 27002: 27002: 27002: 27002: } 27002: 27002: __first = __next; 27002: } 27002: 27002: 27002: 27002: 27002: return ; 27002: 27002: } 27002: 27002: template 27002: typename list<_Tp, _Alloc>::__remove_return_type 27002: list<_Tp, _Alloc>:: 27002: unique() 27002: { 27002: iterator __first = begin(); 27002: iterator __last = end(); 27002: if (__first == __last) 27002: return ; 27002: 27002: 27002: 27002: list __to_destroy(get_allocator()); 27002: iterator __next = __first; 27002: while (++__next != __last) 27002: { 27002: if (*__first == *__next) 27002: { 27002: __to_destroy.splice(__to_destroy.begin(), *this, __next); 27002: 27002: 27002: 27002: } 27002: else 27002: __first = __next; 27002: __next = __first; 27002: } 27002: 27002: 27002: 27002: 27002: return ; 27002: 27002: } 27002: 27002: template 27002: void 27002: list<_Tp, _Alloc>:: 27002: 27002: merge(list&& __x) 27002: 27002: 27002: 27002: { 27002: 27002: 27002: if (this != std::__addressof(__x)) 27002: { 27002: _M_check_equal_allocators(__x); 27002: 27002: iterator __first1 = begin(); 27002: iterator __last1 = end(); 27002: iterator __first2 = __x.begin(); 27002: iterator __last2 = __x.end(); 27002: 27002: const _Finalize_merge __fin(*this, __x, __first2); 27002: 27002: while (__first1 != __last1 && __first2 != __last2) 27002: if (*__first2 < *__first1) 27002: { 27002: iterator __next = __first2; 27002: _M_transfer(__first1, __first2, ++__next); 27002: __first2 = __next; 27002: } 27002: else 27002: ++__first1; 27002: if (__first2 != __last2) 27002: { 27002: _M_transfer(__last1, __first2, __last2); 27002: __first2 = __last2; 27002: } 27002: } 27002: } 27002: 27002: template 27002: template 27002: void 27002: list<_Tp, _Alloc>:: 27002: 27002: merge(list&& __x, _StrictWeakOrdering __comp) 27002: 27002: 27002: 27002: { 27002: 27002: 27002: if (this != std::__addressof(__x)) 27002: { 27002: _M_check_equal_allocators(__x); 27002: 27002: iterator __first1 = begin(); 27002: iterator __last1 = end(); 27002: iterator __first2 = __x.begin(); 27002: iterator __last2 = __x.end(); 27002: 27002: const _Finalize_merge __fin(*this, __x, __first2); 27002: 27002: while (__first1 != __last1 && __first2 != __last2) 27002: if (__comp(*__first2, *__first1)) 27002: { 27002: iterator __next = __first2; 27002: _M_transfer(__first1, __first2, ++__next); 27002: __first2 = __next; 27002: } 27002: else 27002: ++__first1; 27002: if (__first2 != __last2) 27002: { 27002: _M_transfer(__last1, __first2, __last2); 27002: __first2 = __last2; 27002: } 27002: } 27002: } 27002: 27002: template 27002: void 27002: list<_Tp, _Alloc>:: 27002: sort() 27002: { 27002: 27002: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 27002: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 27002: { 27002: using __detail::_Scratch_list; 27002: # 497 "/usr/include/c++/12/bits/list.tcc" 3 27002: _Scratch_list __carry; 27002: _Scratch_list __tmp[64]; 27002: _Scratch_list* __fill = __tmp; 27002: _Scratch_list* __counter; 27002: 27002: _Scratch_list::_Ptr_cmp __ptr_comp; 27002: 27002: try 27002: { 27002: do 27002: { 27002: __carry._M_take_one(begin()._M_node); 27002: 27002: for(__counter = __tmp; 27002: __counter != __fill && !__counter->empty(); 27002: ++__counter) 27002: { 27002: 27002: __counter->merge(__carry, __ptr_comp); 27002: __carry.swap(*__counter); 27002: } 27002: __carry.swap(*__counter); 27002: if (__counter == __fill) 27002: ++__fill; 27002: } 27002: while ( !empty() ); 27002: 27002: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 27002: __counter->merge(__counter[-1], __ptr_comp); 27002: __fill[-1].swap(this->_M_impl._M_node); 27002: } 27002: catch(...) 27002: { 27002: 27002: __carry._M_put_all(end()._M_node); 27002: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 27002: __tmp[__i]._M_put_all(end()._M_node); 27002: throw; 27002: } 27002: } 27002: } 27002: 27002: template 27002: template 27002: typename list<_Tp, _Alloc>::__remove_return_type 27002: list<_Tp, _Alloc>:: 27002: remove_if(_Predicate __pred) 27002: { 27002: 27002: 27002: 27002: list __to_destroy(get_allocator()); 27002: iterator __first = begin(); 27002: iterator __last = end(); 27002: while (__first != __last) 27002: { 27002: iterator __next = __first; 27002: ++__next; 27002: if (__pred(*__first)) 27002: { 27002: __to_destroy.splice(__to_destroy.begin(), *this, __first); 27002: 27002: 27002: 27002: } 27002: __first = __next; 27002: } 27002: 27002: 27002: 27002: 27002: return ; 27002: 27002: } 27002: 27002: template 27002: template 27002: typename list<_Tp, _Alloc>::__remove_return_type 27002: list<_Tp, _Alloc>:: 27002: unique(_BinaryPredicate __binary_pred) 27002: { 27002: iterator __first = begin(); 27002: iterator __last = end(); 27002: if (__first == __last) 27002: return ; 27002: 27002: 27002: 27002: list __to_destroy(get_allocator()); 27002: iterator __next = __first; 27002: while (++__next != __last) 27002: { 27002: if (__binary_pred(*__first, *__next)) 27002: { 27002: __to_destroy.splice(__to_destroy.begin(), *this, __next); 27002: 27002: 27002: 27002: } 27002: else 27002: __first = __next; 27002: __next = __first; 27002: } 27002: 27002: 27002: 27002: 27002: return ; 27002: 27002: } 27002: 27002: 27002: 27002: template 27002: template 27002: void 27002: list<_Tp, _Alloc>:: 27002: sort(_StrictWeakOrdering __comp) 27002: { 27002: 27002: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 27002: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 27002: { 27002: using __detail::_Scratch_list; 27002: _Scratch_list __carry; 27002: _Scratch_list __tmp[64]; 27002: _Scratch_list* __fill = __tmp; 27002: _Scratch_list* __counter; 27002: 27002: _Scratch_list::_Ptr_cmp __ptr_comp 27002: = { __comp }; 27002: 27002: try 27002: { 27002: do 27002: { 27002: __carry._M_take_one(begin()._M_node); 27002: 27002: for(__counter = __tmp; 27002: __counter != __fill && !__counter->empty(); 27002: ++__counter) 27002: { 27002: 27002: __counter->merge(__carry, __ptr_comp); 27002: __carry.swap(*__counter); 27002: } 27002: __carry.swap(*__counter); 27002: if (__counter == __fill) 27002: ++__fill; 27002: } 27002: while ( !empty() ); 27002: 27002: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 27002: __counter->merge(__counter[-1], __ptr_comp); 27002: __fill[-1].swap(this->_M_impl._M_node); 27002: } 27002: catch(...) 27002: { 27002: 27002: __carry._M_put_all(end()._M_node); 27002: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 27002: __tmp[__i]._M_put_all(end()._M_node); 27002: throw; 27002: } 27002: } 27002: } 27002: 27002: 27002: 27002: } 27002: # 65 "/usr/include/c++/12/list" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace pmr 27002: { 27002: template class polymorphic_allocator; 27002: template 27002: using list = std::list<_Tp, polymorphic_allocator<_Tp>>; 27002: } 27002: 27002: } 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 2 27002: # 1 "/usr/include/c++/12/mutex" 1 3 27002: # 32 "/usr/include/c++/12/mutex" 3 27002: 27002: # 33 "/usr/include/c++/12/mutex" 3 27002: # 55 "/usr/include/c++/12/mutex" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 67 "/usr/include/c++/12/mutex" 3 27002: class __recursive_mutex_base 27002: { 27002: protected: 27002: typedef __gthread_recursive_mutex_t __native_type; 27002: 27002: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 27002: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 27002: 27002: 27002: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 27002: 27002: __recursive_mutex_base() = default; 27002: # 91 "/usr/include/c++/12/mutex" 3 27002: }; 27002: 27002: 27002: class recursive_mutex : private __recursive_mutex_base 27002: { 27002: public: 27002: typedef __native_type* native_handle_type; 27002: 27002: recursive_mutex() = default; 27002: ~recursive_mutex() = default; 27002: 27002: recursive_mutex(const recursive_mutex&) = delete; 27002: recursive_mutex& operator=(const recursive_mutex&) = delete; 27002: 27002: void 27002: lock() 27002: { 27002: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 27002: 27002: 27002: if (__e) 27002: __throw_system_error(__e); 27002: } 27002: 27002: bool 27002: try_lock() noexcept 27002: { 27002: 27002: return !__gthread_recursive_mutex_trylock(&_M_mutex); 27002: } 27002: 27002: void 27002: unlock() 27002: { 27002: 27002: __gthread_recursive_mutex_unlock(&_M_mutex); 27002: } 27002: 27002: native_handle_type 27002: native_handle() noexcept 27002: { return &_M_mutex; } 27002: }; 27002: 27002: 27002: template 27002: class __timed_mutex_impl 27002: { 27002: protected: 27002: template 27002: bool 27002: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 27002: { 27002: 27002: using __clock = chrono::steady_clock; 27002: 27002: 27002: 27002: 27002: auto __rt = chrono::duration_cast<__clock::duration>(__rtime); 27002: if (ratio_greater<__clock::period, _Period>()) 27002: ++__rt; 27002: return _M_try_lock_until(__clock::now() + __rt); 27002: } 27002: 27002: template 27002: bool 27002: _M_try_lock_until(const chrono::time_point& __atime) 27002: { 27002: auto __s = chrono::time_point_cast(__atime); 27002: auto __ns = chrono::duration_cast(__atime - __s); 27002: 27002: __gthread_time_t __ts = { 27002: static_cast(__s.time_since_epoch().count()), 27002: static_cast(__ns.count()) 27002: }; 27002: 27002: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 27002: } 27002: 27002: 27002: template 27002: bool 27002: _M_try_lock_until(const chrono::time_point& __atime) 27002: { 27002: auto __s = chrono::time_point_cast(__atime); 27002: auto __ns = chrono::duration_cast(__atime - __s); 27002: 27002: __gthread_time_t __ts = { 27002: static_cast(__s.time_since_epoch().count()), 27002: static_cast(__ns.count()) 27002: }; 27002: 27002: return static_cast<_Derived*>(this)->_M_clocklock(1, 27002: __ts); 27002: } 27002: 27002: 27002: template 27002: bool 27002: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: auto __now = _Clock::now(); 27002: do { 27002: auto __rtime = __atime - __now; 27002: if (_M_try_lock_for(__rtime)) 27002: return true; 27002: __now = _Clock::now(); 27002: } while (__atime > __now); 27002: return false; 27002: } 27002: }; 27002: 27002: 27002: class timed_mutex 27002: : private __mutex_base, public __timed_mutex_impl 27002: { 27002: public: 27002: typedef __native_type* native_handle_type; 27002: 27002: timed_mutex() = default; 27002: ~timed_mutex() = default; 27002: 27002: timed_mutex(const timed_mutex&) = delete; 27002: timed_mutex& operator=(const timed_mutex&) = delete; 27002: 27002: void 27002: lock() 27002: { 27002: int __e = __gthread_mutex_lock(&_M_mutex); 27002: 27002: 27002: if (__e) 27002: __throw_system_error(__e); 27002: } 27002: 27002: bool 27002: try_lock() noexcept 27002: { 27002: 27002: return !__gthread_mutex_trylock(&_M_mutex); 27002: } 27002: 27002: template 27002: bool 27002: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 27002: { return _M_try_lock_for(__rtime); } 27002: 27002: template 27002: bool 27002: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 27002: { return _M_try_lock_until(__atime); } 27002: 27002: void 27002: unlock() 27002: { 27002: 27002: __gthread_mutex_unlock(&_M_mutex); 27002: } 27002: 27002: native_handle_type 27002: native_handle() noexcept 27002: { return &_M_mutex; } 27002: 27002: private: 27002: friend class __timed_mutex_impl; 27002: 27002: bool 27002: _M_timedlock(const __gthread_time_t& __ts) 27002: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 27002: 27002: 27002: bool 27002: _M_clocklock(clockid_t clockid, const __gthread_time_t& __ts) 27002: { return !pthread_mutex_clocklock(&_M_mutex, clockid, &__ts); } 27002: 27002: }; 27002: 27002: 27002: class recursive_timed_mutex 27002: : private __recursive_mutex_base, 27002: public __timed_mutex_impl 27002: { 27002: public: 27002: typedef __native_type* native_handle_type; 27002: 27002: recursive_timed_mutex() = default; 27002: ~recursive_timed_mutex() = default; 27002: 27002: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 27002: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 27002: 27002: void 27002: lock() 27002: { 27002: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 27002: 27002: 27002: if (__e) 27002: __throw_system_error(__e); 27002: } 27002: 27002: bool 27002: try_lock() noexcept 27002: { 27002: 27002: return !__gthread_recursive_mutex_trylock(&_M_mutex); 27002: } 27002: 27002: template 27002: bool 27002: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 27002: { return _M_try_lock_for(__rtime); } 27002: 27002: template 27002: bool 27002: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 27002: { return _M_try_lock_until(__atime); } 27002: 27002: void 27002: unlock() 27002: { 27002: 27002: __gthread_recursive_mutex_unlock(&_M_mutex); 27002: } 27002: 27002: native_handle_type 27002: native_handle() noexcept 27002: { return &_M_mutex; } 27002: 27002: private: 27002: friend class __timed_mutex_impl; 27002: 27002: bool 27002: _M_timedlock(const __gthread_time_t& __ts) 27002: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 27002: 27002: 27002: bool 27002: _M_clocklock(clockid_t clockid, const __gthread_time_t& __ts) 27002: { return !pthread_mutex_clocklock(&_M_mutex, clockid, &__ts); } 27002: 27002: }; 27002: # 515 "/usr/include/c++/12/mutex" 3 27002: namespace __detail 27002: { 27002: 27002: template 27002: inline int 27002: __try_lock_impl(_Lockable& __l) 27002: { 27002: if (unique_lock<_Lockable> __lock{__l, try_to_lock}) 27002: { 27002: __lock.release(); 27002: return -1; 27002: } 27002: else 27002: return 0; 27002: } 27002: 27002: 27002: 27002: template 27002: inline int 27002: __try_lock_impl(_L0& __l0, _Lockables&... __lockables) 27002: { 27002: 27002: if constexpr ((is_same_v<_L0, _Lockables> && ...)) 27002: { 27002: constexpr int _Np = 1 + sizeof...(_Lockables); 27002: unique_lock<_L0> __locks[_Np] = { 27002: {__l0, defer_lock}, {__lockables, defer_lock}... 27002: }; 27002: for (int __i = 0; __i < _Np; ++__i) 27002: { 27002: if (!__locks[__i].try_lock()) 27002: { 27002: const int __failed = __i; 27002: while (__i--) 27002: __locks[__i].unlock(); 27002: return __failed; 27002: } 27002: } 27002: for (auto& __l : __locks) 27002: __l.release(); 27002: return -1; 27002: } 27002: else 27002: 27002: if (unique_lock<_L0> __lock{__l0, try_to_lock}) 27002: { 27002: int __idx = __detail::__try_lock_impl(__lockables...); 27002: if (__idx == -1) 27002: { 27002: __lock.release(); 27002: return -1; 27002: } 27002: return __idx + 1; 27002: } 27002: else 27002: return 0; 27002: } 27002: 27002: } 27002: # 587 "/usr/include/c++/12/mutex" 3 27002: template 27002: inline int 27002: try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) 27002: { 27002: return __detail::__try_lock_impl(__l1, __l2, __l3...); 27002: } 27002: 27002: 27002: namespace __detail 27002: { 27002: 27002: 27002: 27002: 27002: 27002: template 27002: void 27002: __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) 27002: { 27002: while (__i >= __depth) 27002: { 27002: if (__i == __depth) 27002: { 27002: int __failed = 1; 27002: { 27002: unique_lock<_L0> __first(__l0); 27002: __failed += __detail::__try_lock_impl(__l1...); 27002: if (!__failed) 27002: { 27002: __i = -1; 27002: __first.release(); 27002: return; 27002: } 27002: } 27002: 27002: __gthread_yield(); 27002: 27002: constexpr auto __n = 1 + sizeof...(_L1); 27002: __i = (__depth + __failed) % __n; 27002: } 27002: else 27002: __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); 27002: } 27002: } 27002: 27002: } 27002: # 646 "/usr/include/c++/12/mutex" 3 27002: template 27002: void 27002: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 27002: { 27002: 27002: if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) 27002: { 27002: constexpr int _Np = 2 + sizeof...(_L3); 27002: unique_lock<_L1> __locks[] = { 27002: {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... 27002: }; 27002: int __first = 0; 27002: do { 27002: __locks[__first].lock(); 27002: for (int __j = 1; __j < _Np; ++__j) 27002: { 27002: const int __idx = (__first + __j) % _Np; 27002: if (!__locks[__idx].try_lock()) 27002: { 27002: for (int __k = __j; __k != 0; --__k) 27002: __locks[(__first + __k - 1) % _Np].unlock(); 27002: __first = __idx; 27002: break; 27002: } 27002: } 27002: } while (!__locks[__first].owns_lock()); 27002: 27002: for (auto& __l : __locks) 27002: __l.release(); 27002: } 27002: else 27002: 27002: { 27002: int __i = 0; 27002: __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); 27002: } 27002: } 27002: # 691 "/usr/include/c++/12/mutex" 3 27002: template 27002: class scoped_lock 27002: { 27002: public: 27002: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) 27002: { std::lock(__m...); } 27002: 27002: explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept 27002: : _M_devices(std::tie(__m...)) 27002: { } 27002: 27002: ~scoped_lock() 27002: { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } 27002: 27002: scoped_lock(const scoped_lock&) = delete; 27002: scoped_lock& operator=(const scoped_lock&) = delete; 27002: 27002: private: 27002: tuple<_MutexTypes&...> _M_devices; 27002: }; 27002: 27002: template<> 27002: class scoped_lock<> 27002: { 27002: public: 27002: explicit scoped_lock() = default; 27002: explicit scoped_lock(adopt_lock_t) noexcept { } 27002: ~scoped_lock() = default; 27002: 27002: scoped_lock(const scoped_lock&) = delete; 27002: scoped_lock& operator=(const scoped_lock&) = delete; 27002: }; 27002: 27002: template 27002: class scoped_lock<_Mutex> 27002: { 27002: public: 27002: using mutex_type = _Mutex; 27002: 27002: explicit scoped_lock(mutex_type& __m) : _M_device(__m) 27002: { _M_device.lock(); } 27002: 27002: explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept 27002: : _M_device(__m) 27002: { } 27002: 27002: ~scoped_lock() 27002: { _M_device.unlock(); } 27002: 27002: scoped_lock(const scoped_lock&) = delete; 27002: scoped_lock& operator=(const scoped_lock&) = delete; 27002: 27002: private: 27002: mutex_type& _M_device; 27002: }; 27002: 27002: 27002: 27002: 27002: struct once_flag 27002: { 27002: constexpr once_flag() noexcept = default; 27002: 27002: 27002: once_flag(const once_flag&) = delete; 27002: 27002: once_flag& operator=(const once_flag&) = delete; 27002: 27002: private: 27002: 27002: 27002: __gthread_once_t _M_once = 0; 27002: 27002: struct _Prepare_execution; 27002: 27002: template 27002: friend void 27002: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: extern __thread void* __once_callable; 27002: extern __thread void (*__once_call)(); 27002: 27002: 27002: struct once_flag::_Prepare_execution 27002: { 27002: template 27002: explicit 27002: _Prepare_execution(_Callable& __c) 27002: { 27002: 27002: __once_callable = std::__addressof(__c); 27002: 27002: __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 27002: } 27002: 27002: ~_Prepare_execution() 27002: { 27002: 27002: __once_callable = nullptr; 27002: __once_call = nullptr; 27002: } 27002: 27002: _Prepare_execution(const _Prepare_execution&) = delete; 27002: _Prepare_execution& operator=(const _Prepare_execution&) = delete; 27002: }; 27002: # 843 "/usr/include/c++/12/mutex" 3 27002: extern "C" void __once_proxy(void); 27002: 27002: 27002: template 27002: void 27002: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 27002: { 27002: 27002: auto __callable = [&] { 27002: std::__invoke(std::forward<_Callable>(__f), 27002: std::forward<_Args>(__args)...); 27002: }; 27002: 27002: once_flag::_Prepare_execution __exec(__callable); 27002: 27002: 27002: if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) 27002: __throw_system_error(__e); 27002: } 27002: # 964 "/usr/include/c++/12/mutex" 3 27002: 27002: } 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 2 27002: 27002: 27002: 27002: 27002: # 23 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 27002: namespace rocksdb { 27002: class CacheReservationManager; 27002: 27002: 27002: 27002: class StallInterface { 27002: public: 27002: virtual ~StallInterface() {} 27002: 27002: virtual void Block() = 0; 27002: 27002: virtual void Signal() = 0; 27002: }; 27002: 27002: class WriteBufferManager final { 27002: public: 27002: # 50 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 27002: explicit WriteBufferManager(size_t _buffer_size, 27002: std::shared_ptr cache = {}, 27002: bool allow_stall = false); 27002: 27002: WriteBufferManager(const WriteBufferManager&) = delete; 27002: WriteBufferManager& operator=(const WriteBufferManager&) = delete; 27002: 27002: ~WriteBufferManager(); 27002: 27002: 27002: 27002: bool enabled() const { return buffer_size() > 0; } 27002: 27002: 27002: bool cost_to_cache() const { return cache_res_mgr_ != nullptr; } 27002: 27002: 27002: 27002: size_t memory_usage() const { 27002: return memory_used_.load(std::memory_order_relaxed); 27002: } 27002: 27002: 27002: size_t mutable_memtable_memory_usage() const { 27002: return memory_active_.load(std::memory_order_relaxed); 27002: } 27002: 27002: size_t dummy_entries_in_cache_usage() const; 27002: 27002: 27002: size_t buffer_size() const { 27002: return buffer_size_.load(std::memory_order_relaxed); 27002: } 27002: 27002: void SetBufferSize(size_t new_size) { 27002: buffer_size_.store(new_size, std::memory_order_relaxed); 27002: mutable_limit_.store(new_size * 7 / 8, std::memory_order_relaxed); 27002: 27002: MaybeEndWriteStall(); 27002: } 27002: 27002: 27002: 27002: 27002: bool ShouldFlush() const { 27002: if (enabled()) { 27002: if (mutable_memtable_memory_usage() > 27002: mutable_limit_.load(std::memory_order_relaxed)) { 27002: return true; 27002: } 27002: size_t local_size = buffer_size(); 27002: if (memory_usage() >= local_size && 27002: mutable_memtable_memory_usage() >= local_size / 2) { 27002: 27002: 27002: 27002: return true; 27002: } 27002: } 27002: return false; 27002: } 27002: # 119 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_buffer_manager.h" 27002: bool ShouldStall() const { 27002: if (!allow_stall_ || !enabled()) { 27002: return false; 27002: } 27002: 27002: return IsStallActive() || IsStallThresholdExceeded(); 27002: } 27002: 27002: 27002: bool IsStallActive() const { 27002: return stall_active_.load(std::memory_order_relaxed); 27002: } 27002: 27002: 27002: bool IsStallThresholdExceeded() const { 27002: return memory_usage() >= buffer_size_; 27002: } 27002: 27002: void ReserveMem(size_t mem); 27002: 27002: 27002: 27002: void ScheduleFreeMem(size_t mem); 27002: 27002: void FreeMem(size_t mem); 27002: 27002: 27002: 27002: void BeginWriteStall(StallInterface* wbm_stall); 27002: 27002: 27002: 27002: void MaybeEndWriteStall(); 27002: 27002: void RemoveDBFromQueue(StallInterface* wbm_stall); 27002: 27002: private: 27002: std::atomic buffer_size_; 27002: std::atomic mutable_limit_; 27002: std::atomic memory_used_; 27002: 27002: std::atomic memory_active_; 27002: std::shared_ptr cache_res_mgr_; 27002: 27002: std::mutex cache_res_mgr_mu_; 27002: 27002: std::list queue_; 27002: 27002: std::mutex mu_; 27002: bool allow_stall_; 27002: 27002: 27002: std::atomic stall_active_; 27002: 27002: void ReserveMemWithCache(size_t mem); 27002: void FreeMemWithCache(size_t mem); 27002: }; 27002: } 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 2 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class Cache; 27002: class CompactionFilter; 27002: class CompactionFilterFactory; 27002: class Comparator; 27002: class ConcurrentTaskLimiter; 27002: class Env; 27002: enum InfoLogLevel : unsigned char; 27002: class SstFileManager; 27002: class FilterPolicy; 27002: class Logger; 27002: class MergeOperator; 27002: class Snapshot; 27002: class MemTableRepFactory; 27002: class RateLimiter; 27002: class Slice; 27002: class Statistics; 27002: class InternalKeyComparator; 27002: class WalFilter; 27002: class FileSystem; 27002: 27002: struct Options; 27002: struct DbPath; 27002: 27002: using FileTypeSet = SmallEnumSet; 27002: 27002: struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions { 27002: 27002: 27002: 27002: 27002: 27002: 27002: ColumnFamilyOptions* OldDefaults(int rocksdb_major_version = 4, 27002: int rocksdb_minor_version = 6); 27002: 27002: 27002: 27002: 27002: 27002: ColumnFamilyOptions* OptimizeForSmallDb( 27002: std::shared_ptr* cache = nullptr); 27002: 27002: 27002: 27002: 27002: 27002: ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb); 27002: # 104 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: ColumnFamilyOptions* OptimizeLevelStyleCompaction( 27002: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 27002: ColumnFamilyOptions* OptimizeUniversalStyleCompaction( 27002: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 27002: # 118 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: const Comparator* comparator = BytewiseComparator(); 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::shared_ptr merge_operator = nullptr; 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: const CompactionFilter* compaction_filter = nullptr; 27002: # 167 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::shared_ptr compaction_filter_factory = nullptr; 27002: # 188 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: size_t write_buffer_size = 64 << 20; 27002: # 215 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: CompressionType compression; 27002: # 224 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: CompressionType bottommost_compression = kDisableCompressionOption; 27002: 27002: 27002: 27002: 27002: 27002: CompressionOptions bottommost_compression_opts; 27002: 27002: 27002: CompressionOptions compression_opts; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: int level0_file_num_compaction_trigger = 4; 27002: # 275 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::shared_ptr prefix_extractor = nullptr; 27002: # 289 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: uint64_t max_bytes_for_level_base = 256 * 1048576; 27002: 27002: 27002: uint64_t snap_refresh_nanos = 0; 27002: 27002: 27002: 27002: 27002: 27002: bool disable_auto_compactions = false; 27002: 27002: 27002: 27002: 27002: 27002: std::shared_ptr table_factory; 27002: # 318 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::vector cf_paths; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: std::shared_ptr compaction_thread_limiter = nullptr; 27002: # 335 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::shared_ptr sst_partitioner_factory = nullptr; 27002: 27002: 27002: ColumnFamilyOptions(); 27002: 27002: explicit ColumnFamilyOptions(const Options& options); 27002: 27002: void Dump(Logger* log) const; 27002: }; 27002: 27002: enum class WALRecoveryMode : char { 27002: # 365 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: kTolerateCorruptedTailRecords = 0x00, 27002: 27002: 27002: 27002: 27002: kAbsoluteConsistency = 0x01, 27002: 27002: 27002: 27002: 27002: kPointInTimeRecovery = 0x02, 27002: 27002: 27002: 27002: 27002: 27002: kSkipAnyCorruptedRecords = 0x03, 27002: }; 27002: 27002: struct DbPath { 27002: std::string path; 27002: uint64_t target_size; 27002: 27002: DbPath() : target_size(0) {} 27002: DbPath(const std::string& p, uint64_t t) : path(p), target_size(t) {} 27002: }; 27002: 27002: extern const char* kHostnameForDbHostId; 27002: 27002: enum class CompactionServiceJobStatus : char { 27002: kSuccess, 27002: kFailure, 27002: kUseLocal, 27002: }; 27002: 27002: struct CompactionServiceJobInfo { 27002: std::string db_name; 27002: std::string db_id; 27002: std::string db_session_id; 27002: uint64_t job_id; 27002: 27002: 27002: 27002: 27002: Env::Priority priority; 27002: 27002: CompactionServiceJobInfo(std::string db_name_, std::string db_id_, 27002: std::string db_session_id_, uint64_t job_id_, 27002: Env::Priority priority_) 27002: : db_name(std::move(db_name_)), 27002: db_id(std::move(db_id_)), 27002: db_session_id(std::move(db_session_id_)), 27002: job_id(job_id_), 27002: priority(priority_) {} 27002: }; 27002: 27002: 27002: 27002: 27002: class CompactionService : public Customizable { 27002: public: 27002: static const char* Type() { return "CompactionService"; } 27002: 27002: 27002: const char* Name() const override = 0; 27002: 27002: 27002: 27002: 27002: virtual CompactionServiceJobStatus StartV2( 27002: const CompactionServiceJobInfo& , 27002: const std::string& ) { 27002: return CompactionServiceJobStatus::kUseLocal; 27002: } 27002: 27002: 27002: virtual CompactionServiceJobStatus WaitForCompleteV2( 27002: const CompactionServiceJobInfo& , 27002: std::string* ) { 27002: return CompactionServiceJobStatus::kUseLocal; 27002: } 27002: 27002: ~CompactionService() override = default; 27002: }; 27002: 27002: struct DBOptions { 27002: 27002: 27002: 27002: 27002: 27002: DBOptions* OldDefaults(int rocksdb_major_version = 4, 27002: int rocksdb_minor_version = 6); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: DBOptions* OptimizeForSmallDb(std::shared_ptr* cache = nullptr); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: DBOptions* IncreaseParallelism(int total_threads = 16); 27002: 27002: 27002: 27002: 27002: bool create_if_missing = false; 27002: 27002: 27002: 27002: bool create_missing_column_families = false; 27002: 27002: 27002: 27002: bool error_if_exists = false; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool paranoid_checks = true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool flush_verify_memtable_count = true; 27002: # 517 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool track_and_verify_wals_in_manifest = false; 27002: # 537 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool verify_sst_unique_id_in_manifest = true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: Env* env = Env::Default(); 27002: # 562 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::shared_ptr rate_limiter = nullptr; 27002: # 578 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::shared_ptr sst_file_manager = nullptr; 27002: 27002: 27002: 27002: 27002: 27002: std::shared_ptr info_log = nullptr; 27002: 27002: 27002: 27002: 27002: InfoLogLevel info_log_level = DEBUG_LEVEL; 27002: # 605 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: int max_open_files = -1; 27002: 27002: 27002: 27002: 27002: int max_file_opening_threads = 16; 27002: # 633 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: uint64_t max_total_wal_size = 0; 27002: 27002: 27002: std::shared_ptr statistics = nullptr; 27002: # 646 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool use_fsync = false; 27002: # 672 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::vector db_paths; 27002: 27002: 27002: 27002: 27002: 27002: 27002: std::string db_log_dir = ""; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: std::string wal_dir = ""; 27002: # 697 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: uint64_t delete_obsolete_files_period_micros = 6ULL * 60 * 60 * 1000000; 27002: 27002: 27002: 27002: 27002: 27002: 27002: int max_background_jobs = 2; 27002: # 722 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: int max_background_compactions = -1; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint32_t max_subcompactions = 1; 27002: # 752 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: int max_background_flushes = -1; 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t max_log_file_size = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t log_file_time_to_roll = 0; 27002: 27002: 27002: 27002: size_t keep_log_file_num = 1000; 27002: # 780 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: size_t recycle_log_file_num = 0; 27002: 27002: 27002: 27002: 27002: 27002: uint64_t max_manifest_file_size = 1024 * 1024 * 1024; 27002: 27002: 27002: int table_cache_numshardbits = 6; 27002: # 803 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: uint64_t WAL_ttl_seconds = 0; 27002: uint64_t WAL_size_limit_MB = 0; 27002: 27002: 27002: 27002: 27002: 27002: size_t manifest_preallocation_size = 4 * 1024 * 1024; 27002: # 823 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool allow_mmap_reads = false; 27002: 27002: 27002: 27002: 27002: bool allow_mmap_writes = false; 27002: # 841 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool use_direct_reads = false; 27002: 27002: 27002: 27002: 27002: bool use_direct_io_for_flush_and_compaction = false; 27002: # 857 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool allow_fallocate = true; 27002: 27002: 27002: bool is_fd_close_on_exec = true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: unsigned int stats_dump_period_sec = 600; 27002: 27002: 27002: 27002: unsigned int stats_persist_period_sec = 600; 27002: # 883 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool persist_stats_to_disk = false; 27002: 27002: 27002: 27002: 27002: size_t stats_history_buffer_size = 1024 * 1024; 27002: 27002: 27002: 27002: 27002: bool advise_random_on_open = true; 27002: # 905 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: size_t db_write_buffer_size = 0; 27002: # 922 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::shared_ptr write_buffer_manager = nullptr; 27002: 27002: 27002: 27002: 27002: enum AccessHint { NONE, NORMAL, SEQUENTIAL, WILLNEED }; 27002: AccessHint access_hint_on_compaction_start = NORMAL; 27002: # 937 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: size_t compaction_readahead_size = 0; 27002: # 954 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: size_t random_access_max_buffer_size = 1024 * 1024; 27002: # 965 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: size_t writable_file_max_buffer_size = 1024 * 1024; 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool use_adaptive_mutex = false; 27002: 27002: 27002: DBOptions(); 27002: 27002: explicit DBOptions(const Options& options); 27002: 27002: void Dump(Logger* log) const; 27002: # 997 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: uint64_t bytes_per_sync = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t wal_bytes_per_sync = 0; 27002: # 1025 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool strict_bytes_per_sync = false; 27002: 27002: 27002: 27002: std::vector> listeners; 27002: 27002: 27002: 27002: 27002: 27002: bool enable_thread_tracking = false; 27002: # 1053 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: uint64_t delayed_write_rate = 0; 27002: # 1068 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool enable_pipelined_write = false; 27002: # 1094 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool unordered_write = false; 27002: # 1104 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool allow_concurrent_memtable_write = true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool enable_write_thread_adaptive_yield = true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t max_write_batch_group_size_bytes = 1 << 20; 27002: # 1128 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: uint64_t write_thread_max_yield_usec = 100; 27002: # 1138 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: uint64_t write_thread_slow_yield_usec = 3; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool skip_stats_update_on_db_open = false; 27002: # 1156 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool skip_checking_sst_file_sizes_on_db_open = false; 27002: 27002: 27002: 27002: WALRecoveryMode wal_recovery_mode = WALRecoveryMode::kPointInTimeRecovery; 27002: 27002: 27002: 27002: bool allow_2pc = false; 27002: 27002: 27002: 27002: 27002: std::shared_ptr row_cache = nullptr; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: WalFilter* wal_filter = nullptr; 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool fail_if_options_file_error = false; 27002: 27002: 27002: 27002: 27002: bool dump_malloc_stats = false; 27002: # 1198 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool avoid_flush_during_recovery = false; 27002: # 1207 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool avoid_flush_during_shutdown = false; 27002: # 1219 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool allow_ingest_behind = false; 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool two_write_queues = false; 27002: 27002: 27002: 27002: 27002: bool manual_wal_flush = false; 27002: 27002: 27002: 27002: 27002: 27002: CompressionType wal_compression = kNoCompression; 27002: # 1251 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool atomic_flush = false; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool avoid_unnecessary_blocking_io = false; 27002: # 1270 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool write_dbid_to_manifest = false; 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t log_readahead_size = 0; 27002: # 1286 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::shared_ptr file_checksum_gen_factory = nullptr; 27002: # 1320 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool best_efforts_recovery = false; 27002: # 1330 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: int max_bgerror_resume_count = 0x7fffffff; 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t bgerror_resume_retry_interval = 1000000; 27002: # 1346 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool allow_data_in_errors = false; 27002: # 1359 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::string db_host_id = kHostnameForDbHostId; 27002: # 1369 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: FileTypeSet checksum_handoff_file_types; 27002: # 1378 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::shared_ptr compaction_service = nullptr; 27002: # 1390 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: CacheTier lowest_used_cache_tier = CacheTier::kNonVolatileBlockTier; 27002: # 1403 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool enforce_single_del_contracts = true; 27002: }; 27002: 27002: 27002: struct Options : public DBOptions, public ColumnFamilyOptions { 27002: 27002: Options() : DBOptions(), ColumnFamilyOptions() {} 27002: 27002: Options(const DBOptions& db_options, 27002: const ColumnFamilyOptions& column_family_options) 27002: : DBOptions(db_options), ColumnFamilyOptions(column_family_options) {} 27002: 27002: 27002: 27002: 27002: 27002: 27002: Options* OldDefaults(int rocksdb_major_version = 4, 27002: int rocksdb_minor_version = 6); 27002: 27002: void Dump(Logger* log) const; 27002: 27002: void DumpCFOptions(Logger* log) const; 27002: # 1437 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: Options* PrepareForBulkLoad(); 27002: 27002: 27002: 27002: Options* OptimizeForSmallDb(); 27002: 27002: 27002: 27002: 27002: 27002: Options* DisableExtraChecks(); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: enum ReadTier { 27002: kReadAllTier = 0x0, 27002: kBlockCacheTier = 0x1, 27002: kPersistedTier = 0x2, 27002: 27002: 27002: 27002: kMemtableTier = 0x3 27002: }; 27002: 27002: 27002: struct ReadOptions { 27002: 27002: 27002: 27002: 27002: 27002: const Snapshot* snapshot; 27002: # 1487 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: const Slice* iterate_lower_bound; 27002: # 1508 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: const Slice* iterate_upper_bound; 27002: # 1519 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: size_t readahead_size; 27002: 27002: 27002: 27002: 27002: 27002: uint64_t max_skippable_internal_keys; 27002: 27002: 27002: 27002: 27002: 27002: ReadTier read_tier; 27002: 27002: 27002: 27002: 27002: bool verify_checksums; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool fill_cache; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool tailing; 27002: 27002: 27002: 27002: bool managed; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool total_order_seek; 27002: # 1583 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool auto_prefix_mode; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool prefix_same_as_start; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool pin_data; 27002: 27002: 27002: 27002: 27002: 27002: bool background_purge_on_iterator_cleanup; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool ignore_range_deletions; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: std::function table_filter; 27002: # 1634 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: const Slice* timestamp; 27002: const Slice* iter_start_ts; 27002: # 1646 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: std::chrono::microseconds deadline; 27002: 27002: 27002: 27002: 27002: 27002: std::chrono::microseconds io_timeout; 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t value_size_soft_limit; 27002: # 1672 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool adaptive_readahead; 27002: # 1688 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 27002: # 1697 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool async_io; 27002: # 1708 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool optimize_multiget_for_io; 27002: 27002: ReadOptions(); 27002: ReadOptions(bool cksum, bool cache); 27002: }; 27002: 27002: 27002: struct WriteOptions { 27002: # 1732 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool sync; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool disableWAL; 27002: 27002: 27002: 27002: 27002: 27002: bool ignore_missing_column_families; 27002: 27002: 27002: 27002: 27002: bool no_slowdown; 27002: # 1760 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool low_pri; 27002: # 1769 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool memtable_insert_hint_per_batch; 27002: # 1784 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: Env::IOPriority rate_limiter_priority; 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t protection_bytes_per_key; 27002: 27002: WriteOptions() 27002: : sync(false), 27002: disableWAL(false), 27002: ignore_missing_column_families(false), 27002: no_slowdown(false), 27002: low_pri(false), 27002: memtable_insert_hint_per_batch(false), 27002: rate_limiter_priority(Env::IO_TOTAL), 27002: protection_bytes_per_key(0) {} 27002: }; 27002: 27002: 27002: struct FlushOptions { 27002: 27002: 27002: bool wait; 27002: 27002: 27002: 27002: 27002: 27002: bool allow_write_stall; 27002: FlushOptions() : wait(true), allow_write_stall(false) {} 27002: }; 27002: 27002: 27002: extern Status CreateLoggerFromOptions(const std::string& dbname, 27002: const DBOptions& options, 27002: std::shared_ptr* logger); 27002: 27002: 27002: struct CompactionOptions { 27002: 27002: 27002: 27002: 27002: 27002: CompressionType compression; 27002: 27002: 27002: uint64_t output_file_size_limit; 27002: 27002: uint32_t max_subcompactions; 27002: 27002: CompactionOptions() 27002: : compression(kSnappyCompression), 27002: output_file_size_limit(std::numeric_limits::max()), 27002: max_subcompactions(0) {} 27002: }; 27002: 27002: 27002: 27002: enum class BottommostLevelCompaction { 27002: 27002: kSkip, 27002: 27002: 27002: kIfHaveCompactionFilter, 27002: 27002: kForce, 27002: 27002: 27002: kForceOptimized, 27002: }; 27002: 27002: 27002: 27002: enum class BlobGarbageCollectionPolicy { 27002: 27002: kForce, 27002: 27002: kDisable, 27002: 27002: kUseDefault, 27002: }; 27002: 27002: 27002: struct CompactRangeOptions { 27002: 27002: 27002: 27002: 27002: bool exclusive_manual_compaction = false; 27002: 27002: 27002: 27002: bool change_level = false; 27002: 27002: 27002: int target_level = -1; 27002: 27002: 27002: uint32_t target_path_id = 0; 27002: 27002: 27002: BottommostLevelCompaction bottommost_level_compaction = 27002: BottommostLevelCompaction::kIfHaveCompactionFilter; 27002: 27002: 27002: bool allow_write_stall = false; 27002: 27002: uint32_t max_subcompactions = 0; 27002: 27002: 27002: const Slice* full_history_ts_low = nullptr; 27002: 27002: 27002: 27002: 27002: 27002: std::atomic* canceled = nullptr; 27002: # 1916 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: BlobGarbageCollectionPolicy blob_garbage_collection_policy = 27002: BlobGarbageCollectionPolicy::kUseDefault; 27002: 27002: 27002: 27002: 27002: 27002: double blob_garbage_collection_age_cutoff = -1; 27002: }; 27002: 27002: 27002: struct IngestExternalFileOptions { 27002: 27002: bool move_files = false; 27002: 27002: bool failed_move_fall_back_to_copy = true; 27002: 27002: 27002: bool snapshot_consistency = true; 27002: 27002: 27002: bool allow_global_seqno = true; 27002: 27002: 27002: bool allow_blocking_flush = true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool ingest_behind = false; 27002: # 1960 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool write_global_seqno = true; 27002: 27002: 27002: 27002: 27002: bool verify_checksums_before_ingest = false; 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t verify_checksums_readahead_size = 0; 27002: # 1992 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: bool verify_file_checksum = true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool fail_if_not_bottommost_level = false; 27002: }; 27002: 27002: enum TraceFilterType : uint64_t { 27002: 27002: kTraceFilterNone = 0x0, 27002: 27002: kTraceFilterGet = 0x1 << 0, 27002: 27002: kTraceFilterWrite = 0x1 << 1, 27002: 27002: kTraceFilterIteratorSeek = 0x1 << 2, 27002: 27002: kTraceFilterIteratorSeekForPrev = 0x1 << 3, 27002: 27002: kTraceFilterMultiGet = 0x1 << 4, 27002: }; 27002: 27002: 27002: struct TraceOptions { 27002: 27002: 27002: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 27002: 27002: 27002: uint64_t sampling_frequency = 1; 27002: 27002: uint64_t filter = kTraceFilterNone; 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool preserve_write_order = false; 27002: }; 27002: 27002: 27002: struct ImportColumnFamilyOptions { 27002: 27002: bool move_files = false; 27002: }; 27002: 27002: 27002: struct SizeApproximationOptions { 27002: 27002: 27002: bool include_memtables = false; 27002: 27002: 27002: bool include_files = true; 27002: # 2060 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h" 27002: double files_size_error_margin = -1.0; 27002: }; 27002: 27002: struct CompactionServiceOptionsOverride { 27002: 27002: 27002: 27002: Env* env = Env::Default(); 27002: std::shared_ptr file_checksum_gen_factory = nullptr; 27002: 27002: const Comparator* comparator = BytewiseComparator(); 27002: std::shared_ptr merge_operator = nullptr; 27002: const CompactionFilter* compaction_filter = nullptr; 27002: std::shared_ptr compaction_filter_factory = nullptr; 27002: std::shared_ptr prefix_extractor = nullptr; 27002: std::shared_ptr table_factory; 27002: std::shared_ptr sst_partitioner_factory = nullptr; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: std::vector> listeners; 27002: 27002: 27002: 27002: 27002: std::shared_ptr statistics = nullptr; 27002: 27002: 27002: 27002: std::vector> 27002: table_properties_collector_factories; 27002: }; 27002: 27002: struct OpenAndCompactOptions { 27002: 27002: std::atomic* canceled = nullptr; 27002: }; 27002: 27002: 27002: struct LiveFilesStorageInfoOptions { 27002: 27002: bool include_checksum_info = false; 27002: 27002: 27002: 27002: uint64_t wal_size_for_flush = 0; 27002: }; 27002: 27002: 27002: } 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 2 27002: # 86 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 27002: namespace rocksdb { 27002: 27002: extern const bool kDefaultToAdaptiveMutex; 27002: 27002: namespace port { 27002: constexpr bool kLittleEndian = ( 27002: # 91 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 3 4 27002: 1234 27002: # 91 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 27002: == 27002: # 91 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 3 4 27002: 1234 27002: # 91 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 27002: ); 27002: 27002: 27002: class CondVar; 27002: 27002: class Mutex { 27002: public: 27002: static const char* kName() { return "pthread_mutex_t"; } 27002: 27002: explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex); 27002: 27002: Mutex(const Mutex&) = delete; 27002: void operator=(const Mutex&) = delete; 27002: 27002: ~Mutex(); 27002: 27002: void Lock(); 27002: void Unlock(); 27002: 27002: bool TryLock(); 27002: 27002: 27002: 27002: void AssertHeld(); 27002: 27002: 27002: inline void lock() { Lock(); } 27002: inline void unlock() { Unlock(); } 27002: inline bool try_lock() { return TryLock(); } 27002: 27002: private: 27002: friend class CondVar; 27002: pthread_mutex_t mu_; 27002: 27002: bool locked_ = false; 27002: 27002: }; 27002: 27002: class RWMutex { 27002: public: 27002: RWMutex(); 27002: 27002: RWMutex(const RWMutex&) = delete; 27002: void operator=(const RWMutex&) = delete; 27002: 27002: ~RWMutex(); 27002: 27002: void ReadLock(); 27002: void WriteLock(); 27002: void ReadUnlock(); 27002: void WriteUnlock(); 27002: void AssertHeld() { } 27002: 27002: private: 27002: pthread_rwlock_t mu_; 27002: }; 27002: 27002: class CondVar { 27002: public: 27002: explicit CondVar(Mutex* mu); 27002: ~CondVar(); 27002: void Wait(); 27002: 27002: bool TimedWait(uint64_t abs_time_us); 27002: void Signal(); 27002: void SignalAll(); 27002: private: 27002: pthread_cond_t cv_; 27002: Mutex* mu_; 27002: }; 27002: 27002: using Thread = std::thread; 27002: 27002: static inline void AsmVolatilePause() { 27002: # 173 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 27002: } 27002: 27002: 27002: extern int PhysicalCoreID(); 27002: 27002: using OnceType = pthread_once_t; 27002: 27002: extern void InitOnce(OnceType* once, void (*initializer)()); 27002: # 205 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 27002: static_assert((64U & (64U - 1)) == 0, 27002: "Cache line size must be a power of 2 number of bytes"); 27002: 27002: extern void *cacheline_aligned_alloc(size_t size); 27002: 27002: extern void cacheline_aligned_free(void *memblock); 27002: # 223 "/build/reproducible-path/rocksdb-7.8.3/port/port_posix.h" 27002: extern void Crash(const std::string& srcfile, int srcline); 27002: 27002: extern int GetMaxOpenFiles(); 27002: 27002: extern const size_t kPageSize; 27002: 27002: using ThreadId = pid_t; 27002: 27002: extern void SetCpuPriority(ThreadId id, CpuPriority priority); 27002: 27002: int64_t GetProcessID(); 27002: 27002: 27002: 27002: bool GenerateRfcUuid(std::string* output); 27002: 27002: } 27002: } 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/port/port.h" 2 27002: # 23 "/build/reproducible-path/rocksdb-7.8.3/util/coding.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/coding_lean.h" 1 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/util/coding_lean.h" 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cstring" 1 3 27002: # 39 "/usr/include/c++/12/cstring" 3 27002: 27002: # 40 "/usr/include/c++/12/cstring" 3 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/util/coding_lean.h" 2 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: inline void EncodeFixed16(char* buf, uint16_t value) { 27002: if (port::kLittleEndian) { 27002: memcpy(buf, &value, sizeof(value)); 27002: } else { 27002: buf[0] = value & 0xff; 27002: buf[1] = (value >> 8) & 0xff; 27002: } 27002: } 27002: 27002: inline void EncodeFixed32(char* buf, uint32_t value) { 27002: if (port::kLittleEndian) { 27002: memcpy(buf, &value, sizeof(value)); 27002: } else { 27002: buf[0] = value & 0xff; 27002: buf[1] = (value >> 8) & 0xff; 27002: buf[2] = (value >> 16) & 0xff; 27002: buf[3] = (value >> 24) & 0xff; 27002: } 27002: } 27002: 27002: inline void EncodeFixed64(char* buf, uint64_t value) { 27002: if (port::kLittleEndian) { 27002: memcpy(buf, &value, sizeof(value)); 27002: } else { 27002: buf[0] = value & 0xff; 27002: buf[1] = (value >> 8) & 0xff; 27002: buf[2] = (value >> 16) & 0xff; 27002: buf[3] = (value >> 24) & 0xff; 27002: buf[4] = (value >> 32) & 0xff; 27002: buf[5] = (value >> 40) & 0xff; 27002: buf[6] = (value >> 48) & 0xff; 27002: buf[7] = (value >> 56) & 0xff; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: inline uint16_t DecodeFixed16(const char* ptr) { 27002: if (port::kLittleEndian) { 27002: 27002: uint16_t result; 27002: memcpy(&result, ptr, sizeof(result)); 27002: return result; 27002: } else { 27002: return ((static_cast(static_cast(ptr[0]))) | 27002: (static_cast(static_cast(ptr[1])) << 8)); 27002: } 27002: } 27002: 27002: inline uint32_t DecodeFixed32(const char* ptr) { 27002: if (port::kLittleEndian) { 27002: 27002: uint32_t result; 27002: memcpy(&result, ptr, sizeof(result)); 27002: return result; 27002: } else { 27002: return ((static_cast(static_cast(ptr[0]))) | 27002: (static_cast(static_cast(ptr[1])) << 8) | 27002: (static_cast(static_cast(ptr[2])) << 16) | 27002: (static_cast(static_cast(ptr[3])) << 24)); 27002: } 27002: } 27002: 27002: inline uint64_t DecodeFixed64(const char* ptr) { 27002: if (port::kLittleEndian) { 27002: 27002: uint64_t result; 27002: memcpy(&result, ptr, sizeof(result)); 27002: return result; 27002: } else { 27002: uint64_t lo = DecodeFixed32(ptr); 27002: uint64_t hi = DecodeFixed32(ptr + 4); 27002: return (hi << 32) | lo; 27002: } 27002: } 27002: 27002: } 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/coding.h" 2 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: const uint32_t kMaxVarint64Length = 10; 27002: 27002: 27002: extern void PutFixed16(std::string* dst, uint16_t value); 27002: extern void PutFixed32(std::string* dst, uint32_t value); 27002: extern void PutFixed64(std::string* dst, uint64_t value); 27002: extern void PutVarint32(std::string* dst, uint32_t value); 27002: extern void PutVarint32Varint32(std::string* dst, uint32_t value1, 27002: uint32_t value2); 27002: extern void PutVarint32Varint32Varint32(std::string* dst, uint32_t value1, 27002: uint32_t value2, uint32_t value3); 27002: extern void PutVarint64(std::string* dst, uint64_t value); 27002: extern void PutVarint64Varint64(std::string* dst, uint64_t value1, 27002: uint64_t value2); 27002: extern void PutVarint32Varint64(std::string* dst, uint32_t value1, 27002: uint64_t value2); 27002: extern void PutVarint32Varint32Varint64(std::string* dst, uint32_t value1, 27002: uint32_t value2, uint64_t value3); 27002: extern void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 27002: extern void PutLengthPrefixedSliceParts(std::string* dst, 27002: const SliceParts& slice_parts); 27002: extern void PutLengthPrefixedSlicePartsWithPadding( 27002: std::string* dst, const SliceParts& slice_parts, size_t pad_sz); 27002: 27002: 27002: 27002: extern bool GetFixed64(Slice* input, uint64_t* value); 27002: extern bool GetFixed32(Slice* input, uint32_t* value); 27002: extern bool GetFixed16(Slice* input, uint16_t* value); 27002: extern bool GetVarint32(Slice* input, uint32_t* value); 27002: extern bool GetVarint64(Slice* input, uint64_t* value); 27002: extern bool GetVarsignedint64(Slice* input, int64_t* value); 27002: extern bool GetLengthPrefixedSlice(Slice* input, Slice* result); 27002: 27002: extern Slice GetLengthPrefixedSlice(const char* data); 27002: 27002: extern Slice GetSliceUntil(Slice* slice, char delimiter); 27002: 27002: 27002: 27002: constexpr inline uint64_t i64ToZigzag(const int64_t l) { 27002: return (static_cast(l) << 1) ^ static_cast(l >> 63); 27002: } 27002: inline int64_t zigzagToI64(uint64_t n) { 27002: return (n >> 1) ^ -static_cast(n & 1); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: extern const char* GetVarint32Ptr(const char* p,const char* limit, uint32_t* v); 27002: extern const char* GetVarint64Ptr(const char* p,const char* limit, uint64_t* v); 27002: inline const char* GetVarsignedint64Ptr(const char* p, const char* limit, 27002: int64_t* value) { 27002: uint64_t u = 0; 27002: const char* ret = GetVarint64Ptr(p, limit, &u); 27002: *value = zigzagToI64(u); 27002: return ret; 27002: } 27002: 27002: 27002: extern int VarintLength(uint64_t v); 27002: 27002: 27002: 27002: 27002: extern char* EncodeVarint32(char* dst, uint32_t value); 27002: extern char* EncodeVarint64(char* dst, uint64_t value); 27002: 27002: 27002: extern const char* GetVarint32PtrFallback(const char* p, 27002: const char* limit, 27002: uint32_t* value); 27002: inline const char* GetVarint32Ptr(const char* p, 27002: const char* limit, 27002: uint32_t* value) { 27002: if (p < limit) { 27002: uint32_t result = *(reinterpret_cast(p)); 27002: if ((result & 128) == 0) { 27002: *value = result; 27002: return p + 1; 27002: } 27002: } 27002: return GetVarint32PtrFallback(p, limit, value); 27002: } 27002: 27002: 27002: inline void PutFixed16(std::string* dst, uint16_t value) { 27002: if (port::kLittleEndian) { 27002: dst->append(const_cast(reinterpret_cast(&value)), 27002: sizeof(value)); 27002: } else { 27002: char buf[sizeof(value)]; 27002: EncodeFixed16(buf, value); 27002: dst->append(buf, sizeof(buf)); 27002: } 27002: } 27002: 27002: inline void PutFixed32(std::string* dst, uint32_t value) { 27002: if (port::kLittleEndian) { 27002: dst->append(const_cast(reinterpret_cast(&value)), 27002: sizeof(value)); 27002: } else { 27002: char buf[sizeof(value)]; 27002: EncodeFixed32(buf, value); 27002: dst->append(buf, sizeof(buf)); 27002: } 27002: } 27002: 27002: inline void PutFixed64(std::string* dst, uint64_t value) { 27002: if (port::kLittleEndian) { 27002: dst->append(const_cast(reinterpret_cast(&value)), 27002: sizeof(value)); 27002: } else { 27002: char buf[sizeof(value)]; 27002: EncodeFixed64(buf, value); 27002: dst->append(buf, sizeof(buf)); 27002: } 27002: } 27002: 27002: inline void PutVarint32(std::string* dst, uint32_t v) { 27002: char buf[5]; 27002: char* ptr = EncodeVarint32(buf, v); 27002: dst->append(buf, static_cast(ptr - buf)); 27002: } 27002: 27002: inline void PutVarint32Varint32(std::string* dst, uint32_t v1, uint32_t v2) { 27002: char buf[10]; 27002: char* ptr = EncodeVarint32(buf, v1); 27002: ptr = EncodeVarint32(ptr, v2); 27002: dst->append(buf, static_cast(ptr - buf)); 27002: } 27002: 27002: inline void PutVarint32Varint32Varint32(std::string* dst, uint32_t v1, 27002: uint32_t v2, uint32_t v3) { 27002: char buf[15]; 27002: char* ptr = EncodeVarint32(buf, v1); 27002: ptr = EncodeVarint32(ptr, v2); 27002: ptr = EncodeVarint32(ptr, v3); 27002: dst->append(buf, static_cast(ptr - buf)); 27002: } 27002: 27002: inline char* EncodeVarint64(char* dst, uint64_t v) { 27002: static const unsigned int B = 128; 27002: unsigned char* ptr = reinterpret_cast(dst); 27002: while (v >= B) { 27002: *(ptr++) = (v & (B - 1)) | B; 27002: v >>= 7; 27002: } 27002: *(ptr++) = static_cast(v); 27002: return reinterpret_cast(ptr); 27002: } 27002: 27002: inline void PutVarint64(std::string* dst, uint64_t v) { 27002: char buf[kMaxVarint64Length]; 27002: char* ptr = EncodeVarint64(buf, v); 27002: dst->append(buf, static_cast(ptr - buf)); 27002: } 27002: 27002: inline void PutVarsignedint64(std::string* dst, int64_t v) { 27002: char buf[kMaxVarint64Length]; 27002: 27002: char* ptr = EncodeVarint64(buf, i64ToZigzag(v)); 27002: dst->append(buf, static_cast(ptr - buf)); 27002: } 27002: 27002: inline void PutVarint64Varint64(std::string* dst, uint64_t v1, uint64_t v2) { 27002: char buf[20]; 27002: char* ptr = EncodeVarint64(buf, v1); 27002: ptr = EncodeVarint64(ptr, v2); 27002: dst->append(buf, static_cast(ptr - buf)); 27002: } 27002: 27002: inline void PutVarint32Varint64(std::string* dst, uint32_t v1, uint64_t v2) { 27002: char buf[15]; 27002: char* ptr = EncodeVarint32(buf, v1); 27002: ptr = EncodeVarint64(ptr, v2); 27002: dst->append(buf, static_cast(ptr - buf)); 27002: } 27002: 27002: inline void PutVarint32Varint32Varint64(std::string* dst, uint32_t v1, 27002: uint32_t v2, uint64_t v3) { 27002: char buf[20]; 27002: char* ptr = EncodeVarint32(buf, v1); 27002: ptr = EncodeVarint32(ptr, v2); 27002: ptr = EncodeVarint64(ptr, v3); 27002: dst->append(buf, static_cast(ptr - buf)); 27002: } 27002: 27002: inline void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { 27002: PutVarint32(dst, static_cast(value.size())); 27002: dst->append(value.data(), value.size()); 27002: } 27002: 27002: inline void PutLengthPrefixedSliceParts(std::string* dst, size_t total_bytes, 27002: const SliceParts& slice_parts) { 27002: for (int i = 0; i < slice_parts.num_parts; ++i) { 27002: total_bytes += slice_parts.parts[i].size(); 27002: } 27002: PutVarint32(dst, static_cast(total_bytes)); 27002: for (int i = 0; i < slice_parts.num_parts; ++i) { 27002: dst->append(slice_parts.parts[i].data(), slice_parts.parts[i].size()); 27002: } 27002: } 27002: 27002: inline void PutLengthPrefixedSliceParts(std::string* dst, 27002: const SliceParts& slice_parts) { 27002: PutLengthPrefixedSliceParts(dst, 0, slice_parts); 27002: } 27002: 27002: inline void PutLengthPrefixedSlicePartsWithPadding( 27002: std::string* dst, const SliceParts& slice_parts, size_t pad_sz) { 27002: PutLengthPrefixedSliceParts(dst, pad_sz, slice_parts); 27002: dst->append(pad_sz, '\0'); 27002: } 27002: 27002: inline int VarintLength(uint64_t v) { 27002: int len = 1; 27002: while (v >= 128) { 27002: v >>= 7; 27002: len++; 27002: } 27002: return len; 27002: } 27002: 27002: inline bool GetFixed64(Slice* input, uint64_t* value) { 27002: if (input->size() < sizeof(uint64_t)) { 27002: return false; 27002: } 27002: *value = DecodeFixed64(input->data()); 27002: input->remove_prefix(sizeof(uint64_t)); 27002: return true; 27002: } 27002: 27002: inline bool GetFixed32(Slice* input, uint32_t* value) { 27002: if (input->size() < sizeof(uint32_t)) { 27002: return false; 27002: } 27002: *value = DecodeFixed32(input->data()); 27002: input->remove_prefix(sizeof(uint32_t)); 27002: return true; 27002: } 27002: 27002: inline bool GetFixed16(Slice* input, uint16_t* value) { 27002: if (input->size() < sizeof(uint16_t)) { 27002: return false; 27002: } 27002: *value = DecodeFixed16(input->data()); 27002: input->remove_prefix(sizeof(uint16_t)); 27002: return true; 27002: } 27002: 27002: inline bool GetVarint32(Slice* input, uint32_t* value) { 27002: const char* p = input->data(); 27002: const char* limit = p + input->size(); 27002: const char* q = GetVarint32Ptr(p, limit, value); 27002: if (q == nullptr) { 27002: return false; 27002: } else { 27002: *input = Slice(q, static_cast(limit - q)); 27002: return true; 27002: } 27002: } 27002: 27002: inline bool GetVarint64(Slice* input, uint64_t* value) { 27002: const char* p = input->data(); 27002: const char* limit = p + input->size(); 27002: const char* q = GetVarint64Ptr(p, limit, value); 27002: if (q == nullptr) { 27002: return false; 27002: } else { 27002: *input = Slice(q, static_cast(limit - q)); 27002: return true; 27002: } 27002: } 27002: 27002: inline bool GetVarsignedint64(Slice* input, int64_t* value) { 27002: const char* p = input->data(); 27002: const char* limit = p + input->size(); 27002: const char* q = GetVarsignedint64Ptr(p, limit, value); 27002: if (q == nullptr) { 27002: return false; 27002: } else { 27002: *input = Slice(q, static_cast(limit - q)); 27002: return true; 27002: } 27002: } 27002: 27002: inline bool GetLengthPrefixedSlice(Slice* input, Slice* result) { 27002: uint32_t len = 0; 27002: if (GetVarint32(input, &len) && input->size() >= len) { 27002: *result = Slice(input->data(), len); 27002: input->remove_prefix(len); 27002: return true; 27002: } else { 27002: return false; 27002: } 27002: } 27002: 27002: inline Slice GetLengthPrefixedSlice(const char* data) { 27002: uint32_t len = 0; 27002: 27002: 27002: auto p = GetVarint32Ptr(data, data + 5 , &len); 27002: return Slice(p, len); 27002: } 27002: 27002: inline Slice GetSliceUntil(Slice* slice, char delimiter) { 27002: uint32_t len = 0; 27002: for (len = 0; len < slice->size() && slice->data()[len] != delimiter; ++len) { 27002: 27002: } 27002: 27002: Slice ret(slice->data(), len); 27002: slice->remove_prefix(len + ((len < slice->size()) ? 1 : 0)); 27002: return ret; 27002: } 27002: 27002: template 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline void PutUnaligned(T *memory, const T &value) { 27002: 27002: 27002: 27002: 27002: *memory = value; 27002: 27002: } 27002: 27002: template 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline void GetUnaligned(const T *memory, T *value) { 27002: 27002: 27002: 27002: 27002: *value = *memory; 27002: 27002: } 27002: 27002: } 27002: # 22 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/user_comparator_wrapper.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/util/user_comparator_wrapper.h" 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_context_imp.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_step_timer.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_level_imp.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/perf_level.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: enum PerfLevel : unsigned char { 27002: kUninitialized = 0, 27002: kDisable = 1, 27002: kEnableCount = 2, 27002: kEnableTimeExceptForMutex = 3, 27002: 27002: 27002: 27002: kEnableTimeAndCPUTimeExceptForMutex = 4, 27002: kEnableTime = 5, 27002: kOutOfBounds = 6 27002: }; 27002: 27002: 27002: void SetPerfLevel(PerfLevel level); 27002: 27002: 27002: PerfLevel GetPerfLevel(); 27002: 27002: } 27002: # 8 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_level_imp.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: extern thread_local PerfLevel perf_level; 27002: 27002: } 27002: # 8 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_step_timer.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cassert" 1 3 27002: # 41 "/usr/include/c++/12/cassert" 3 27002: 27002: # 42 "/usr/include/c++/12/cassert" 3 27002: 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 45 "/usr/include/c++/12/cassert" 2 3 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 2 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class HistogramBucketMapper { 27002: public: 27002: 27002: HistogramBucketMapper(); 27002: 27002: 27002: size_t IndexForValue(uint64_t value) const; 27002: 27002: 27002: size_t BucketCount() const { 27002: return bucketValues_.size(); 27002: } 27002: 27002: uint64_t LastValue() const { 27002: return maxBucketValue_; 27002: } 27002: 27002: uint64_t FirstValue() const { 27002: return minBucketValue_; 27002: } 27002: 27002: uint64_t BucketLimit(const size_t bucketNumber) const { 27002: 27002: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 3 4 27002: (static_cast ( 27002: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 27002: bucketNumber < BucketCount() 27002: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 27002: "bucketNumber < BucketCount()" 27002: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 3 4 27002: , "./monitoring/histogram.h", 43, __extension__ __PRETTY_FUNCTION__)) 27002: # 43 "/build/reproducible-path/rocksdb-7.8.3/monitoring/histogram.h" 27002: ; 27002: return bucketValues_[bucketNumber]; 27002: } 27002: 27002: private: 27002: std::vector bucketValues_; 27002: uint64_t maxBucketValue_; 27002: uint64_t minBucketValue_; 27002: }; 27002: 27002: struct HistogramStat { 27002: HistogramStat(); 27002: ~HistogramStat() {} 27002: 27002: HistogramStat(const HistogramStat&) = delete; 27002: HistogramStat& operator=(const HistogramStat&) = delete; 27002: 27002: void Clear(); 27002: bool Empty() const; 27002: void Add(uint64_t value); 27002: void Merge(const HistogramStat& other); 27002: 27002: inline uint64_t min() const { return min_.load(std::memory_order_relaxed); } 27002: inline uint64_t max() const { return max_.load(std::memory_order_relaxed); } 27002: inline uint64_t num() const { return num_.load(std::memory_order_relaxed); } 27002: inline uint64_t sum() const { return sum_.load(std::memory_order_relaxed); } 27002: inline uint64_t sum_squares() const { 27002: return sum_squares_.load(std::memory_order_relaxed); 27002: } 27002: inline uint64_t bucket_at(size_t b) const { 27002: return buckets_[b].load(std::memory_order_relaxed); 27002: } 27002: 27002: double Median() const; 27002: double Percentile(double p) const; 27002: double Average() const; 27002: double StandardDeviation() const; 27002: void Data(HistogramData* const data) const; 27002: std::string ToString() const; 27002: 27002: 27002: 27002: 27002: std::atomic_uint_fast64_t min_; 27002: std::atomic_uint_fast64_t max_; 27002: std::atomic_uint_fast64_t num_; 27002: std::atomic_uint_fast64_t sum_; 27002: std::atomic_uint_fast64_t sum_squares_; 27002: std::atomic_uint_fast64_t buckets_[109]; 27002: const uint64_t num_buckets_; 27002: }; 27002: 27002: class Histogram { 27002: public: 27002: Histogram() {} 27002: virtual ~Histogram() {}; 27002: 27002: virtual void Clear() = 0; 27002: virtual bool Empty() const = 0; 27002: virtual void Add(uint64_t value) = 0; 27002: virtual void Merge(const Histogram&) = 0; 27002: 27002: virtual std::string ToString() const = 0; 27002: virtual const char* Name() const = 0; 27002: virtual uint64_t min() const = 0; 27002: virtual uint64_t max() const = 0; 27002: virtual uint64_t num() const = 0; 27002: virtual double Median() const = 0; 27002: virtual double Percentile(double p) const = 0; 27002: virtual double Average() const = 0; 27002: virtual double StandardDeviation() const = 0; 27002: virtual void Data(HistogramData* const data) const = 0; 27002: }; 27002: 27002: class HistogramImpl : public Histogram { 27002: public: 27002: HistogramImpl() { Clear(); } 27002: 27002: HistogramImpl(const HistogramImpl&) = delete; 27002: HistogramImpl& operator=(const HistogramImpl&) = delete; 27002: 27002: virtual void Clear() override; 27002: virtual bool Empty() const override; 27002: virtual void Add(uint64_t value) override; 27002: virtual void Merge(const Histogram& other) override; 27002: void Merge(const HistogramImpl& other); 27002: 27002: virtual std::string ToString() const override; 27002: virtual const char* Name() const override { return "HistogramImpl"; } 27002: virtual uint64_t min() const override { return stats_.min(); } 27002: virtual uint64_t max() const override { return stats_.max(); } 27002: virtual uint64_t num() const override { return stats_.num(); } 27002: virtual double Median() const override; 27002: virtual double Percentile(double p) const override; 27002: virtual double Average() const override; 27002: virtual double StandardDeviation() const override; 27002: virtual void Data(HistogramData* const data) const override; 27002: 27002: virtual ~HistogramImpl() {} 27002: 27002: inline HistogramStat& TEST_GetStats() { return stats_; } 27002: 27002: private: 27002: HistogramStat stats_; 27002: std::mutex mutex_; 27002: }; 27002: 27002: } 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/likely.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/port/likely.h" 27002: 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/random.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/util/random.h" 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/random" 1 3 27002: # 32 "/usr/include/c++/12/random" 3 27002: 27002: # 33 "/usr/include/c++/12/random" 3 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cmath" 1 3 27002: # 39 "/usr/include/c++/12/cmath" 3 27002: 27002: # 40 "/usr/include/c++/12/cmath" 3 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/math.h" 1 3 4 27002: # 27 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 27002: # 28 "/usr/include/math.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 34 "/usr/include/math.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 1 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/libm-simd-decl-stubs.h" 1 3 4 27002: # 28 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 2 3 4 27002: # 41 "/usr/include/math.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 27002: # 44 "/usr/include/math.h" 2 3 4 27002: # 152 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/flt-eval-method.h" 1 3 4 27002: # 153 "/usr/include/math.h" 2 3 4 27002: # 163 "/usr/include/math.h" 3 4 27002: typedef float float_t; 27002: typedef double double_t; 27002: # 204 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-logb.h" 1 3 4 27002: # 205 "/usr/include/math.h" 2 3 4 27002: # 247 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-fast.h" 1 3 4 27002: # 248 "/usr/include/math.h" 2 3 4 27002: 27002: 27002: 27002: enum 27002: { 27002: FP_INT_UPWARD = 27002: 27002: 0, 27002: FP_INT_DOWNWARD = 27002: 27002: 1, 27002: FP_INT_TOWARDZERO = 27002: 27002: 2, 27002: FP_INT_TONEARESTFROMZERO = 27002: 27002: 3, 27002: FP_INT_TONEAREST = 27002: 27002: 4, 27002: }; 27002: # 312 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 27002: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 27002: extern int __fpclassify (double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __signbit (double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern int __isinf (double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __finite (double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __isnan (double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __iseqsig (double __x, double __y) noexcept (true); 27002: 27002: 27002: extern int __issignaling (double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: # 313 "/usr/include/math.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 27002: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); 27002: 27002: extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); 27002: 27002: extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); 27002: 27002: extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); 27002: 27002: 27002: extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); 27002: 27002: extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); 27002: 27002: extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); 27002: 27002: extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); 27002: 27002: extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); 27002: 27002: 27002: 27002: extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) 27002: ; 27002: 27002: 27002: 27002: 27002: extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); 27002: 27002: extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); 27002: 27002: extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); 27002: 27002: 27002: extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); 27002: 27002: 27002: extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); 27002: 27002: 27002: extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); 27002: 27002: 27002: extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); 27002: 27002: 27002: extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); 27002: 27002: 27002: extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); 27002: 27002: 27002: extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); 27002: 27002: 27002: extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); 27002: 27002: 27002: extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); 27002: 27002: 27002: 27002: extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); 27002: # 183 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern int finite (double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); 27002: 27002: 27002: 27002: extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); 27002: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); 27002: extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); 27002: extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); 27002: extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); 27002: extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); 27002: extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); 27002: extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); 27002: extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); 27002: 27002: 27002: extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); 27002: 27002: extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); 27002: 27002: extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); 27002: 27002: 27002: 27002: extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); 27002: 27002: 27002: 27002: extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); 27002: 27002: 27002: 27002: extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); 27002: 27002: 27002: 27002: extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); 27002: 27002: 27002: 27002: extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); 27002: __extension__ 27002: extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); 27002: 27002: 27002: 27002: extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); 27002: __extension__ 27002: extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); 27002: 27002: 27002: 27002: extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); 27002: 27002: 27002: 27002: extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: extern int canonicalize (double *__cx, const double *__x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 27002: 27002: extern int totalorder (const double *__x, const double *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern int totalordermag (const double *__x, const double *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); 27002: 27002: 27002: extern int setpayload (double *__x, double __payload) noexcept (true); 27002: 27002: 27002: extern int setpayloadsig (double *__x, double __payload) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); 27002: # 314 "/usr/include/math.h" 2 3 4 27002: # 329 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 27002: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 27002: extern int __fpclassifyf (float __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __signbitf (float __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern int __isinff (float __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __finitef (float __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __isnanf (float __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __iseqsigf (float __x, float __y) noexcept (true); 27002: 27002: 27002: extern int __issignalingf (float __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: # 330 "/usr/include/math.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 27002: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); 27002: 27002: extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); 27002: 27002: extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); 27002: 27002: extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); 27002: 27002: 27002: extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); 27002: 27002: extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); 27002: 27002: extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); 27002: 27002: extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); 27002: 27002: extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); 27002: 27002: 27002: 27002: extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) 27002: ; 27002: 27002: 27002: 27002: 27002: extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); 27002: 27002: extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); 27002: 27002: extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); 27002: 27002: 27002: extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); 27002: 27002: 27002: extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); 27002: 27002: 27002: extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); 27002: 27002: 27002: extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); 27002: 27002: 27002: extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); 27002: 27002: 27002: extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); 27002: 27002: 27002: extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); 27002: 27002: 27002: extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); 27002: 27002: 27002: extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); 27002: 27002: 27002: 27002: extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); 27002: # 177 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern int isinff (float __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern int finitef (float __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); 27002: 27002: 27002: 27002: extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); 27002: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern int isnanf (float __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: 27002: extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); 27002: extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); 27002: extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); 27002: extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); 27002: extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); 27002: extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); 27002: extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); 27002: extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); 27002: 27002: 27002: extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); 27002: 27002: extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); 27002: 27002: extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); 27002: 27002: 27002: 27002: extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); 27002: 27002: 27002: 27002: extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); 27002: 27002: 27002: 27002: extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); 27002: 27002: 27002: 27002: extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); 27002: 27002: 27002: 27002: extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); 27002: __extension__ 27002: extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); 27002: 27002: 27002: 27002: extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); 27002: __extension__ 27002: extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); 27002: 27002: 27002: 27002: extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); 27002: 27002: 27002: 27002: extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: extern int canonicalizef (float *__cx, const float *__x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 27002: 27002: extern int totalorderf (const float *__x, const float *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern int totalordermagf (const float *__x, const float *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); 27002: 27002: 27002: extern int setpayloadf (float *__x, float __payload) noexcept (true); 27002: 27002: 27002: extern int setpayloadsigf (float *__x, float __payload) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); 27002: # 331 "/usr/include/math.h" 2 3 4 27002: # 398 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 27002: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 27002: extern int __fpclassifyl (long double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __signbitl (long double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern int __isinfl (long double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __finitel (long double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __isnanl (long double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern int __iseqsigl (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: extern int __issignalingl (long double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: # 399 "/usr/include/math.h" 2 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 27002: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); 27002: 27002: extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); 27002: 27002: extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); 27002: 27002: extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); 27002: 27002: 27002: extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); 27002: 27002: extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); 27002: 27002: extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); 27002: 27002: extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); 27002: 27002: extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); 27002: 27002: extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); 27002: 27002: extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); 27002: 27002: 27002: extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); 27002: 27002: 27002: extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); 27002: 27002: 27002: extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); 27002: 27002: 27002: extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); 27002: 27002: 27002: 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))); 27002: 27002: 27002: 27002: extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); 27002: 27002: 27002: extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); 27002: 27002: 27002: extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); 27002: 27002: 27002: extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); 27002: # 177 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern int isinfl (long double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern int finitel (long double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: 27002: extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 27002: 27002: extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); 27002: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern int isnanl (long double __value) noexcept (true) 27002: __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: 27002: extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); 27002: extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); 27002: extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); 27002: extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); 27002: extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); 27002: extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); 27002: extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); 27002: extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); 27002: 27002: 27002: extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); 27002: 27002: extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); 27002: 27002: extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: 27002: extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); 27002: 27002: 27002: 27002: extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); 27002: 27002: 27002: 27002: extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: 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); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); 27002: __extension__ 27002: extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); 27002: __extension__ 27002: extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); 27002: 27002: 27002: 27002: extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 27002: 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); 27002: 27002: 27002: 27002: 27002: extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 27002: 27002: extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); 27002: 27002: 27002: extern int setpayloadl (long double *__x, long double __payload) noexcept (true); 27002: 27002: 27002: extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); 27002: # 400 "/usr/include/math.h" 2 3 4 27002: # 450 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 27002: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); 27002: 27002: extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); 27002: 27002: extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); 27002: 27002: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); 27002: 27002: 27002: extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); 27002: 27002: extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); 27002: 27002: extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); 27002: 27002: extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); 27002: 27002: extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) 27002: ; 27002: 27002: 27002: 27002: 27002: extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); 27002: 27002: extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); 27002: 27002: extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); 27002: 27002: 27002: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); 27002: 27002: 27002: extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); 27002: 27002: 27002: extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); 27002: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); 27002: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); 27002: extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); 27002: extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); 27002: extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); 27002: extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); 27002: extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); 27002: extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); 27002: extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); 27002: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); 27002: 27002: extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); 27002: 27002: 27002: 27002: extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); 27002: __extension__ 27002: extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); 27002: __extension__ 27002: extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 27002: 27002: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); 27002: 27002: 27002: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 27002: 27002: 27002: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 27002: # 451 "/usr/include/math.h" 2 3 4 27002: # 467 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 27002: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); 27002: 27002: extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); 27002: 27002: extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); 27002: 27002: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); 27002: 27002: 27002: extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); 27002: 27002: extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); 27002: 27002: extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); 27002: 27002: extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); 27002: 27002: extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) 27002: ; 27002: 27002: 27002: 27002: 27002: extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); 27002: 27002: extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); 27002: 27002: extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); 27002: 27002: 27002: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); 27002: 27002: 27002: extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); 27002: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); 27002: extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); 27002: extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); 27002: extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); 27002: extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); 27002: extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); 27002: extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); 27002: extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); 27002: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); 27002: 27002: extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: 27002: extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); 27002: 27002: 27002: 27002: extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); 27002: 27002: 27002: 27002: extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); 27002: __extension__ 27002: extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); 27002: __extension__ 27002: extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: 27002: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 27002: 27002: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); 27002: 27002: 27002: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 27002: 27002: 27002: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 27002: # 468 "/usr/include/math.h" 2 3 4 27002: # 501 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 27002: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); 27002: 27002: extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); 27002: 27002: extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); 27002: 27002: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); 27002: 27002: 27002: extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); 27002: 27002: extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); 27002: 27002: extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); 27002: 27002: extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); 27002: 27002: extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) 27002: ; 27002: 27002: 27002: 27002: 27002: extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); 27002: 27002: extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); 27002: 27002: extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); 27002: 27002: 27002: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); 27002: 27002: 27002: extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); 27002: 27002: 27002: extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); 27002: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); 27002: # 220 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); 27002: extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); 27002: extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); 27002: extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); 27002: extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); 27002: extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); 27002: extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); 27002: extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); 27002: # 252 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 27002: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); 27002: 27002: extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); 27002: 27002: 27002: 27002: extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); 27002: __extension__ 27002: extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); 27002: __extension__ 27002: extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); 27002: 27002: 27002: 27002: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: 27002: 27002: 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) 27002: ; 27002: 27002: 27002: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 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__)); 27002: 27002: 27002: 27002: 27002: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 27002: 27002: __attribute__ ((__pure__)); 27002: 27002: 27002: extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); 27002: 27002: 27002: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 27002: 27002: 27002: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 27002: # 502 "/usr/include/math.h" 2 3 4 27002: # 566 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 27002: extern float fadd (double __x, double __y) noexcept (true); 27002: 27002: 27002: extern float fdiv (double __x, double __y) noexcept (true); 27002: 27002: 27002: extern float ffma (double __x, double __y, double __z) noexcept (true); 27002: 27002: 27002: extern float fmul (double __x, double __y) noexcept (true); 27002: 27002: 27002: extern float fsqrt (double __x) noexcept (true); 27002: 27002: 27002: extern float fsub (double __x, double __y) noexcept (true); 27002: # 567 "/usr/include/math.h" 2 3 4 27002: # 587 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 27002: extern float faddl (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: extern float fdivl (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); 27002: 27002: 27002: extern float fmull (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: extern float fsqrtl (long double __x) noexcept (true); 27002: 27002: 27002: extern float fsubl (long double __x, long double __y) noexcept (true); 27002: # 588 "/usr/include/math.h" 2 3 4 27002: # 616 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 27002: extern double daddl (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: extern double ddivl (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); 27002: 27002: 27002: extern double dmull (long double __x, long double __y) noexcept (true); 27002: 27002: 27002: extern double dsqrtl (long double __x) noexcept (true); 27002: 27002: 27002: extern double dsubl (long double __x, long double __y) noexcept (true); 27002: # 617 "/usr/include/math.h" 2 3 4 27002: # 697 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 27002: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); 27002: 27002: 27002: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); 27002: 27002: 27002: extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 27002: 27002: 27002: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); 27002: 27002: 27002: extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); 27002: 27002: 27002: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); 27002: # 698 "/usr/include/math.h" 2 3 4 27002: # 707 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 27002: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 27002: 27002: 27002: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: # 708 "/usr/include/math.h" 2 3 4 27002: # 747 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 27002: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 27002: 27002: 27002: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: 27002: 27002: extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); 27002: 27002: 27002: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); 27002: # 748 "/usr/include/math.h" 2 3 4 27002: # 854 "/usr/include/math.h" 3 4 27002: extern int signgam; 27002: # 934 "/usr/include/math.h" 3 4 27002: enum 27002: { 27002: FP_NAN = 27002: 27002: 0, 27002: FP_INFINITE = 27002: 27002: 1, 27002: FP_ZERO = 27002: 27002: 2, 27002: FP_SUBNORMAL = 27002: 27002: 3, 27002: FP_NORMAL = 27002: 27002: 4 27002: }; 27002: # 1054 "/usr/include/math.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/iscanonical.h" 1 3 4 27002: # 1055 "/usr/include/math.h" 2 3 4 27002: # 1066 "/usr/include/math.h" 3 4 27002: extern "C++" { 27002: inline int issignaling (float __val) { return __issignalingf (__val); } 27002: inline int issignaling (double __val) { return __issignaling (__val); } 27002: inline int 27002: issignaling (long double __val) 27002: { 27002: 27002: return __issignaling (__val); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 1097 "/usr/include/math.h" 3 4 27002: extern "C++" { 27002: # 1128 "/usr/include/math.h" 3 4 27002: template inline bool 27002: iszero (__T __val) 27002: { 27002: return __val == 0; 27002: } 27002: 27002: } 27002: # 1363 "/usr/include/math.h" 3 4 27002: extern "C++" { 27002: template struct __iseqsig_type; 27002: 27002: template<> struct __iseqsig_type 27002: { 27002: static int __call (float __x, float __y) throw () 27002: { 27002: return __iseqsigf (__x, __y); 27002: } 27002: }; 27002: 27002: template<> struct __iseqsig_type 27002: { 27002: static int __call (double __x, double __y) throw () 27002: { 27002: return __iseqsig (__x, __y); 27002: } 27002: }; 27002: 27002: template<> struct __iseqsig_type 27002: { 27002: static int __call (long double __x, long double __y) throw () 27002: { 27002: 27002: 27002: 27002: return __iseqsig (__x, __y); 27002: 27002: } 27002: }; 27002: # 1454 "/usr/include/math.h" 3 4 27002: template 27002: inline int 27002: iseqsig (_T1 __x, _T2 __y) throw () 27002: { 27002: 27002: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 27002: 27002: 27002: 27002: return __iseqsig_type<_T3>::__call (__x, __y); 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: 27002: } 27002: # 46 "/usr/include/c++/12/cmath" 2 3 27002: # 77 "/usr/include/c++/12/cmath" 3 27002: extern "C++" 27002: { 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: using ::acos; 27002: 27002: 27002: inline constexpr float 27002: acos(float __x) 27002: { return __builtin_acosf(__x); } 27002: 27002: inline constexpr long double 27002: acos(long double __x) 27002: { return __builtin_acosl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: acos(_Tp __x) 27002: { return __builtin_acos(__x); } 27002: 27002: using ::asin; 27002: 27002: 27002: inline constexpr float 27002: asin(float __x) 27002: { return __builtin_asinf(__x); } 27002: 27002: inline constexpr long double 27002: asin(long double __x) 27002: { return __builtin_asinl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: asin(_Tp __x) 27002: { return __builtin_asin(__x); } 27002: 27002: using ::atan; 27002: 27002: 27002: inline constexpr float 27002: atan(float __x) 27002: { return __builtin_atanf(__x); } 27002: 27002: inline constexpr long double 27002: atan(long double __x) 27002: { return __builtin_atanl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: atan(_Tp __x) 27002: { return __builtin_atan(__x); } 27002: 27002: using ::atan2; 27002: 27002: 27002: inline constexpr float 27002: atan2(float __y, float __x) 27002: { return __builtin_atan2f(__y, __x); } 27002: 27002: inline constexpr long double 27002: atan2(long double __y, long double __x) 27002: { return __builtin_atan2l(__y, __x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: atan2(_Tp __y, _Up __x) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return atan2(__type(__y), __type(__x)); 27002: } 27002: 27002: using ::ceil; 27002: 27002: 27002: inline constexpr float 27002: ceil(float __x) 27002: { return __builtin_ceilf(__x); } 27002: 27002: inline constexpr long double 27002: ceil(long double __x) 27002: { return __builtin_ceill(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: ceil(_Tp __x) 27002: { return __builtin_ceil(__x); } 27002: 27002: using ::cos; 27002: 27002: 27002: inline constexpr float 27002: cos(float __x) 27002: { return __builtin_cosf(__x); } 27002: 27002: inline constexpr long double 27002: cos(long double __x) 27002: { return __builtin_cosl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: cos(_Tp __x) 27002: { return __builtin_cos(__x); } 27002: 27002: using ::cosh; 27002: 27002: 27002: inline constexpr float 27002: cosh(float __x) 27002: { return __builtin_coshf(__x); } 27002: 27002: inline constexpr long double 27002: cosh(long double __x) 27002: { return __builtin_coshl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: cosh(_Tp __x) 27002: { return __builtin_cosh(__x); } 27002: 27002: using ::exp; 27002: 27002: 27002: inline constexpr float 27002: exp(float __x) 27002: { return __builtin_expf(__x); } 27002: 27002: inline constexpr long double 27002: exp(long double __x) 27002: { return __builtin_expl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: exp(_Tp __x) 27002: { return __builtin_exp(__x); } 27002: 27002: using ::fabs; 27002: 27002: 27002: inline constexpr float 27002: fabs(float __x) 27002: { return __builtin_fabsf(__x); } 27002: 27002: inline constexpr long double 27002: fabs(long double __x) 27002: { return __builtin_fabsl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: fabs(_Tp __x) 27002: { return __builtin_fabs(__x); } 27002: 27002: using ::floor; 27002: 27002: 27002: inline constexpr float 27002: floor(float __x) 27002: { return __builtin_floorf(__x); } 27002: 27002: inline constexpr long double 27002: floor(long double __x) 27002: { return __builtin_floorl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: floor(_Tp __x) 27002: { return __builtin_floor(__x); } 27002: 27002: using ::fmod; 27002: 27002: 27002: inline constexpr float 27002: fmod(float __x, float __y) 27002: { return __builtin_fmodf(__x, __y); } 27002: 27002: inline constexpr long double 27002: fmod(long double __x, long double __y) 27002: { return __builtin_fmodl(__x, __y); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: fmod(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return fmod(__type(__x), __type(__y)); 27002: } 27002: 27002: using ::frexp; 27002: 27002: 27002: inline float 27002: frexp(float __x, int* __exp) 27002: { return __builtin_frexpf(__x, __exp); } 27002: 27002: inline long double 27002: frexp(long double __x, int* __exp) 27002: { return __builtin_frexpl(__x, __exp); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: frexp(_Tp __x, int* __exp) 27002: { return __builtin_frexp(__x, __exp); } 27002: 27002: using ::ldexp; 27002: 27002: 27002: inline constexpr float 27002: ldexp(float __x, int __exp) 27002: { return __builtin_ldexpf(__x, __exp); } 27002: 27002: inline constexpr long double 27002: ldexp(long double __x, int __exp) 27002: { return __builtin_ldexpl(__x, __exp); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: ldexp(_Tp __x, int __exp) 27002: { return __builtin_ldexp(__x, __exp); } 27002: 27002: using ::log; 27002: 27002: 27002: inline constexpr float 27002: log(float __x) 27002: { return __builtin_logf(__x); } 27002: 27002: inline constexpr long double 27002: log(long double __x) 27002: { return __builtin_logl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: log(_Tp __x) 27002: { return __builtin_log(__x); } 27002: 27002: using ::log10; 27002: 27002: 27002: inline constexpr float 27002: log10(float __x) 27002: { return __builtin_log10f(__x); } 27002: 27002: inline constexpr long double 27002: log10(long double __x) 27002: { return __builtin_log10l(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: log10(_Tp __x) 27002: { return __builtin_log10(__x); } 27002: 27002: using ::modf; 27002: 27002: 27002: inline float 27002: modf(float __x, float* __iptr) 27002: { return __builtin_modff(__x, __iptr); } 27002: 27002: inline long double 27002: modf(long double __x, long double* __iptr) 27002: { return __builtin_modfl(__x, __iptr); } 27002: 27002: 27002: using ::pow; 27002: 27002: 27002: inline constexpr float 27002: pow(float __x, float __y) 27002: { return __builtin_powf(__x, __y); } 27002: 27002: inline constexpr long double 27002: pow(long double __x, long double __y) 27002: { return __builtin_powl(__x, __y); } 27002: # 412 "/usr/include/c++/12/cmath" 3 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: pow(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return pow(__type(__x), __type(__y)); 27002: } 27002: 27002: using ::sin; 27002: 27002: 27002: inline constexpr float 27002: sin(float __x) 27002: { return __builtin_sinf(__x); } 27002: 27002: inline constexpr long double 27002: sin(long double __x) 27002: { return __builtin_sinl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: sin(_Tp __x) 27002: { return __builtin_sin(__x); } 27002: 27002: using ::sinh; 27002: 27002: 27002: inline constexpr float 27002: sinh(float __x) 27002: { return __builtin_sinhf(__x); } 27002: 27002: inline constexpr long double 27002: sinh(long double __x) 27002: { return __builtin_sinhl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: sinh(_Tp __x) 27002: { return __builtin_sinh(__x); } 27002: 27002: using ::sqrt; 27002: 27002: 27002: inline constexpr float 27002: sqrt(float __x) 27002: { return __builtin_sqrtf(__x); } 27002: 27002: inline constexpr long double 27002: sqrt(long double __x) 27002: { return __builtin_sqrtl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: sqrt(_Tp __x) 27002: { return __builtin_sqrt(__x); } 27002: 27002: using ::tan; 27002: 27002: 27002: inline constexpr float 27002: tan(float __x) 27002: { return __builtin_tanf(__x); } 27002: 27002: inline constexpr long double 27002: tan(long double __x) 27002: { return __builtin_tanl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: tan(_Tp __x) 27002: { return __builtin_tan(__x); } 27002: 27002: using ::tanh; 27002: 27002: 27002: inline constexpr float 27002: tanh(float __x) 27002: { return __builtin_tanhf(__x); } 27002: 27002: inline constexpr long double 27002: tanh(long double __x) 27002: { return __builtin_tanhl(__x); } 27002: 27002: 27002: template 27002: inline constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: tanh(_Tp __x) 27002: { return __builtin_tanh(__x); } 27002: # 536 "/usr/include/c++/12/cmath" 3 27002: constexpr int 27002: fpclassify(float __x) 27002: { return __builtin_fpclassify(0, 1, 4, 27002: 3, 2, __x); } 27002: 27002: constexpr int 27002: fpclassify(double __x) 27002: { return __builtin_fpclassify(0, 1, 4, 27002: 3, 2, __x); } 27002: 27002: constexpr int 27002: fpclassify(long double __x) 27002: { return __builtin_fpclassify(0, 1, 4, 27002: 3, 2, __x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: int>::__type 27002: fpclassify(_Tp __x) 27002: { return __x != 0 ? 4 : 2; } 27002: 27002: 27002: 27002: constexpr bool 27002: isfinite(float __x) 27002: { return __builtin_isfinite(__x); } 27002: 27002: constexpr bool 27002: isfinite(double __x) 27002: { return __builtin_isfinite(__x); } 27002: 27002: constexpr bool 27002: isfinite(long double __x) 27002: { return __builtin_isfinite(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: bool>::__type 27002: isfinite(_Tp __x) 27002: { return true; } 27002: 27002: 27002: 27002: constexpr bool 27002: isinf(float __x) 27002: { return __builtin_isinf(__x); } 27002: 27002: 27002: 27002: 27002: 27002: constexpr bool 27002: isinf(double __x) 27002: { return __builtin_isinf(__x); } 27002: 27002: 27002: constexpr bool 27002: isinf(long double __x) 27002: { return __builtin_isinf(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: bool>::__type 27002: isinf(_Tp __x) 27002: { return false; } 27002: 27002: 27002: 27002: constexpr bool 27002: isnan(float __x) 27002: { return __builtin_isnan(__x); } 27002: 27002: 27002: 27002: 27002: 27002: constexpr bool 27002: isnan(double __x) 27002: { return __builtin_isnan(__x); } 27002: 27002: 27002: constexpr bool 27002: isnan(long double __x) 27002: { return __builtin_isnan(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: bool>::__type 27002: isnan(_Tp __x) 27002: { return false; } 27002: 27002: 27002: 27002: constexpr bool 27002: isnormal(float __x) 27002: { return __builtin_isnormal(__x); } 27002: 27002: constexpr bool 27002: isnormal(double __x) 27002: { return __builtin_isnormal(__x); } 27002: 27002: constexpr bool 27002: isnormal(long double __x) 27002: { return __builtin_isnormal(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: bool>::__type 27002: isnormal(_Tp __x) 27002: { return __x != 0 ? true : false; } 27002: 27002: 27002: 27002: 27002: constexpr bool 27002: signbit(float __x) 27002: { return __builtin_signbit(__x); } 27002: 27002: constexpr bool 27002: signbit(double __x) 27002: { return __builtin_signbit(__x); } 27002: 27002: constexpr bool 27002: signbit(long double __x) 27002: { return __builtin_signbit(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: bool>::__type 27002: signbit(_Tp __x) 27002: { return __x < 0 ? true : false; } 27002: 27002: 27002: 27002: constexpr bool 27002: isgreater(float __x, float __y) 27002: { return __builtin_isgreater(__x, __y); } 27002: 27002: constexpr bool 27002: isgreater(double __x, double __y) 27002: { return __builtin_isgreater(__x, __y); } 27002: 27002: constexpr bool 27002: isgreater(long double __x, long double __y) 27002: { return __builtin_isgreater(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename 27002: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 27002: && __is_arithmetic<_Up>::__value), bool>::__type 27002: isgreater(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return __builtin_isgreater(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr bool 27002: isgreaterequal(float __x, float __y) 27002: { return __builtin_isgreaterequal(__x, __y); } 27002: 27002: constexpr bool 27002: isgreaterequal(double __x, double __y) 27002: { return __builtin_isgreaterequal(__x, __y); } 27002: 27002: constexpr bool 27002: isgreaterequal(long double __x, long double __y) 27002: { return __builtin_isgreaterequal(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename 27002: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 27002: && __is_arithmetic<_Up>::__value), bool>::__type 27002: isgreaterequal(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return __builtin_isgreaterequal(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr bool 27002: isless(float __x, float __y) 27002: { return __builtin_isless(__x, __y); } 27002: 27002: constexpr bool 27002: isless(double __x, double __y) 27002: { return __builtin_isless(__x, __y); } 27002: 27002: constexpr bool 27002: isless(long double __x, long double __y) 27002: { return __builtin_isless(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename 27002: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 27002: && __is_arithmetic<_Up>::__value), bool>::__type 27002: isless(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return __builtin_isless(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr bool 27002: islessequal(float __x, float __y) 27002: { return __builtin_islessequal(__x, __y); } 27002: 27002: constexpr bool 27002: islessequal(double __x, double __y) 27002: { return __builtin_islessequal(__x, __y); } 27002: 27002: constexpr bool 27002: islessequal(long double __x, long double __y) 27002: { return __builtin_islessequal(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename 27002: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 27002: && __is_arithmetic<_Up>::__value), bool>::__type 27002: islessequal(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return __builtin_islessequal(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr bool 27002: islessgreater(float __x, float __y) 27002: { return __builtin_islessgreater(__x, __y); } 27002: 27002: constexpr bool 27002: islessgreater(double __x, double __y) 27002: { return __builtin_islessgreater(__x, __y); } 27002: 27002: constexpr bool 27002: islessgreater(long double __x, long double __y) 27002: { return __builtin_islessgreater(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename 27002: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 27002: && __is_arithmetic<_Up>::__value), bool>::__type 27002: islessgreater(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return __builtin_islessgreater(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr bool 27002: isunordered(float __x, float __y) 27002: { return __builtin_isunordered(__x, __y); } 27002: 27002: constexpr bool 27002: isunordered(double __x, double __y) 27002: { return __builtin_isunordered(__x, __y); } 27002: 27002: constexpr bool 27002: isunordered(long double __x, long double __y) 27002: { return __builtin_isunordered(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename 27002: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 27002: && __is_arithmetic<_Up>::__value), bool>::__type 27002: isunordered(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return __builtin_isunordered(__type(__x), __type(__y)); 27002: } 27002: # 1065 "/usr/include/c++/12/cmath" 3 27002: using ::double_t; 27002: using ::float_t; 27002: 27002: 27002: using ::acosh; 27002: using ::acoshf; 27002: using ::acoshl; 27002: 27002: using ::asinh; 27002: using ::asinhf; 27002: using ::asinhl; 27002: 27002: using ::atanh; 27002: using ::atanhf; 27002: using ::atanhl; 27002: 27002: using ::cbrt; 27002: using ::cbrtf; 27002: using ::cbrtl; 27002: 27002: using ::copysign; 27002: using ::copysignf; 27002: using ::copysignl; 27002: 27002: using ::erf; 27002: using ::erff; 27002: using ::erfl; 27002: 27002: using ::erfc; 27002: using ::erfcf; 27002: using ::erfcl; 27002: 27002: using ::exp2; 27002: using ::exp2f; 27002: using ::exp2l; 27002: 27002: using ::expm1; 27002: using ::expm1f; 27002: using ::expm1l; 27002: 27002: using ::fdim; 27002: using ::fdimf; 27002: using ::fdiml; 27002: 27002: using ::fma; 27002: using ::fmaf; 27002: using ::fmal; 27002: 27002: using ::fmax; 27002: using ::fmaxf; 27002: using ::fmaxl; 27002: 27002: using ::fmin; 27002: using ::fminf; 27002: using ::fminl; 27002: 27002: using ::hypot; 27002: using ::hypotf; 27002: using ::hypotl; 27002: 27002: using ::ilogb; 27002: using ::ilogbf; 27002: using ::ilogbl; 27002: 27002: using ::lgamma; 27002: using ::lgammaf; 27002: using ::lgammal; 27002: 27002: 27002: using ::llrint; 27002: using ::llrintf; 27002: using ::llrintl; 27002: 27002: using ::llround; 27002: using ::llroundf; 27002: using ::llroundl; 27002: 27002: 27002: using ::log1p; 27002: using ::log1pf; 27002: using ::log1pl; 27002: 27002: using ::log2; 27002: using ::log2f; 27002: using ::log2l; 27002: 27002: using ::logb; 27002: using ::logbf; 27002: using ::logbl; 27002: 27002: using ::lrint; 27002: using ::lrintf; 27002: using ::lrintl; 27002: 27002: using ::lround; 27002: using ::lroundf; 27002: using ::lroundl; 27002: 27002: using ::nan; 27002: using ::nanf; 27002: using ::nanl; 27002: 27002: using ::nearbyint; 27002: using ::nearbyintf; 27002: using ::nearbyintl; 27002: 27002: using ::nextafter; 27002: using ::nextafterf; 27002: using ::nextafterl; 27002: 27002: using ::nexttoward; 27002: using ::nexttowardf; 27002: using ::nexttowardl; 27002: 27002: using ::remainder; 27002: using ::remainderf; 27002: using ::remainderl; 27002: 27002: using ::remquo; 27002: using ::remquof; 27002: using ::remquol; 27002: 27002: using ::rint; 27002: using ::rintf; 27002: using ::rintl; 27002: 27002: using ::round; 27002: using ::roundf; 27002: using ::roundl; 27002: 27002: using ::scalbln; 27002: using ::scalblnf; 27002: using ::scalblnl; 27002: 27002: using ::scalbn; 27002: using ::scalbnf; 27002: using ::scalbnl; 27002: 27002: using ::tgamma; 27002: using ::tgammaf; 27002: using ::tgammal; 27002: 27002: using ::trunc; 27002: using ::truncf; 27002: using ::truncl; 27002: 27002: 27002: 27002: constexpr float 27002: acosh(float __x) 27002: { return __builtin_acoshf(__x); } 27002: 27002: constexpr long double 27002: acosh(long double __x) 27002: { return __builtin_acoshl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: acosh(_Tp __x) 27002: { return __builtin_acosh(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: asinh(float __x) 27002: { return __builtin_asinhf(__x); } 27002: 27002: constexpr long double 27002: asinh(long double __x) 27002: { return __builtin_asinhl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: asinh(_Tp __x) 27002: { return __builtin_asinh(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: atanh(float __x) 27002: { return __builtin_atanhf(__x); } 27002: 27002: constexpr long double 27002: atanh(long double __x) 27002: { return __builtin_atanhl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: atanh(_Tp __x) 27002: { return __builtin_atanh(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: cbrt(float __x) 27002: { return __builtin_cbrtf(__x); } 27002: 27002: constexpr long double 27002: cbrt(long double __x) 27002: { return __builtin_cbrtl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: cbrt(_Tp __x) 27002: { return __builtin_cbrt(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: copysign(float __x, float __y) 27002: { return __builtin_copysignf(__x, __y); } 27002: 27002: constexpr long double 27002: copysign(long double __x, long double __y) 27002: { return __builtin_copysignl(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: copysign(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return copysign(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr float 27002: erf(float __x) 27002: { return __builtin_erff(__x); } 27002: 27002: constexpr long double 27002: erf(long double __x) 27002: { return __builtin_erfl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: erf(_Tp __x) 27002: { return __builtin_erf(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: erfc(float __x) 27002: { return __builtin_erfcf(__x); } 27002: 27002: constexpr long double 27002: erfc(long double __x) 27002: { return __builtin_erfcl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: erfc(_Tp __x) 27002: { return __builtin_erfc(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: exp2(float __x) 27002: { return __builtin_exp2f(__x); } 27002: 27002: constexpr long double 27002: exp2(long double __x) 27002: { return __builtin_exp2l(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: exp2(_Tp __x) 27002: { return __builtin_exp2(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: expm1(float __x) 27002: { return __builtin_expm1f(__x); } 27002: 27002: constexpr long double 27002: expm1(long double __x) 27002: { return __builtin_expm1l(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: expm1(_Tp __x) 27002: { return __builtin_expm1(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: fdim(float __x, float __y) 27002: { return __builtin_fdimf(__x, __y); } 27002: 27002: constexpr long double 27002: fdim(long double __x, long double __y) 27002: { return __builtin_fdiml(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: fdim(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return fdim(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr float 27002: fma(float __x, float __y, float __z) 27002: { return __builtin_fmaf(__x, __y, __z); } 27002: 27002: constexpr long double 27002: fma(long double __x, long double __y, long double __z) 27002: { return __builtin_fmal(__x, __y, __z); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 27002: fma(_Tp __x, _Up __y, _Vp __z) 27002: { 27002: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 27002: return fma(__type(__x), __type(__y), __type(__z)); 27002: } 27002: 27002: 27002: 27002: constexpr float 27002: fmax(float __x, float __y) 27002: { return __builtin_fmaxf(__x, __y); } 27002: 27002: constexpr long double 27002: fmax(long double __x, long double __y) 27002: { return __builtin_fmaxl(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: fmax(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return fmax(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr float 27002: fmin(float __x, float __y) 27002: { return __builtin_fminf(__x, __y); } 27002: 27002: constexpr long double 27002: fmin(long double __x, long double __y) 27002: { return __builtin_fminl(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: fmin(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return fmin(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr float 27002: hypot(float __x, float __y) 27002: { return __builtin_hypotf(__x, __y); } 27002: 27002: constexpr long double 27002: hypot(long double __x, long double __y) 27002: { return __builtin_hypotl(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: hypot(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return hypot(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr int 27002: ilogb(float __x) 27002: { return __builtin_ilogbf(__x); } 27002: 27002: constexpr int 27002: ilogb(long double __x) 27002: { return __builtin_ilogbl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr 27002: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: int>::__type 27002: ilogb(_Tp __x) 27002: { return __builtin_ilogb(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: lgamma(float __x) 27002: { return __builtin_lgammaf(__x); } 27002: 27002: constexpr long double 27002: lgamma(long double __x) 27002: { return __builtin_lgammal(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: lgamma(_Tp __x) 27002: { return __builtin_lgamma(__x); } 27002: 27002: 27002: 27002: constexpr long long 27002: llrint(float __x) 27002: { return __builtin_llrintf(__x); } 27002: 27002: constexpr long long 27002: llrint(long double __x) 27002: { return __builtin_llrintl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: long long>::__type 27002: llrint(_Tp __x) 27002: { return __builtin_llrint(__x); } 27002: 27002: 27002: 27002: constexpr long long 27002: llround(float __x) 27002: { return __builtin_llroundf(__x); } 27002: 27002: constexpr long long 27002: llround(long double __x) 27002: { return __builtin_llroundl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: long long>::__type 27002: llround(_Tp __x) 27002: { return __builtin_llround(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: log1p(float __x) 27002: { return __builtin_log1pf(__x); } 27002: 27002: constexpr long double 27002: log1p(long double __x) 27002: { return __builtin_log1pl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: log1p(_Tp __x) 27002: { return __builtin_log1p(__x); } 27002: 27002: 27002: 27002: 27002: constexpr float 27002: log2(float __x) 27002: { return __builtin_log2f(__x); } 27002: 27002: constexpr long double 27002: log2(long double __x) 27002: { return __builtin_log2l(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: log2(_Tp __x) 27002: { return __builtin_log2(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: logb(float __x) 27002: { return __builtin_logbf(__x); } 27002: 27002: constexpr long double 27002: logb(long double __x) 27002: { return __builtin_logbl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: logb(_Tp __x) 27002: { return __builtin_logb(__x); } 27002: 27002: 27002: 27002: constexpr long 27002: lrint(float __x) 27002: { return __builtin_lrintf(__x); } 27002: 27002: constexpr long 27002: lrint(long double __x) 27002: { return __builtin_lrintl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: long>::__type 27002: lrint(_Tp __x) 27002: { return __builtin_lrint(__x); } 27002: 27002: 27002: 27002: constexpr long 27002: lround(float __x) 27002: { return __builtin_lroundf(__x); } 27002: 27002: constexpr long 27002: lround(long double __x) 27002: { return __builtin_lroundl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: long>::__type 27002: lround(_Tp __x) 27002: { return __builtin_lround(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: nearbyint(float __x) 27002: { return __builtin_nearbyintf(__x); } 27002: 27002: constexpr long double 27002: nearbyint(long double __x) 27002: { return __builtin_nearbyintl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: nearbyint(_Tp __x) 27002: { return __builtin_nearbyint(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: nextafter(float __x, float __y) 27002: { return __builtin_nextafterf(__x, __y); } 27002: 27002: constexpr long double 27002: nextafter(long double __x, long double __y) 27002: { return __builtin_nextafterl(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: nextafter(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return nextafter(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: constexpr float 27002: nexttoward(float __x, long double __y) 27002: { return __builtin_nexttowardf(__x, __y); } 27002: 27002: constexpr long double 27002: nexttoward(long double __x, long double __y) 27002: { return __builtin_nexttowardl(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: nexttoward(_Tp __x, long double __y) 27002: { return __builtin_nexttoward(__x, __y); } 27002: 27002: 27002: 27002: constexpr float 27002: remainder(float __x, float __y) 27002: { return __builtin_remainderf(__x, __y); } 27002: 27002: constexpr long double 27002: remainder(long double __x, long double __y) 27002: { return __builtin_remainderl(__x, __y); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: remainder(_Tp __x, _Up __y) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return remainder(__type(__x), __type(__y)); 27002: } 27002: 27002: 27002: 27002: inline float 27002: remquo(float __x, float __y, int* __pquo) 27002: { return __builtin_remquof(__x, __y, __pquo); } 27002: 27002: inline long double 27002: remquo(long double __x, long double __y, int* __pquo) 27002: { return __builtin_remquol(__x, __y, __pquo); } 27002: 27002: 27002: 27002: template 27002: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 27002: remquo(_Tp __x, _Up __y, int* __pquo) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 27002: return remquo(__type(__x), __type(__y), __pquo); 27002: } 27002: 27002: 27002: 27002: constexpr float 27002: rint(float __x) 27002: { return __builtin_rintf(__x); } 27002: 27002: constexpr long double 27002: rint(long double __x) 27002: { return __builtin_rintl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: rint(_Tp __x) 27002: { return __builtin_rint(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: round(float __x) 27002: { return __builtin_roundf(__x); } 27002: 27002: constexpr long double 27002: round(long double __x) 27002: { return __builtin_roundl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: round(_Tp __x) 27002: { return __builtin_round(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: scalbln(float __x, long __ex) 27002: { return __builtin_scalblnf(__x, __ex); } 27002: 27002: constexpr long double 27002: scalbln(long double __x, long __ex) 27002: { return __builtin_scalblnl(__x, __ex); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: scalbln(_Tp __x, long __ex) 27002: { return __builtin_scalbln(__x, __ex); } 27002: 27002: 27002: 27002: constexpr float 27002: scalbn(float __x, int __ex) 27002: { return __builtin_scalbnf(__x, __ex); } 27002: 27002: constexpr long double 27002: scalbn(long double __x, int __ex) 27002: { return __builtin_scalbnl(__x, __ex); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: scalbn(_Tp __x, int __ex) 27002: { return __builtin_scalbn(__x, __ex); } 27002: 27002: 27002: 27002: constexpr float 27002: tgamma(float __x) 27002: { return __builtin_tgammaf(__x); } 27002: 27002: constexpr long double 27002: tgamma(long double __x) 27002: { return __builtin_tgammal(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: tgamma(_Tp __x) 27002: { return __builtin_tgamma(__x); } 27002: 27002: 27002: 27002: constexpr float 27002: trunc(float __x) 27002: { return __builtin_truncf(__x); } 27002: 27002: constexpr long double 27002: trunc(long double __x) 27002: { return __builtin_truncl(__x); } 27002: 27002: 27002: 27002: template 27002: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 27002: double>::__type 27002: trunc(_Tp __x) 27002: { return __builtin_trunc(__x); } 27002: # 1852 "/usr/include/c++/12/cmath" 3 27002: template 27002: inline _Tp 27002: __hypot3(_Tp __x, _Tp __y, _Tp __z) 27002: { 27002: __x = std::abs(__x); 27002: __y = std::abs(__y); 27002: __z = std::abs(__z); 27002: if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) 27002: return __a * std::sqrt((__x / __a) * (__x / __a) 27002: + (__y / __a) * (__y / __a) 27002: + (__z / __a) * (__z / __a)); 27002: else 27002: return {}; 27002: } 27002: 27002: inline float 27002: hypot(float __x, float __y, float __z) 27002: { return std::__hypot3(__x, __y, __z); } 27002: 27002: inline double 27002: hypot(double __x, double __y, double __z) 27002: { return std::__hypot3(__x, __y, __z); } 27002: 27002: inline long double 27002: hypot(long double __x, long double __y, long double __z) 27002: { return std::__hypot3(__x, __y, __z); } 27002: 27002: template 27002: __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> 27002: hypot(_Tp __x, _Up __y, _Vp __z) 27002: { 27002: using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; 27002: return std::__hypot3<__type>(__x, __y, __z); 27002: } 27002: # 1931 "/usr/include/c++/12/cmath" 3 27002: 27002: } 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/specfun.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/specfun.h" 3 27002: #pragma GCC visibility push(default) 27002: # 49 "/usr/include/c++/12/bits/specfun.h" 3 27002: # 1 "/usr/include/c++/12/tr1/gamma.tcc" 1 3 27002: # 49 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: # 1 "/usr/include/c++/12/tr1/special_function_util.h" 1 3 27002: # 39 "/usr/include/c++/12/tr1/special_function_util.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 50 "/usr/include/c++/12/tr1/special_function_util.h" 3 27002: namespace __detail 27002: { 27002: 27002: 27002: 27002: template 27002: struct __floating_point_constant 27002: { 27002: static const _Tp __value; 27002: }; 27002: 27002: 27002: 27002: template 27002: struct __numeric_constants 27002: { 27002: 27002: static _Tp __pi() throw() 27002: { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } 27002: 27002: static _Tp __pi_2() throw() 27002: { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } 27002: 27002: static _Tp __pi_3() throw() 27002: { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } 27002: 27002: static _Tp __pi_4() throw() 27002: { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } 27002: 27002: static _Tp __1_pi() throw() 27002: { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } 27002: 27002: static _Tp __2_sqrtpi() throw() 27002: { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } 27002: 27002: static _Tp __sqrt2() throw() 27002: { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } 27002: 27002: static _Tp __sqrt3() throw() 27002: { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } 27002: 27002: static _Tp __sqrtpio2() throw() 27002: { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } 27002: 27002: static _Tp __sqrt1_2() throw() 27002: { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } 27002: 27002: static _Tp __lnpi() throw() 27002: { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } 27002: 27002: static _Tp __gamma_e() throw() 27002: { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } 27002: 27002: static _Tp __euler() throw() 27002: { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } 27002: }; 27002: # 114 "/usr/include/c++/12/tr1/special_function_util.h" 3 27002: template 27002: inline bool __isnan(_Tp __x) 27002: { return std::isnan(__x); } 27002: # 133 "/usr/include/c++/12/tr1/special_function_util.h" 3 27002: } 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 50 "/usr/include/c++/12/tr1/gamma.tcc" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 65 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: namespace __detail 27002: { 27002: # 76 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __bernoulli_series(unsigned int __n) 27002: { 27002: 27002: static const _Tp __num[28] = { 27002: _Tp(1UL), -_Tp(1UL) / _Tp(2UL), 27002: _Tp(1UL) / _Tp(6UL), _Tp(0UL), 27002: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 27002: _Tp(1UL) / _Tp(42UL), _Tp(0UL), 27002: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 27002: _Tp(5UL) / _Tp(66UL), _Tp(0UL), 27002: -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), 27002: _Tp(7UL) / _Tp(6UL), _Tp(0UL), 27002: -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), 27002: _Tp(43867UL) / _Tp(798UL), _Tp(0UL), 27002: -_Tp(174611) / _Tp(330UL), _Tp(0UL), 27002: _Tp(854513UL) / _Tp(138UL), _Tp(0UL), 27002: -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), 27002: _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) 27002: }; 27002: 27002: if (__n == 0) 27002: return _Tp(1); 27002: 27002: if (__n == 1) 27002: return -_Tp(1) / _Tp(2); 27002: 27002: 27002: if (__n % 2 == 1) 27002: return _Tp(0); 27002: 27002: 27002: if (__n < 28) 27002: return __num[__n]; 27002: 27002: 27002: _Tp __fact = _Tp(1); 27002: if ((__n / 2) % 2 == 0) 27002: __fact *= _Tp(-1); 27002: for (unsigned int __k = 1; __k <= __n; ++__k) 27002: __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); 27002: __fact *= _Tp(2); 27002: 27002: _Tp __sum = _Tp(0); 27002: for (unsigned int __i = 1; __i < 1000; ++__i) 27002: { 27002: _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); 27002: if (__term < std::numeric_limits<_Tp>::epsilon()) 27002: break; 27002: __sum += __term; 27002: } 27002: 27002: return __fact * __sum; 27002: } 27002: # 139 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: inline _Tp 27002: __bernoulli(int __n) 27002: { return __bernoulli_series<_Tp>(__n); } 27002: # 153 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __log_gamma_bernoulli(_Tp __x) 27002: { 27002: _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x 27002: + _Tp(0.5L) * std::log(_Tp(2) 27002: * __numeric_constants<_Tp>::__pi()); 27002: 27002: const _Tp __xx = __x * __x; 27002: _Tp __help = _Tp(1) / __x; 27002: for ( unsigned int __i = 1; __i < 20; ++__i ) 27002: { 27002: const _Tp __2i = _Tp(2 * __i); 27002: __help /= __2i * (__2i - _Tp(1)) * __xx; 27002: __lg += __bernoulli<_Tp>(2 * __i) * __help; 27002: } 27002: 27002: return __lg; 27002: } 27002: # 181 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __log_gamma_lanczos(_Tp __x) 27002: { 27002: const _Tp __xm1 = __x - _Tp(1); 27002: 27002: static const _Tp __lanczos_cheb_7[9] = { 27002: _Tp( 0.99999999999980993227684700473478L), 27002: _Tp( 676.520368121885098567009190444019L), 27002: _Tp(-1259.13921672240287047156078755283L), 27002: _Tp( 771.3234287776530788486528258894L), 27002: _Tp(-176.61502916214059906584551354L), 27002: _Tp( 12.507343278686904814458936853L), 27002: _Tp(-0.13857109526572011689554707L), 27002: _Tp( 9.984369578019570859563e-6L), 27002: _Tp( 1.50563273514931155834e-7L) 27002: }; 27002: 27002: static const _Tp __LOGROOT2PI 27002: = _Tp(0.9189385332046727417803297364056176L); 27002: 27002: _Tp __sum = __lanczos_cheb_7[0]; 27002: for(unsigned int __k = 1; __k < 9; ++__k) 27002: __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); 27002: 27002: const _Tp __term1 = (__xm1 + _Tp(0.5L)) 27002: * std::log((__xm1 + _Tp(7.5L)) 27002: / __numeric_constants<_Tp>::__euler()); 27002: const _Tp __term2 = __LOGROOT2PI + std::log(__sum); 27002: const _Tp __result = __term1 + (__term2 - _Tp(7)); 27002: 27002: return __result; 27002: } 27002: # 225 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __log_gamma(_Tp __x) 27002: { 27002: if (__x > _Tp(0.5L)) 27002: return __log_gamma_lanczos(__x); 27002: else 27002: { 27002: const _Tp __sin_fact 27002: = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); 27002: if (__sin_fact == _Tp(0)) 27002: std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") 27002: ); 27002: return __numeric_constants<_Tp>::__lnpi() 27002: - std::log(__sin_fact) 27002: - __log_gamma_lanczos(_Tp(1) - __x); 27002: } 27002: } 27002: # 252 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __log_gamma_sign(_Tp __x) 27002: { 27002: if (__x > _Tp(0)) 27002: return _Tp(1); 27002: else 27002: { 27002: const _Tp __sin_fact 27002: = std::sin(__numeric_constants<_Tp>::__pi() * __x); 27002: if (__sin_fact > _Tp(0)) 27002: return (1); 27002: else if (__sin_fact < _Tp(0)) 27002: return -_Tp(1); 27002: else 27002: return _Tp(0); 27002: } 27002: } 27002: # 283 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __log_bincoef(unsigned int __n, unsigned int __k) 27002: { 27002: 27002: static const _Tp __max_bincoeff 27002: = std::numeric_limits<_Tp>::max_exponent10 27002: * std::log(_Tp(10)) - _Tp(1); 27002: 27002: _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) 27002: - ::std::lgamma(_Tp(1 + __k)) 27002: - ::std::lgamma(_Tp(1 + __n - __k)); 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 314 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __bincoef(unsigned int __n, unsigned int __k) 27002: { 27002: 27002: static const _Tp __max_bincoeff 27002: = std::numeric_limits<_Tp>::max_exponent10 27002: * std::log(_Tp(10)) - _Tp(1); 27002: 27002: const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); 27002: if (__log_coeff > __max_bincoeff) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else 27002: return std::exp(__log_coeff); 27002: } 27002: # 337 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: inline _Tp 27002: __gamma(_Tp __x) 27002: { return std::exp(__log_gamma(__x)); } 27002: # 356 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __psi_series(_Tp __x) 27002: { 27002: _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; 27002: const unsigned int __max_iter = 100000; 27002: for (unsigned int __k = 1; __k < __max_iter; ++__k) 27002: { 27002: const _Tp __term = __x / (__k * (__k + __x)); 27002: __sum += __term; 27002: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 27002: break; 27002: } 27002: return __sum; 27002: } 27002: # 386 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __psi_asymp(_Tp __x) 27002: { 27002: _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; 27002: const _Tp __xx = __x * __x; 27002: _Tp __xp = __xx; 27002: const unsigned int __max_iter = 100; 27002: for (unsigned int __k = 1; __k < __max_iter; ++__k) 27002: { 27002: const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); 27002: __sum -= __term; 27002: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 27002: break; 27002: __xp *= __xx; 27002: } 27002: return __sum; 27002: } 27002: # 417 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __psi(_Tp __x) 27002: { 27002: const int __n = static_cast(__x + 0.5L); 27002: const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); 27002: if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__x < _Tp(0)) 27002: { 27002: const _Tp __pi = __numeric_constants<_Tp>::__pi(); 27002: return __psi(_Tp(1) - __x) 27002: - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); 27002: } 27002: else if (__x > _Tp(100)) 27002: return __psi_asymp(__x); 27002: else 27002: return __psi_series(__x); 27002: } 27002: # 446 "/usr/include/c++/12/tr1/gamma.tcc" 3 27002: template 27002: _Tp 27002: __psi(unsigned int __n, _Tp __x) 27002: { 27002: if (__x <= _Tp(0)) 27002: std::__throw_domain_error(("Argument out of range " "in __psi") 27002: ); 27002: else if (__n == 0) 27002: return __psi(__x); 27002: else 27002: { 27002: const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); 27002: 27002: const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); 27002: 27002: 27002: 27002: _Tp __result = std::exp(__ln_nfact) * __hzeta; 27002: if (__n % 2 == 1) 27002: __result = -__result; 27002: return __result; 27002: } 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 50 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: # 1 "/usr/include/c++/12/tr1/bessel_function.tcc" 1 3 27002: # 55 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 71 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: namespace __detail 27002: { 27002: # 98 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: template 27002: void 27002: __gamma_temme(_Tp __mu, 27002: _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) 27002: { 27002: 27002: __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); 27002: __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); 27002: 27002: 27002: 27002: 27002: 27002: if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) 27002: __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); 27002: else 27002: __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); 27002: 27002: __gam2 = (__gammi + __gampl) / (_Tp(2)); 27002: 27002: return; 27002: } 27002: # 136 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: template 27002: void 27002: __bessel_jn(_Tp __nu, _Tp __x, 27002: _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) 27002: { 27002: if (__x == _Tp(0)) 27002: { 27002: if (__nu == _Tp(0)) 27002: { 27002: __Jnu = _Tp(1); 27002: __Jpnu = _Tp(0); 27002: } 27002: else if (__nu == _Tp(1)) 27002: { 27002: __Jnu = _Tp(0); 27002: __Jpnu = _Tp(0.5L); 27002: } 27002: else 27002: { 27002: __Jnu = _Tp(0); 27002: __Jpnu = _Tp(0); 27002: } 27002: __Nnu = -std::numeric_limits<_Tp>::infinity(); 27002: __Npnu = std::numeric_limits<_Tp>::infinity(); 27002: return; 27002: } 27002: 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: 27002: 27002: 27002: 27002: const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); 27002: const int __max_iter = 15000; 27002: const _Tp __x_min = _Tp(2); 27002: 27002: const int __nl = (__x < __x_min 27002: ? static_cast(__nu + _Tp(0.5L)) 27002: : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); 27002: 27002: const _Tp __mu = __nu - __nl; 27002: const _Tp __mu2 = __mu * __mu; 27002: const _Tp __xi = _Tp(1) / __x; 27002: const _Tp __xi2 = _Tp(2) * __xi; 27002: _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); 27002: int __isign = 1; 27002: _Tp __h = __nu * __xi; 27002: if (__h < __fp_min) 27002: __h = __fp_min; 27002: _Tp __b = __xi2 * __nu; 27002: _Tp __d = _Tp(0); 27002: _Tp __c = __h; 27002: int __i; 27002: for (__i = 1; __i <= __max_iter; ++__i) 27002: { 27002: __b += __xi2; 27002: __d = __b - __d; 27002: if (std::abs(__d) < __fp_min) 27002: __d = __fp_min; 27002: __c = __b - _Tp(1) / __c; 27002: if (std::abs(__c) < __fp_min) 27002: __c = __fp_min; 27002: __d = _Tp(1) / __d; 27002: const _Tp __del = __c * __d; 27002: __h *= __del; 27002: if (__d < _Tp(0)) 27002: __isign = -__isign; 27002: if (std::abs(__del - _Tp(1)) < __eps) 27002: break; 27002: } 27002: if (__i > __max_iter) 27002: std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") 27002: ); 27002: _Tp __Jnul = __isign * __fp_min; 27002: _Tp __Jpnul = __h * __Jnul; 27002: _Tp __Jnul1 = __Jnul; 27002: _Tp __Jpnu1 = __Jpnul; 27002: _Tp __fact = __nu * __xi; 27002: for ( int __l = __nl; __l >= 1; --__l ) 27002: { 27002: const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; 27002: __fact -= __xi; 27002: __Jpnul = __fact * __Jnutemp - __Jnul; 27002: __Jnul = __Jnutemp; 27002: } 27002: if (__Jnul == _Tp(0)) 27002: __Jnul = __eps; 27002: _Tp __f= __Jpnul / __Jnul; 27002: _Tp __Nmu, __Nnu1, __Npmu, __Jmu; 27002: if (__x < __x_min) 27002: { 27002: const _Tp __x2 = __x / _Tp(2); 27002: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 27002: _Tp __fact = (std::abs(__pimu) < __eps 27002: ? _Tp(1) : __pimu / std::sin(__pimu)); 27002: _Tp __d = -std::log(__x2); 27002: _Tp __e = __mu * __d; 27002: _Tp __fact2 = (std::abs(__e) < __eps 27002: ? _Tp(1) : std::sinh(__e) / __e); 27002: _Tp __gam1, __gam2, __gampl, __gammi; 27002: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 27002: _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) 27002: * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 27002: __e = std::exp(__e); 27002: _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); 27002: _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); 27002: const _Tp __pimu2 = __pimu / _Tp(2); 27002: _Tp __fact3 = (std::abs(__pimu2) < __eps 27002: ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); 27002: _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; 27002: _Tp __c = _Tp(1); 27002: __d = -__x2 * __x2; 27002: _Tp __sum = __ff + __r * __q; 27002: _Tp __sum1 = __p; 27002: for (__i = 1; __i <= __max_iter; ++__i) 27002: { 27002: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 27002: __c *= __d / _Tp(__i); 27002: __p /= _Tp(__i) - __mu; 27002: __q /= _Tp(__i) + __mu; 27002: const _Tp __del = __c * (__ff + __r * __q); 27002: __sum += __del; 27002: const _Tp __del1 = __c * __p - __i * __del; 27002: __sum1 += __del1; 27002: if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) 27002: break; 27002: } 27002: if ( __i > __max_iter ) 27002: std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") 27002: ); 27002: __Nmu = -__sum; 27002: __Nnu1 = -__sum1 * __xi2; 27002: __Npmu = __mu * __xi * __Nmu - __Nnu1; 27002: __Jmu = __w / (__Npmu - __f * __Nmu); 27002: } 27002: else 27002: { 27002: _Tp __a = _Tp(0.25L) - __mu2; 27002: _Tp __q = _Tp(1); 27002: _Tp __p = -__xi / _Tp(2); 27002: _Tp __br = _Tp(2) * __x; 27002: _Tp __bi = _Tp(2); 27002: _Tp __fact = __a * __xi / (__p * __p + __q * __q); 27002: _Tp __cr = __br + __q * __fact; 27002: _Tp __ci = __bi + __p * __fact; 27002: _Tp __den = __br * __br + __bi * __bi; 27002: _Tp __dr = __br / __den; 27002: _Tp __di = -__bi / __den; 27002: _Tp __dlr = __cr * __dr - __ci * __di; 27002: _Tp __dli = __cr * __di + __ci * __dr; 27002: _Tp __temp = __p * __dlr - __q * __dli; 27002: __q = __p * __dli + __q * __dlr; 27002: __p = __temp; 27002: int __i; 27002: for (__i = 2; __i <= __max_iter; ++__i) 27002: { 27002: __a += _Tp(2 * (__i - 1)); 27002: __bi += _Tp(2); 27002: __dr = __a * __dr + __br; 27002: __di = __a * __di + __bi; 27002: if (std::abs(__dr) + std::abs(__di) < __fp_min) 27002: __dr = __fp_min; 27002: __fact = __a / (__cr * __cr + __ci * __ci); 27002: __cr = __br + __cr * __fact; 27002: __ci = __bi - __ci * __fact; 27002: if (std::abs(__cr) + std::abs(__ci) < __fp_min) 27002: __cr = __fp_min; 27002: __den = __dr * __dr + __di * __di; 27002: __dr /= __den; 27002: __di /= -__den; 27002: __dlr = __cr * __dr - __ci * __di; 27002: __dli = __cr * __di + __ci * __dr; 27002: __temp = __p * __dlr - __q * __dli; 27002: __q = __p * __dli + __q * __dlr; 27002: __p = __temp; 27002: if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) 27002: break; 27002: } 27002: if (__i > __max_iter) 27002: std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") 27002: ); 27002: const _Tp __gam = (__p - __f) / __q; 27002: __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); 27002: 27002: __Jmu = ::std::copysign(__Jmu, __Jnul); 27002: 27002: 27002: 27002: 27002: __Nmu = __gam * __Jmu; 27002: __Npmu = (__p + __q / __gam) * __Nmu; 27002: __Nnu1 = __mu * __xi * __Nmu - __Npmu; 27002: } 27002: __fact = __Jmu / __Jnul; 27002: __Jnu = __fact * __Jnul1; 27002: __Jpnu = __fact * __Jpnu1; 27002: for (__i = 1; __i <= __nl; ++__i) 27002: { 27002: const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; 27002: __Nmu = __Nnu1; 27002: __Nnu1 = __Nnutemp; 27002: } 27002: __Nnu = __Nmu; 27002: __Npnu = __nu * __xi * __Nmu - __Nnu1; 27002: 27002: return; 27002: } 27002: # 361 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: template 27002: void 27002: __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) 27002: { 27002: const _Tp __mu = _Tp(4) * __nu * __nu; 27002: const _Tp __8x = _Tp(8) * __x; 27002: 27002: _Tp __P = _Tp(0); 27002: _Tp __Q = _Tp(0); 27002: 27002: _Tp __k = _Tp(0); 27002: _Tp __term = _Tp(1); 27002: 27002: int __epsP = 0; 27002: int __epsQ = 0; 27002: 27002: _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: 27002: do 27002: { 27002: __term *= (__k == 0 27002: ? _Tp(1) 27002: : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); 27002: 27002: __epsP = std::abs(__term) < __eps * std::abs(__P); 27002: __P += __term; 27002: 27002: __k++; 27002: 27002: __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); 27002: __epsQ = std::abs(__term) < __eps * std::abs(__Q); 27002: __Q += __term; 27002: 27002: if (__epsP && __epsQ && __k > (__nu / 2.)) 27002: break; 27002: 27002: __k++; 27002: } 27002: while (__k < 1000); 27002: 27002: const _Tp __chi = __x - (__nu + _Tp(0.5L)) 27002: * __numeric_constants<_Tp>::__pi_2(); 27002: 27002: const _Tp __c = std::cos(__chi); 27002: const _Tp __s = std::sin(__chi); 27002: 27002: const _Tp __coef = std::sqrt(_Tp(2) 27002: / (__numeric_constants<_Tp>::__pi() * __x)); 27002: 27002: __Jnu = __coef * (__c * __P - __s * __Q); 27002: __Nnu = __coef * (__s * __P + __c * __Q); 27002: 27002: return; 27002: } 27002: # 444 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: template 27002: _Tp 27002: __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, 27002: unsigned int __max_iter) 27002: { 27002: if (__x == _Tp(0)) 27002: return __nu == _Tp(0) ? _Tp(1) : _Tp(0); 27002: 27002: const _Tp __x2 = __x / _Tp(2); 27002: _Tp __fact = __nu * std::log(__x2); 27002: 27002: __fact -= ::std::lgamma(__nu + _Tp(1)); 27002: 27002: 27002: 27002: __fact = std::exp(__fact); 27002: const _Tp __xx4 = __sgn * __x2 * __x2; 27002: _Tp __Jn = _Tp(1); 27002: _Tp __term = _Tp(1); 27002: 27002: for (unsigned int __i = 1; __i < __max_iter; ++__i) 27002: { 27002: __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); 27002: __Jn += __term; 27002: if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) 27002: break; 27002: } 27002: 27002: return __fact * __Jn; 27002: } 27002: # 490 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: template 27002: _Tp 27002: __cyl_bessel_j(_Tp __nu, _Tp __x) 27002: { 27002: if (__nu < _Tp(0) || __x < _Tp(0)) 27002: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") 27002: ); 27002: else if (__isnan(__nu) || __isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 27002: return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); 27002: else if (__x > _Tp(1000)) 27002: { 27002: _Tp __J_nu, __N_nu; 27002: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 27002: return __J_nu; 27002: } 27002: else 27002: { 27002: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 27002: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 27002: return __J_nu; 27002: } 27002: } 27002: # 532 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: template 27002: _Tp 27002: __cyl_neumann_n(_Tp __nu, _Tp __x) 27002: { 27002: if (__nu < _Tp(0) || __x < _Tp(0)) 27002: std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") 27002: ); 27002: else if (__isnan(__nu) || __isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__x > _Tp(1000)) 27002: { 27002: _Tp __J_nu, __N_nu; 27002: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 27002: return __N_nu; 27002: } 27002: else 27002: { 27002: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 27002: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 27002: return __N_nu; 27002: } 27002: } 27002: # 569 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: template 27002: void 27002: __sph_bessel_jn(unsigned int __n, _Tp __x, 27002: _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) 27002: { 27002: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 27002: 27002: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 27002: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 27002: 27002: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 27002: / std::sqrt(__x); 27002: 27002: __j_n = __factor * __J_nu; 27002: __n_n = __factor * __N_nu; 27002: __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); 27002: __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); 27002: 27002: return; 27002: } 27002: # 604 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: template 27002: _Tp 27002: __sph_bessel(unsigned int __n, _Tp __x) 27002: { 27002: if (__x < _Tp(0)) 27002: std::__throw_domain_error(("Bad argument " "in __sph_bessel.") 27002: ); 27002: else if (__isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__x == _Tp(0)) 27002: { 27002: if (__n == 0) 27002: return _Tp(1); 27002: else 27002: return _Tp(0); 27002: } 27002: else 27002: { 27002: _Tp __j_n, __n_n, __jp_n, __np_n; 27002: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 27002: return __j_n; 27002: } 27002: } 27002: # 642 "/usr/include/c++/12/tr1/bessel_function.tcc" 3 27002: template 27002: _Tp 27002: __sph_neumann(unsigned int __n, _Tp __x) 27002: { 27002: if (__x < _Tp(0)) 27002: std::__throw_domain_error(("Bad argument " "in __sph_neumann.") 27002: ); 27002: else if (__isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__x == _Tp(0)) 27002: return -std::numeric_limits<_Tp>::infinity(); 27002: else 27002: { 27002: _Tp __j_n, __n_n, __jp_n, __np_n; 27002: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 27002: return __n_n; 27002: } 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 51 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: # 1 "/usr/include/c++/12/tr1/beta_function.tcc" 1 3 27002: # 49 "/usr/include/c++/12/tr1/beta_function.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 65 "/usr/include/c++/12/tr1/beta_function.tcc" 3 27002: namespace __detail 27002: { 27002: # 79 "/usr/include/c++/12/tr1/beta_function.tcc" 3 27002: template 27002: _Tp 27002: __beta_gamma(_Tp __x, _Tp __y) 27002: { 27002: 27002: _Tp __bet; 27002: 27002: if (__x > __y) 27002: { 27002: __bet = ::std::tgamma(__x) 27002: / ::std::tgamma(__x + __y); 27002: __bet *= ::std::tgamma(__y); 27002: } 27002: else 27002: { 27002: __bet = ::std::tgamma(__y) 27002: / ::std::tgamma(__x + __y); 27002: __bet *= ::std::tgamma(__x); 27002: } 27002: # 111 "/usr/include/c++/12/tr1/beta_function.tcc" 3 27002: return __bet; 27002: } 27002: # 127 "/usr/include/c++/12/tr1/beta_function.tcc" 3 27002: template 27002: _Tp 27002: __beta_lgamma(_Tp __x, _Tp __y) 27002: { 27002: 27002: _Tp __bet = ::std::lgamma(__x) 27002: + ::std::lgamma(__y) 27002: - ::std::lgamma(__x + __y); 27002: 27002: 27002: 27002: 27002: 27002: __bet = std::exp(__bet); 27002: return __bet; 27002: } 27002: # 158 "/usr/include/c++/12/tr1/beta_function.tcc" 3 27002: template 27002: _Tp 27002: __beta_product(_Tp __x, _Tp __y) 27002: { 27002: 27002: _Tp __bet = (__x + __y) / (__x * __y); 27002: 27002: unsigned int __max_iter = 1000000; 27002: for (unsigned int __k = 1; __k < __max_iter; ++__k) 27002: { 27002: _Tp __term = (_Tp(1) + (__x + __y) / __k) 27002: / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); 27002: __bet *= __term; 27002: } 27002: 27002: return __bet; 27002: } 27002: # 189 "/usr/include/c++/12/tr1/beta_function.tcc" 3 27002: template 27002: inline _Tp 27002: __beta(_Tp __x, _Tp __y) 27002: { 27002: if (__isnan(__x) || __isnan(__y)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else 27002: return __beta_lgamma(__x, __y); 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 52 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: # 1 "/usr/include/c++/12/tr1/ell_integral.tcc" 1 3 27002: # 45 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 59 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: namespace __detail 27002: { 27002: # 76 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __ellint_rf(_Tp __x, _Tp __y, _Tp __z) 27002: { 27002: const _Tp __min = std::numeric_limits<_Tp>::min(); 27002: const _Tp __lolim = _Tp(5) * __min; 27002: 27002: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 27002: std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") 27002: ); 27002: else if (__x + __y < __lolim || __x + __z < __lolim 27002: || __y + __z < __lolim) 27002: std::__throw_domain_error(("Argument too small in __ellint_rf")); 27002: else 27002: { 27002: const _Tp __c0 = _Tp(1) / _Tp(4); 27002: const _Tp __c1 = _Tp(1) / _Tp(24); 27002: const _Tp __c2 = _Tp(1) / _Tp(10); 27002: const _Tp __c3 = _Tp(3) / _Tp(44); 27002: const _Tp __c4 = _Tp(1) / _Tp(14); 27002: 27002: _Tp __xn = __x; 27002: _Tp __yn = __y; 27002: _Tp __zn = __z; 27002: 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); 27002: _Tp __mu; 27002: _Tp __xndev, __yndev, __zndev; 27002: 27002: const unsigned int __max_iter = 100; 27002: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 27002: { 27002: __mu = (__xn + __yn + __zn) / _Tp(3); 27002: __xndev = 2 - (__mu + __xn) / __mu; 27002: __yndev = 2 - (__mu + __yn) / __mu; 27002: __zndev = 2 - (__mu + __zn) / __mu; 27002: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 27002: __epsilon = std::max(__epsilon, std::abs(__zndev)); 27002: if (__epsilon < __errtol) 27002: break; 27002: const _Tp __xnroot = std::sqrt(__xn); 27002: const _Tp __ynroot = std::sqrt(__yn); 27002: const _Tp __znroot = std::sqrt(__zn); 27002: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 27002: + __ynroot * __znroot; 27002: __xn = __c0 * (__xn + __lambda); 27002: __yn = __c0 * (__yn + __lambda); 27002: __zn = __c0 * (__zn + __lambda); 27002: } 27002: 27002: const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; 27002: const _Tp __e3 = __xndev * __yndev * __zndev; 27002: const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 27002: + __c4 * __e3; 27002: 27002: return __s / std::sqrt(__mu); 27002: } 27002: } 27002: # 153 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __comp_ellint_1_series(_Tp __k) 27002: { 27002: 27002: const _Tp __kk = __k * __k; 27002: 27002: _Tp __term = __kk / _Tp(4); 27002: _Tp __sum = _Tp(1) + __term; 27002: 27002: const unsigned int __max_iter = 1000; 27002: for (unsigned int __i = 2; __i < __max_iter; ++__i) 27002: { 27002: __term *= (2 * __i - 1) * __kk / (2 * __i); 27002: if (__term < std::numeric_limits<_Tp>::epsilon()) 27002: break; 27002: __sum += __term; 27002: } 27002: 27002: return __numeric_constants<_Tp>::__pi_2() * __sum; 27002: } 27002: # 191 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __comp_ellint_1(_Tp __k) 27002: { 27002: 27002: if (__isnan(__k)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (std::abs(__k) >= _Tp(1)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else 27002: return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); 27002: } 27002: # 219 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __ellint_1(_Tp __k, _Tp __phi) 27002: { 27002: 27002: if (__isnan(__k) || __isnan(__phi)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (std::abs(__k) > _Tp(1)) 27002: std::__throw_domain_error(("Bad argument in __ellint_1.")); 27002: else 27002: { 27002: 27002: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 27002: + _Tp(0.5L)); 27002: const _Tp __phi_red = __phi 27002: - __n * __numeric_constants<_Tp>::__pi(); 27002: 27002: const _Tp __s = std::sin(__phi_red); 27002: const _Tp __c = std::cos(__phi_red); 27002: 27002: const _Tp __F = __s 27002: * __ellint_rf(__c * __c, 27002: _Tp(1) - __k * __k * __s * __s, _Tp(1)); 27002: 27002: if (__n == 0) 27002: return __F; 27002: else 27002: return __F + _Tp(2) * __n * __comp_ellint_1(__k); 27002: } 27002: } 27002: # 266 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __comp_ellint_2_series(_Tp __k) 27002: { 27002: 27002: const _Tp __kk = __k * __k; 27002: 27002: _Tp __term = __kk; 27002: _Tp __sum = __term; 27002: 27002: const unsigned int __max_iter = 1000; 27002: for (unsigned int __i = 2; __i < __max_iter; ++__i) 27002: { 27002: const _Tp __i2m = 2 * __i - 1; 27002: const _Tp __i2 = 2 * __i; 27002: __term *= __i2m * __i2m * __kk / (__i2 * __i2); 27002: if (__term < std::numeric_limits<_Tp>::epsilon()) 27002: break; 27002: __sum += __term / __i2m; 27002: } 27002: 27002: return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); 27002: } 27002: # 314 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __ellint_rd(_Tp __x, _Tp __y, _Tp __z) 27002: { 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 27002: const _Tp __max = std::numeric_limits<_Tp>::max(); 27002: const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); 27002: 27002: if (__x < _Tp(0) || __y < _Tp(0)) 27002: std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") 27002: ); 27002: else if (__x + __y < __lolim || __z < __lolim) 27002: std::__throw_domain_error(("Argument too small " "in __ellint_rd.") 27002: ); 27002: else 27002: { 27002: const _Tp __c0 = _Tp(1) / _Tp(4); 27002: const _Tp __c1 = _Tp(3) / _Tp(14); 27002: const _Tp __c2 = _Tp(1) / _Tp(6); 27002: const _Tp __c3 = _Tp(9) / _Tp(22); 27002: const _Tp __c4 = _Tp(3) / _Tp(26); 27002: 27002: _Tp __xn = __x; 27002: _Tp __yn = __y; 27002: _Tp __zn = __z; 27002: _Tp __sigma = _Tp(0); 27002: _Tp __power4 = _Tp(1); 27002: 27002: _Tp __mu; 27002: _Tp __xndev, __yndev, __zndev; 27002: 27002: const unsigned int __max_iter = 100; 27002: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 27002: { 27002: __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); 27002: __xndev = (__mu - __xn) / __mu; 27002: __yndev = (__mu - __yn) / __mu; 27002: __zndev = (__mu - __zn) / __mu; 27002: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 27002: __epsilon = std::max(__epsilon, std::abs(__zndev)); 27002: if (__epsilon < __errtol) 27002: break; 27002: _Tp __xnroot = std::sqrt(__xn); 27002: _Tp __ynroot = std::sqrt(__yn); 27002: _Tp __znroot = std::sqrt(__zn); 27002: _Tp __lambda = __xnroot * (__ynroot + __znroot) 27002: + __ynroot * __znroot; 27002: __sigma += __power4 / (__znroot * (__zn + __lambda)); 27002: __power4 *= __c0; 27002: __xn = __c0 * (__xn + __lambda); 27002: __yn = __c0 * (__yn + __lambda); 27002: __zn = __c0 * (__zn + __lambda); 27002: } 27002: 27002: _Tp __ea = __xndev * __yndev; 27002: _Tp __eb = __zndev * __zndev; 27002: _Tp __ec = __ea - __eb; 27002: _Tp __ed = __ea - _Tp(6) * __eb; 27002: _Tp __ef = __ed + __ec + __ec; 27002: _Tp __s1 = __ed * (-__c1 + __c3 * __ed 27002: / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef 27002: / _Tp(2)); 27002: _Tp __s2 = __zndev 27002: * (__c2 * __ef 27002: + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); 27002: 27002: return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) 27002: / (__mu * std::sqrt(__mu)); 27002: } 27002: } 27002: # 399 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __comp_ellint_2(_Tp __k) 27002: { 27002: 27002: if (__isnan(__k)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (std::abs(__k) == 1) 27002: return _Tp(1); 27002: else if (std::abs(__k) > _Tp(1)) 27002: std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); 27002: else 27002: { 27002: const _Tp __kk = __k * __k; 27002: 27002: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 27002: - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); 27002: } 27002: } 27002: # 433 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __ellint_2(_Tp __k, _Tp __phi) 27002: { 27002: 27002: if (__isnan(__k) || __isnan(__phi)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (std::abs(__k) > _Tp(1)) 27002: std::__throw_domain_error(("Bad argument in __ellint_2.")); 27002: else 27002: { 27002: 27002: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 27002: + _Tp(0.5L)); 27002: const _Tp __phi_red = __phi 27002: - __n * __numeric_constants<_Tp>::__pi(); 27002: 27002: const _Tp __kk = __k * __k; 27002: const _Tp __s = std::sin(__phi_red); 27002: const _Tp __ss = __s * __s; 27002: const _Tp __sss = __ss * __s; 27002: const _Tp __c = std::cos(__phi_red); 27002: const _Tp __cc = __c * __c; 27002: 27002: const _Tp __E = __s 27002: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 27002: - __kk * __sss 27002: * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 27002: / _Tp(3); 27002: 27002: if (__n == 0) 27002: return __E; 27002: else 27002: return __E + _Tp(2) * __n * __comp_ellint_2(__k); 27002: } 27002: } 27002: # 492 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __ellint_rc(_Tp __x, _Tp __y) 27002: { 27002: const _Tp __min = std::numeric_limits<_Tp>::min(); 27002: const _Tp __lolim = _Tp(5) * __min; 27002: 27002: if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) 27002: std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") 27002: ); 27002: else 27002: { 27002: const _Tp __c0 = _Tp(1) / _Tp(4); 27002: const _Tp __c1 = _Tp(1) / _Tp(7); 27002: const _Tp __c2 = _Tp(9) / _Tp(22); 27002: const _Tp __c3 = _Tp(3) / _Tp(10); 27002: const _Tp __c4 = _Tp(3) / _Tp(8); 27002: 27002: _Tp __xn = __x; 27002: _Tp __yn = __y; 27002: 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); 27002: _Tp __mu; 27002: _Tp __sn; 27002: 27002: const unsigned int __max_iter = 100; 27002: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 27002: { 27002: __mu = (__xn + _Tp(2) * __yn) / _Tp(3); 27002: __sn = (__yn + __mu) / __mu - _Tp(2); 27002: if (std::abs(__sn) < __errtol) 27002: break; 27002: const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) 27002: + __yn; 27002: __xn = __c0 * (__xn + __lambda); 27002: __yn = __c0 * (__yn + __lambda); 27002: } 27002: 27002: _Tp __s = __sn * __sn 27002: * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); 27002: 27002: return (_Tp(1) + __s) / std::sqrt(__mu); 27002: } 27002: } 27002: # 561 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) 27002: { 27002: const _Tp __min = std::numeric_limits<_Tp>::min(); 27002: const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); 27002: 27002: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 27002: std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") 27002: ); 27002: else if (__x + __y < __lolim || __x + __z < __lolim 27002: || __y + __z < __lolim || __p < __lolim) 27002: std::__throw_domain_error(("Argument too small " "in __ellint_rj") 27002: ); 27002: else 27002: { 27002: const _Tp __c0 = _Tp(1) / _Tp(4); 27002: const _Tp __c1 = _Tp(3) / _Tp(14); 27002: const _Tp __c2 = _Tp(1) / _Tp(3); 27002: const _Tp __c3 = _Tp(3) / _Tp(22); 27002: const _Tp __c4 = _Tp(3) / _Tp(26); 27002: 27002: _Tp __xn = __x; 27002: _Tp __yn = __y; 27002: _Tp __zn = __z; 27002: _Tp __pn = __p; 27002: _Tp __sigma = _Tp(0); 27002: _Tp __power4 = _Tp(1); 27002: 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 27002: 27002: _Tp __mu; 27002: _Tp __xndev, __yndev, __zndev, __pndev; 27002: 27002: const unsigned int __max_iter = 100; 27002: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 27002: { 27002: __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); 27002: __xndev = (__mu - __xn) / __mu; 27002: __yndev = (__mu - __yn) / __mu; 27002: __zndev = (__mu - __zn) / __mu; 27002: __pndev = (__mu - __pn) / __mu; 27002: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 27002: __epsilon = std::max(__epsilon, std::abs(__zndev)); 27002: __epsilon = std::max(__epsilon, std::abs(__pndev)); 27002: if (__epsilon < __errtol) 27002: break; 27002: const _Tp __xnroot = std::sqrt(__xn); 27002: const _Tp __ynroot = std::sqrt(__yn); 27002: const _Tp __znroot = std::sqrt(__zn); 27002: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 27002: + __ynroot * __znroot; 27002: const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) 27002: + __xnroot * __ynroot * __znroot; 27002: const _Tp __alpha2 = __alpha1 * __alpha1; 27002: const _Tp __beta = __pn * (__pn + __lambda) 27002: * (__pn + __lambda); 27002: __sigma += __power4 * __ellint_rc(__alpha2, __beta); 27002: __power4 *= __c0; 27002: __xn = __c0 * (__xn + __lambda); 27002: __yn = __c0 * (__yn + __lambda); 27002: __zn = __c0 * (__zn + __lambda); 27002: __pn = __c0 * (__pn + __lambda); 27002: } 27002: 27002: _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; 27002: _Tp __eb = __xndev * __yndev * __zndev; 27002: _Tp __ec = __pndev * __pndev; 27002: _Tp __e2 = __ea - _Tp(3) * __ec; 27002: _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); 27002: _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) 27002: - _Tp(3) * __c4 * __e3 / _Tp(2)); 27002: _Tp __s2 = __eb * (__c2 / _Tp(2) 27002: + __pndev * (-__c3 - __c3 + __pndev * __c4)); 27002: _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) 27002: - __c2 * __pndev * __ec; 27002: 27002: return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) 27002: / (__mu * std::sqrt(__mu)); 27002: } 27002: } 27002: # 661 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __comp_ellint_3(_Tp __k, _Tp __nu) 27002: { 27002: 27002: if (__isnan(__k) || __isnan(__nu)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__nu == _Tp(1)) 27002: return std::numeric_limits<_Tp>::infinity(); 27002: else if (std::abs(__k) > _Tp(1)) 27002: std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); 27002: else 27002: { 27002: const _Tp __kk = __k * __k; 27002: 27002: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 27002: + __nu 27002: * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) 27002: / _Tp(3); 27002: } 27002: } 27002: # 701 "/usr/include/c++/12/tr1/ell_integral.tcc" 3 27002: template 27002: _Tp 27002: __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) 27002: { 27002: 27002: if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (std::abs(__k) > _Tp(1)) 27002: std::__throw_domain_error(("Bad argument in __ellint_3.")); 27002: else 27002: { 27002: 27002: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 27002: + _Tp(0.5L)); 27002: const _Tp __phi_red = __phi 27002: - __n * __numeric_constants<_Tp>::__pi(); 27002: 27002: const _Tp __kk = __k * __k; 27002: const _Tp __s = std::sin(__phi_red); 27002: const _Tp __ss = __s * __s; 27002: const _Tp __sss = __ss * __s; 27002: const _Tp __c = std::cos(__phi_red); 27002: const _Tp __cc = __c * __c; 27002: 27002: const _Tp __Pi = __s 27002: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 27002: + __nu * __sss 27002: * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), 27002: _Tp(1) - __nu * __ss) / _Tp(3); 27002: 27002: if (__n == 0) 27002: return __Pi; 27002: else 27002: return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); 27002: } 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 53 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: # 1 "/usr/include/c++/12/tr1/exp_integral.tcc" 1 3 27002: # 50 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 64 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: namespace __detail 27002: { 27002: template _Tp __expint_E1(_Tp); 27002: # 81 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_E1_series(_Tp __x) 27002: { 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: _Tp __term = _Tp(1); 27002: _Tp __esum = _Tp(0); 27002: _Tp __osum = _Tp(0); 27002: const unsigned int __max_iter = 1000; 27002: for (unsigned int __i = 1; __i < __max_iter; ++__i) 27002: { 27002: __term *= - __x / __i; 27002: if (std::abs(__term) < __eps) 27002: break; 27002: if (__term >= _Tp(0)) 27002: __esum += __term / __i; 27002: else 27002: __osum += __term / __i; 27002: } 27002: 27002: return - __esum - __osum 27002: - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); 27002: } 27002: # 118 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_E1_asymp(_Tp __x) 27002: { 27002: _Tp __term = _Tp(1); 27002: _Tp __esum = _Tp(1); 27002: _Tp __osum = _Tp(0); 27002: const unsigned int __max_iter = 1000; 27002: for (unsigned int __i = 1; __i < __max_iter; ++__i) 27002: { 27002: _Tp __prev = __term; 27002: __term *= - __i / __x; 27002: if (std::abs(__term) > std::abs(__prev)) 27002: break; 27002: if (__term >= _Tp(0)) 27002: __esum += __term; 27002: else 27002: __osum += __term; 27002: } 27002: 27002: return std::exp(- __x) * (__esum + __osum) / __x; 27002: } 27002: # 155 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_En_series(unsigned int __n, _Tp __x) 27002: { 27002: const unsigned int __max_iter = 1000; 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: const int __nm1 = __n - 1; 27002: _Tp __ans = (__nm1 != 0 27002: ? _Tp(1) / __nm1 : -std::log(__x) 27002: - __numeric_constants<_Tp>::__gamma_e()); 27002: _Tp __fact = _Tp(1); 27002: for (int __i = 1; __i <= __max_iter; ++__i) 27002: { 27002: __fact *= -__x / _Tp(__i); 27002: _Tp __del; 27002: if ( __i != __nm1 ) 27002: __del = -__fact / _Tp(__i - __nm1); 27002: else 27002: { 27002: _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); 27002: for (int __ii = 1; __ii <= __nm1; ++__ii) 27002: __psi += _Tp(1) / _Tp(__ii); 27002: __del = __fact * (__psi - std::log(__x)); 27002: } 27002: __ans += __del; 27002: if (std::abs(__del) < __eps * std::abs(__ans)) 27002: return __ans; 27002: } 27002: std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") 27002: ); 27002: } 27002: # 201 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_En_cont_frac(unsigned int __n, _Tp __x) 27002: { 27002: const unsigned int __max_iter = 1000; 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: const _Tp __fp_min = std::numeric_limits<_Tp>::min(); 27002: const int __nm1 = __n - 1; 27002: _Tp __b = __x + _Tp(__n); 27002: _Tp __c = _Tp(1) / __fp_min; 27002: _Tp __d = _Tp(1) / __b; 27002: _Tp __h = __d; 27002: for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) 27002: { 27002: _Tp __a = -_Tp(__i * (__nm1 + __i)); 27002: __b += _Tp(2); 27002: __d = _Tp(1) / (__a * __d + __b); 27002: __c = __b + __a / __c; 27002: const _Tp __del = __c * __d; 27002: __h *= __del; 27002: if (std::abs(__del - _Tp(1)) < __eps) 27002: { 27002: const _Tp __ans = __h * std::exp(-__x); 27002: return __ans; 27002: } 27002: } 27002: std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") 27002: ); 27002: } 27002: # 246 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_En_recursion(unsigned int __n, _Tp __x) 27002: { 27002: _Tp __En; 27002: _Tp __E1 = __expint_E1(__x); 27002: if (__x < _Tp(__n)) 27002: { 27002: 27002: __En = __E1; 27002: for (unsigned int __j = 2; __j < __n; ++__j) 27002: __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); 27002: } 27002: else 27002: { 27002: 27002: __En = _Tp(1); 27002: const int __N = __n + 20; 27002: _Tp __save = _Tp(0); 27002: for (int __j = __N; __j > 0; --__j) 27002: { 27002: __En = (std::exp(-__x) - __j * __En) / __x; 27002: if (__j == __n) 27002: __save = __En; 27002: } 27002: _Tp __norm = __En / __E1; 27002: __En /= __norm; 27002: } 27002: 27002: return __En; 27002: } 27002: # 290 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_Ei_series(_Tp __x) 27002: { 27002: _Tp __term = _Tp(1); 27002: _Tp __sum = _Tp(0); 27002: const unsigned int __max_iter = 1000; 27002: for (unsigned int __i = 1; __i < __max_iter; ++__i) 27002: { 27002: __term *= __x / __i; 27002: __sum += __term / __i; 27002: if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) 27002: break; 27002: } 27002: 27002: return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); 27002: } 27002: # 321 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_Ei_asymp(_Tp __x) 27002: { 27002: _Tp __term = _Tp(1); 27002: _Tp __sum = _Tp(1); 27002: const unsigned int __max_iter = 1000; 27002: for (unsigned int __i = 1; __i < __max_iter; ++__i) 27002: { 27002: _Tp __prev = __term; 27002: __term *= __i / __x; 27002: if (__term < std::numeric_limits<_Tp>::epsilon()) 27002: break; 27002: if (__term >= __prev) 27002: break; 27002: __sum += __term; 27002: } 27002: 27002: return std::exp(__x) * __sum / __x; 27002: } 27002: # 354 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_Ei(_Tp __x) 27002: { 27002: if (__x < _Tp(0)) 27002: return -__expint_E1(-__x); 27002: else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) 27002: return __expint_Ei_series(__x); 27002: else 27002: return __expint_Ei_asymp(__x); 27002: } 27002: # 378 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_E1(_Tp __x) 27002: { 27002: if (__x < _Tp(0)) 27002: return -__expint_Ei(-__x); 27002: else if (__x < _Tp(1)) 27002: return __expint_E1_series(__x); 27002: else if (__x < _Tp(100)) 27002: return __expint_En_cont_frac(1, __x); 27002: else 27002: return __expint_E1_asymp(__x); 27002: } 27002: # 408 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_asymp(unsigned int __n, _Tp __x) 27002: { 27002: _Tp __term = _Tp(1); 27002: _Tp __sum = _Tp(1); 27002: for (unsigned int __i = 1; __i <= __n; ++__i) 27002: { 27002: _Tp __prev = __term; 27002: __term *= -(__n - __i + 1) / __x; 27002: if (std::abs(__term) > std::abs(__prev)) 27002: break; 27002: __sum += __term; 27002: } 27002: 27002: return std::exp(-__x) * __sum / __x; 27002: } 27002: # 442 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint_large_n(unsigned int __n, _Tp __x) 27002: { 27002: const _Tp __xpn = __x + __n; 27002: const _Tp __xpn2 = __xpn * __xpn; 27002: _Tp __term = _Tp(1); 27002: _Tp __sum = _Tp(1); 27002: for (unsigned int __i = 1; __i <= __n; ++__i) 27002: { 27002: _Tp __prev = __term; 27002: __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; 27002: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 27002: break; 27002: __sum += __term; 27002: } 27002: 27002: return std::exp(-__x) * __sum / __xpn; 27002: } 27002: # 476 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: _Tp 27002: __expint(unsigned int __n, _Tp __x) 27002: { 27002: 27002: if (__isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__n <= 1 && __x == _Tp(0)) 27002: return std::numeric_limits<_Tp>::infinity(); 27002: else 27002: { 27002: _Tp __E0 = std::exp(__x) / __x; 27002: if (__n == 0) 27002: return __E0; 27002: 27002: _Tp __E1 = __expint_E1(__x); 27002: if (__n == 1) 27002: return __E1; 27002: 27002: if (__x == _Tp(0)) 27002: return _Tp(1) / static_cast<_Tp>(__n - 1); 27002: 27002: _Tp __En = __expint_En_recursion(__n, __x); 27002: 27002: return __En; 27002: } 27002: } 27002: # 516 "/usr/include/c++/12/tr1/exp_integral.tcc" 3 27002: template 27002: inline _Tp 27002: __expint(_Tp __x) 27002: { 27002: if (__isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else 27002: return __expint_Ei(__x); 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 54 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: # 1 "/usr/include/c++/12/tr1/hypergeometric.tcc" 1 3 27002: # 44 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 60 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 27002: namespace __detail 27002: { 27002: # 83 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 27002: template 27002: _Tp 27002: __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) 27002: { 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: 27002: _Tp __term = _Tp(1); 27002: _Tp __Fac = _Tp(1); 27002: const unsigned int __max_iter = 100000; 27002: unsigned int __i; 27002: for (__i = 0; __i < __max_iter; ++__i) 27002: { 27002: __term *= (__a + _Tp(__i)) * __x 27002: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 27002: if (std::abs(__term) < __eps) 27002: { 27002: break; 27002: } 27002: __Fac += __term; 27002: } 27002: if (__i == __max_iter) 27002: std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") 27002: ); 27002: 27002: return __Fac; 27002: } 27002: # 120 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 27002: template 27002: _Tp 27002: __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) 27002: { 27002: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 27002: const int __nmax = 20000; 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: const _Tp __x = -__xin; 27002: const _Tp __x3 = __x * __x * __x; 27002: const _Tp __t0 = __a / __c; 27002: const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); 27002: const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); 27002: _Tp __F = _Tp(1); 27002: _Tp __prec; 27002: 27002: _Tp __Bnm3 = _Tp(1); 27002: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 27002: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 27002: 27002: _Tp __Anm3 = _Tp(1); 27002: _Tp __Anm2 = __Bnm2 - __t0 * __x; 27002: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 27002: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 27002: 27002: int __n = 3; 27002: while(1) 27002: { 27002: _Tp __npam1 = _Tp(__n - 1) + __a; 27002: _Tp __npcm1 = _Tp(__n - 1) + __c; 27002: _Tp __npam2 = _Tp(__n - 2) + __a; 27002: _Tp __npcm2 = _Tp(__n - 2) + __c; 27002: _Tp __tnm1 = _Tp(2 * __n - 1); 27002: _Tp __tnm3 = _Tp(2 * __n - 3); 27002: _Tp __tnm5 = _Tp(2 * __n - 5); 27002: _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); 27002: _Tp __F2 = (_Tp(__n) + __a) * __npam1 27002: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 27002: _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) 27002: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 27002: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 27002: _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) 27002: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 27002: 27002: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 27002: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 27002: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 27002: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 27002: _Tp __r = __An / __Bn; 27002: 27002: __prec = std::abs((__F - __r) / __F); 27002: __F = __r; 27002: 27002: if (__prec < __eps || __n > __nmax) 27002: break; 27002: 27002: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 27002: { 27002: __An /= __big; 27002: __Bn /= __big; 27002: __Anm1 /= __big; 27002: __Bnm1 /= __big; 27002: __Anm2 /= __big; 27002: __Bnm2 /= __big; 27002: __Anm3 /= __big; 27002: __Bnm3 /= __big; 27002: } 27002: else if (std::abs(__An) < _Tp(1) / __big 27002: || std::abs(__Bn) < _Tp(1) / __big) 27002: { 27002: __An *= __big; 27002: __Bn *= __big; 27002: __Anm1 *= __big; 27002: __Bnm1 *= __big; 27002: __Anm2 *= __big; 27002: __Bnm2 *= __big; 27002: __Anm3 *= __big; 27002: __Bnm3 *= __big; 27002: } 27002: 27002: ++__n; 27002: __Bnm3 = __Bnm2; 27002: __Bnm2 = __Bnm1; 27002: __Bnm1 = __Bn; 27002: __Anm3 = __Anm2; 27002: __Anm2 = __Anm1; 27002: __Anm1 = __An; 27002: } 27002: 27002: if (__n >= __nmax) 27002: std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") 27002: ); 27002: 27002: return __F; 27002: } 27002: # 227 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 27002: template 27002: _Tp 27002: __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) 27002: { 27002: 27002: const _Tp __c_nint = ::std::nearbyint(__c); 27002: 27002: 27002: 27002: if (__isnan(__a) || __isnan(__c) || __isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__c_nint == __c && __c_nint <= 0) 27002: return std::numeric_limits<_Tp>::infinity(); 27002: else if (__a == _Tp(0)) 27002: return _Tp(1); 27002: else if (__c == __a) 27002: return std::exp(__x); 27002: else if (__x < _Tp(0)) 27002: return __conf_hyperg_luke(__a, __c, __x); 27002: else 27002: return __conf_hyperg_series(__a, __c, __x); 27002: } 27002: # 271 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 27002: template 27002: _Tp 27002: __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 27002: { 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: 27002: _Tp __term = _Tp(1); 27002: _Tp __Fabc = _Tp(1); 27002: const unsigned int __max_iter = 100000; 27002: unsigned int __i; 27002: for (__i = 0; __i < __max_iter; ++__i) 27002: { 27002: __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x 27002: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 27002: if (std::abs(__term) < __eps) 27002: { 27002: break; 27002: } 27002: __Fabc += __term; 27002: } 27002: if (__i == __max_iter) 27002: std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") 27002: ); 27002: 27002: return __Fabc; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: _Tp 27002: __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) 27002: { 27002: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 27002: const int __nmax = 20000; 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: const _Tp __x = -__xin; 27002: const _Tp __x3 = __x * __x * __x; 27002: const _Tp __t0 = __a * __b / __c; 27002: const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); 27002: const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) 27002: / (_Tp(2) * (__c + _Tp(1))); 27002: 27002: _Tp __F = _Tp(1); 27002: 27002: _Tp __Bnm3 = _Tp(1); 27002: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 27002: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 27002: 27002: _Tp __Anm3 = _Tp(1); 27002: _Tp __Anm2 = __Bnm2 - __t0 * __x; 27002: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 27002: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 27002: 27002: int __n = 3; 27002: while (1) 27002: { 27002: const _Tp __npam1 = _Tp(__n - 1) + __a; 27002: const _Tp __npbm1 = _Tp(__n - 1) + __b; 27002: const _Tp __npcm1 = _Tp(__n - 1) + __c; 27002: const _Tp __npam2 = _Tp(__n - 2) + __a; 27002: const _Tp __npbm2 = _Tp(__n - 2) + __b; 27002: const _Tp __npcm2 = _Tp(__n - 2) + __c; 27002: const _Tp __tnm1 = _Tp(2 * __n - 1); 27002: const _Tp __tnm3 = _Tp(2 * __n - 3); 27002: const _Tp __tnm5 = _Tp(2 * __n - 5); 27002: const _Tp __n2 = __n * __n; 27002: const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n 27002: + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) 27002: / (_Tp(2) * __tnm3 * __npcm1); 27002: const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n 27002: + _Tp(2) - __a * __b) * __npam1 * __npbm1 27002: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 27002: const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 27002: * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) 27002: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 27002: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 27002: const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) 27002: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 27002: 27002: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 27002: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 27002: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 27002: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 27002: const _Tp __r = __An / __Bn; 27002: 27002: const _Tp __prec = std::abs((__F - __r) / __F); 27002: __F = __r; 27002: 27002: if (__prec < __eps || __n > __nmax) 27002: break; 27002: 27002: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 27002: { 27002: __An /= __big; 27002: __Bn /= __big; 27002: __Anm1 /= __big; 27002: __Bnm1 /= __big; 27002: __Anm2 /= __big; 27002: __Bnm2 /= __big; 27002: __Anm3 /= __big; 27002: __Bnm3 /= __big; 27002: } 27002: else if (std::abs(__An) < _Tp(1) / __big 27002: || std::abs(__Bn) < _Tp(1) / __big) 27002: { 27002: __An *= __big; 27002: __Bn *= __big; 27002: __Anm1 *= __big; 27002: __Bnm1 *= __big; 27002: __Anm2 *= __big; 27002: __Bnm2 *= __big; 27002: __Anm3 *= __big; 27002: __Bnm3 *= __big; 27002: } 27002: 27002: ++__n; 27002: __Bnm3 = __Bnm2; 27002: __Bnm2 = __Bnm1; 27002: __Bnm1 = __Bn; 27002: __Anm3 = __Anm2; 27002: __Anm2 = __Anm1; 27002: __Anm1 = __An; 27002: } 27002: 27002: if (__n >= __nmax) 27002: std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") 27002: ); 27002: 27002: return __F; 27002: } 27002: # 438 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 27002: template 27002: _Tp 27002: __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 27002: { 27002: const _Tp __d = __c - __a - __b; 27002: const int __intd = std::floor(__d + _Tp(0.5L)); 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: const _Tp __toler = _Tp(1000) * __eps; 27002: const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); 27002: const bool __d_integer = (std::abs(__d - __intd) < __toler); 27002: 27002: if (__d_integer) 27002: { 27002: const _Tp __ln_omx = std::log(_Tp(1) - __x); 27002: const _Tp __ad = std::abs(__d); 27002: _Tp __F1, __F2; 27002: 27002: _Tp __d1, __d2; 27002: if (__d >= _Tp(0)) 27002: { 27002: __d1 = __d; 27002: __d2 = _Tp(0); 27002: } 27002: else 27002: { 27002: __d1 = _Tp(0); 27002: __d2 = __d; 27002: } 27002: 27002: const _Tp __lng_c = __log_gamma(__c); 27002: 27002: 27002: if (__ad < __eps) 27002: { 27002: 27002: __F1 = _Tp(0); 27002: } 27002: else 27002: { 27002: 27002: bool __ok_d1 = true; 27002: _Tp __lng_ad, __lng_ad1, __lng_bd1; 27002: try 27002: { 27002: __lng_ad = __log_gamma(__ad); 27002: __lng_ad1 = __log_gamma(__a + __d1); 27002: __lng_bd1 = __log_gamma(__b + __d1); 27002: } 27002: catch(...) 27002: { 27002: __ok_d1 = false; 27002: } 27002: 27002: if (__ok_d1) 27002: { 27002: 27002: 27002: 27002: _Tp __sum1 = _Tp(1); 27002: _Tp __term = _Tp(1); 27002: _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx 27002: - __lng_ad1 - __lng_bd1; 27002: 27002: 27002: 27002: for (int __i = 1; __i < __ad; ++__i) 27002: { 27002: const int __j = __i - 1; 27002: __term *= (__a + __d2 + __j) * (__b + __d2 + __j) 27002: / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); 27002: __sum1 += __term; 27002: } 27002: 27002: if (__ln_pre1 > __log_max) 27002: std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") 27002: ); 27002: else 27002: __F1 = std::exp(__ln_pre1) * __sum1; 27002: } 27002: else 27002: { 27002: 27002: 27002: __F1 = _Tp(0); 27002: } 27002: } 27002: 27002: 27002: bool __ok_d2 = true; 27002: _Tp __lng_ad2, __lng_bd2; 27002: try 27002: { 27002: __lng_ad2 = __log_gamma(__a + __d2); 27002: __lng_bd2 = __log_gamma(__b + __d2); 27002: } 27002: catch(...) 27002: { 27002: __ok_d2 = false; 27002: } 27002: 27002: if (__ok_d2) 27002: { 27002: 27002: 27002: const int __maxiter = 2000; 27002: const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); 27002: const _Tp __psi_1pd = __psi(_Tp(1) + __ad); 27002: const _Tp __psi_apd1 = __psi(__a + __d1); 27002: const _Tp __psi_bpd1 = __psi(__b + __d1); 27002: 27002: _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 27002: - __psi_bpd1 - __ln_omx; 27002: _Tp __fact = _Tp(1); 27002: _Tp __sum2 = __psi_term; 27002: _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx 27002: - __lng_ad2 - __lng_bd2; 27002: 27002: 27002: int __j; 27002: for (__j = 1; __j < __maxiter; ++__j) 27002: { 27002: 27002: 27002: const _Tp __term1 = _Tp(1) / _Tp(__j) 27002: + _Tp(1) / (__ad + __j); 27002: const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) 27002: + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); 27002: __psi_term += __term1 - __term2; 27002: __fact *= (__a + __d1 + _Tp(__j - 1)) 27002: * (__b + __d1 + _Tp(__j - 1)) 27002: / ((__ad + __j) * __j) * (_Tp(1) - __x); 27002: const _Tp __delta = __fact * __psi_term; 27002: __sum2 += __delta; 27002: if (std::abs(__delta) < __eps * std::abs(__sum2)) 27002: break; 27002: } 27002: if (__j == __maxiter) 27002: std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") 27002: ); 27002: 27002: if (__sum2 == _Tp(0)) 27002: __F2 = _Tp(0); 27002: else 27002: __F2 = std::exp(__ln_pre2) * __sum2; 27002: } 27002: else 27002: { 27002: 27002: 27002: __F2 = _Tp(0); 27002: } 27002: 27002: const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); 27002: const _Tp __F = __F1 + __sgn_2 * __F2; 27002: 27002: return __F; 27002: } 27002: else 27002: { 27002: 27002: 27002: 27002: 27002: bool __ok1 = true; 27002: _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); 27002: _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); 27002: try 27002: { 27002: __sgn_g1ca = __log_gamma_sign(__c - __a); 27002: __ln_g1ca = __log_gamma(__c - __a); 27002: __sgn_g1cb = __log_gamma_sign(__c - __b); 27002: __ln_g1cb = __log_gamma(__c - __b); 27002: } 27002: catch(...) 27002: { 27002: __ok1 = false; 27002: } 27002: 27002: bool __ok2 = true; 27002: _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); 27002: _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); 27002: try 27002: { 27002: __sgn_g2a = __log_gamma_sign(__a); 27002: __ln_g2a = __log_gamma(__a); 27002: __sgn_g2b = __log_gamma_sign(__b); 27002: __ln_g2b = __log_gamma(__b); 27002: } 27002: catch(...) 27002: { 27002: __ok2 = false; 27002: } 27002: 27002: const _Tp __sgn_gc = __log_gamma_sign(__c); 27002: const _Tp __ln_gc = __log_gamma(__c); 27002: const _Tp __sgn_gd = __log_gamma_sign(__d); 27002: const _Tp __ln_gd = __log_gamma(__d); 27002: const _Tp __sgn_gmd = __log_gamma_sign(-__d); 27002: const _Tp __ln_gmd = __log_gamma(-__d); 27002: 27002: const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; 27002: const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; 27002: 27002: _Tp __pre1, __pre2; 27002: if (__ok1 && __ok2) 27002: { 27002: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 27002: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 27002: + __d * std::log(_Tp(1) - __x); 27002: if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) 27002: { 27002: __pre1 = std::exp(__ln_pre1); 27002: __pre2 = std::exp(__ln_pre2); 27002: __pre1 *= __sgn1; 27002: __pre2 *= __sgn2; 27002: } 27002: else 27002: { 27002: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 27002: ); 27002: } 27002: } 27002: else if (__ok1 && !__ok2) 27002: { 27002: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 27002: if (__ln_pre1 < __log_max) 27002: { 27002: __pre1 = std::exp(__ln_pre1); 27002: __pre1 *= __sgn1; 27002: __pre2 = _Tp(0); 27002: } 27002: else 27002: { 27002: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 27002: ); 27002: } 27002: } 27002: else if (!__ok1 && __ok2) 27002: { 27002: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 27002: + __d * std::log(_Tp(1) - __x); 27002: if (__ln_pre2 < __log_max) 27002: { 27002: __pre1 = _Tp(0); 27002: __pre2 = std::exp(__ln_pre2); 27002: __pre2 *= __sgn2; 27002: } 27002: else 27002: { 27002: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 27002: ); 27002: } 27002: } 27002: else 27002: { 27002: __pre1 = _Tp(0); 27002: __pre2 = _Tp(0); 27002: std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") 27002: ); 27002: } 27002: 27002: const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, 27002: _Tp(1) - __x); 27002: const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, 27002: _Tp(1) - __x); 27002: 27002: const _Tp __F = __pre1 * __F1 + __pre2 * __F2; 27002: 27002: return __F; 27002: } 27002: } 27002: # 728 "/usr/include/c++/12/tr1/hypergeometric.tcc" 3 27002: template 27002: _Tp 27002: __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 27002: { 27002: 27002: const _Tp __a_nint = ::std::nearbyint(__a); 27002: const _Tp __b_nint = ::std::nearbyint(__b); 27002: const _Tp __c_nint = ::std::nearbyint(__c); 27002: 27002: 27002: 27002: 27002: 27002: const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); 27002: if (std::abs(__x) >= _Tp(1)) 27002: std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") 27002: ); 27002: else if (__isnan(__a) || __isnan(__b) 27002: || __isnan(__c) || __isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__c_nint == __c && __c_nint <= _Tp(0)) 27002: return std::numeric_limits<_Tp>::infinity(); 27002: else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) 27002: return std::pow(_Tp(1) - __x, __c - __a - __b); 27002: else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) 27002: && __x >= _Tp(0) && __x < _Tp(0.995L)) 27002: return __hyperg_series(__a, __b, __c, __x); 27002: else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) 27002: { 27002: 27002: 27002: if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) 27002: return __hyperg_series(__a_nint, __b, __c, __x); 27002: else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) 27002: return __hyperg_series(__a, __b_nint, __c, __x); 27002: else if (__x < -_Tp(0.25L)) 27002: return __hyperg_luke(__a, __b, __c, __x); 27002: else if (__x < _Tp(0.5L)) 27002: return __hyperg_series(__a, __b, __c, __x); 27002: else 27002: if (std::abs(__c) > _Tp(10)) 27002: return __hyperg_series(__a, __b, __c, __x); 27002: else 27002: return __hyperg_reflect(__a, __b, __c, __x); 27002: } 27002: else 27002: return __hyperg_luke(__a, __b, __c, __x); 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 55 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: # 1 "/usr/include/c++/12/tr1/legendre_function.tcc" 1 3 27002: # 49 "/usr/include/c++/12/tr1/legendre_function.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 65 "/usr/include/c++/12/tr1/legendre_function.tcc" 3 27002: namespace __detail 27002: { 27002: # 80 "/usr/include/c++/12/tr1/legendre_function.tcc" 3 27002: template 27002: _Tp 27002: __poly_legendre_p(unsigned int __l, _Tp __x) 27002: { 27002: 27002: if (__isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__x == +_Tp(1)) 27002: return +_Tp(1); 27002: else if (__x == -_Tp(1)) 27002: return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); 27002: else 27002: { 27002: _Tp __p_lm2 = _Tp(1); 27002: if (__l == 0) 27002: return __p_lm2; 27002: 27002: _Tp __p_lm1 = __x; 27002: if (__l == 1) 27002: return __p_lm1; 27002: 27002: _Tp __p_l = 0; 27002: for (unsigned int __ll = 2; __ll <= __l; ++__ll) 27002: { 27002: 27002: 27002: __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 27002: - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); 27002: __p_lm2 = __p_lm1; 27002: __p_lm1 = __p_l; 27002: } 27002: 27002: return __p_l; 27002: } 27002: } 27002: # 136 "/usr/include/c++/12/tr1/legendre_function.tcc" 3 27002: template 27002: _Tp 27002: __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, 27002: _Tp __phase = _Tp(+1)) 27002: { 27002: 27002: if (__m > __l) 27002: return _Tp(0); 27002: else if (__isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__m == 0) 27002: return __poly_legendre_p(__l, __x); 27002: else 27002: { 27002: _Tp __p_mm = _Tp(1); 27002: if (__m > 0) 27002: { 27002: 27002: 27002: _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); 27002: _Tp __fact = _Tp(1); 27002: for (unsigned int __i = 1; __i <= __m; ++__i) 27002: { 27002: __p_mm *= __phase * __fact * __root; 27002: __fact += _Tp(2); 27002: } 27002: } 27002: if (__l == __m) 27002: return __p_mm; 27002: 27002: _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; 27002: if (__l == __m + 1) 27002: return __p_mp1m; 27002: 27002: _Tp __p_lm2m = __p_mm; 27002: _Tp __P_lm1m = __p_mp1m; 27002: _Tp __p_lm = _Tp(0); 27002: for (unsigned int __j = __m + 2; __j <= __l; ++__j) 27002: { 27002: __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m 27002: - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); 27002: __p_lm2m = __P_lm1m; 27002: __P_lm1m = __p_lm; 27002: } 27002: 27002: return __p_lm; 27002: } 27002: } 27002: # 214 "/usr/include/c++/12/tr1/legendre_function.tcc" 3 27002: template 27002: _Tp 27002: __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 27002: { 27002: if (__isnan(__theta)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: 27002: const _Tp __x = std::cos(__theta); 27002: 27002: if (__m > __l) 27002: return _Tp(0); 27002: else if (__m == 0) 27002: { 27002: _Tp __P = __poly_legendre_p(__l, __x); 27002: _Tp __fact = std::sqrt(_Tp(2 * __l + 1) 27002: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 27002: __P *= __fact; 27002: return __P; 27002: } 27002: else if (__x == _Tp(1) || __x == -_Tp(1)) 27002: { 27002: 27002: return _Tp(0); 27002: } 27002: else 27002: { 27002: 27002: 27002: 27002: 27002: 27002: const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); 27002: const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); 27002: 27002: const _Tp __lncirc = ::std::log1p(-__x * __x); 27002: 27002: 27002: 27002: 27002: 27002: const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) 27002: - ::std::lgamma(_Tp(__m)); 27002: 27002: 27002: 27002: 27002: const _Tp __lnpre_val = 27002: -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() 27002: + _Tp(0.5L) * (__lnpoch + __m * __lncirc); 27002: const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) 27002: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 27002: _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); 27002: _Tp __y_mp1m = __y_mp1m_factor * __y_mm; 27002: 27002: if (__l == __m) 27002: return __y_mm; 27002: else if (__l == __m + 1) 27002: return __y_mp1m; 27002: else 27002: { 27002: _Tp __y_lm = _Tp(0); 27002: 27002: 27002: for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) 27002: { 27002: const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); 27002: const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); 27002: const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) 27002: * _Tp(2 * __ll - 1)); 27002: const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) 27002: / _Tp(2 * __ll - 3)); 27002: __y_lm = (__x * __y_mp1m * __fact1 27002: - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); 27002: __y_mm = __y_mp1m; 27002: __y_mp1m = __y_lm; 27002: } 27002: 27002: return __y_lm; 27002: } 27002: } 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 56 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: # 1 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 1 3 27002: # 51 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 65 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 27002: namespace __detail 27002: { 27002: # 83 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 27002: template 27002: void 27002: __bessel_ik(_Tp __nu, _Tp __x, 27002: _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) 27002: { 27002: if (__x == _Tp(0)) 27002: { 27002: if (__nu == _Tp(0)) 27002: { 27002: __Inu = _Tp(1); 27002: __Ipnu = _Tp(0); 27002: } 27002: else if (__nu == _Tp(1)) 27002: { 27002: __Inu = _Tp(0); 27002: __Ipnu = _Tp(0.5L); 27002: } 27002: else 27002: { 27002: __Inu = _Tp(0); 27002: __Ipnu = _Tp(0); 27002: } 27002: __Knu = std::numeric_limits<_Tp>::infinity(); 27002: __Kpnu = -std::numeric_limits<_Tp>::infinity(); 27002: return; 27002: } 27002: 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); 27002: const int __max_iter = 15000; 27002: const _Tp __x_min = _Tp(2); 27002: 27002: const int __nl = static_cast(__nu + _Tp(0.5L)); 27002: 27002: const _Tp __mu = __nu - __nl; 27002: const _Tp __mu2 = __mu * __mu; 27002: const _Tp __xi = _Tp(1) / __x; 27002: const _Tp __xi2 = _Tp(2) * __xi; 27002: _Tp __h = __nu * __xi; 27002: if ( __h < __fp_min ) 27002: __h = __fp_min; 27002: _Tp __b = __xi2 * __nu; 27002: _Tp __d = _Tp(0); 27002: _Tp __c = __h; 27002: int __i; 27002: for ( __i = 1; __i <= __max_iter; ++__i ) 27002: { 27002: __b += __xi2; 27002: __d = _Tp(1) / (__b + __d); 27002: __c = __b + _Tp(1) / __c; 27002: const _Tp __del = __c * __d; 27002: __h *= __del; 27002: if (std::abs(__del - _Tp(1)) < __eps) 27002: break; 27002: } 27002: if (__i > __max_iter) 27002: std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") 27002: 27002: ); 27002: _Tp __Inul = __fp_min; 27002: _Tp __Ipnul = __h * __Inul; 27002: _Tp __Inul1 = __Inul; 27002: _Tp __Ipnu1 = __Ipnul; 27002: _Tp __fact = __nu * __xi; 27002: for (int __l = __nl; __l >= 1; --__l) 27002: { 27002: const _Tp __Inutemp = __fact * __Inul + __Ipnul; 27002: __fact -= __xi; 27002: __Ipnul = __fact * __Inutemp + __Inul; 27002: __Inul = __Inutemp; 27002: } 27002: _Tp __f = __Ipnul / __Inul; 27002: _Tp __Kmu, __Knu1; 27002: if (__x < __x_min) 27002: { 27002: const _Tp __x2 = __x / _Tp(2); 27002: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 27002: const _Tp __fact = (std::abs(__pimu) < __eps 27002: ? _Tp(1) : __pimu / std::sin(__pimu)); 27002: _Tp __d = -std::log(__x2); 27002: _Tp __e = __mu * __d; 27002: const _Tp __fact2 = (std::abs(__e) < __eps 27002: ? _Tp(1) : std::sinh(__e) / __e); 27002: _Tp __gam1, __gam2, __gampl, __gammi; 27002: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 27002: _Tp __ff = __fact 27002: * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 27002: _Tp __sum = __ff; 27002: __e = std::exp(__e); 27002: _Tp __p = __e / (_Tp(2) * __gampl); 27002: _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); 27002: _Tp __c = _Tp(1); 27002: __d = __x2 * __x2; 27002: _Tp __sum1 = __p; 27002: int __i; 27002: for (__i = 1; __i <= __max_iter; ++__i) 27002: { 27002: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 27002: __c *= __d / __i; 27002: __p /= __i - __mu; 27002: __q /= __i + __mu; 27002: const _Tp __del = __c * __ff; 27002: __sum += __del; 27002: const _Tp __del1 = __c * (__p - __i * __ff); 27002: __sum1 += __del1; 27002: if (std::abs(__del) < __eps * std::abs(__sum)) 27002: break; 27002: } 27002: if (__i > __max_iter) 27002: std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") 27002: ); 27002: __Kmu = __sum; 27002: __Knu1 = __sum1 * __xi2; 27002: } 27002: else 27002: { 27002: _Tp __b = _Tp(2) * (_Tp(1) + __x); 27002: _Tp __d = _Tp(1) / __b; 27002: _Tp __delh = __d; 27002: _Tp __h = __delh; 27002: _Tp __q1 = _Tp(0); 27002: _Tp __q2 = _Tp(1); 27002: _Tp __a1 = _Tp(0.25L) - __mu2; 27002: _Tp __q = __c = __a1; 27002: _Tp __a = -__a1; 27002: _Tp __s = _Tp(1) + __q * __delh; 27002: int __i; 27002: for (__i = 2; __i <= __max_iter; ++__i) 27002: { 27002: __a -= 2 * (__i - 1); 27002: __c = -__a * __c / __i; 27002: const _Tp __qnew = (__q1 - __b * __q2) / __a; 27002: __q1 = __q2; 27002: __q2 = __qnew; 27002: __q += __c * __qnew; 27002: __b += _Tp(2); 27002: __d = _Tp(1) / (__b + __a * __d); 27002: __delh = (__b * __d - _Tp(1)) * __delh; 27002: __h += __delh; 27002: const _Tp __dels = __q * __delh; 27002: __s += __dels; 27002: if ( std::abs(__dels / __s) < __eps ) 27002: break; 27002: } 27002: if (__i > __max_iter) 27002: std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") 27002: ); 27002: __h = __a1 * __h; 27002: __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) 27002: * std::exp(-__x) / __s; 27002: __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; 27002: } 27002: 27002: _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; 27002: _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); 27002: __Inu = __Inumu * __Inul1 / __Inul; 27002: __Ipnu = __Inumu * __Ipnu1 / __Inul; 27002: for ( __i = 1; __i <= __nl; ++__i ) 27002: { 27002: const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; 27002: __Kmu = __Knu1; 27002: __Knu1 = __Knutemp; 27002: } 27002: __Knu = __Kmu; 27002: __Kpnu = __nu * __xi * __Kmu - __Knu1; 27002: 27002: return; 27002: } 27002: # 267 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 27002: template 27002: _Tp 27002: __cyl_bessel_i(_Tp __nu, _Tp __x) 27002: { 27002: if (__nu < _Tp(0) || __x < _Tp(0)) 27002: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") 27002: ); 27002: else if (__isnan(__nu) || __isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 27002: return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); 27002: else 27002: { 27002: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 27002: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 27002: return __I_nu; 27002: } 27002: } 27002: # 303 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 27002: template 27002: _Tp 27002: __cyl_bessel_k(_Tp __nu, _Tp __x) 27002: { 27002: if (__nu < _Tp(0) || __x < _Tp(0)) 27002: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") 27002: ); 27002: else if (__isnan(__nu) || __isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else 27002: { 27002: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 27002: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 27002: return __K_nu; 27002: } 27002: } 27002: # 337 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 27002: template 27002: void 27002: __sph_bessel_ik(unsigned int __n, _Tp __x, 27002: _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) 27002: { 27002: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 27002: 27002: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 27002: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 27002: 27002: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 27002: / std::sqrt(__x); 27002: 27002: __i_n = __factor * __I_nu; 27002: __k_n = __factor * __K_nu; 27002: __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); 27002: __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); 27002: 27002: return; 27002: } 27002: # 373 "/usr/include/c++/12/tr1/modified_bessel_func.tcc" 3 27002: template 27002: void 27002: __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) 27002: { 27002: const _Tp __absx = std::abs(__x); 27002: const _Tp __rootx = std::sqrt(__absx); 27002: const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); 27002: const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); 27002: 27002: if (__isnan(__x)) 27002: __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__z == _S_inf) 27002: { 27002: __Aip = __Ai = _Tp(0); 27002: __Bip = __Bi = _S_inf; 27002: } 27002: else if (__z == -_S_inf) 27002: __Bip = __Aip = __Bi = __Ai = _Tp(0); 27002: else if (__x > _Tp(0)) 27002: { 27002: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 27002: 27002: __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 27002: __Ai = __rootx * __K_nu 27002: / (__numeric_constants<_Tp>::__sqrt3() 27002: * __numeric_constants<_Tp>::__pi()); 27002: __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() 27002: + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); 27002: 27002: __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 27002: __Aip = -__x * __K_nu 27002: / (__numeric_constants<_Tp>::__sqrt3() 27002: * __numeric_constants<_Tp>::__pi()); 27002: __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() 27002: + _Tp(2) * __I_nu 27002: / __numeric_constants<_Tp>::__sqrt3()); 27002: } 27002: else if (__x < _Tp(0)) 27002: { 27002: _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; 27002: 27002: __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 27002: __Ai = __rootx * (__J_nu 27002: - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 27002: __Bi = -__rootx * (__N_nu 27002: + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 27002: 27002: __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 27002: __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() 27002: + __J_nu) / _Tp(2); 27002: __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() 27002: - __N_nu) / _Tp(2); 27002: } 27002: else 27002: { 27002: 27002: 27002: 27002: __Ai = _Tp(0.35502805388781723926L); 27002: __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); 27002: 27002: 27002: 27002: 27002: __Aip = -_Tp(0.25881940379280679840L); 27002: __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); 27002: } 27002: 27002: return; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 57 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: # 1 "/usr/include/c++/12/tr1/poly_hermite.tcc" 1 3 27002: # 42 "/usr/include/c++/12/tr1/poly_hermite.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 56 "/usr/include/c++/12/tr1/poly_hermite.tcc" 3 27002: namespace __detail 27002: { 27002: # 72 "/usr/include/c++/12/tr1/poly_hermite.tcc" 3 27002: template 27002: _Tp 27002: __poly_hermite_recursion(unsigned int __n, _Tp __x) 27002: { 27002: 27002: _Tp __H_0 = 1; 27002: if (__n == 0) 27002: return __H_0; 27002: 27002: 27002: _Tp __H_1 = 2 * __x; 27002: if (__n == 1) 27002: return __H_1; 27002: 27002: 27002: _Tp __H_n, __H_nm1, __H_nm2; 27002: unsigned int __i; 27002: for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) 27002: { 27002: __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); 27002: __H_nm2 = __H_nm1; 27002: __H_nm1 = __H_n; 27002: } 27002: 27002: return __H_n; 27002: } 27002: # 114 "/usr/include/c++/12/tr1/poly_hermite.tcc" 3 27002: template 27002: inline _Tp 27002: __poly_hermite(unsigned int __n, _Tp __x) 27002: { 27002: if (__isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else 27002: return __poly_hermite_recursion(__n, __x); 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 58 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: # 1 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 1 3 27002: # 44 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 60 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 27002: namespace __detail 27002: { 27002: # 75 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 27002: template 27002: _Tp 27002: __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) 27002: { 27002: const _Tp __a = -_Tp(__n); 27002: const _Tp __b = _Tp(__alpha1) + _Tp(1); 27002: const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; 27002: const _Tp __cos2th = __x / __eta; 27002: const _Tp __sin2th = _Tp(1) - __cos2th; 27002: const _Tp __th = std::acos(std::sqrt(__cos2th)); 27002: const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() 27002: * __numeric_constants<_Tp>::__pi_2() 27002: * __eta * __eta * __cos2th * __sin2th; 27002: 27002: 27002: const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); 27002: const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); 27002: 27002: 27002: 27002: 27002: 27002: _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) 27002: * std::log(_Tp(0.25L) * __x * __eta); 27002: _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); 27002: _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x 27002: + __pre_term1 - __pre_term2; 27002: _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); 27002: _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta 27002: * (_Tp(2) * __th 27002: - std::sin(_Tp(2) * __th)) 27002: + __numeric_constants<_Tp>::__pi_4()); 27002: _Tp __ser = __ser_term1 + __ser_term2; 27002: 27002: return std::exp(__lnpre) * __ser; 27002: } 27002: # 129 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 27002: template 27002: _Tp 27002: __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) 27002: { 27002: const _Tp __b = _Tp(__alpha1) + _Tp(1); 27002: const _Tp __mx = -__x; 27002: const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) 27002: : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); 27002: 27002: _Tp __tc = _Tp(1); 27002: const _Tp __ax = std::abs(__x); 27002: for (unsigned int __k = 1; __k <= __n; ++__k) 27002: __tc *= (__ax / __k); 27002: 27002: _Tp __term = __tc * __tc_sgn; 27002: _Tp __sum = __term; 27002: for (int __k = int(__n) - 1; __k >= 0; --__k) 27002: { 27002: __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) 27002: * _Tp(__k + 1) / __mx; 27002: __sum += __term; 27002: } 27002: 27002: return __sum; 27002: } 27002: # 185 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 27002: template 27002: _Tp 27002: __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) 27002: { 27002: 27002: _Tp __l_0 = _Tp(1); 27002: if (__n == 0) 27002: return __l_0; 27002: 27002: 27002: _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); 27002: if (__n == 1) 27002: return __l_1; 27002: 27002: 27002: _Tp __l_n2 = __l_0; 27002: _Tp __l_n1 = __l_1; 27002: _Tp __l_n = _Tp(0); 27002: for (unsigned int __nn = 2; __nn <= __n; ++__nn) 27002: { 27002: __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) 27002: * __l_n1 / _Tp(__nn) 27002: - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); 27002: __l_n2 = __l_n1; 27002: __l_n1 = __l_n; 27002: } 27002: 27002: return __l_n; 27002: } 27002: # 244 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 27002: template 27002: _Tp 27002: __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) 27002: { 27002: if (__x < _Tp(0)) 27002: std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") 27002: ); 27002: 27002: else if (__isnan(__x)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__n == 0) 27002: return _Tp(1); 27002: else if (__n == 1) 27002: return _Tp(1) + _Tp(__alpha1) - __x; 27002: else if (__x == _Tp(0)) 27002: { 27002: _Tp __prod = _Tp(__alpha1) + _Tp(1); 27002: for (unsigned int __k = 2; __k <= __n; ++__k) 27002: __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); 27002: return __prod; 27002: } 27002: else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) 27002: && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) 27002: return __poly_laguerre_large_n(__n, __alpha1, __x); 27002: else if (_Tp(__alpha1) >= _Tp(0) 27002: || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) 27002: return __poly_laguerre_recursion(__n, __alpha1, __x); 27002: else 27002: return __poly_laguerre_hyperg(__n, __alpha1, __x); 27002: } 27002: # 296 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 27002: template 27002: inline _Tp 27002: __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 27002: { return __poly_laguerre(__n, __m, __x); } 27002: # 316 "/usr/include/c++/12/tr1/poly_laguerre.tcc" 3 27002: template 27002: inline _Tp 27002: __laguerre(unsigned int __n, _Tp __x) 27002: { return __poly_laguerre(__n, 0, __x); } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 59 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: # 1 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 1 3 27002: # 47 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 63 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 27002: namespace __detail 27002: { 27002: # 78 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 27002: template 27002: _Tp 27002: __riemann_zeta_sum(_Tp __s) 27002: { 27002: 27002: if (__s < _Tp(1)) 27002: std::__throw_domain_error(("Bad argument in zeta sum.")); 27002: 27002: const unsigned int max_iter = 10000; 27002: _Tp __zeta = _Tp(0); 27002: for (unsigned int __k = 1; __k < max_iter; ++__k) 27002: { 27002: _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); 27002: if (__term < std::numeric_limits<_Tp>::epsilon()) 27002: { 27002: break; 27002: } 27002: __zeta += __term; 27002: } 27002: 27002: return __zeta; 27002: } 27002: # 115 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 27002: template 27002: _Tp 27002: __riemann_zeta_alt(_Tp __s) 27002: { 27002: _Tp __sgn = _Tp(1); 27002: _Tp __zeta = _Tp(0); 27002: for (unsigned int __i = 1; __i < 10000000; ++__i) 27002: { 27002: _Tp __term = __sgn / std::pow(__i, __s); 27002: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 27002: break; 27002: __zeta += __term; 27002: __sgn *= _Tp(-1); 27002: } 27002: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 27002: 27002: return __zeta; 27002: } 27002: # 157 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 27002: template 27002: _Tp 27002: __riemann_zeta_glob(_Tp __s) 27002: { 27002: _Tp __zeta = _Tp(0); 27002: 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: 27002: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 27002: * std::log(_Tp(10)) - _Tp(1); 27002: 27002: 27002: 27002: if (__s < _Tp(0)) 27002: { 27002: 27002: if (::std::fmod(__s,_Tp(2)) == _Tp(0)) 27002: return _Tp(0); 27002: else 27002: 27002: { 27002: _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); 27002: __zeta *= std::pow(_Tp(2) 27002: * __numeric_constants<_Tp>::__pi(), __s) 27002: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 27002: 27002: * std::exp(::std::lgamma(_Tp(1) - __s)) 27002: 27002: 27002: 27002: / __numeric_constants<_Tp>::__pi(); 27002: return __zeta; 27002: } 27002: } 27002: 27002: _Tp __num = _Tp(0.5L); 27002: const unsigned int __maxit = 10000; 27002: for (unsigned int __i = 0; __i < __maxit; ++__i) 27002: { 27002: bool __punt = false; 27002: _Tp __sgn = _Tp(1); 27002: _Tp __term = _Tp(0); 27002: for (unsigned int __j = 0; __j <= __i; ++__j) 27002: { 27002: 27002: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 27002: - ::std::lgamma(_Tp(1 + __j)) 27002: - ::std::lgamma(_Tp(1 + __i - __j)); 27002: 27002: 27002: 27002: 27002: 27002: if (__bincoeff > __max_bincoeff) 27002: { 27002: 27002: __punt = true; 27002: break; 27002: } 27002: __bincoeff = std::exp(__bincoeff); 27002: __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); 27002: __sgn *= _Tp(-1); 27002: } 27002: if (__punt) 27002: break; 27002: __term *= __num; 27002: __zeta += __term; 27002: if (std::abs(__term/__zeta) < __eps) 27002: break; 27002: __num *= _Tp(0.5L); 27002: } 27002: 27002: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 27002: 27002: return __zeta; 27002: } 27002: # 252 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 27002: template 27002: _Tp 27002: __riemann_zeta_product(_Tp __s) 27002: { 27002: static const _Tp __prime[] = { 27002: _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), 27002: _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), 27002: _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), 27002: _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) 27002: }; 27002: static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); 27002: 27002: _Tp __zeta = _Tp(1); 27002: for (unsigned int __i = 0; __i < __num_primes; ++__i) 27002: { 27002: const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); 27002: __zeta *= __fact; 27002: if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) 27002: break; 27002: } 27002: 27002: __zeta = _Tp(1) / __zeta; 27002: 27002: return __zeta; 27002: } 27002: # 293 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 27002: template 27002: _Tp 27002: __riemann_zeta(_Tp __s) 27002: { 27002: if (__isnan(__s)) 27002: return std::numeric_limits<_Tp>::quiet_NaN(); 27002: else if (__s == _Tp(1)) 27002: return std::numeric_limits<_Tp>::infinity(); 27002: else if (__s < -_Tp(19)) 27002: { 27002: _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); 27002: __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) 27002: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 27002: 27002: * std::exp(::std::lgamma(_Tp(1) - __s)) 27002: 27002: 27002: 27002: / __numeric_constants<_Tp>::__pi(); 27002: return __zeta; 27002: } 27002: else if (__s < _Tp(20)) 27002: { 27002: 27002: bool __glob = true; 27002: if (__glob) 27002: return __riemann_zeta_glob(__s); 27002: else 27002: { 27002: if (__s > _Tp(1)) 27002: return __riemann_zeta_sum(__s); 27002: else 27002: { 27002: _Tp __zeta = std::pow(_Tp(2) 27002: * __numeric_constants<_Tp>::__pi(), __s) 27002: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 27002: 27002: * ::std::tgamma(_Tp(1) - __s) 27002: 27002: 27002: 27002: * __riemann_zeta_sum(_Tp(1) - __s); 27002: return __zeta; 27002: } 27002: } 27002: } 27002: else 27002: return __riemann_zeta_product(__s); 27002: } 27002: # 365 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 27002: template 27002: _Tp 27002: __hurwitz_zeta_glob(_Tp __a, _Tp __s) 27002: { 27002: _Tp __zeta = _Tp(0); 27002: 27002: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 27002: 27002: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 27002: * std::log(_Tp(10)) - _Tp(1); 27002: 27002: const unsigned int __maxit = 10000; 27002: for (unsigned int __i = 0; __i < __maxit; ++__i) 27002: { 27002: bool __punt = false; 27002: _Tp __sgn = _Tp(1); 27002: _Tp __term = _Tp(0); 27002: for (unsigned int __j = 0; __j <= __i; ++__j) 27002: { 27002: 27002: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 27002: - ::std::lgamma(_Tp(1 + __j)) 27002: - ::std::lgamma(_Tp(1 + __i - __j)); 27002: 27002: 27002: 27002: 27002: 27002: if (__bincoeff > __max_bincoeff) 27002: { 27002: 27002: __punt = true; 27002: break; 27002: } 27002: __bincoeff = std::exp(__bincoeff); 27002: __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); 27002: __sgn *= _Tp(-1); 27002: } 27002: if (__punt) 27002: break; 27002: __term /= _Tp(__i + 1); 27002: if (std::abs(__term / __zeta) < __eps) 27002: break; 27002: __zeta += __term; 27002: } 27002: 27002: __zeta /= __s - _Tp(1); 27002: 27002: return __zeta; 27002: } 27002: # 430 "/usr/include/c++/12/tr1/riemann_zeta.tcc" 3 27002: template 27002: inline _Tp 27002: __hurwitz_zeta(_Tp __a, _Tp __s) 27002: { return __hurwitz_zeta_glob(__a, __s); } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 60 "/usr/include/c++/12/bits/specfun.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 205 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: assoc_laguerref(unsigned int __n, unsigned int __m, float __x) 27002: { return __detail::__assoc_laguerre(__n, __m, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) 27002: { return __detail::__assoc_laguerre(__n, __m, __x); } 27002: # 250 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__assoc_laguerre<__type>(__n, __m, __x); 27002: } 27002: # 266 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: assoc_legendref(unsigned int __l, unsigned int __m, float __x) 27002: { return __detail::__assoc_legendre_p(__l, __m, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) 27002: { return __detail::__assoc_legendre_p(__l, __m, __x); } 27002: # 296 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__assoc_legendre_p<__type>(__l, __m, __x); 27002: } 27002: # 311 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: betaf(float __a, float __b) 27002: { return __detail::__beta(__a, __b); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: betal(long double __a, long double __b) 27002: { return __detail::__beta(__a, __b); } 27002: # 341 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type 27002: beta(_Tpa __a, _Tpb __b) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; 27002: return __detail::__beta<__type>(__a, __b); 27002: } 27002: # 357 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: comp_ellint_1f(float __k) 27002: { return __detail::__comp_ellint_1(__k); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: comp_ellint_1l(long double __k) 27002: { return __detail::__comp_ellint_1(__k); } 27002: # 389 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: comp_ellint_1(_Tp __k) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__comp_ellint_1<__type>(__k); 27002: } 27002: # 405 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: comp_ellint_2f(float __k) 27002: { return __detail::__comp_ellint_2(__k); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: comp_ellint_2l(long double __k) 27002: { return __detail::__comp_ellint_2(__k); } 27002: # 436 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: comp_ellint_2(_Tp __k) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__comp_ellint_2<__type>(__k); 27002: } 27002: # 452 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: comp_ellint_3f(float __k, float __nu) 27002: { return __detail::__comp_ellint_3(__k, __nu); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: comp_ellint_3l(long double __k, long double __nu) 27002: { return __detail::__comp_ellint_3(__k, __nu); } 27002: # 487 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type 27002: comp_ellint_3(_Tp __k, _Tpn __nu) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; 27002: return __detail::__comp_ellint_3<__type>(__k, __nu); 27002: } 27002: # 503 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: cyl_bessel_if(float __nu, float __x) 27002: { return __detail::__cyl_bessel_i(__nu, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: cyl_bessel_il(long double __nu, long double __x) 27002: { return __detail::__cyl_bessel_i(__nu, __x); } 27002: # 533 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 27002: cyl_bessel_i(_Tpnu __nu, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 27002: return __detail::__cyl_bessel_i<__type>(__nu, __x); 27002: } 27002: # 549 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: cyl_bessel_jf(float __nu, float __x) 27002: { return __detail::__cyl_bessel_j(__nu, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: cyl_bessel_jl(long double __nu, long double __x) 27002: { return __detail::__cyl_bessel_j(__nu, __x); } 27002: # 579 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 27002: cyl_bessel_j(_Tpnu __nu, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 27002: return __detail::__cyl_bessel_j<__type>(__nu, __x); 27002: } 27002: # 595 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: cyl_bessel_kf(float __nu, float __x) 27002: { return __detail::__cyl_bessel_k(__nu, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: cyl_bessel_kl(long double __nu, long double __x) 27002: { return __detail::__cyl_bessel_k(__nu, __x); } 27002: # 631 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 27002: cyl_bessel_k(_Tpnu __nu, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 27002: return __detail::__cyl_bessel_k<__type>(__nu, __x); 27002: } 27002: # 647 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: cyl_neumannf(float __nu, float __x) 27002: { return __detail::__cyl_neumann_n(__nu, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: cyl_neumannl(long double __nu, long double __x) 27002: { return __detail::__cyl_neumann_n(__nu, __x); } 27002: # 679 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 27002: cyl_neumann(_Tpnu __nu, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 27002: return __detail::__cyl_neumann_n<__type>(__nu, __x); 27002: } 27002: # 695 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: ellint_1f(float __k, float __phi) 27002: { return __detail::__ellint_1(__k, __phi); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: ellint_1l(long double __k, long double __phi) 27002: { return __detail::__ellint_1(__k, __phi); } 27002: # 727 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 27002: ellint_1(_Tp __k, _Tpp __phi) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 27002: return __detail::__ellint_1<__type>(__k, __phi); 27002: } 27002: # 743 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: ellint_2f(float __k, float __phi) 27002: { return __detail::__ellint_2(__k, __phi); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: ellint_2l(long double __k, long double __phi) 27002: { return __detail::__ellint_2(__k, __phi); } 27002: # 775 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 27002: ellint_2(_Tp __k, _Tpp __phi) 27002: { 27002: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 27002: return __detail::__ellint_2<__type>(__k, __phi); 27002: } 27002: # 791 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: ellint_3f(float __k, float __nu, float __phi) 27002: { return __detail::__ellint_3(__k, __nu, __phi); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: ellint_3l(long double __k, long double __nu, long double __phi) 27002: { return __detail::__ellint_3(__k, __nu, __phi); } 27002: # 828 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type 27002: ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) 27002: { 27002: typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; 27002: return __detail::__ellint_3<__type>(__k, __nu, __phi); 27002: } 27002: # 843 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: expintf(float __x) 27002: { return __detail::__expint(__x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: expintl(long double __x) 27002: { return __detail::__expint(__x); } 27002: # 868 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: expint(_Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__expint<__type>(__x); 27002: } 27002: # 884 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: hermitef(unsigned int __n, float __x) 27002: { return __detail::__poly_hermite(__n, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: hermitel(unsigned int __n, long double __x) 27002: { return __detail::__poly_hermite(__n, __x); } 27002: # 916 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: hermite(unsigned int __n, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__poly_hermite<__type>(__n, __x); 27002: } 27002: # 932 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: laguerref(unsigned int __n, float __x) 27002: { return __detail::__laguerre(__n, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: laguerrel(unsigned int __n, long double __x) 27002: { return __detail::__laguerre(__n, __x); } 27002: # 960 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: laguerre(unsigned int __n, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__laguerre<__type>(__n, __x); 27002: } 27002: # 976 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: legendref(unsigned int __l, float __x) 27002: { return __detail::__poly_legendre_p(__l, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: legendrel(unsigned int __l, long double __x) 27002: { return __detail::__poly_legendre_p(__l, __x); } 27002: # 1005 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: legendre(unsigned int __l, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__poly_legendre_p<__type>(__l, __x); 27002: } 27002: # 1021 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: riemann_zetaf(float __s) 27002: { return __detail::__riemann_zeta(__s); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: riemann_zetal(long double __s) 27002: { return __detail::__riemann_zeta(__s); } 27002: # 1056 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: riemann_zeta(_Tp __s) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__riemann_zeta<__type>(__s); 27002: } 27002: # 1072 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: sph_besself(unsigned int __n, float __x) 27002: { return __detail::__sph_bessel(__n, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: sph_bessell(unsigned int __n, long double __x) 27002: { return __detail::__sph_bessel(__n, __x); } 27002: # 1100 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: sph_bessel(unsigned int __n, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__sph_bessel<__type>(__n, __x); 27002: } 27002: # 1116 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: sph_legendref(unsigned int __l, unsigned int __m, float __theta) 27002: { return __detail::__sph_legendre(__l, __m, __theta); } 27002: # 1127 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline long double 27002: sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) 27002: { return __detail::__sph_legendre(__l, __m, __theta); } 27002: # 1147 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__sph_legendre<__type>(__l, __m, __theta); 27002: } 27002: # 1163 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: sph_neumannf(unsigned int __n, float __x) 27002: { return __detail::__sph_neumann(__n, __x); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline long double 27002: sph_neumannl(unsigned int __n, long double __x) 27002: { return __detail::__sph_neumann(__n, __x); } 27002: # 1191 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: sph_neumann(unsigned int __n, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: return __detail::__sph_neumann<__type>(__n, __x); 27002: } 27002: 27002: 27002: 27002: 27002: } 27002: 27002: 27002: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 1218 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: airy_aif(float __x) 27002: { 27002: float __Ai, __Bi, __Aip, __Bip; 27002: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 27002: return __Ai; 27002: } 27002: 27002: 27002: 27002: 27002: inline long double 27002: airy_ail(long double __x) 27002: { 27002: long double __Ai, __Bi, __Aip, __Bip; 27002: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 27002: return __Ai; 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: airy_ai(_Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: __type __Ai, __Bi, __Aip, __Bip; 27002: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 27002: return __Ai; 27002: } 27002: 27002: 27002: 27002: 27002: inline float 27002: airy_bif(float __x) 27002: { 27002: float __Ai, __Bi, __Aip, __Bip; 27002: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 27002: return __Bi; 27002: } 27002: 27002: 27002: 27002: 27002: inline long double 27002: airy_bil(long double __x) 27002: { 27002: long double __Ai, __Bi, __Aip, __Bip; 27002: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 27002: return __Bi; 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: inline typename __gnu_cxx::__promote<_Tp>::__type 27002: airy_bi(_Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 27002: __type __Ai, __Bi, __Aip, __Bip; 27002: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 27002: return __Bi; 27002: } 27002: # 1294 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: conf_hypergf(float __a, float __c, float __x) 27002: { return std::__detail::__conf_hyperg(__a, __c, __x); } 27002: # 1305 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline long double 27002: conf_hypergl(long double __a, long double __c, long double __x) 27002: { return std::__detail::__conf_hyperg(__a, __c, __x); } 27002: # 1325 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type 27002: conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; 27002: return std::__detail::__conf_hyperg<__type>(__a, __c, __x); 27002: } 27002: # 1342 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline float 27002: hypergf(float __a, float __b, float __c, float __x) 27002: { return std::__detail::__hyperg(__a, __b, __c, __x); } 27002: # 1353 "/usr/include/c++/12/bits/specfun.h" 3 27002: inline long double 27002: hypergl(long double __a, long double __b, long double __c, long double __x) 27002: { return std::__detail::__hyperg(__a, __b, __c, __x); } 27002: # 1374 "/usr/include/c++/12/bits/specfun.h" 3 27002: template 27002: inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type 27002: hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) 27002: { 27002: typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> 27002: ::__type __type; 27002: return std::__detail::__hyperg<__type>(__a, __b, __c, __x); 27002: } 27002: 27002: 27002: 27002: } 27002: 27002: 27002: #pragma GCC visibility pop 27002: # 1936 "/usr/include/c++/12/cmath" 2 3 27002: 27002: 27002: } 27002: # 39 "/usr/include/c++/12/random" 2 3 27002: # 1 "/usr/include/c++/12/cstdlib" 1 3 27002: # 39 "/usr/include/c++/12/cstdlib" 3 27002: 27002: # 40 "/usr/include/c++/12/cstdlib" 3 27002: # 40 "/usr/include/c++/12/random" 2 3 27002: # 49 "/usr/include/c++/12/random" 3 27002: # 1 "/usr/include/c++/12/bits/random.h" 1 3 27002: # 37 "/usr/include/c++/12/bits/random.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 58 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: _RealType 27002: generate_canonical(_UniformRandomNumberGenerator& __g); 27002: 27002: 27002: 27002: namespace __detail 27002: { 27002: template 27002: (std::numeric_limits<_UIntType>::digits)> 27002: struct _Shift 27002: { static constexpr _UIntType __value = 0; }; 27002: 27002: template 27002: struct _Shift<_UIntType, __w, true> 27002: { static constexpr _UIntType __value = _UIntType(1) << __w; }; 27002: 27002: template 27002: struct _Select_uint_least_t 27002: { 27002: static_assert(__which < 0, 27002: "sorry, would be too much trouble for a slow result"); 27002: }; 27002: 27002: template 27002: struct _Select_uint_least_t<__s, 4> 27002: { using type = unsigned int; }; 27002: 27002: template 27002: struct _Select_uint_least_t<__s, 3> 27002: { using type = unsigned long; }; 27002: 27002: template 27002: struct _Select_uint_least_t<__s, 2> 27002: { using type = unsigned long long; }; 27002: # 108 "/usr/include/c++/12/bits/random.h" 3 27002: template= __m - 1), 27002: bool __schrage_ok = __m % __a < __m / __a> 27002: struct _Mod 27002: { 27002: static _Tp 27002: __calc(_Tp __x) 27002: { 27002: using _Tp2 27002: = typename _Select_uint_least_t::type; 27002: return static_cast<_Tp>((_Tp2(__a) * __x + __c) % __m); 27002: } 27002: }; 27002: 27002: 27002: template 27002: struct _Mod<_Tp, __m, __a, __c, false, true> 27002: { 27002: static _Tp 27002: __calc(_Tp __x); 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: struct _Mod<_Tp, __m, __a, __c, true, __s> 27002: { 27002: static _Tp 27002: __calc(_Tp __x) 27002: { 27002: _Tp __res = __a * __x + __c; 27002: if (__m) 27002: __res %= __m; 27002: return __res; 27002: } 27002: }; 27002: 27002: template 27002: inline _Tp 27002: __mod(_Tp __x) 27002: { 27002: if constexpr (__a == 0) 27002: return __c; 27002: else 27002: { 27002: 27002: constexpr _Tp __a1 = __a ? __a : 1; 27002: return _Mod<_Tp, __m, __a1, __c>::__calc(__x); 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct _Adaptor 27002: { 27002: static_assert(std::is_floating_point<_DInputType>::value, 27002: "template argument must be a floating point type"); 27002: 27002: public: 27002: _Adaptor(_Engine& __g) 27002: : _M_g(__g) { } 27002: 27002: _DInputType 27002: min() const 27002: { return _DInputType(0); } 27002: 27002: _DInputType 27002: max() const 27002: { return _DInputType(1); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: _DInputType 27002: operator()() 27002: { 27002: return std::generate_canonical<_DInputType, 27002: std::numeric_limits<_DInputType>::digits, 27002: _Engine>(_M_g); 27002: } 27002: 27002: private: 27002: _Engine& _M_g; 27002: }; 27002: 27002: template 27002: using __seed_seq_generate_t = decltype( 27002: std::declval<_Sseq&>().generate(std::declval(), 27002: std::declval())); 27002: 27002: 27002: 27002: template> 27002: using __is_seed_seq = __and_< 27002: __not_, _Engine>>, 27002: is_unsigned, 27002: __not_> 27002: >; 27002: 27002: } 27002: # 257 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class linear_congruential_engine 27002: { 27002: static_assert(std::is_unsigned<_UIntType>::value, 27002: "result_type must be an unsigned integral type"); 27002: static_assert(__m == 0u || (__a < __m && __c < __m), 27002: "template argument substituting __m out of bounds"); 27002: 27002: template 27002: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 27002: _Sseq, linear_congruential_engine, _UIntType>::value>::type; 27002: 27002: public: 27002: 27002: typedef _UIntType result_type; 27002: 27002: 27002: static constexpr result_type multiplier = __a; 27002: 27002: static constexpr result_type increment = __c; 27002: 27002: static constexpr result_type modulus = __m; 27002: static constexpr result_type default_seed = 1u; 27002: 27002: 27002: 27002: 27002: 27002: linear_congruential_engine() : linear_congruential_engine(default_seed) 27002: { } 27002: # 295 "/usr/include/c++/12/bits/random.h" 3 27002: explicit 27002: linear_congruential_engine(result_type __s) 27002: { seed(__s); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: explicit 27002: linear_congruential_engine(_Sseq& __q) 27002: { seed(__q); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: seed(result_type __s = default_seed); 27002: # 326 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: _If_seed_seq<_Sseq> 27002: seed(_Sseq& __q); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: min() 27002: { return __c == 0u ? 1u : 0u; } 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: max() 27002: { return __m - 1u; } 27002: 27002: 27002: 27002: 27002: void 27002: discard(unsigned long long __z) 27002: { 27002: for (; __z != 0ULL; --__z) 27002: (*this)(); 27002: } 27002: 27002: 27002: 27002: 27002: result_type 27002: operator()() 27002: { 27002: _M_x = __detail::__mod<_UIntType, __m, __a, __c>(_M_x); 27002: return _M_x; 27002: } 27002: # 378 "/usr/include/c++/12/bits/random.h" 3 27002: friend bool 27002: operator==(const linear_congruential_engine& __lhs, 27002: const linear_congruential_engine& __rhs) 27002: { return __lhs._M_x == __rhs._M_x; } 27002: # 391 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::linear_congruential_engine<_UIntType1, 27002: __a1, __c1, __m1>& __lcr); 27002: # 411 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::linear_congruential_engine<_UIntType1, __a1, 27002: __c1, __m1>& __lcr); 27002: 27002: private: 27002: _UIntType _M_x; 27002: }; 27002: # 433 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: inline bool 27002: operator!=(const std::linear_congruential_engine<_UIntType, __a, 27002: __c, __m>& __lhs, 27002: const std::linear_congruential_engine<_UIntType, __a, 27002: __c, __m>& __rhs) 27002: { return !(__lhs == __rhs); } 27002: # 470 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class mersenne_twister_engine 27002: { 27002: static_assert(std::is_unsigned<_UIntType>::value, 27002: "result_type must be an unsigned integral type"); 27002: static_assert(1u <= __m && __m <= __n, 27002: "template argument substituting __m out of bounds"); 27002: static_assert(__r <= __w, "template argument substituting " 27002: "__r out of bound"); 27002: static_assert(__u <= __w, "template argument substituting " 27002: "__u out of bound"); 27002: static_assert(__s <= __w, "template argument substituting " 27002: "__s out of bound"); 27002: static_assert(__t <= __w, "template argument substituting " 27002: "__t out of bound"); 27002: static_assert(__l <= __w, "template argument substituting " 27002: "__l out of bound"); 27002: static_assert(__w <= std::numeric_limits<_UIntType>::digits, 27002: "template argument substituting __w out of bound"); 27002: static_assert(__a <= (__detail::_Shift<_UIntType, __w>::__value - 1), 27002: "template argument substituting __a out of bound"); 27002: static_assert(__b <= (__detail::_Shift<_UIntType, __w>::__value - 1), 27002: "template argument substituting __b out of bound"); 27002: static_assert(__c <= (__detail::_Shift<_UIntType, __w>::__value - 1), 27002: "template argument substituting __c out of bound"); 27002: static_assert(__d <= (__detail::_Shift<_UIntType, __w>::__value - 1), 27002: "template argument substituting __d out of bound"); 27002: static_assert(__f <= (__detail::_Shift<_UIntType, __w>::__value - 1), 27002: "template argument substituting __f out of bound"); 27002: 27002: template 27002: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 27002: _Sseq, mersenne_twister_engine, _UIntType>::value>::type; 27002: 27002: public: 27002: 27002: typedef _UIntType result_type; 27002: 27002: 27002: static constexpr size_t word_size = __w; 27002: static constexpr size_t state_size = __n; 27002: static constexpr size_t shift_size = __m; 27002: static constexpr size_t mask_bits = __r; 27002: static constexpr result_type xor_mask = __a; 27002: static constexpr size_t tempering_u = __u; 27002: static constexpr result_type tempering_d = __d; 27002: static constexpr size_t tempering_s = __s; 27002: static constexpr result_type tempering_b = __b; 27002: static constexpr size_t tempering_t = __t; 27002: static constexpr result_type tempering_c = __c; 27002: static constexpr size_t tempering_l = __l; 27002: static constexpr result_type initialization_multiplier = __f; 27002: static constexpr result_type default_seed = 5489u; 27002: 27002: 27002: 27002: mersenne_twister_engine() : mersenne_twister_engine(default_seed) { } 27002: 27002: explicit 27002: mersenne_twister_engine(result_type __sd) 27002: { seed(__sd); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: explicit 27002: mersenne_twister_engine(_Sseq& __q) 27002: { seed(__q); } 27002: 27002: void 27002: seed(result_type __sd = default_seed); 27002: 27002: template 27002: _If_seed_seq<_Sseq> 27002: seed(_Sseq& __q); 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: min() 27002: { return 0; } 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: max() 27002: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 27002: 27002: 27002: 27002: 27002: void 27002: discard(unsigned long long __z); 27002: 27002: result_type 27002: operator()(); 27002: # 589 "/usr/include/c++/12/bits/random.h" 3 27002: friend bool 27002: operator==(const mersenne_twister_engine& __lhs, 27002: const mersenne_twister_engine& __rhs) 27002: { return (std::equal(__lhs._M_x, __lhs._M_x + state_size, __rhs._M_x) 27002: && __lhs._M_p == __rhs._M_p); } 27002: # 607 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::mersenne_twister_engine<_UIntType1, __w1, __n1, 27002: __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 27002: __l1, __f1>& __x); 27002: # 633 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, 27002: __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 27002: __l1, __f1>& __x); 27002: 27002: private: 27002: void _M_gen_rand(); 27002: 27002: _UIntType _M_x[state_size]; 27002: size_t _M_p; 27002: }; 27002: # 666 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: inline bool 27002: operator!=(const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 27002: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __lhs, 27002: const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 27002: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __rhs) 27002: { return !(__lhs == __rhs); } 27002: # 694 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class subtract_with_carry_engine 27002: { 27002: static_assert(std::is_unsigned<_UIntType>::value, 27002: "result_type must be an unsigned integral type"); 27002: static_assert(0u < __s && __s < __r, 27002: "0 < s < r"); 27002: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 27002: "template argument substituting __w out of bounds"); 27002: 27002: template 27002: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 27002: _Sseq, subtract_with_carry_engine, _UIntType>::value>::type; 27002: 27002: public: 27002: 27002: typedef _UIntType result_type; 27002: 27002: 27002: static constexpr size_t word_size = __w; 27002: static constexpr size_t short_lag = __s; 27002: static constexpr size_t long_lag = __r; 27002: static constexpr result_type default_seed = 19780503u; 27002: 27002: subtract_with_carry_engine() : subtract_with_carry_engine(default_seed) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: subtract_with_carry_engine(result_type __sd) 27002: { seed(__sd); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: explicit 27002: subtract_with_carry_engine(_Sseq& __q) 27002: { seed(__q); } 27002: # 752 "/usr/include/c++/12/bits/random.h" 3 27002: void 27002: seed(result_type __sd = default_seed); 27002: 27002: 27002: 27002: 27002: 27002: template 27002: _If_seed_seq<_Sseq> 27002: seed(_Sseq& __q); 27002: 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: min() 27002: { return 0; } 27002: 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: max() 27002: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 27002: 27002: 27002: 27002: 27002: void 27002: discard(unsigned long long __z) 27002: { 27002: for (; __z != 0ULL; --__z) 27002: (*this)(); 27002: } 27002: 27002: 27002: 27002: 27002: result_type 27002: operator()(); 27002: # 807 "/usr/include/c++/12/bits/random.h" 3 27002: friend bool 27002: operator==(const subtract_with_carry_engine& __lhs, 27002: const subtract_with_carry_engine& __rhs) 27002: { return (std::equal(__lhs._M_x, __lhs._M_x + long_lag, __rhs._M_x) 27002: && __lhs._M_carry == __rhs._M_carry 27002: && __lhs._M_p == __rhs._M_p); } 27002: # 826 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::subtract_with_carry_engine<_UIntType1, __w1, 27002: __s1, __r1>& __x); 27002: # 845 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::subtract_with_carry_engine<_UIntType1, __w1, 27002: __s1, __r1>& __x); 27002: 27002: private: 27002: 27002: _UIntType _M_x[long_lag]; 27002: _UIntType _M_carry; 27002: size_t _M_p; 27002: }; 27002: # 871 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: inline bool 27002: operator!=(const std::subtract_with_carry_engine<_UIntType, __w, 27002: __s, __r>& __lhs, 27002: const std::subtract_with_carry_engine<_UIntType, __w, 27002: __s, __r>& __rhs) 27002: { return !(__lhs == __rhs); } 27002: # 886 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class discard_block_engine 27002: { 27002: static_assert(1 <= __r && __r <= __p, 27002: "template argument substituting __r out of bounds"); 27002: 27002: public: 27002: 27002: typedef typename _RandomNumberEngine::result_type result_type; 27002: 27002: template 27002: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 27002: _Sseq, discard_block_engine, result_type>::value>::type; 27002: 27002: 27002: static constexpr size_t block_size = __p; 27002: static constexpr size_t used_block = __r; 27002: 27002: 27002: 27002: 27002: 27002: 27002: discard_block_engine() 27002: : _M_b(), _M_n(0) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: discard_block_engine(const _RandomNumberEngine& __rng) 27002: : _M_b(__rng), _M_n(0) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: discard_block_engine(_RandomNumberEngine&& __rng) 27002: : _M_b(std::move(__rng)), _M_n(0) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: discard_block_engine(result_type __s) 27002: : _M_b(__s), _M_n(0) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: explicit 27002: discard_block_engine(_Sseq& __q) 27002: : _M_b(__q), _M_n(0) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: seed() 27002: { 27002: _M_b.seed(); 27002: _M_n = 0; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: seed(result_type __s) 27002: { 27002: _M_b.seed(__s); 27002: _M_n = 0; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: _If_seed_seq<_Sseq> 27002: seed(_Sseq& __q) 27002: { 27002: _M_b.seed(__q); 27002: _M_n = 0; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: const _RandomNumberEngine& 27002: base() const noexcept 27002: { return _M_b; } 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: min() 27002: { return _RandomNumberEngine::min(); } 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: max() 27002: { return _RandomNumberEngine::max(); } 27002: 27002: 27002: 27002: 27002: void 27002: discard(unsigned long long __z) 27002: { 27002: for (; __z != 0ULL; --__z) 27002: (*this)(); 27002: } 27002: 27002: 27002: 27002: 27002: result_type 27002: operator()(); 27002: # 1037 "/usr/include/c++/12/bits/random.h" 3 27002: friend bool 27002: operator==(const discard_block_engine& __lhs, 27002: const discard_block_engine& __rhs) 27002: { return __lhs._M_b == __rhs._M_b && __lhs._M_n == __rhs._M_n; } 27002: # 1053 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::discard_block_engine<_RandomNumberEngine1, 27002: __p1, __r1>& __x); 27002: # 1071 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::discard_block_engine<_RandomNumberEngine1, 27002: __p1, __r1>& __x); 27002: 27002: private: 27002: _RandomNumberEngine _M_b; 27002: size_t _M_n; 27002: }; 27002: # 1094 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: inline bool 27002: operator!=(const std::discard_block_engine<_RandomNumberEngine, __p, 27002: __r>& __lhs, 27002: const std::discard_block_engine<_RandomNumberEngine, __p, 27002: __r>& __rhs) 27002: { return !(__lhs == __rhs); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class independent_bits_engine 27002: { 27002: static_assert(std::is_unsigned<_UIntType>::value, 27002: "result_type must be an unsigned integral type"); 27002: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 27002: "template argument substituting __w out of bounds"); 27002: 27002: template 27002: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 27002: _Sseq, independent_bits_engine, _UIntType>::value>::type; 27002: 27002: public: 27002: 27002: typedef _UIntType result_type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: independent_bits_engine() 27002: : _M_b() { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: independent_bits_engine(const _RandomNumberEngine& __rng) 27002: : _M_b(__rng) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: independent_bits_engine(_RandomNumberEngine&& __rng) 27002: : _M_b(std::move(__rng)) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: independent_bits_engine(result_type __s) 27002: : _M_b(__s) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: explicit 27002: independent_bits_engine(_Sseq& __q) 27002: : _M_b(__q) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: seed() 27002: { _M_b.seed(); } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: seed(result_type __s) 27002: { _M_b.seed(__s); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: _If_seed_seq<_Sseq> 27002: seed(_Sseq& __q) 27002: { _M_b.seed(__q); } 27002: 27002: 27002: 27002: 27002: 27002: const _RandomNumberEngine& 27002: base() const noexcept 27002: { return _M_b; } 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: min() 27002: { return 0U; } 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: max() 27002: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 27002: 27002: 27002: 27002: 27002: void 27002: discard(unsigned long long __z) 27002: { 27002: for (; __z != 0ULL; --__z) 27002: (*this)(); 27002: } 27002: 27002: 27002: 27002: 27002: result_type 27002: operator()(); 27002: # 1248 "/usr/include/c++/12/bits/random.h" 3 27002: friend bool 27002: operator==(const independent_bits_engine& __lhs, 27002: const independent_bits_engine& __rhs) 27002: { return __lhs._M_b == __rhs._M_b; } 27002: # 1265 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::independent_bits_engine<_RandomNumberEngine, 27002: __w, _UIntType>& __x) 27002: { 27002: __is >> __x._M_b; 27002: return __is; 27002: } 27002: 27002: private: 27002: _RandomNumberEngine _M_b; 27002: }; 27002: # 1291 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: inline bool 27002: operator!=(const std::independent_bits_engine<_RandomNumberEngine, __w, 27002: _UIntType>& __lhs, 27002: const std::independent_bits_engine<_RandomNumberEngine, __w, 27002: _UIntType>& __rhs) 27002: { return !(__lhs == __rhs); } 27002: # 1309 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::independent_bits_engine<_RandomNumberEngine, 27002: __w, _UIntType>& __x) 27002: { 27002: __os << __x.base(); 27002: return __os; 27002: } 27002: # 1328 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class shuffle_order_engine 27002: { 27002: static_assert(1u <= __k, "template argument substituting " 27002: "__k out of bound"); 27002: 27002: public: 27002: 27002: typedef typename _RandomNumberEngine::result_type result_type; 27002: 27002: template 27002: using _If_seed_seq = typename enable_if<__detail::__is_seed_seq< 27002: _Sseq, shuffle_order_engine, result_type>::value>::type; 27002: 27002: static constexpr size_t table_size = __k; 27002: 27002: 27002: 27002: 27002: 27002: 27002: shuffle_order_engine() 27002: : _M_b() 27002: { _M_initialize(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: shuffle_order_engine(const _RandomNumberEngine& __rng) 27002: : _M_b(__rng) 27002: { _M_initialize(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: shuffle_order_engine(_RandomNumberEngine&& __rng) 27002: : _M_b(std::move(__rng)) 27002: { _M_initialize(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: shuffle_order_engine(result_type __s) 27002: : _M_b(__s) 27002: { _M_initialize(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: explicit 27002: shuffle_order_engine(_Sseq& __q) 27002: : _M_b(__q) 27002: { _M_initialize(); } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: seed() 27002: { 27002: _M_b.seed(); 27002: _M_initialize(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: seed(result_type __s) 27002: { 27002: _M_b.seed(__s); 27002: _M_initialize(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: _If_seed_seq<_Sseq> 27002: seed(_Sseq& __q) 27002: { 27002: _M_b.seed(__q); 27002: _M_initialize(); 27002: } 27002: 27002: 27002: 27002: 27002: const _RandomNumberEngine& 27002: base() const noexcept 27002: { return _M_b; } 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: min() 27002: { return _RandomNumberEngine::min(); } 27002: 27002: 27002: 27002: 27002: static constexpr result_type 27002: max() 27002: { return _RandomNumberEngine::max(); } 27002: 27002: 27002: 27002: 27002: void 27002: discard(unsigned long long __z) 27002: { 27002: for (; __z != 0ULL; --__z) 27002: (*this)(); 27002: } 27002: 27002: 27002: 27002: 27002: result_type 27002: operator()(); 27002: # 1480 "/usr/include/c++/12/bits/random.h" 3 27002: friend bool 27002: operator==(const shuffle_order_engine& __lhs, 27002: const shuffle_order_engine& __rhs) 27002: { return (__lhs._M_b == __rhs._M_b 27002: && std::equal(__lhs._M_v, __lhs._M_v + __k, __rhs._M_v) 27002: && __lhs._M_y == __rhs._M_y); } 27002: # 1498 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::shuffle_order_engine<_RandomNumberEngine1, 27002: __k1>& __x); 27002: # 1516 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::shuffle_order_engine<_RandomNumberEngine1, __k1>& __x); 27002: 27002: private: 27002: void _M_initialize() 27002: { 27002: for (size_t __i = 0; __i < __k; ++__i) 27002: _M_v[__i] = _M_b(); 27002: _M_y = _M_b(); 27002: } 27002: 27002: _RandomNumberEngine _M_b; 27002: result_type _M_v[__k]; 27002: result_type _M_y; 27002: }; 27002: # 1546 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: inline bool 27002: operator!=(const std::shuffle_order_engine<_RandomNumberEngine, 27002: __k>& __lhs, 27002: const std::shuffle_order_engine<_RandomNumberEngine, 27002: __k>& __rhs) 27002: { return !(__lhs == __rhs); } 27002: 27002: 27002: 27002: 27002: 27002: typedef linear_congruential_engine 27002: minstd_rand0; 27002: 27002: 27002: 27002: 27002: typedef linear_congruential_engine 27002: minstd_rand; 27002: # 1575 "/usr/include/c++/12/bits/random.h" 3 27002: typedef mersenne_twister_engine< 27002: uint_fast32_t, 27002: 32, 624, 397, 31, 27002: 0x9908b0dfUL, 11, 27002: 0xffffffffUL, 7, 27002: 0x9d2c5680UL, 15, 27002: 0xefc60000UL, 18, 1812433253UL> mt19937; 27002: 27002: 27002: 27002: 27002: typedef mersenne_twister_engine< 27002: uint_fast64_t, 27002: 64, 312, 156, 31, 27002: 0xb5026f5aa96619e9ULL, 29, 27002: 0x5555555555555555ULL, 17, 27002: 0x71d67fffeda60000ULL, 37, 27002: 0xfff7eee000000000ULL, 43, 27002: 6364136223846793005ULL> mt19937_64; 27002: 27002: typedef subtract_with_carry_engine 27002: ranlux24_base; 27002: 27002: typedef subtract_with_carry_engine 27002: ranlux48_base; 27002: 27002: typedef discard_block_engine ranlux24; 27002: 27002: typedef discard_block_engine ranlux48; 27002: 27002: typedef shuffle_order_engine knuth_b; 27002: 27002: typedef minstd_rand0 default_random_engine; 27002: 27002: 27002: 27002: 27002: 27002: class random_device 27002: { 27002: public: 27002: 27002: typedef unsigned int result_type; 27002: 27002: 27002: 27002: random_device() { _M_init("default"); } 27002: 27002: explicit 27002: random_device(const std::string& __token) { _M_init(__token); } 27002: 27002: 27002: ~random_device() 27002: { _M_fini(); } 27002: 27002: 27002: static constexpr result_type 27002: min() 27002: { return std::numeric_limits::min(); } 27002: 27002: static constexpr result_type 27002: max() 27002: { return std::numeric_limits::max(); } 27002: 27002: double 27002: entropy() const noexcept 27002: { 27002: 27002: return this->_M_getentropy(); 27002: 27002: 27002: 27002: } 27002: 27002: result_type 27002: operator()() 27002: { return this->_M_getval(); } 27002: 27002: 27002: random_device(const random_device&) = delete; 27002: void operator=(const random_device&) = delete; 27002: 27002: private: 27002: 27002: void _M_init(const std::string& __token); 27002: void _M_init_pretr1(const std::string& __token); 27002: void _M_fini(); 27002: 27002: result_type _M_getval(); 27002: result_type _M_getval_pretr1(); 27002: double _M_getentropy() const noexcept; 27002: 27002: void _M_init(const char*, size_t); 27002: 27002: __extension__ union 27002: { 27002: struct 27002: { 27002: void* _M_file; 27002: result_type (*_M_func)(void*); 27002: int _M_fd; 27002: }; 27002: mt19937 _M_mt; 27002: }; 27002: }; 27002: # 1701 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: inline bool 27002: operator!=(const std::uniform_int_distribution<_IntType>& __d1, 27002: const std::uniform_int_distribution<_IntType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 1717 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>&, 27002: const std::uniform_int_distribution<_IntType>&); 27002: # 1731 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>&, 27002: std::uniform_int_distribution<_IntType>&); 27002: # 1744 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class uniform_real_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef uniform_real_distribution<_RealType> distribution_type; 27002: 27002: param_type() : param_type(0) { } 27002: 27002: explicit 27002: param_type(_RealType __a, _RealType __b = _RealType(1)) 27002: : _M_a(__a), _M_b(__b) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: result_type 27002: a() const 27002: { return _M_a; } 27002: 27002: result_type 27002: b() const 27002: { return _M_b; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _RealType _M_a; 27002: _RealType _M_b; 27002: }; 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: uniform_real_distribution() : uniform_real_distribution(0.0) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: uniform_real_distribution(_RealType __a, _RealType __b = _RealType(1)) 27002: : _M_param(__a, __b) 27002: { } 27002: 27002: explicit 27002: uniform_real_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: reset() { } 27002: 27002: result_type 27002: a() const 27002: { return _M_param.a(); } 27002: 27002: result_type 27002: b() const 27002: { return _M_param.b(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return this->a(); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return this->b(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: return (__aurng() * (__p.b() - __p.a())) + __p.a(); 27002: } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const uniform_real_distribution& __d1, 27002: const uniform_real_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::uniform_real_distribution<_IntType>& __d1, 27002: const std::uniform_real_distribution<_IntType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 1938 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>&, 27002: const std::uniform_real_distribution<_RealType>&); 27002: # 1952 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>&, 27002: std::uniform_real_distribution<_RealType>&); 27002: # 1974 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class normal_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef normal_distribution<_RealType> distribution_type; 27002: 27002: param_type() : param_type(0.0) { } 27002: 27002: explicit 27002: param_type(_RealType __mean, _RealType __stddev = _RealType(1)) 27002: : _M_mean(__mean), _M_stddev(__stddev) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_stddev > _RealType(0))) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: _RealType 27002: mean() const 27002: { return _M_mean; } 27002: 27002: _RealType 27002: stddev() const 27002: { return _M_stddev; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return (__p1._M_mean == __p2._M_mean 27002: && __p1._M_stddev == __p2._M_stddev); } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _RealType _M_mean; 27002: _RealType _M_stddev; 27002: }; 27002: 27002: public: 27002: normal_distribution() : normal_distribution(0.0) { } 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: normal_distribution(result_type __mean, 27002: result_type __stddev = result_type(1)) 27002: : _M_param(__mean, __stddev) 27002: { } 27002: 27002: explicit 27002: normal_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { _M_saved_available = false; } 27002: 27002: 27002: 27002: 27002: _RealType 27002: mean() const 27002: { return _M_param.mean(); } 27002: 27002: 27002: 27002: 27002: _RealType 27002: stddev() const 27002: { return _M_param.stddev(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return std::numeric_limits::lowest(); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: friend bool 27002: operator==(const std::normal_distribution<_RealType1>& __d1, 27002: const std::normal_distribution<_RealType1>& __d2); 27002: # 2143 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::normal_distribution<_RealType1>& __x); 27002: # 2158 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::normal_distribution<_RealType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: result_type _M_saved = 0; 27002: bool _M_saved_available = false; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::normal_distribution<_RealType>& __d1, 27002: const std::normal_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 2195 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class lognormal_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef lognormal_distribution<_RealType> distribution_type; 27002: 27002: param_type() : param_type(0.0) { } 27002: 27002: explicit 27002: param_type(_RealType __m, _RealType __s = _RealType(1)) 27002: : _M_m(__m), _M_s(__s) 27002: { } 27002: 27002: _RealType 27002: m() const 27002: { return _M_m; } 27002: 27002: _RealType 27002: s() const 27002: { return _M_s; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_m == __p2._M_m && __p1._M_s == __p2._M_s; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _RealType _M_m; 27002: _RealType _M_s; 27002: }; 27002: 27002: lognormal_distribution() : lognormal_distribution(0.0) { } 27002: 27002: explicit 27002: lognormal_distribution(_RealType __m, _RealType __s = _RealType(1)) 27002: : _M_param(__m, __s), _M_nd() 27002: { } 27002: 27002: explicit 27002: lognormal_distribution(const param_type& __p) 27002: : _M_param(__p), _M_nd() 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { _M_nd.reset(); } 27002: 27002: 27002: 27002: 27002: _RealType 27002: m() const 27002: { return _M_param.m(); } 27002: 27002: _RealType 27002: s() const 27002: { return _M_param.s(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return result_type(0); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { return std::exp(__p.s() * _M_nd(__urng) + __p.m()); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const lognormal_distribution& __d1, 27002: const lognormal_distribution& __d2) 27002: { return (__d1._M_param == __d2._M_param 27002: && __d1._M_nd == __d2._M_nd); } 27002: # 2354 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::lognormal_distribution<_RealType1>& __x); 27002: # 2369 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::lognormal_distribution<_RealType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: 27002: std::normal_distribution _M_nd; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::lognormal_distribution<_RealType>& __d1, 27002: const std::lognormal_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 2406 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class gamma_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef gamma_distribution<_RealType> distribution_type; 27002: friend class gamma_distribution<_RealType>; 27002: 27002: param_type() : param_type(1.0) { } 27002: 27002: explicit 27002: param_type(_RealType __alpha_val, _RealType __beta_val = _RealType(1)) 27002: : _M_alpha(__alpha_val), _M_beta(__beta_val) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_alpha > _RealType(0))) __builtin_unreachable(); } while (false); 27002: _M_initialize(); 27002: } 27002: 27002: _RealType 27002: alpha() const 27002: { return _M_alpha; } 27002: 27002: _RealType 27002: beta() const 27002: { return _M_beta; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return (__p1._M_alpha == __p2._M_alpha 27002: && __p1._M_beta == __p2._M_beta); } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: void 27002: _M_initialize(); 27002: 27002: _RealType _M_alpha; 27002: _RealType _M_beta; 27002: 27002: _RealType _M_malpha, _M_a2; 27002: }; 27002: 27002: public: 27002: 27002: 27002: 27002: gamma_distribution() : gamma_distribution(1.0) { } 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: gamma_distribution(_RealType __alpha_val, 27002: _RealType __beta_val = _RealType(1)) 27002: : _M_param(__alpha_val, __beta_val), _M_nd() 27002: { } 27002: 27002: explicit 27002: gamma_distribution(const param_type& __p) 27002: : _M_param(__p), _M_nd() 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { _M_nd.reset(); } 27002: 27002: 27002: 27002: 27002: _RealType 27002: alpha() const 27002: { return _M_param.alpha(); } 27002: 27002: 27002: 27002: 27002: _RealType 27002: beta() const 27002: { return _M_param.beta(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return result_type(0); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const gamma_distribution& __d1, 27002: const gamma_distribution& __d2) 27002: { return (__d1._M_param == __d2._M_param 27002: && __d1._M_nd == __d2._M_nd); } 27002: # 2586 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::gamma_distribution<_RealType1>& __x); 27002: # 2600 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::gamma_distribution<_RealType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: 27002: std::normal_distribution _M_nd; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::gamma_distribution<_RealType>& __d1, 27002: const std::gamma_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 2634 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class chi_squared_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef chi_squared_distribution<_RealType> distribution_type; 27002: 27002: param_type() : param_type(1) { } 27002: 27002: explicit 27002: param_type(_RealType __n) 27002: : _M_n(__n) 27002: { } 27002: 27002: _RealType 27002: n() const 27002: { return _M_n; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_n == __p2._M_n; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _RealType _M_n; 27002: }; 27002: 27002: chi_squared_distribution() : chi_squared_distribution(1) { } 27002: 27002: explicit 27002: chi_squared_distribution(_RealType __n) 27002: : _M_param(__n), _M_gd(__n / 2) 27002: { } 27002: 27002: explicit 27002: chi_squared_distribution(const param_type& __p) 27002: : _M_param(__p), _M_gd(__p.n() / 2) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { _M_gd.reset(); } 27002: 27002: 27002: 27002: 27002: _RealType 27002: n() const 27002: { return _M_param.n(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { 27002: _M_param = __param; 27002: typedef typename std::gamma_distribution::param_type 27002: param_type; 27002: _M_gd.param(param_type{__param.n() / 2}); 27002: } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return result_type(0); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return 2 * _M_gd(__urng); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: typedef typename std::gamma_distribution::param_type 27002: param_type; 27002: return 2 * _M_gd(__urng, param_type(__p.n() / 2)); 27002: } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate_impl(__f, __t, __urng); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { typename std::gamma_distribution::param_type 27002: __p2(__p.n() / 2); 27002: this->__generate_impl(__f, __t, __urng, __p2); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate_impl(__f, __t, __urng); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { typename std::gamma_distribution::param_type 27002: __p2(__p.n() / 2); 27002: this->__generate_impl(__f, __t, __urng, __p2); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const chi_squared_distribution& __d1, 27002: const chi_squared_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 27002: # 2802 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::chi_squared_distribution<_RealType1>& __x); 27002: # 2817 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::chi_squared_distribution<_RealType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng); 27002: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const typename 27002: std::gamma_distribution::param_type& __p); 27002: 27002: param_type _M_param; 27002: 27002: std::gamma_distribution _M_gd; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::chi_squared_distribution<_RealType>& __d1, 27002: const std::chi_squared_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 2858 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class cauchy_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef cauchy_distribution<_RealType> distribution_type; 27002: 27002: param_type() : param_type(0) { } 27002: 27002: explicit 27002: param_type(_RealType __a, _RealType __b = _RealType(1)) 27002: : _M_a(__a), _M_b(__b) 27002: { } 27002: 27002: _RealType 27002: a() const 27002: { return _M_a; } 27002: 27002: _RealType 27002: b() const 27002: { return _M_b; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _RealType _M_a; 27002: _RealType _M_b; 27002: }; 27002: 27002: cauchy_distribution() : cauchy_distribution(0.0) { } 27002: 27002: explicit 27002: cauchy_distribution(_RealType __a, _RealType __b = 1.0) 27002: : _M_param(__a, __b) 27002: { } 27002: 27002: explicit 27002: cauchy_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { } 27002: 27002: 27002: 27002: 27002: _RealType 27002: a() const 27002: { return _M_param.a(); } 27002: 27002: _RealType 27002: b() const 27002: { return _M_param.b(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return std::numeric_limits::lowest(); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const cauchy_distribution& __d1, 27002: const cauchy_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::cauchy_distribution<_RealType>& __d1, 27002: const std::cauchy_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 3035 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::cauchy_distribution<_RealType>& __x); 27002: # 3050 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::cauchy_distribution<_RealType>& __x); 27002: # 3066 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class fisher_f_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef fisher_f_distribution<_RealType> distribution_type; 27002: 27002: param_type() : param_type(1) { } 27002: 27002: explicit 27002: param_type(_RealType __m, _RealType __n = _RealType(1)) 27002: : _M_m(__m), _M_n(__n) 27002: { } 27002: 27002: _RealType 27002: m() const 27002: { return _M_m; } 27002: 27002: _RealType 27002: n() const 27002: { return _M_n; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_m == __p2._M_m && __p1._M_n == __p2._M_n; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _RealType _M_m; 27002: _RealType _M_n; 27002: }; 27002: 27002: fisher_f_distribution() : fisher_f_distribution(1.0) { } 27002: 27002: explicit 27002: fisher_f_distribution(_RealType __m, 27002: _RealType __n = _RealType(1)) 27002: : _M_param(__m, __n), _M_gd_x(__m / 2), _M_gd_y(__n / 2) 27002: { } 27002: 27002: explicit 27002: fisher_f_distribution(const param_type& __p) 27002: : _M_param(__p), _M_gd_x(__p.m() / 2), _M_gd_y(__p.n() / 2) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { 27002: _M_gd_x.reset(); 27002: _M_gd_y.reset(); 27002: } 27002: 27002: 27002: 27002: 27002: _RealType 27002: m() const 27002: { return _M_param.m(); } 27002: 27002: _RealType 27002: n() const 27002: { return _M_param.n(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return result_type(0); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: typedef typename std::gamma_distribution::param_type 27002: param_type; 27002: return ((_M_gd_x(__urng, param_type(__p.m() / 2)) * n()) 27002: / (_M_gd_y(__urng, param_type(__p.n() / 2)) * m())); 27002: } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate_impl(__f, __t, __urng); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate_impl(__f, __t, __urng); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const fisher_f_distribution& __d1, 27002: const fisher_f_distribution& __d2) 27002: { return (__d1._M_param == __d2._M_param 27002: && __d1._M_gd_x == __d2._M_gd_x 27002: && __d1._M_gd_y == __d2._M_gd_y); } 27002: # 3241 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::fisher_f_distribution<_RealType1>& __x); 27002: # 3256 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::fisher_f_distribution<_RealType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng); 27002: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: 27002: std::gamma_distribution _M_gd_x, _M_gd_y; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::fisher_f_distribution<_RealType>& __d1, 27002: const std::fisher_f_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 3298 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class student_t_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef student_t_distribution<_RealType> distribution_type; 27002: 27002: param_type() : param_type(1) { } 27002: 27002: explicit 27002: param_type(_RealType __n) 27002: : _M_n(__n) 27002: { } 27002: 27002: _RealType 27002: n() const 27002: { return _M_n; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_n == __p2._M_n; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _RealType _M_n; 27002: }; 27002: 27002: student_t_distribution() : student_t_distribution(1.0) { } 27002: 27002: explicit 27002: student_t_distribution(_RealType __n) 27002: : _M_param(__n), _M_nd(), _M_gd(__n / 2, 2) 27002: { } 27002: 27002: explicit 27002: student_t_distribution(const param_type& __p) 27002: : _M_param(__p), _M_nd(), _M_gd(__p.n() / 2, 2) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { 27002: _M_nd.reset(); 27002: _M_gd.reset(); 27002: } 27002: 27002: 27002: 27002: 27002: _RealType 27002: n() const 27002: { return _M_param.n(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return std::numeric_limits::lowest(); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: typedef typename std::gamma_distribution::param_type 27002: param_type; 27002: 27002: const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2)); 27002: return _M_nd(__urng) * std::sqrt(__p.n() / __g); 27002: } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate_impl(__f, __t, __urng); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate_impl(__f, __t, __urng); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const student_t_distribution& __d1, 27002: const student_t_distribution& __d2) 27002: { return (__d1._M_param == __d2._M_param 27002: && __d1._M_nd == __d2._M_nd && __d1._M_gd == __d2._M_gd); } 27002: # 3463 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::student_t_distribution<_RealType1>& __x); 27002: # 3478 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::student_t_distribution<_RealType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng); 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: 27002: std::normal_distribution _M_nd; 27002: std::gamma_distribution _M_gd; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::student_t_distribution<_RealType>& __d1, 27002: const std::student_t_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 3526 "/usr/include/c++/12/bits/random.h" 3 27002: class bernoulli_distribution 27002: { 27002: public: 27002: 27002: typedef bool result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef bernoulli_distribution distribution_type; 27002: 27002: param_type() : param_type(0.5) { } 27002: 27002: explicit 27002: param_type(double __p) 27002: : _M_p(__p) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool((_M_p >= 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: double 27002: p() const 27002: { return _M_p; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_p == __p2._M_p; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: double _M_p; 27002: }; 27002: 27002: public: 27002: 27002: 27002: 27002: bernoulli_distribution() : bernoulli_distribution(0.5) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: bernoulli_distribution(double __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: explicit 27002: bernoulli_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: reset() { } 27002: 27002: 27002: 27002: 27002: double 27002: p() const 27002: { return _M_param.p(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return std::numeric_limits::min(); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: if ((__aurng() - __aurng.min()) 27002: < __p.p() * (__aurng.max() - __aurng.min())) 27002: return true; 27002: return false; 27002: } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const bernoulli_distribution& __d1, 27002: const bernoulli_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: inline bool 27002: operator!=(const std::bernoulli_distribution& __d1, 27002: const std::bernoulli_distribution& __d2) 27002: { return !(__d1 == __d2); } 27002: # 3709 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::bernoulli_distribution& __x); 27002: # 3723 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: inline std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::bernoulli_distribution& __x) 27002: { 27002: double __p; 27002: if (__is >> __p) 27002: __x.param(bernoulli_distribution::param_type(__p)); 27002: return __is; 27002: } 27002: # 3742 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class binomial_distribution 27002: { 27002: static_assert(std::is_integral<_IntType>::value, 27002: "result_type must be an integral type"); 27002: 27002: public: 27002: 27002: typedef _IntType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef binomial_distribution<_IntType> distribution_type; 27002: friend class binomial_distribution<_IntType>; 27002: 27002: param_type() : param_type(1) { } 27002: 27002: explicit 27002: param_type(_IntType __t, double __p = 0.5) 27002: : _M_t(__t), _M_p(__p) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool((_M_t >= _IntType(0)) && (_M_p >= 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false) 27002: 27002: ; 27002: _M_initialize(); 27002: } 27002: 27002: _IntType 27002: t() const 27002: { return _M_t; } 27002: 27002: double 27002: p() const 27002: { return _M_p; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_t == __p2._M_t && __p1._M_p == __p2._M_p; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: void 27002: _M_initialize(); 27002: 27002: _IntType _M_t; 27002: double _M_p; 27002: 27002: double _M_q; 27002: 27002: double _M_d1, _M_d2, _M_s1, _M_s2, _M_c, 27002: _M_a1, _M_a123, _M_s, _M_lf, _M_lp1p; 27002: 27002: bool _M_easy; 27002: }; 27002: 27002: 27002: 27002: binomial_distribution() : binomial_distribution(1) { } 27002: 27002: explicit 27002: binomial_distribution(_IntType __t, double __p = 0.5) 27002: : _M_param(__t, __p), _M_nd() 27002: { } 27002: 27002: explicit 27002: binomial_distribution(const param_type& __p) 27002: : _M_param(__p), _M_nd() 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { _M_nd.reset(); } 27002: 27002: 27002: 27002: 27002: _IntType 27002: t() const 27002: { return _M_param.t(); } 27002: 27002: 27002: 27002: 27002: double 27002: p() const 27002: { return _M_param.p(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return 0; } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return _M_param.t(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const binomial_distribution& __d1, 27002: const binomial_distribution& __d2) 27002: 27002: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 27002: # 3924 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::binomial_distribution<_IntType1>& __x); 27002: # 3940 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::binomial_distribution<_IntType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: result_type 27002: _M_waiting(_UniformRandomNumberGenerator& __urng, 27002: _IntType __t, double __q); 27002: 27002: param_type _M_param; 27002: 27002: 27002: std::normal_distribution _M_nd; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::binomial_distribution<_IntType>& __d1, 27002: const std::binomial_distribution<_IntType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 3982 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class geometric_distribution 27002: { 27002: static_assert(std::is_integral<_IntType>::value, 27002: "result_type must be an integral type"); 27002: 27002: public: 27002: 27002: typedef _IntType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef geometric_distribution<_IntType> distribution_type; 27002: friend class geometric_distribution<_IntType>; 27002: 27002: param_type() : param_type(0.5) { } 27002: 27002: explicit 27002: param_type(double __p) 27002: : _M_p(__p) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool((_M_p > 0.0) && (_M_p < 1.0))) __builtin_unreachable(); } while (false); 27002: _M_initialize(); 27002: } 27002: 27002: double 27002: p() const 27002: { return _M_p; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_p == __p2._M_p; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: void 27002: _M_initialize() 27002: { _M_log_1_p = std::log(1.0 - _M_p); } 27002: 27002: double _M_p; 27002: 27002: double _M_log_1_p; 27002: }; 27002: 27002: 27002: 27002: geometric_distribution() : geometric_distribution(0.5) { } 27002: 27002: explicit 27002: geometric_distribution(double __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: explicit 27002: geometric_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: reset() { } 27002: 27002: 27002: 27002: 27002: double 27002: p() const 27002: { return _M_param.p(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return 0; } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const geometric_distribution& __d1, 27002: const geometric_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::geometric_distribution<_IntType>& __d1, 27002: const std::geometric_distribution<_IntType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 4163 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::geometric_distribution<_IntType>& __x); 27002: # 4178 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::geometric_distribution<_IntType>& __x); 27002: # 4192 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class negative_binomial_distribution 27002: { 27002: static_assert(std::is_integral<_IntType>::value, 27002: "result_type must be an integral type"); 27002: 27002: public: 27002: 27002: typedef _IntType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef negative_binomial_distribution<_IntType> distribution_type; 27002: 27002: param_type() : param_type(1) { } 27002: 27002: explicit 27002: param_type(_IntType __k, double __p = 0.5) 27002: : _M_k(__k), _M_p(__p) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool((_M_k > 0) && (_M_p > 0.0) && (_M_p <= 1.0))) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: _IntType 27002: k() const 27002: { return _M_k; } 27002: 27002: double 27002: p() const 27002: { return _M_p; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_k == __p2._M_k && __p1._M_p == __p2._M_p; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _IntType _M_k; 27002: double _M_p; 27002: }; 27002: 27002: negative_binomial_distribution() : negative_binomial_distribution(1) { } 27002: 27002: explicit 27002: negative_binomial_distribution(_IntType __k, double __p = 0.5) 27002: : _M_param(__k, __p), _M_gd(__k, (1.0 - __p) / __p) 27002: { } 27002: 27002: explicit 27002: negative_binomial_distribution(const param_type& __p) 27002: : _M_param(__p), _M_gd(__p.k(), (1.0 - __p.p()) / __p.p()) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { _M_gd.reset(); } 27002: 27002: 27002: 27002: 27002: _IntType 27002: k() const 27002: { return _M_param.k(); } 27002: 27002: 27002: 27002: 27002: double 27002: p() const 27002: { return _M_param.p(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return result_type(0); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng); 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate_impl(__f, __t, __urng); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate_impl(__f, __t, __urng); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const negative_binomial_distribution& __d1, 27002: const negative_binomial_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 27002: # 4360 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::negative_binomial_distribution<_IntType1>& __x); 27002: # 4375 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::negative_binomial_distribution<_IntType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng); 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: 27002: std::gamma_distribution _M_gd; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::negative_binomial_distribution<_IntType>& __d1, 27002: const std::negative_binomial_distribution<_IntType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 4423 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class poisson_distribution 27002: { 27002: static_assert(std::is_integral<_IntType>::value, 27002: "result_type must be an integral type"); 27002: 27002: public: 27002: 27002: typedef _IntType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef poisson_distribution<_IntType> distribution_type; 27002: friend class poisson_distribution<_IntType>; 27002: 27002: param_type() : param_type(1.0) { } 27002: 27002: explicit 27002: param_type(double __mean) 27002: : _M_mean(__mean) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_mean > 0.0)) __builtin_unreachable(); } while (false); 27002: _M_initialize(); 27002: } 27002: 27002: double 27002: mean() const 27002: { return _M_mean; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_mean == __p2._M_mean; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: 27002: void 27002: _M_initialize(); 27002: 27002: double _M_mean; 27002: 27002: double _M_lm_thr; 27002: 27002: double _M_lfm, _M_sm, _M_d, _M_scx, _M_1cx, _M_c2b, _M_cb; 27002: 27002: }; 27002: 27002: 27002: 27002: poisson_distribution() : poisson_distribution(1.0) { } 27002: 27002: explicit 27002: poisson_distribution(double __mean) 27002: : _M_param(__mean), _M_nd() 27002: { } 27002: 27002: explicit 27002: poisson_distribution(const param_type& __p) 27002: : _M_param(__p), _M_nd() 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { _M_nd.reset(); } 27002: 27002: 27002: 27002: 27002: double 27002: mean() const 27002: { return _M_param.mean(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return 0; } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const poisson_distribution& __d1, 27002: const poisson_distribution& __d2) 27002: 27002: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 27002: # 4590 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::poisson_distribution<_IntType1>& __x); 27002: # 4605 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::poisson_distribution<_IntType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: 27002: 27002: std::normal_distribution _M_nd; 27002: }; 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::poisson_distribution<_IntType>& __d1, 27002: const std::poisson_distribution<_IntType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 4649 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class exponential_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef exponential_distribution<_RealType> distribution_type; 27002: 27002: param_type() : param_type(1.0) { } 27002: 27002: explicit 27002: param_type(_RealType __lambda) 27002: : _M_lambda(__lambda) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(_M_lambda > _RealType(0))) __builtin_unreachable(); } while (false); 27002: } 27002: 27002: _RealType 27002: lambda() const 27002: { return _M_lambda; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_lambda == __p2._M_lambda; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _RealType _M_lambda; 27002: }; 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: exponential_distribution() : exponential_distribution(1.0) { } 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: exponential_distribution(_RealType __lambda) 27002: : _M_param(__lambda) 27002: { } 27002: 27002: explicit 27002: exponential_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: reset() { } 27002: 27002: 27002: 27002: 27002: _RealType 27002: lambda() const 27002: { return _M_param.lambda(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return result_type(0); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: return -std::log(result_type(1) - __aurng()) / __p.lambda(); 27002: } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const exponential_distribution& __d1, 27002: const exponential_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::exponential_distribution<_RealType>& __d1, 27002: const std::exponential_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 4834 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::exponential_distribution<_RealType>& __x); 27002: # 4849 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::exponential_distribution<_RealType>& __x); 27002: # 4864 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class weibull_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef weibull_distribution<_RealType> distribution_type; 27002: 27002: param_type() : param_type(1.0) { } 27002: 27002: explicit 27002: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 27002: : _M_a(__a), _M_b(__b) 27002: { } 27002: 27002: _RealType 27002: a() const 27002: { return _M_a; } 27002: 27002: _RealType 27002: b() const 27002: { return _M_b; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _RealType _M_a; 27002: _RealType _M_b; 27002: }; 27002: 27002: weibull_distribution() : weibull_distribution(1.0) { } 27002: 27002: explicit 27002: weibull_distribution(_RealType __a, _RealType __b = _RealType(1)) 27002: : _M_param(__a, __b) 27002: { } 27002: 27002: explicit 27002: weibull_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { } 27002: 27002: 27002: 27002: 27002: _RealType 27002: a() const 27002: { return _M_param.a(); } 27002: 27002: 27002: 27002: 27002: _RealType 27002: b() const 27002: { return _M_param.b(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return result_type(0); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const weibull_distribution& __d1, 27002: const weibull_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::weibull_distribution<_RealType>& __d1, 27002: const std::weibull_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 5044 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::weibull_distribution<_RealType>& __x); 27002: # 5059 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::weibull_distribution<_RealType>& __x); 27002: # 5074 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class extreme_value_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef extreme_value_distribution<_RealType> distribution_type; 27002: 27002: param_type() : param_type(0.0) { } 27002: 27002: explicit 27002: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 27002: : _M_a(__a), _M_b(__b) 27002: { } 27002: 27002: _RealType 27002: a() const 27002: { return _M_a; } 27002: 27002: _RealType 27002: b() const 27002: { return _M_b; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: _RealType _M_a; 27002: _RealType _M_b; 27002: }; 27002: 27002: extreme_value_distribution() : extreme_value_distribution(0.0) { } 27002: 27002: explicit 27002: extreme_value_distribution(_RealType __a, _RealType __b = _RealType(1)) 27002: : _M_param(__a, __b) 27002: { } 27002: 27002: explicit 27002: extreme_value_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { } 27002: 27002: 27002: 27002: 27002: _RealType 27002: a() const 27002: { return _M_param.a(); } 27002: 27002: 27002: 27002: 27002: _RealType 27002: b() const 27002: { return _M_param.b(); } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return std::numeric_limits::lowest(); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { return std::numeric_limits::max(); } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const extreme_value_distribution& __d1, 27002: const extreme_value_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::extreme_value_distribution<_RealType>& __d1, 27002: const std::extreme_value_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 5254 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::extreme_value_distribution<_RealType>& __x); 27002: # 5269 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::extreme_value_distribution<_RealType>& __x); 27002: # 5281 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class discrete_distribution 27002: { 27002: static_assert(std::is_integral<_IntType>::value, 27002: "result_type must be an integral type"); 27002: 27002: public: 27002: 27002: typedef _IntType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef discrete_distribution<_IntType> distribution_type; 27002: friend class discrete_distribution<_IntType>; 27002: 27002: param_type() 27002: : _M_prob(), _M_cp() 27002: { } 27002: 27002: template 27002: param_type(_InputIterator __wbegin, 27002: _InputIterator __wend) 27002: : _M_prob(__wbegin, __wend), _M_cp() 27002: { _M_initialize(); } 27002: 27002: param_type(initializer_list __wil) 27002: : _M_prob(__wil.begin(), __wil.end()), _M_cp() 27002: { _M_initialize(); } 27002: 27002: template 27002: param_type(size_t __nw, double __xmin, double __xmax, 27002: _Func __fw); 27002: 27002: 27002: param_type(const param_type&) = default; 27002: param_type& operator=(const param_type&) = default; 27002: 27002: std::vector 27002: probabilities() const 27002: { return _M_prob.empty() ? std::vector(1, 1.0) : _M_prob; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_prob == __p2._M_prob; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: void 27002: _M_initialize(); 27002: 27002: std::vector _M_prob; 27002: std::vector _M_cp; 27002: }; 27002: 27002: discrete_distribution() 27002: : _M_param() 27002: { } 27002: 27002: template 27002: discrete_distribution(_InputIterator __wbegin, 27002: _InputIterator __wend) 27002: : _M_param(__wbegin, __wend) 27002: { } 27002: 27002: discrete_distribution(initializer_list __wl) 27002: : _M_param(__wl) 27002: { } 27002: 27002: template 27002: discrete_distribution(size_t __nw, double __xmin, double __xmax, 27002: _Func __fw) 27002: : _M_param(__nw, __xmin, __xmax, __fw) 27002: { } 27002: 27002: explicit 27002: discrete_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { } 27002: 27002: 27002: 27002: 27002: std::vector 27002: probabilities() const 27002: { 27002: return _M_param._M_prob.empty() 27002: ? std::vector(1, 1.0) : _M_param._M_prob; 27002: } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { return result_type(0); } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { 27002: return _M_param._M_prob.empty() 27002: ? result_type(0) : result_type(_M_param._M_prob.size() - 1); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const discrete_distribution& __d1, 27002: const discrete_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: # 5467 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::discrete_distribution<_IntType1>& __x); 27002: # 5483 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::discrete_distribution<_IntType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::discrete_distribution<_IntType>& __d1, 27002: const std::discrete_distribution<_IntType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 5516 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class piecewise_constant_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef piecewise_constant_distribution<_RealType> distribution_type; 27002: friend class piecewise_constant_distribution<_RealType>; 27002: 27002: param_type() 27002: : _M_int(), _M_den(), _M_cp() 27002: { } 27002: 27002: template 27002: param_type(_InputIteratorB __bfirst, 27002: _InputIteratorB __bend, 27002: _InputIteratorW __wbegin); 27002: 27002: template 27002: param_type(initializer_list<_RealType> __bi, _Func __fw); 27002: 27002: template 27002: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 27002: _Func __fw); 27002: 27002: 27002: param_type(const param_type&) = default; 27002: param_type& operator=(const param_type&) = default; 27002: 27002: std::vector<_RealType> 27002: intervals() const 27002: { 27002: if (_M_int.empty()) 27002: { 27002: std::vector<_RealType> __tmp(2); 27002: __tmp[1] = _RealType(1); 27002: return __tmp; 27002: } 27002: else 27002: return _M_int; 27002: } 27002: 27002: std::vector 27002: densities() const 27002: { return _M_den.empty() ? std::vector(1, 1.0) : _M_den; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: void 27002: _M_initialize(); 27002: 27002: std::vector<_RealType> _M_int; 27002: std::vector _M_den; 27002: std::vector _M_cp; 27002: }; 27002: 27002: piecewise_constant_distribution() 27002: : _M_param() 27002: { } 27002: 27002: template 27002: piecewise_constant_distribution(_InputIteratorB __bfirst, 27002: _InputIteratorB __bend, 27002: _InputIteratorW __wbegin) 27002: : _M_param(__bfirst, __bend, __wbegin) 27002: { } 27002: 27002: template 27002: piecewise_constant_distribution(initializer_list<_RealType> __bl, 27002: _Func __fw) 27002: : _M_param(__bl, __fw) 27002: { } 27002: 27002: template 27002: piecewise_constant_distribution(size_t __nw, 27002: _RealType __xmin, _RealType __xmax, 27002: _Func __fw) 27002: : _M_param(__nw, __xmin, __xmax, __fw) 27002: { } 27002: 27002: explicit 27002: piecewise_constant_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { } 27002: 27002: 27002: 27002: 27002: std::vector<_RealType> 27002: intervals() const 27002: { 27002: if (_M_param._M_int.empty()) 27002: { 27002: std::vector<_RealType> __tmp(2); 27002: __tmp[1] = _RealType(1); 27002: return __tmp; 27002: } 27002: else 27002: return _M_param._M_int; 27002: } 27002: 27002: 27002: 27002: 27002: std::vector 27002: densities() const 27002: { 27002: return _M_param._M_den.empty() 27002: ? std::vector(1, 1.0) : _M_param._M_den; 27002: } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { 27002: return _M_param._M_int.empty() 27002: ? result_type(0) : _M_param._M_int.front(); 27002: } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { 27002: return _M_param._M_int.empty() 27002: ? result_type(1) : _M_param._M_int.back(); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const piecewise_constant_distribution& __d1, 27002: const piecewise_constant_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: # 5738 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::piecewise_constant_distribution<_RealType1>& __x); 27002: # 5754 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::piecewise_constant_distribution<_RealType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::piecewise_constant_distribution<_RealType>& __d1, 27002: const std::piecewise_constant_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 5787 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: class piecewise_linear_distribution 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "result_type must be a floating point type"); 27002: 27002: public: 27002: 27002: typedef _RealType result_type; 27002: 27002: 27002: struct param_type 27002: { 27002: typedef piecewise_linear_distribution<_RealType> distribution_type; 27002: friend class piecewise_linear_distribution<_RealType>; 27002: 27002: param_type() 27002: : _M_int(), _M_den(), _M_cp(), _M_m() 27002: { } 27002: 27002: template 27002: param_type(_InputIteratorB __bfirst, 27002: _InputIteratorB __bend, 27002: _InputIteratorW __wbegin); 27002: 27002: template 27002: param_type(initializer_list<_RealType> __bl, _Func __fw); 27002: 27002: template 27002: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 27002: _Func __fw); 27002: 27002: 27002: param_type(const param_type&) = default; 27002: param_type& operator=(const param_type&) = default; 27002: 27002: std::vector<_RealType> 27002: intervals() const 27002: { 27002: if (_M_int.empty()) 27002: { 27002: std::vector<_RealType> __tmp(2); 27002: __tmp[1] = _RealType(1); 27002: return __tmp; 27002: } 27002: else 27002: return _M_int; 27002: } 27002: 27002: std::vector 27002: densities() const 27002: { return _M_den.empty() ? std::vector(2, 1.0) : _M_den; } 27002: 27002: friend bool 27002: operator==(const param_type& __p1, const param_type& __p2) 27002: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 27002: 27002: friend bool 27002: operator!=(const param_type& __p1, const param_type& __p2) 27002: { return !(__p1 == __p2); } 27002: 27002: private: 27002: void 27002: _M_initialize(); 27002: 27002: std::vector<_RealType> _M_int; 27002: std::vector _M_den; 27002: std::vector _M_cp; 27002: std::vector _M_m; 27002: }; 27002: 27002: piecewise_linear_distribution() 27002: : _M_param() 27002: { } 27002: 27002: template 27002: piecewise_linear_distribution(_InputIteratorB __bfirst, 27002: _InputIteratorB __bend, 27002: _InputIteratorW __wbegin) 27002: : _M_param(__bfirst, __bend, __wbegin) 27002: { } 27002: 27002: template 27002: piecewise_linear_distribution(initializer_list<_RealType> __bl, 27002: _Func __fw) 27002: : _M_param(__bl, __fw) 27002: { } 27002: 27002: template 27002: piecewise_linear_distribution(size_t __nw, 27002: _RealType __xmin, _RealType __xmax, 27002: _Func __fw) 27002: : _M_param(__nw, __xmin, __xmax, __fw) 27002: { } 27002: 27002: explicit 27002: piecewise_linear_distribution(const param_type& __p) 27002: : _M_param(__p) 27002: { } 27002: 27002: 27002: 27002: 27002: void 27002: reset() 27002: { } 27002: 27002: 27002: 27002: 27002: std::vector<_RealType> 27002: intervals() const 27002: { 27002: if (_M_param._M_int.empty()) 27002: { 27002: std::vector<_RealType> __tmp(2); 27002: __tmp[1] = _RealType(1); 27002: return __tmp; 27002: } 27002: else 27002: return _M_param._M_int; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: std::vector 27002: densities() const 27002: { 27002: return _M_param._M_den.empty() 27002: ? std::vector(2, 1.0) : _M_param._M_den; 27002: } 27002: 27002: 27002: 27002: 27002: param_type 27002: param() const 27002: { return _M_param; } 27002: 27002: 27002: 27002: 27002: 27002: void 27002: param(const param_type& __param) 27002: { _M_param = __param; } 27002: 27002: 27002: 27002: 27002: result_type 27002: min() const 27002: { 27002: return _M_param._M_int.empty() 27002: ? result_type(0) : _M_param._M_int.front(); 27002: } 27002: 27002: 27002: 27002: 27002: result_type 27002: max() const 27002: { 27002: return _M_param._M_int.empty() 27002: ? result_type(1) : _M_param._M_int.back(); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { return this->operator()(__urng, _M_param); } 27002: 27002: template 27002: result_type 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { this->__generate(__f, __t, __urng, _M_param); } 27002: 27002: template 27002: void 27002: __generate(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: template 27002: void 27002: __generate(result_type* __f, result_type* __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { this->__generate_impl(__f, __t, __urng, __p); } 27002: 27002: 27002: 27002: 27002: 27002: friend bool 27002: operator==(const piecewise_linear_distribution& __d1, 27002: const piecewise_linear_distribution& __d2) 27002: { return __d1._M_param == __d2._M_param; } 27002: # 6011 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const std::piecewise_linear_distribution<_RealType1>& __x); 27002: # 6027 "/usr/include/c++/12/bits/random.h" 3 27002: template 27002: friend std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: std::piecewise_linear_distribution<_RealType1>& __x); 27002: 27002: private: 27002: template 27002: void 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p); 27002: 27002: param_type _M_param; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const std::piecewise_linear_distribution<_RealType>& __d1, 27002: const std::piecewise_linear_distribution<_RealType>& __d2) 27002: { return !(__d1 == __d2); } 27002: # 6068 "/usr/include/c++/12/bits/random.h" 3 27002: class seed_seq 27002: { 27002: public: 27002: 27002: typedef uint_least32_t result_type; 27002: 27002: 27002: seed_seq() noexcept 27002: : _M_v() 27002: { } 27002: 27002: template>> 27002: seed_seq(std::initializer_list<_IntType> __il); 27002: 27002: template 27002: seed_seq(_InputIterator __begin, _InputIterator __end); 27002: 27002: 27002: template 27002: void 27002: generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); 27002: 27002: 27002: size_t size() const noexcept 27002: { return _M_v.size(); } 27002: 27002: template 27002: void 27002: param(_OutputIterator __dest) const 27002: { std::copy(_M_v.begin(), _M_v.end(), __dest); } 27002: 27002: 27002: seed_seq(const seed_seq&) = delete; 27002: seed_seq& operator=(const seed_seq&) = delete; 27002: 27002: private: 27002: std::vector _M_v; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 50 "/usr/include/c++/12/random" 2 3 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/opt_random.h" 1 3 27002: # 33 "/usr/include/arm-linux-gnueabihf/c++/12/bits/opt_random.h" 3 27002: 27002: # 34 "/usr/include/arm-linux-gnueabihf/c++/12/bits/opt_random.h" 3 27002: # 51 "/usr/include/c++/12/random" 2 3 27002: # 1 "/usr/include/c++/12/bits/random.tcc" 1 3 27002: # 33 "/usr/include/c++/12/bits/random.tcc" 3 27002: # 1 "/usr/include/c++/12/numeric" 1 3 27002: # 58 "/usr/include/c++/12/numeric" 3 27002: 27002: # 59 "/usr/include/c++/12/numeric" 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/stl_numeric.h" 1 3 27002: # 64 "/usr/include/c++/12/bits/stl_numeric.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 85 "/usr/include/c++/12/bits/stl_numeric.h" 3 27002: template 27002: 27002: void 27002: iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first != __last; ++__first) 27002: { 27002: *__first = __value; 27002: ++__value; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: # 131 "/usr/include/c++/12/bits/stl_numeric.h" 3 27002: template 27002: 27002: inline _Tp 27002: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) 27002: { 27002: 27002: 27002: ; 27002: 27002: for (; __first != __last; ++__first) 27002: __init = __init + *__first; 27002: return __init; 27002: } 27002: # 158 "/usr/include/c++/12/bits/stl_numeric.h" 3 27002: template 27002: 27002: inline _Tp 27002: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, 27002: _BinaryOperation __binary_op) 27002: { 27002: 27002: 27002: ; 27002: 27002: for (; __first != __last; ++__first) 27002: __init = __binary_op(__init, *__first); 27002: return __init; 27002: } 27002: # 187 "/usr/include/c++/12/bits/stl_numeric.h" 3 27002: template 27002: 27002: inline _Tp 27002: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _Tp __init) 27002: { 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first1 != __last1; ++__first1, (void)++__first2) 27002: __init = __init + (*__first1 * *__first2); 27002: return __init; 27002: } 27002: # 219 "/usr/include/c++/12/bits/stl_numeric.h" 3 27002: template 27002: 27002: inline _Tp 27002: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _Tp __init, 27002: _BinaryOperation1 __binary_op1, 27002: _BinaryOperation2 __binary_op2) 27002: { 27002: 27002: 27002: 27002: ; 27002: 27002: for (; __first1 != __last1; ++__first1, (void)++__first2) 27002: __init = __binary_op1(__init, 27002: __binary_op2(*__first1, *__first2)); 27002: return __init; 27002: } 27002: # 253 "/usr/include/c++/12/bits/stl_numeric.h" 3 27002: template 27002: 27002: _OutputIterator 27002: partial_sum(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result) 27002: { 27002: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: if (__first == __last) 27002: return __result; 27002: _ValueType __value = *__first; 27002: *__result = __value; 27002: while (++__first != __last) 27002: { 27002: __value = __value + *__first; 27002: *++__result = __value; 27002: } 27002: return ++__result; 27002: } 27002: # 294 "/usr/include/c++/12/bits/stl_numeric.h" 3 27002: template 27002: 27002: _OutputIterator 27002: partial_sum(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _BinaryOperation __binary_op) 27002: { 27002: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: if (__first == __last) 27002: return __result; 27002: _ValueType __value = *__first; 27002: *__result = __value; 27002: while (++__first != __last) 27002: { 27002: __value = __binary_op(__value, *__first); 27002: *++__result = __value; 27002: } 27002: return ++__result; 27002: } 27002: # 335 "/usr/include/c++/12/bits/stl_numeric.h" 3 27002: template 27002: 27002: _OutputIterator 27002: adjacent_difference(_InputIterator __first, 27002: _InputIterator __last, _OutputIterator __result) 27002: { 27002: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: if (__first == __last) 27002: return __result; 27002: _ValueType __value = *__first; 27002: *__result = __value; 27002: while (++__first != __last) 27002: { 27002: _ValueType __tmp = *__first; 27002: *++__result = __tmp - __value; 27002: __value = std::move(__tmp); 27002: } 27002: return ++__result; 27002: } 27002: # 378 "/usr/include/c++/12/bits/stl_numeric.h" 3 27002: template 27002: 27002: _OutputIterator 27002: adjacent_difference(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _BinaryOperation __binary_op) 27002: { 27002: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 27002: 27002: 27002: 27002: 27002: 27002: ; 27002: 27002: if (__first == __last) 27002: return __result; 27002: _ValueType __value = *__first; 27002: *__result = __value; 27002: while (++__first != __last) 27002: { 27002: _ValueType __tmp = *__first; 27002: *++__result = __binary_op(__tmp, __value); 27002: __value = std::move(__tmp); 27002: } 27002: return ++__result; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 63 "/usr/include/c++/12/numeric" 2 3 27002: # 90 "/usr/include/c++/12/numeric" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: namespace __detail 27002: { 27002: 27002: 27002: template 27002: constexpr _Res 27002: __abs_r(_Tp __val) 27002: { 27002: static_assert(sizeof(_Res) >= sizeof(_Tp), 27002: "result type must be at least as wide as the input type"); 27002: 27002: if (__val >= 0) 27002: return __val; 27002: 27002: 27002: 27002: 27002: return -static_cast<_Res>(__val); 27002: } 27002: 27002: template void __abs_r(bool) = delete; 27002: 27002: 27002: template 27002: constexpr _Tp 27002: __gcd(_Tp __m, _Tp __n) 27002: { 27002: static_assert(is_unsigned<_Tp>::value, "type must be unsigned"); 27002: 27002: if (__m == 0) 27002: return __n; 27002: if (__n == 0) 27002: return __m; 27002: 27002: const int __i = std::__countr_zero(__m); 27002: __m >>= __i; 27002: const int __j = std::__countr_zero(__n); 27002: __n >>= __j; 27002: const int __k = __i < __j ? __i : __j; 27002: 27002: while (true) 27002: { 27002: if (__m > __n) 27002: { 27002: _Tp __tmp = __m; 27002: __m = __n; 27002: __n = __tmp; 27002: } 27002: 27002: __n -= __m; 27002: 27002: if (__n == 0) 27002: return __m << __k; 27002: 27002: __n >>= std::__countr_zero(__n); 27002: } 27002: } 27002: } 27002: # 162 "/usr/include/c++/12/numeric" 3 27002: template 27002: constexpr common_type_t<_Mn, _Nn> 27002: gcd(_Mn __m, _Nn __n) noexcept 27002: { 27002: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 27002: "std::gcd arguments must be integers"); 27002: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 27002: "std::gcd arguments must not be bool"); 27002: using _Ct = common_type_t<_Mn, _Nn>; 27002: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 27002: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 27002: return __detail::__gcd>(__m2, __n2); 27002: } 27002: 27002: 27002: template 27002: constexpr common_type_t<_Mn, _Nn> 27002: lcm(_Mn __m, _Nn __n) noexcept 27002: { 27002: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 27002: "std::lcm arguments must be integers"); 27002: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 27002: "std::lcm arguments must not be bool"); 27002: using _Ct = common_type_t<_Mn, _Nn>; 27002: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 27002: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 27002: if (__m2 == 0 || __n2 == 0) 27002: return 0; 27002: _Ct __r = __m2 / __detail::__gcd>(__m2, __n2); 27002: 27002: if constexpr (is_signed_v<_Ct>) 27002: if (__is_constant_evaluated()) 27002: return __r * __n2; 27002: 27002: bool __overflow = __builtin_mul_overflow(__r, __n2, &__r); 27002: do { if (std::__is_constant_evaluated() && !bool(!__overflow)) __builtin_unreachable(); } while (false); 27002: return __r; 27002: } 27002: # 284 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: _Tp 27002: reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 27002: _BinaryOperation __binary_op) 27002: { 27002: using __ref = typename iterator_traits<_InputIterator>::reference; 27002: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, __ref>); 27002: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, _Tp&>); 27002: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, _Tp&>); 27002: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, __ref>); 27002: if constexpr (__is_random_access_iter<_InputIterator>::value) 27002: { 27002: while ((__last - __first) >= 4) 27002: { 27002: _Tp __v1 = __binary_op(__first[0], __first[1]); 27002: _Tp __v2 = __binary_op(__first[2], __first[3]); 27002: _Tp __v3 = __binary_op(__v1, __v2); 27002: __init = __binary_op(__init, __v3); 27002: __first += 4; 27002: } 27002: } 27002: for (; __first != __last; ++__first) 27002: __init = __binary_op(__init, *__first); 27002: return __init; 27002: } 27002: # 322 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: inline _Tp 27002: reduce(_InputIterator __first, _InputIterator __last, _Tp __init) 27002: { return std::reduce(__first, __last, std::move(__init), plus<>()); } 27002: # 339 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: inline typename iterator_traits<_InputIterator>::value_type 27002: reduce(_InputIterator __first, _InputIterator __last) 27002: { 27002: using value_type = typename iterator_traits<_InputIterator>::value_type; 27002: return std::reduce(__first, __last, value_type{}, plus<>()); 27002: } 27002: # 366 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: _Tp 27002: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _Tp __init, 27002: _BinaryOperation1 __binary_op1, 27002: _BinaryOperation2 __binary_op2) 27002: { 27002: if constexpr (__and_v<__is_random_access_iter<_InputIterator1>, 27002: __is_random_access_iter<_InputIterator2>>) 27002: { 27002: while ((__last1 - __first1) >= 4) 27002: { 27002: _Tp __v1 = __binary_op1(__binary_op2(__first1[0], __first2[0]), 27002: __binary_op2(__first1[1], __first2[1])); 27002: _Tp __v2 = __binary_op1(__binary_op2(__first1[2], __first2[2]), 27002: __binary_op2(__first1[3], __first2[3])); 27002: _Tp __v3 = __binary_op1(__v1, __v2); 27002: __init = __binary_op1(__init, __v3); 27002: __first1 += 4; 27002: __first2 += 4; 27002: } 27002: } 27002: for (; __first1 != __last1; ++__first1, (void) ++__first2) 27002: __init = __binary_op1(__init, __binary_op2(*__first1, *__first2)); 27002: return __init; 27002: } 27002: # 410 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: inline _Tp 27002: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 27002: _InputIterator2 __first2, _Tp __init) 27002: { 27002: return std::transform_reduce(__first1, __last1, __first2, 27002: std::move(__init), 27002: plus<>(), multiplies<>()); 27002: } 27002: # 435 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: _Tp 27002: transform_reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 27002: _BinaryOperation __binary_op, _UnaryOperation __unary_op) 27002: { 27002: if constexpr (__is_random_access_iter<_InputIterator>::value) 27002: { 27002: while ((__last - __first) >= 4) 27002: { 27002: _Tp __v1 = __binary_op(__unary_op(__first[0]), 27002: __unary_op(__first[1])); 27002: _Tp __v2 = __binary_op(__unary_op(__first[2]), 27002: __unary_op(__first[3])); 27002: _Tp __v3 = __binary_op(__v1, __v2); 27002: __init = __binary_op(__init, __v3); 27002: __first += 4; 27002: } 27002: } 27002: for (; __first != __last; ++__first) 27002: __init = __binary_op(__init, __unary_op(*__first)); 27002: return __init; 27002: } 27002: # 478 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: _OutputIterator 27002: exclusive_scan(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _Tp __init, 27002: _BinaryOperation __binary_op) 27002: { 27002: while (__first != __last) 27002: { 27002: auto __v = __init; 27002: __init = __binary_op(__init, *__first); 27002: ++__first; 27002: *__result++ = std::move(__v); 27002: } 27002: return __result; 27002: } 27002: # 513 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: inline _OutputIterator 27002: exclusive_scan(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _Tp __init) 27002: { 27002: return std::exclusive_scan(__first, __last, __result, std::move(__init), 27002: plus<>()); 27002: } 27002: # 541 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: _OutputIterator 27002: inclusive_scan(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _BinaryOperation __binary_op, 27002: _Tp __init) 27002: { 27002: for (; __first != __last; ++__first) 27002: *__result++ = __init = __binary_op(__init, *__first); 27002: return __result; 27002: } 27002: # 570 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: _OutputIterator 27002: inclusive_scan(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _BinaryOperation __binary_op) 27002: { 27002: if (__first != __last) 27002: { 27002: auto __init = *__first; 27002: *__result++ = __init; 27002: ++__first; 27002: if (__first != __last) 27002: __result = std::inclusive_scan(__first, __last, __result, 27002: __binary_op, std::move(__init)); 27002: } 27002: return __result; 27002: } 27002: # 604 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: inline _OutputIterator 27002: inclusive_scan(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result) 27002: { return std::inclusive_scan(__first, __last, __result, plus<>()); } 27002: # 631 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: _OutputIterator 27002: transform_exclusive_scan(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, _Tp __init, 27002: _BinaryOperation __binary_op, 27002: _UnaryOperation __unary_op) 27002: { 27002: while (__first != __last) 27002: { 27002: auto __v = __init; 27002: __init = __binary_op(__init, __unary_op(*__first)); 27002: ++__first; 27002: *__result++ = std::move(__v); 27002: } 27002: return __result; 27002: } 27002: # 670 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: _OutputIterator 27002: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, 27002: _BinaryOperation __binary_op, 27002: _UnaryOperation __unary_op, 27002: _Tp __init) 27002: { 27002: for (; __first != __last; ++__first) 27002: *__result++ = __init = __binary_op(__init, __unary_op(*__first)); 27002: return __result; 27002: } 27002: # 704 "/usr/include/c++/12/numeric" 3 27002: template 27002: 27002: _OutputIterator 27002: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, 27002: _BinaryOperation __binary_op, 27002: _UnaryOperation __unary_op) 27002: { 27002: if (__first != __last) 27002: { 27002: auto __init = __unary_op(*__first); 27002: *__result++ = __init; 27002: ++__first; 27002: if (__first != __last) 27002: __result = std::transform_inclusive_scan(__first, __last, __result, 27002: __binary_op, __unary_op, 27002: std::move(__init)); 27002: } 27002: return __result; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 739 "/usr/include/c++/12/numeric" 3 27002: # 1 "/usr/include/c++/12/pstl/glue_numeric_defs.h" 1 3 27002: # 15 "/usr/include/c++/12/pstl/glue_numeric_defs.h" 3 27002: namespace std 27002: { 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 27002: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 27002: _BinaryOperation __binary_op); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 27002: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 27002: typename iterator_traits<_ForwardIterator>::value_type> 27002: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 27002: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _Tp __init); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 27002: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 27002: _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, 27002: _BinaryOperation2 __binary_op2); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 27002: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 27002: _BinaryOperation __binary_op, _UnaryOperation __unary_op); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result, _Tp __init); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result, _BinaryOperation __binary_op); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: transform_exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, 27002: _UnaryOperation __unary_op); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, 27002: _Tp __init); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op); 27002: 27002: 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __d_first, _BinaryOperation op); 27002: 27002: template 27002: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 27002: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 27002: _ForwardIterator2 __d_first); 27002: 27002: } 27002: # 740 "/usr/include/c++/12/numeric" 2 3 27002: # 34 "/usr/include/c++/12/bits/random.tcc" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: namespace __detail 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: _Tp 27002: _Mod<_Tp, __m, __a, __c, false, true>:: 27002: __calc(_Tp __x) 27002: { 27002: if (__a == 1) 27002: __x %= __m; 27002: else 27002: { 27002: static const _Tp __q = __m / __a; 27002: static const _Tp __r = __m % __a; 27002: 27002: _Tp __t1 = __a * (__x % __q); 27002: _Tp __t2 = __r * (__x / __q); 27002: if (__t1 >= __t2) 27002: __x = __t1 - __t2; 27002: else 27002: __x = __m - __t2 + __t1; 27002: } 27002: 27002: if (__c != 0) 27002: { 27002: const _Tp __d = __m - __x; 27002: if (__d > __c) 27002: __x += __c; 27002: else 27002: __x = __c - __d; 27002: } 27002: return __x; 27002: } 27002: 27002: template 27002: _OutputIterator 27002: __normalize(_InputIterator __first, _InputIterator __last, 27002: _OutputIterator __result, const _Tp& __factor) 27002: { 27002: for (; __first != __last; ++__first, ++__result) 27002: *__result = *__first / __factor; 27002: return __result; 27002: } 27002: 27002: } 27002: # 116 "/usr/include/c++/12/bits/random.tcc" 3 27002: template 27002: void 27002: linear_congruential_engine<_UIntType, __a, __c, __m>:: 27002: seed(result_type __s) 27002: { 27002: if ((__detail::__mod<_UIntType, __m>(__c) == 0) 27002: && (__detail::__mod<_UIntType, __m>(__s) == 0)) 27002: _M_x = 1; 27002: else 27002: _M_x = __detail::__mod<_UIntType, __m>(__s); 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: template 27002: auto 27002: linear_congruential_engine<_UIntType, __a, __c, __m>:: 27002: seed(_Sseq& __q) 27002: -> _If_seed_seq<_Sseq> 27002: { 27002: const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits 27002: : std::__lg(__m); 27002: const _UIntType __k = (__k0 + 31) / 32; 27002: uint_least32_t __arr[__k + 3]; 27002: __q.generate(__arr + 0, __arr + __k + 3); 27002: _UIntType __factor = 1u; 27002: _UIntType __sum = 0u; 27002: for (size_t __j = 0; __j < __k; ++__j) 27002: { 27002: __sum += __arr[__j + 3] * __factor; 27002: __factor *= __detail::_Shift<_UIntType, 32>::__value; 27002: } 27002: seed(__sum); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const linear_congruential_engine<_UIntType, 27002: __a, __c, __m>& __lcr) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 27002: __os.fill(__os.widen(' ')); 27002: 27002: __os << __lcr._M_x; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: linear_congruential_engine<_UIntType, __a, __c, __m>& __lcr) 27002: { 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec); 27002: 27002: __is >> __lcr._M_x; 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: # 320 "/usr/include/c++/12/bits/random.tcc" 3 27002: template 27002: void 27002: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 27002: __s, __b, __t, __c, __l, __f>:: 27002: seed(result_type __sd) 27002: { 27002: _M_x[0] = __detail::__mod<_UIntType, 27002: __detail::_Shift<_UIntType, __w>::__value>(__sd); 27002: 27002: for (size_t __i = 1; __i < state_size; ++__i) 27002: { 27002: _UIntType __x = _M_x[__i - 1]; 27002: __x ^= __x >> (__w - 2); 27002: __x *= __f; 27002: __x += __detail::__mod<_UIntType, __n>(__i); 27002: _M_x[__i] = __detail::__mod<_UIntType, 27002: __detail::_Shift<_UIntType, __w>::__value>(__x); 27002: } 27002: _M_p = state_size; 27002: } 27002: 27002: template 27002: template 27002: auto 27002: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 27002: __s, __b, __t, __c, __l, __f>:: 27002: seed(_Sseq& __q) 27002: -> _If_seed_seq<_Sseq> 27002: { 27002: const _UIntType __upper_mask = (~_UIntType()) << __r; 27002: const size_t __k = (__w + 31) / 32; 27002: uint_least32_t __arr[__n * __k]; 27002: __q.generate(__arr + 0, __arr + __n * __k); 27002: 27002: bool __zero = true; 27002: for (size_t __i = 0; __i < state_size; ++__i) 27002: { 27002: _UIntType __factor = 1u; 27002: _UIntType __sum = 0u; 27002: for (size_t __j = 0; __j < __k; ++__j) 27002: { 27002: __sum += __arr[__k * __i + __j] * __factor; 27002: __factor *= __detail::_Shift<_UIntType, 32>::__value; 27002: } 27002: _M_x[__i] = __detail::__mod<_UIntType, 27002: __detail::_Shift<_UIntType, __w>::__value>(__sum); 27002: 27002: if (__zero) 27002: { 27002: if (__i == 0) 27002: { 27002: if ((_M_x[0] & __upper_mask) != 0u) 27002: __zero = false; 27002: } 27002: else if (_M_x[__i] != 0u) 27002: __zero = false; 27002: } 27002: } 27002: if (__zero) 27002: _M_x[0] = __detail::_Shift<_UIntType, __w - 1>::__value; 27002: _M_p = state_size; 27002: } 27002: 27002: template 27002: void 27002: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 27002: __s, __b, __t, __c, __l, __f>:: 27002: _M_gen_rand(void) 27002: { 27002: const _UIntType __upper_mask = (~_UIntType()) << __r; 27002: const _UIntType __lower_mask = ~__upper_mask; 27002: 27002: for (size_t __k = 0; __k < (__n - __m); ++__k) 27002: { 27002: _UIntType __y = ((_M_x[__k] & __upper_mask) 27002: | (_M_x[__k + 1] & __lower_mask)); 27002: _M_x[__k] = (_M_x[__k + __m] ^ (__y >> 1) 27002: ^ ((__y & 0x01) ? __a : 0)); 27002: } 27002: 27002: for (size_t __k = (__n - __m); __k < (__n - 1); ++__k) 27002: { 27002: _UIntType __y = ((_M_x[__k] & __upper_mask) 27002: | (_M_x[__k + 1] & __lower_mask)); 27002: _M_x[__k] = (_M_x[__k + (__m - __n)] ^ (__y >> 1) 27002: ^ ((__y & 0x01) ? __a : 0)); 27002: } 27002: 27002: _UIntType __y = ((_M_x[__n - 1] & __upper_mask) 27002: | (_M_x[0] & __lower_mask)); 27002: _M_x[__n - 1] = (_M_x[__m - 1] ^ (__y >> 1) 27002: ^ ((__y & 0x01) ? __a : 0)); 27002: _M_p = 0; 27002: } 27002: 27002: template 27002: void 27002: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 27002: __s, __b, __t, __c, __l, __f>:: 27002: discard(unsigned long long __z) 27002: { 27002: while (__z > state_size - _M_p) 27002: { 27002: __z -= state_size - _M_p; 27002: _M_gen_rand(); 27002: } 27002: _M_p += __z; 27002: } 27002: 27002: template 27002: typename 27002: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 27002: __s, __b, __t, __c, __l, __f>::result_type 27002: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 27002: __s, __b, __t, __c, __l, __f>:: 27002: operator()() 27002: { 27002: 27002: if (_M_p >= state_size) 27002: _M_gen_rand(); 27002: 27002: 27002: result_type __z = _M_x[_M_p++]; 27002: __z ^= (__z >> __u) & __d; 27002: __z ^= (__z << __s) & __b; 27002: __z ^= (__z << __t) & __c; 27002: __z ^= (__z >> __l); 27002: 27002: return __z; 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const mersenne_twister_engine<_UIntType, __w, __n, __m, 27002: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 27002: __os.fill(__space); 27002: 27002: for (size_t __i = 0; __i < __n; ++__i) 27002: __os << __x._M_x[__i] << __space; 27002: __os << __x._M_p; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: mersenne_twister_engine<_UIntType, __w, __n, __m, 27002: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 27002: { 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: for (size_t __i = 0; __i < __n; ++__i) 27002: __is >> __x._M_x[__i]; 27002: __is >> __x._M_p; 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: # 539 "/usr/include/c++/12/bits/random.tcc" 3 27002: template 27002: void 27002: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 27002: seed(result_type __value) 27002: { 27002: std::linear_congruential_engine 27002: __lcg(__value == 0u ? default_seed : __value); 27002: 27002: const size_t __n = (__w + 31) / 32; 27002: 27002: for (size_t __i = 0; __i < long_lag; ++__i) 27002: { 27002: _UIntType __sum = 0u; 27002: _UIntType __factor = 1u; 27002: for (size_t __j = 0; __j < __n; ++__j) 27002: { 27002: __sum += __detail::__mod::__value> 27002: (__lcg()) * __factor; 27002: __factor *= __detail::_Shift<_UIntType, 32>::__value; 27002: } 27002: _M_x[__i] = __detail::__mod<_UIntType, 27002: __detail::_Shift<_UIntType, __w>::__value>(__sum); 27002: } 27002: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 27002: _M_p = 0; 27002: } 27002: 27002: template 27002: template 27002: auto 27002: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 27002: seed(_Sseq& __q) 27002: -> _If_seed_seq<_Sseq> 27002: { 27002: const size_t __k = (__w + 31) / 32; 27002: uint_least32_t __arr[__r * __k]; 27002: __q.generate(__arr + 0, __arr + __r * __k); 27002: 27002: for (size_t __i = 0; __i < long_lag; ++__i) 27002: { 27002: _UIntType __sum = 0u; 27002: _UIntType __factor = 1u; 27002: for (size_t __j = 0; __j < __k; ++__j) 27002: { 27002: __sum += __arr[__k * __i + __j] * __factor; 27002: __factor *= __detail::_Shift<_UIntType, 32>::__value; 27002: } 27002: _M_x[__i] = __detail::__mod<_UIntType, 27002: __detail::_Shift<_UIntType, __w>::__value>(__sum); 27002: } 27002: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 27002: _M_p = 0; 27002: } 27002: 27002: template 27002: typename subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 27002: result_type 27002: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 27002: operator()() 27002: { 27002: 27002: long __ps = _M_p - short_lag; 27002: if (__ps < 0) 27002: __ps += long_lag; 27002: 27002: 27002: 27002: 27002: _UIntType __xi; 27002: if (_M_x[__ps] >= _M_x[_M_p] + _M_carry) 27002: { 27002: __xi = _M_x[__ps] - _M_x[_M_p] - _M_carry; 27002: _M_carry = 0; 27002: } 27002: else 27002: { 27002: __xi = (__detail::_Shift<_UIntType, __w>::__value 27002: - _M_x[_M_p] - _M_carry + _M_x[__ps]); 27002: _M_carry = 1; 27002: } 27002: _M_x[_M_p] = __xi; 27002: 27002: 27002: if (++_M_p >= long_lag) 27002: _M_p = 0; 27002: 27002: return __xi; 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const subtract_with_carry_engine<_UIntType, 27002: __w, __s, __r>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 27002: __os.fill(__space); 27002: 27002: for (size_t __i = 0; __i < __r; ++__i) 27002: __os << __x._M_x[__i] << __space; 27002: __os << __x._M_carry << __space << __x._M_p; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: subtract_with_carry_engine<_UIntType, __w, __s, __r>& __x) 27002: { 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: for (size_t __i = 0; __i < __r; ++__i) 27002: __is >> __x._M_x[__i]; 27002: __is >> __x._M_carry; 27002: __is >> __x._M_p; 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: # 683 "/usr/include/c++/12/bits/random.tcc" 3 27002: template 27002: typename discard_block_engine<_RandomNumberEngine, 27002: __p, __r>::result_type 27002: discard_block_engine<_RandomNumberEngine, __p, __r>:: 27002: operator()() 27002: { 27002: if (_M_n >= used_block) 27002: { 27002: _M_b.discard(block_size - _M_n); 27002: _M_n = 0; 27002: } 27002: ++_M_n; 27002: return _M_b(); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const discard_block_engine<_RandomNumberEngine, 27002: __p, __r>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 27002: __os.fill(__space); 27002: 27002: __os << __x.base() << __space << __x._M_n; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: discard_block_engine<_RandomNumberEngine, __p, __r>& __x) 27002: { 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: __is >> __x._M_b >> __x._M_n; 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: typename independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 27002: result_type 27002: independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 27002: operator()() 27002: { 27002: typedef typename _RandomNumberEngine::result_type _Eresult_type; 27002: const _Eresult_type __r 27002: = (_M_b.max() - _M_b.min() < std::numeric_limits<_Eresult_type>::max() 27002: ? _M_b.max() - _M_b.min() + 1 : 0); 27002: const unsigned __edig = std::numeric_limits<_Eresult_type>::digits; 27002: const unsigned __m = __r ? std::__lg(__r) : __edig; 27002: 27002: typedef typename std::common_type<_Eresult_type, result_type>::type 27002: __ctype; 27002: const unsigned __cdig = std::numeric_limits<__ctype>::digits; 27002: 27002: unsigned __n, __n0; 27002: __ctype __s0, __s1, __y0, __y1; 27002: 27002: for (size_t __i = 0; __i < 2; ++__i) 27002: { 27002: __n = (__w + __m - 1) / __m + __i; 27002: __n0 = __n - __w % __n; 27002: const unsigned __w0 = __w / __n; 27002: 27002: __s0 = 0; 27002: __s1 = 0; 27002: if (__w0 < __cdig) 27002: { 27002: __s0 = __ctype(1) << __w0; 27002: __s1 = __s0 << 1; 27002: } 27002: 27002: __y0 = 0; 27002: __y1 = 0; 27002: if (__r) 27002: { 27002: __y0 = __s0 * (__r / __s0); 27002: if (__s1) 27002: __y1 = __s1 * (__r / __s1); 27002: 27002: if (__r - __y0 <= __y0 / __n) 27002: break; 27002: } 27002: else 27002: break; 27002: } 27002: 27002: result_type __sum = 0; 27002: for (size_t __k = 0; __k < __n0; ++__k) 27002: { 27002: __ctype __u; 27002: do 27002: __u = _M_b() - _M_b.min(); 27002: while (__y0 && __u >= __y0); 27002: __sum = __s0 * __sum + (__s0 ? __u % __s0 : __u); 27002: } 27002: for (size_t __k = __n0; __k < __n; ++__k) 27002: { 27002: __ctype __u; 27002: do 27002: __u = _M_b() - _M_b.min(); 27002: while (__y1 && __u >= __y1); 27002: __sum = __s1 * __sum + (__s1 ? __u % __s1 : __u); 27002: } 27002: return __sum; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace __detail 27002: { 27002: 27002: template 27002: constexpr bool 27002: __representable_as_double(_Tp __x) noexcept 27002: { 27002: static_assert(numeric_limits<_Tp>::is_integer, ""); 27002: static_assert(!numeric_limits<_Tp>::is_signed, ""); 27002: 27002: return (__x <= (1ull << 53)) 27002: 27002: || (!(__x & 1) && __detail::__representable_as_double(__x >> 1)); 27002: } 27002: 27002: 27002: template 27002: constexpr bool 27002: __p1_representable_as_double(_Tp __x) noexcept 27002: { 27002: static_assert(numeric_limits<_Tp>::is_integer, ""); 27002: static_assert(!numeric_limits<_Tp>::is_signed, ""); 27002: return numeric_limits<_Tp>::digits < 53 27002: || (bool(__x + 1u) 27002: && __detail::__representable_as_double(__x + 1u)); 27002: } 27002: } 27002: 27002: template 27002: typename shuffle_order_engine<_RandomNumberEngine, __k>::result_type 27002: shuffle_order_engine<_RandomNumberEngine, __k>:: 27002: operator()() 27002: { 27002: constexpr result_type __range = max() - min(); 27002: size_t __j = __k; 27002: const result_type __y = _M_y - min(); 27002: 27002: if constexpr (__detail::__p1_representable_as_double(__range)) 27002: __j *= __y / (__range + 1.0); 27002: else 27002: __j *= __y / (__range + 1.0L); 27002: _M_y = _M_v[__j]; 27002: _M_v[__j] = _M_b(); 27002: 27002: return _M_y; 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const shuffle_order_engine<_RandomNumberEngine, __k>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 27002: __os.fill(__space); 27002: 27002: __os << __x.base(); 27002: for (size_t __i = 0; __i < __k; ++__i) 27002: __os << __space << __x._M_v[__i]; 27002: __os << __space << __x._M_y; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: shuffle_order_engine<_RandomNumberEngine, __k>& __x) 27002: { 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: __is >> __x._M_b; 27002: for (size_t __i = 0; __i < __k; ++__i) 27002: __is >> __x._M_v[__i]; 27002: __is >> __x._M_y; 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const uniform_int_distribution<_IntType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: 27002: __os << __x.a() << __space << __x.b(); 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: uniform_int_distribution<_IntType>& __x) 27002: { 27002: using param_type 27002: = typename uniform_int_distribution<_IntType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _IntType __a, __b; 27002: if (__is >> __a >> __b) 27002: __x.param(param_type(__a, __b)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: template 27002: void 27002: uniform_real_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: auto __range = __p.b() - __p.a(); 27002: while (__f != __t) 27002: *__f++ = __aurng() * __range + __p.a(); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const uniform_real_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.a() << __space << __x.b(); 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: uniform_real_distribution<_RealType>& __x) 27002: { 27002: using param_type 27002: = typename uniform_real_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::skipws); 27002: 27002: _RealType __a, __b; 27002: if (__is >> __a >> __b) 27002: __x.param(param_type(__a, __b)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: void 27002: std::bernoulli_distribution:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: auto __limit = __p.p() * (__aurng.max() - __aurng.min()); 27002: 27002: while (__f != __t) 27002: *__f++ = (__aurng() - __aurng.min()) < __limit; 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const bernoulli_distribution& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__os.widen(' ')); 27002: __os.precision(std::numeric_limits::max_digits10); 27002: 27002: __os << __x.p(); 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: 27002: template 27002: template 27002: typename geometric_distribution<_IntType>::result_type 27002: geometric_distribution<_IntType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: 27002: 27002: const double __naf = 27002: (1 - std::numeric_limits::epsilon()) / 2; 27002: 27002: const double __thr = 27002: std::numeric_limits<_IntType>::max() + __naf; 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: 27002: double __cand; 27002: do 27002: __cand = std::floor(std::log(1.0 - __aurng()) / __param._M_log_1_p); 27002: while (__cand >= __thr); 27002: 27002: return result_type(__cand + __naf); 27002: } 27002: 27002: template 27002: template 27002: void 27002: geometric_distribution<_IntType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: 27002: 27002: 27002: const double __naf = 27002: (1 - std::numeric_limits::epsilon()) / 2; 27002: 27002: const double __thr = 27002: std::numeric_limits<_IntType>::max() + __naf; 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: 27002: while (__f != __t) 27002: { 27002: double __cand; 27002: do 27002: __cand = std::floor(std::log(1.0 - __aurng()) 27002: / __param._M_log_1_p); 27002: while (__cand >= __thr); 27002: 27002: *__f++ = __cand + __naf; 27002: } 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const geometric_distribution<_IntType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__os.widen(' ')); 27002: __os.precision(std::numeric_limits::max_digits10); 27002: 27002: __os << __x.p(); 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: geometric_distribution<_IntType>& __x) 27002: { 27002: using param_type = typename geometric_distribution<_IntType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::skipws); 27002: 27002: double __p; 27002: if (__is >> __p) 27002: __x.param(param_type(__p)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: template 27002: typename negative_binomial_distribution<_IntType>::result_type 27002: negative_binomial_distribution<_IntType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng) 27002: { 27002: const double __y = _M_gd(__urng); 27002: 27002: 27002: std::poisson_distribution __poisson(__y); 27002: return __poisson(__urng); 27002: } 27002: 27002: template 27002: template 27002: typename negative_binomial_distribution<_IntType>::result_type 27002: negative_binomial_distribution<_IntType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: typedef typename std::gamma_distribution::param_type 27002: param_type; 27002: 27002: const double __y = 27002: _M_gd(__urng, param_type(__p.k(), (1.0 - __p.p()) / __p.p())); 27002: 27002: std::poisson_distribution __poisson(__y); 27002: return __poisson(__urng); 27002: } 27002: 27002: template 27002: template 27002: void 27002: negative_binomial_distribution<_IntType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { 27002: 27002: while (__f != __t) 27002: { 27002: const double __y = _M_gd(__urng); 27002: 27002: 27002: std::poisson_distribution __poisson(__y); 27002: *__f++ = __poisson(__urng); 27002: } 27002: } 27002: 27002: template 27002: template 27002: void 27002: negative_binomial_distribution<_IntType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: 27002: typename std::gamma_distribution::param_type 27002: __p2(__p.k(), (1.0 - __p.p()) / __p.p()); 27002: 27002: while (__f != __t) 27002: { 27002: const double __y = _M_gd(__urng, __p2); 27002: 27002: std::poisson_distribution __poisson(__y); 27002: *__f++ = __poisson(__urng); 27002: } 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const negative_binomial_distribution<_IntType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__os.widen(' ')); 27002: __os.precision(std::numeric_limits::max_digits10); 27002: 27002: __os << __x.k() << __space << __x.p() 27002: << __space << __x._M_gd; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: negative_binomial_distribution<_IntType>& __x) 27002: { 27002: using param_type 27002: = typename negative_binomial_distribution<_IntType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::skipws); 27002: 27002: _IntType __k; 27002: double __p; 27002: if (__is >> __k >> __p >> __x._M_gd) 27002: __x.param(param_type(__k, __p)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: void 27002: poisson_distribution<_IntType>::param_type:: 27002: _M_initialize() 27002: { 27002: 27002: if (_M_mean >= 12) 27002: { 27002: const double __m = std::floor(_M_mean); 27002: _M_lm_thr = std::log(_M_mean); 27002: _M_lfm = std::lgamma(__m + 1); 27002: _M_sm = std::sqrt(__m); 27002: 27002: const double __pi_4 = 0.7853981633974483096156608458198757L; 27002: const double __dx = std::sqrt(2 * __m * std::log(32 * __m 27002: / __pi_4)); 27002: _M_d = std::round(std::max(6.0, std::min(__m, __dx))); 27002: const double __cx = 2 * __m + _M_d; 27002: _M_scx = std::sqrt(__cx / 2); 27002: _M_1cx = 1 / __cx; 27002: 27002: _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); 27002: _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) 27002: / _M_d; 27002: } 27002: else 27002: 27002: _M_lm_thr = std::exp(-_M_mean); 27002: } 27002: # 1305 "/usr/include/c++/12/bits/random.tcc" 3 27002: template 27002: template 27002: typename poisson_distribution<_IntType>::result_type 27002: poisson_distribution<_IntType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: 27002: if (__param.mean() >= 12) 27002: { 27002: double __x; 27002: 27002: 27002: const double __naf = 27002: (1 - std::numeric_limits::epsilon()) / 2; 27002: const double __thr = 27002: std::numeric_limits<_IntType>::max() + __naf; 27002: 27002: const double __m = std::floor(__param.mean()); 27002: 27002: const double __spi_2 = 1.2533141373155002512078826424055226L; 27002: const double __c1 = __param._M_sm * __spi_2; 27002: const double __c2 = __param._M_c2b + __c1; 27002: const double __c3 = __c2 + 1; 27002: const double __c4 = __c3 + 1; 27002: 27002: const double __178 = 0.0128205128205128205128205128205128L; 27002: 27002: const double __e178 = 1.0129030479320018583185514777512983L; 27002: const double __c5 = __c4 + __e178; 27002: const double __c = __param._M_cb + __c5; 27002: const double __2cx = 2 * (2 * __m + __param._M_d); 27002: 27002: bool __reject = true; 27002: do 27002: { 27002: const double __u = __c * __aurng(); 27002: const double __e = -std::log(1.0 - __aurng()); 27002: 27002: double __w = 0.0; 27002: 27002: if (__u <= __c1) 27002: { 27002: const double __n = _M_nd(__urng); 27002: const double __y = -std::abs(__n) * __param._M_sm - 1; 27002: __x = std::floor(__y); 27002: __w = -__n * __n / 2; 27002: if (__x < -__m) 27002: continue; 27002: } 27002: else if (__u <= __c2) 27002: { 27002: const double __n = _M_nd(__urng); 27002: const double __y = 1 + std::abs(__n) * __param._M_scx; 27002: __x = std::ceil(__y); 27002: __w = __y * (2 - __y) * __param._M_1cx; 27002: if (__x > __param._M_d) 27002: continue; 27002: } 27002: else if (__u <= __c3) 27002: 27002: 27002: __x = -1; 27002: else if (__u <= __c4) 27002: __x = 0; 27002: else if (__u <= __c5) 27002: { 27002: __x = 1; 27002: 27002: __w = __178; 27002: } 27002: else 27002: { 27002: const double __v = -std::log(1.0 - __aurng()); 27002: const double __y = __param._M_d 27002: + __v * __2cx / __param._M_d; 27002: __x = std::ceil(__y); 27002: __w = -__param._M_d * __param._M_1cx * (1 + __y / 2); 27002: } 27002: 27002: __reject = (__w - __e - __x * __param._M_lm_thr 27002: > __param._M_lfm - std::lgamma(__x + __m + 1)); 27002: 27002: __reject |= __x + __m >= __thr; 27002: 27002: } while (__reject); 27002: 27002: return result_type(__x + __m + __naf); 27002: } 27002: else 27002: 27002: { 27002: _IntType __x = 0; 27002: double __prod = 1.0; 27002: 27002: do 27002: { 27002: __prod *= __aurng(); 27002: __x += 1; 27002: } 27002: while (__prod > __param._M_lm_thr); 27002: 27002: return __x - 1; 27002: } 27002: } 27002: 27002: template 27002: template 27002: void 27002: poisson_distribution<_IntType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: 27002: 27002: while (__f != __t) 27002: *__f++ = this->operator()(__urng, __param); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const poisson_distribution<_IntType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits::max_digits10); 27002: 27002: __os << __x.mean() << __space << __x._M_nd; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: poisson_distribution<_IntType>& __x) 27002: { 27002: using param_type = typename poisson_distribution<_IntType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::skipws); 27002: 27002: double __mean; 27002: if (__is >> __mean >> __x._M_nd) 27002: __x.param(param_type(__mean)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: void 27002: binomial_distribution<_IntType>::param_type:: 27002: _M_initialize() 27002: { 27002: const double __p12 = _M_p <= 0.5 ? _M_p : 1.0 - _M_p; 27002: 27002: _M_easy = true; 27002: 27002: 27002: if (_M_t * __p12 >= 8) 27002: { 27002: _M_easy = false; 27002: const double __np = std::floor(_M_t * __p12); 27002: const double __pa = __np / _M_t; 27002: const double __1p = 1 - __pa; 27002: 27002: const double __pi_4 = 0.7853981633974483096156608458198757L; 27002: const double __d1x = 27002: std::sqrt(__np * __1p * std::log(32 * __np 27002: / (81 * __pi_4 * __1p))); 27002: _M_d1 = std::round(std::max(1.0, __d1x)); 27002: const double __d2x = 27002: std::sqrt(__np * __1p * std::log(32 * _M_t * __1p 27002: / (__pi_4 * __pa))); 27002: _M_d2 = std::round(std::max(1.0, __d2x)); 27002: 27002: 27002: const double __spi_2 = 1.2533141373155002512078826424055226L; 27002: _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np)); 27002: _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * _M_t * __1p)); 27002: _M_c = 2 * _M_d1 / __np; 27002: _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; 27002: const double __a12 = _M_a1 + _M_s2 * __spi_2; 27002: const double __s1s = _M_s1 * _M_s1; 27002: _M_a123 = __a12 + (std::exp(_M_d1 / (_M_t * __1p)) 27002: * 2 * __s1s / _M_d1 27002: * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); 27002: const double __s2s = _M_s2 * _M_s2; 27002: _M_s = (_M_a123 + 2 * __s2s / _M_d2 27002: * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); 27002: _M_lf = (std::lgamma(__np + 1) 27002: + std::lgamma(_M_t - __np + 1)); 27002: _M_lp1p = std::log(__pa / __1p); 27002: 27002: _M_q = -std::log(1 - (__p12 - __pa) / __1p); 27002: } 27002: else 27002: 27002: _M_q = -std::log(1 - __p12); 27002: } 27002: 27002: template 27002: template 27002: typename binomial_distribution<_IntType>::result_type 27002: binomial_distribution<_IntType>:: 27002: _M_waiting(_UniformRandomNumberGenerator& __urng, 27002: _IntType __t, double __q) 27002: { 27002: _IntType __x = 0; 27002: double __sum = 0.0; 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: 27002: do 27002: { 27002: if (__t == __x) 27002: return __x; 27002: const double __e = -std::log(1.0 - __aurng()); 27002: __sum += __e / (__t - __x); 27002: __x += 1; 27002: } 27002: while (__sum <= __q); 27002: 27002: return __x - 1; 27002: } 27002: # 1560 "/usr/include/c++/12/bits/random.tcc" 3 27002: template 27002: template 27002: typename binomial_distribution<_IntType>::result_type 27002: binomial_distribution<_IntType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: result_type __ret; 27002: const _IntType __t = __param.t(); 27002: const double __p = __param.p(); 27002: const double __p12 = __p <= 0.5 ? __p : 1.0 - __p; 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: 27002: 27002: if (!__param._M_easy) 27002: { 27002: double __x; 27002: 27002: 27002: const double __naf = 27002: (1 - std::numeric_limits::epsilon()) / 2; 27002: const double __thr = 27002: std::numeric_limits<_IntType>::max() + __naf; 27002: 27002: const double __np = std::floor(__t * __p12); 27002: 27002: 27002: const double __spi_2 = 1.2533141373155002512078826424055226L; 27002: const double __a1 = __param._M_a1; 27002: const double __a12 = __a1 + __param._M_s2 * __spi_2; 27002: const double __a123 = __param._M_a123; 27002: const double __s1s = __param._M_s1 * __param._M_s1; 27002: const double __s2s = __param._M_s2 * __param._M_s2; 27002: 27002: bool __reject; 27002: do 27002: { 27002: const double __u = __param._M_s * __aurng(); 27002: 27002: double __v; 27002: 27002: if (__u <= __a1) 27002: { 27002: const double __n = _M_nd(__urng); 27002: const double __y = __param._M_s1 * std::abs(__n); 27002: __reject = __y >= __param._M_d1; 27002: if (!__reject) 27002: { 27002: const double __e = -std::log(1.0 - __aurng()); 27002: __x = std::floor(__y); 27002: __v = -__e - __n * __n / 2 + __param._M_c; 27002: } 27002: } 27002: else if (__u <= __a12) 27002: { 27002: const double __n = _M_nd(__urng); 27002: const double __y = __param._M_s2 * std::abs(__n); 27002: __reject = __y >= __param._M_d2; 27002: if (!__reject) 27002: { 27002: const double __e = -std::log(1.0 - __aurng()); 27002: __x = std::floor(-__y); 27002: __v = -__e - __n * __n / 2; 27002: } 27002: } 27002: else if (__u <= __a123) 27002: { 27002: const double __e1 = -std::log(1.0 - __aurng()); 27002: const double __e2 = -std::log(1.0 - __aurng()); 27002: 27002: const double __y = __param._M_d1 27002: + 2 * __s1s * __e1 / __param._M_d1; 27002: __x = std::floor(__y); 27002: __v = (-__e2 + __param._M_d1 * (1 / (__t - __np) 27002: -__y / (2 * __s1s))); 27002: __reject = false; 27002: } 27002: else 27002: { 27002: const double __e1 = -std::log(1.0 - __aurng()); 27002: const double __e2 = -std::log(1.0 - __aurng()); 27002: 27002: const double __y = __param._M_d2 27002: + 2 * __s2s * __e1 / __param._M_d2; 27002: __x = std::floor(-__y); 27002: __v = -__e2 - __param._M_d2 * __y / (2 * __s2s); 27002: __reject = false; 27002: } 27002: 27002: __reject = __reject || __x < -__np || __x > __t - __np; 27002: if (!__reject) 27002: { 27002: const double __lfx = 27002: std::lgamma(__np + __x + 1) 27002: + std::lgamma(__t - (__np + __x) + 1); 27002: __reject = __v > __param._M_lf - __lfx 27002: + __x * __param._M_lp1p; 27002: } 27002: 27002: __reject |= __x + __np >= __thr; 27002: } 27002: while (__reject); 27002: 27002: __x += __np + __naf; 27002: 27002: const _IntType __z = _M_waiting(__urng, __t - _IntType(__x), 27002: __param._M_q); 27002: __ret = _IntType(__x) + __z; 27002: } 27002: else 27002: 27002: __ret = _M_waiting(__urng, __t, __param._M_q); 27002: 27002: if (__p12 != __p) 27002: __ret = __t - __ret; 27002: return __ret; 27002: } 27002: 27002: template 27002: template 27002: void 27002: binomial_distribution<_IntType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: 27002: 27002: while (__f != __t) 27002: *__f++ = this->operator()(__urng, __param); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const binomial_distribution<_IntType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits::max_digits10); 27002: 27002: __os << __x.t() << __space << __x.p() 27002: << __space << __x._M_nd; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: binomial_distribution<_IntType>& __x) 27002: { 27002: using param_type = typename binomial_distribution<_IntType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _IntType __t; 27002: double __p; 27002: if (__is >> __t >> __p >> __x._M_nd) 27002: __x.param(param_type(__t, __p)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: template 27002: void 27002: std::exponential_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: while (__f != __t) 27002: *__f++ = -std::log(result_type(1) - __aurng()) / __p.lambda(); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const exponential_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__os.widen(' ')); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.lambda(); 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: exponential_distribution<_RealType>& __x) 27002: { 27002: using param_type 27002: = typename exponential_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _RealType __lambda; 27002: if (__is >> __lambda) 27002: __x.param(param_type(__lambda)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: # 1806 "/usr/include/c++/12/bits/random.tcc" 3 27002: template 27002: template 27002: typename normal_distribution<_RealType>::result_type 27002: normal_distribution<_RealType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: result_type __ret; 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: 27002: if (_M_saved_available) 27002: { 27002: _M_saved_available = false; 27002: __ret = _M_saved; 27002: } 27002: else 27002: { 27002: result_type __x, __y, __r2; 27002: do 27002: { 27002: __x = result_type(2.0) * __aurng() - 1.0; 27002: __y = result_type(2.0) * __aurng() - 1.0; 27002: __r2 = __x * __x + __y * __y; 27002: } 27002: while (__r2 > 1.0 || __r2 == 0.0); 27002: 27002: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 27002: _M_saved = __x * __mult; 27002: _M_saved_available = true; 27002: __ret = __y * __mult; 27002: } 27002: 27002: __ret = __ret * __param.stddev() + __param.mean(); 27002: return __ret; 27002: } 27002: 27002: template 27002: template 27002: void 27002: normal_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: 27002: 27002: if (__f == __t) 27002: return; 27002: 27002: if (_M_saved_available) 27002: { 27002: _M_saved_available = false; 27002: *__f++ = _M_saved * __param.stddev() + __param.mean(); 27002: 27002: if (__f == __t) 27002: return; 27002: } 27002: 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: 27002: while (__f + 1 < __t) 27002: { 27002: result_type __x, __y, __r2; 27002: do 27002: { 27002: __x = result_type(2.0) * __aurng() - 1.0; 27002: __y = result_type(2.0) * __aurng() - 1.0; 27002: __r2 = __x * __x + __y * __y; 27002: } 27002: while (__r2 > 1.0 || __r2 == 0.0); 27002: 27002: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 27002: *__f++ = __y * __mult * __param.stddev() + __param.mean(); 27002: *__f++ = __x * __mult * __param.stddev() + __param.mean(); 27002: } 27002: 27002: if (__f != __t) 27002: { 27002: result_type __x, __y, __r2; 27002: do 27002: { 27002: __x = result_type(2.0) * __aurng() - 1.0; 27002: __y = result_type(2.0) * __aurng() - 1.0; 27002: __r2 = __x * __x + __y * __y; 27002: } 27002: while (__r2 > 1.0 || __r2 == 0.0); 27002: 27002: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 27002: _M_saved = __x * __mult; 27002: _M_saved_available = true; 27002: *__f = __y * __mult * __param.stddev() + __param.mean(); 27002: } 27002: } 27002: 27002: template 27002: bool 27002: operator==(const std::normal_distribution<_RealType>& __d1, 27002: const std::normal_distribution<_RealType>& __d2) 27002: { 27002: if (__d1._M_param == __d2._M_param 27002: && __d1._M_saved_available == __d2._M_saved_available) 27002: { 27002: if (__d1._M_saved_available 27002: && __d1._M_saved == __d2._M_saved) 27002: return true; 27002: else if(!__d1._M_saved_available) 27002: return true; 27002: else 27002: return false; 27002: } 27002: else 27002: return false; 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const normal_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.mean() << __space << __x.stddev() 27002: << __space << __x._M_saved_available; 27002: if (__x._M_saved_available) 27002: __os << __space << __x._M_saved; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: normal_distribution<_RealType>& __x) 27002: { 27002: using param_type = typename normal_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: double __mean, __stddev; 27002: bool __saved_avail; 27002: if (__is >> __mean >> __stddev >> __saved_avail) 27002: { 27002: if (!__saved_avail || (__is >> __x._M_saved)) 27002: { 27002: __x._M_saved_available = __saved_avail; 27002: __x.param(param_type(__mean, __stddev)); 27002: } 27002: } 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: template 27002: void 27002: lognormal_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: 27002: while (__f != __t) 27002: *__f++ = std::exp(__p.s() * _M_nd(__urng) + __p.m()); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const lognormal_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.m() << __space << __x.s() 27002: << __space << __x._M_nd; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: lognormal_distribution<_RealType>& __x) 27002: { 27002: using param_type 27002: = typename lognormal_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _RealType __m, __s; 27002: if (__is >> __m >> __s >> __x._M_nd) 27002: __x.param(param_type(__m, __s)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: template 27002: template 27002: void 27002: std::chi_squared_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { 27002: 27002: while (__f != __t) 27002: *__f++ = 2 * _M_gd(__urng); 27002: } 27002: 27002: template 27002: template 27002: void 27002: std::chi_squared_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const typename 27002: std::gamma_distribution::param_type& __p) 27002: { 27002: 27002: while (__f != __t) 27002: *__f++ = 2 * _M_gd(__urng, __p); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const chi_squared_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.n() << __space << __x._M_gd; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: chi_squared_distribution<_RealType>& __x) 27002: { 27002: using param_type 27002: = typename chi_squared_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _RealType __n; 27002: if (__is >> __n >> __x._M_gd) 27002: __x.param(param_type(__n)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: template 27002: typename cauchy_distribution<_RealType>::result_type 27002: cauchy_distribution<_RealType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: _RealType __u; 27002: do 27002: __u = __aurng(); 27002: while (__u == 0.5); 27002: 27002: const _RealType __pi = 3.1415926535897932384626433832795029L; 27002: return __p.a() + __p.b() * std::tan(__pi * __u); 27002: } 27002: 27002: template 27002: template 27002: void 27002: cauchy_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: 27002: const _RealType __pi = 3.1415926535897932384626433832795029L; 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: while (__f != __t) 27002: { 27002: _RealType __u; 27002: do 27002: __u = __aurng(); 27002: while (__u == 0.5); 27002: 27002: *__f++ = __p.a() + __p.b() * std::tan(__pi * __u); 27002: } 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const cauchy_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.a() << __space << __x.b(); 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: cauchy_distribution<_RealType>& __x) 27002: { 27002: using param_type = typename cauchy_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _RealType __a, __b; 27002: if (__is >> __a >> __b) 27002: __x.param(param_type(__a, __b)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: template 27002: void 27002: std::fisher_f_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { 27002: 27002: while (__f != __t) 27002: *__f++ = ((_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m())); 27002: } 27002: 27002: template 27002: template 27002: void 27002: std::fisher_f_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: 27002: typedef typename std::gamma_distribution::param_type 27002: param_type; 27002: param_type __p1(__p.m() / 2); 27002: param_type __p2(__p.n() / 2); 27002: while (__f != __t) 27002: *__f++ = ((_M_gd_x(__urng, __p1) * n()) 27002: / (_M_gd_y(__urng, __p2) * m())); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const fisher_f_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.m() << __space << __x.n() 27002: << __space << __x._M_gd_x << __space << __x._M_gd_y; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: fisher_f_distribution<_RealType>& __x) 27002: { 27002: using param_type 27002: = typename fisher_f_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _RealType __m, __n; 27002: if (__is >> __m >> __n >> __x._M_gd_x >> __x._M_gd_y) 27002: __x.param(param_type(__m, __n)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: template 27002: void 27002: std::student_t_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng) 27002: { 27002: 27002: while (__f != __t) 27002: *__f++ = _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); 27002: } 27002: 27002: template 27002: template 27002: void 27002: std::student_t_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: 27002: typename std::gamma_distribution::param_type 27002: __p2(__p.n() / 2, 2); 27002: while (__f != __t) 27002: *__f++ = _M_nd(__urng) * std::sqrt(__p.n() / _M_gd(__urng, __p2)); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const student_t_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.n() << __space << __x._M_nd << __space << __x._M_gd; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: student_t_distribution<_RealType>& __x) 27002: { 27002: using param_type 27002: = typename student_t_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _RealType __n; 27002: if (__is >> __n >> __x._M_nd >> __x._M_gd) 27002: __x.param(param_type(__n)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: void 27002: gamma_distribution<_RealType>::param_type:: 27002: _M_initialize() 27002: { 27002: _M_malpha = _M_alpha < 1.0 ? _M_alpha + _RealType(1.0) : _M_alpha; 27002: 27002: const _RealType __a1 = _M_malpha - _RealType(1.0) / _RealType(3.0); 27002: _M_a2 = _RealType(1.0) / std::sqrt(_RealType(9.0) * __a1); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: template 27002: typename gamma_distribution<_RealType>::result_type 27002: gamma_distribution<_RealType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: 27002: result_type __u, __v, __n; 27002: const result_type __a1 = (__param._M_malpha 27002: - _RealType(1.0) / _RealType(3.0)); 27002: 27002: do 27002: { 27002: do 27002: { 27002: __n = _M_nd(__urng); 27002: __v = result_type(1.0) + __param._M_a2 * __n; 27002: } 27002: while (__v <= 0.0); 27002: 27002: __v = __v * __v * __v; 27002: __u = __aurng(); 27002: } 27002: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 27002: && (std::log(__u) > (0.5 * __n * __n + __a1 27002: * (1.0 - __v + std::log(__v))))); 27002: 27002: if (__param.alpha() == __param._M_malpha) 27002: return __a1 * __v * __param.beta(); 27002: else 27002: { 27002: do 27002: __u = __aurng(); 27002: while (__u == 0.0); 27002: 27002: return (std::pow(__u, result_type(1.0) / __param.alpha()) 27002: * __a1 * __v * __param.beta()); 27002: } 27002: } 27002: 27002: template 27002: template 27002: void 27002: gamma_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: 27002: result_type __u, __v, __n; 27002: const result_type __a1 = (__param._M_malpha 27002: - _RealType(1.0) / _RealType(3.0)); 27002: 27002: if (__param.alpha() == __param._M_malpha) 27002: while (__f != __t) 27002: { 27002: do 27002: { 27002: do 27002: { 27002: __n = _M_nd(__urng); 27002: __v = result_type(1.0) + __param._M_a2 * __n; 27002: } 27002: while (__v <= 0.0); 27002: 27002: __v = __v * __v * __v; 27002: __u = __aurng(); 27002: } 27002: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 27002: && (std::log(__u) > (0.5 * __n * __n + __a1 27002: * (1.0 - __v + std::log(__v))))); 27002: 27002: *__f++ = __a1 * __v * __param.beta(); 27002: } 27002: else 27002: while (__f != __t) 27002: { 27002: do 27002: { 27002: do 27002: { 27002: __n = _M_nd(__urng); 27002: __v = result_type(1.0) + __param._M_a2 * __n; 27002: } 27002: while (__v <= 0.0); 27002: 27002: __v = __v * __v * __v; 27002: __u = __aurng(); 27002: } 27002: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 27002: && (std::log(__u) > (0.5 * __n * __n + __a1 27002: * (1.0 - __v + std::log(__v))))); 27002: 27002: do 27002: __u = __aurng(); 27002: while (__u == 0.0); 27002: 27002: *__f++ = (std::pow(__u, result_type(1.0) / __param.alpha()) 27002: * __a1 * __v * __param.beta()); 27002: } 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const gamma_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.alpha() << __space << __x.beta() 27002: << __space << __x._M_nd; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: gamma_distribution<_RealType>& __x) 27002: { 27002: using param_type = typename gamma_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _RealType __alpha_val, __beta_val; 27002: if (__is >> __alpha_val >> __beta_val >> __x._M_nd) 27002: __x.param(param_type(__alpha_val, __beta_val)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: template 27002: typename weibull_distribution<_RealType>::result_type 27002: weibull_distribution<_RealType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: return __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 27002: result_type(1) / __p.a()); 27002: } 27002: 27002: template 27002: template 27002: void 27002: weibull_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: auto __inv_a = result_type(1) / __p.a(); 27002: 27002: while (__f != __t) 27002: *__f++ = __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 27002: __inv_a); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const weibull_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.a() << __space << __x.b(); 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: weibull_distribution<_RealType>& __x) 27002: { 27002: using param_type = typename weibull_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _RealType __a, __b; 27002: if (__is >> __a >> __b) 27002: __x.param(param_type(__a, __b)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: template 27002: typename extreme_value_distribution<_RealType>::result_type 27002: extreme_value_distribution<_RealType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: return __p.a() - __p.b() * std::log(-std::log(result_type(1) 27002: - __aurng())); 27002: } 27002: 27002: template 27002: template 27002: void 27002: extreme_value_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __p) 27002: { 27002: 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 27002: __aurng(__urng); 27002: 27002: while (__f != __t) 27002: *__f++ = __p.a() - __p.b() * std::log(-std::log(result_type(1) 27002: - __aurng())); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const extreme_value_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: __os << __x.a() << __space << __x.b(); 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: extreme_value_distribution<_RealType>& __x) 27002: { 27002: using param_type 27002: = typename extreme_value_distribution<_RealType>::param_type; 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: _RealType __a, __b; 27002: if (__is >> __a >> __b) 27002: __x.param(param_type(__a, __b)); 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: void 27002: discrete_distribution<_IntType>::param_type:: 27002: _M_initialize() 27002: { 27002: if (_M_prob.size() < 2) 27002: { 27002: _M_prob.clear(); 27002: return; 27002: } 27002: 27002: const double __sum = std::accumulate(_M_prob.begin(), 27002: _M_prob.end(), 0.0); 27002: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 27002: 27002: __detail::__normalize(_M_prob.begin(), _M_prob.end(), _M_prob.begin(), 27002: __sum); 27002: 27002: _M_cp.reserve(_M_prob.size()); 27002: std::partial_sum(_M_prob.begin(), _M_prob.end(), 27002: std::back_inserter(_M_cp)); 27002: 27002: _M_cp[_M_cp.size() - 1] = 1.0; 27002: } 27002: 27002: template 27002: template 27002: discrete_distribution<_IntType>::param_type:: 27002: param_type(size_t __nw, double __xmin, double __xmax, _Func __fw) 27002: : _M_prob(), _M_cp() 27002: { 27002: const size_t __n = __nw == 0 ? 1 : __nw; 27002: const double __delta = (__xmax - __xmin) / __n; 27002: 27002: _M_prob.reserve(__n); 27002: for (size_t __k = 0; __k < __nw; ++__k) 27002: _M_prob.push_back(__fw(__xmin + __k * __delta + 0.5 * __delta)); 27002: 27002: _M_initialize(); 27002: } 27002: 27002: template 27002: template 27002: typename discrete_distribution<_IntType>::result_type 27002: discrete_distribution<_IntType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: if (__param._M_cp.empty()) 27002: return result_type(0); 27002: 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: 27002: const double __p = __aurng(); 27002: auto __pos = std::lower_bound(__param._M_cp.begin(), 27002: __param._M_cp.end(), __p); 27002: 27002: return __pos - __param._M_cp.begin(); 27002: } 27002: 27002: template 27002: template 27002: void 27002: discrete_distribution<_IntType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: 27002: 27002: if (__param._M_cp.empty()) 27002: { 27002: while (__f != __t) 27002: *__f++ = result_type(0); 27002: return; 27002: } 27002: 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: 27002: while (__f != __t) 27002: { 27002: const double __p = __aurng(); 27002: auto __pos = std::lower_bound(__param._M_cp.begin(), 27002: __param._M_cp.end(), __p); 27002: 27002: *__f++ = __pos - __param._M_cp.begin(); 27002: } 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const discrete_distribution<_IntType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits::max_digits10); 27002: 27002: std::vector __prob = __x.probabilities(); 27002: __os << __prob.size(); 27002: for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit) 27002: __os << __space << *__dit; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: namespace __detail 27002: { 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: __extract_params(basic_istream<_CharT, _Traits>& __is, 27002: vector<_ValT>& __vals, size_t __n) 27002: { 27002: __vals.reserve(__n); 27002: while (__n--) 27002: { 27002: _ValT __val; 27002: if (__is >> __val) 27002: __vals.push_back(__val); 27002: else 27002: break; 27002: } 27002: return __is; 27002: } 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: discrete_distribution<_IntType>& __x) 27002: { 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: size_t __n; 27002: if (__is >> __n) 27002: { 27002: std::vector __prob_vec; 27002: if (__detail::__extract_params(__is, __prob_vec, __n)) 27002: __x.param({__prob_vec.begin(), __prob_vec.end()}); 27002: } 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: void 27002: piecewise_constant_distribution<_RealType>::param_type:: 27002: _M_initialize() 27002: { 27002: if (_M_int.size() < 2 27002: || (_M_int.size() == 2 27002: && _M_int[0] == _RealType(0) 27002: && _M_int[1] == _RealType(1))) 27002: { 27002: _M_int.clear(); 27002: _M_den.clear(); 27002: return; 27002: } 27002: 27002: const double __sum = std::accumulate(_M_den.begin(), 27002: _M_den.end(), 0.0); 27002: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 27002: 27002: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 27002: __sum); 27002: 27002: _M_cp.reserve(_M_den.size()); 27002: std::partial_sum(_M_den.begin(), _M_den.end(), 27002: std::back_inserter(_M_cp)); 27002: 27002: 27002: _M_cp[_M_cp.size() - 1] = 1.0; 27002: 27002: for (size_t __k = 0; __k < _M_den.size(); ++__k) 27002: _M_den[__k] /= _M_int[__k + 1] - _M_int[__k]; 27002: } 27002: 27002: template 27002: template 27002: piecewise_constant_distribution<_RealType>::param_type:: 27002: param_type(_InputIteratorB __bbegin, 27002: _InputIteratorB __bend, 27002: _InputIteratorW __wbegin) 27002: : _M_int(), _M_den(), _M_cp() 27002: { 27002: if (__bbegin != __bend) 27002: { 27002: for (;;) 27002: { 27002: _M_int.push_back(*__bbegin); 27002: ++__bbegin; 27002: if (__bbegin == __bend) 27002: break; 27002: 27002: _M_den.push_back(*__wbegin); 27002: ++__wbegin; 27002: } 27002: } 27002: 27002: _M_initialize(); 27002: } 27002: 27002: template 27002: template 27002: piecewise_constant_distribution<_RealType>::param_type:: 27002: param_type(initializer_list<_RealType> __bl, _Func __fw) 27002: : _M_int(), _M_den(), _M_cp() 27002: { 27002: _M_int.reserve(__bl.size()); 27002: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 27002: _M_int.push_back(*__biter); 27002: 27002: _M_den.reserve(_M_int.size() - 1); 27002: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 27002: _M_den.push_back(__fw(0.5 * (_M_int[__k + 1] + _M_int[__k]))); 27002: 27002: _M_initialize(); 27002: } 27002: 27002: template 27002: template 27002: piecewise_constant_distribution<_RealType>::param_type:: 27002: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 27002: : _M_int(), _M_den(), _M_cp() 27002: { 27002: const size_t __n = __nw == 0 ? 1 : __nw; 27002: const _RealType __delta = (__xmax - __xmin) / __n; 27002: 27002: _M_int.reserve(__n + 1); 27002: for (size_t __k = 0; __k <= __nw; ++__k) 27002: _M_int.push_back(__xmin + __k * __delta); 27002: 27002: _M_den.reserve(__n); 27002: for (size_t __k = 0; __k < __nw; ++__k) 27002: _M_den.push_back(__fw(_M_int[__k] + 0.5 * __delta)); 27002: 27002: _M_initialize(); 27002: } 27002: 27002: template 27002: template 27002: typename piecewise_constant_distribution<_RealType>::result_type 27002: piecewise_constant_distribution<_RealType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: 27002: const double __p = __aurng(); 27002: if (__param._M_cp.empty()) 27002: return __p; 27002: 27002: auto __pos = std::lower_bound(__param._M_cp.begin(), 27002: __param._M_cp.end(), __p); 27002: const size_t __i = __pos - __param._M_cp.begin(); 27002: 27002: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 27002: 27002: return __param._M_int[__i] + (__p - __pref) / __param._M_den[__i]; 27002: } 27002: 27002: template 27002: template 27002: void 27002: piecewise_constant_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: 27002: if (__param._M_cp.empty()) 27002: { 27002: while (__f != __t) 27002: *__f++ = __aurng(); 27002: return; 27002: } 27002: 27002: while (__f != __t) 27002: { 27002: const double __p = __aurng(); 27002: 27002: auto __pos = std::lower_bound(__param._M_cp.begin(), 27002: __param._M_cp.end(), __p); 27002: const size_t __i = __pos - __param._M_cp.begin(); 27002: 27002: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 27002: 27002: *__f++ = (__param._M_int[__i] 27002: + (__p - __pref) / __param._M_den[__i]); 27002: } 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const piecewise_constant_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: std::vector<_RealType> __int = __x.intervals(); 27002: __os << __int.size() - 1; 27002: 27002: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 27002: __os << __space << *__xit; 27002: 27002: std::vector __den = __x.densities(); 27002: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 27002: __os << __space << *__dit; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: piecewise_constant_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: size_t __n; 27002: if (__is >> __n) 27002: { 27002: std::vector<_RealType> __int_vec; 27002: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 27002: { 27002: std::vector __den_vec; 27002: if (__detail::__extract_params(__is, __den_vec, __n)) 27002: { 27002: __x.param({ __int_vec.begin(), __int_vec.end(), 27002: __den_vec.begin() }); 27002: } 27002: } 27002: } 27002: 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: void 27002: piecewise_linear_distribution<_RealType>::param_type:: 27002: _M_initialize() 27002: { 27002: if (_M_int.size() < 2 27002: || (_M_int.size() == 2 27002: && _M_int[0] == _RealType(0) 27002: && _M_int[1] == _RealType(1) 27002: && _M_den[0] == _M_den[1])) 27002: { 27002: _M_int.clear(); 27002: _M_den.clear(); 27002: return; 27002: } 27002: 27002: double __sum = 0.0; 27002: _M_cp.reserve(_M_int.size() - 1); 27002: _M_m.reserve(_M_int.size() - 1); 27002: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 27002: { 27002: const _RealType __delta = _M_int[__k + 1] - _M_int[__k]; 27002: __sum += 0.5 * (_M_den[__k + 1] + _M_den[__k]) * __delta; 27002: _M_cp.push_back(__sum); 27002: _M_m.push_back((_M_den[__k + 1] - _M_den[__k]) / __delta); 27002: } 27002: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) __builtin_unreachable(); } while (false); 27002: 27002: 27002: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 27002: __sum); 27002: 27002: __detail::__normalize(_M_cp.begin(), _M_cp.end(), _M_cp.begin(), __sum); 27002: 27002: __detail::__normalize(_M_m.begin(), _M_m.end(), _M_m.begin(), __sum); 27002: 27002: 27002: _M_cp[_M_cp.size() - 1] = 1.0; 27002: } 27002: 27002: template 27002: template 27002: piecewise_linear_distribution<_RealType>::param_type:: 27002: param_type(_InputIteratorB __bbegin, 27002: _InputIteratorB __bend, 27002: _InputIteratorW __wbegin) 27002: : _M_int(), _M_den(), _M_cp(), _M_m() 27002: { 27002: for (; __bbegin != __bend; ++__bbegin, ++__wbegin) 27002: { 27002: _M_int.push_back(*__bbegin); 27002: _M_den.push_back(*__wbegin); 27002: } 27002: 27002: _M_initialize(); 27002: } 27002: 27002: template 27002: template 27002: piecewise_linear_distribution<_RealType>::param_type:: 27002: param_type(initializer_list<_RealType> __bl, _Func __fw) 27002: : _M_int(), _M_den(), _M_cp(), _M_m() 27002: { 27002: _M_int.reserve(__bl.size()); 27002: _M_den.reserve(__bl.size()); 27002: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 27002: { 27002: _M_int.push_back(*__biter); 27002: _M_den.push_back(__fw(*__biter)); 27002: } 27002: 27002: _M_initialize(); 27002: } 27002: 27002: template 27002: template 27002: piecewise_linear_distribution<_RealType>::param_type:: 27002: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 27002: : _M_int(), _M_den(), _M_cp(), _M_m() 27002: { 27002: const size_t __n = __nw == 0 ? 1 : __nw; 27002: const _RealType __delta = (__xmax - __xmin) / __n; 27002: 27002: _M_int.reserve(__n + 1); 27002: _M_den.reserve(__n + 1); 27002: for (size_t __k = 0; __k <= __nw; ++__k) 27002: { 27002: _M_int.push_back(__xmin + __k * __delta); 27002: _M_den.push_back(__fw(_M_int[__k] + __delta)); 27002: } 27002: 27002: _M_initialize(); 27002: } 27002: 27002: template 27002: template 27002: typename piecewise_linear_distribution<_RealType>::result_type 27002: piecewise_linear_distribution<_RealType>:: 27002: operator()(_UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 27002: __aurng(__urng); 27002: 27002: const double __p = __aurng(); 27002: if (__param._M_cp.empty()) 27002: return __p; 27002: 27002: auto __pos = std::lower_bound(__param._M_cp.begin(), 27002: __param._M_cp.end(), __p); 27002: const size_t __i = __pos - __param._M_cp.begin(); 27002: 27002: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 27002: 27002: const double __a = 0.5 * __param._M_m[__i]; 27002: const double __b = __param._M_den[__i]; 27002: const double __cm = __p - __pref; 27002: 27002: _RealType __x = __param._M_int[__i]; 27002: if (__a == 0) 27002: __x += __cm / __b; 27002: else 27002: { 27002: const double __d = __b * __b + 4.0 * __a * __cm; 27002: __x += 0.5 * (std::sqrt(__d) - __b) / __a; 27002: } 27002: 27002: return __x; 27002: } 27002: 27002: template 27002: template 27002: void 27002: piecewise_linear_distribution<_RealType>:: 27002: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 27002: _UniformRandomNumberGenerator& __urng, 27002: const param_type& __param) 27002: { 27002: 27002: 27002: while (__f != __t) 27002: *__f++ = this->operator()(__urng, __param); 27002: } 27002: 27002: template 27002: std::basic_ostream<_CharT, _Traits>& 27002: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 27002: const piecewise_linear_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __os.flags(); 27002: const _CharT __fill = __os.fill(); 27002: const std::streamsize __precision = __os.precision(); 27002: const _CharT __space = __os.widen(' '); 27002: __os.flags(__ios_base::scientific | __ios_base::left); 27002: __os.fill(__space); 27002: __os.precision(std::numeric_limits<_RealType>::max_digits10); 27002: 27002: std::vector<_RealType> __int = __x.intervals(); 27002: __os << __int.size() - 1; 27002: 27002: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 27002: __os << __space << *__xit; 27002: 27002: std::vector __den = __x.densities(); 27002: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 27002: __os << __space << *__dit; 27002: 27002: __os.flags(__flags); 27002: __os.fill(__fill); 27002: __os.precision(__precision); 27002: return __os; 27002: } 27002: 27002: template 27002: std::basic_istream<_CharT, _Traits>& 27002: operator>>(std::basic_istream<_CharT, _Traits>& __is, 27002: piecewise_linear_distribution<_RealType>& __x) 27002: { 27002: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 27002: 27002: const typename __ios_base::fmtflags __flags = __is.flags(); 27002: __is.flags(__ios_base::dec | __ios_base::skipws); 27002: 27002: size_t __n; 27002: if (__is >> __n) 27002: { 27002: vector<_RealType> __int_vec; 27002: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 27002: { 27002: vector __den_vec; 27002: if (__detail::__extract_params(__is, __den_vec, __n + 1)) 27002: { 27002: __x.param({ __int_vec.begin(), __int_vec.end(), 27002: __den_vec.begin() }); 27002: } 27002: } 27002: } 27002: __is.flags(__flags); 27002: return __is; 27002: } 27002: 27002: 27002: template 27002: seed_seq::seed_seq(std::initializer_list<_IntType> __il) 27002: { 27002: _M_v.reserve(__il.size()); 27002: for (auto __iter = __il.begin(); __iter != __il.end(); ++__iter) 27002: _M_v.push_back(__detail::__mod::__value>(*__iter)); 27002: } 27002: 27002: template 27002: seed_seq::seed_seq(_InputIterator __begin, _InputIterator __end) 27002: { 27002: if constexpr (__is_random_access_iter<_InputIterator>::value) 27002: _M_v.reserve(std::distance(__begin, __end)); 27002: 27002: for (_InputIterator __iter = __begin; __iter != __end; ++__iter) 27002: _M_v.push_back(__detail::__mod::__value>(*__iter)); 27002: } 27002: 27002: template 27002: void 27002: seed_seq::generate(_RandomAccessIterator __begin, 27002: _RandomAccessIterator __end) 27002: { 27002: typedef typename iterator_traits<_RandomAccessIterator>::value_type 27002: _Type; 27002: 27002: if (__begin == __end) 27002: return; 27002: 27002: std::fill(__begin, __end, _Type(0x8b8b8b8bu)); 27002: 27002: const size_t __n = __end - __begin; 27002: const size_t __s = _M_v.size(); 27002: const size_t __t = (__n >= 623) ? 11 27002: : (__n >= 68) ? 7 27002: : (__n >= 39) ? 5 27002: : (__n >= 7) ? 3 27002: : (__n - 1) / 2; 27002: const size_t __p = (__n - __t) / 2; 27002: const size_t __q = __p + __t; 27002: const size_t __m = std::max(size_t(__s + 1), __n); 27002: # 3297 "/usr/include/c++/12/bits/random.tcc" 3 27002: { 27002: uint32_t __r1 = 1371501266u; 27002: uint32_t __r2 = __r1 + __s; 27002: __begin[__p] += __r1; 27002: __begin[__q] = (uint32_t)__begin[__q] + __r2; 27002: __begin[0] = __r2; 27002: } 27002: 27002: for (size_t __k = 1; __k <= __s; ++__k) 27002: { 27002: const size_t __kn = __k % __n; 27002: const size_t __kpn = (__k + __p) % __n; 27002: const size_t __kqn = (__k + __q) % __n; 27002: uint32_t __arg = (__begin[__kn] 27002: ^ __begin[__kpn] 27002: ^ __begin[(__k - 1) % __n]); 27002: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 27002: uint32_t __r2 = __r1 + (uint32_t)__kn + _M_v[__k - 1]; 27002: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 27002: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 27002: __begin[__kn] = __r2; 27002: } 27002: 27002: for (size_t __k = __s + 1; __k < __m; ++__k) 27002: { 27002: const size_t __kn = __k % __n; 27002: const size_t __kpn = (__k + __p) % __n; 27002: const size_t __kqn = (__k + __q) % __n; 27002: uint32_t __arg = (__begin[__kn] 27002: ^ __begin[__kpn] 27002: ^ __begin[(__k - 1) % __n]); 27002: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 27002: uint32_t __r2 = __r1 + (uint32_t)__kn; 27002: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 27002: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 27002: __begin[__kn] = __r2; 27002: } 27002: 27002: for (size_t __k = __m; __k < __m + __n; ++__k) 27002: { 27002: const size_t __kn = __k % __n; 27002: const size_t __kpn = (__k + __p) % __n; 27002: const size_t __kqn = (__k + __q) % __n; 27002: uint32_t __arg = (__begin[__kn] 27002: + __begin[__kpn] 27002: + __begin[(__k - 1) % __n]); 27002: uint32_t __r3 = 1566083941u * (__arg ^ (__arg >> 27)); 27002: uint32_t __r4 = __r3 - __kn; 27002: __begin[__kpn] ^= __r3; 27002: __begin[__kqn] ^= __r4; 27002: __begin[__kn] = __r4; 27002: } 27002: } 27002: 27002: template 27002: _RealType 27002: generate_canonical(_UniformRandomNumberGenerator& __urng) 27002: { 27002: static_assert(std::is_floating_point<_RealType>::value, 27002: "template argument must be a floating point type"); 27002: 27002: const size_t __b 27002: = std::min(static_cast(std::numeric_limits<_RealType>::digits), 27002: __bits); 27002: const long double __r = static_cast(__urng.max()) 27002: - static_cast(__urng.min()) + 1.0L; 27002: const size_t __log2r = std::log(__r) / std::log(2.0L); 27002: const size_t __m = std::max(1UL, 27002: (__b + __log2r - 1UL) / __log2r); 27002: _RealType __ret; 27002: _RealType __sum = _RealType(0); 27002: _RealType __tmp = _RealType(1); 27002: for (size_t __k = __m; __k != 0; --__k) 27002: { 27002: __sum += _RealType(__urng() - __urng.min()) * __tmp; 27002: __tmp *= __r; 27002: } 27002: __ret = __sum / __tmp; 27002: if (__builtin_expect(__ret >= _RealType(1), 0)) 27002: { 27002: 27002: __ret = std::nextafter(_RealType(1), _RealType(0)); 27002: 27002: 27002: 27002: 27002: } 27002: return __ret; 27002: } 27002: 27002: 27002: } 27002: # 52 "/usr/include/c++/12/random" 2 3 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/util/random.h" 2 27002: 27002: 27002: 27002: 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/util/random.h" 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: class Random { 27002: private: 27002: enum : uint32_t { 27002: M = 2147483647L 27002: }; 27002: enum : uint64_t { 27002: A = 16807 27002: }; 27002: 27002: uint32_t seed_; 27002: 27002: static uint32_t GoodSeed(uint32_t s) { return (s & M) != 0 ? (s & M) : 1; } 27002: 27002: public: 27002: 27002: enum : uint32_t { kMaxNext = M }; 27002: 27002: explicit Random(uint32_t s) : seed_(GoodSeed(s)) {} 27002: 27002: void Reset(uint32_t s) { seed_ = GoodSeed(s); } 27002: 27002: uint32_t Next() { 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t product = seed_ * A; 27002: 27002: 27002: seed_ = static_cast((product >> 31) + (product & M)); 27002: 27002: 27002: 27002: if (seed_ > M) { 27002: seed_ -= M; 27002: } 27002: return seed_; 27002: } 27002: 27002: uint64_t Next64() { return (uint64_t{Next()} << 32) | Next(); } 27002: 27002: 27002: 27002: uint32_t Uniform(int n) { return Next() % n; } 27002: 27002: 27002: 27002: bool OneIn(int n) { return Uniform(n) == 0; } 27002: 27002: 27002: 27002: bool OneInOpt(int n) { return n > 0 && OneIn(n); } 27002: 27002: 27002: 27002: 27002: bool PercentTrue(int percentage) { 27002: return static_cast(Uniform(100)) < percentage; 27002: } 27002: 27002: 27002: 27002: 27002: uint32_t Skewed(int max_log) { 27002: return Uniform(1 << Uniform(max_log + 1)); 27002: } 27002: 27002: 27002: std::string RandomString(int len); 27002: 27002: 27002: std::string HumanReadableString(int len); 27002: 27002: 27002: std::string RandomBinaryString(int len); 27002: 27002: 27002: 27002: static Random* GetTLSInstance(); 27002: }; 27002: 27002: 27002: 27002: 27002: class Random32 { 27002: private: 27002: std::mt19937 generator_; 27002: 27002: public: 27002: explicit Random32(uint32_t s) : generator_(s) {} 27002: 27002: 27002: uint32_t Next() { return static_cast(generator_()); } 27002: 27002: 27002: 27002: uint32_t Uniform(uint32_t n) { 27002: return static_cast( 27002: std::uniform_int_distribution( 27002: 0, n - 1)(generator_)); 27002: } 27002: 27002: 27002: 27002: 27002: uint32_t Uniformish(uint32_t n) { 27002: 27002: return static_cast((uint64_t(generator_()) * uint64_t(n)) >> 32); 27002: } 27002: 27002: 27002: 27002: bool OneIn(uint32_t n) { return Uniform(n) == 0; } 27002: 27002: 27002: 27002: 27002: uint32_t Skewed(int max_log) { 27002: return Uniform(uint32_t{1} << Uniform(max_log + 1)); 27002: } 27002: 27002: 27002: void Seed(uint32_t new_seed) { generator_.seed(new_seed); } 27002: }; 27002: 27002: 27002: class Random64 { 27002: private: 27002: std::mt19937_64 generator_; 27002: 27002: public: 27002: explicit Random64(uint64_t s) : generator_(s) { } 27002: 27002: 27002: uint64_t Next() { return generator_(); } 27002: 27002: 27002: 27002: uint64_t Uniform(uint64_t n) { 27002: return std::uniform_int_distribution(0, n - 1)(generator_); 27002: } 27002: 27002: 27002: 27002: bool OneIn(uint64_t n) { return Uniform(n) == 0; } 27002: 27002: 27002: 27002: 27002: uint64_t Skewed(int max_log) { 27002: return Uniform(uint64_t(1) << Uniform(max_log + 1)); 27002: } 27002: }; 27002: 27002: 27002: template 27002: void RandomShuffle(RandomIt first, RandomIt last, uint32_t seed) { 27002: std::mt19937 rng(seed); 27002: std::shuffle(first, last, rng); 27002: } 27002: 27002: 27002: template 27002: void RandomShuffle(RandomIt first, RandomIt last) { 27002: RandomShuffle(first, last, std::random_device{}()); 27002: } 27002: 27002: } 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: template 27002: class CoreLocalArray { 27002: public: 27002: CoreLocalArray(); 27002: 27002: size_t Size() const; 27002: 27002: 27002: T* Access() const; 27002: 27002: 27002: 27002: std::pair AccessElementAndIndex() const; 27002: 27002: 27002: T* AccessAtCore(size_t core_idx) const; 27002: 27002: private: 27002: std::unique_ptr data_; 27002: int size_shift_; 27002: }; 27002: 27002: template 27002: CoreLocalArray::CoreLocalArray() { 27002: int num_cpus = static_cast(std::thread::hardware_concurrency()); 27002: 27002: size_shift_ = 3; 27002: while (1 << size_shift_ < num_cpus) { 27002: ++size_shift_; 27002: } 27002: data_.reset(new T[static_cast(1) << size_shift_]); 27002: } 27002: 27002: template 27002: size_t CoreLocalArray::Size() const { 27002: return static_cast(1) << size_shift_; 27002: } 27002: 27002: template 27002: T* CoreLocalArray::Access() const { 27002: return AccessElementAndIndex().first; 27002: } 27002: 27002: template 27002: std::pair CoreLocalArray::AccessElementAndIndex() const { 27002: int cpuid = port::PhysicalCoreID(); 27002: size_t core_idx; 27002: if ((__builtin_expect((cpuid < 0), 0))) { 27002: 27002: core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); 27002: } else { 27002: core_idx = static_cast(cpuid & ((1 << size_shift_) - 1)); 27002: } 27002: return {AccessAtCore(core_idx), core_idx}; 27002: } 27002: 27002: template 27002: T* CoreLocalArray::AccessAtCore(size_t core_idx) const { 27002: 27002: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 3 4 27002: (static_cast ( 27002: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 27002: core_idx < static_cast(1) << size_shift_ 27002: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 27002: "core_idx < static_cast(1) << size_shift_" 27002: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 3 4 27002: , "./util/core_local.h", 79, __extension__ __PRETTY_FUNCTION__)) 27002: # 79 "/build/reproducible-path/rocksdb-7.8.3/util/core_local.h" 27002: ; 27002: return &data_[core_idx]; 27002: } 27002: 27002: } 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 2 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: # 29 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 27002: class MutexLock { 27002: public: 27002: explicit MutexLock(port::Mutex *mu) : mu_(mu) { 27002: this->mu_->Lock(); 27002: } 27002: 27002: MutexLock(const MutexLock &) = delete; 27002: void operator=(const MutexLock &) = delete; 27002: 27002: ~MutexLock() { this->mu_->Unlock(); } 27002: 27002: private: 27002: port::Mutex *const mu_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class ReadLock { 27002: public: 27002: explicit ReadLock(port::RWMutex *mu) : mu_(mu) { 27002: this->mu_->ReadLock(); 27002: } 27002: 27002: ReadLock(const ReadLock &) = delete; 27002: void operator=(const ReadLock &) = delete; 27002: 27002: ~ReadLock() { this->mu_->ReadUnlock(); } 27002: 27002: private: 27002: port::RWMutex *const mu_; 27002: }; 27002: 27002: 27002: 27002: 27002: class ReadUnlock { 27002: public: 27002: explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } 27002: 27002: ReadUnlock(const ReadUnlock &) = delete; 27002: ReadUnlock &operator=(const ReadUnlock &) = delete; 27002: 27002: ~ReadUnlock() { mu_->ReadUnlock(); } 27002: 27002: private: 27002: port::RWMutex *const mu_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class WriteLock { 27002: public: 27002: explicit WriteLock(port::RWMutex *mu) : mu_(mu) { 27002: this->mu_->WriteLock(); 27002: } 27002: 27002: WriteLock(const WriteLock &) = delete; 27002: void operator=(const WriteLock &) = delete; 27002: 27002: ~WriteLock() { this->mu_->WriteUnlock(); } 27002: 27002: private: 27002: port::RWMutex *const mu_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: class SpinMutex { 27002: public: 27002: SpinMutex() : locked_(false) {} 27002: 27002: bool try_lock() { 27002: auto currently_locked = locked_.load(std::memory_order_relaxed); 27002: return !currently_locked && 27002: locked_.compare_exchange_weak(currently_locked, true, 27002: std::memory_order_acquire, 27002: std::memory_order_relaxed); 27002: } 27002: 27002: void lock() { 27002: for (size_t tries = 0;; ++tries) { 27002: if (try_lock()) { 27002: 27002: break; 27002: } 27002: port::AsmVolatilePause(); 27002: if (tries > 100) { 27002: std::this_thread::yield(); 27002: } 27002: } 27002: } 27002: 27002: void unlock() { locked_.store(false, std::memory_order_release); } 27002: 27002: private: 27002: std::atomic locked_; 27002: }; 27002: 27002: 27002: template 27002: struct alignas(64U) LockData { 27002: T lock_; 27002: }; 27002: # 150 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 27002: template 27002: class Striped { 27002: public: 27002: Striped(size_t stripes, std::function hash) 27002: : stripes_(stripes), hash_(hash) { 27002: 27002: locks_ = reinterpret_cast *>( 27002: port::cacheline_aligned_alloc(sizeof(LockData) * stripes)); 27002: for (size_t i = 0; i < stripes; i++) { 27002: new (&locks_[i]) LockData(); 27002: } 27002: 27002: } 27002: 27002: virtual ~Striped() { 27002: if (locks_ != nullptr) { 27002: 27002: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 3 4 27002: (static_cast ( 27002: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 27002: stripes_ > 0 27002: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 27002: "stripes_ > 0" 27002: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 3 4 27002: , "./util/mutexlock.h", 166, __extension__ __PRETTY_FUNCTION__)) 27002: # 166 "/build/reproducible-path/rocksdb-7.8.3/util/mutexlock.h" 27002: ; 27002: for (size_t i = 0; i < stripes_; i++) { 27002: locks_[i].~LockData(); 27002: } 27002: port::cacheline_aligned_free(locks_); 27002: } 27002: } 27002: 27002: T *get(const P &key) { 27002: uint64_t h = hash_(key); 27002: size_t index = h % stripes_; 27002: return &reinterpret_cast *>(&locks_[index])->lock_; 27002: } 27002: 27002: private: 27002: size_t stripes_; 27002: LockData *locks_; 27002: std::function hash_; 27002: }; 27002: 27002: } 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 2 27002: # 31 "/build/reproducible-path/rocksdb-7.8.3/monitoring/statistics.h" 27002: namespace rocksdb { 27002: 27002: enum TickersInternal : uint32_t { 27002: INTERNAL_TICKER_ENUM_START = TICKER_ENUM_MAX, 27002: INTERNAL_TICKER_ENUM_MAX 27002: }; 27002: 27002: enum HistogramsInternal : uint32_t { 27002: INTERNAL_HISTOGRAM_START = HISTOGRAM_ENUM_MAX, 27002: INTERNAL_HISTOGRAM_ENUM_MAX 27002: }; 27002: 27002: class StatisticsImpl : public Statistics { 27002: public: 27002: StatisticsImpl(std::shared_ptr stats); 27002: virtual ~StatisticsImpl(); 27002: const char* Name() const override { return kClassName(); } 27002: static const char* kClassName() { return "BasicStatistics"; } 27002: 27002: virtual uint64_t getTickerCount(uint32_t ticker_type) const override; 27002: virtual void histogramData(uint32_t histogram_type, 27002: HistogramData* const data) const override; 27002: std::string getHistogramString(uint32_t histogram_type) const override; 27002: 27002: virtual void setTickerCount(uint32_t ticker_type, uint64_t count) override; 27002: virtual uint64_t getAndResetTickerCount(uint32_t ticker_type) override; 27002: virtual void recordTick(uint32_t ticker_type, uint64_t count) override; 27002: 27002: 27002: 27002: 27002: void measureTime(uint32_t histogramType, uint64_t time) override { 27002: recordInHistogram(histogramType, time); 27002: } 27002: virtual void recordInHistogram(uint32_t histogram_type, 27002: uint64_t value) override; 27002: 27002: virtual Status Reset() override; 27002: virtual std::string ToString() const override; 27002: virtual bool getTickerMap(std::map*) const override; 27002: virtual bool HistEnabledForType(uint32_t type) const override; 27002: 27002: const Customizable* Inner() const override { return stats_.get(); } 27002: 27002: private: 27002: 27002: std::shared_ptr stats_; 27002: 27002: 27002: mutable port::Mutex aggregate_lock_; 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct alignas(64U) StatisticsData { 27002: std::atomic_uint_fast64_t tickers_[INTERNAL_TICKER_ENUM_MAX] = {{0}}; 27002: HistogramImpl histograms_[INTERNAL_HISTOGRAM_ENUM_MAX]; 27002: 27002: char 27002: padding[(64U - 27002: (INTERNAL_TICKER_ENUM_MAX * sizeof(std::atomic_uint_fast64_t) + 27002: INTERNAL_HISTOGRAM_ENUM_MAX * sizeof(HistogramImpl)) % 27002: 64U)] ; 27002: 27002: void *operator new(size_t s) { return port::cacheline_aligned_alloc(s); } 27002: void *operator new[](size_t s) { return port::cacheline_aligned_alloc(s); } 27002: void operator delete(void *p) { port::cacheline_aligned_free(p); } 27002: void operator delete[](void *p) { port::cacheline_aligned_free(p); } 27002: }; 27002: 27002: 27002: static_assert(sizeof(StatisticsData) % 64U == 0, "Expected " "64U" "-byte aligned"); 27002: 27002: 27002: CoreLocalArray per_core_stats_; 27002: 27002: uint64_t getTickerCountLocked(uint32_t ticker_type) const; 27002: std::unique_ptr getHistogramImplLocked( 27002: uint32_t histogram_type) const; 27002: void setTickerCountLocked(uint32_t ticker_type, uint64_t count); 27002: }; 27002: 27002: 27002: inline void RecordInHistogram(Statistics* statistics, uint32_t histogram_type, 27002: uint64_t value) { 27002: if (statistics) { 27002: statistics->recordInHistogram(histogram_type, value); 27002: } 27002: } 27002: 27002: inline void RecordTimeToHistogram(Statistics* statistics, 27002: uint32_t histogram_type, uint64_t value) { 27002: if (statistics) { 27002: statistics->reportTimeToHistogram(histogram_type, value); 27002: } 27002: } 27002: 27002: inline void RecordTick(Statistics* statistics, uint32_t ticker_type, 27002: uint64_t count = 1) { 27002: if (statistics) { 27002: statistics->recordTick(ticker_type, count); 27002: } 27002: } 27002: 27002: inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, 27002: uint64_t count) { 27002: if (statistics) { 27002: statistics->setTickerCount(ticker_type, count); 27002: } 27002: } 27002: 27002: } 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_step_timer.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/system_clock.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/system_clock.h" 27002: 27002: # 23 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/system_clock.h" 27002: namespace rocksdb { 27002: struct ConfigOptions; 27002: 27002: 27002: 27002: class SystemClock : public Customizable { 27002: public: 27002: ~SystemClock() override {} 27002: 27002: static const char* Type() { return "SystemClock"; } 27002: static Status CreateFromString(const ConfigOptions& options, 27002: const std::string& value, 27002: std::shared_ptr* result); 27002: 27002: virtual const char* Name() const override = 0; 27002: 27002: 27002: 27002: static const char* kDefaultName() { return "DefaultClock"; } 27002: 27002: 27002: 27002: static const std::shared_ptr& Default(); 27002: 27002: 27002: 27002: 27002: virtual uint64_t NowMicros() = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 27002: 27002: 27002: 27002: virtual uint64_t CPUMicros() { return 0; } 27002: 27002: 27002: 27002: 27002: virtual uint64_t CPUNanos() { return CPUMicros() * 1000; } 27002: 27002: 27002: virtual void SleepForMicroseconds(int micros) = 0; 27002: 27002: 27002: 27002: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 27002: 27002: 27002: virtual std::string TimeToString(uint64_t time) = 0; 27002: }; 27002: 27002: 27002: 27002: class SystemClockWrapper : public SystemClock { 27002: public: 27002: explicit SystemClockWrapper(const std::shared_ptr& t); 27002: 27002: uint64_t NowMicros() override { return target_->NowMicros(); } 27002: 27002: uint64_t NowNanos() override { return target_->NowNanos(); } 27002: 27002: uint64_t CPUMicros() override { return target_->CPUMicros(); } 27002: 27002: uint64_t CPUNanos() override { return target_->CPUNanos(); } 27002: 27002: virtual void SleepForMicroseconds(int micros) override { 27002: return target_->SleepForMicroseconds(micros); 27002: } 27002: 27002: Status GetCurrentTime(int64_t* unix_time) override { 27002: return target_->GetCurrentTime(unix_time); 27002: } 27002: 27002: std::string TimeToString(uint64_t time) override { 27002: return target_->TimeToString(time); 27002: } 27002: 27002: Status PrepareOptions(const ConfigOptions& options) override; 27002: 27002: std::string SerializeOptions(const ConfigOptions& config_options, 27002: const std::string& header) const override; 27002: 27002: const Customizable* Inner() const override { return target_.get(); } 27002: 27002: protected: 27002: std::shared_ptr target_; 27002: }; 27002: 27002: } 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_step_timer.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class PerfStepTimer { 27002: public: 27002: explicit PerfStepTimer( 27002: uint64_t* metric, SystemClock* clock = nullptr, bool use_cpu_time = false, 27002: PerfLevel enable_level = PerfLevel::kEnableTimeExceptForMutex, 27002: Statistics* statistics = nullptr, uint32_t ticker_type = 0) 27002: : perf_counter_enabled_(perf_level >= enable_level), 27002: use_cpu_time_(use_cpu_time), 27002: ticker_type_(ticker_type), 27002: clock_((perf_counter_enabled_ || statistics != nullptr) 27002: ? (clock ? clock : SystemClock::Default().get()) 27002: : nullptr), 27002: start_(0), 27002: metric_(metric), 27002: statistics_(statistics) {} 27002: 27002: ~PerfStepTimer() { 27002: Stop(); 27002: } 27002: 27002: void Start() { 27002: if (perf_counter_enabled_ || statistics_ != nullptr) { 27002: start_ = time_now(); 27002: } 27002: } 27002: 27002: void Measure() { 27002: if (start_) { 27002: uint64_t now = time_now(); 27002: *metric_ += now - start_; 27002: start_ = now; 27002: } 27002: } 27002: 27002: void Stop() { 27002: if (start_) { 27002: uint64_t duration = time_now() - start_; 27002: if (perf_counter_enabled_) { 27002: *metric_ += duration; 27002: } 27002: 27002: if (statistics_ != nullptr) { 27002: RecordTick(statistics_, ticker_type_, duration); 27002: } 27002: start_ = 0; 27002: } 27002: } 27002: 27002: private: 27002: uint64_t time_now() { 27002: if (!use_cpu_time_) { 27002: return clock_->NowNanos(); 27002: } else { 27002: return clock_->CPUNanos(); 27002: } 27002: } 27002: 27002: const bool perf_counter_enabled_; 27002: const bool use_cpu_time_; 27002: uint32_t ticker_type_; 27002: SystemClock* const clock_; 27002: uint64_t start_; 27002: uint64_t* metric_; 27002: Statistics* statistics_; 27002: }; 27002: 27002: } 27002: # 8 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_context_imp.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/perf_context.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct PerfContextByLevel { 27002: 27002: uint64_t bloom_filter_useful = 0; 27002: 27002: uint64_t bloom_filter_full_positive = 0; 27002: 27002: 27002: uint64_t bloom_filter_full_true_positive = 0; 27002: 27002: 27002: 27002: uint64_t user_key_return_count = 0; 27002: 27002: 27002: uint64_t get_from_table_nanos = 0; 27002: 27002: uint64_t block_cache_hit_count = 0; 27002: uint64_t block_cache_miss_count = 0; 27002: 27002: void Reset(); 27002: }; 27002: 27002: struct PerfContext { 27002: ~PerfContext(); 27002: 27002: PerfContext() {} 27002: 27002: PerfContext(const PerfContext&); 27002: PerfContext& operator=(const PerfContext&); 27002: PerfContext(PerfContext&&) noexcept; 27002: 27002: void Reset(); 27002: 27002: std::string ToString(bool exclude_zero_counters = false) const; 27002: 27002: 27002: void EnablePerLevelPerfContext(); 27002: 27002: 27002: void DisablePerLevelPerfContext(); 27002: 27002: 27002: void ClearPerLevelPerfContext(); 27002: 27002: uint64_t user_key_comparison_count; 27002: uint64_t block_cache_hit_count; 27002: uint64_t block_read_count; 27002: uint64_t block_read_byte; 27002: uint64_t block_read_time; 27002: uint64_t block_cache_index_hit_count; 27002: 27002: uint64_t block_cache_standalone_handle_count; 27002: 27002: 27002: uint64_t block_cache_real_handle_count; 27002: uint64_t index_block_read_count; 27002: uint64_t block_cache_filter_hit_count; 27002: uint64_t filter_block_read_count; 27002: uint64_t compression_dict_block_read_count; 27002: 27002: 27002: uint64_t secondary_cache_hit_count; 27002: 27002: uint64_t compressed_sec_cache_insert_real_count; 27002: 27002: uint64_t compressed_sec_cache_insert_dummy_count; 27002: 27002: uint64_t compressed_sec_cache_uncompressed_bytes; 27002: 27002: uint64_t compressed_sec_cache_compressed_bytes; 27002: 27002: uint64_t block_checksum_time; 27002: uint64_t block_decompress_time; 27002: 27002: uint64_t get_read_bytes; 27002: uint64_t multiget_read_bytes; 27002: uint64_t iter_read_bytes; 27002: 27002: uint64_t blob_cache_hit_count; 27002: uint64_t blob_read_count; 27002: uint64_t blob_read_byte; 27002: uint64_t blob_read_time; 27002: uint64_t blob_checksum_time; 27002: uint64_t blob_decompress_time; 27002: # 124 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/perf_context.h" 27002: uint64_t internal_key_skipped_count; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t internal_delete_skipped_count; 27002: 27002: 27002: 27002: uint64_t internal_recent_skipped_count; 27002: 27002: 27002: uint64_t internal_merge_count; 27002: 27002: 27002: 27002: uint64_t internal_range_del_reseek_count; 27002: 27002: uint64_t get_snapshot_time; 27002: uint64_t get_from_memtable_time; 27002: uint64_t get_from_memtable_count; 27002: 27002: uint64_t get_post_process_time; 27002: uint64_t get_from_output_files_time; 27002: 27002: uint64_t seek_on_memtable_time; 27002: 27002: 27002: uint64_t seek_on_memtable_count; 27002: 27002: uint64_t next_on_memtable_count; 27002: 27002: uint64_t prev_on_memtable_count; 27002: 27002: uint64_t seek_child_seek_time; 27002: 27002: uint64_t seek_child_seek_count; 27002: uint64_t seek_min_heap_time; 27002: uint64_t seek_max_heap_time; 27002: 27002: uint64_t seek_internal_seek_time; 27002: 27002: uint64_t find_next_user_entry_time; 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t write_wal_time; 27002: 27002: uint64_t write_memtable_time; 27002: 27002: uint64_t write_delay_time; 27002: 27002: 27002: uint64_t write_scheduling_flushes_compactions_time; 27002: 27002: uint64_t write_pre_and_post_process_time; 27002: 27002: 27002: uint64_t write_thread_wait_nanos; 27002: 27002: 27002: uint64_t db_mutex_lock_nanos; 27002: 27002: uint64_t db_condition_wait_nanos; 27002: 27002: uint64_t merge_operator_time_nanos; 27002: 27002: 27002: uint64_t read_index_block_nanos; 27002: 27002: uint64_t read_filter_block_nanos; 27002: 27002: uint64_t new_table_block_iter_nanos; 27002: 27002: uint64_t new_table_iterator_nanos; 27002: 27002: uint64_t block_seek_nanos; 27002: 27002: uint64_t find_table_nanos; 27002: 27002: uint64_t bloom_memtable_hit_count; 27002: 27002: uint64_t bloom_memtable_miss_count; 27002: 27002: uint64_t bloom_sst_hit_count; 27002: 27002: uint64_t bloom_sst_miss_count; 27002: 27002: 27002: uint64_t key_lock_wait_time; 27002: 27002: uint64_t key_lock_wait_count; 27002: 27002: 27002: 27002: uint64_t env_new_sequential_file_nanos; 27002: uint64_t env_new_random_access_file_nanos; 27002: uint64_t env_new_writable_file_nanos; 27002: uint64_t env_reuse_writable_file_nanos; 27002: uint64_t env_new_random_rw_file_nanos; 27002: uint64_t env_new_directory_nanos; 27002: uint64_t env_file_exists_nanos; 27002: uint64_t env_get_children_nanos; 27002: uint64_t env_get_children_file_attributes_nanos; 27002: uint64_t env_delete_file_nanos; 27002: uint64_t env_create_dir_nanos; 27002: uint64_t env_create_dir_if_missing_nanos; 27002: uint64_t env_delete_dir_nanos; 27002: uint64_t env_get_file_size_nanos; 27002: uint64_t env_get_file_modification_time_nanos; 27002: uint64_t env_rename_file_nanos; 27002: uint64_t env_link_file_nanos; 27002: uint64_t env_lock_file_nanos; 27002: uint64_t env_unlock_file_nanos; 27002: uint64_t env_new_logger_nanos; 27002: 27002: uint64_t get_cpu_nanos; 27002: uint64_t iter_next_cpu_nanos; 27002: uint64_t iter_prev_cpu_nanos; 27002: uint64_t iter_seek_cpu_nanos; 27002: 27002: 27002: uint64_t encrypt_data_nanos; 27002: 27002: uint64_t decrypt_data_nanos; 27002: 27002: uint64_t number_async_seek; 27002: 27002: std::map* level_to_perf_context = nullptr; 27002: bool per_level_perf_context_enabled = false; 27002: }; 27002: # 271 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/perf_context.h" 27002: PerfContext* get_perf_context(); 27002: 27002: } 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_context_imp.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/stop_watch.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: class StopWatch { 27002: public: 27002: StopWatch(SystemClock* clock, Statistics* statistics, 27002: const uint32_t hist_type, uint64_t* elapsed = nullptr, 27002: bool overwrite = true, bool delay_enabled = false) 27002: : clock_(clock), 27002: statistics_(statistics), 27002: hist_type_(hist_type), 27002: elapsed_(elapsed), 27002: overwrite_(overwrite), 27002: stats_enabled_(statistics && 27002: statistics->get_stats_level() >= 27002: StatsLevel::kExceptTimers && 27002: statistics->HistEnabledForType(hist_type)), 27002: delay_enabled_(delay_enabled), 27002: total_delay_(0), 27002: delay_start_time_(0), 27002: start_time_((stats_enabled_ || elapsed != nullptr) ? clock->NowMicros() 27002: : 0) {} 27002: 27002: ~StopWatch() { 27002: if (elapsed_) { 27002: if (overwrite_) { 27002: *elapsed_ = clock_->NowMicros() - start_time_; 27002: } else { 27002: *elapsed_ += clock_->NowMicros() - start_time_; 27002: } 27002: } 27002: if (elapsed_ && delay_enabled_) { 27002: *elapsed_ -= total_delay_; 27002: } 27002: if (stats_enabled_) { 27002: statistics_->reportTimeToHistogram( 27002: hist_type_, (elapsed_ != nullptr) 27002: ? *elapsed_ 27002: : (clock_->NowMicros() - start_time_)); 27002: } 27002: } 27002: 27002: void DelayStart() { 27002: 27002: 27002: if (elapsed_ && delay_enabled_ && delay_start_time_ == 0) { 27002: delay_start_time_ = clock_->NowMicros(); 27002: } 27002: } 27002: 27002: void DelayStop() { 27002: if (elapsed_ && delay_enabled_ && delay_start_time_ != 0) { 27002: total_delay_ += clock_->NowMicros() - delay_start_time_; 27002: } 27002: 27002: 27002: delay_start_time_ = 0; 27002: } 27002: 27002: uint64_t GetDelay() const { return delay_enabled_ ? total_delay_ : 0; } 27002: 27002: uint64_t start_time() const { return start_time_; } 27002: 27002: private: 27002: SystemClock* clock_; 27002: Statistics* statistics_; 27002: const uint32_t hist_type_; 27002: uint64_t* elapsed_; 27002: bool overwrite_; 27002: bool stats_enabled_; 27002: bool delay_enabled_; 27002: uint64_t total_delay_; 27002: uint64_t delay_start_time_; 27002: const uint64_t start_time_; 27002: }; 27002: 27002: 27002: class StopWatchNano { 27002: public: 27002: explicit StopWatchNano(SystemClock* clock, bool auto_start = false) 27002: : clock_(clock), start_(0) { 27002: if (auto_start) { 27002: Start(); 27002: } 27002: } 27002: 27002: void Start() { start_ = clock_->NowNanos(); } 27002: 27002: uint64_t ElapsedNanos(bool reset = false) { 27002: auto now = clock_->NowNanos(); 27002: auto elapsed = now - start_; 27002: if (reset) { 27002: start_ = now; 27002: } 27002: return elapsed; 27002: } 27002: 27002: uint64_t ElapsedNanosSafe(bool reset = false) { 27002: return (clock_ != nullptr) ? ElapsedNanos(reset) : 0U; 27002: } 27002: 27002: private: 27002: SystemClock* clock_; 27002: uint64_t start_; 27002: }; 27002: 27002: } 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_context_imp.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern thread_local PerfContext perf_context; 27002: # 96 "/build/reproducible-path/rocksdb-7.8.3/monitoring/perf_context_imp.h" 27002: } 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/util/user_comparator_wrapper.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: class UserComparatorWrapper { 27002: public: 27002: 27002: 27002: UserComparatorWrapper() : user_comparator_(nullptr) {} 27002: 27002: explicit UserComparatorWrapper(const Comparator* const user_cmp) 27002: : user_comparator_(user_cmp) {} 27002: 27002: ~UserComparatorWrapper() = default; 27002: 27002: const Comparator* user_comparator() const { return user_comparator_; } 27002: 27002: int Compare(const Slice& a, const Slice& b) const { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 27002: return user_comparator_->Compare(a, b); 27002: } 27002: 27002: bool Equal(const Slice& a, const Slice& b) const { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 27002: return user_comparator_->Equal(a, b); 27002: } 27002: 27002: int CompareTimestamp(const Slice& ts1, const Slice& ts2) const { 27002: return user_comparator_->CompareTimestamp(ts1, ts2); 27002: } 27002: 27002: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 27002: return user_comparator_->CompareWithoutTimestamp(a, b); 27002: } 27002: 27002: int CompareWithoutTimestamp(const Slice& a, bool a_has_ts, const Slice& b, 27002: bool b_has_ts) const { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; }; 27002: return user_comparator_->CompareWithoutTimestamp(a, a_has_ts, b, b_has_ts); 27002: } 27002: 27002: bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 27002: return user_comparator_->EqualWithoutTimestamp(a, b); 27002: } 27002: 27002: private: 27002: const Comparator* user_comparator_; 27002: }; 27002: 27002: } 27002: # 23 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class InternalKey; 27002: 27002: 27002: 27002: 27002: 27002: 27002: enum ValueType : unsigned char { 27002: kTypeDeletion = 0x0, 27002: kTypeValue = 0x1, 27002: kTypeMerge = 0x2, 27002: kTypeLogData = 0x3, 27002: kTypeColumnFamilyDeletion = 0x4, 27002: kTypeColumnFamilyValue = 0x5, 27002: kTypeColumnFamilyMerge = 0x6, 27002: kTypeSingleDeletion = 0x7, 27002: kTypeColumnFamilySingleDeletion = 0x8, 27002: kTypeBeginPrepareXID = 0x9, 27002: kTypeEndPrepareXID = 0xA, 27002: kTypeCommitXID = 0xB, 27002: kTypeRollbackXID = 0xC, 27002: kTypeNoop = 0xD, 27002: kTypeColumnFamilyRangeDeletion = 0xE, 27002: kTypeRangeDeletion = 0xF, 27002: kTypeColumnFamilyBlobIndex = 0x10, 27002: kTypeBlobIndex = 0x11, 27002: 27002: 27002: 27002: 27002: kTypeBeginPersistedPrepareXID = 0x12, 27002: 27002: 27002: 27002: kTypeBeginUnprepareXID = 0x13, 27002: kTypeDeletionWithTimestamp = 0x14, 27002: kTypeCommitXIDAndTimestamp = 0x15, 27002: kTypeWideColumnEntity = 0x16, 27002: kTypeColumnFamilyWideColumnEntity = 0x17, 27002: kTypeMaxValid, 27002: 27002: kMaxValue = 0x7F 27002: }; 27002: 27002: 27002: extern const ValueType kValueTypeForSeek; 27002: extern const ValueType kValueTypeForSeekForPrev; 27002: 27002: 27002: 27002: inline bool IsValueType(ValueType t) { 27002: return t <= kTypeMerge || kTypeSingleDeletion == t || kTypeBlobIndex == t || 27002: kTypeDeletionWithTimestamp == t || kTypeWideColumnEntity == t; 27002: } 27002: 27002: 27002: 27002: inline bool IsExtendedValueType(ValueType t) { 27002: return IsValueType(t) || t == kTypeRangeDeletion; 27002: } 27002: 27002: 27002: 27002: static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1); 27002: 27002: static const SequenceNumber kDisableGlobalSequenceNumber = 27002: std::numeric_limits::max(); 27002: 27002: constexpr uint64_t kNumInternalBytes = 8; 27002: 27002: 27002: extern const std::string kDisableUserTimestamp; 27002: 27002: 27002: 27002: struct ParsedInternalKey { 27002: Slice user_key; 27002: SequenceNumber sequence; 27002: ValueType type; 27002: 27002: ParsedInternalKey() 27002: : sequence(kMaxSequenceNumber), 27002: type(kTypeDeletion) 27002: {} 27002: 27002: ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) 27002: : user_key(u), sequence(seq), type(t) {} 27002: std::string DebugString(bool log_err_key, bool hex) const; 27002: 27002: void clear() { 27002: user_key.clear(); 27002: sequence = 0; 27002: type = kTypeDeletion; 27002: } 27002: 27002: void SetTimestamp(const Slice& ts) { 27002: 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ts.size() <= user_key.size() 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "ts.size() <= user_key.size()" 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 128, __extension__ __PRETTY_FUNCTION__)) 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: const char* addr = user_key.data() + user_key.size() - ts.size(); 27002: memcpy(const_cast(addr), ts.data(), ts.size()); 27002: } 27002: }; 27002: 27002: 27002: inline size_t InternalKeyEncodingLength(const ParsedInternalKey& key) { 27002: return key.user_key.size() + kNumInternalBytes; 27002: } 27002: 27002: 27002: inline uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { 27002: 27002: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: seq <= kMaxSequenceNumber 27002: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "seq <= kMaxSequenceNumber" 27002: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 141, __extension__ __PRETTY_FUNCTION__)) 27002: # 141 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: 27002: 27002: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: IsExtendedValueType(t) || t == kTypeMaxValid 27002: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "IsExtendedValueType(t) || t == kTypeMaxValid" 27002: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 143, __extension__ __PRETTY_FUNCTION__)) 27002: # 143 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: return (seq << 8) | t; 27002: } 27002: 27002: 27002: 27002: inline void UnPackSequenceAndType(uint64_t packed, uint64_t* seq, 27002: ValueType* t) { 27002: *seq = packed >> 8; 27002: *t = static_cast(packed & 0xff); 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: EntryType GetEntryType(ValueType value_type); 27002: 27002: 27002: extern void AppendInternalKey(std::string* result, 27002: const ParsedInternalKey& key); 27002: 27002: 27002: 27002: extern void AppendInternalKeyWithDifferentTimestamp( 27002: std::string* result, const ParsedInternalKey& key, const Slice& ts); 27002: 27002: 27002: 27002: 27002: extern void AppendInternalKeyFooter(std::string* result, SequenceNumber s, 27002: ValueType t); 27002: 27002: 27002: extern void AppendKeyWithMinTimestamp(std::string* result, const Slice& key, 27002: size_t ts_sz); 27002: 27002: 27002: extern void AppendKeyWithMaxTimestamp(std::string* result, const Slice& key, 27002: size_t ts_sz); 27002: 27002: 27002: 27002: extern void AppendUserKeyWithMaxTimestamp(std::string* result, const Slice& key, 27002: size_t ts_sz); 27002: 27002: 27002: 27002: 27002: 27002: extern Status ParseInternalKey(const Slice& internal_key, 27002: ParsedInternalKey* result, bool log_err_key); 27002: 27002: 27002: inline Slice ExtractUserKey(const Slice& internal_key) { 27002: 27002: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: internal_key.size() >= kNumInternalBytes 27002: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "internal_key.size() >= kNumInternalBytes" 27002: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 199, __extension__ __PRETTY_FUNCTION__)) 27002: # 199 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: return Slice(internal_key.data(), internal_key.size() - kNumInternalBytes); 27002: } 27002: 27002: inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, 27002: size_t ts_sz) { 27002: Slice ret = internal_key; 27002: ret.remove_suffix(kNumInternalBytes + ts_sz); 27002: return ret; 27002: } 27002: 27002: inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 27002: Slice ret = user_key; 27002: ret.remove_suffix(ts_sz); 27002: return ret; 27002: } 27002: 27002: inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 27002: 27002: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: user_key.size() >= ts_sz 27002: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "user_key.size() >= ts_sz" 27002: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 217, __extension__ __PRETTY_FUNCTION__)) 27002: # 217 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); 27002: } 27002: 27002: inline Slice ExtractTimestampFromKey(const Slice& internal_key, size_t ts_sz) { 27002: const size_t key_size = internal_key.size(); 27002: 27002: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: key_size >= kNumInternalBytes + ts_sz 27002: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "key_size >= kNumInternalBytes + ts_sz" 27002: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 223, __extension__ __PRETTY_FUNCTION__)) 27002: # 223 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: return Slice(internal_key.data() + key_size - ts_sz - kNumInternalBytes, 27002: ts_sz); 27002: } 27002: 27002: inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { 27002: 27002: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: internal_key.size() >= kNumInternalBytes 27002: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "internal_key.size() >= kNumInternalBytes" 27002: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 229, __extension__ __PRETTY_FUNCTION__)) 27002: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: const size_t n = internal_key.size(); 27002: return DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 27002: } 27002: 27002: inline ValueType ExtractValueType(const Slice& internal_key) { 27002: uint64_t num = ExtractInternalKeyFooter(internal_key); 27002: unsigned char c = num & 0xff; 27002: return static_cast(c); 27002: } 27002: 27002: 27002: 27002: class InternalKeyComparator 27002: 27002: 27002: 27002: : public CompareInterface { 27002: private: 27002: UserComparatorWrapper user_comparator_; 27002: 27002: public: 27002: 27002: 27002: InternalKeyComparator() = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit InternalKeyComparator(const Comparator* c) : user_comparator_(c) {} 27002: virtual ~InternalKeyComparator() {} 27002: 27002: int Compare(const Slice& a, const Slice& b) const override; 27002: 27002: bool Equal(const Slice& a, const Slice& b) const { 27002: 27002: 27002: return Compare(a, b) == 0; 27002: } 27002: 27002: 27002: int CompareKeySeq(const Slice& a, const Slice& b) const; 27002: 27002: const Comparator* user_comparator() const { 27002: return user_comparator_.user_comparator(); 27002: } 27002: 27002: int Compare(const InternalKey& a, const InternalKey& b) const; 27002: int Compare(const ParsedInternalKey& a, const ParsedInternalKey& b) const; 27002: 27002: 27002: 27002: 27002: int Compare(const Slice& a, SequenceNumber a_global_seqno, const Slice& b, 27002: SequenceNumber b_global_seqno) const; 27002: }; 27002: 27002: 27002: class InternalKey { 27002: private: 27002: std::string rep_; 27002: 27002: public: 27002: InternalKey() {} 27002: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { 27002: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, s, t)); 27002: } 27002: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t, Slice ts) { 27002: AppendInternalKeyWithDifferentTimestamp( 27002: &rep_, ParsedInternalKey(_user_key, s, t), ts); 27002: } 27002: 27002: 27002: 27002: void SetMaxPossibleForUserKey(const Slice& _user_key) { 27002: AppendInternalKey( 27002: &rep_, ParsedInternalKey(_user_key, 0, static_cast(0))); 27002: } 27002: 27002: 27002: 27002: void SetMinPossibleForUserKey(const Slice& _user_key) { 27002: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, 27002: kValueTypeForSeek)); 27002: } 27002: 27002: bool Valid() const { 27002: ParsedInternalKey parsed; 27002: return (ParseInternalKey(Slice(rep_), &parsed, false ) 27002: .ok()); 27002: } 27002: 27002: void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } 27002: Slice Encode() const { 27002: 27002: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: !rep_.empty() 27002: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "!rep_.empty()" 27002: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 325, __extension__ __PRETTY_FUNCTION__)) 27002: # 325 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: return rep_; 27002: } 27002: 27002: Slice user_key() const { return ExtractUserKey(rep_); } 27002: size_t size() const { return rep_.size(); } 27002: 27002: void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { 27002: SetFrom(ParsedInternalKey(_user_key, s, t)); 27002: } 27002: 27002: void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t, 27002: const Slice& ts) { 27002: ParsedInternalKey pik = ParsedInternalKey(_user_key_with_ts, s, t); 27002: 27002: 27002: SetFrom(pik, ts); 27002: } 27002: 27002: void SetFrom(const ParsedInternalKey& p) { 27002: rep_.clear(); 27002: AppendInternalKey(&rep_, p); 27002: } 27002: 27002: void SetFrom(const ParsedInternalKey& p, const Slice& ts) { 27002: rep_.clear(); 27002: AppendInternalKeyWithDifferentTimestamp(&rep_, p, ts); 27002: } 27002: 27002: void Clear() { rep_.clear(); } 27002: 27002: 27002: 27002: std::string* rep() { return &rep_; } 27002: 27002: 27002: 27002: void ConvertFromUserKey(SequenceNumber s, ValueType t) { 27002: AppendInternalKeyFooter(&rep_, s, t); 27002: } 27002: 27002: std::string DebugString(bool hex) const; 27002: }; 27002: 27002: inline int InternalKeyComparator::Compare(const InternalKey& a, 27002: const InternalKey& b) const { 27002: return Compare(a.Encode(), b.Encode()); 27002: } 27002: 27002: inline Status ParseInternalKey(const Slice& internal_key, 27002: ParsedInternalKey* result, bool log_err_key) { 27002: const size_t n = internal_key.size(); 27002: 27002: if (n < kNumInternalBytes) { 27002: return Status::Corruption("Corrupted Key: Internal Key too small. Size=" + 27002: std::to_string(n) + ". "); 27002: } 27002: 27002: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 27002: unsigned char c = num & 0xff; 27002: result->sequence = num >> 8; 27002: result->type = static_cast(c); 27002: 27002: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: result->type <= ValueType::kMaxValue 27002: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "result->type <= ValueType::kMaxValue" 27002: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 387, __extension__ __PRETTY_FUNCTION__)) 27002: # 387 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: result->user_key = Slice(internal_key.data(), n - kNumInternalBytes); 27002: 27002: if (IsExtendedValueType(result->type)) { 27002: return Status::OK(); 27002: } else { 27002: return Status::Corruption("Corrupted Key", 27002: result->DebugString(log_err_key, true)); 27002: } 27002: } 27002: 27002: 27002: 27002: inline void UpdateInternalKey(std::string* ikey, uint64_t seq, ValueType t) { 27002: size_t ikey_sz = ikey->size(); 27002: 27002: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ikey_sz >= kNumInternalBytes 27002: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "ikey_sz >= kNumInternalBytes" 27002: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 402, __extension__ __PRETTY_FUNCTION__)) 27002: # 402 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: uint64_t newval = (seq << 8) | t; 27002: 27002: 27002: 27002: EncodeFixed64(&(*ikey)[ikey_sz - kNumInternalBytes], newval); 27002: } 27002: 27002: 27002: inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { 27002: const size_t n = internal_key.size(); 27002: 27002: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: n >= kNumInternalBytes 27002: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "n >= kNumInternalBytes" 27002: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 413, __extension__ __PRETTY_FUNCTION__)) 27002: # 413 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 27002: return num >> 8; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class IterKey { 27002: public: 27002: IterKey() 27002: : buf_(space_), 27002: key_(buf_), 27002: key_size_(0), 27002: buf_size_(sizeof(space_)), 27002: is_user_key_(true) {} 27002: 27002: IterKey(const IterKey&) = delete; 27002: void operator=(const IterKey&) = delete; 27002: 27002: ~IterKey() { ResetBuffer(); } 27002: 27002: 27002: void SetIsUserKey(bool is_user_key) { is_user_key_ = is_user_key; } 27002: 27002: 27002: Slice GetKey() const { return Slice(key_, key_size_); } 27002: 27002: Slice GetInternalKey() const { 27002: 27002: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: !IsUserKey() 27002: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "!IsUserKey()" 27002: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 445, __extension__ __PRETTY_FUNCTION__)) 27002: # 445 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: return Slice(key_, key_size_); 27002: } 27002: 27002: Slice GetUserKey() const { 27002: if (IsUserKey()) { 27002: return Slice(key_, key_size_); 27002: } else { 27002: 27002: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: key_size_ >= kNumInternalBytes 27002: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "key_size_ >= kNumInternalBytes" 27002: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 453, __extension__ __PRETTY_FUNCTION__)) 27002: # 453 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: return Slice(key_, key_size_ - kNumInternalBytes); 27002: } 27002: } 27002: 27002: size_t Size() const { return key_size_; } 27002: 27002: void Clear() { key_size_ = 0; } 27002: 27002: 27002: 27002: 27002: 27002: void TrimAppend(const size_t shared_len, const char* non_shared_data, 27002: const size_t non_shared_len) { 27002: 27002: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: shared_len <= key_size_ 27002: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "shared_len <= key_size_" 27002: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 468, __extension__ __PRETTY_FUNCTION__)) 27002: # 468 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: size_t total_size = shared_len + non_shared_len; 27002: 27002: if (IsKeyPinned() ) { 27002: 27002: EnlargeBufferIfNeeded(total_size); 27002: memcpy(buf_, key_, shared_len); 27002: } else if (total_size > buf_size_) { 27002: 27002: char* p = new char[total_size]; 27002: memcpy(p, key_, shared_len); 27002: 27002: if (buf_ != space_) { 27002: delete[] buf_; 27002: } 27002: 27002: buf_ = p; 27002: buf_size_ = total_size; 27002: } 27002: 27002: memcpy(buf_ + shared_len, non_shared_data, non_shared_len); 27002: key_ = buf_; 27002: key_size_ = total_size; 27002: } 27002: 27002: Slice SetKey(const Slice& key, bool copy = true) { 27002: 27002: return SetKeyImpl(key, copy); 27002: } 27002: 27002: Slice SetUserKey(const Slice& key, bool copy = true) { 27002: is_user_key_ = true; 27002: return SetKeyImpl(key, copy); 27002: } 27002: 27002: Slice SetInternalKey(const Slice& key, bool copy = true) { 27002: is_user_key_ = false; 27002: return SetKeyImpl(key, copy); 27002: } 27002: 27002: 27002: 27002: Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { 27002: size_t key_n = key.size(); 27002: 27002: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: key_n >= kNumInternalBytes 27002: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "key_n >= kNumInternalBytes" 27002: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 512, __extension__ __PRETTY_FUNCTION__)) 27002: # 512 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: SetInternalKey(key); 27002: ikey->user_key = Slice(key_, key_n - kNumInternalBytes); 27002: return Slice(key_, key_n); 27002: } 27002: 27002: 27002: void OwnKey() { 27002: 27002: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: IsKeyPinned() == true 27002: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "IsKeyPinned() == true" 27002: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 520, __extension__ __PRETTY_FUNCTION__)) 27002: # 520 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: 27002: Reserve(key_size_); 27002: memcpy(buf_, key_, key_size_); 27002: key_ = buf_; 27002: } 27002: 27002: 27002: 27002: void UpdateInternalKey(uint64_t seq, ValueType t, const Slice* ts = nullptr) { 27002: 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: !IsKeyPinned() 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "!IsKeyPinned()" 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 530, __extension__ __PRETTY_FUNCTION__)) 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: 27002: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: key_size_ >= kNumInternalBytes 27002: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "key_size_ >= kNumInternalBytes" 27002: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 531, __extension__ __PRETTY_FUNCTION__)) 27002: # 531 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: if (ts) { 27002: 27002: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: key_size_ >= kNumInternalBytes + ts->size() 27002: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "key_size_ >= kNumInternalBytes + ts->size()" 27002: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 533, __extension__ __PRETTY_FUNCTION__)) 27002: # 533 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: memcpy(&buf_[key_size_ - kNumInternalBytes - ts->size()], ts->data(), 27002: ts->size()); 27002: } 27002: uint64_t newval = (seq << 8) | t; 27002: EncodeFixed64(&buf_[key_size_ - kNumInternalBytes], newval); 27002: } 27002: 27002: bool IsKeyPinned() const { return (key_ != buf_); } 27002: 27002: 27002: 27002: 27002: void SetInternalKey(const Slice& key_prefix, const Slice& user_key, 27002: SequenceNumber s, 27002: ValueType value_type = kValueTypeForSeek, 27002: const Slice* ts = nullptr) { 27002: size_t psize = key_prefix.size(); 27002: size_t usize = user_key.size(); 27002: size_t ts_sz = (ts != nullptr ? ts->size() : 0); 27002: EnlargeBufferIfNeeded(psize + usize + sizeof(uint64_t) + ts_sz); 27002: if (psize > 0) { 27002: memcpy(buf_, key_prefix.data(), psize); 27002: } 27002: memcpy(buf_ + psize, user_key.data(), usize); 27002: if (ts) { 27002: memcpy(buf_ + psize + usize, ts->data(), ts_sz); 27002: } 27002: EncodeFixed64(buf_ + usize + psize + ts_sz, 27002: PackSequenceAndType(s, value_type)); 27002: 27002: key_ = buf_; 27002: key_size_ = psize + usize + sizeof(uint64_t) + ts_sz; 27002: is_user_key_ = false; 27002: } 27002: 27002: void SetInternalKey(const Slice& user_key, SequenceNumber s, 27002: ValueType value_type = kValueTypeForSeek, 27002: const Slice* ts = nullptr) { 27002: SetInternalKey(Slice(), user_key, s, value_type, ts); 27002: } 27002: 27002: void Reserve(size_t size) { 27002: EnlargeBufferIfNeeded(size); 27002: key_size_ = size; 27002: } 27002: 27002: void SetInternalKey(const ParsedInternalKey& parsed_key) { 27002: SetInternalKey(Slice(), parsed_key); 27002: } 27002: 27002: void SetInternalKey(const Slice& key_prefix, 27002: const ParsedInternalKey& parsed_key_suffix) { 27002: SetInternalKey(key_prefix, parsed_key_suffix.user_key, 27002: parsed_key_suffix.sequence, parsed_key_suffix.type); 27002: } 27002: 27002: void EncodeLengthPrefixedKey(const Slice& key) { 27002: auto size = key.size(); 27002: EnlargeBufferIfNeeded(size + static_cast(VarintLength(size))); 27002: char* ptr = EncodeVarint32(buf_, static_cast(size)); 27002: memcpy(ptr, key.data(), size); 27002: key_ = buf_; 27002: is_user_key_ = true; 27002: } 27002: 27002: bool IsUserKey() const { return is_user_key_; } 27002: 27002: private: 27002: char* buf_; 27002: const char* key_; 27002: size_t key_size_; 27002: size_t buf_size_; 27002: char space_[32]; 27002: bool is_user_key_; 27002: 27002: Slice SetKeyImpl(const Slice& key, bool copy) { 27002: size_t size = key.size(); 27002: if (copy) { 27002: 27002: EnlargeBufferIfNeeded(size); 27002: memcpy(buf_, key.data(), size); 27002: key_ = buf_; 27002: } else { 27002: 27002: key_ = key.data(); 27002: } 27002: key_size_ = size; 27002: return Slice(key_, key_size_); 27002: } 27002: 27002: void ResetBuffer() { 27002: if (buf_ != space_) { 27002: delete[] buf_; 27002: buf_ = space_; 27002: } 27002: buf_size_ = sizeof(space_); 27002: key_size_ = 0; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: void EnlargeBufferIfNeeded(size_t key_size) { 27002: 27002: 27002: if (key_size > buf_size_) { 27002: EnlargeBuffer(key_size); 27002: } 27002: } 27002: 27002: void EnlargeBuffer(size_t key_size); 27002: }; 27002: 27002: 27002: 27002: class InternalKeySliceTransform : public SliceTransform { 27002: public: 27002: explicit InternalKeySliceTransform(const SliceTransform* transform) 27002: : transform_(transform) {} 27002: 27002: virtual const char* Name() const override { return transform_->Name(); } 27002: 27002: virtual Slice Transform(const Slice& src) const override { 27002: auto user_key = ExtractUserKey(src); 27002: return transform_->Transform(user_key); 27002: } 27002: 27002: virtual bool InDomain(const Slice& src) const override { 27002: auto user_key = ExtractUserKey(src); 27002: return transform_->InDomain(user_key); 27002: } 27002: 27002: virtual bool InRange(const Slice& dst) const override { 27002: auto user_key = ExtractUserKey(dst); 27002: return transform_->InRange(user_key); 27002: } 27002: 27002: const SliceTransform* user_prefix_extractor() const { return transform_; } 27002: 27002: private: 27002: 27002: 27002: const SliceTransform* const transform_; 27002: }; 27002: 27002: 27002: 27002: 27002: extern bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key, 27002: bool cf_record); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern Status ReadRecordFromWriteBatch(Slice* input, char* tag, 27002: uint32_t* column_family, Slice* key, 27002: Slice* value, Slice* blob, Slice* xid); 27002: 27002: 27002: 27002: 27002: 27002: struct RangeTombstone { 27002: Slice start_key_; 27002: Slice end_key_; 27002: SequenceNumber seq_; 27002: 27002: 27002: Slice ts_; 27002: std::string pinned_start_key_; 27002: std::string pinned_end_key_; 27002: 27002: RangeTombstone() = default; 27002: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) 27002: : start_key_(sk), end_key_(ek), seq_(sn) {} 27002: 27002: 27002: 27002: 27002: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn, Slice ts) 27002: : seq_(sn), ts_(ts) { 27002: 27002: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: (static_cast ( 27002: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: !ts.empty() 27002: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: "!ts.empty()" 27002: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 3 4 27002: , "./db/dbformat.h", 719, __extension__ __PRETTY_FUNCTION__)) 27002: # 719 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: ; 27002: pinned_start_key_.reserve(sk.size()); 27002: pinned_start_key_.append(sk.data(), sk.size() - ts.size()); 27002: pinned_start_key_.append(ts.data(), ts.size()); 27002: pinned_end_key_.reserve(ek.size()); 27002: pinned_end_key_.append(ek.data(), ek.size() - ts.size()); 27002: pinned_end_key_.append(ts.data(), ts.size()); 27002: start_key_ = pinned_start_key_; 27002: end_key_ = pinned_end_key_; 27002: } 27002: 27002: RangeTombstone(ParsedInternalKey parsed_key, Slice value) { 27002: start_key_ = parsed_key.user_key; 27002: seq_ = parsed_key.sequence; 27002: end_key_ = value; 27002: } 27002: 27002: 27002: std::pair Serialize() const { 27002: auto key = InternalKey(start_key_, seq_, kTypeRangeDeletion); 27002: return std::make_pair(std::move(key), end_key_); 27002: } 27002: 27002: 27002: InternalKey SerializeKey() const { 27002: return InternalKey(start_key_, seq_, kTypeRangeDeletion); 27002: } 27002: # 754 "/build/reproducible-path/rocksdb-7.8.3/db/dbformat.h" 27002: InternalKey SerializeEndKey() const { 27002: if (!ts_.empty()) { 27002: static constexpr char kTsMax[] = "\xff\xff\xff\xff\xff\xff\xff\xff\xff"; 27002: if (ts_.size() <= strlen(kTsMax)) { 27002: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 27002: Slice(kTsMax, ts_.size())); 27002: } else { 27002: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 27002: std::string(ts_.size(), '\xff')); 27002: } 27002: } 27002: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion); 27002: } 27002: }; 27002: 27002: inline int InternalKeyComparator::Compare(const Slice& akey, 27002: const Slice& bkey) const { 27002: 27002: 27002: 27002: 27002: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 27002: if (r == 0) { 27002: const uint64_t anum = 27002: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes); 27002: const uint64_t bnum = 27002: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes); 27002: if (anum > bnum) { 27002: r = -1; 27002: } else if (anum < bnum) { 27002: r = +1; 27002: } 27002: } 27002: return r; 27002: } 27002: 27002: inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, 27002: const Slice& bkey) const { 27002: 27002: 27002: 27002: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 27002: if (r == 0) { 27002: 27002: const uint64_t anum = 27002: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes) >> 8; 27002: const uint64_t bnum = 27002: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes) >> 8; 27002: if (anum > bnum) { 27002: r = -1; 27002: } else if (anum < bnum) { 27002: r = +1; 27002: } 27002: } 27002: return r; 27002: } 27002: 27002: inline int InternalKeyComparator::Compare(const Slice& a, 27002: SequenceNumber a_global_seqno, 27002: const Slice& b, 27002: SequenceNumber b_global_seqno) const { 27002: int r = user_comparator_.Compare(ExtractUserKey(a), ExtractUserKey(b)); 27002: if (r == 0) { 27002: uint64_t a_footer, b_footer; 27002: if (a_global_seqno == kDisableGlobalSequenceNumber) { 27002: a_footer = ExtractInternalKeyFooter(a); 27002: } else { 27002: a_footer = PackSequenceAndType(a_global_seqno, ExtractValueType(a)); 27002: } 27002: if (b_global_seqno == kDisableGlobalSequenceNumber) { 27002: b_footer = ExtractInternalKeyFooter(b); 27002: } else { 27002: b_footer = PackSequenceAndType(b_global_seqno, ExtractValueType(b)); 27002: } 27002: if (a_footer > b_footer) { 27002: r = -1; 27002: } else if (a_footer < b_footer) { 27002: r = +1; 27002: } 27002: } 27002: return r; 27002: } 27002: 27002: 27002: struct ParsedInternalKeyComparator { 27002: explicit ParsedInternalKeyComparator(const InternalKeyComparator* c) 27002: : cmp(c) {} 27002: 27002: bool operator()(const ParsedInternalKey& a, 27002: const ParsedInternalKey& b) const { 27002: return cmp->Compare(a, b) < 0; 27002: } 27002: 27002: const InternalKeyComparator* cmp; 27002: }; 27002: 27002: } 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/kv_checksum.h" 1 27002: # 31 "/build/reproducible-path/rocksdb-7.8.3/db/kv_checksum.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/hash.h" 1 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/util/hash.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/fastrange.h" 1 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/util/fastrange.h" 27002: 27002: # 31 "/build/reproducible-path/rocksdb-7.8.3/util/fastrange.h" 27002: namespace rocksdb { 27002: 27002: namespace detail { 27002: 27002: 27002: template 27002: struct FastRangeGenericImpl { 27002: 27002: }; 27002: 27002: template 27002: struct FastRangeGenericImpl { 27002: static inline Range Fn(uint32_t hash, Range range) { 27002: static_assert(std::is_unsigned::value, "must be unsigned"); 27002: static_assert(sizeof(Range) <= sizeof(uint32_t), 27002: "cannot be larger than hash (32 bits)"); 27002: 27002: uint64_t product = uint64_t{range} * hash; 27002: return static_cast(product >> 32); 27002: } 27002: }; 27002: 27002: template 27002: struct FastRangeGenericImpl { 27002: static inline Range Fn(uint64_t hash, Range range) { 27002: static_assert(std::is_unsigned::value, "must be unsigned"); 27002: static_assert(sizeof(Range) <= sizeof(uint64_t), 27002: "cannot be larger than hash (64 bits)"); 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/fastrange.h" 27002: uint64_t range64 = range; 27002: uint64_t tmp = uint64_t{range64 & 0xffffFFFF} * uint64_t{hash & 0xffffFFFF}; 27002: tmp >>= 32; 27002: tmp += uint64_t{range64 & 0xffffFFFF} * uint64_t{hash >> 32}; 27002: 27002: uint64_t tmp2 = uint64_t{range64 >> 32} * uint64_t{hash & 0xffffFFFF}; 27002: tmp += static_cast(tmp2); 27002: tmp >>= 32; 27002: tmp += (tmp2 >> 32); 27002: tmp += uint64_t{range64 >> 32} * uint64_t{hash >> 32}; 27002: return static_cast(tmp); 27002: 27002: } 27002: }; 27002: 27002: } 27002: # 96 "/build/reproducible-path/rocksdb-7.8.3/util/fastrange.h" 27002: template 27002: inline Range FastRangeGeneric(Hash hash, Range range) { 27002: return detail::FastRangeGenericImpl::Fn(hash, range); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: inline size_t FastRange64(uint64_t hash, size_t range) { 27002: return FastRangeGeneric(hash, range); 27002: } 27002: 27002: 27002: inline uint32_t FastRange32(uint32_t hash, uint32_t range) { 27002: return FastRangeGeneric(hash, range); 27002: } 27002: 27002: } 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/util/hash.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: extern uint64_t Hash64(const char* data, size_t n, uint64_t seed); 27002: 27002: 27002: extern uint64_t Hash64(const char* data, size_t n); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline uint64_t NPHash64(const char* data, size_t n, uint64_t seed) { 27002: 27002: 27002: 27002: 27002: 27002: return Hash64(data, n, seed); 27002: 27002: } 27002: 27002: 27002: inline uint64_t NPHash64(const char* data, size_t n) { 27002: 27002: 27002: 27002: 27002: 27002: return Hash64(data, n); 27002: 27002: } 27002: 27002: 27002: 27002: void Hash2x64(const char* data, size_t n, uint64_t* high64, uint64_t* low64); 27002: void Hash2x64(const char* data, size_t n, uint64_t seed, uint64_t* high64, 27002: uint64_t* low64); 27002: 27002: 27002: 27002: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, 27002: uint64_t* out_high64, uint64_t* out_low64); 27002: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 27002: uint64_t* out_high64, uint64_t* out_low64); 27002: 27002: 27002: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, 27002: uint64_t* out_high64, uint64_t* out_low64); 27002: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 27002: uint64_t* out_high64, uint64_t* out_low64); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern uint32_t Hash(const char* data, size_t n, uint32_t seed); 27002: 27002: 27002: inline uint32_t BloomHash(const Slice& key) { 27002: return Hash(key.data(), key.size(), 0xbc9f1d34); 27002: } 27002: 27002: inline uint64_t GetSliceHash64(const Slice& key) { 27002: return Hash64(key.data(), key.size()); 27002: } 27002: 27002: 27002: extern uint64_t (*kGetSliceNPHash64UnseededFnPtr)(const Slice&); 27002: 27002: inline uint64_t GetSliceNPHash64(const Slice& s) { 27002: return NPHash64(s.data(), s.size()); 27002: } 27002: 27002: inline uint64_t GetSliceNPHash64(const Slice& s, uint64_t seed) { 27002: return NPHash64(s.data(), s.size(), seed); 27002: } 27002: 27002: 27002: 27002: extern uint64_t GetSlicePartsNPHash64(const SliceParts& data, uint64_t seed); 27002: 27002: inline size_t GetSliceRangedNPHash(const Slice& s, size_t range) { 27002: return FastRange64(NPHash64(s.data(), s.size()), range); 27002: } 27002: 27002: 27002: inline uint32_t GetSliceHash(const Slice& s) { 27002: return Hash(s.data(), s.size(), 397); 27002: } 27002: 27002: 27002: inline uint32_t Upper32of64(uint64_t v) { 27002: return static_cast(v >> 32); 27002: } 27002: inline uint32_t Lower32of64(uint64_t v) { return static_cast(v); } 27002: 27002: 27002: 27002: struct SliceHasher { 27002: uint32_t operator()(const Slice& s) const { return GetSliceHash(s); } 27002: }; 27002: 27002: } 27002: # 38 "/build/reproducible-path/rocksdb-7.8.3/db/kv_checksum.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: template 27002: class ProtectionInfo; 27002: template 27002: class ProtectionInfoKVO; 27002: template 27002: class ProtectionInfoKVOC; 27002: template 27002: class ProtectionInfoKVOS; 27002: 27002: 27002: using ProtectionInfo64 = ProtectionInfo; 27002: using ProtectionInfoKVO64 = ProtectionInfoKVO; 27002: using ProtectionInfoKVOC64 = ProtectionInfoKVOC; 27002: using ProtectionInfoKVOS64 = ProtectionInfoKVOS; 27002: 27002: template 27002: class ProtectionInfo { 27002: public: 27002: ProtectionInfo() = default; 27002: 27002: Status GetStatus() const; 27002: ProtectionInfoKVO ProtectKVO(const Slice& key, const Slice& value, 27002: ValueType op_type) const; 27002: ProtectionInfoKVO ProtectKVO(const SliceParts& key, 27002: const SliceParts& value, 27002: ValueType op_type) const; 27002: 27002: T GetVal() const { return val_; } 27002: 27002: private: 27002: friend class ProtectionInfoKVO; 27002: friend class ProtectionInfoKVOS; 27002: friend class ProtectionInfoKVOC; 27002: # 82 "/build/reproducible-path/rocksdb-7.8.3/db/kv_checksum.h" 27002: static const uint64_t kSeedK = 0; 27002: static const uint64_t kSeedV = 0xD28AAD72F49BD50B; 27002: static const uint64_t kSeedO = 0xA5155AE5E937AA16; 27002: static const uint64_t kSeedS = 0x77A00858DDD37F21; 27002: static const uint64_t kSeedC = 0x4A2AB5CBD26F542C; 27002: 27002: ProtectionInfo(T val) : val_(val) { 27002: static_assert(sizeof(ProtectionInfo) == sizeof(T), ""); 27002: } 27002: 27002: void SetVal(T val) { val_ = val; } 27002: 27002: T val_ = 0; 27002: }; 27002: 27002: template 27002: class ProtectionInfoKVO { 27002: public: 27002: ProtectionInfoKVO() = default; 27002: 27002: ProtectionInfo StripKVO(const Slice& key, const Slice& value, 27002: ValueType op_type) const; 27002: ProtectionInfo StripKVO(const SliceParts& key, const SliceParts& value, 27002: ValueType op_type) const; 27002: 27002: ProtectionInfoKVOC ProtectC(ColumnFamilyId column_family_id) const; 27002: ProtectionInfoKVOS ProtectS(SequenceNumber sequence_number) const; 27002: 27002: void UpdateK(const Slice& old_key, const Slice& new_key); 27002: void UpdateK(const SliceParts& old_key, const SliceParts& new_key); 27002: void UpdateV(const Slice& old_value, const Slice& new_value); 27002: void UpdateV(const SliceParts& old_value, const SliceParts& new_value); 27002: void UpdateO(ValueType old_op_type, ValueType new_op_type); 27002: 27002: T GetVal() const { return info_.GetVal(); } 27002: 27002: private: 27002: friend class ProtectionInfo; 27002: friend class ProtectionInfoKVOS; 27002: friend class ProtectionInfoKVOC; 27002: 27002: explicit ProtectionInfoKVO(T val) : info_(val) { 27002: static_assert(sizeof(ProtectionInfoKVO) == sizeof(T), ""); 27002: } 27002: 27002: void SetVal(T val) { info_.SetVal(val); } 27002: 27002: ProtectionInfo info_; 27002: }; 27002: 27002: template 27002: class ProtectionInfoKVOC { 27002: public: 27002: ProtectionInfoKVOC() = default; 27002: 27002: ProtectionInfoKVO StripC(ColumnFamilyId column_family_id) const; 27002: 27002: void UpdateK(const Slice& old_key, const Slice& new_key) { 27002: kvo_.UpdateK(old_key, new_key); 27002: } 27002: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 27002: kvo_.UpdateK(old_key, new_key); 27002: } 27002: void UpdateV(const Slice& old_value, const Slice& new_value) { 27002: kvo_.UpdateV(old_value, new_value); 27002: } 27002: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 27002: kvo_.UpdateV(old_value, new_value); 27002: } 27002: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 27002: kvo_.UpdateO(old_op_type, new_op_type); 27002: } 27002: void UpdateC(ColumnFamilyId old_column_family_id, 27002: ColumnFamilyId new_column_family_id); 27002: 27002: T GetVal() const { return kvo_.GetVal(); } 27002: 27002: private: 27002: friend class ProtectionInfoKVO; 27002: 27002: explicit ProtectionInfoKVOC(T val) : kvo_(val) { 27002: static_assert(sizeof(ProtectionInfoKVOC) == sizeof(T), ""); 27002: } 27002: 27002: void SetVal(T val) { kvo_.SetVal(val); } 27002: 27002: ProtectionInfoKVO kvo_; 27002: }; 27002: 27002: template 27002: class ProtectionInfoKVOS { 27002: public: 27002: ProtectionInfoKVOS() = default; 27002: 27002: ProtectionInfoKVO StripS(SequenceNumber sequence_number) const; 27002: 27002: void UpdateK(const Slice& old_key, const Slice& new_key) { 27002: kvo_.UpdateK(old_key, new_key); 27002: } 27002: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 27002: kvo_.UpdateK(old_key, new_key); 27002: } 27002: void UpdateV(const Slice& old_value, const Slice& new_value) { 27002: kvo_.UpdateV(old_value, new_value); 27002: } 27002: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 27002: kvo_.UpdateV(old_value, new_value); 27002: } 27002: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 27002: kvo_.UpdateO(old_op_type, new_op_type); 27002: } 27002: void UpdateS(SequenceNumber old_sequence_number, 27002: SequenceNumber new_sequence_number); 27002: 27002: T GetVal() const { return kvo_.GetVal(); } 27002: 27002: private: 27002: friend class ProtectionInfoKVO; 27002: 27002: explicit ProtectionInfoKVOS(T val) : kvo_(val) { 27002: static_assert(sizeof(ProtectionInfoKVOS) == sizeof(T), ""); 27002: } 27002: 27002: void SetVal(T val) { kvo_.SetVal(val); } 27002: 27002: ProtectionInfoKVO kvo_; 27002: }; 27002: 27002: template 27002: Status ProtectionInfo::GetStatus() const { 27002: if (val_ != 0) { 27002: return Status::Corruption("ProtectionInfo mismatch"); 27002: } 27002: return Status::OK(); 27002: } 27002: 27002: template 27002: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const Slice& key, 27002: const Slice& value, 27002: ValueType op_type) const { 27002: T val = GetVal(); 27002: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 27002: val = 27002: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 27002: val = val ^ 27002: static_cast(NPHash64(reinterpret_cast(&op_type), 27002: sizeof(op_type), ProtectionInfo::kSeedO)); 27002: return ProtectionInfoKVO(val); 27002: } 27002: 27002: template 27002: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const SliceParts& key, 27002: const SliceParts& value, 27002: ValueType op_type) const { 27002: T val = GetVal(); 27002: val = val ^ 27002: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 27002: val = val ^ 27002: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 27002: val = val ^ 27002: static_cast(NPHash64(reinterpret_cast(&op_type), 27002: sizeof(op_type), ProtectionInfo::kSeedO)); 27002: return ProtectionInfoKVO(val); 27002: } 27002: 27002: template 27002: void ProtectionInfoKVO::UpdateK(const Slice& old_key, const Slice& new_key) { 27002: T val = GetVal(); 27002: val = val ^ 27002: static_cast(GetSliceNPHash64(old_key, ProtectionInfo::kSeedK)); 27002: val = val ^ 27002: static_cast(GetSliceNPHash64(new_key, ProtectionInfo::kSeedK)); 27002: SetVal(val); 27002: } 27002: 27002: template 27002: void ProtectionInfoKVO::UpdateK(const SliceParts& old_key, 27002: const SliceParts& new_key) { 27002: T val = GetVal(); 27002: val = val ^ static_cast( 27002: GetSlicePartsNPHash64(old_key, ProtectionInfo::kSeedK)); 27002: val = val ^ static_cast( 27002: GetSlicePartsNPHash64(new_key, ProtectionInfo::kSeedK)); 27002: SetVal(val); 27002: } 27002: 27002: template 27002: void ProtectionInfoKVO::UpdateV(const Slice& old_value, 27002: const Slice& new_value) { 27002: T val = GetVal(); 27002: val = val ^ 27002: static_cast(GetSliceNPHash64(old_value, ProtectionInfo::kSeedV)); 27002: val = val ^ 27002: static_cast(GetSliceNPHash64(new_value, ProtectionInfo::kSeedV)); 27002: SetVal(val); 27002: } 27002: 27002: template 27002: void ProtectionInfoKVO::UpdateV(const SliceParts& old_value, 27002: const SliceParts& new_value) { 27002: T val = GetVal(); 27002: val = val ^ static_cast( 27002: GetSlicePartsNPHash64(old_value, ProtectionInfo::kSeedV)); 27002: val = val ^ static_cast( 27002: GetSlicePartsNPHash64(new_value, ProtectionInfo::kSeedV)); 27002: SetVal(val); 27002: } 27002: 27002: template 27002: void ProtectionInfoKVO::UpdateO(ValueType old_op_type, 27002: ValueType new_op_type) { 27002: T val = GetVal(); 27002: val = val ^ static_cast(NPHash64(reinterpret_cast(&old_op_type), 27002: sizeof(old_op_type), 27002: ProtectionInfo::kSeedO)); 27002: val = val ^ static_cast(NPHash64(reinterpret_cast(&new_op_type), 27002: sizeof(new_op_type), 27002: ProtectionInfo::kSeedO)); 27002: SetVal(val); 27002: } 27002: 27002: template 27002: ProtectionInfo ProtectionInfoKVO::StripKVO(const Slice& key, 27002: const Slice& value, 27002: ValueType op_type) const { 27002: T val = GetVal(); 27002: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 27002: val = 27002: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 27002: val = val ^ 27002: static_cast(NPHash64(reinterpret_cast(&op_type), 27002: sizeof(op_type), ProtectionInfo::kSeedO)); 27002: return ProtectionInfo(val); 27002: } 27002: 27002: template 27002: ProtectionInfo ProtectionInfoKVO::StripKVO(const SliceParts& key, 27002: const SliceParts& value, 27002: ValueType op_type) const { 27002: T val = GetVal(); 27002: val = val ^ 27002: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 27002: val = val ^ 27002: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 27002: val = val ^ 27002: static_cast(NPHash64(reinterpret_cast(&op_type), 27002: sizeof(op_type), ProtectionInfo::kSeedO)); 27002: return ProtectionInfo(val); 27002: } 27002: 27002: template 27002: ProtectionInfoKVOC ProtectionInfoKVO::ProtectC( 27002: ColumnFamilyId column_family_id) const { 27002: T val = GetVal(); 27002: val = val ^ static_cast(NPHash64( 27002: reinterpret_cast(&column_family_id), 27002: sizeof(column_family_id), ProtectionInfo::kSeedC)); 27002: return ProtectionInfoKVOC(val); 27002: } 27002: 27002: template 27002: ProtectionInfoKVO ProtectionInfoKVOC::StripC( 27002: ColumnFamilyId column_family_id) const { 27002: T val = GetVal(); 27002: val = val ^ static_cast(NPHash64( 27002: reinterpret_cast(&column_family_id), 27002: sizeof(column_family_id), ProtectionInfo::kSeedC)); 27002: return ProtectionInfoKVO(val); 27002: } 27002: 27002: template 27002: void ProtectionInfoKVOC::UpdateC(ColumnFamilyId old_column_family_id, 27002: ColumnFamilyId new_column_family_id) { 27002: T val = GetVal(); 27002: val = val ^ static_cast(NPHash64( 27002: reinterpret_cast(&old_column_family_id), 27002: sizeof(old_column_family_id), ProtectionInfo::kSeedC)); 27002: val = val ^ static_cast(NPHash64( 27002: reinterpret_cast(&new_column_family_id), 27002: sizeof(new_column_family_id), ProtectionInfo::kSeedC)); 27002: SetVal(val); 27002: } 27002: 27002: template 27002: ProtectionInfoKVOS ProtectionInfoKVO::ProtectS( 27002: SequenceNumber sequence_number) const { 27002: T val = GetVal(); 27002: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 27002: sizeof(sequence_number), 27002: ProtectionInfo::kSeedS)); 27002: return ProtectionInfoKVOS(val); 27002: } 27002: 27002: template 27002: ProtectionInfoKVO ProtectionInfoKVOS::StripS( 27002: SequenceNumber sequence_number) const { 27002: T val = GetVal(); 27002: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 27002: sizeof(sequence_number), 27002: ProtectionInfo::kSeedS)); 27002: return ProtectionInfoKVO(val); 27002: } 27002: 27002: template 27002: void ProtectionInfoKVOS::UpdateS(SequenceNumber old_sequence_number, 27002: SequenceNumber new_sequence_number) { 27002: T val = GetVal(); 27002: val = val ^ static_cast(NPHash64( 27002: reinterpret_cast(&old_sequence_number), 27002: sizeof(old_sequence_number), ProtectionInfo::kSeedS)); 27002: val = val ^ static_cast(NPHash64( 27002: reinterpret_cast(&new_sequence_number), 27002: sizeof(new_sequence_number), ProtectionInfo::kSeedS)); 27002: SetVal(val); 27002: } 27002: 27002: } 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/set" 1 3 27002: # 58 "/usr/include/c++/12/set" 3 27002: 27002: # 59 "/usr/include/c++/12/set" 3 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/stl_set.h" 1 3 27002: # 64 "/usr/include/c++/12/bits/stl_set.h" 3 27002: 27002: # 64 "/usr/include/c++/12/bits/stl_set.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: class multiset; 27002: # 92 "/usr/include/c++/12/bits/stl_set.h" 3 27002: template, 27002: typename _Alloc = std::allocator<_Key> > 27002: class set 27002: { 27002: # 108 "/usr/include/c++/12/bits/stl_set.h" 3 27002: static_assert(is_same::type, _Key>::value, 27002: "std::set must have a non-const, non-volatile value_type"); 27002: 27002: 27002: 27002: 27002: 27002: 27002: public: 27002: 27002: 27002: 27002: typedef _Key key_type; 27002: typedef _Key value_type; 27002: typedef _Compare key_compare; 27002: typedef _Compare value_compare; 27002: typedef _Alloc allocator_type; 27002: 27002: 27002: private: 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind<_Key>::other _Key_alloc_type; 27002: 27002: typedef _Rb_tree, 27002: key_compare, _Key_alloc_type> _Rep_type; 27002: _Rep_type _M_t; 27002: 27002: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 27002: 27002: public: 27002: 27002: 27002: typedef typename _Alloc_traits::pointer pointer; 27002: typedef typename _Alloc_traits::const_pointer const_pointer; 27002: typedef typename _Alloc_traits::reference reference; 27002: typedef typename _Alloc_traits::const_reference const_reference; 27002: 27002: 27002: 27002: typedef typename _Rep_type::const_iterator iterator; 27002: typedef typename _Rep_type::const_iterator const_iterator; 27002: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 27002: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 27002: typedef typename _Rep_type::size_type size_type; 27002: typedef typename _Rep_type::difference_type difference_type; 27002: 27002: 27002: 27002: using node_type = typename _Rep_type::node_type; 27002: using insert_return_type = typename _Rep_type::insert_return_type; 27002: # 167 "/usr/include/c++/12/bits/stl_set.h" 3 27002: set() = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: set(const _Compare& __comp, 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Key_alloc_type(__a)) { } 27002: # 190 "/usr/include/c++/12/bits/stl_set.h" 3 27002: template 27002: set(_InputIterator __first, _InputIterator __last) 27002: : _M_t() 27002: { _M_t._M_insert_range_unique(__first, __last); } 27002: # 207 "/usr/include/c++/12/bits/stl_set.h" 3 27002: template 27002: set(_InputIterator __first, _InputIterator __last, 27002: const _Compare& __comp, 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Key_alloc_type(__a)) 27002: { _M_t._M_insert_range_unique(__first, __last); } 27002: # 223 "/usr/include/c++/12/bits/stl_set.h" 3 27002: set(const set&) = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: set(set&&) = default; 27002: # 243 "/usr/include/c++/12/bits/stl_set.h" 3 27002: set(initializer_list __l, 27002: const _Compare& __comp = _Compare(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Key_alloc_type(__a)) 27002: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 27002: 27002: 27002: explicit 27002: set(const allocator_type& __a) 27002: : _M_t(_Key_alloc_type(__a)) { } 27002: 27002: 27002: set(const set& __x, const __type_identity_t& __a) 27002: : _M_t(__x._M_t, _Key_alloc_type(__a)) { } 27002: 27002: 27002: set(set&& __x, const __type_identity_t& __a) 27002: noexcept(is_nothrow_copy_constructible<_Compare>::value 27002: && _Alloc_traits::_S_always_equal()) 27002: : _M_t(std::move(__x._M_t), _Key_alloc_type(__a)) { } 27002: 27002: 27002: set(initializer_list __l, const allocator_type& __a) 27002: : _M_t(_Key_alloc_type(__a)) 27002: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 27002: 27002: 27002: template 27002: set(_InputIterator __first, _InputIterator __last, 27002: const allocator_type& __a) 27002: : _M_t(_Key_alloc_type(__a)) 27002: { _M_t._M_insert_range_unique(__first, __last); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: ~set() = default; 27002: # 297 "/usr/include/c++/12/bits/stl_set.h" 3 27002: set& 27002: operator=(const set&) = default; 27002: 27002: 27002: set& 27002: operator=(set&&) = default; 27002: # 315 "/usr/include/c++/12/bits/stl_set.h" 3 27002: set& 27002: operator=(initializer_list __l) 27002: { 27002: _M_t._M_assign_unique(__l.begin(), __l.end()); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: key_compare 27002: key_comp() const 27002: { return _M_t.key_comp(); } 27002: 27002: value_compare 27002: value_comp() const 27002: { return _M_t.key_comp(); } 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return allocator_type(_M_t.get_allocator()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: begin() const noexcept 27002: { return _M_t.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: end() const noexcept 27002: { return _M_t.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: rbegin() const noexcept 27002: { return _M_t.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: rend() const noexcept 27002: { return _M_t.rend(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: cbegin() const noexcept 27002: { return _M_t.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: cend() const noexcept 27002: { return _M_t.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: crbegin() const noexcept 27002: { return _M_t.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: crend() const noexcept 27002: { return _M_t.rend(); } 27002: 27002: 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return _M_t.empty(); } 27002: 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_t.size(); } 27002: 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return _M_t.max_size(); } 27002: # 440 "/usr/include/c++/12/bits/stl_set.h" 3 27002: void 27002: swap(set& __x) 27002: noexcept(__is_nothrow_swappable<_Compare>::value) 27002: { _M_t.swap(__x._M_t); } 27002: # 460 "/usr/include/c++/12/bits/stl_set.h" 3 27002: template 27002: std::pair 27002: emplace(_Args&&... __args) 27002: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 27002: # 486 "/usr/include/c++/12/bits/stl_set.h" 3 27002: template 27002: iterator 27002: emplace_hint(const_iterator __pos, _Args&&... __args) 27002: { 27002: return _M_t._M_emplace_hint_unique(__pos, 27002: std::forward<_Args>(__args)...); 27002: } 27002: # 508 "/usr/include/c++/12/bits/stl_set.h" 3 27002: std::pair 27002: insert(const value_type& __x) 27002: { 27002: std::pair __p = 27002: _M_t._M_insert_unique(__x); 27002: return std::pair(__p.first, __p.second); 27002: } 27002: 27002: 27002: std::pair 27002: insert(value_type&& __x) 27002: { 27002: std::pair __p = 27002: _M_t._M_insert_unique(std::move(__x)); 27002: return std::pair(__p.first, __p.second); 27002: } 27002: # 545 "/usr/include/c++/12/bits/stl_set.h" 3 27002: iterator 27002: insert(const_iterator __position, const value_type& __x) 27002: { return _M_t._M_insert_unique_(__position, __x); } 27002: 27002: 27002: iterator 27002: insert(const_iterator __position, value_type&& __x) 27002: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 27002: # 564 "/usr/include/c++/12/bits/stl_set.h" 3 27002: template 27002: void 27002: insert(_InputIterator __first, _InputIterator __last) 27002: { _M_t._M_insert_range_unique(__first, __last); } 27002: # 577 "/usr/include/c++/12/bits/stl_set.h" 3 27002: void 27002: insert(initializer_list __l) 27002: { this->insert(__l.begin(), __l.end()); } 27002: 27002: 27002: 27002: 27002: node_type 27002: extract(const_iterator __pos) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 27002: return _M_t.extract(__pos); 27002: } 27002: 27002: 27002: node_type 27002: extract(const key_type& __x) 27002: { return _M_t.extract(__x); } 27002: 27002: 27002: insert_return_type 27002: insert(node_type&& __nh) 27002: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 27002: 27002: 27002: iterator 27002: insert(const_iterator __hint, node_type&& __nh) 27002: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 27002: 27002: template 27002: friend struct std::_Rb_tree_merge_helper; 27002: 27002: template 27002: void 27002: merge(set<_Key, _Compare1, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Rb_tree_merge_helper; 27002: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(set<_Key, _Compare1, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: template 27002: void 27002: merge(multiset<_Key, _Compare1, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Rb_tree_merge_helper; 27002: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 27002: { merge(__source); } 27002: # 652 "/usr/include/c++/12/bits/stl_set.h" 3 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iterator 27002: erase(const_iterator __position) 27002: { return _M_t.erase(__position); } 27002: # 683 "/usr/include/c++/12/bits/stl_set.h" 3 27002: size_type 27002: erase(const key_type& __x) 27002: { return _M_t.erase(__x); } 27002: # 704 "/usr/include/c++/12/bits/stl_set.h" 3 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iterator 27002: erase(const_iterator __first, const_iterator __last) 27002: { return _M_t.erase(__first, __last); } 27002: # 732 "/usr/include/c++/12/bits/stl_set.h" 3 27002: void 27002: clear() noexcept 27002: { _M_t.clear(); } 27002: # 747 "/usr/include/c++/12/bits/stl_set.h" 3 27002: size_type 27002: count(const key_type& __x) const 27002: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 27002: 27002: 27002: template 27002: auto 27002: count(const _Kt& __x) const 27002: -> decltype(_M_t._M_count_tr(__x)) 27002: { return _M_t._M_count_tr(__x); } 27002: # 793 "/usr/include/c++/12/bits/stl_set.h" 3 27002: iterator 27002: find(const key_type& __x) 27002: { return _M_t.find(__x); } 27002: 27002: const_iterator 27002: find(const key_type& __x) const 27002: { return _M_t.find(__x); } 27002: 27002: 27002: template 27002: auto 27002: find(const _Kt& __x) 27002: -> decltype(iterator{_M_t._M_find_tr(__x)}) 27002: { return iterator{_M_t._M_find_tr(__x)}; } 27002: 27002: template 27002: auto 27002: find(const _Kt& __x) const 27002: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 27002: { return const_iterator{_M_t._M_find_tr(__x)}; } 27002: # 828 "/usr/include/c++/12/bits/stl_set.h" 3 27002: iterator 27002: lower_bound(const key_type& __x) 27002: { return _M_t.lower_bound(__x); } 27002: 27002: const_iterator 27002: lower_bound(const key_type& __x) const 27002: { return _M_t.lower_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: lower_bound(const _Kt& __x) 27002: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 27002: { return iterator(_M_t._M_lower_bound_tr(__x)); } 27002: 27002: template 27002: auto 27002: lower_bound(const _Kt& __x) const 27002: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 27002: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 27002: # 858 "/usr/include/c++/12/bits/stl_set.h" 3 27002: iterator 27002: upper_bound(const key_type& __x) 27002: { return _M_t.upper_bound(__x); } 27002: 27002: const_iterator 27002: upper_bound(const key_type& __x) const 27002: { return _M_t.upper_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: upper_bound(const _Kt& __x) 27002: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 27002: { return iterator(_M_t._M_upper_bound_tr(__x)); } 27002: 27002: template 27002: auto 27002: upper_bound(const _Kt& __x) const 27002: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 27002: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 27002: # 897 "/usr/include/c++/12/bits/stl_set.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) 27002: { return _M_t.equal_range(__x); } 27002: 27002: std::pair 27002: equal_range(const key_type& __x) const 27002: { return _M_t.equal_range(__x); } 27002: 27002: 27002: template 27002: auto 27002: equal_range(const _Kt& __x) 27002: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 27002: { return pair(_M_t._M_equal_range_tr(__x)); } 27002: 27002: template 27002: auto 27002: equal_range(const _Kt& __x) const 27002: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 27002: { return pair(_M_t._M_equal_range_tr(__x)); } 27002: 27002: 27002: 27002: template 27002: friend bool 27002: operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: friend bool 27002: operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 27002: 27002: }; 27002: 27002: 27002: 27002: template::value_type>, 27002: typename _Allocator = 27002: allocator::value_type>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireNotAllocator<_Compare>, 27002: typename = _RequireAllocator<_Allocator>> 27002: set(_InputIterator, _InputIterator, 27002: _Compare = _Compare(), _Allocator = _Allocator()) 27002: -> set::value_type, 27002: _Compare, _Allocator>; 27002: 27002: template, 27002: typename _Allocator = allocator<_Key>, 27002: typename = _RequireNotAllocator<_Compare>, 27002: typename = _RequireAllocator<_Allocator>> 27002: set(initializer_list<_Key>, 27002: _Compare = _Compare(), _Allocator = _Allocator()) 27002: -> set<_Key, _Compare, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: set(_InputIterator, _InputIterator, _Allocator) 27002: -> set::value_type, 27002: less::value_type>, 27002: _Allocator>; 27002: 27002: template> 27002: set(initializer_list<_Key>, _Allocator) 27002: -> set<_Key, less<_Key>, _Allocator>; 27002: # 983 "/usr/include/c++/12/bits/stl_set.h" 3 27002: template 27002: inline bool 27002: operator==(const set<_Key, _Compare, _Alloc>& __x, 27002: const set<_Key, _Compare, _Alloc>& __y) 27002: { return __x._M_t == __y._M_t; } 27002: # 1021 "/usr/include/c++/12/bits/stl_set.h" 3 27002: template 27002: inline bool 27002: operator<(const set<_Key, _Compare, _Alloc>& __x, 27002: const set<_Key, _Compare, _Alloc>& __y) 27002: { return __x._M_t < __y._M_t; } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const set<_Key, _Compare, _Alloc>& __x, 27002: const set<_Key, _Compare, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: inline bool 27002: operator>(const set<_Key, _Compare, _Alloc>& __x, 27002: const set<_Key, _Compare, _Alloc>& __y) 27002: { return __y < __x; } 27002: 27002: 27002: template 27002: inline bool 27002: operator<=(const set<_Key, _Compare, _Alloc>& __x, 27002: const set<_Key, _Compare, _Alloc>& __y) 27002: { return !(__y < __x); } 27002: 27002: 27002: template 27002: inline bool 27002: operator>=(const set<_Key, _Compare, _Alloc>& __x, 27002: const set<_Key, _Compare, _Alloc>& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct 27002: _Rb_tree_merge_helper, _Cmp2> 27002: { 27002: private: 27002: friend class std::set<_Val, _Cmp1, _Alloc>; 27002: 27002: static auto& 27002: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 27002: { return __set._M_t; } 27002: 27002: static auto& 27002: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 27002: { return __set._M_t; } 27002: }; 27002: 27002: 27002: 27002: } 27002: # 62 "/usr/include/c++/12/set" 2 3 27002: # 1 "/usr/include/c++/12/bits/stl_multiset.h" 1 3 27002: # 64 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: class set; 27002: # 94 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: template , 27002: typename _Alloc = std::allocator<_Key> > 27002: class multiset 27002: { 27002: # 110 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: static_assert(is_same::type, _Key>::value, 27002: "std::multiset must have a non-const, non-volatile value_type"); 27002: 27002: 27002: 27002: 27002: 27002: 27002: public: 27002: 27002: typedef _Key key_type; 27002: typedef _Key value_type; 27002: typedef _Compare key_compare; 27002: typedef _Compare value_compare; 27002: typedef _Alloc allocator_type; 27002: 27002: private: 27002: 27002: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 27002: rebind<_Key>::other _Key_alloc_type; 27002: 27002: typedef _Rb_tree, 27002: key_compare, _Key_alloc_type> _Rep_type; 27002: 27002: _Rep_type _M_t; 27002: 27002: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 27002: 27002: public: 27002: typedef typename _Alloc_traits::pointer pointer; 27002: typedef typename _Alloc_traits::const_pointer const_pointer; 27002: typedef typename _Alloc_traits::reference reference; 27002: typedef typename _Alloc_traits::const_reference const_reference; 27002: 27002: 27002: 27002: typedef typename _Rep_type::const_iterator iterator; 27002: typedef typename _Rep_type::const_iterator const_iterator; 27002: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 27002: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 27002: typedef typename _Rep_type::size_type size_type; 27002: typedef typename _Rep_type::difference_type difference_type; 27002: 27002: 27002: using node_type = typename _Rep_type::node_type; 27002: # 164 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: multiset() = default; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: multiset(const _Compare& __comp, 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Key_alloc_type(__a)) { } 27002: # 186 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: template 27002: multiset(_InputIterator __first, _InputIterator __last) 27002: : _M_t() 27002: { _M_t._M_insert_range_equal(__first, __last); } 27002: # 202 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: template 27002: multiset(_InputIterator __first, _InputIterator __last, 27002: const _Compare& __comp, 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Key_alloc_type(__a)) 27002: { _M_t._M_insert_range_equal(__first, __last); } 27002: # 218 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: multiset(const multiset&) = default; 27002: # 227 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: multiset(multiset&&) = default; 27002: # 239 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: multiset(initializer_list __l, 27002: const _Compare& __comp = _Compare(), 27002: const allocator_type& __a = allocator_type()) 27002: : _M_t(__comp, _Key_alloc_type(__a)) 27002: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 27002: 27002: 27002: explicit 27002: multiset(const allocator_type& __a) 27002: : _M_t(_Key_alloc_type(__a)) { } 27002: 27002: 27002: multiset(const multiset& __m, 27002: const __type_identity_t& __a) 27002: : _M_t(__m._M_t, _Key_alloc_type(__a)) { } 27002: 27002: 27002: multiset(multiset&& __m, const __type_identity_t& __a) 27002: noexcept(is_nothrow_copy_constructible<_Compare>::value 27002: && _Alloc_traits::_S_always_equal()) 27002: : _M_t(std::move(__m._M_t), _Key_alloc_type(__a)) { } 27002: 27002: 27002: multiset(initializer_list __l, const allocator_type& __a) 27002: : _M_t(_Key_alloc_type(__a)) 27002: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 27002: 27002: 27002: template 27002: multiset(_InputIterator __first, _InputIterator __last, 27002: const allocator_type& __a) 27002: : _M_t(_Key_alloc_type(__a)) 27002: { _M_t._M_insert_range_equal(__first, __last); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: ~multiset() = default; 27002: # 294 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: multiset& 27002: operator=(const multiset&) = default; 27002: 27002: 27002: multiset& 27002: operator=(multiset&&) = default; 27002: # 312 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: multiset& 27002: operator=(initializer_list __l) 27002: { 27002: _M_t._M_assign_equal(__l.begin(), __l.end()); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: key_compare 27002: key_comp() const 27002: { return _M_t.key_comp(); } 27002: 27002: value_compare 27002: value_comp() const 27002: { return _M_t.key_comp(); } 27002: 27002: allocator_type 27002: get_allocator() const noexcept 27002: { return allocator_type(_M_t.get_allocator()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: begin() const noexcept 27002: { return _M_t.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: end() const noexcept 27002: { return _M_t.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: rbegin() const noexcept 27002: { return _M_t.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: rend() const noexcept 27002: { return _M_t.rend(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: cbegin() const noexcept 27002: { return _M_t.begin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: iterator 27002: cend() const noexcept 27002: { return _M_t.end(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: crbegin() const noexcept 27002: { return _M_t.rbegin(); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: reverse_iterator 27002: crend() const noexcept 27002: { return _M_t.rend(); } 27002: 27002: 27002: 27002: [[__nodiscard__]] bool 27002: empty() const noexcept 27002: { return _M_t.empty(); } 27002: 27002: 27002: size_type 27002: size() const noexcept 27002: { return _M_t.size(); } 27002: 27002: 27002: size_type 27002: max_size() const noexcept 27002: { return _M_t.max_size(); } 27002: # 437 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: void 27002: swap(multiset& __x) 27002: noexcept(__is_nothrow_swappable<_Compare>::value) 27002: { _M_t.swap(__x._M_t); } 27002: # 456 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: template 27002: iterator 27002: emplace(_Args&&... __args) 27002: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 27002: # 482 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: template 27002: iterator 27002: emplace_hint(const_iterator __pos, _Args&&... __args) 27002: { 27002: return _M_t._M_emplace_hint_equal(__pos, 27002: std::forward<_Args>(__args)...); 27002: } 27002: # 502 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: iterator 27002: insert(const value_type& __x) 27002: { return _M_t._M_insert_equal(__x); } 27002: 27002: 27002: iterator 27002: insert(value_type&& __x) 27002: { return _M_t._M_insert_equal(std::move(__x)); } 27002: # 532 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: iterator 27002: insert(const_iterator __position, const value_type& __x) 27002: { return _M_t._M_insert_equal_(__position, __x); } 27002: 27002: 27002: iterator 27002: insert(const_iterator __position, value_type&& __x) 27002: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 27002: # 550 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: template 27002: void 27002: insert(_InputIterator __first, _InputIterator __last) 27002: { _M_t._M_insert_range_equal(__first, __last); } 27002: # 563 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: void 27002: insert(initializer_list __l) 27002: { this->insert(__l.begin(), __l.end()); } 27002: 27002: 27002: 27002: 27002: node_type 27002: extract(const_iterator __pos) 27002: { 27002: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); 27002: return _M_t.extract(__pos); 27002: } 27002: 27002: 27002: node_type 27002: extract(const key_type& __x) 27002: { return _M_t.extract(__x); } 27002: 27002: 27002: iterator 27002: insert(node_type&& __nh) 27002: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 27002: 27002: 27002: iterator 27002: insert(const_iterator __hint, node_type&& __nh) 27002: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 27002: 27002: template 27002: friend struct std::_Rb_tree_merge_helper; 27002: 27002: template 27002: void 27002: merge(multiset<_Key, _Compare1, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Rb_tree_merge_helper; 27002: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 27002: { merge(__source); } 27002: 27002: template 27002: void 27002: merge(set<_Key, _Compare1, _Alloc>& __source) 27002: { 27002: using _Merge_helper = _Rb_tree_merge_helper; 27002: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 27002: } 27002: 27002: template 27002: void 27002: merge(set<_Key, _Compare1, _Alloc>&& __source) 27002: { merge(__source); } 27002: # 638 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iterator 27002: erase(const_iterator __position) 27002: { return _M_t.erase(__position); } 27002: # 669 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: size_type 27002: erase(const key_type& __x) 27002: { return _M_t.erase(__x); } 27002: # 690 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iterator 27002: erase(const_iterator __first, const_iterator __last) 27002: { return _M_t.erase(__first, __last); } 27002: # 718 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: void 27002: clear() noexcept 27002: { _M_t.clear(); } 27002: # 730 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: size_type 27002: count(const key_type& __x) const 27002: { return _M_t.count(__x); } 27002: 27002: 27002: template 27002: auto 27002: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 27002: { return _M_t._M_count_tr(__x); } 27002: # 775 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: iterator 27002: find(const key_type& __x) 27002: { return _M_t.find(__x); } 27002: 27002: const_iterator 27002: find(const key_type& __x) const 27002: { return _M_t.find(__x); } 27002: 27002: 27002: template 27002: auto 27002: find(const _Kt& __x) 27002: -> decltype(iterator{_M_t._M_find_tr(__x)}) 27002: { return iterator{_M_t._M_find_tr(__x)}; } 27002: 27002: template 27002: auto 27002: find(const _Kt& __x) const 27002: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 27002: { return const_iterator{_M_t._M_find_tr(__x)}; } 27002: # 810 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: iterator 27002: lower_bound(const key_type& __x) 27002: { return _M_t.lower_bound(__x); } 27002: 27002: const_iterator 27002: lower_bound(const key_type& __x) const 27002: { return _M_t.lower_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: lower_bound(const _Kt& __x) 27002: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 27002: { return iterator(_M_t._M_lower_bound_tr(__x)); } 27002: 27002: template 27002: auto 27002: lower_bound(const _Kt& __x) const 27002: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 27002: { return iterator(_M_t._M_lower_bound_tr(__x)); } 27002: # 840 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: iterator 27002: upper_bound(const key_type& __x) 27002: { return _M_t.upper_bound(__x); } 27002: 27002: const_iterator 27002: upper_bound(const key_type& __x) const 27002: { return _M_t.upper_bound(__x); } 27002: 27002: 27002: template 27002: auto 27002: upper_bound(const _Kt& __x) 27002: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 27002: { return iterator(_M_t._M_upper_bound_tr(__x)); } 27002: 27002: template 27002: auto 27002: upper_bound(const _Kt& __x) const 27002: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 27002: { return iterator(_M_t._M_upper_bound_tr(__x)); } 27002: # 879 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: std::pair 27002: equal_range(const key_type& __x) 27002: { return _M_t.equal_range(__x); } 27002: 27002: std::pair 27002: equal_range(const key_type& __x) const 27002: { return _M_t.equal_range(__x); } 27002: 27002: 27002: template 27002: auto 27002: equal_range(const _Kt& __x) 27002: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 27002: { return pair(_M_t._M_equal_range_tr(__x)); } 27002: 27002: template 27002: auto 27002: equal_range(const _Kt& __x) const 27002: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 27002: { return pair(_M_t._M_equal_range_tr(__x)); } 27002: 27002: 27002: 27002: template 27002: friend bool 27002: operator==(const multiset<_K1, _C1, _A1>&, 27002: const multiset<_K1, _C1, _A1>&); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: friend bool 27002: operator< (const multiset<_K1, _C1, _A1>&, 27002: const multiset<_K1, _C1, _A1>&); 27002: 27002: }; 27002: 27002: 27002: 27002: template::value_type>, 27002: typename _Allocator = 27002: allocator::value_type>, 27002: typename = _RequireInputIter<_InputIterator>, 27002: typename = _RequireNotAllocator<_Compare>, 27002: typename = _RequireAllocator<_Allocator>> 27002: multiset(_InputIterator, _InputIterator, 27002: _Compare = _Compare(), _Allocator = _Allocator()) 27002: -> multiset::value_type, 27002: _Compare, _Allocator>; 27002: 27002: template, 27002: typename _Allocator = allocator<_Key>, 27002: typename = _RequireNotAllocator<_Compare>, 27002: typename = _RequireAllocator<_Allocator>> 27002: multiset(initializer_list<_Key>, 27002: _Compare = _Compare(), _Allocator = _Allocator()) 27002: -> multiset<_Key, _Compare, _Allocator>; 27002: 27002: template, 27002: typename = _RequireAllocator<_Allocator>> 27002: multiset(_InputIterator, _InputIterator, _Allocator) 27002: -> multiset::value_type, 27002: less::value_type>, 27002: _Allocator>; 27002: 27002: template> 27002: multiset(initializer_list<_Key>, _Allocator) 27002: -> multiset<_Key, less<_Key>, _Allocator>; 27002: # 970 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: template 27002: inline bool 27002: operator==(const multiset<_Key, _Compare, _Alloc>& __x, 27002: const multiset<_Key, _Compare, _Alloc>& __y) 27002: { return __x._M_t == __y._M_t; } 27002: # 1008 "/usr/include/c++/12/bits/stl_multiset.h" 3 27002: template 27002: inline bool 27002: operator<(const multiset<_Key, _Compare, _Alloc>& __x, 27002: const multiset<_Key, _Compare, _Alloc>& __y) 27002: { return __x._M_t < __y._M_t; } 27002: 27002: 27002: template 27002: inline bool 27002: operator!=(const multiset<_Key, _Compare, _Alloc>& __x, 27002: const multiset<_Key, _Compare, _Alloc>& __y) 27002: { return !(__x == __y); } 27002: 27002: 27002: template 27002: inline bool 27002: operator>(const multiset<_Key,_Compare,_Alloc>& __x, 27002: const multiset<_Key,_Compare,_Alloc>& __y) 27002: { return __y < __x; } 27002: 27002: 27002: template 27002: inline bool 27002: operator<=(const multiset<_Key, _Compare, _Alloc>& __x, 27002: const multiset<_Key, _Compare, _Alloc>& __y) 27002: { return !(__y < __x); } 27002: 27002: 27002: template 27002: inline bool 27002: operator>=(const multiset<_Key, _Compare, _Alloc>& __x, 27002: const multiset<_Key, _Compare, _Alloc>& __y) 27002: { return !(__x < __y); } 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(multiset<_Key, _Compare, _Alloc>& __x, 27002: multiset<_Key, _Compare, _Alloc>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: struct 27002: _Rb_tree_merge_helper, 27002: _Cmp2> 27002: { 27002: private: 27002: friend class std::multiset<_Val, _Cmp1, _Alloc>; 27002: 27002: static auto& 27002: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 27002: { return __set._M_t; } 27002: 27002: static auto& 27002: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 27002: { return __set._M_t; } 27002: }; 27002: 27002: 27002: 27002: } 27002: # 63 "/usr/include/c++/12/set" 2 3 27002: # 71 "/usr/include/c++/12/set" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace pmr 27002: { 27002: template class polymorphic_allocator; 27002: template> 27002: using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; 27002: template> 27002: using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>; 27002: } 27002: 27002: } 27002: # 11 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 2 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/file/readahead_file_info.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/file/readahead_file_info.h" 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct ReadaheadFileInfo { 27002: struct ReadaheadInfo { 27002: size_t readahead_size = 0; 27002: int64_t num_file_reads = 0; 27002: }; 27002: 27002: 27002: ReadaheadInfo data_block_readahead_info; 27002: 27002: 27002: ReadaheadInfo index_block_readahead_info; 27002: }; 27002: 27002: } 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 1 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/ostream" 1 3 27002: # 36 "/usr/include/c++/12/ostream" 3 27002: 27002: # 37 "/usr/include/c++/12/ostream" 3 27002: 27002: # 1 "/usr/include/c++/12/ios" 1 3 27002: # 36 "/usr/include/c++/12/ios" 3 27002: 27002: # 37 "/usr/include/c++/12/ios" 3 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/ios_base.h" 1 3 27002: # 37 "/usr/include/c++/12/bits/ios_base.h" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/ios_base.h" 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/locale_classes.h" 1 3 27002: # 37 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 43 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 62 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: class locale 27002: { 27002: public: 27002: 27002: 27002: typedef int category; 27002: 27002: 27002: class facet; 27002: class id; 27002: class _Impl; 27002: 27002: friend class facet; 27002: friend class _Impl; 27002: 27002: template 27002: friend bool 27002: has_facet(const locale&) throw(); 27002: 27002: template 27002: friend const _Facet& 27002: use_facet(const locale&); 27002: 27002: template 27002: friend struct __use_cache; 27002: # 98 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: static const category none = 0; 27002: static const category ctype = 1L << 0; 27002: static const category numeric = 1L << 1; 27002: static const category collate = 1L << 2; 27002: static const category time = 1L << 3; 27002: static const category monetary = 1L << 4; 27002: static const category messages = 1L << 5; 27002: static const category all = (ctype | numeric | collate | 27002: time | monetary | messages); 27002: # 117 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: locale() throw(); 27002: # 126 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: locale(const locale& __other) throw(); 27002: # 136 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: explicit 27002: locale(const char* __s); 27002: # 151 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: locale(const locale& __base, const char* __s, category __cat); 27002: # 162 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: explicit 27002: locale(const std::string& __s) : locale(__s.c_str()) { } 27002: # 177 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: locale(const locale& __base, const std::string& __s, category __cat) 27002: : locale(__base, __s.c_str(), __cat) { } 27002: # 192 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: locale(const locale& __base, const locale& __add, category __cat); 27002: # 205 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: template 27002: locale(const locale& __other, _Facet* __f); 27002: 27002: 27002: ~locale() throw(); 27002: # 219 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: const locale& 27002: operator=(const locale& __other) throw(); 27002: # 234 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: template 27002: locale 27002: combine(const locale& __other) const; 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: string 27002: name() const; 27002: # 254 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: bool 27002: operator==(const locale& __other) const throw(); 27002: # 264 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: bool 27002: operator!=(const locale& __other) const throw() 27002: { return !(this->operator==(__other)); } 27002: # 284 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: template 27002: bool 27002: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 27002: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 27002: # 300 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: static locale 27002: global(const locale& __loc); 27002: 27002: 27002: 27002: 27002: static const locale& 27002: classic(); 27002: 27002: private: 27002: 27002: _Impl* _M_impl; 27002: 27002: 27002: static _Impl* _S_classic; 27002: 27002: 27002: static _Impl* _S_global; 27002: 27002: 27002: 27002: 27002: 27002: static const char* const* const _S_categories; 27002: # 335 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: enum { _S_categories_size = 6 + 6 }; 27002: 27002: 27002: static __gthread_once_t _S_once; 27002: 27002: 27002: explicit 27002: locale(_Impl*) throw(); 27002: 27002: static void 27002: _S_initialize(); 27002: 27002: static void 27002: _S_initialize_once() throw(); 27002: 27002: static category 27002: _S_normalize_category(category); 27002: 27002: void 27002: _M_coalesce(const locale& __base, const locale& __add, category __cat); 27002: 27002: 27002: static const id* const _S_twinned_facets[]; 27002: 27002: }; 27002: # 373 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: class locale::facet 27002: { 27002: private: 27002: friend class locale; 27002: friend class locale::_Impl; 27002: 27002: mutable _Atomic_word _M_refcount; 27002: 27002: 27002: static __c_locale _S_c_locale; 27002: 27002: 27002: static const char _S_c_name[2]; 27002: 27002: 27002: static __gthread_once_t _S_once; 27002: 27002: 27002: static void 27002: _S_initialize_once(); 27002: 27002: protected: 27002: # 404 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: explicit 27002: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 27002: { } 27002: 27002: 27002: virtual 27002: ~facet(); 27002: 27002: static void 27002: _S_create_c_locale(__c_locale& __cloc, const char* __s, 27002: __c_locale __old = 0); 27002: 27002: static __c_locale 27002: _S_clone_c_locale(__c_locale& __cloc) throw(); 27002: 27002: static void 27002: _S_destroy_c_locale(__c_locale& __cloc); 27002: 27002: static __c_locale 27002: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 27002: 27002: 27002: 27002: static __c_locale 27002: _S_get_c_locale(); 27002: 27002: __attribute__ ((__const__)) static const char* 27002: _S_get_c_name() throw(); 27002: # 440 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: facet(const facet&) = delete; 27002: 27002: facet& 27002: operator=(const facet&) = delete; 27002: 27002: 27002: private: 27002: void 27002: _M_add_reference() const throw() 27002: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 27002: 27002: void 27002: _M_remove_reference() const throw() 27002: { 27002: 27002: ; 27002: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 27002: { 27002: ; 27002: try 27002: { delete this; } 27002: catch(...) 27002: { } 27002: } 27002: } 27002: 27002: const facet* _M_sso_shim(const id*) const; 27002: const facet* _M_cow_shim(const id*) const; 27002: 27002: protected: 27002: class __shim; 27002: }; 27002: # 485 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: class locale::id 27002: { 27002: private: 27002: friend class locale; 27002: friend class locale::_Impl; 27002: 27002: template 27002: friend const _Facet& 27002: use_facet(const locale&); 27002: 27002: template 27002: friend bool 27002: has_facet(const locale&) throw(); 27002: 27002: 27002: 27002: 27002: mutable size_t _M_index; 27002: 27002: 27002: static _Atomic_word _S_refcount; 27002: 27002: void 27002: operator=(const id&); 27002: 27002: id(const id&); 27002: 27002: public: 27002: 27002: 27002: 27002: id() { } 27002: 27002: size_t 27002: _M_id() const throw(); 27002: }; 27002: 27002: 27002: 27002: class locale::_Impl 27002: { 27002: public: 27002: 27002: friend class locale; 27002: friend class locale::facet; 27002: 27002: template 27002: friend bool 27002: has_facet(const locale&) throw(); 27002: 27002: template 27002: friend const _Facet& 27002: use_facet(const locale&); 27002: 27002: template 27002: friend struct __use_cache; 27002: 27002: private: 27002: 27002: _Atomic_word _M_refcount; 27002: const facet** _M_facets; 27002: size_t _M_facets_size; 27002: const facet** _M_caches; 27002: char** _M_names; 27002: static const locale::id* const _S_id_ctype[]; 27002: static const locale::id* const _S_id_numeric[]; 27002: static const locale::id* const _S_id_collate[]; 27002: static const locale::id* const _S_id_time[]; 27002: static const locale::id* const _S_id_monetary[]; 27002: static const locale::id* const _S_id_messages[]; 27002: static const locale::id* const* const _S_facet_categories[]; 27002: 27002: void 27002: _M_add_reference() throw() 27002: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 27002: 27002: void 27002: _M_remove_reference() throw() 27002: { 27002: 27002: ; 27002: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 27002: { 27002: ; 27002: try 27002: { delete this; } 27002: catch(...) 27002: { } 27002: } 27002: } 27002: 27002: _Impl(const _Impl&, size_t); 27002: _Impl(const char*, size_t); 27002: _Impl(size_t) throw(); 27002: 27002: ~_Impl() throw(); 27002: 27002: _Impl(const _Impl&); 27002: 27002: void 27002: operator=(const _Impl&); 27002: 27002: bool 27002: _M_check_same_name() 27002: { 27002: bool __ret = true; 27002: if (_M_names[1]) 27002: 27002: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 27002: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 27002: return __ret; 27002: } 27002: 27002: void 27002: _M_replace_categories(const _Impl*, category); 27002: 27002: void 27002: _M_replace_category(const _Impl*, const locale::id* const*); 27002: 27002: void 27002: _M_replace_facet(const _Impl*, const locale::id*); 27002: 27002: void 27002: _M_install_facet(const locale::id*, const facet*); 27002: 27002: template 27002: void 27002: _M_init_facet(_Facet* __facet) 27002: { _M_install_facet(&_Facet::id, __facet); } 27002: 27002: template 27002: void 27002: _M_init_facet_unchecked(_Facet* __facet) 27002: { 27002: __facet->_M_add_reference(); 27002: _M_facets[_Facet::id._M_id()] = __facet; 27002: } 27002: 27002: void 27002: _M_install_cache(const facet*, size_t); 27002: 27002: void _M_init_extra(facet**); 27002: void _M_init_extra(void*, void*, const char*, const char*); 27002: 27002: 27002: 27002: 27002: }; 27002: # 647 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: template 27002: class __cxx11:: collate : public locale::facet 27002: { 27002: public: 27002: 27002: 27002: 27002: typedef _CharT char_type; 27002: typedef basic_string<_CharT> string_type; 27002: 27002: 27002: protected: 27002: 27002: 27002: __c_locale _M_c_locale_collate; 27002: 27002: public: 27002: 27002: static locale::id id; 27002: # 674 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: explicit 27002: collate(size_t __refs = 0) 27002: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 27002: { } 27002: # 688 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: explicit 27002: collate(__c_locale __cloc, size_t __refs = 0) 27002: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 27002: { } 27002: # 705 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: int 27002: compare(const _CharT* __lo1, const _CharT* __hi1, 27002: const _CharT* __lo2, const _CharT* __hi2) const 27002: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 27002: # 724 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: string_type 27002: transform(const _CharT* __lo, const _CharT* __hi) const 27002: { return this->do_transform(__lo, __hi); } 27002: # 738 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: long 27002: hash(const _CharT* __lo, const _CharT* __hi) const 27002: { return this->do_hash(__lo, __hi); } 27002: 27002: 27002: int 27002: _M_compare(const _CharT*, const _CharT*) const throw(); 27002: 27002: size_t 27002: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 27002: 27002: protected: 27002: 27002: virtual 27002: ~collate() 27002: { _S_destroy_c_locale(_M_c_locale_collate); } 27002: # 767 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: virtual int 27002: do_compare(const _CharT* __lo1, const _CharT* __hi1, 27002: const _CharT* __lo2, const _CharT* __hi2) const; 27002: # 781 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: virtual string_type 27002: do_transform(const _CharT* __lo, const _CharT* __hi) const; 27002: # 794 "/usr/include/c++/12/bits/locale_classes.h" 3 27002: virtual long 27002: do_hash(const _CharT* __lo, const _CharT* __hi) const; 27002: }; 27002: 27002: template 27002: locale::id collate<_CharT>::id; 27002: 27002: 27002: template<> 27002: int 27002: collate::_M_compare(const char*, const char*) const throw(); 27002: 27002: template<> 27002: size_t 27002: collate::_M_transform(char*, const char*, size_t) const throw(); 27002: 27002: 27002: template<> 27002: int 27002: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 27002: 27002: template<> 27002: size_t 27002: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 27002: 27002: 27002: 27002: template 27002: class __cxx11:: collate_byname : public collate<_CharT> 27002: { 27002: public: 27002: 27002: 27002: typedef _CharT char_type; 27002: typedef basic_string<_CharT> string_type; 27002: 27002: 27002: explicit 27002: collate_byname(const char* __s, size_t __refs = 0) 27002: : collate<_CharT>(__refs) 27002: { 27002: if (__builtin_strcmp(__s, "C") != 0 27002: && __builtin_strcmp(__s, "POSIX") != 0) 27002: { 27002: this->_S_destroy_c_locale(this->_M_c_locale_collate); 27002: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 27002: } 27002: } 27002: 27002: 27002: explicit 27002: collate_byname(const string& __s, size_t __refs = 0) 27002: : collate_byname(__s.c_str(), __refs) { } 27002: 27002: 27002: protected: 27002: virtual 27002: ~collate_byname() { } 27002: }; 27002: 27002: 27002: } 27002: 27002: # 1 "/usr/include/c++/12/bits/locale_classes.tcc" 1 3 27002: # 37 "/usr/include/c++/12/bits/locale_classes.tcc" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/locale_classes.tcc" 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: locale:: 27002: locale(const locale& __other, _Facet* __f) 27002: { 27002: _M_impl = new _Impl(*__other._M_impl, 1); 27002: 27002: try 27002: { _M_impl->_M_install_facet(&_Facet::id, __f); } 27002: catch(...) 27002: { 27002: _M_impl->_M_remove_reference(); 27002: throw; 27002: } 27002: delete [] _M_impl->_M_names[0]; 27002: _M_impl->_M_names[0] = 0; 27002: } 27002: 27002: template 27002: locale 27002: locale:: 27002: combine(const locale& __other) const 27002: { 27002: _Impl* __tmp = new _Impl(*_M_impl, 1); 27002: try 27002: { 27002: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 27002: } 27002: catch(...) 27002: { 27002: __tmp->_M_remove_reference(); 27002: throw; 27002: } 27002: return locale(__tmp); 27002: } 27002: 27002: template 27002: bool 27002: locale:: 27002: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 27002: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 27002: { 27002: typedef std::collate<_CharT> __collate_type; 27002: const __collate_type& __collate = use_facet<__collate_type>(*this); 27002: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 27002: __s2.data(), __s2.data() + __s2.length()) < 0); 27002: } 27002: # 102 "/usr/include/c++/12/bits/locale_classes.tcc" 3 27002: template 27002: bool 27002: has_facet(const locale& __loc) throw() 27002: { 27002: const size_t __i = _Facet::id._M_id(); 27002: const locale::facet** __facets = __loc._M_impl->_M_facets; 27002: return (__i < __loc._M_impl->_M_facets_size 27002: 27002: && dynamic_cast(__facets[__i])); 27002: 27002: 27002: 27002: } 27002: # 130 "/usr/include/c++/12/bits/locale_classes.tcc" 3 27002: template 27002: const _Facet& 27002: use_facet(const locale& __loc) 27002: { 27002: const size_t __i = _Facet::id._M_id(); 27002: const locale::facet** __facets = __loc._M_impl->_M_facets; 27002: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 27002: __throw_bad_cast(); 27002: 27002: return dynamic_cast(*__facets[__i]); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: template 27002: int 27002: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 27002: { return 0; } 27002: 27002: 27002: template 27002: size_t 27002: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 27002: { return 0; } 27002: 27002: template 27002: int 27002: collate<_CharT>:: 27002: do_compare(const _CharT* __lo1, const _CharT* __hi1, 27002: const _CharT* __lo2, const _CharT* __hi2) const 27002: { 27002: 27002: 27002: const string_type __one(__lo1, __hi1); 27002: const string_type __two(__lo2, __hi2); 27002: 27002: const _CharT* __p = __one.c_str(); 27002: const _CharT* __pend = __one.data() + __one.length(); 27002: const _CharT* __q = __two.c_str(); 27002: const _CharT* __qend = __two.data() + __two.length(); 27002: 27002: 27002: 27002: 27002: for (;;) 27002: { 27002: const int __res = _M_compare(__p, __q); 27002: if (__res) 27002: return __res; 27002: 27002: __p += char_traits<_CharT>::length(__p); 27002: __q += char_traits<_CharT>::length(__q); 27002: if (__p == __pend && __q == __qend) 27002: return 0; 27002: else if (__p == __pend) 27002: return -1; 27002: else if (__q == __qend) 27002: return 1; 27002: 27002: __p++; 27002: __q++; 27002: } 27002: } 27002: 27002: template 27002: typename collate<_CharT>::string_type 27002: collate<_CharT>:: 27002: do_transform(const _CharT* __lo, const _CharT* __hi) const 27002: { 27002: string_type __ret; 27002: 27002: 27002: const string_type __str(__lo, __hi); 27002: 27002: const _CharT* __p = __str.c_str(); 27002: const _CharT* __pend = __str.data() + __str.length(); 27002: 27002: size_t __len = (__hi - __lo) * 2; 27002: 27002: _CharT* __c = new _CharT[__len]; 27002: 27002: try 27002: { 27002: 27002: 27002: 27002: for (;;) 27002: { 27002: 27002: size_t __res = _M_transform(__c, __p, __len); 27002: 27002: 27002: if (__res >= __len) 27002: { 27002: __len = __res + 1; 27002: delete [] __c, __c = 0; 27002: __c = new _CharT[__len]; 27002: __res = _M_transform(__c, __p, __len); 27002: } 27002: 27002: __ret.append(__c, __res); 27002: __p += char_traits<_CharT>::length(__p); 27002: if (__p == __pend) 27002: break; 27002: 27002: __p++; 27002: __ret.push_back(_CharT()); 27002: } 27002: } 27002: catch(...) 27002: { 27002: delete [] __c; 27002: throw; 27002: } 27002: 27002: delete [] __c; 27002: 27002: return __ret; 27002: } 27002: 27002: template 27002: long 27002: collate<_CharT>:: 27002: do_hash(const _CharT* __lo, const _CharT* __hi) const 27002: { 27002: unsigned long __val = 0; 27002: for (; __lo < __hi; ++__lo) 27002: __val = 27002: *__lo + ((__val << 7) 27002: | (__val >> (__gnu_cxx::__numeric_traits:: 27002: __digits - 7))); 27002: return static_cast(__val); 27002: } 27002: 27002: 27002: 27002: 27002: extern template class collate; 27002: extern template class collate_byname; 27002: 27002: extern template 27002: const collate& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: 27002: extern template class collate; 27002: extern template class collate_byname; 27002: 27002: extern template 27002: const collate& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: 27002: 27002: 27002: } 27002: # 858 "/usr/include/c++/12/bits/locale_classes.h" 2 3 27002: # 42 "/usr/include/c++/12/bits/ios_base.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: enum _Ios_Fmtflags 27002: { 27002: _S_boolalpha = 1L << 0, 27002: _S_dec = 1L << 1, 27002: _S_fixed = 1L << 2, 27002: _S_hex = 1L << 3, 27002: _S_internal = 1L << 4, 27002: _S_left = 1L << 5, 27002: _S_oct = 1L << 6, 27002: _S_right = 1L << 7, 27002: _S_scientific = 1L << 8, 27002: _S_showbase = 1L << 9, 27002: _S_showpoint = 1L << 10, 27002: _S_showpos = 1L << 11, 27002: _S_skipws = 1L << 12, 27002: _S_unitbuf = 1L << 13, 27002: _S_uppercase = 1L << 14, 27002: _S_adjustfield = _S_left | _S_right | _S_internal, 27002: _S_basefield = _S_dec | _S_oct | _S_hex, 27002: _S_floatfield = _S_scientific | _S_fixed, 27002: _S_ios_fmtflags_end = 1L << 16, 27002: _S_ios_fmtflags_max = 0x7fffffff, 27002: _S_ios_fmtflags_min = ~0x7fffffff 27002: }; 27002: 27002: inline constexpr _Ios_Fmtflags 27002: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 27002: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 27002: 27002: inline constexpr _Ios_Fmtflags 27002: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 27002: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 27002: 27002: inline constexpr _Ios_Fmtflags 27002: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 27002: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 27002: 27002: inline constexpr _Ios_Fmtflags 27002: operator~(_Ios_Fmtflags __a) 27002: { return _Ios_Fmtflags(~static_cast(__a)); } 27002: 27002: inline const _Ios_Fmtflags& 27002: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 27002: { return __a = __a | __b; } 27002: 27002: inline const _Ios_Fmtflags& 27002: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 27002: { return __a = __a & __b; } 27002: 27002: inline const _Ios_Fmtflags& 27002: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 27002: { return __a = __a ^ __b; } 27002: 27002: 27002: enum _Ios_Openmode 27002: { 27002: _S_app = 1L << 0, 27002: _S_ate = 1L << 1, 27002: _S_bin = 1L << 2, 27002: _S_in = 1L << 3, 27002: _S_out = 1L << 4, 27002: _S_trunc = 1L << 5, 27002: _S_noreplace = 1L << 6, 27002: _S_ios_openmode_end = 1L << 16, 27002: _S_ios_openmode_max = 0x7fffffff, 27002: _S_ios_openmode_min = ~0x7fffffff 27002: }; 27002: 27002: inline constexpr _Ios_Openmode 27002: operator&(_Ios_Openmode __a, _Ios_Openmode __b) 27002: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 27002: 27002: inline constexpr _Ios_Openmode 27002: operator|(_Ios_Openmode __a, _Ios_Openmode __b) 27002: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 27002: 27002: inline constexpr _Ios_Openmode 27002: operator^(_Ios_Openmode __a, _Ios_Openmode __b) 27002: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 27002: 27002: inline constexpr _Ios_Openmode 27002: operator~(_Ios_Openmode __a) 27002: { return _Ios_Openmode(~static_cast(__a)); } 27002: 27002: inline const _Ios_Openmode& 27002: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) 27002: { return __a = __a | __b; } 27002: 27002: inline const _Ios_Openmode& 27002: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) 27002: { return __a = __a & __b; } 27002: 27002: inline const _Ios_Openmode& 27002: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) 27002: { return __a = __a ^ __b; } 27002: 27002: 27002: enum _Ios_Iostate 27002: { 27002: _S_goodbit = 0, 27002: _S_badbit = 1L << 0, 27002: _S_eofbit = 1L << 1, 27002: _S_failbit = 1L << 2, 27002: _S_ios_iostate_end = 1L << 16, 27002: _S_ios_iostate_max = 0x7fffffff, 27002: _S_ios_iostate_min = ~0x7fffffff 27002: }; 27002: 27002: inline constexpr _Ios_Iostate 27002: operator&(_Ios_Iostate __a, _Ios_Iostate __b) 27002: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 27002: 27002: inline constexpr _Ios_Iostate 27002: operator|(_Ios_Iostate __a, _Ios_Iostate __b) 27002: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 27002: 27002: inline constexpr _Ios_Iostate 27002: operator^(_Ios_Iostate __a, _Ios_Iostate __b) 27002: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 27002: 27002: inline constexpr _Ios_Iostate 27002: operator~(_Ios_Iostate __a) 27002: { return _Ios_Iostate(~static_cast(__a)); } 27002: 27002: inline const _Ios_Iostate& 27002: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) 27002: { return __a = __a | __b; } 27002: 27002: inline const _Ios_Iostate& 27002: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) 27002: { return __a = __a & __b; } 27002: 27002: inline const _Ios_Iostate& 27002: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) 27002: { return __a = __a ^ __b; } 27002: 27002: 27002: enum _Ios_Seekdir 27002: { 27002: _S_beg = 0, 27002: _S_cur = 1, 27002: _S_end = 2, 27002: _S_ios_seekdir_end = 1L << 16 27002: }; 27002: 27002: 27002: 27002: enum class io_errc { stream = 1 }; 27002: 27002: template <> struct is_error_code_enum : public true_type { }; 27002: 27002: const error_category& iostream_category() noexcept; 27002: 27002: inline error_code 27002: make_error_code(io_errc __e) noexcept 27002: { return error_code(static_cast(__e), iostream_category()); } 27002: 27002: inline error_condition 27002: make_error_condition(io_errc __e) noexcept 27002: { return error_condition(static_cast(__e), iostream_category()); } 27002: # 229 "/usr/include/c++/12/bits/ios_base.h" 3 27002: class ios_base 27002: { 27002: # 247 "/usr/include/c++/12/bits/ios_base.h" 3 27002: public: 27002: # 256 "/usr/include/c++/12/bits/ios_base.h" 3 27002: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 27002: { 27002: public: 27002: explicit 27002: failure(const string& __str); 27002: 27002: 27002: explicit 27002: failure(const string&, const error_code&); 27002: 27002: explicit 27002: failure(const char*, const error_code& = io_errc::stream); 27002: 27002: 27002: virtual 27002: ~failure() throw(); 27002: 27002: virtual const char* 27002: what() const throw(); 27002: }; 27002: # 342 "/usr/include/c++/12/bits/ios_base.h" 3 27002: typedef _Ios_Fmtflags fmtflags; 27002: 27002: 27002: static const fmtflags boolalpha = _S_boolalpha; 27002: 27002: 27002: static const fmtflags dec = _S_dec; 27002: 27002: 27002: static const fmtflags fixed = _S_fixed; 27002: 27002: 27002: static const fmtflags hex = _S_hex; 27002: 27002: 27002: 27002: 27002: static const fmtflags internal = _S_internal; 27002: 27002: 27002: 27002: static const fmtflags left = _S_left; 27002: 27002: 27002: static const fmtflags oct = _S_oct; 27002: 27002: 27002: 27002: static const fmtflags right = _S_right; 27002: 27002: 27002: static const fmtflags scientific = _S_scientific; 27002: 27002: 27002: 27002: static const fmtflags showbase = _S_showbase; 27002: 27002: 27002: 27002: static const fmtflags showpoint = _S_showpoint; 27002: 27002: 27002: static const fmtflags showpos = _S_showpos; 27002: 27002: 27002: static const fmtflags skipws = _S_skipws; 27002: 27002: 27002: static const fmtflags unitbuf = _S_unitbuf; 27002: 27002: 27002: 27002: static const fmtflags uppercase = _S_uppercase; 27002: 27002: 27002: static const fmtflags adjustfield = _S_adjustfield; 27002: 27002: 27002: static const fmtflags basefield = _S_basefield; 27002: 27002: 27002: static const fmtflags floatfield = _S_floatfield; 27002: # 417 "/usr/include/c++/12/bits/ios_base.h" 3 27002: typedef _Ios_Iostate iostate; 27002: 27002: 27002: 27002: static const iostate badbit = _S_badbit; 27002: 27002: 27002: static const iostate eofbit = _S_eofbit; 27002: 27002: 27002: 27002: 27002: static const iostate failbit = _S_failbit; 27002: 27002: 27002: static const iostate goodbit = _S_goodbit; 27002: # 448 "/usr/include/c++/12/bits/ios_base.h" 3 27002: typedef _Ios_Openmode openmode; 27002: 27002: 27002: static const openmode app = _S_app; 27002: 27002: 27002: static const openmode ate = _S_ate; 27002: 27002: 27002: 27002: 27002: static const openmode binary = _S_bin; 27002: 27002: 27002: static const openmode in = _S_in; 27002: 27002: 27002: static const openmode out = _S_out; 27002: 27002: 27002: static const openmode trunc = _S_trunc; 27002: 27002: static const openmode __noreplace = _S_noreplace; 27002: # 488 "/usr/include/c++/12/bits/ios_base.h" 3 27002: typedef _Ios_Seekdir seekdir; 27002: 27002: 27002: static const seekdir beg = _S_beg; 27002: 27002: 27002: static const seekdir cur = _S_cur; 27002: 27002: 27002: static const seekdir end = _S_end; 27002: # 521 "/usr/include/c++/12/bits/ios_base.h" 3 27002: enum event 27002: { 27002: erase_event, 27002: imbue_event, 27002: copyfmt_event 27002: }; 27002: # 538 "/usr/include/c++/12/bits/ios_base.h" 3 27002: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 27002: # 550 "/usr/include/c++/12/bits/ios_base.h" 3 27002: void 27002: register_callback(event_callback __fn, int __index); 27002: 27002: protected: 27002: streamsize _M_precision; 27002: streamsize _M_width; 27002: fmtflags _M_flags; 27002: iostate _M_exception; 27002: iostate _M_streambuf_state; 27002: 27002: 27002: 27002: struct _Callback_list 27002: { 27002: 27002: _Callback_list* _M_next; 27002: ios_base::event_callback _M_fn; 27002: int _M_index; 27002: _Atomic_word _M_refcount; 27002: 27002: _Callback_list(ios_base::event_callback __fn, int __index, 27002: _Callback_list* __cb) 27002: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 27002: 27002: void 27002: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 27002: 27002: 27002: int 27002: _M_remove_reference() 27002: { 27002: 27002: ; 27002: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 27002: if (__res == 0) 27002: { 27002: ; 27002: } 27002: return __res; 27002: } 27002: }; 27002: 27002: _Callback_list* _M_callbacks; 27002: 27002: void 27002: _M_call_callbacks(event __ev) throw(); 27002: 27002: void 27002: _M_dispose_callbacks(void) throw(); 27002: 27002: 27002: struct _Words 27002: { 27002: void* _M_pword; 27002: long _M_iword; 27002: _Words() : _M_pword(0), _M_iword(0) { } 27002: }; 27002: 27002: 27002: _Words _M_word_zero; 27002: 27002: 27002: 27002: enum { _S_local_word_size = 8 }; 27002: _Words _M_local_word[_S_local_word_size]; 27002: 27002: 27002: int _M_word_size; 27002: _Words* _M_word; 27002: 27002: _Words& 27002: _M_grow_words(int __index, bool __iword); 27002: 27002: 27002: locale _M_ios_locale; 27002: 27002: void 27002: _M_init() throw(); 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: class Init 27002: { 27002: friend class ios_base; 27002: public: 27002: Init(); 27002: ~Init(); 27002: 27002: 27002: Init(const Init&) = default; 27002: Init& operator=(const Init&) = default; 27002: 27002: 27002: private: 27002: static _Atomic_word _S_refcount; 27002: static bool _S_synced_with_stdio; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: fmtflags 27002: flags() const 27002: { return _M_flags; } 27002: # 668 "/usr/include/c++/12/bits/ios_base.h" 3 27002: fmtflags 27002: flags(fmtflags __fmtfl) 27002: { 27002: fmtflags __old = _M_flags; 27002: _M_flags = __fmtfl; 27002: return __old; 27002: } 27002: # 684 "/usr/include/c++/12/bits/ios_base.h" 3 27002: fmtflags 27002: setf(fmtflags __fmtfl) 27002: { 27002: fmtflags __old = _M_flags; 27002: _M_flags |= __fmtfl; 27002: return __old; 27002: } 27002: # 701 "/usr/include/c++/12/bits/ios_base.h" 3 27002: fmtflags 27002: setf(fmtflags __fmtfl, fmtflags __mask) 27002: { 27002: fmtflags __old = _M_flags; 27002: _M_flags &= ~__mask; 27002: _M_flags |= (__fmtfl & __mask); 27002: return __old; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: unsetf(fmtflags __mask) 27002: { _M_flags &= ~__mask; } 27002: # 727 "/usr/include/c++/12/bits/ios_base.h" 3 27002: streamsize 27002: precision() const 27002: { return _M_precision; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: streamsize 27002: precision(streamsize __prec) 27002: { 27002: streamsize __old = _M_precision; 27002: _M_precision = __prec; 27002: return __old; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: streamsize 27002: width() const 27002: { return _M_width; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: streamsize 27002: width(streamsize __wide) 27002: { 27002: streamsize __old = _M_width; 27002: _M_width = __wide; 27002: return __old; 27002: } 27002: # 778 "/usr/include/c++/12/bits/ios_base.h" 3 27002: static bool 27002: sync_with_stdio(bool __sync = true); 27002: # 790 "/usr/include/c++/12/bits/ios_base.h" 3 27002: locale 27002: imbue(const locale& __loc) throw(); 27002: # 801 "/usr/include/c++/12/bits/ios_base.h" 3 27002: locale 27002: getloc() const 27002: { return _M_ios_locale; } 27002: # 812 "/usr/include/c++/12/bits/ios_base.h" 3 27002: const locale& 27002: _M_getloc() const 27002: { return _M_ios_locale; } 27002: # 831 "/usr/include/c++/12/bits/ios_base.h" 3 27002: static int 27002: xalloc() throw(); 27002: # 847 "/usr/include/c++/12/bits/ios_base.h" 3 27002: long& 27002: iword(int __ix) 27002: { 27002: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 27002: ? _M_word[__ix] : _M_grow_words(__ix, true); 27002: return __word._M_iword; 27002: } 27002: # 868 "/usr/include/c++/12/bits/ios_base.h" 3 27002: void*& 27002: pword(int __ix) 27002: { 27002: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 27002: ? _M_word[__ix] : _M_grow_words(__ix, false); 27002: return __word._M_pword; 27002: } 27002: # 885 "/usr/include/c++/12/bits/ios_base.h" 3 27002: virtual ~ios_base(); 27002: 27002: protected: 27002: ios_base() throw (); 27002: # 899 "/usr/include/c++/12/bits/ios_base.h" 3 27002: public: 27002: ios_base(const ios_base&) = delete; 27002: 27002: ios_base& 27002: operator=(const ios_base&) = delete; 27002: 27002: protected: 27002: void 27002: _M_move(ios_base&) noexcept; 27002: 27002: void 27002: _M_swap(ios_base& __rhs) noexcept; 27002: 27002: }; 27002: 27002: 27002: 27002: inline ios_base& 27002: boolalpha(ios_base& __base) 27002: { 27002: __base.setf(ios_base::boolalpha); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: noboolalpha(ios_base& __base) 27002: { 27002: __base.unsetf(ios_base::boolalpha); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: showbase(ios_base& __base) 27002: { 27002: __base.setf(ios_base::showbase); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: noshowbase(ios_base& __base) 27002: { 27002: __base.unsetf(ios_base::showbase); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: showpoint(ios_base& __base) 27002: { 27002: __base.setf(ios_base::showpoint); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: noshowpoint(ios_base& __base) 27002: { 27002: __base.unsetf(ios_base::showpoint); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: showpos(ios_base& __base) 27002: { 27002: __base.setf(ios_base::showpos); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: noshowpos(ios_base& __base) 27002: { 27002: __base.unsetf(ios_base::showpos); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: skipws(ios_base& __base) 27002: { 27002: __base.setf(ios_base::skipws); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: noskipws(ios_base& __base) 27002: { 27002: __base.unsetf(ios_base::skipws); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: uppercase(ios_base& __base) 27002: { 27002: __base.setf(ios_base::uppercase); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: nouppercase(ios_base& __base) 27002: { 27002: __base.unsetf(ios_base::uppercase); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: unitbuf(ios_base& __base) 27002: { 27002: __base.setf(ios_base::unitbuf); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: nounitbuf(ios_base& __base) 27002: { 27002: __base.unsetf(ios_base::unitbuf); 27002: return __base; 27002: } 27002: 27002: 27002: 27002: inline ios_base& 27002: internal(ios_base& __base) 27002: { 27002: __base.setf(ios_base::internal, ios_base::adjustfield); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: left(ios_base& __base) 27002: { 27002: __base.setf(ios_base::left, ios_base::adjustfield); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: right(ios_base& __base) 27002: { 27002: __base.setf(ios_base::right, ios_base::adjustfield); 27002: return __base; 27002: } 27002: 27002: 27002: 27002: inline ios_base& 27002: dec(ios_base& __base) 27002: { 27002: __base.setf(ios_base::dec, ios_base::basefield); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: hex(ios_base& __base) 27002: { 27002: __base.setf(ios_base::hex, ios_base::basefield); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: oct(ios_base& __base) 27002: { 27002: __base.setf(ios_base::oct, ios_base::basefield); 27002: return __base; 27002: } 27002: 27002: 27002: 27002: inline ios_base& 27002: fixed(ios_base& __base) 27002: { 27002: __base.setf(ios_base::fixed, ios_base::floatfield); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: scientific(ios_base& __base) 27002: { 27002: __base.setf(ios_base::scientific, ios_base::floatfield); 27002: return __base; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline ios_base& 27002: hexfloat(ios_base& __base) 27002: { 27002: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 27002: return __base; 27002: } 27002: 27002: 27002: inline ios_base& 27002: defaultfloat(ios_base& __base) 27002: { 27002: __base.unsetf(ios_base::floatfield); 27002: return __base; 27002: } 27002: 27002: 27002: 27002: } 27002: # 43 "/usr/include/c++/12/ios" 2 3 27002: # 1 "/usr/include/c++/12/streambuf" 1 3 27002: # 36 "/usr/include/c++/12/streambuf" 3 27002: 27002: # 37 "/usr/include/c++/12/streambuf" 3 27002: # 45 "/usr/include/c++/12/streambuf" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: template 27002: streamsize 27002: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 27002: basic_streambuf<_CharT, _Traits>*, bool&); 27002: # 121 "/usr/include/c++/12/streambuf" 3 27002: template 27002: class basic_streambuf 27002: { 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: typedef typename traits_type::int_type int_type; 27002: typedef typename traits_type::pos_type pos_type; 27002: typedef typename traits_type::off_type off_type; 27002: 27002: 27002: 27002: 27002: typedef basic_streambuf __streambuf_type; 27002: 27002: 27002: friend class basic_ios; 27002: friend class basic_istream; 27002: friend class basic_ostream; 27002: friend class istreambuf_iterator; 27002: friend class ostreambuf_iterator; 27002: 27002: friend streamsize 27002: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 27002: 27002: template 27002: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 27002: _CharT2*>::__type 27002: __copy_move_a2(istreambuf_iterator<_CharT2>, 27002: istreambuf_iterator<_CharT2>, _CharT2*); 27002: 27002: template 27002: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 27002: istreambuf_iterator<_CharT2> >::__type 27002: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 27002: const _CharT2&); 27002: 27002: template 27002: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 27002: void>::__type 27002: advance(istreambuf_iterator<_CharT2>&, _Distance); 27002: 27002: friend void __istream_extract(istream&, char*, streamsize); 27002: 27002: template 27002: friend basic_istream<_CharT2, _Traits2>& 27002: operator>>(basic_istream<_CharT2, _Traits2>&, 27002: basic_string<_CharT2, _Traits2, _Alloc>&); 27002: 27002: template 27002: friend basic_istream<_CharT2, _Traits2>& 27002: getline(basic_istream<_CharT2, _Traits2>&, 27002: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 27002: 27002: protected: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: char_type* _M_in_beg; 27002: char_type* _M_in_cur; 27002: char_type* _M_in_end; 27002: char_type* _M_out_beg; 27002: char_type* _M_out_cur; 27002: char_type* _M_out_end; 27002: 27002: 27002: locale _M_buf_locale; 27002: 27002: public: 27002: 27002: virtual 27002: ~basic_streambuf() 27002: { } 27002: # 213 "/usr/include/c++/12/streambuf" 3 27002: locale 27002: pubimbue(const locale& __loc) 27002: { 27002: locale __tmp(this->getloc()); 27002: this->imbue(__loc); 27002: _M_buf_locale = __loc; 27002: return __tmp; 27002: } 27002: # 230 "/usr/include/c++/12/streambuf" 3 27002: locale 27002: getloc() const 27002: { return _M_buf_locale; } 27002: # 243 "/usr/include/c++/12/streambuf" 3 27002: basic_streambuf* 27002: pubsetbuf(char_type* __s, streamsize __n) 27002: { return this->setbuf(__s, __n); } 27002: # 255 "/usr/include/c++/12/streambuf" 3 27002: pos_type 27002: pubseekoff(off_type __off, ios_base::seekdir __way, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out) 27002: { return this->seekoff(__off, __way, __mode); } 27002: # 267 "/usr/include/c++/12/streambuf" 3 27002: pos_type 27002: pubseekpos(pos_type __sp, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out) 27002: { return this->seekpos(__sp, __mode); } 27002: 27002: 27002: 27002: 27002: int 27002: pubsync() { return this->sync(); } 27002: # 288 "/usr/include/c++/12/streambuf" 3 27002: streamsize 27002: in_avail() 27002: { 27002: const streamsize __ret = this->egptr() - this->gptr(); 27002: return __ret ? __ret : this->showmanyc(); 27002: } 27002: # 302 "/usr/include/c++/12/streambuf" 3 27002: int_type 27002: snextc() 27002: { 27002: int_type __ret = traits_type::eof(); 27002: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 27002: __ret), true)) 27002: __ret = this->sgetc(); 27002: return __ret; 27002: } 27002: # 320 "/usr/include/c++/12/streambuf" 3 27002: int_type 27002: sbumpc() 27002: { 27002: int_type __ret; 27002: if (__builtin_expect(this->gptr() < this->egptr(), true)) 27002: { 27002: __ret = traits_type::to_int_type(*this->gptr()); 27002: this->gbump(1); 27002: } 27002: else 27002: __ret = this->uflow(); 27002: return __ret; 27002: } 27002: # 342 "/usr/include/c++/12/streambuf" 3 27002: int_type 27002: sgetc() 27002: { 27002: int_type __ret; 27002: if (__builtin_expect(this->gptr() < this->egptr(), true)) 27002: __ret = traits_type::to_int_type(*this->gptr()); 27002: else 27002: __ret = this->underflow(); 27002: return __ret; 27002: } 27002: # 361 "/usr/include/c++/12/streambuf" 3 27002: streamsize 27002: sgetn(char_type* __s, streamsize __n) 27002: { return this->xsgetn(__s, __n); } 27002: # 376 "/usr/include/c++/12/streambuf" 3 27002: int_type 27002: sputbackc(char_type __c) 27002: { 27002: int_type __ret; 27002: const bool __testpos = this->eback() < this->gptr(); 27002: if (__builtin_expect(!__testpos || 27002: !traits_type::eq(__c, this->gptr()[-1]), false)) 27002: __ret = this->pbackfail(traits_type::to_int_type(__c)); 27002: else 27002: { 27002: this->gbump(-1); 27002: __ret = traits_type::to_int_type(*this->gptr()); 27002: } 27002: return __ret; 27002: } 27002: # 401 "/usr/include/c++/12/streambuf" 3 27002: int_type 27002: sungetc() 27002: { 27002: int_type __ret; 27002: if (__builtin_expect(this->eback() < this->gptr(), true)) 27002: { 27002: this->gbump(-1); 27002: __ret = traits_type::to_int_type(*this->gptr()); 27002: } 27002: else 27002: __ret = this->pbackfail(); 27002: return __ret; 27002: } 27002: # 428 "/usr/include/c++/12/streambuf" 3 27002: int_type 27002: sputc(char_type __c) 27002: { 27002: int_type __ret; 27002: if (__builtin_expect(this->pptr() < this->epptr(), true)) 27002: { 27002: *this->pptr() = __c; 27002: this->pbump(1); 27002: __ret = traits_type::to_int_type(__c); 27002: } 27002: else 27002: __ret = this->overflow(traits_type::to_int_type(__c)); 27002: return __ret; 27002: } 27002: # 454 "/usr/include/c++/12/streambuf" 3 27002: streamsize 27002: sputn(const char_type* __s, streamsize __n) 27002: { return this->xsputn(__s, __n); } 27002: 27002: protected: 27002: # 468 "/usr/include/c++/12/streambuf" 3 27002: basic_streambuf() 27002: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 27002: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 27002: _M_buf_locale(locale()) 27002: { } 27002: # 486 "/usr/include/c++/12/streambuf" 3 27002: char_type* 27002: eback() const { return _M_in_beg; } 27002: 27002: char_type* 27002: gptr() const { return _M_in_cur; } 27002: 27002: char_type* 27002: egptr() const { return _M_in_end; } 27002: # 502 "/usr/include/c++/12/streambuf" 3 27002: void 27002: gbump(int __n) { _M_in_cur += __n; } 27002: # 513 "/usr/include/c++/12/streambuf" 3 27002: void 27002: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 27002: { 27002: _M_in_beg = __gbeg; 27002: _M_in_cur = __gnext; 27002: _M_in_end = __gend; 27002: } 27002: # 533 "/usr/include/c++/12/streambuf" 3 27002: char_type* 27002: pbase() const { return _M_out_beg; } 27002: 27002: char_type* 27002: pptr() const { return _M_out_cur; } 27002: 27002: char_type* 27002: epptr() const { return _M_out_end; } 27002: # 549 "/usr/include/c++/12/streambuf" 3 27002: void 27002: pbump(int __n) { _M_out_cur += __n; } 27002: # 559 "/usr/include/c++/12/streambuf" 3 27002: void 27002: setp(char_type* __pbeg, char_type* __pend) 27002: { 27002: _M_out_beg = _M_out_cur = __pbeg; 27002: _M_out_end = __pend; 27002: } 27002: # 580 "/usr/include/c++/12/streambuf" 3 27002: virtual void 27002: imbue(const locale& __loc __attribute__ ((__unused__))) 27002: { } 27002: # 595 "/usr/include/c++/12/streambuf" 3 27002: virtual basic_streambuf* 27002: setbuf(char_type*, streamsize) 27002: { return this; } 27002: # 606 "/usr/include/c++/12/streambuf" 3 27002: virtual pos_type 27002: seekoff(off_type, ios_base::seekdir, 27002: ios_base::openmode = ios_base::in | ios_base::out) 27002: { return pos_type(off_type(-1)); } 27002: # 618 "/usr/include/c++/12/streambuf" 3 27002: virtual pos_type 27002: seekpos(pos_type, 27002: ios_base::openmode = ios_base::in | ios_base::out) 27002: { return pos_type(off_type(-1)); } 27002: # 631 "/usr/include/c++/12/streambuf" 3 27002: virtual int 27002: sync() { return 0; } 27002: # 653 "/usr/include/c++/12/streambuf" 3 27002: virtual streamsize 27002: showmanyc() { return 0; } 27002: # 669 "/usr/include/c++/12/streambuf" 3 27002: virtual streamsize 27002: xsgetn(char_type* __s, streamsize __n); 27002: # 691 "/usr/include/c++/12/streambuf" 3 27002: virtual int_type 27002: underflow() 27002: { return traits_type::eof(); } 27002: # 704 "/usr/include/c++/12/streambuf" 3 27002: virtual int_type 27002: uflow() 27002: { 27002: int_type __ret = traits_type::eof(); 27002: const bool __testeof = traits_type::eq_int_type(this->underflow(), 27002: __ret); 27002: if (!__testeof) 27002: { 27002: __ret = traits_type::to_int_type(*this->gptr()); 27002: this->gbump(1); 27002: } 27002: return __ret; 27002: } 27002: # 728 "/usr/include/c++/12/streambuf" 3 27002: virtual int_type 27002: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 27002: { return traits_type::eof(); } 27002: # 746 "/usr/include/c++/12/streambuf" 3 27002: virtual streamsize 27002: xsputn(const char_type* __s, streamsize __n); 27002: # 772 "/usr/include/c++/12/streambuf" 3 27002: virtual int_type 27002: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 27002: { return traits_type::eof(); } 27002: # 799 "/usr/include/c++/12/streambuf" 3 27002: void 27002: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 27002: 27002: void 27002: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 27002: 27002: 27002: 27002: 27002: protected: 27002: 27002: basic_streambuf(const basic_streambuf&); 27002: 27002: basic_streambuf& 27002: operator=(const basic_streambuf&); 27002: 27002: 27002: void 27002: swap(basic_streambuf& __sb) 27002: { 27002: std::swap(_M_in_beg, __sb._M_in_beg); 27002: std::swap(_M_in_cur, __sb._M_in_cur); 27002: std::swap(_M_in_end, __sb._M_in_end); 27002: std::swap(_M_out_beg, __sb._M_out_beg); 27002: std::swap(_M_out_cur, __sb._M_out_cur); 27002: std::swap(_M_out_end, __sb._M_out_end); 27002: std::swap(_M_buf_locale, __sb._M_buf_locale); 27002: } 27002: 27002: }; 27002: 27002: 27002: template 27002: std::basic_streambuf<_CharT, _Traits>:: 27002: basic_streambuf(const basic_streambuf&) = default; 27002: 27002: template 27002: std::basic_streambuf<_CharT, _Traits>& 27002: std::basic_streambuf<_CharT, _Traits>:: 27002: operator=(const basic_streambuf&) = default; 27002: 27002: 27002: 27002: template<> 27002: streamsize 27002: __copy_streambufs_eof(basic_streambuf* __sbin, 27002: basic_streambuf* __sbout, bool& __ineof); 27002: 27002: template<> 27002: streamsize 27002: __copy_streambufs_eof(basic_streambuf* __sbin, 27002: basic_streambuf* __sbout, bool& __ineof); 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: # 1 "/usr/include/c++/12/bits/streambuf.tcc" 1 3 27002: # 37 "/usr/include/c++/12/bits/streambuf.tcc" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/streambuf.tcc" 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: streamsize 27002: basic_streambuf<_CharT, _Traits>:: 27002: xsgetn(char_type* __s, streamsize __n) 27002: { 27002: streamsize __ret = 0; 27002: while (__ret < __n) 27002: { 27002: const streamsize __buf_len = this->egptr() - this->gptr(); 27002: if (__buf_len) 27002: { 27002: const streamsize __remaining = __n - __ret; 27002: const streamsize __len = std::min(__buf_len, __remaining); 27002: traits_type::copy(__s, this->gptr(), __len); 27002: __ret += __len; 27002: __s += __len; 27002: this->__safe_gbump(__len); 27002: } 27002: 27002: if (__ret < __n) 27002: { 27002: const int_type __c = this->uflow(); 27002: if (!traits_type::eq_int_type(__c, traits_type::eof())) 27002: { 27002: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 27002: ++__ret; 27002: } 27002: else 27002: break; 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: streamsize 27002: basic_streambuf<_CharT, _Traits>:: 27002: xsputn(const char_type* __s, streamsize __n) 27002: { 27002: streamsize __ret = 0; 27002: while (__ret < __n) 27002: { 27002: const streamsize __buf_len = this->epptr() - this->pptr(); 27002: if (__buf_len) 27002: { 27002: const streamsize __remaining = __n - __ret; 27002: const streamsize __len = std::min(__buf_len, __remaining); 27002: traits_type::copy(this->pptr(), __s, __len); 27002: __ret += __len; 27002: __s += __len; 27002: this->__safe_pbump(__len); 27002: } 27002: 27002: if (__ret < __n) 27002: { 27002: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 27002: if (!traits_type::eq_int_type(__c, traits_type::eof())) 27002: { 27002: ++__ret; 27002: ++__s; 27002: } 27002: else 27002: break; 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: streamsize 27002: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 27002: basic_streambuf<_CharT, _Traits>* __sbout, 27002: bool& __ineof) 27002: { 27002: streamsize __ret = 0; 27002: __ineof = true; 27002: typename _Traits::int_type __c = __sbin->sgetc(); 27002: while (!_Traits::eq_int_type(__c, _Traits::eof())) 27002: { 27002: __c = __sbout->sputc(_Traits::to_char_type(__c)); 27002: if (_Traits::eq_int_type(__c, _Traits::eof())) 27002: { 27002: __ineof = false; 27002: break; 27002: } 27002: ++__ret; 27002: __c = __sbin->snextc(); 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: inline streamsize 27002: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 27002: basic_streambuf<_CharT, _Traits>* __sbout) 27002: { 27002: bool __ineof; 27002: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 27002: } 27002: 27002: 27002: 27002: 27002: extern template class basic_streambuf; 27002: 27002: extern template 27002: streamsize 27002: __copy_streambufs(basic_streambuf*, 27002: basic_streambuf*); 27002: 27002: 27002: extern template class basic_streambuf; 27002: 27002: extern template 27002: streamsize 27002: __copy_streambufs(basic_streambuf*, 27002: basic_streambuf*); 27002: 27002: 27002: 27002: 27002: } 27002: # 859 "/usr/include/c++/12/streambuf" 2 3 27002: # 44 "/usr/include/c++/12/ios" 2 3 27002: # 1 "/usr/include/c++/12/bits/basic_ios.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/locale_facets.h" 1 3 27002: # 37 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: 27002: # 1 "/usr/include/c++/12/cwctype" 1 3 27002: # 39 "/usr/include/c++/12/cwctype" 3 27002: 27002: # 40 "/usr/include/c++/12/cwctype" 3 27002: # 50 "/usr/include/c++/12/cwctype" 3 27002: # 1 "/usr/include/wctype.h" 1 3 4 27002: # 38 "/usr/include/wctype.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 1 3 4 27002: # 38 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 27002: typedef unsigned long int wctype_t; 27002: # 56 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 27002: enum 27002: { 27002: __ISwupper = 0, 27002: __ISwlower = 1, 27002: __ISwalpha = 2, 27002: __ISwdigit = 3, 27002: __ISwxdigit = 4, 27002: __ISwspace = 5, 27002: __ISwprint = 6, 27002: __ISwgraph = 7, 27002: __ISwblank = 8, 27002: __ISwcntrl = 9, 27002: __ISwpunct = 10, 27002: __ISwalnum = 11, 27002: 27002: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 27002: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 27002: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 27002: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 27002: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 27002: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 27002: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 27002: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 27002: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 27002: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 27002: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 27002: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 27002: }; 27002: 27002: 27002: 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int iswalnum (wint_t __wc) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern int iswalpha (wint_t __wc) noexcept (true); 27002: 27002: 27002: extern int iswcntrl (wint_t __wc) noexcept (true); 27002: 27002: 27002: 27002: extern int iswdigit (wint_t __wc) noexcept (true); 27002: 27002: 27002: 27002: extern int iswgraph (wint_t __wc) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswlower (wint_t __wc) noexcept (true); 27002: 27002: 27002: extern int iswprint (wint_t __wc) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswpunct (wint_t __wc) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswspace (wint_t __wc) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswupper (wint_t __wc) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswxdigit (wint_t __wc) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern int iswblank (wint_t __wc) noexcept (true); 27002: # 155 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 27002: extern wctype_t wctype (const char *__property) noexcept (true); 27002: 27002: 27002: 27002: extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern wint_t towlower (wint_t __wc) noexcept (true); 27002: 27002: 27002: extern wint_t towupper (wint_t __wc) noexcept (true); 27002: 27002: } 27002: # 39 "/usr/include/wctype.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: extern "C" { 27002: 27002: 27002: 27002: typedef const __int32_t *wctrans_t; 27002: 27002: 27002: 27002: extern wctrans_t wctrans (const char *__property) noexcept (true); 27002: 27002: 27002: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: extern wctype_t wctype_l (const char *__property, locale_t __locale) 27002: noexcept (true); 27002: 27002: 27002: 27002: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 27002: noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 27002: noexcept (true); 27002: 27002: 27002: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 27002: locale_t __locale) noexcept (true); 27002: 27002: 27002: 27002: } 27002: # 51 "/usr/include/c++/12/cwctype" 2 3 27002: # 80 "/usr/include/c++/12/cwctype" 3 27002: namespace std 27002: { 27002: using ::wctrans_t; 27002: using ::wctype_t; 27002: using ::wint_t; 27002: 27002: using ::iswalnum; 27002: using ::iswalpha; 27002: 27002: using ::iswblank; 27002: 27002: using ::iswcntrl; 27002: using ::iswctype; 27002: using ::iswdigit; 27002: using ::iswgraph; 27002: using ::iswlower; 27002: using ::iswprint; 27002: using ::iswpunct; 27002: using ::iswspace; 27002: using ::iswupper; 27002: using ::iswxdigit; 27002: using ::towctrans; 27002: using ::towlower; 27002: using ::towupper; 27002: using ::wctrans; 27002: using ::wctype; 27002: } 27002: # 40 "/usr/include/c++/12/bits/locale_facets.h" 2 3 27002: # 1 "/usr/include/c++/12/cctype" 1 3 27002: # 39 "/usr/include/c++/12/cctype" 3 27002: 27002: # 40 "/usr/include/c++/12/cctype" 3 27002: # 41 "/usr/include/c++/12/bits/locale_facets.h" 2 3 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/ctype_base.h" 1 3 27002: # 36 "/usr/include/arm-linux-gnueabihf/c++/12/bits/ctype_base.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: struct ctype_base 27002: { 27002: 27002: typedef const int* __to_type; 27002: 27002: 27002: 27002: typedef unsigned short mask; 27002: static const mask upper = _ISupper; 27002: static const mask lower = _ISlower; 27002: static const mask alpha = _ISalpha; 27002: static const mask digit = _ISdigit; 27002: static const mask xdigit = _ISxdigit; 27002: static const mask space = _ISspace; 27002: static const mask print = _ISprint; 27002: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 27002: static const mask cntrl = _IScntrl; 27002: static const mask punct = _ISpunct; 27002: static const mask alnum = _ISalpha | _ISdigit; 27002: 27002: static const mask blank = _ISblank; 27002: 27002: }; 27002: 27002: 27002: } 27002: # 42 "/usr/include/c++/12/bits/locale_facets.h" 2 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/streambuf_iterator.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/streambuf_iterator.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/streambuf_iterator.h" 3 27002: 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: template 27002: class istreambuf_iterator 27002: : public iterator 27002: { 27002: public: 27002: # 69 "/usr/include/c++/12/bits/streambuf_iterator.h" 3 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: typedef typename _Traits::int_type int_type; 27002: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 27002: typedef basic_istream<_CharT, _Traits> istream_type; 27002: 27002: 27002: template 27002: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 27002: ostreambuf_iterator<_CharT2> >::__type 27002: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 27002: ostreambuf_iterator<_CharT2>); 27002: 27002: template 27002: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 27002: _CharT2*>::__type 27002: __copy_move_a2(istreambuf_iterator<_CharT2>, 27002: istreambuf_iterator<_CharT2>, _CharT2*); 27002: 27002: template 27002: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 27002: _CharT2*>::__type 27002: __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); 27002: 27002: template 27002: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 27002: istreambuf_iterator<_CharT2> >::__type 27002: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 27002: const _CharT2&); 27002: 27002: template 27002: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 27002: void>::__type 27002: advance(istreambuf_iterator<_CharT2>&, _Distance); 27002: 27002: private: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: mutable streambuf_type* _M_sbuf; 27002: int_type _M_c; 27002: 27002: public: 27002: 27002: constexpr istreambuf_iterator() noexcept 27002: : _M_sbuf(0), _M_c(traits_type::eof()) { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 27002: 27002: ~istreambuf_iterator() = default; 27002: 27002: 27002: 27002: istreambuf_iterator(istream_type& __s) noexcept 27002: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 27002: 27002: 27002: istreambuf_iterator(streambuf_type* __s) noexcept 27002: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 27002: 27002: 27002: istreambuf_iterator& 27002: operator=(const istreambuf_iterator&) noexcept = default; 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: char_type 27002: operator*() const 27002: { 27002: int_type __c = _M_get(); 27002: # 160 "/usr/include/c++/12/bits/streambuf_iterator.h" 3 27002: return traits_type::to_char_type(__c); 27002: } 27002: 27002: 27002: istreambuf_iterator& 27002: operator++() 27002: { 27002: 27002: 27002: 27002: ; 27002: 27002: _M_sbuf->sbumpc(); 27002: _M_c = traits_type::eof(); 27002: return *this; 27002: } 27002: 27002: 27002: istreambuf_iterator 27002: operator++(int) 27002: { 27002: 27002: 27002: 27002: ; 27002: 27002: istreambuf_iterator __old = *this; 27002: __old._M_c = _M_sbuf->sbumpc(); 27002: _M_c = traits_type::eof(); 27002: return __old; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: bool 27002: equal(const istreambuf_iterator& __b) const 27002: { return _M_at_eof() == __b._M_at_eof(); } 27002: 27002: private: 27002: int_type 27002: _M_get() const 27002: { 27002: int_type __ret = _M_c; 27002: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 27002: _M_sbuf = 0; 27002: return __ret; 27002: } 27002: 27002: bool 27002: _M_at_eof() const 27002: { return _S_is_eof(_M_get()); } 27002: 27002: static bool 27002: _S_is_eof(int_type __c) 27002: { 27002: const int_type __eof = traits_type::eof(); 27002: return traits_type::eq_int_type(__c, __eof); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: }; 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 27002: const istreambuf_iterator<_CharT, _Traits>& __b) 27002: { return __a.equal(__b); } 27002: 27002: 27002: template 27002: [[__nodiscard__]] 27002: inline bool 27002: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 27002: const istreambuf_iterator<_CharT, _Traits>& __b) 27002: { return !__a.equal(__b); } 27002: 27002: 27002: 27002: template 27002: class ostreambuf_iterator 27002: : public iterator 27002: { 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 27002: typedef basic_ostream<_CharT, _Traits> ostream_type; 27002: 27002: 27002: template 27002: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 27002: ostreambuf_iterator<_CharT2> >::__type 27002: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 27002: ostreambuf_iterator<_CharT2>); 27002: 27002: private: 27002: streambuf_type* _M_sbuf; 27002: bool _M_failed; 27002: 27002: public: 27002: # 283 "/usr/include/c++/12/bits/streambuf_iterator.h" 3 27002: ostreambuf_iterator(ostream_type& __s) noexcept 27002: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 27002: 27002: 27002: ostreambuf_iterator(streambuf_type* __s) noexcept 27002: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 27002: 27002: 27002: ostreambuf_iterator& 27002: operator=(_CharT __c) 27002: { 27002: if (!_M_failed && 27002: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 27002: _M_failed = true; 27002: return *this; 27002: } 27002: 27002: 27002: [[__nodiscard__]] 27002: ostreambuf_iterator& 27002: operator*() 27002: { return *this; } 27002: 27002: 27002: ostreambuf_iterator& 27002: operator++(int) 27002: { return *this; } 27002: 27002: 27002: ostreambuf_iterator& 27002: operator++() 27002: { return *this; } 27002: 27002: 27002: [[__nodiscard__]] 27002: bool 27002: failed() const noexcept 27002: { return _M_failed; } 27002: 27002: ostreambuf_iterator& 27002: _M_put(const _CharT* __ws, streamsize __len) 27002: { 27002: if (__builtin_expect(!_M_failed, true) 27002: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 27002: false)) 27002: _M_failed = true; 27002: return *this; 27002: } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 27002: ostreambuf_iterator<_CharT> >::__type 27002: copy(istreambuf_iterator<_CharT> __first, 27002: istreambuf_iterator<_CharT> __last, 27002: ostreambuf_iterator<_CharT> __result) 27002: { 27002: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 27002: { 27002: bool __ineof; 27002: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 27002: if (!__ineof) 27002: __result._M_failed = true; 27002: } 27002: return __result; 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 27002: ostreambuf_iterator<_CharT> >::__type 27002: __copy_move_a2(_CharT* __first, _CharT* __last, 27002: ostreambuf_iterator<_CharT> __result) 27002: { 27002: const streamsize __num = __last - __first; 27002: if (__num > 0) 27002: __result._M_put(__first, __num); 27002: return __result; 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 27002: ostreambuf_iterator<_CharT> >::__type 27002: __copy_move_a2(const _CharT* __first, const _CharT* __last, 27002: ostreambuf_iterator<_CharT> __result) 27002: { 27002: const streamsize __num = __last - __first; 27002: if (__num > 0) 27002: __result._M_put(__first, __num); 27002: return __result; 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 27002: _CharT*>::__type 27002: __copy_move_a2(istreambuf_iterator<_CharT> __first, 27002: istreambuf_iterator<_CharT> __last, _CharT* __result) 27002: { 27002: typedef istreambuf_iterator<_CharT> __is_iterator_type; 27002: typedef typename __is_iterator_type::traits_type traits_type; 27002: typedef typename __is_iterator_type::streambuf_type streambuf_type; 27002: typedef typename traits_type::int_type int_type; 27002: 27002: if (__first._M_sbuf && !__last._M_sbuf) 27002: { 27002: streambuf_type* __sb = __first._M_sbuf; 27002: int_type __c = __sb->sgetc(); 27002: while (!traits_type::eq_int_type(__c, traits_type::eof())) 27002: { 27002: const streamsize __n = __sb->egptr() - __sb->gptr(); 27002: if (__n > 1) 27002: { 27002: traits_type::copy(__result, __sb->gptr(), __n); 27002: __sb->__safe_gbump(__n); 27002: __result += __n; 27002: __c = __sb->underflow(); 27002: } 27002: else 27002: { 27002: *__result++ = traits_type::to_char_type(__c); 27002: __c = __sb->snextc(); 27002: } 27002: } 27002: } 27002: return __result; 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 27002: _CharT*>::__type 27002: __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, 27002: bool __strict __attribute__((__unused__))) 27002: { 27002: if (__n == 0) 27002: return __result; 27002: 27002: 27002: 27002: ; 27002: _CharT* __beg = __result; 27002: __result += __it._M_sbuf->sgetn(__beg, __n); 27002: 27002: 27002: ; 27002: return __result; 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 27002: istreambuf_iterator<_CharT> >::__type 27002: find(istreambuf_iterator<_CharT> __first, 27002: istreambuf_iterator<_CharT> __last, const _CharT& __val) 27002: { 27002: typedef istreambuf_iterator<_CharT> __is_iterator_type; 27002: typedef typename __is_iterator_type::traits_type traits_type; 27002: typedef typename __is_iterator_type::streambuf_type streambuf_type; 27002: typedef typename traits_type::int_type int_type; 27002: const int_type __eof = traits_type::eof(); 27002: 27002: if (__first._M_sbuf && !__last._M_sbuf) 27002: { 27002: const int_type __ival = traits_type::to_int_type(__val); 27002: streambuf_type* __sb = __first._M_sbuf; 27002: int_type __c = __sb->sgetc(); 27002: while (!traits_type::eq_int_type(__c, __eof) 27002: && !traits_type::eq_int_type(__c, __ival)) 27002: { 27002: streamsize __n = __sb->egptr() - __sb->gptr(); 27002: if (__n > 1) 27002: { 27002: const _CharT* __p = traits_type::find(__sb->gptr(), 27002: __n, __val); 27002: if (__p) 27002: __n = __p - __sb->gptr(); 27002: __sb->__safe_gbump(__n); 27002: __c = __sb->sgetc(); 27002: } 27002: else 27002: __c = __sb->snextc(); 27002: } 27002: 27002: __first._M_c = __eof; 27002: } 27002: 27002: return __first; 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 27002: void>::__type 27002: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 27002: { 27002: if (__n == 0) 27002: return; 27002: 27002: do { if (std::__is_constant_evaluated() && !bool(__n > 0)) __builtin_unreachable(); } while (false); 27002: 27002: 27002: ; 27002: 27002: typedef istreambuf_iterator<_CharT> __is_iterator_type; 27002: typedef typename __is_iterator_type::traits_type traits_type; 27002: typedef typename __is_iterator_type::streambuf_type streambuf_type; 27002: typedef typename traits_type::int_type int_type; 27002: const int_type __eof = traits_type::eof(); 27002: 27002: streambuf_type* __sb = __i._M_sbuf; 27002: while (__n > 0) 27002: { 27002: streamsize __size = __sb->egptr() - __sb->gptr(); 27002: if (__size > __n) 27002: { 27002: __sb->__safe_gbump(__n); 27002: break; 27002: } 27002: 27002: __sb->__safe_gbump(__size); 27002: __n -= __size; 27002: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 27002: { 27002: 27002: 27002: ; 27002: break; 27002: } 27002: } 27002: 27002: __i._M_c = __eof; 27002: } 27002: 27002: 27002: 27002: 27002: } 27002: # 49 "/usr/include/c++/12/bits/locale_facets.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 74 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: template 27002: void 27002: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 27002: const __c_locale&) throw(); 27002: 27002: 27002: template<> 27002: void 27002: __convert_to_v(const char*, float&, ios_base::iostate&, 27002: const __c_locale&) throw(); 27002: 27002: template<> 27002: void 27002: __convert_to_v(const char*, double&, ios_base::iostate&, 27002: const __c_locale&) throw(); 27002: 27002: template<> 27002: void 27002: __convert_to_v(const char*, long double&, ios_base::iostate&, 27002: const __c_locale&) throw(); 27002: 27002: 27002: 27002: template 27002: struct __pad 27002: { 27002: static void 27002: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 27002: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: _CharT* 27002: __add_grouping(_CharT* __s, _CharT __sep, 27002: const char* __gbeg, size_t __gsize, 27002: const _CharT* __first, const _CharT* __last); 27002: 27002: 27002: 27002: 27002: template 27002: inline 27002: ostreambuf_iterator<_CharT> 27002: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 27002: { 27002: __s._M_put(__ws, __len); 27002: return __s; 27002: } 27002: 27002: 27002: template 27002: inline 27002: _OutIter 27002: __write(_OutIter __s, const _CharT* __ws, int __len) 27002: { 27002: for (int __j = 0; __j < __len; __j++, ++__s) 27002: *__s = __ws[__j]; 27002: return __s; 27002: } 27002: # 152 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: template 27002: class __ctype_abstract_base : public locale::facet, public ctype_base 27002: { 27002: public: 27002: 27002: 27002: typedef _CharT char_type; 27002: # 171 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: bool 27002: is(mask __m, char_type __c) const 27002: { return this->do_is(__m, __c); } 27002: # 188 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char_type* 27002: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 27002: { return this->do_is(__lo, __hi, __vec); } 27002: # 204 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char_type* 27002: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 27002: { return this->do_scan_is(__m, __lo, __hi); } 27002: # 220 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char_type* 27002: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 27002: { return this->do_scan_not(__m, __lo, __hi); } 27002: # 234 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: char_type 27002: toupper(char_type __c) const 27002: { return this->do_toupper(__c); } 27002: # 249 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char_type* 27002: toupper(char_type *__lo, const char_type* __hi) const 27002: { return this->do_toupper(__lo, __hi); } 27002: # 263 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: char_type 27002: tolower(char_type __c) const 27002: { return this->do_tolower(__c); } 27002: # 278 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char_type* 27002: tolower(char_type* __lo, const char_type* __hi) const 27002: { return this->do_tolower(__lo, __hi); } 27002: # 295 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: char_type 27002: widen(char __c) const 27002: { return this->do_widen(__c); } 27002: # 314 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char* 27002: widen(const char* __lo, const char* __hi, char_type* __to) const 27002: { return this->do_widen(__lo, __hi, __to); } 27002: # 333 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: char 27002: narrow(char_type __c, char __dfault) const 27002: { return this->do_narrow(__c, __dfault); } 27002: # 355 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char_type* 27002: narrow(const char_type* __lo, const char_type* __hi, 27002: char __dfault, char* __to) const 27002: { return this->do_narrow(__lo, __hi, __dfault, __to); } 27002: 27002: protected: 27002: explicit 27002: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 27002: 27002: virtual 27002: ~__ctype_abstract_base() { } 27002: # 380 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual bool 27002: do_is(mask __m, char_type __c) const = 0; 27002: # 399 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_is(const char_type* __lo, const char_type* __hi, 27002: mask* __vec) const = 0; 27002: # 418 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_scan_is(mask __m, const char_type* __lo, 27002: const char_type* __hi) const = 0; 27002: # 437 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_scan_not(mask __m, const char_type* __lo, 27002: const char_type* __hi) const = 0; 27002: # 455 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_toupper(char_type __c) const = 0; 27002: # 472 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 27002: # 488 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_tolower(char_type __c) const = 0; 27002: # 505 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 27002: # 524 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_widen(char __c) const = 0; 27002: # 545 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char* 27002: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 27002: # 566 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char 27002: do_narrow(char_type __c, char __dfault) const = 0; 27002: # 591 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_narrow(const char_type* __lo, const char_type* __hi, 27002: char __dfault, char* __to) const = 0; 27002: }; 27002: # 614 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: template 27002: class ctype : public __ctype_abstract_base<_CharT> 27002: { 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef typename __ctype_abstract_base<_CharT>::mask mask; 27002: 27002: 27002: static locale::id id; 27002: 27002: explicit 27002: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 27002: 27002: protected: 27002: virtual 27002: ~ctype(); 27002: 27002: virtual bool 27002: do_is(mask __m, char_type __c) const; 27002: 27002: virtual const char_type* 27002: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 27002: 27002: virtual const char_type* 27002: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 27002: 27002: virtual const char_type* 27002: do_scan_not(mask __m, const char_type* __lo, 27002: const char_type* __hi) const; 27002: 27002: virtual char_type 27002: do_toupper(char_type __c) const; 27002: 27002: virtual const char_type* 27002: do_toupper(char_type* __lo, const char_type* __hi) const; 27002: 27002: virtual char_type 27002: do_tolower(char_type __c) const; 27002: 27002: virtual const char_type* 27002: do_tolower(char_type* __lo, const char_type* __hi) const; 27002: 27002: virtual char_type 27002: do_widen(char __c) const; 27002: 27002: virtual const char* 27002: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 27002: 27002: virtual char 27002: do_narrow(char_type, char __dfault) const; 27002: 27002: virtual const char_type* 27002: do_narrow(const char_type* __lo, const char_type* __hi, 27002: char __dfault, char* __to) const; 27002: }; 27002: 27002: template 27002: locale::id ctype<_CharT>::id; 27002: 27002: 27002: 27002: template 27002: class ctype >; 27002: # 688 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: template<> 27002: class ctype : public locale::facet, public ctype_base 27002: { 27002: public: 27002: 27002: 27002: typedef char char_type; 27002: 27002: protected: 27002: 27002: __c_locale _M_c_locale_ctype; 27002: bool _M_del; 27002: __to_type _M_toupper; 27002: __to_type _M_tolower; 27002: const mask* _M_table; 27002: mutable char _M_widen_ok; 27002: mutable char _M_widen[1 + static_cast(-1)]; 27002: mutable char _M_narrow[1 + static_cast(-1)]; 27002: mutable char _M_narrow_ok; 27002: 27002: 27002: public: 27002: 27002: static locale::id id; 27002: 27002: static const size_t table_size = 1 + static_cast(-1); 27002: # 725 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: explicit 27002: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 27002: # 738 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: explicit 27002: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 27002: size_t __refs = 0); 27002: # 751 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: inline bool 27002: is(mask __m, char __c) const; 27002: # 766 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: inline const char* 27002: is(const char* __lo, const char* __hi, mask* __vec) const; 27002: # 780 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: inline const char* 27002: scan_is(mask __m, const char* __lo, const char* __hi) const; 27002: # 794 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: inline const char* 27002: scan_not(mask __m, const char* __lo, const char* __hi) const; 27002: # 809 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: char_type 27002: toupper(char_type __c) const 27002: { return this->do_toupper(__c); } 27002: # 826 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char_type* 27002: toupper(char_type *__lo, const char_type* __hi) const 27002: { return this->do_toupper(__lo, __hi); } 27002: # 842 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: char_type 27002: tolower(char_type __c) const 27002: { return this->do_tolower(__c); } 27002: # 859 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char_type* 27002: tolower(char_type* __lo, const char_type* __hi) const 27002: { return this->do_tolower(__lo, __hi); } 27002: # 879 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: char_type 27002: widen(char __c) const 27002: { 27002: if (_M_widen_ok) 27002: return _M_widen[static_cast(__c)]; 27002: this->_M_widen_init(); 27002: return this->do_widen(__c); 27002: } 27002: # 906 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char* 27002: widen(const char* __lo, const char* __hi, char_type* __to) const 27002: { 27002: if (_M_widen_ok == 1) 27002: { 27002: if (__builtin_expect(__hi != __lo, true)) 27002: __builtin_memcpy(__to, __lo, __hi - __lo); 27002: return __hi; 27002: } 27002: if (!_M_widen_ok) 27002: _M_widen_init(); 27002: return this->do_widen(__lo, __hi, __to); 27002: } 27002: # 938 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: char 27002: narrow(char_type __c, char __dfault) const 27002: { 27002: if (_M_narrow[static_cast(__c)]) 27002: return _M_narrow[static_cast(__c)]; 27002: const char __t = do_narrow(__c, __dfault); 27002: if (__t != __dfault) 27002: _M_narrow[static_cast(__c)] = __t; 27002: return __t; 27002: } 27002: # 971 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: const char_type* 27002: narrow(const char_type* __lo, const char_type* __hi, 27002: char __dfault, char* __to) const 27002: { 27002: if (__builtin_expect(_M_narrow_ok == 1, true)) 27002: { 27002: if (__builtin_expect(__hi != __lo, true)) 27002: __builtin_memcpy(__to, __lo, __hi - __lo); 27002: return __hi; 27002: } 27002: if (!_M_narrow_ok) 27002: _M_narrow_init(); 27002: return this->do_narrow(__lo, __hi, __dfault, __to); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: const mask* 27002: table() const throw() 27002: { return _M_table; } 27002: 27002: 27002: static const mask* 27002: classic_table() throw(); 27002: protected: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual 27002: ~ctype(); 27002: # 1021 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_toupper(char_type __c) const; 27002: # 1038 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_toupper(char_type* __lo, const char_type* __hi) const; 27002: # 1054 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_tolower(char_type __c) const; 27002: # 1071 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_tolower(char_type* __lo, const char_type* __hi) const; 27002: # 1091 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_widen(char __c) const 27002: { return __c; } 27002: # 1114 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char* 27002: do_widen(const char* __lo, const char* __hi, char_type* __to) const 27002: { 27002: if (__builtin_expect(__hi != __lo, true)) 27002: __builtin_memcpy(__to, __lo, __hi - __lo); 27002: return __hi; 27002: } 27002: # 1141 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char 27002: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 27002: { return __c; } 27002: # 1167 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_narrow(const char_type* __lo, const char_type* __hi, 27002: char __dfault __attribute__((__unused__)), char* __to) const 27002: { 27002: if (__builtin_expect(__hi != __lo, true)) 27002: __builtin_memcpy(__to, __lo, __hi - __lo); 27002: return __hi; 27002: } 27002: 27002: private: 27002: void _M_narrow_init() const; 27002: void _M_widen_init() const; 27002: }; 27002: # 1193 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: template<> 27002: class ctype : public __ctype_abstract_base 27002: { 27002: public: 27002: 27002: 27002: typedef wchar_t char_type; 27002: typedef wctype_t __wmask_type; 27002: 27002: protected: 27002: __c_locale _M_c_locale_ctype; 27002: 27002: 27002: bool _M_narrow_ok; 27002: char _M_narrow[128]; 27002: wint_t _M_widen[1 + static_cast(-1)]; 27002: 27002: 27002: mask _M_bit[16]; 27002: __wmask_type _M_wmask[16]; 27002: 27002: public: 27002: 27002: 27002: static locale::id id; 27002: # 1226 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: explicit 27002: ctype(size_t __refs = 0); 27002: # 1237 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: explicit 27002: ctype(__c_locale __cloc, size_t __refs = 0); 27002: 27002: protected: 27002: __wmask_type 27002: _M_convert_to_wmask(const mask __m) const throw(); 27002: 27002: 27002: virtual 27002: ~ctype(); 27002: # 1261 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual bool 27002: do_is(mask __m, char_type __c) const; 27002: # 1280 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 27002: # 1298 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 27002: # 1316 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_scan_not(mask __m, const char_type* __lo, 27002: const char_type* __hi) const; 27002: # 1333 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_toupper(char_type __c) const; 27002: # 1350 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_toupper(char_type* __lo, const char_type* __hi) const; 27002: # 1366 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_tolower(char_type __c) const; 27002: # 1383 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_tolower(char_type* __lo, const char_type* __hi) const; 27002: # 1403 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_widen(char __c) const; 27002: # 1425 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char* 27002: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 27002: # 1448 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char 27002: do_narrow(char_type __c, char __dfault) const; 27002: # 1474 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual const char_type* 27002: do_narrow(const char_type* __lo, const char_type* __hi, 27002: char __dfault, char* __to) const; 27002: 27002: 27002: void 27002: _M_initialize_ctype() throw(); 27002: }; 27002: 27002: 27002: 27002: template 27002: class ctype_byname : public ctype<_CharT> 27002: { 27002: public: 27002: typedef typename ctype<_CharT>::mask mask; 27002: 27002: explicit 27002: ctype_byname(const char* __s, size_t __refs = 0); 27002: 27002: 27002: explicit 27002: ctype_byname(const string& __s, size_t __refs = 0) 27002: : ctype_byname(__s.c_str(), __refs) { } 27002: 27002: 27002: protected: 27002: virtual 27002: ~ctype_byname() { } 27002: }; 27002: 27002: 27002: template<> 27002: class ctype_byname : public ctype 27002: { 27002: public: 27002: explicit 27002: ctype_byname(const char* __s, size_t __refs = 0); 27002: 27002: 27002: explicit 27002: ctype_byname(const string& __s, size_t __refs = 0); 27002: 27002: 27002: protected: 27002: virtual 27002: ~ctype_byname(); 27002: }; 27002: 27002: 27002: template<> 27002: class ctype_byname : public ctype 27002: { 27002: public: 27002: explicit 27002: ctype_byname(const char* __s, size_t __refs = 0); 27002: 27002: 27002: explicit 27002: ctype_byname(const string& __s, size_t __refs = 0); 27002: 27002: 27002: protected: 27002: virtual 27002: ~ctype_byname(); 27002: }; 27002: 27002: 27002: 27002: } 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/ctype_inline.h" 1 3 27002: # 37 "/usr/include/arm-linux-gnueabihf/c++/12/bits/ctype_inline.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: bool 27002: ctype:: 27002: is(mask __m, char __c) const 27002: { return _M_table[static_cast(__c)] & __m; } 27002: 27002: const char* 27002: ctype:: 27002: is(const char* __low, const char* __high, mask* __vec) const 27002: { 27002: while (__low < __high) 27002: *__vec++ = _M_table[static_cast(*__low++)]; 27002: return __high; 27002: } 27002: 27002: const char* 27002: ctype:: 27002: scan_is(mask __m, const char* __low, const char* __high) const 27002: { 27002: while (__low < __high 27002: && !(_M_table[static_cast(*__low)] & __m)) 27002: ++__low; 27002: return __low; 27002: } 27002: 27002: const char* 27002: ctype:: 27002: scan_not(mask __m, const char* __low, const char* __high) const 27002: { 27002: while (__low < __high 27002: && (_M_table[static_cast(*__low)] & __m) != 0) 27002: ++__low; 27002: return __low; 27002: } 27002: 27002: 27002: } 27002: # 1547 "/usr/include/c++/12/bits/locale_facets.h" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: class __num_base 27002: { 27002: public: 27002: 27002: 27002: enum 27002: { 27002: _S_ominus, 27002: _S_oplus, 27002: _S_ox, 27002: _S_oX, 27002: _S_odigits, 27002: _S_odigits_end = _S_odigits + 16, 27002: _S_oudigits = _S_odigits_end, 27002: _S_oudigits_end = _S_oudigits + 16, 27002: _S_oe = _S_odigits + 14, 27002: _S_oE = _S_oudigits + 14, 27002: _S_oend = _S_oudigits_end 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: static const char* _S_atoms_out; 27002: 27002: 27002: 27002: static const char* _S_atoms_in; 27002: 27002: enum 27002: { 27002: _S_iminus, 27002: _S_iplus, 27002: _S_ix, 27002: _S_iX, 27002: _S_izero, 27002: _S_ie = _S_izero + 14, 27002: _S_iE = _S_izero + 20, 27002: _S_iend = 26 27002: }; 27002: 27002: 27002: 27002: static void 27002: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 27002: }; 27002: 27002: template 27002: struct __numpunct_cache : public locale::facet 27002: { 27002: const char* _M_grouping; 27002: size_t _M_grouping_size; 27002: bool _M_use_grouping; 27002: const _CharT* _M_truename; 27002: size_t _M_truename_size; 27002: const _CharT* _M_falsename; 27002: size_t _M_falsename_size; 27002: _CharT _M_decimal_point; 27002: _CharT _M_thousands_sep; 27002: 27002: 27002: 27002: 27002: 27002: _CharT _M_atoms_out[__num_base::_S_oend]; 27002: 27002: 27002: 27002: 27002: 27002: _CharT _M_atoms_in[__num_base::_S_iend]; 27002: 27002: bool _M_allocated; 27002: 27002: __numpunct_cache(size_t __refs = 0) 27002: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 27002: _M_use_grouping(false), 27002: _M_truename(0), _M_truename_size(0), _M_falsename(0), 27002: _M_falsename_size(0), _M_decimal_point(_CharT()), 27002: _M_thousands_sep(_CharT()), _M_allocated(false) 27002: { } 27002: 27002: ~__numpunct_cache(); 27002: 27002: void 27002: _M_cache(const locale& __loc); 27002: 27002: private: 27002: __numpunct_cache& 27002: operator=(const __numpunct_cache&); 27002: 27002: explicit 27002: __numpunct_cache(const __numpunct_cache&); 27002: }; 27002: 27002: template 27002: __numpunct_cache<_CharT>::~__numpunct_cache() 27002: { 27002: if (_M_allocated) 27002: { 27002: delete [] _M_grouping; 27002: delete [] _M_truename; 27002: delete [] _M_falsename; 27002: } 27002: } 27002: 27002: namespace __cxx11 { 27002: # 1677 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: template 27002: class numpunct : public locale::facet 27002: { 27002: public: 27002: 27002: 27002: 27002: typedef _CharT char_type; 27002: typedef basic_string<_CharT> string_type; 27002: 27002: typedef __numpunct_cache<_CharT> __cache_type; 27002: 27002: protected: 27002: __cache_type* _M_data; 27002: 27002: public: 27002: 27002: static locale::id id; 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: numpunct(size_t __refs = 0) 27002: : facet(__refs), _M_data(0) 27002: { _M_initialize_numpunct(); } 27002: # 1715 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: explicit 27002: numpunct(__cache_type* __cache, size_t __refs = 0) 27002: : facet(__refs), _M_data(__cache) 27002: { _M_initialize_numpunct(); } 27002: # 1729 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: explicit 27002: numpunct(__c_locale __cloc, size_t __refs = 0) 27002: : facet(__refs), _M_data(0) 27002: { _M_initialize_numpunct(__cloc); } 27002: # 1743 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: char_type 27002: decimal_point() const 27002: { return this->do_decimal_point(); } 27002: # 1756 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: char_type 27002: thousands_sep() const 27002: { return this->do_thousands_sep(); } 27002: # 1787 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: string 27002: grouping() const 27002: { return this->do_grouping(); } 27002: # 1800 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: string_type 27002: truename() const 27002: { return this->do_truename(); } 27002: # 1813 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: string_type 27002: falsename() const 27002: { return this->do_falsename(); } 27002: 27002: protected: 27002: 27002: virtual 27002: ~numpunct(); 27002: # 1830 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_decimal_point() const 27002: { return _M_data->_M_decimal_point; } 27002: # 1842 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual char_type 27002: do_thousands_sep() const 27002: { return _M_data->_M_thousands_sep; } 27002: # 1855 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual string 27002: do_grouping() const 27002: { return _M_data->_M_grouping; } 27002: # 1868 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual string_type 27002: do_truename() const 27002: { return _M_data->_M_truename; } 27002: # 1881 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual string_type 27002: do_falsename() const 27002: { return _M_data->_M_falsename; } 27002: 27002: 27002: void 27002: _M_initialize_numpunct(__c_locale __cloc = 0); 27002: }; 27002: 27002: template 27002: locale::id numpunct<_CharT>::id; 27002: 27002: template<> 27002: numpunct::~numpunct(); 27002: 27002: template<> 27002: void 27002: numpunct::_M_initialize_numpunct(__c_locale __cloc); 27002: 27002: 27002: template<> 27002: numpunct::~numpunct(); 27002: 27002: template<> 27002: void 27002: numpunct::_M_initialize_numpunct(__c_locale __cloc); 27002: 27002: 27002: 27002: template 27002: class numpunct_byname : public numpunct<_CharT> 27002: { 27002: public: 27002: typedef _CharT char_type; 27002: typedef basic_string<_CharT> string_type; 27002: 27002: explicit 27002: numpunct_byname(const char* __s, size_t __refs = 0) 27002: : numpunct<_CharT>(__refs) 27002: { 27002: if (__builtin_strcmp(__s, "C") != 0 27002: && __builtin_strcmp(__s, "POSIX") != 0) 27002: { 27002: __c_locale __tmp; 27002: this->_S_create_c_locale(__tmp, __s); 27002: this->_M_initialize_numpunct(__tmp); 27002: this->_S_destroy_c_locale(__tmp); 27002: } 27002: } 27002: 27002: 27002: explicit 27002: numpunct_byname(const string& __s, size_t __refs = 0) 27002: : numpunct_byname(__s.c_str(), __refs) { } 27002: 27002: 27002: protected: 27002: virtual 27002: ~numpunct_byname() { } 27002: }; 27002: 27002: } 27002: 27002: 27002: # 1959 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: template 27002: class num_get : public locale::facet 27002: { 27002: public: 27002: 27002: 27002: 27002: typedef _CharT char_type; 27002: typedef _InIter iter_type; 27002: 27002: 27002: 27002: static locale::id id; 27002: # 1980 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: explicit 27002: num_get(size_t __refs = 0) : facet(__refs) { } 27002: # 2006 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, bool& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: # 2043 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, long& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, unsigned short& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, unsigned int& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, unsigned long& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: 27002: 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, long long& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, unsigned long long& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: # 2103 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, float& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, double& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, long double& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: # 2146 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: iter_type 27002: get(iter_type __in, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, void*& __v) const 27002: { return this->do_get(__in, __end, __io, __err, __v); } 27002: 27002: protected: 27002: 27002: virtual ~num_get() { } 27002: 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iter_type 27002: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 27002: string&) const; 27002: 27002: template 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: iter_type 27002: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 27002: _ValueT&) const; 27002: 27002: template 27002: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 27002: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 27002: { 27002: int __ret = -1; 27002: if (__len <= 10) 27002: { 27002: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 27002: __ret = __c - _CharT2('0'); 27002: } 27002: else 27002: { 27002: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 27002: __ret = __c - _CharT2('0'); 27002: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 27002: __ret = 10 + (__c - _CharT2('a')); 27002: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 27002: __ret = 10 + (__c - _CharT2('A')); 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: typename __gnu_cxx::__enable_if::__value, 27002: int>::__type 27002: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 27002: { 27002: int __ret = -1; 27002: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 27002: if (__q) 27002: { 27002: __ret = __q - __zero; 27002: if (__ret > 15) 27002: __ret -= 6; 27002: } 27002: return __ret; 27002: } 27002: # 2219 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual iter_type 27002: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 27002: 27002: virtual iter_type 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, long& __v) const 27002: { return _M_extract_int(__beg, __end, __io, __err, __v); } 27002: 27002: virtual iter_type 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, unsigned short& __v) const 27002: { return _M_extract_int(__beg, __end, __io, __err, __v); } 27002: 27002: virtual iter_type 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, unsigned int& __v) const 27002: { return _M_extract_int(__beg, __end, __io, __err, __v); } 27002: 27002: virtual iter_type 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, unsigned long& __v) const 27002: { return _M_extract_int(__beg, __end, __io, __err, __v); } 27002: 27002: 27002: virtual iter_type 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, long long& __v) const 27002: { return _M_extract_int(__beg, __end, __io, __err, __v); } 27002: 27002: virtual iter_type 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, unsigned long long& __v) const 27002: { return _M_extract_int(__beg, __end, __io, __err, __v); } 27002: 27002: 27002: virtual iter_type 27002: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 27002: 27002: virtual iter_type 27002: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 27002: double&) const; 27002: # 2271 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual iter_type 27002: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 27002: long double&) const; 27002: 27002: 27002: virtual iter_type 27002: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 27002: # 2299 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: }; 27002: 27002: template 27002: locale::id num_get<_CharT, _InIter>::id; 27002: # 2317 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: template 27002: class num_put : public locale::facet 27002: { 27002: public: 27002: 27002: 27002: 27002: typedef _CharT char_type; 27002: typedef _OutIter iter_type; 27002: 27002: 27002: 27002: static locale::id id; 27002: # 2338 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: explicit 27002: num_put(size_t __refs = 0) : facet(__refs) { } 27002: # 2356 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: iter_type 27002: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 27002: { return this->do_put(__s, __io, __fill, __v); } 27002: # 2398 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: iter_type 27002: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 27002: { return this->do_put(__s, __io, __fill, __v); } 27002: 27002: iter_type 27002: put(iter_type __s, ios_base& __io, char_type __fill, 27002: unsigned long __v) const 27002: { return this->do_put(__s, __io, __fill, __v); } 27002: 27002: 27002: iter_type 27002: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 27002: { return this->do_put(__s, __io, __fill, __v); } 27002: 27002: iter_type 27002: put(iter_type __s, ios_base& __io, char_type __fill, 27002: unsigned long long __v) const 27002: { return this->do_put(__s, __io, __fill, __v); } 27002: # 2461 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: iter_type 27002: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 27002: { return this->do_put(__s, __io, __fill, __v); } 27002: 27002: iter_type 27002: put(iter_type __s, ios_base& __io, char_type __fill, 27002: long double __v) const 27002: { return this->do_put(__s, __io, __fill, __v); } 27002: # 2486 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: iter_type 27002: put(iter_type __s, ios_base& __io, char_type __fill, 27002: const void* __v) const 27002: { return this->do_put(__s, __io, __fill, __v); } 27002: 27002: protected: 27002: template 27002: iter_type 27002: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 27002: char __mod, _ValueT __v) const; 27002: 27002: void 27002: _M_group_float(const char* __grouping, size_t __grouping_size, 27002: char_type __sep, const char_type* __p, char_type* __new, 27002: char_type* __cs, int& __len) const; 27002: 27002: template 27002: iter_type 27002: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 27002: _ValueT __v) const; 27002: 27002: void 27002: _M_group_int(const char* __grouping, size_t __grouping_size, 27002: char_type __sep, ios_base& __io, char_type* __new, 27002: char_type* __cs, int& __len) const; 27002: 27002: void 27002: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 27002: char_type* __new, const char_type* __cs, int& __len) const; 27002: 27002: 27002: virtual 27002: ~num_put() { } 27002: # 2534 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: virtual iter_type 27002: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 27002: 27002: virtual iter_type 27002: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 27002: { return _M_insert_int(__s, __io, __fill, __v); } 27002: 27002: virtual iter_type 27002: do_put(iter_type __s, ios_base& __io, char_type __fill, 27002: unsigned long __v) const 27002: { return _M_insert_int(__s, __io, __fill, __v); } 27002: 27002: 27002: virtual iter_type 27002: do_put(iter_type __s, ios_base& __io, char_type __fill, 27002: long long __v) const 27002: { return _M_insert_int(__s, __io, __fill, __v); } 27002: 27002: virtual iter_type 27002: do_put(iter_type __s, ios_base& __io, char_type __fill, 27002: unsigned long long __v) const 27002: { return _M_insert_int(__s, __io, __fill, __v); } 27002: 27002: 27002: virtual iter_type 27002: do_put(iter_type, ios_base&, char_type, double) const; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual iter_type 27002: do_put(iter_type, ios_base&, char_type, long double) const; 27002: 27002: 27002: virtual iter_type 27002: do_put(iter_type, ios_base&, char_type, const void*) const; 27002: # 2586 "/usr/include/c++/12/bits/locale_facets.h" 3 27002: }; 27002: 27002: template 27002: locale::id num_put<_CharT, _OutIter>::id; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline bool 27002: isspace(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::space, __c); } 27002: 27002: 27002: template 27002: inline bool 27002: isprint(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::print, __c); } 27002: 27002: 27002: template 27002: inline bool 27002: iscntrl(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 27002: 27002: 27002: template 27002: inline bool 27002: isupper(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::upper, __c); } 27002: 27002: 27002: template 27002: inline bool 27002: islower(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::lower, __c); } 27002: 27002: 27002: template 27002: inline bool 27002: isalpha(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 27002: 27002: 27002: template 27002: inline bool 27002: isdigit(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::digit, __c); } 27002: 27002: 27002: template 27002: inline bool 27002: ispunct(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::punct, __c); } 27002: 27002: 27002: template 27002: inline bool 27002: isxdigit(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 27002: 27002: 27002: template 27002: inline bool 27002: isalnum(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 27002: 27002: 27002: template 27002: inline bool 27002: isgraph(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::graph, __c); } 27002: 27002: 27002: 27002: template 27002: inline bool 27002: isblank(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).is(ctype_base::blank, __c); } 27002: 27002: 27002: 27002: template 27002: inline _CharT 27002: toupper(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).toupper(__c); } 27002: 27002: 27002: template 27002: inline _CharT 27002: tolower(_CharT __c, const locale& __loc) 27002: { return use_facet >(__loc).tolower(__c); } 27002: 27002: 27002: } 27002: 27002: # 1 "/usr/include/c++/12/bits/locale_facets.tcc" 1 3 27002: # 33 "/usr/include/c++/12/bits/locale_facets.tcc" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/locale_facets.tcc" 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: template 27002: struct __use_cache 27002: { 27002: const _Facet* 27002: operator() (const locale& __loc) const; 27002: }; 27002: 27002: 27002: template 27002: struct __use_cache<__numpunct_cache<_CharT> > 27002: { 27002: const __numpunct_cache<_CharT>* 27002: operator() (const locale& __loc) const 27002: { 27002: const size_t __i = numpunct<_CharT>::id._M_id(); 27002: const locale::facet** __caches = __loc._M_impl->_M_caches; 27002: if (!__caches[__i]) 27002: { 27002: __numpunct_cache<_CharT>* __tmp = 0; 27002: try 27002: { 27002: __tmp = new __numpunct_cache<_CharT>; 27002: __tmp->_M_cache(__loc); 27002: } 27002: catch(...) 27002: { 27002: delete __tmp; 27002: throw; 27002: } 27002: __loc._M_impl->_M_install_cache(__tmp, __i); 27002: } 27002: return static_cast*>(__caches[__i]); 27002: } 27002: }; 27002: 27002: template 27002: void 27002: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 27002: { 27002: const numpunct<_CharT>& __np = use_facet >(__loc); 27002: 27002: char* __grouping = 0; 27002: _CharT* __truename = 0; 27002: _CharT* __falsename = 0; 27002: try 27002: { 27002: const string& __g = __np.grouping(); 27002: _M_grouping_size = __g.size(); 27002: __grouping = new char[_M_grouping_size]; 27002: __g.copy(__grouping, _M_grouping_size); 27002: _M_use_grouping = (_M_grouping_size 27002: && static_cast(__grouping[0]) > 0 27002: && (__grouping[0] 27002: != __gnu_cxx::__numeric_traits::__max)); 27002: 27002: const basic_string<_CharT>& __tn = __np.truename(); 27002: _M_truename_size = __tn.size(); 27002: __truename = new _CharT[_M_truename_size]; 27002: __tn.copy(__truename, _M_truename_size); 27002: 27002: const basic_string<_CharT>& __fn = __np.falsename(); 27002: _M_falsename_size = __fn.size(); 27002: __falsename = new _CharT[_M_falsename_size]; 27002: __fn.copy(__falsename, _M_falsename_size); 27002: 27002: _M_decimal_point = __np.decimal_point(); 27002: _M_thousands_sep = __np.thousands_sep(); 27002: 27002: const ctype<_CharT>& __ct = use_facet >(__loc); 27002: __ct.widen(__num_base::_S_atoms_out, 27002: __num_base::_S_atoms_out 27002: + __num_base::_S_oend, _M_atoms_out); 27002: __ct.widen(__num_base::_S_atoms_in, 27002: __num_base::_S_atoms_in 27002: + __num_base::_S_iend, _M_atoms_in); 27002: 27002: _M_grouping = __grouping; 27002: _M_truename = __truename; 27002: _M_falsename = __falsename; 27002: _M_allocated = true; 27002: } 27002: catch(...) 27002: { 27002: delete [] __grouping; 27002: delete [] __truename; 27002: delete [] __falsename; 27002: throw; 27002: } 27002: } 27002: # 139 "/usr/include/c++/12/bits/locale_facets.tcc" 3 27002: __attribute__ ((__pure__)) bool 27002: __verify_grouping(const char* __grouping, size_t __grouping_size, 27002: const string& __grouping_tmp) throw (); 27002: 27002: 27002: 27002: template 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: _InIter 27002: num_get<_CharT, _InIter>:: 27002: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 27002: ios_base::iostate& __err, string& __xtrc) const 27002: { 27002: typedef char_traits<_CharT> __traits_type; 27002: typedef __numpunct_cache<_CharT> __cache_type; 27002: __use_cache<__cache_type> __uc; 27002: const locale& __loc = __io._M_getloc(); 27002: const __cache_type* __lc = __uc(__loc); 27002: const _CharT* __lit = __lc->_M_atoms_in; 27002: char_type __c = char_type(); 27002: 27002: 27002: bool __testeof = __beg == __end; 27002: 27002: 27002: if (!__testeof) 27002: { 27002: __c = *__beg; 27002: const bool __plus = __c == __lit[__num_base::_S_iplus]; 27002: if ((__plus || __c == __lit[__num_base::_S_iminus]) 27002: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 27002: && !(__c == __lc->_M_decimal_point)) 27002: { 27002: __xtrc += __plus ? '+' : '-'; 27002: if (++__beg != __end) 27002: __c = *__beg; 27002: else 27002: __testeof = true; 27002: } 27002: } 27002: 27002: 27002: bool __found_mantissa = false; 27002: int __sep_pos = 0; 27002: while (!__testeof) 27002: { 27002: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 27002: || __c == __lc->_M_decimal_point) 27002: break; 27002: else if (__c == __lit[__num_base::_S_izero]) 27002: { 27002: if (!__found_mantissa) 27002: { 27002: __xtrc += '0'; 27002: __found_mantissa = true; 27002: } 27002: ++__sep_pos; 27002: 27002: if (++__beg != __end) 27002: __c = *__beg; 27002: else 27002: __testeof = true; 27002: } 27002: else 27002: break; 27002: } 27002: 27002: 27002: bool __found_dec = false; 27002: bool __found_sci = false; 27002: string __found_grouping; 27002: if (__lc->_M_use_grouping) 27002: __found_grouping.reserve(32); 27002: const char_type* __lit_zero = __lit + __num_base::_S_izero; 27002: 27002: if (!__lc->_M_allocated) 27002: 27002: while (!__testeof) 27002: { 27002: const int __digit = _M_find(__lit_zero, 10, __c); 27002: if (__digit != -1) 27002: { 27002: __xtrc += '0' + __digit; 27002: __found_mantissa = true; 27002: } 27002: else if (__c == __lc->_M_decimal_point 27002: && !__found_dec && !__found_sci) 27002: { 27002: __xtrc += '.'; 27002: __found_dec = true; 27002: } 27002: else if ((__c == __lit[__num_base::_S_ie] 27002: || __c == __lit[__num_base::_S_iE]) 27002: && !__found_sci && __found_mantissa) 27002: { 27002: 27002: __xtrc += 'e'; 27002: __found_sci = true; 27002: 27002: 27002: if (++__beg != __end) 27002: { 27002: __c = *__beg; 27002: const bool __plus = __c == __lit[__num_base::_S_iplus]; 27002: if (__plus || __c == __lit[__num_base::_S_iminus]) 27002: __xtrc += __plus ? '+' : '-'; 27002: else 27002: continue; 27002: } 27002: else 27002: { 27002: __testeof = true; 27002: break; 27002: } 27002: } 27002: else 27002: break; 27002: 27002: if (++__beg != __end) 27002: __c = *__beg; 27002: else 27002: __testeof = true; 27002: } 27002: else 27002: while (!__testeof) 27002: { 27002: 27002: 27002: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 27002: { 27002: if (!__found_dec && !__found_sci) 27002: { 27002: 27002: 27002: if (__sep_pos) 27002: { 27002: __found_grouping += static_cast(__sep_pos); 27002: __sep_pos = 0; 27002: } 27002: else 27002: { 27002: 27002: 27002: __xtrc.clear(); 27002: break; 27002: } 27002: } 27002: else 27002: break; 27002: } 27002: else if (__c == __lc->_M_decimal_point) 27002: { 27002: if (!__found_dec && !__found_sci) 27002: { 27002: 27002: 27002: 27002: if (__found_grouping.size()) 27002: __found_grouping += static_cast(__sep_pos); 27002: __xtrc += '.'; 27002: __found_dec = true; 27002: } 27002: else 27002: break; 27002: } 27002: else 27002: { 27002: const char_type* __q = 27002: __traits_type::find(__lit_zero, 10, __c); 27002: if (__q) 27002: { 27002: __xtrc += '0' + (__q - __lit_zero); 27002: __found_mantissa = true; 27002: ++__sep_pos; 27002: } 27002: else if ((__c == __lit[__num_base::_S_ie] 27002: || __c == __lit[__num_base::_S_iE]) 27002: && !__found_sci && __found_mantissa) 27002: { 27002: 27002: if (__found_grouping.size() && !__found_dec) 27002: __found_grouping += static_cast(__sep_pos); 27002: __xtrc += 'e'; 27002: __found_sci = true; 27002: 27002: 27002: if (++__beg != __end) 27002: { 27002: __c = *__beg; 27002: const bool __plus = __c == __lit[__num_base::_S_iplus]; 27002: if ((__plus || __c == __lit[__num_base::_S_iminus]) 27002: && !(__lc->_M_use_grouping 27002: && __c == __lc->_M_thousands_sep) 27002: && !(__c == __lc->_M_decimal_point)) 27002: __xtrc += __plus ? '+' : '-'; 27002: else 27002: continue; 27002: } 27002: else 27002: { 27002: __testeof = true; 27002: break; 27002: } 27002: } 27002: else 27002: break; 27002: } 27002: 27002: if (++__beg != __end) 27002: __c = *__beg; 27002: else 27002: __testeof = true; 27002: } 27002: 27002: 27002: 27002: if (__found_grouping.size()) 27002: { 27002: 27002: if (!__found_dec && !__found_sci) 27002: __found_grouping += static_cast(__sep_pos); 27002: 27002: if (!std::__verify_grouping(__lc->_M_grouping, 27002: __lc->_M_grouping_size, 27002: __found_grouping)) 27002: __err = ios_base::failbit; 27002: } 27002: 27002: return __beg; 27002: } 27002: 27002: template 27002: template 27002: __attribute ((__abi_tag__ ("cxx11"))) 27002: _InIter 27002: num_get<_CharT, _InIter>:: 27002: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 27002: ios_base::iostate& __err, _ValueT& __v) const 27002: { 27002: typedef char_traits<_CharT> __traits_type; 27002: using __gnu_cxx::__add_unsigned; 27002: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 27002: typedef __numpunct_cache<_CharT> __cache_type; 27002: __use_cache<__cache_type> __uc; 27002: const locale& __loc = __io._M_getloc(); 27002: const __cache_type* __lc = __uc(__loc); 27002: const _CharT* __lit = __lc->_M_atoms_in; 27002: char_type __c = char_type(); 27002: 27002: 27002: const ios_base::fmtflags __basefield = __io.flags() 27002: & ios_base::basefield; 27002: const bool __oct = __basefield == ios_base::oct; 27002: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 27002: 27002: 27002: bool __testeof = __beg == __end; 27002: 27002: 27002: bool __negative = false; 27002: if (!__testeof) 27002: { 27002: __c = *__beg; 27002: __negative = __c == __lit[__num_base::_S_iminus]; 27002: if ((__negative || __c == __lit[__num_base::_S_iplus]) 27002: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 27002: && !(__c == __lc->_M_decimal_point)) 27002: { 27002: if (++__beg != __end) 27002: __c = *__beg; 27002: else 27002: __testeof = true; 27002: } 27002: } 27002: 27002: 27002: 27002: bool __found_zero = false; 27002: int __sep_pos = 0; 27002: while (!__testeof) 27002: { 27002: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 27002: || __c == __lc->_M_decimal_point) 27002: break; 27002: else if (__c == __lit[__num_base::_S_izero] 27002: && (!__found_zero || __base == 10)) 27002: { 27002: __found_zero = true; 27002: ++__sep_pos; 27002: if (__basefield == 0) 27002: __base = 8; 27002: if (__base == 8) 27002: __sep_pos = 0; 27002: } 27002: else if (__found_zero 27002: && (__c == __lit[__num_base::_S_ix] 27002: || __c == __lit[__num_base::_S_iX])) 27002: { 27002: if (__basefield == 0) 27002: __base = 16; 27002: if (__base == 16) 27002: { 27002: __found_zero = false; 27002: __sep_pos = 0; 27002: } 27002: else 27002: break; 27002: } 27002: else 27002: break; 27002: 27002: if (++__beg != __end) 27002: { 27002: __c = *__beg; 27002: if (!__found_zero) 27002: break; 27002: } 27002: else 27002: __testeof = true; 27002: } 27002: 27002: 27002: 27002: const size_t __len = (__base == 16 ? __num_base::_S_iend 27002: - __num_base::_S_izero : __base); 27002: 27002: 27002: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 27002: string __found_grouping; 27002: if (__lc->_M_use_grouping) 27002: __found_grouping.reserve(32); 27002: bool __testfail = false; 27002: bool __testoverflow = false; 27002: const __unsigned_type __max = 27002: (__negative && __num_traits::__is_signed) 27002: ? -static_cast<__unsigned_type>(__num_traits::__min) 27002: : __num_traits::__max; 27002: const __unsigned_type __smax = __max / __base; 27002: __unsigned_type __result = 0; 27002: int __digit = 0; 27002: const char_type* __lit_zero = __lit + __num_base::_S_izero; 27002: 27002: if (!__lc->_M_allocated) 27002: 27002: while (!__testeof) 27002: { 27002: __digit = _M_find(__lit_zero, __len, __c); 27002: if (__digit == -1) 27002: break; 27002: 27002: if (__result > __smax) 27002: __testoverflow = true; 27002: else 27002: { 27002: __result *= __base; 27002: __testoverflow |= __result > __max - __digit; 27002: __result += __digit; 27002: ++__sep_pos; 27002: } 27002: 27002: if (++__beg != __end) 27002: __c = *__beg; 27002: else 27002: __testeof = true; 27002: } 27002: else 27002: while (!__testeof) 27002: { 27002: 27002: 27002: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 27002: { 27002: 27002: 27002: if (__sep_pos) 27002: { 27002: __found_grouping += static_cast(__sep_pos); 27002: __sep_pos = 0; 27002: } 27002: else 27002: { 27002: __testfail = true; 27002: break; 27002: } 27002: } 27002: else if (__c == __lc->_M_decimal_point) 27002: break; 27002: else 27002: { 27002: const char_type* __q = 27002: __traits_type::find(__lit_zero, __len, __c); 27002: if (!__q) 27002: break; 27002: 27002: __digit = __q - __lit_zero; 27002: if (__digit > 15) 27002: __digit -= 6; 27002: if (__result > __smax) 27002: __testoverflow = true; 27002: else 27002: { 27002: __result *= __base; 27002: __testoverflow |= __result > __max - __digit; 27002: __result += __digit; 27002: ++__sep_pos; 27002: } 27002: } 27002: 27002: if (++__beg != __end) 27002: __c = *__beg; 27002: else 27002: __testeof = true; 27002: } 27002: 27002: 27002: 27002: if (__found_grouping.size()) 27002: { 27002: 27002: __found_grouping += static_cast(__sep_pos); 27002: 27002: if (!std::__verify_grouping(__lc->_M_grouping, 27002: __lc->_M_grouping_size, 27002: __found_grouping)) 27002: __err = ios_base::failbit; 27002: } 27002: 27002: 27002: 27002: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 27002: || __testfail) 27002: { 27002: __v = 0; 27002: __err = ios_base::failbit; 27002: } 27002: else if (__testoverflow) 27002: { 27002: if (__negative && __num_traits::__is_signed) 27002: __v = __num_traits::__min; 27002: else 27002: __v = __num_traits::__max; 27002: __err = ios_base::failbit; 27002: } 27002: else 27002: __v = __negative ? -__result : __result; 27002: 27002: if (__testeof) 27002: __err |= ios_base::eofbit; 27002: return __beg; 27002: } 27002: 27002: 27002: 27002: template 27002: _InIter 27002: num_get<_CharT, _InIter>:: 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, bool& __v) const 27002: { 27002: if (!(__io.flags() & ios_base::boolalpha)) 27002: { 27002: 27002: 27002: 27002: long __l = -1; 27002: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 27002: if (__l == 0 || __l == 1) 27002: __v = bool(__l); 27002: else 27002: { 27002: 27002: 27002: __v = true; 27002: __err = ios_base::failbit; 27002: if (__beg == __end) 27002: __err |= ios_base::eofbit; 27002: } 27002: } 27002: else 27002: { 27002: 27002: typedef __numpunct_cache<_CharT> __cache_type; 27002: __use_cache<__cache_type> __uc; 27002: const locale& __loc = __io._M_getloc(); 27002: const __cache_type* __lc = __uc(__loc); 27002: 27002: bool __testf = true; 27002: bool __testt = true; 27002: bool __donef = __lc->_M_falsename_size == 0; 27002: bool __donet = __lc->_M_truename_size == 0; 27002: bool __testeof = false; 27002: size_t __n = 0; 27002: while (!__donef || !__donet) 27002: { 27002: if (__beg == __end) 27002: { 27002: __testeof = true; 27002: break; 27002: } 27002: 27002: const char_type __c = *__beg; 27002: 27002: if (!__donef) 27002: __testf = __c == __lc->_M_falsename[__n]; 27002: 27002: if (!__testf && __donet) 27002: break; 27002: 27002: if (!__donet) 27002: __testt = __c == __lc->_M_truename[__n]; 27002: 27002: if (!__testt && __donef) 27002: break; 27002: 27002: if (!__testt && !__testf) 27002: break; 27002: 27002: ++__n; 27002: ++__beg; 27002: 27002: __donef = !__testf || __n >= __lc->_M_falsename_size; 27002: __donet = !__testt || __n >= __lc->_M_truename_size; 27002: } 27002: if (__testf && __n == __lc->_M_falsename_size && __n) 27002: { 27002: __v = false; 27002: if (__testt && __n == __lc->_M_truename_size) 27002: __err = ios_base::failbit; 27002: else 27002: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 27002: } 27002: else if (__testt && __n == __lc->_M_truename_size && __n) 27002: { 27002: __v = true; 27002: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 27002: } 27002: else 27002: { 27002: 27002: 27002: __v = false; 27002: __err = ios_base::failbit; 27002: if (__testeof) 27002: __err |= ios_base::eofbit; 27002: } 27002: } 27002: return __beg; 27002: } 27002: 27002: template 27002: _InIter 27002: num_get<_CharT, _InIter>:: 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, float& __v) const 27002: { 27002: string __xtrc; 27002: __xtrc.reserve(32); 27002: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 27002: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 27002: if (__beg == __end) 27002: __err |= ios_base::eofbit; 27002: return __beg; 27002: } 27002: 27002: template 27002: _InIter 27002: num_get<_CharT, _InIter>:: 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, double& __v) const 27002: { 27002: string __xtrc; 27002: __xtrc.reserve(32); 27002: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 27002: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 27002: if (__beg == __end) 27002: __err |= ios_base::eofbit; 27002: return __beg; 27002: } 27002: # 735 "/usr/include/c++/12/bits/locale_facets.tcc" 3 27002: template 27002: _InIter 27002: num_get<_CharT, _InIter>:: 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, long double& __v) const 27002: { 27002: string __xtrc; 27002: __xtrc.reserve(32); 27002: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 27002: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 27002: if (__beg == __end) 27002: __err |= ios_base::eofbit; 27002: return __beg; 27002: } 27002: 27002: template 27002: _InIter 27002: num_get<_CharT, _InIter>:: 27002: do_get(iter_type __beg, iter_type __end, ios_base& __io, 27002: ios_base::iostate& __err, void*& __v) const 27002: { 27002: 27002: typedef ios_base::fmtflags fmtflags; 27002: const fmtflags __fmt = __io.flags(); 27002: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 27002: 27002: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 27002: <= sizeof(unsigned long)), 27002: unsigned long, unsigned long long>::__type _UIntPtrType; 27002: 27002: _UIntPtrType __ul; 27002: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 27002: 27002: 27002: __io.flags(__fmt); 27002: 27002: __v = reinterpret_cast(__ul); 27002: return __beg; 27002: } 27002: # 795 "/usr/include/c++/12/bits/locale_facets.tcc" 3 27002: template 27002: void 27002: num_put<_CharT, _OutIter>:: 27002: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 27002: _CharT* __new, const _CharT* __cs, int& __len) const 27002: { 27002: 27002: 27002: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 27002: __cs, __w, __len); 27002: __len = static_cast(__w); 27002: } 27002: 27002: 27002: 27002: template 27002: int 27002: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 27002: ios_base::fmtflags __flags, bool __dec) 27002: { 27002: _CharT* __buf = __bufend; 27002: if (__builtin_expect(__dec, true)) 27002: { 27002: 27002: do 27002: { 27002: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 27002: __v /= 10; 27002: } 27002: while (__v != 0); 27002: } 27002: else if ((__flags & ios_base::basefield) == ios_base::oct) 27002: { 27002: 27002: do 27002: { 27002: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 27002: __v >>= 3; 27002: } 27002: while (__v != 0); 27002: } 27002: else 27002: { 27002: 27002: const bool __uppercase = __flags & ios_base::uppercase; 27002: const int __case_offset = __uppercase ? __num_base::_S_oudigits 27002: : __num_base::_S_odigits; 27002: do 27002: { 27002: *--__buf = __lit[(__v & 0xf) + __case_offset]; 27002: __v >>= 4; 27002: } 27002: while (__v != 0); 27002: } 27002: return __bufend - __buf; 27002: } 27002: 27002: 27002: 27002: template 27002: void 27002: num_put<_CharT, _OutIter>:: 27002: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 27002: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 27002: { 27002: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 27002: __grouping_size, __cs, __cs + __len); 27002: __len = __p - __new; 27002: } 27002: 27002: template 27002: template 27002: _OutIter 27002: num_put<_CharT, _OutIter>:: 27002: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 27002: _ValueT __v) const 27002: { 27002: using __gnu_cxx::__add_unsigned; 27002: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 27002: typedef __numpunct_cache<_CharT> __cache_type; 27002: __use_cache<__cache_type> __uc; 27002: const locale& __loc = __io._M_getloc(); 27002: const __cache_type* __lc = __uc(__loc); 27002: const _CharT* __lit = __lc->_M_atoms_out; 27002: const ios_base::fmtflags __flags = __io.flags(); 27002: 27002: 27002: const int __ilen = 5 * sizeof(_ValueT); 27002: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 27002: * __ilen)); 27002: 27002: 27002: 27002: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 27002: const bool __dec = (__basefield != ios_base::oct 27002: && __basefield != ios_base::hex); 27002: const __unsigned_type __u = ((__v > 0 || !__dec) 27002: ? __unsigned_type(__v) 27002: : -__unsigned_type(__v)); 27002: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 27002: __cs += __ilen - __len; 27002: 27002: 27002: if (__lc->_M_use_grouping) 27002: { 27002: 27002: 27002: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 27002: * (__len + 1) 27002: * 2)); 27002: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 27002: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 27002: __cs = __cs2 + 2; 27002: } 27002: 27002: 27002: if (__builtin_expect(__dec, true)) 27002: { 27002: 27002: if (__v >= 0) 27002: { 27002: if (bool(__flags & ios_base::showpos) 27002: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 27002: *--__cs = __lit[__num_base::_S_oplus], ++__len; 27002: } 27002: else 27002: *--__cs = __lit[__num_base::_S_ominus], ++__len; 27002: } 27002: else if (bool(__flags & ios_base::showbase) && __v) 27002: { 27002: if (__basefield == ios_base::oct) 27002: *--__cs = __lit[__num_base::_S_odigits], ++__len; 27002: else 27002: { 27002: 27002: const bool __uppercase = __flags & ios_base::uppercase; 27002: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 27002: 27002: *--__cs = __lit[__num_base::_S_odigits]; 27002: __len += 2; 27002: } 27002: } 27002: 27002: 27002: const streamsize __w = __io.width(); 27002: if (__w > static_cast(__len)) 27002: { 27002: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 27002: * __w)); 27002: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 27002: __cs = __cs3; 27002: } 27002: __io.width(0); 27002: 27002: 27002: 27002: return std::__write(__s, __cs, __len); 27002: } 27002: 27002: template 27002: void 27002: num_put<_CharT, _OutIter>:: 27002: _M_group_float(const char* __grouping, size_t __grouping_size, 27002: _CharT __sep, const _CharT* __p, _CharT* __new, 27002: _CharT* __cs, int& __len) const 27002: { 27002: 27002: 27002: 27002: const int __declen = __p ? __p - __cs : __len; 27002: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 27002: __grouping_size, 27002: __cs, __cs + __declen); 27002: 27002: 27002: int __newlen = __p2 - __new; 27002: if (__p) 27002: { 27002: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 27002: __newlen += __len - __declen; 27002: } 27002: __len = __newlen; 27002: } 27002: # 989 "/usr/include/c++/12/bits/locale_facets.tcc" 3 27002: template 27002: template 27002: _OutIter 27002: num_put<_CharT, _OutIter>:: 27002: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 27002: _ValueT __v) const 27002: { 27002: typedef __numpunct_cache<_CharT> __cache_type; 27002: __use_cache<__cache_type> __uc; 27002: const locale& __loc = __io._M_getloc(); 27002: const __cache_type* __lc = __uc(__loc); 27002: 27002: 27002: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 27002: 27002: const int __max_digits = 27002: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 27002: 27002: 27002: int __len; 27002: 27002: char __fbuf[16]; 27002: __num_base::_S_format_float(__io, __fbuf, __mod); 27002: 27002: 27002: 27002: const bool __use_prec = 27002: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 27002: 27002: 27002: 27002: int __cs_size = __max_digits * 3; 27002: char* __cs = static_cast(__builtin_alloca(__cs_size)); 27002: if (__use_prec) 27002: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 27002: __fbuf, __prec, __v); 27002: else 27002: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 27002: __fbuf, __v); 27002: 27002: 27002: if (__len >= __cs_size) 27002: { 27002: __cs_size = __len + 1; 27002: __cs = static_cast(__builtin_alloca(__cs_size)); 27002: if (__use_prec) 27002: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 27002: __fbuf, __prec, __v); 27002: else 27002: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 27002: __fbuf, __v); 27002: } 27002: # 1062 "/usr/include/c++/12/bits/locale_facets.tcc" 3 27002: const ctype<_CharT>& __ctype = use_facet >(__loc); 27002: 27002: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 27002: * __len)); 27002: __ctype.widen(__cs, __cs + __len, __ws); 27002: 27002: 27002: _CharT* __wp = 0; 27002: const char* __p = char_traits::find(__cs, __len, '.'); 27002: if (__p) 27002: { 27002: __wp = __ws + (__p - __cs); 27002: *__wp = __lc->_M_decimal_point; 27002: } 27002: 27002: 27002: 27002: 27002: if (__lc->_M_use_grouping 27002: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 27002: && __cs[1] >= '0' && __cs[2] >= '0'))) 27002: { 27002: 27002: 27002: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 27002: * __len * 2)); 27002: 27002: streamsize __off = 0; 27002: if (__cs[0] == '-' || __cs[0] == '+') 27002: { 27002: __off = 1; 27002: __ws2[0] = __ws[0]; 27002: __len -= 1; 27002: } 27002: 27002: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 27002: __lc->_M_thousands_sep, __wp, __ws2 + __off, 27002: __ws + __off, __len); 27002: __len += __off; 27002: 27002: __ws = __ws2; 27002: } 27002: 27002: 27002: const streamsize __w = __io.width(); 27002: if (__w > static_cast(__len)) 27002: { 27002: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 27002: * __w)); 27002: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 27002: __ws = __ws3; 27002: } 27002: __io.width(0); 27002: 27002: 27002: 27002: return std::__write(__s, __ws, __len); 27002: } 27002: 27002: template 27002: _OutIter 27002: num_put<_CharT, _OutIter>:: 27002: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 27002: { 27002: const ios_base::fmtflags __flags = __io.flags(); 27002: if ((__flags & ios_base::boolalpha) == 0) 27002: { 27002: const long __l = __v; 27002: __s = _M_insert_int(__s, __io, __fill, __l); 27002: } 27002: else 27002: { 27002: typedef __numpunct_cache<_CharT> __cache_type; 27002: __use_cache<__cache_type> __uc; 27002: const locale& __loc = __io._M_getloc(); 27002: const __cache_type* __lc = __uc(__loc); 27002: 27002: const _CharT* __name = __v ? __lc->_M_truename 27002: : __lc->_M_falsename; 27002: int __len = __v ? __lc->_M_truename_size 27002: : __lc->_M_falsename_size; 27002: 27002: const streamsize __w = __io.width(); 27002: if (__w > static_cast(__len)) 27002: { 27002: const streamsize __plen = __w - __len; 27002: _CharT* __ps 27002: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 27002: * __plen)); 27002: 27002: char_traits<_CharT>::assign(__ps, __plen, __fill); 27002: __io.width(0); 27002: 27002: if ((__flags & ios_base::adjustfield) == ios_base::left) 27002: { 27002: __s = std::__write(__s, __name, __len); 27002: __s = std::__write(__s, __ps, __plen); 27002: } 27002: else 27002: { 27002: __s = std::__write(__s, __ps, __plen); 27002: __s = std::__write(__s, __name, __len); 27002: } 27002: return __s; 27002: } 27002: __io.width(0); 27002: __s = std::__write(__s, __name, __len); 27002: } 27002: return __s; 27002: } 27002: 27002: template 27002: _OutIter 27002: num_put<_CharT, _OutIter>:: 27002: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 27002: { return _M_insert_float(__s, __io, __fill, char(), __v); } 27002: # 1187 "/usr/include/c++/12/bits/locale_facets.tcc" 3 27002: template 27002: _OutIter 27002: num_put<_CharT, _OutIter>:: 27002: do_put(iter_type __s, ios_base& __io, char_type __fill, 27002: long double __v) const 27002: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 27002: 27002: template 27002: _OutIter 27002: num_put<_CharT, _OutIter>:: 27002: do_put(iter_type __s, ios_base& __io, char_type __fill, 27002: const void* __v) const 27002: { 27002: const ios_base::fmtflags __flags = __io.flags(); 27002: const ios_base::fmtflags __fmt = ~(ios_base::basefield 27002: | ios_base::uppercase); 27002: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 27002: 27002: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 27002: <= sizeof(unsigned long)), 27002: unsigned long, unsigned long long>::__type _UIntPtrType; 27002: 27002: __s = _M_insert_int(__s, __io, __fill, 27002: reinterpret_cast<_UIntPtrType>(__v)); 27002: __io.flags(__flags); 27002: return __s; 27002: } 27002: # 1224 "/usr/include/c++/12/bits/locale_facets.tcc" 3 27002: 27002: # 1233 "/usr/include/c++/12/bits/locale_facets.tcc" 3 27002: template 27002: void 27002: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 27002: _CharT* __news, const _CharT* __olds, 27002: streamsize __newlen, streamsize __oldlen) 27002: { 27002: const size_t __plen = static_cast(__newlen - __oldlen); 27002: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 27002: 27002: 27002: if (__adjust == ios_base::left) 27002: { 27002: _Traits::copy(__news, __olds, __oldlen); 27002: _Traits::assign(__news + __oldlen, __plen, __fill); 27002: return; 27002: } 27002: 27002: size_t __mod = 0; 27002: if (__adjust == ios_base::internal) 27002: { 27002: 27002: 27002: 27002: const locale& __loc = __io._M_getloc(); 27002: const ctype<_CharT>& __ctype = use_facet >(__loc); 27002: 27002: if (__ctype.widen('-') == __olds[0] 27002: || __ctype.widen('+') == __olds[0]) 27002: { 27002: __news[0] = __olds[0]; 27002: __mod = 1; 27002: ++__news; 27002: } 27002: else if (__ctype.widen('0') == __olds[0] 27002: && __oldlen > 1 27002: && (__ctype.widen('x') == __olds[1] 27002: || __ctype.widen('X') == __olds[1])) 27002: { 27002: __news[0] = __olds[0]; 27002: __news[1] = __olds[1]; 27002: __mod = 2; 27002: __news += 2; 27002: } 27002: 27002: } 27002: _Traits::assign(__news, __plen, __fill); 27002: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 27002: } 27002: 27002: template 27002: _CharT* 27002: __add_grouping(_CharT* __s, _CharT __sep, 27002: const char* __gbeg, size_t __gsize, 27002: const _CharT* __first, const _CharT* __last) 27002: { 27002: size_t __idx = 0; 27002: size_t __ctr = 0; 27002: 27002: while (__last - __first > __gbeg[__idx] 27002: && static_cast(__gbeg[__idx]) > 0 27002: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 27002: { 27002: __last -= __gbeg[__idx]; 27002: __idx < __gsize - 1 ? ++__idx : ++__ctr; 27002: } 27002: 27002: while (__first != __last) 27002: *__s++ = *__first++; 27002: 27002: while (__ctr--) 27002: { 27002: *__s++ = __sep; 27002: for (char __i = __gbeg[__idx]; __i > 0; --__i) 27002: *__s++ = *__first++; 27002: } 27002: 27002: while (__idx--) 27002: { 27002: *__s++ = __sep; 27002: for (char __i = __gbeg[__idx]; __i > 0; --__i) 27002: *__s++ = *__first++; 27002: } 27002: 27002: return __s; 27002: } 27002: 27002: 27002: 27002: 27002: extern template class __cxx11:: numpunct; 27002: extern template class __cxx11:: numpunct_byname; 27002: extern template class num_get; 27002: extern template class num_put; 27002: extern template class ctype_byname; 27002: 27002: extern template 27002: const ctype& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: const numpunct& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: const num_put& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: const num_get& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: 27002: extern template class __cxx11:: numpunct; 27002: extern template class __cxx11:: numpunct_byname; 27002: extern template class num_get; 27002: extern template class num_put; 27002: extern template class ctype_byname; 27002: 27002: extern template 27002: const ctype& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: const numpunct& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: const num_put& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: const num_get& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: 27002: 27002: 27002: } 27002: # 2688 "/usr/include/c++/12/bits/locale_facets.h" 2 3 27002: # 38 "/usr/include/c++/12/bits/basic_ios.h" 2 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: inline const _Facet& 27002: __check_facet(const _Facet* __f) 27002: { 27002: if (!__f) 27002: __throw_bad_cast(); 27002: return *__f; 27002: } 27002: # 66 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: template 27002: class basic_ios : public ios_base 27002: { 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef _CharT char_type; 27002: typedef typename _Traits::int_type int_type; 27002: typedef typename _Traits::pos_type pos_type; 27002: typedef typename _Traits::off_type off_type; 27002: typedef _Traits traits_type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef ctype<_CharT> __ctype_type; 27002: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 27002: __num_put_type; 27002: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 27002: __num_get_type; 27002: 27002: 27002: 27002: protected: 27002: basic_ostream<_CharT, _Traits>* _M_tie; 27002: mutable char_type _M_fill; 27002: mutable bool _M_fill_init; 27002: basic_streambuf<_CharT, _Traits>* _M_streambuf; 27002: 27002: 27002: const __ctype_type* _M_ctype; 27002: 27002: const __num_put_type* _M_num_put; 27002: 27002: const __num_get_type* _M_num_get; 27002: 27002: public: 27002: # 117 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: explicit operator bool() const 27002: { return !this->fail(); } 27002: 27002: 27002: 27002: 27002: 27002: bool 27002: operator!() const 27002: { return this->fail(); } 27002: # 136 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: iostate 27002: rdstate() const 27002: { return _M_streambuf_state; } 27002: # 147 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: void 27002: clear(iostate __state = goodbit); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: setstate(iostate __state) 27002: { this->clear(this->rdstate() | __state); } 27002: 27002: 27002: 27002: 27002: void 27002: _M_setstate(iostate __state) 27002: { 27002: 27002: 27002: _M_streambuf_state |= __state; 27002: if (this->exceptions() & __state) 27002: throw; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool 27002: good() const 27002: { return this->rdstate() == 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool 27002: eof() const 27002: { return (this->rdstate() & eofbit) != 0; } 27002: # 200 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: bool 27002: fail() const 27002: { return (this->rdstate() & (badbit | failbit)) != 0; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool 27002: bad() const 27002: { return (this->rdstate() & badbit) != 0; } 27002: # 221 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: iostate 27002: exceptions() const 27002: { return _M_exception; } 27002: # 256 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: void 27002: exceptions(iostate __except) 27002: { 27002: _M_exception = __except; 27002: this->clear(_M_streambuf_state); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 27002: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 27002: _M_ctype(0), _M_num_put(0), _M_num_get(0) 27002: { this->init(__sb); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual 27002: ~basic_ios() { } 27002: # 294 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: basic_ostream<_CharT, _Traits>* 27002: tie() const 27002: { return _M_tie; } 27002: # 306 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: basic_ostream<_CharT, _Traits>* 27002: tie(basic_ostream<_CharT, _Traits>* __tiestr) 27002: { 27002: basic_ostream<_CharT, _Traits>* __old = _M_tie; 27002: _M_tie = __tiestr; 27002: return __old; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_streambuf<_CharT, _Traits>* 27002: rdbuf() const 27002: { return _M_streambuf; } 27002: # 346 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: basic_streambuf<_CharT, _Traits>* 27002: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 27002: # 360 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: basic_ios& 27002: copyfmt(const basic_ios& __rhs); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: char_type 27002: fill() const 27002: { 27002: if (!_M_fill_init) 27002: { 27002: _M_fill = this->widen(' '); 27002: _M_fill_init = true; 27002: } 27002: return _M_fill; 27002: } 27002: # 389 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: char_type 27002: fill(char_type __ch) 27002: { 27002: char_type __old = this->fill(); 27002: _M_fill = __ch; 27002: return __old; 27002: } 27002: # 409 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: locale 27002: imbue(const locale& __loc); 27002: # 429 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: char 27002: narrow(char_type __c, char __dfault) const 27002: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 27002: # 448 "/usr/include/c++/12/bits/basic_ios.h" 3 27002: char_type 27002: widen(char __c) const 27002: { return __check_facet(_M_ctype).widen(__c); } 27002: 27002: protected: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_ios() 27002: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 27002: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 27002: { } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: init(basic_streambuf<_CharT, _Traits>* __sb); 27002: 27002: 27002: basic_ios(const basic_ios&) = delete; 27002: basic_ios& operator=(const basic_ios&) = delete; 27002: 27002: void 27002: move(basic_ios& __rhs) 27002: { 27002: ios_base::_M_move(__rhs); 27002: _M_cache_locale(_M_ios_locale); 27002: this->tie(__rhs.tie(nullptr)); 27002: _M_fill = __rhs._M_fill; 27002: _M_fill_init = __rhs._M_fill_init; 27002: _M_streambuf = nullptr; 27002: } 27002: 27002: void 27002: move(basic_ios&& __rhs) 27002: { this->move(__rhs); } 27002: 27002: void 27002: swap(basic_ios& __rhs) noexcept 27002: { 27002: ios_base::_M_swap(__rhs); 27002: _M_cache_locale(_M_ios_locale); 27002: __rhs._M_cache_locale(__rhs._M_ios_locale); 27002: std::swap(_M_tie, __rhs._M_tie); 27002: std::swap(_M_fill, __rhs._M_fill); 27002: std::swap(_M_fill_init, __rhs._M_fill_init); 27002: } 27002: 27002: void 27002: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 27002: { _M_streambuf = __sb; } 27002: 27002: 27002: void 27002: _M_cache_locale(const locale& __loc); 27002: }; 27002: 27002: 27002: } 27002: 27002: # 1 "/usr/include/c++/12/bits/basic_ios.tcc" 1 3 27002: # 33 "/usr/include/c++/12/bits/basic_ios.tcc" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/basic_ios.tcc" 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: void 27002: basic_ios<_CharT, _Traits>::clear(iostate __state) 27002: { 27002: if (this->rdbuf()) 27002: _M_streambuf_state = __state; 27002: else 27002: _M_streambuf_state = __state | badbit; 27002: if (this->exceptions() & this->rdstate()) 27002: __throw_ios_failure(("basic_ios::clear")); 27002: } 27002: 27002: template 27002: basic_streambuf<_CharT, _Traits>* 27002: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 27002: { 27002: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 27002: _M_streambuf = __sb; 27002: this->clear(); 27002: return __old; 27002: } 27002: 27002: template 27002: basic_ios<_CharT, _Traits>& 27002: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 27002: { 27002: 27002: 27002: if (this != std::__addressof(__rhs)) 27002: { 27002: 27002: 27002: 27002: 27002: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 27002: _M_local_word : new _Words[__rhs._M_word_size]; 27002: 27002: 27002: _Callback_list* __cb = __rhs._M_callbacks; 27002: if (__cb) 27002: __cb->_M_add_reference(); 27002: _M_call_callbacks(erase_event); 27002: if (_M_word != _M_local_word) 27002: { 27002: delete [] _M_word; 27002: _M_word = 0; 27002: } 27002: _M_dispose_callbacks(); 27002: 27002: 27002: _M_callbacks = __cb; 27002: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 27002: __words[__i] = __rhs._M_word[__i]; 27002: _M_word = __words; 27002: _M_word_size = __rhs._M_word_size; 27002: 27002: this->flags(__rhs.flags()); 27002: this->width(__rhs.width()); 27002: this->precision(__rhs.precision()); 27002: this->tie(__rhs.tie()); 27002: this->fill(__rhs.fill()); 27002: _M_ios_locale = __rhs.getloc(); 27002: _M_cache_locale(_M_ios_locale); 27002: 27002: _M_call_callbacks(copyfmt_event); 27002: 27002: 27002: this->exceptions(__rhs.exceptions()); 27002: } 27002: return *this; 27002: } 27002: 27002: 27002: template 27002: locale 27002: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 27002: { 27002: locale __old(this->getloc()); 27002: ios_base::imbue(__loc); 27002: _M_cache_locale(__loc); 27002: if (this->rdbuf() != 0) 27002: this->rdbuf()->pubimbue(__loc); 27002: return __old; 27002: } 27002: 27002: template 27002: void 27002: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 27002: { 27002: 27002: ios_base::_M_init(); 27002: 27002: 27002: _M_cache_locale(_M_ios_locale); 27002: # 146 "/usr/include/c++/12/bits/basic_ios.tcc" 3 27002: _M_fill = _CharT(); 27002: _M_fill_init = false; 27002: 27002: _M_tie = 0; 27002: _M_exception = goodbit; 27002: _M_streambuf = __sb; 27002: _M_streambuf_state = __sb ? goodbit : badbit; 27002: } 27002: 27002: template 27002: void 27002: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 27002: { 27002: if (__builtin_expect(has_facet<__ctype_type>(__loc), true)) 27002: _M_ctype = std::__addressof(use_facet<__ctype_type>(__loc)); 27002: else 27002: _M_ctype = 0; 27002: 27002: if (__builtin_expect(has_facet<__num_put_type>(__loc), true)) 27002: _M_num_put = std::__addressof(use_facet<__num_put_type>(__loc)); 27002: else 27002: _M_num_put = 0; 27002: 27002: if (__builtin_expect(has_facet<__num_get_type>(__loc), true)) 27002: _M_num_get = std::__addressof(use_facet<__num_get_type>(__loc)); 27002: else 27002: _M_num_get = 0; 27002: } 27002: 27002: 27002: 27002: 27002: extern template class basic_ios; 27002: 27002: 27002: extern template class basic_ios; 27002: 27002: 27002: 27002: 27002: } 27002: # 517 "/usr/include/c++/12/bits/basic_ios.h" 2 3 27002: # 45 "/usr/include/c++/12/ios" 2 3 27002: # 39 "/usr/include/c++/12/ostream" 2 3 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 57 "/usr/include/c++/12/ostream" 3 27002: template 27002: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 27002: { 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef typename _Traits::int_type int_type; 27002: typedef typename _Traits::pos_type pos_type; 27002: typedef typename _Traits::off_type off_type; 27002: typedef _Traits traits_type; 27002: 27002: 27002: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 27002: typedef basic_ios<_CharT, _Traits> __ios_type; 27002: typedef basic_ostream<_CharT, _Traits> __ostream_type; 27002: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 27002: __num_put_type; 27002: typedef ctype<_CharT> __ctype_type; 27002: # 83 "/usr/include/c++/12/ostream" 3 27002: explicit 27002: basic_ostream(__streambuf_type* __sb) 27002: { this->init(__sb); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual 27002: ~basic_ostream() { } 27002: 27002: 27002: class sentry; 27002: friend class sentry; 27002: # 107 "/usr/include/c++/12/ostream" 3 27002: __ostream_type& 27002: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 27002: { 27002: 27002: 27002: 27002: return __pf(*this); 27002: } 27002: 27002: __ostream_type& 27002: operator<<(__ios_type& (*__pf)(__ios_type&)) 27002: { 27002: 27002: 27002: 27002: __pf(*this); 27002: return *this; 27002: } 27002: 27002: __ostream_type& 27002: operator<<(ios_base& (*__pf) (ios_base&)) 27002: { 27002: 27002: 27002: 27002: __pf(*this); 27002: return *this; 27002: } 27002: # 165 "/usr/include/c++/12/ostream" 3 27002: __ostream_type& 27002: operator<<(long __n) 27002: { return _M_insert(__n); } 27002: 27002: __ostream_type& 27002: operator<<(unsigned long __n) 27002: { return _M_insert(__n); } 27002: 27002: __ostream_type& 27002: operator<<(bool __n) 27002: { return _M_insert(__n); } 27002: 27002: __ostream_type& 27002: operator<<(short __n); 27002: 27002: __ostream_type& 27002: operator<<(unsigned short __n) 27002: { 27002: 27002: 27002: return _M_insert(static_cast(__n)); 27002: } 27002: 27002: __ostream_type& 27002: operator<<(int __n); 27002: 27002: __ostream_type& 27002: operator<<(unsigned int __n) 27002: { 27002: 27002: 27002: return _M_insert(static_cast(__n)); 27002: } 27002: 27002: 27002: __ostream_type& 27002: operator<<(long long __n) 27002: { return _M_insert(__n); } 27002: 27002: __ostream_type& 27002: operator<<(unsigned long long __n) 27002: { return _M_insert(__n); } 27002: # 219 "/usr/include/c++/12/ostream" 3 27002: __ostream_type& 27002: operator<<(double __f) 27002: { return _M_insert(__f); } 27002: 27002: __ostream_type& 27002: operator<<(float __f) 27002: { 27002: 27002: 27002: return _M_insert(static_cast(__f)); 27002: } 27002: 27002: __ostream_type& 27002: operator<<(long double __f) 27002: { return _M_insert(__f); } 27002: # 244 "/usr/include/c++/12/ostream" 3 27002: __ostream_type& 27002: operator<<(const void* __p) 27002: { return _M_insert(__p); } 27002: 27002: 27002: __ostream_type& 27002: operator<<(nullptr_t) 27002: { return *this << "nullptr"; } 27002: # 282 "/usr/include/c++/12/ostream" 3 27002: __ostream_type& 27002: operator<<(__streambuf_type* __sb); 27002: # 315 "/usr/include/c++/12/ostream" 3 27002: __ostream_type& 27002: put(char_type __c); 27002: # 334 "/usr/include/c++/12/ostream" 3 27002: __ostream_type& 27002: write(const char_type* __s, streamsize __n); 27002: # 347 "/usr/include/c++/12/ostream" 3 27002: __ostream_type& 27002: flush(); 27002: # 357 "/usr/include/c++/12/ostream" 3 27002: pos_type 27002: tellp(); 27002: # 368 "/usr/include/c++/12/ostream" 3 27002: __ostream_type& 27002: seekp(pos_type); 27002: # 380 "/usr/include/c++/12/ostream" 3 27002: __ostream_type& 27002: seekp(off_type, ios_base::seekdir); 27002: 27002: protected: 27002: basic_ostream() 27002: { this->init(0); } 27002: 27002: 27002: 27002: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 27002: 27002: basic_ostream(const basic_ostream&) = delete; 27002: 27002: basic_ostream(basic_ostream&& __rhs) 27002: : __ios_type() 27002: { __ios_type::move(__rhs); } 27002: 27002: 27002: 27002: basic_ostream& operator=(const basic_ostream&) = delete; 27002: 27002: basic_ostream& 27002: operator=(basic_ostream&& __rhs) 27002: { 27002: swap(__rhs); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(basic_ostream& __rhs) 27002: { __ios_type::swap(__rhs); } 27002: 27002: 27002: template 27002: __ostream_type& 27002: _M_insert(_ValueT __v); 27002: 27002: private: 27002: 27002: void 27002: _M_write(const char_type* __s, streamsize __n) 27002: { std::__ostream_insert(*this, __s, __n); } 27002: 27002: }; 27002: # 432 "/usr/include/c++/12/ostream" 3 27002: template 27002: class basic_ostream<_CharT, _Traits>::sentry 27002: { 27002: 27002: bool _M_ok; 27002: basic_ostream<_CharT, _Traits>& _M_os; 27002: 27002: public: 27002: # 451 "/usr/include/c++/12/ostream" 3 27002: explicit 27002: sentry(basic_ostream<_CharT, _Traits>& __os); 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ~sentry() 27002: { 27002: 27002: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 27002: { 27002: 27002: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 27002: _M_os.setstate(ios_base::badbit); 27002: } 27002: } 27002: #pragma GCC diagnostic pop 27002: # 483 "/usr/include/c++/12/ostream" 3 27002: explicit 27002: 27002: operator bool() const 27002: { return _M_ok; } 27002: }; 27002: # 505 "/usr/include/c++/12/ostream" 3 27002: template 27002: inline basic_ostream<_CharT, _Traits>& 27002: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 27002: { 27002: if (__out.width() != 0) 27002: return __ostream_insert(__out, &__c, 1); 27002: __out.put(__c); 27002: return __out; 27002: } 27002: 27002: template 27002: inline basic_ostream<_CharT, _Traits>& 27002: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 27002: { return (__out << __out.widen(__c)); } 27002: 27002: 27002: template 27002: inline basic_ostream& 27002: operator<<(basic_ostream& __out, char __c) 27002: { 27002: if (__out.width() != 0) 27002: return __ostream_insert(__out, &__c, 1); 27002: __out.put(__c); 27002: return __out; 27002: } 27002: 27002: 27002: template 27002: inline basic_ostream& 27002: operator<<(basic_ostream& __out, signed char __c) 27002: { return (__out << static_cast(__c)); } 27002: 27002: template 27002: inline basic_ostream& 27002: operator<<(basic_ostream& __out, unsigned char __c) 27002: { return (__out << static_cast(__c)); } 27002: # 596 "/usr/include/c++/12/ostream" 3 27002: template 27002: inline basic_ostream<_CharT, _Traits>& 27002: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 27002: { 27002: if (!__s) 27002: __out.setstate(ios_base::badbit); 27002: else 27002: __ostream_insert(__out, __s, 27002: static_cast(_Traits::length(__s))); 27002: return __out; 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits> & 27002: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 27002: 27002: 27002: template 27002: inline basic_ostream& 27002: operator<<(basic_ostream& __out, const char* __s) 27002: { 27002: if (!__s) 27002: __out.setstate(ios_base::badbit); 27002: else 27002: __ostream_insert(__out, __s, 27002: static_cast(_Traits::length(__s))); 27002: return __out; 27002: } 27002: 27002: 27002: template 27002: inline basic_ostream& 27002: operator<<(basic_ostream& __out, const signed char* __s) 27002: { return (__out << reinterpret_cast(__s)); } 27002: 27002: template 27002: inline basic_ostream & 27002: operator<<(basic_ostream& __out, const unsigned char* __s) 27002: { return (__out << reinterpret_cast(__s)); } 27002: # 686 "/usr/include/c++/12/ostream" 3 27002: template 27002: inline basic_ostream<_CharT, _Traits>& 27002: endl(basic_ostream<_CharT, _Traits>& __os) 27002: { return flush(__os.put(__os.widen('\n'))); } 27002: # 698 "/usr/include/c++/12/ostream" 3 27002: template 27002: inline basic_ostream<_CharT, _Traits>& 27002: ends(basic_ostream<_CharT, _Traits>& __os) 27002: { return __os.put(_CharT()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: template 27002: inline basic_ostream<_CharT, _Traits>& 27002: flush(basic_ostream<_CharT, _Traits>& __os) 27002: { return __os.flush(); } 27002: # 730 "/usr/include/c++/12/ostream" 3 27002: template 27002: using _Require_derived_from_ios_base 27002: = _Require, __not_>, 27002: is_convertible::type, ios_base*>>; 27002: 27002: template, 27002: typename 27002: = decltype(std::declval<_Os&>() << std::declval())> 27002: using __rvalue_stream_insertion_t = _Os&&; 27002: # 752 "/usr/include/c++/12/ostream" 3 27002: template 27002: inline __rvalue_stream_insertion_t<_Ostream, _Tp> 27002: operator<<(_Ostream&& __os, const _Tp& __x) 27002: { 27002: __os << __x; 27002: return std::move(__os); 27002: } 27002: # 830 "/usr/include/c++/12/ostream" 3 27002: 27002: } 27002: 27002: # 1 "/usr/include/c++/12/bits/ostream.tcc" 1 3 27002: # 37 "/usr/include/c++/12/bits/ostream.tcc" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/ostream.tcc" 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>::sentry:: 27002: sentry(basic_ostream<_CharT, _Traits>& __os) 27002: : _M_ok(false), _M_os(__os) 27002: { 27002: 27002: if (__os.tie() && __os.good()) 27002: __os.tie()->flush(); 27002: 27002: if (__os.good()) 27002: _M_ok = true; 27002: else if (__os.bad()) 27002: __os.setstate(ios_base::failbit); 27002: } 27002: 27002: template 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: basic_ostream<_CharT, _Traits>:: 27002: _M_insert(_ValueT __v) 27002: { 27002: sentry __cerb(*this); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: const __num_put_type& __np = __check_facet(this->_M_num_put); 27002: if (__np.put(*this, *this, this->fill(), __v).failed()) 27002: __err |= ios_base::badbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: basic_ostream<_CharT, _Traits>:: 27002: operator<<(short __n) 27002: { 27002: 27002: 27002: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 27002: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 27002: return _M_insert(static_cast(static_cast(__n))); 27002: else 27002: return _M_insert(static_cast(__n)); 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: basic_ostream<_CharT, _Traits>:: 27002: operator<<(int __n) 27002: { 27002: 27002: 27002: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 27002: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 27002: return _M_insert(static_cast(static_cast(__n))); 27002: else 27002: return _M_insert(static_cast(__n)); 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: basic_ostream<_CharT, _Traits>:: 27002: operator<<(__streambuf_type* __sbin) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: sentry __cerb(*this); 27002: if (__cerb && __sbin) 27002: { 27002: try 27002: { 27002: if (!__copy_streambufs(__sbin, this->rdbuf())) 27002: __err |= ios_base::failbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::failbit); } 27002: } 27002: else if (!__sbin) 27002: __err |= ios_base::badbit; 27002: if (__err) 27002: this->setstate(__err); 27002: return *this; 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: basic_ostream<_CharT, _Traits>:: 27002: put(char_type __c) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: sentry __cerb(*this); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: const int_type __put = this->rdbuf()->sputc(__c); 27002: if (traits_type::eq_int_type(__put, traits_type::eof())) 27002: __err |= ios_base::badbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: basic_ostream<_CharT, _Traits>:: 27002: write(const _CharT* __s, streamsize __n) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: sentry __cerb(*this); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: if (this->rdbuf()->sputn(__s, __n) != __n) 27002: __err = ios_base::badbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(ios_base::badbit); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: basic_ostream<_CharT, _Traits>:: 27002: flush() 27002: { 27002: 27002: 27002: 27002: 27002: 27002: if (__streambuf_type* __buf = this->rdbuf()) 27002: { 27002: sentry __cerb(*this); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: if (this->rdbuf()->pubsync() == -1) 27002: __err |= ios_base::badbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: typename basic_ostream<_CharT, _Traits>::pos_type 27002: basic_ostream<_CharT, _Traits>:: 27002: tellp() 27002: { 27002: sentry __cerb(*this); 27002: pos_type __ret = pos_type(-1); 27002: if (!this->fail()) 27002: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 27002: return __ret; 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: basic_ostream<_CharT, _Traits>:: 27002: seekp(pos_type __pos) 27002: { 27002: sentry __cerb(*this); 27002: if (!this->fail()) 27002: { 27002: 27002: 27002: const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); 27002: 27002: 27002: if (__p == pos_type(off_type(-1))) 27002: this->setstate(ios_base::failbit); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: basic_ostream<_CharT, _Traits>:: 27002: seekp(off_type __off, ios_base::seekdir __dir) 27002: { 27002: sentry __cerb(*this); 27002: if (!this->fail()) 27002: { 27002: 27002: 27002: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 27002: ios_base::out); 27002: 27002: 27002: if (__p == pos_type(off_type(-1))) 27002: this->setstate(ios_base::failbit); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_ostream<_CharT, _Traits>& 27002: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 27002: { 27002: if (!__s) 27002: __out.setstate(ios_base::badbit); 27002: else 27002: { 27002: 27002: 27002: const size_t __clen = char_traits::length(__s); 27002: try 27002: { 27002: struct __ptr_guard 27002: { 27002: _CharT *__p; 27002: __ptr_guard (_CharT *__ip): __p(__ip) { } 27002: ~__ptr_guard() { delete[] __p; } 27002: _CharT* __get() { return __p; } 27002: } __pg (new _CharT[__clen]); 27002: 27002: _CharT *__ws = __pg.__get(); 27002: for (size_t __i = 0; __i < __clen; ++__i) 27002: __ws[__i] = __out.widen(__s[__i]); 27002: __ostream_insert(__out, __ws, __clen); 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: __out._M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { __out._M_setstate(ios_base::badbit); } 27002: } 27002: return __out; 27002: } 27002: 27002: 27002: 27002: 27002: extern template class basic_ostream; 27002: extern template ostream& endl(ostream&); 27002: extern template ostream& ends(ostream&); 27002: extern template ostream& flush(ostream&); 27002: extern template ostream& operator<<(ostream&, char); 27002: extern template ostream& operator<<(ostream&, unsigned char); 27002: extern template ostream& operator<<(ostream&, signed char); 27002: extern template ostream& operator<<(ostream&, const char*); 27002: extern template ostream& operator<<(ostream&, const unsigned char*); 27002: extern template ostream& operator<<(ostream&, const signed char*); 27002: 27002: extern template ostream& ostream::_M_insert(long); 27002: extern template ostream& ostream::_M_insert(unsigned long); 27002: extern template ostream& ostream::_M_insert(bool); 27002: 27002: extern template ostream& ostream::_M_insert(long long); 27002: extern template ostream& ostream::_M_insert(unsigned long long); 27002: 27002: extern template ostream& ostream::_M_insert(double); 27002: extern template ostream& ostream::_M_insert(long double); 27002: extern template ostream& ostream::_M_insert(const void*); 27002: 27002: 27002: extern template class basic_ostream; 27002: extern template wostream& endl(wostream&); 27002: extern template wostream& ends(wostream&); 27002: extern template wostream& flush(wostream&); 27002: extern template wostream& operator<<(wostream&, wchar_t); 27002: extern template wostream& operator<<(wostream&, char); 27002: extern template wostream& operator<<(wostream&, const wchar_t*); 27002: extern template wostream& operator<<(wostream&, const char*); 27002: 27002: extern template wostream& wostream::_M_insert(long); 27002: extern template wostream& wostream::_M_insert(unsigned long); 27002: extern template wostream& wostream::_M_insert(bool); 27002: 27002: extern template wostream& wostream::_M_insert(long long); 27002: extern template wostream& wostream::_M_insert(unsigned long long); 27002: 27002: extern template wostream& wostream::_M_insert(double); 27002: extern template wostream& wostream::_M_insert(long double); 27002: extern template wostream& wostream::_M_insert(const void*); 27002: 27002: 27002: 27002: 27002: } 27002: # 834 "/usr/include/c++/12/ostream" 2 3 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 2 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 27002: 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 27002: namespace rocksdb { 27002: 27002: 27002: 27002: class WideColumn { 27002: public: 27002: WideColumn() = default; 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 27002: template 27002: WideColumn(N&& name, V&& value) 27002: : name_(std::forward(name)), value_(std::forward(value)) {} 27002: # 47 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/wide_columns.h" 27002: template 27002: WideColumn(std::piecewise_construct_t, NTuple&& name_tuple, 27002: VTuple&& value_tuple) 27002: : name_(std::make_from_tuple(std::forward(name_tuple))), 27002: value_(std::make_from_tuple(std::forward(value_tuple))) { 27002: } 27002: 27002: const Slice& name() const { return name_; } 27002: const Slice& value() const { return value_; } 27002: 27002: Slice& name() { return name_; } 27002: Slice& value() { return value_; } 27002: 27002: private: 27002: Slice name_; 27002: Slice value_; 27002: }; 27002: 27002: 27002: inline bool operator==(const WideColumn& lhs, const WideColumn& rhs) { 27002: return lhs.name() == rhs.name() && lhs.value() == rhs.value(); 27002: } 27002: 27002: inline bool operator!=(const WideColumn& lhs, const WideColumn& rhs) { 27002: return !(lhs == rhs); 27002: } 27002: 27002: inline std::ostream& operator<<(std::ostream& os, const WideColumn& column) { 27002: const bool hex = 27002: (os.flags() & std::ios_base::basefield) == std::ios_base::hex; 27002: os << column.name().ToString(hex) << ':' << column.value().ToString(hex); 27002: 27002: return os; 27002: } 27002: 27002: 27002: using WideColumns = std::vector; 27002: 27002: 27002: extern const Slice kDefaultWideColumnName; 27002: 27002: 27002: extern const WideColumns kNoWideColumns; 27002: 27002: 27002: 27002: class PinnableWideColumns { 27002: public: 27002: const WideColumns& columns() const { return columns_; } 27002: size_t serialized_size() const { return value_.size(); } 27002: 27002: void SetPlainValue(const Slice& value); 27002: void SetPlainValue(const Slice& value, Cleanable* cleanable); 27002: 27002: Status SetWideColumnValue(const Slice& value); 27002: Status SetWideColumnValue(const Slice& value, Cleanable* cleanable); 27002: 27002: void Reset(); 27002: 27002: private: 27002: void CopyValue(const Slice& value); 27002: void PinOrCopyValue(const Slice& value, Cleanable* cleanable); 27002: void CreateIndexForPlainValue(); 27002: Status CreateIndexForWideColumns(); 27002: 27002: PinnableSlice value_; 27002: WideColumns columns_; 27002: }; 27002: 27002: inline void PinnableWideColumns::CopyValue(const Slice& value) { 27002: value_.PinSelf(value); 27002: } 27002: 27002: inline void PinnableWideColumns::PinOrCopyValue(const Slice& value, 27002: Cleanable* cleanable) { 27002: if (!cleanable) { 27002: CopyValue(value); 27002: return; 27002: } 27002: 27002: value_.PinSlice(value, cleanable); 27002: } 27002: 27002: inline void PinnableWideColumns::CreateIndexForPlainValue() { 27002: columns_ = WideColumns{{kDefaultWideColumnName, value_}}; 27002: } 27002: 27002: inline void PinnableWideColumns::SetPlainValue(const Slice& value) { 27002: CopyValue(value); 27002: CreateIndexForPlainValue(); 27002: } 27002: 27002: inline void PinnableWideColumns::SetPlainValue(const Slice& value, 27002: Cleanable* cleanable) { 27002: PinOrCopyValue(value, cleanable); 27002: CreateIndexForPlainValue(); 27002: } 27002: 27002: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value) { 27002: CopyValue(value); 27002: return CreateIndexForWideColumns(); 27002: } 27002: 27002: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value, 27002: Cleanable* cleanable) { 27002: PinOrCopyValue(value, cleanable); 27002: return CreateIndexForWideColumns(); 27002: } 27002: 27002: inline void PinnableWideColumns::Reset() { 27002: value_.Reset(); 27002: columns_.clear(); 27002: } 27002: 27002: inline bool operator==(const PinnableWideColumns& lhs, 27002: const PinnableWideColumns& rhs) { 27002: return lhs.columns() == rhs.columns(); 27002: } 27002: 27002: inline bool operator!=(const PinnableWideColumns& lhs, 27002: const PinnableWideColumns& rhs) { 27002: return !(lhs == rhs); 27002: } 27002: 27002: } 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class Iterator : public Cleanable { 27002: public: 27002: Iterator() {} 27002: 27002: Iterator(const Iterator&) = delete; 27002: void operator=(const Iterator&) = delete; 27002: 27002: virtual ~Iterator() {} 27002: 27002: 27002: 27002: 27002: virtual bool Valid() const = 0; 27002: 27002: 27002: 27002: virtual void SeekToFirst() = 0; 27002: 27002: 27002: 27002: virtual void SeekToLast() = 0; 27002: # 59 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: virtual void Seek(const Slice& target) = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual void SeekForPrev(const Slice& target) = 0; 27002: 27002: 27002: 27002: 27002: virtual void Next() = 0; 27002: 27002: 27002: 27002: 27002: virtual void Prev() = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Slice key() const = 0; 27002: # 91 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: virtual Slice value() const = 0; 27002: # 100 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: virtual const WideColumns& columns() const { 27002: 27002: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 27002: (static_cast ( 27002: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: false 27002: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: "false" 27002: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 27002: , "./include/rocksdb/iterator.h", 101, __extension__ __PRETTY_FUNCTION__)) 27002: # 101 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: ; 27002: return kNoWideColumns; 27002: } 27002: 27002: 27002: 27002: 27002: virtual Status status() const = 0; 27002: 27002: 27002: 27002: 27002: virtual Status Refresh() { 27002: return Status::NotSupported("Refresh() is not supported"); 27002: } 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: virtual Status GetProperty(std::string prop_name, std::string* prop); 27002: 27002: virtual Slice timestamp() const { 27002: 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 27002: (static_cast ( 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: false 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: "false" 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 3 4 27002: , "./include/rocksdb/iterator.h", 133, __extension__ __PRETTY_FUNCTION__)) 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/iterator.h" 27002: ; 27002: return Slice(); 27002: } 27002: }; 27002: 27002: 27002: extern Iterator* NewEmptyIterator(); 27002: 27002: 27002: extern Iterator* NewErrorIterator(const Status& status); 27002: 27002: } 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/sstream" 1 3 27002: # 36 "/usr/include/c++/12/sstream" 3 27002: 27002: # 37 "/usr/include/c++/12/sstream" 3 27002: 27002: # 1 "/usr/include/c++/12/istream" 1 3 27002: # 36 "/usr/include/c++/12/istream" 3 27002: 27002: # 37 "/usr/include/c++/12/istream" 3 27002: 27002: 27002: 27002: 27002: 27002: # 41 "/usr/include/c++/12/istream" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: # 57 "/usr/include/c++/12/istream" 3 27002: template 27002: class basic_istream : virtual public basic_ios<_CharT, _Traits> 27002: { 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef typename _Traits::int_type int_type; 27002: typedef typename _Traits::pos_type pos_type; 27002: typedef typename _Traits::off_type off_type; 27002: typedef _Traits traits_type; 27002: 27002: 27002: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 27002: typedef basic_ios<_CharT, _Traits> __ios_type; 27002: typedef basic_istream<_CharT, _Traits> __istream_type; 27002: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 27002: __num_get_type; 27002: typedef ctype<_CharT> __ctype_type; 27002: 27002: protected: 27002: 27002: 27002: 27002: 27002: 27002: streamsize _M_gcount; 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: basic_istream(__streambuf_type* __sb) 27002: : _M_gcount(streamsize(0)) 27002: { this->init(__sb); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual 27002: ~basic_istream() 27002: { _M_gcount = streamsize(0); } 27002: 27002: 27002: class sentry; 27002: friend class sentry; 27002: # 119 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: operator>>(__istream_type& (*__pf)(__istream_type&)) 27002: { return __pf(*this); } 27002: 27002: __istream_type& 27002: operator>>(__ios_type& (*__pf)(__ios_type&)) 27002: { 27002: __pf(*this); 27002: return *this; 27002: } 27002: 27002: __istream_type& 27002: operator>>(ios_base& (*__pf)(ios_base&)) 27002: { 27002: __pf(*this); 27002: return *this; 27002: } 27002: # 167 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: operator>>(bool& __n) 27002: { return _M_extract(__n); } 27002: 27002: __istream_type& 27002: operator>>(short& __n); 27002: 27002: __istream_type& 27002: operator>>(unsigned short& __n) 27002: { return _M_extract(__n); } 27002: 27002: __istream_type& 27002: operator>>(int& __n); 27002: 27002: __istream_type& 27002: operator>>(unsigned int& __n) 27002: { return _M_extract(__n); } 27002: 27002: __istream_type& 27002: operator>>(long& __n) 27002: { return _M_extract(__n); } 27002: 27002: __istream_type& 27002: operator>>(unsigned long& __n) 27002: { return _M_extract(__n); } 27002: 27002: 27002: __istream_type& 27002: operator>>(long long& __n) 27002: { return _M_extract(__n); } 27002: 27002: __istream_type& 27002: operator>>(unsigned long long& __n) 27002: { return _M_extract(__n); } 27002: # 213 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: operator>>(float& __f) 27002: { return _M_extract(__f); } 27002: 27002: __istream_type& 27002: operator>>(double& __f) 27002: { return _M_extract(__f); } 27002: 27002: __istream_type& 27002: operator>>(long double& __f) 27002: { return _M_extract(__f); } 27002: # 234 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: operator>>(void*& __p) 27002: { return _M_extract(__p); } 27002: # 258 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: operator>>(__streambuf_type* __sb); 27002: # 268 "/usr/include/c++/12/istream" 3 27002: streamsize 27002: gcount() const 27002: { return _M_gcount; } 27002: # 301 "/usr/include/c++/12/istream" 3 27002: int_type 27002: get(); 27002: # 315 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: get(char_type& __c); 27002: # 342 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: get(char_type* __s, streamsize __n, char_type __delim); 27002: # 353 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: get(char_type* __s, streamsize __n) 27002: { return this->get(__s, __n, this->widen('\n')); } 27002: # 376 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: get(__streambuf_type& __sb, char_type __delim); 27002: # 386 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: get(__streambuf_type& __sb) 27002: { return this->get(__sb, this->widen('\n')); } 27002: # 415 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: getline(char_type* __s, streamsize __n, char_type __delim); 27002: # 426 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: getline(char_type* __s, streamsize __n) 27002: { return this->getline(__s, __n, this->widen('\n')); } 27002: # 450 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: ignore(streamsize __n, int_type __delim); 27002: 27002: __istream_type& 27002: ignore(streamsize __n); 27002: 27002: __istream_type& 27002: ignore(); 27002: # 467 "/usr/include/c++/12/istream" 3 27002: int_type 27002: peek(); 27002: # 485 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: read(char_type* __s, streamsize __n); 27002: # 504 "/usr/include/c++/12/istream" 3 27002: streamsize 27002: readsome(char_type* __s, streamsize __n); 27002: # 521 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: putback(char_type __c); 27002: # 537 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: unget(); 27002: # 555 "/usr/include/c++/12/istream" 3 27002: int 27002: sync(); 27002: # 570 "/usr/include/c++/12/istream" 3 27002: pos_type 27002: tellg(); 27002: # 585 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: seekg(pos_type); 27002: # 601 "/usr/include/c++/12/istream" 3 27002: __istream_type& 27002: seekg(off_type, ios_base::seekdir); 27002: 27002: 27002: protected: 27002: basic_istream() 27002: : _M_gcount(streamsize(0)) 27002: { this->init(0); } 27002: 27002: 27002: basic_istream(const basic_istream&) = delete; 27002: 27002: basic_istream(basic_istream&& __rhs) 27002: : __ios_type(), _M_gcount(__rhs._M_gcount) 27002: { 27002: __ios_type::move(__rhs); 27002: __rhs._M_gcount = 0; 27002: } 27002: 27002: 27002: 27002: basic_istream& operator=(const basic_istream&) = delete; 27002: 27002: basic_istream& 27002: operator=(basic_istream&& __rhs) 27002: { 27002: swap(__rhs); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(basic_istream& __rhs) 27002: { 27002: __ios_type::swap(__rhs); 27002: std::swap(_M_gcount, __rhs._M_gcount); 27002: } 27002: 27002: 27002: template 27002: __istream_type& 27002: _M_extract(_ValueT& __v); 27002: }; 27002: 27002: 27002: template<> 27002: basic_istream& 27002: basic_istream:: 27002: getline(char_type* __s, streamsize __n, char_type __delim); 27002: 27002: template<> 27002: basic_istream& 27002: basic_istream:: 27002: ignore(streamsize __n); 27002: 27002: template<> 27002: basic_istream& 27002: basic_istream:: 27002: ignore(streamsize __n, int_type __delim); 27002: 27002: 27002: template<> 27002: basic_istream& 27002: basic_istream:: 27002: getline(char_type* __s, streamsize __n, char_type __delim); 27002: 27002: template<> 27002: basic_istream& 27002: basic_istream:: 27002: ignore(streamsize __n); 27002: 27002: template<> 27002: basic_istream& 27002: basic_istream:: 27002: ignore(streamsize __n, int_type __delim); 27002: # 685 "/usr/include/c++/12/istream" 3 27002: template 27002: class basic_istream<_CharT, _Traits>::sentry 27002: { 27002: 27002: bool _M_ok; 27002: 27002: public: 27002: 27002: typedef _Traits traits_type; 27002: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 27002: typedef basic_istream<_CharT, _Traits> __istream_type; 27002: typedef typename __istream_type::__ctype_type __ctype_type; 27002: typedef typename _Traits::int_type __int_type; 27002: # 721 "/usr/include/c++/12/istream" 3 27002: explicit 27002: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 27002: # 732 "/usr/include/c++/12/istream" 3 27002: explicit 27002: 27002: operator bool() const 27002: { return _M_ok; } 27002: }; 27002: # 750 "/usr/include/c++/12/istream" 3 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 27002: 27002: template 27002: inline basic_istream& 27002: operator>>(basic_istream& __in, unsigned char& __c) 27002: { return (__in >> reinterpret_cast(__c)); } 27002: 27002: template 27002: inline basic_istream& 27002: operator>>(basic_istream& __in, signed char& __c) 27002: { return (__in >> reinterpret_cast(__c)); } 27002: 27002: 27002: 27002: template 27002: void 27002: __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); 27002: 27002: void __istream_extract(istream&, char*, streamsize); 27002: # 800 "/usr/include/c++/12/istream" 3 27002: template 27002: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 27002: inline basic_istream<_CharT, _Traits>& 27002: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 27002: { 27002: 27002: 27002: 27002: size_t __n = __builtin_object_size(__s, 0); 27002: if (__n < sizeof(_CharT)) 27002: { 27002: 27002: do { if (std::__is_constant_evaluated() && !bool(__n >= sizeof(_CharT))) __builtin_unreachable(); } while (false); 27002: 27002: __in.width(0); 27002: __in.setstate(ios_base::failbit); 27002: } 27002: else if (__n != (size_t)-1) 27002: { 27002: __n /= sizeof(_CharT); 27002: streamsize __w = __in.width(); 27002: std::__istream_extract(__in, __s, __n); 27002: if (__in.good() && (__w <= 0 || __n < __w)) 27002: { 27002: 27002: 27002: const typename _Traits::int_type __c = __in.rdbuf()->sgetc(); 27002: const bool __eof = _Traits::eq_int_type(__c, _Traits::eof()); 27002: if (__builtin_expect(__eof, true)) 27002: __in.setstate(ios_base::eofbit); 27002: } 27002: } 27002: else 27002: 27002: { 27002: 27002: streamsize __n = __gnu_cxx::__numeric_traits::__max; 27002: __n /= sizeof(_CharT); 27002: std::__istream_extract(__in, __s, __n); 27002: } 27002: return __in; 27002: } 27002: 27002: template 27002: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 27002: inline basic_istream& 27002: operator>>(basic_istream& __in, unsigned char* __s) 27002: { return __in >> reinterpret_cast(__s); } 27002: 27002: template 27002: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 27002: inline basic_istream& 27002: operator>>(basic_istream& __in, signed char* __s) 27002: { return __in >> reinterpret_cast(__s); } 27002: # 889 "/usr/include/c++/12/istream" 3 27002: template 27002: class basic_iostream 27002: : public basic_istream<_CharT, _Traits>, 27002: public basic_ostream<_CharT, _Traits> 27002: { 27002: public: 27002: 27002: 27002: 27002: typedef _CharT char_type; 27002: typedef typename _Traits::int_type int_type; 27002: typedef typename _Traits::pos_type pos_type; 27002: typedef typename _Traits::off_type off_type; 27002: typedef _Traits traits_type; 27002: 27002: 27002: typedef basic_istream<_CharT, _Traits> __istream_type; 27002: typedef basic_ostream<_CharT, _Traits> __ostream_type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 27002: : __istream_type(__sb), __ostream_type(__sb) { } 27002: 27002: 27002: 27002: 27002: virtual 27002: ~basic_iostream() { } 27002: 27002: protected: 27002: basic_iostream() 27002: : __istream_type(), __ostream_type() { } 27002: 27002: 27002: basic_iostream(const basic_iostream&) = delete; 27002: 27002: basic_iostream(basic_iostream&& __rhs) 27002: : __istream_type(std::move(__rhs)), __ostream_type(*this) 27002: { } 27002: 27002: 27002: 27002: basic_iostream& operator=(const basic_iostream&) = delete; 27002: 27002: basic_iostream& 27002: operator=(basic_iostream&& __rhs) 27002: { 27002: swap(__rhs); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(basic_iostream& __rhs) 27002: { __istream_type::swap(__rhs); } 27002: 27002: }; 27002: # 972 "/usr/include/c++/12/istream" 3 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: ws(basic_istream<_CharT, _Traits>& __is); 27002: # 988 "/usr/include/c++/12/istream" 3 27002: template, 27002: typename = decltype(std::declval<_Is&>() >> std::declval<_Tp>())> 27002: using __rvalue_stream_extraction_t = _Is&&; 27002: # 1004 "/usr/include/c++/12/istream" 3 27002: template 27002: inline __rvalue_stream_extraction_t<_Istream, _Tp> 27002: operator>>(_Istream&& __is, _Tp&& __x) 27002: { 27002: __is >> std::forward<_Tp>(__x); 27002: return std::move(__is); 27002: } 27002: 27002: 27002: 27002: } 27002: 27002: # 1 "/usr/include/c++/12/bits/istream.tcc" 1 3 27002: # 37 "/usr/include/c++/12/bits/istream.tcc" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/istream.tcc" 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: basic_istream<_CharT, _Traits>::sentry:: 27002: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: if (__in.good()) 27002: { 27002: try 27002: { 27002: if (__in.tie()) 27002: __in.tie()->flush(); 27002: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 27002: { 27002: const __int_type __eof = traits_type::eof(); 27002: __streambuf_type* __sb = __in.rdbuf(); 27002: __int_type __c = __sb->sgetc(); 27002: 27002: const __ctype_type& __ct = __check_facet(__in._M_ctype); 27002: while (!traits_type::eq_int_type(__c, __eof) 27002: && __ct.is(ctype_base::space, 27002: traits_type::to_char_type(__c))) 27002: __c = __sb->snextc(); 27002: 27002: 27002: 27002: 27002: if (traits_type::eq_int_type(__c, __eof)) 27002: __err |= ios_base::eofbit; 27002: } 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: __in._M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { __in._M_setstate(ios_base::badbit); } 27002: } 27002: 27002: if (__in.good() && __err == ios_base::goodbit) 27002: _M_ok = true; 27002: else 27002: { 27002: __err |= ios_base::failbit; 27002: __in.setstate(__err); 27002: } 27002: } 27002: 27002: template 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: _M_extract(_ValueT& __v) 27002: { 27002: sentry __cerb(*this, false); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: const __num_get_type& __ng = __check_facet(this->_M_num_get); 27002: __ng.get(*this, 0, *this, __err, __v); 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: operator>>(short& __n) 27002: { 27002: 27002: 27002: sentry __cerb(*this, false); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: long __l; 27002: const __num_get_type& __ng = __check_facet(this->_M_num_get); 27002: __ng.get(*this, 0, *this, __err, __l); 27002: 27002: 27002: 27002: if (__l < __gnu_cxx::__numeric_traits::__min) 27002: { 27002: __err |= ios_base::failbit; 27002: __n = __gnu_cxx::__numeric_traits::__min; 27002: } 27002: else if (__l > __gnu_cxx::__numeric_traits::__max) 27002: { 27002: __err |= ios_base::failbit; 27002: __n = __gnu_cxx::__numeric_traits::__max; 27002: } 27002: else 27002: __n = short(__l); 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: operator>>(int& __n) 27002: { 27002: 27002: 27002: sentry __cerb(*this, false); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: long __l; 27002: const __num_get_type& __ng = __check_facet(this->_M_num_get); 27002: __ng.get(*this, 0, *this, __err, __l); 27002: 27002: 27002: 27002: if (__l < __gnu_cxx::__numeric_traits::__min) 27002: { 27002: __err |= ios_base::failbit; 27002: __n = __gnu_cxx::__numeric_traits::__min; 27002: } 27002: else if (__l > __gnu_cxx::__numeric_traits::__max) 27002: { 27002: __err |= ios_base::failbit; 27002: __n = __gnu_cxx::__numeric_traits::__max; 27002: } 27002: else 27002: __n = int(__l); 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: operator>>(__streambuf_type* __sbout) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: sentry __cerb(*this, false); 27002: if (__cerb && __sbout) 27002: { 27002: try 27002: { 27002: bool __ineof; 27002: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 27002: __err |= ios_base::failbit; 27002: if (__ineof) 27002: __err |= ios_base::eofbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::failbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::failbit); } 27002: } 27002: else if (!__sbout) 27002: __err |= ios_base::failbit; 27002: if (__err) 27002: this->setstate(__err); 27002: return *this; 27002: } 27002: 27002: template 27002: typename basic_istream<_CharT, _Traits>::int_type 27002: basic_istream<_CharT, _Traits>:: 27002: get(void) 27002: { 27002: const int_type __eof = traits_type::eof(); 27002: int_type __c = __eof; 27002: _M_gcount = 0; 27002: ios_base::iostate __err = ios_base::goodbit; 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: try 27002: { 27002: __c = this->rdbuf()->sbumpc(); 27002: 27002: if (!traits_type::eq_int_type(__c, __eof)) 27002: _M_gcount = 1; 27002: else 27002: __err |= ios_base::eofbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: } 27002: if (!_M_gcount) 27002: __err |= ios_base::failbit; 27002: if (__err) 27002: this->setstate(__err); 27002: return __c; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: get(char_type& __c) 27002: { 27002: _M_gcount = 0; 27002: ios_base::iostate __err = ios_base::goodbit; 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: try 27002: { 27002: const int_type __cb = this->rdbuf()->sbumpc(); 27002: 27002: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 27002: { 27002: _M_gcount = 1; 27002: __c = traits_type::to_char_type(__cb); 27002: } 27002: else 27002: __err |= ios_base::eofbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: } 27002: if (!_M_gcount) 27002: __err |= ios_base::failbit; 27002: if (__err) 27002: this->setstate(__err); 27002: return *this; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: get(char_type* __s, streamsize __n, char_type __delim) 27002: { 27002: _M_gcount = 0; 27002: ios_base::iostate __err = ios_base::goodbit; 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: try 27002: { 27002: const int_type __idelim = traits_type::to_int_type(__delim); 27002: const int_type __eof = traits_type::eof(); 27002: __streambuf_type* __sb = this->rdbuf(); 27002: int_type __c = __sb->sgetc(); 27002: 27002: while (_M_gcount + 1 < __n 27002: && !traits_type::eq_int_type(__c, __eof) 27002: && !traits_type::eq_int_type(__c, __idelim)) 27002: { 27002: *__s++ = traits_type::to_char_type(__c); 27002: ++_M_gcount; 27002: __c = __sb->snextc(); 27002: } 27002: if (traits_type::eq_int_type(__c, __eof)) 27002: __err |= ios_base::eofbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: } 27002: 27002: 27002: if (__n > 0) 27002: *__s = char_type(); 27002: if (!_M_gcount) 27002: __err |= ios_base::failbit; 27002: if (__err) 27002: this->setstate(__err); 27002: return *this; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: get(__streambuf_type& __sb, char_type __delim) 27002: { 27002: _M_gcount = 0; 27002: ios_base::iostate __err = ios_base::goodbit; 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: try 27002: { 27002: const int_type __idelim = traits_type::to_int_type(__delim); 27002: const int_type __eof = traits_type::eof(); 27002: __streambuf_type* __this_sb = this->rdbuf(); 27002: int_type __c = __this_sb->sgetc(); 27002: char_type __c2 = traits_type::to_char_type(__c); 27002: unsigned long long __gcount = 0; 27002: 27002: while (!traits_type::eq_int_type(__c, __eof) 27002: && !traits_type::eq_int_type(__c, __idelim) 27002: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 27002: { 27002: ++__gcount; 27002: __c = __this_sb->snextc(); 27002: __c2 = traits_type::to_char_type(__c); 27002: } 27002: if (traits_type::eq_int_type(__c, __eof)) 27002: __err |= ios_base::eofbit; 27002: 27002: 27002: if (__gcount <= __gnu_cxx::__numeric_traits::__max) 27002: _M_gcount = __gcount; 27002: else 27002: _M_gcount = __gnu_cxx::__numeric_traits::__max; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: } 27002: if (!_M_gcount) 27002: __err |= ios_base::failbit; 27002: if (__err) 27002: this->setstate(__err); 27002: return *this; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: getline(char_type* __s, streamsize __n, char_type __delim) 27002: { 27002: _M_gcount = 0; 27002: ios_base::iostate __err = ios_base::goodbit; 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: try 27002: { 27002: const int_type __idelim = traits_type::to_int_type(__delim); 27002: const int_type __eof = traits_type::eof(); 27002: __streambuf_type* __sb = this->rdbuf(); 27002: int_type __c = __sb->sgetc(); 27002: 27002: while (_M_gcount + 1 < __n 27002: && !traits_type::eq_int_type(__c, __eof) 27002: && !traits_type::eq_int_type(__c, __idelim)) 27002: { 27002: *__s++ = traits_type::to_char_type(__c); 27002: __c = __sb->snextc(); 27002: ++_M_gcount; 27002: } 27002: if (traits_type::eq_int_type(__c, __eof)) 27002: __err |= ios_base::eofbit; 27002: else 27002: { 27002: if (traits_type::eq_int_type(__c, __idelim)) 27002: { 27002: __sb->sbumpc(); 27002: ++_M_gcount; 27002: } 27002: else 27002: __err |= ios_base::failbit; 27002: } 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: } 27002: 27002: 27002: if (__n > 0) 27002: *__s = char_type(); 27002: if (!_M_gcount) 27002: __err |= ios_base::failbit; 27002: if (__err) 27002: this->setstate(__err); 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: ignore(void) 27002: { 27002: _M_gcount = 0; 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: const int_type __eof = traits_type::eof(); 27002: __streambuf_type* __sb = this->rdbuf(); 27002: 27002: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 27002: __err |= ios_base::eofbit; 27002: else 27002: _M_gcount = 1; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: ignore(streamsize __n) 27002: { 27002: _M_gcount = 0; 27002: sentry __cerb(*this, true); 27002: if (__cerb && __n > 0) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: const int_type __eof = traits_type::eof(); 27002: __streambuf_type* __sb = this->rdbuf(); 27002: int_type __c = __sb->sgetc(); 27002: # 530 "/usr/include/c++/12/bits/istream.tcc" 3 27002: bool __large_ignore = false; 27002: while (true) 27002: { 27002: while (_M_gcount < __n 27002: && !traits_type::eq_int_type(__c, __eof)) 27002: { 27002: ++_M_gcount; 27002: __c = __sb->snextc(); 27002: } 27002: if (__n == __gnu_cxx::__numeric_traits::__max 27002: && !traits_type::eq_int_type(__c, __eof)) 27002: { 27002: _M_gcount = 27002: __gnu_cxx::__numeric_traits::__min; 27002: __large_ignore = true; 27002: } 27002: else 27002: break; 27002: } 27002: 27002: if (__n == __gnu_cxx::__numeric_traits::__max) 27002: { 27002: if (__large_ignore) 27002: _M_gcount = __gnu_cxx::__numeric_traits::__max; 27002: 27002: if (traits_type::eq_int_type(__c, __eof)) 27002: __err |= ios_base::eofbit; 27002: } 27002: else if (_M_gcount < __n) 27002: { 27002: if (traits_type::eq_int_type(__c, __eof)) 27002: __err |= ios_base::eofbit; 27002: } 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: ignore(streamsize __n, int_type __delim) 27002: { 27002: _M_gcount = 0; 27002: sentry __cerb(*this, true); 27002: if (__cerb && __n > 0) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: const int_type __eof = traits_type::eof(); 27002: __streambuf_type* __sb = this->rdbuf(); 27002: int_type __c = __sb->sgetc(); 27002: 27002: 27002: bool __large_ignore = false; 27002: while (true) 27002: { 27002: while (_M_gcount < __n 27002: && !traits_type::eq_int_type(__c, __eof) 27002: && !traits_type::eq_int_type(__c, __delim)) 27002: { 27002: ++_M_gcount; 27002: __c = __sb->snextc(); 27002: } 27002: if (__n == __gnu_cxx::__numeric_traits::__max 27002: && !traits_type::eq_int_type(__c, __eof) 27002: && !traits_type::eq_int_type(__c, __delim)) 27002: { 27002: _M_gcount = 27002: __gnu_cxx::__numeric_traits::__min; 27002: __large_ignore = true; 27002: } 27002: else 27002: break; 27002: } 27002: 27002: if (__n == __gnu_cxx::__numeric_traits::__max) 27002: { 27002: if (__large_ignore) 27002: _M_gcount = __gnu_cxx::__numeric_traits::__max; 27002: 27002: if (traits_type::eq_int_type(__c, __eof)) 27002: __err |= ios_base::eofbit; 27002: else 27002: { 27002: if (_M_gcount != __n) 27002: ++_M_gcount; 27002: __sb->sbumpc(); 27002: } 27002: } 27002: else if (_M_gcount < __n) 27002: { 27002: if (traits_type::eq_int_type(__c, __eof)) 27002: __err |= ios_base::eofbit; 27002: else 27002: { 27002: ++_M_gcount; 27002: __sb->sbumpc(); 27002: } 27002: } 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: typename basic_istream<_CharT, _Traits>::int_type 27002: basic_istream<_CharT, _Traits>:: 27002: peek(void) 27002: { 27002: int_type __c = traits_type::eof(); 27002: _M_gcount = 0; 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: __c = this->rdbuf()->sgetc(); 27002: if (traits_type::eq_int_type(__c, traits_type::eof())) 27002: __err |= ios_base::eofbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return __c; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: read(char_type* __s, streamsize __n) 27002: { 27002: _M_gcount = 0; 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: _M_gcount = this->rdbuf()->sgetn(__s, __n); 27002: if (_M_gcount != __n) 27002: __err |= (ios_base::eofbit | ios_base::failbit); 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: streamsize 27002: basic_istream<_CharT, _Traits>:: 27002: readsome(char_type* __s, streamsize __n) 27002: { 27002: _M_gcount = 0; 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: 27002: const streamsize __num = this->rdbuf()->in_avail(); 27002: if (__num > 0) 27002: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 27002: else if (__num == -1) 27002: __err |= ios_base::eofbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return _M_gcount; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: putback(char_type __c) 27002: { 27002: 27002: 27002: _M_gcount = 0; 27002: 27002: this->clear(this->rdstate() & ~ios_base::eofbit); 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: const int_type __eof = traits_type::eof(); 27002: __streambuf_type* __sb = this->rdbuf(); 27002: if (!__sb 27002: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 27002: __err |= ios_base::badbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: unget(void) 27002: { 27002: 27002: 27002: _M_gcount = 0; 27002: 27002: this->clear(this->rdstate() & ~ios_base::eofbit); 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: const int_type __eof = traits_type::eof(); 27002: __streambuf_type* __sb = this->rdbuf(); 27002: if (!__sb 27002: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 27002: __err |= ios_base::badbit; 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: int 27002: basic_istream<_CharT, _Traits>:: 27002: sync(void) 27002: { 27002: 27002: 27002: int __ret = -1; 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: __streambuf_type* __sb = this->rdbuf(); 27002: if (__sb) 27002: { 27002: if (__sb->pubsync() == -1) 27002: __err |= ios_base::badbit; 27002: else 27002: __ret = 0; 27002: } 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: typename basic_istream<_CharT, _Traits>::pos_type 27002: basic_istream<_CharT, _Traits>:: 27002: tellg(void) 27002: { 27002: 27002: 27002: pos_type __ret = pos_type(-1); 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: try 27002: { 27002: if (!this->fail()) 27002: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 27002: ios_base::in); 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: seekg(pos_type __pos) 27002: { 27002: 27002: 27002: 27002: this->clear(this->rdstate() & ~ios_base::eofbit); 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: if (!this->fail()) 27002: { 27002: 27002: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 27002: ios_base::in); 27002: 27002: 27002: if (__p == pos_type(off_type(-1))) 27002: __err |= ios_base::failbit; 27002: } 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: basic_istream<_CharT, _Traits>:: 27002: seekg(off_type __off, ios_base::seekdir __dir) 27002: { 27002: 27002: 27002: 27002: this->clear(this->rdstate() & ~ios_base::eofbit); 27002: sentry __cerb(*this, true); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: if (!this->fail()) 27002: { 27002: 27002: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 27002: ios_base::in); 27002: 27002: 27002: if (__p == pos_type(off_type(-1))) 27002: __err |= ios_base::failbit; 27002: } 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: this->_M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { this->_M_setstate(ios_base::badbit); } 27002: if (__err) 27002: this->setstate(__err); 27002: } 27002: return *this; 27002: } 27002: 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 27002: { 27002: typedef basic_istream<_CharT, _Traits> __istream_type; 27002: typedef typename __istream_type::int_type __int_type; 27002: 27002: typename __istream_type::sentry __cerb(__in, false); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: const __int_type __cb = __in.rdbuf()->sbumpc(); 27002: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 27002: __c = _Traits::to_char_type(__cb); 27002: else 27002: __err |= (ios_base::eofbit | ios_base::failbit); 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: __in._M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { __in._M_setstate(ios_base::badbit); } 27002: if (__err) 27002: __in.setstate(__err); 27002: } 27002: return __in; 27002: } 27002: 27002: template 27002: void 27002: __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, 27002: streamsize __num) 27002: { 27002: typedef basic_istream<_CharT, _Traits> __istream_type; 27002: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 27002: typedef typename _Traits::int_type int_type; 27002: typedef _CharT char_type; 27002: typedef ctype<_CharT> __ctype_type; 27002: 27002: streamsize __extracted = 0; 27002: ios_base::iostate __err = ios_base::goodbit; 27002: typename __istream_type::sentry __cerb(__in, false); 27002: if (__cerb) 27002: { 27002: try 27002: { 27002: 27002: streamsize __width = __in.width(); 27002: if (0 < __width && __width < __num) 27002: __num = __width; 27002: 27002: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 27002: 27002: const int_type __eof = _Traits::eof(); 27002: __streambuf_type* __sb = __in.rdbuf(); 27002: int_type __c = __sb->sgetc(); 27002: 27002: while (__extracted < __num - 1 27002: && !_Traits::eq_int_type(__c, __eof) 27002: && !__ct.is(ctype_base::space, 27002: _Traits::to_char_type(__c))) 27002: { 27002: *__s++ = _Traits::to_char_type(__c); 27002: ++__extracted; 27002: __c = __sb->snextc(); 27002: } 27002: 27002: if (__extracted < __num - 1 27002: && _Traits::eq_int_type(__c, __eof)) 27002: __err |= ios_base::eofbit; 27002: 27002: 27002: 27002: *__s = char_type(); 27002: __in.width(0); 27002: } 27002: catch(__cxxabiv1::__forced_unwind&) 27002: { 27002: __in._M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { __in._M_setstate(ios_base::badbit); } 27002: } 27002: if (!__extracted) 27002: __err |= ios_base::failbit; 27002: if (__err) 27002: __in.setstate(__err); 27002: } 27002: 27002: 27002: template 27002: basic_istream<_CharT, _Traits>& 27002: ws(basic_istream<_CharT, _Traits>& __in) 27002: { 27002: typedef basic_istream<_CharT, _Traits> __istream_type; 27002: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 27002: typedef typename __istream_type::int_type __int_type; 27002: typedef ctype<_CharT> __ctype_type; 27002: 27002: 27002: 27002: typename __istream_type::sentry __cerb(__in, true); 27002: if (__cerb) 27002: { 27002: ios_base::iostate __err = ios_base::goodbit; 27002: try 27002: { 27002: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 27002: const __int_type __eof = _Traits::eof(); 27002: __streambuf_type* __sb = __in.rdbuf(); 27002: __int_type __c = __sb->sgetc(); 27002: 27002: while (true) 27002: { 27002: if (_Traits::eq_int_type(__c, __eof)) 27002: { 27002: __err = ios_base::eofbit; 27002: break; 27002: } 27002: if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) 27002: break; 27002: __c = __sb->snextc(); 27002: } 27002: } 27002: catch(const __cxxabiv1::__forced_unwind&) 27002: { 27002: __in._M_setstate(ios_base::badbit); 27002: throw; 27002: } 27002: catch(...) 27002: { 27002: __in._M_setstate(ios_base::badbit); 27002: } 27002: if (__err) 27002: __in.setstate(__err); 27002: } 27002: return __in; 27002: } 27002: 27002: 27002: 27002: 27002: extern template class basic_istream; 27002: extern template istream& ws(istream&); 27002: extern template istream& operator>>(istream&, char&); 27002: extern template istream& operator>>(istream&, unsigned char&); 27002: extern template istream& operator>>(istream&, signed char&); 27002: 27002: extern template istream& istream::_M_extract(unsigned short&); 27002: extern template istream& istream::_M_extract(unsigned int&); 27002: extern template istream& istream::_M_extract(long&); 27002: extern template istream& istream::_M_extract(unsigned long&); 27002: extern template istream& istream::_M_extract(bool&); 27002: 27002: extern template istream& istream::_M_extract(long long&); 27002: extern template istream& istream::_M_extract(unsigned long long&); 27002: 27002: extern template istream& istream::_M_extract(float&); 27002: extern template istream& istream::_M_extract(double&); 27002: extern template istream& istream::_M_extract(long double&); 27002: extern template istream& istream::_M_extract(void*&); 27002: 27002: extern template class basic_iostream; 27002: 27002: 27002: extern template class basic_istream; 27002: extern template wistream& ws(wistream&); 27002: extern template wistream& operator>>(wistream&, wchar_t&); 27002: extern template void __istream_extract(wistream&, wchar_t*, streamsize); 27002: 27002: extern template wistream& wistream::_M_extract(unsigned short&); 27002: extern template wistream& wistream::_M_extract(unsigned int&); 27002: extern template wistream& wistream::_M_extract(long&); 27002: extern template wistream& wistream::_M_extract(unsigned long&); 27002: extern template wistream& wistream::_M_extract(bool&); 27002: 27002: extern template wistream& wistream::_M_extract(long long&); 27002: extern template wistream& wistream::_M_extract(unsigned long long&); 27002: 27002: extern template wistream& wistream::_M_extract(float&); 27002: extern template wistream& wistream::_M_extract(double&); 27002: extern template wistream& wistream::_M_extract(long double&); 27002: extern template wistream& wistream::_M_extract(void*&); 27002: 27002: extern template class basic_iostream; 27002: 27002: 27002: 27002: 27002: } 27002: # 1017 "/usr/include/c++/12/istream" 2 3 27002: # 39 "/usr/include/c++/12/sstream" 2 3 27002: # 48 "/usr/include/c++/12/sstream" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: namespace __cxx11 { 27002: # 71 "/usr/include/c++/12/sstream" 3 27002: template 27002: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 27002: { 27002: struct __xfer_bufptrs; 27002: 27002: 27002: using allocator_traits = std::allocator_traits<_Alloc>; 27002: using _Noexcept_swap 27002: = __or_; 27002: 27002: 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: 27002: 27002: typedef _Alloc allocator_type; 27002: typedef typename traits_type::int_type int_type; 27002: typedef typename traits_type::pos_type pos_type; 27002: typedef typename traits_type::off_type off_type; 27002: 27002: typedef basic_streambuf __streambuf_type; 27002: typedef basic_string __string_type; 27002: typedef typename __string_type::size_type __size_type; 27002: 27002: protected: 27002: 27002: ios_base::openmode _M_mode; 27002: 27002: 27002: __string_type _M_string; 27002: 27002: public: 27002: # 114 "/usr/include/c++/12/sstream" 3 27002: basic_stringbuf() 27002: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 27002: { } 27002: # 125 "/usr/include/c++/12/sstream" 3 27002: explicit 27002: basic_stringbuf(ios_base::openmode __mode) 27002: : __streambuf_type(), _M_mode(__mode), _M_string() 27002: { } 27002: # 138 "/usr/include/c++/12/sstream" 3 27002: explicit 27002: basic_stringbuf(const __string_type& __str, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out) 27002: : __streambuf_type(), _M_mode(), 27002: _M_string(__str.data(), __str.size(), __str.get_allocator()) 27002: { _M_stringbuf_init(__mode); } 27002: 27002: 27002: basic_stringbuf(const basic_stringbuf&) = delete; 27002: 27002: basic_stringbuf(basic_stringbuf&& __rhs) 27002: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 27002: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 27002: # 202 "/usr/include/c++/12/sstream" 3 27002: basic_stringbuf& 27002: operator=(const basic_stringbuf&) = delete; 27002: 27002: basic_stringbuf& 27002: operator=(basic_stringbuf&& __rhs) 27002: { 27002: __xfer_bufptrs __st{__rhs, this}; 27002: const __streambuf_type& __base = __rhs; 27002: __streambuf_type::operator=(__base); 27002: this->pubimbue(__rhs.getloc()); 27002: _M_mode = __rhs._M_mode; 27002: _M_string = std::move(__rhs._M_string); 27002: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) 27002: { 27002: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 27002: __xfer_bufptrs __r_st{__rhs, this}; 27002: __streambuf_type& __base = __rhs; 27002: __streambuf_type::swap(__base); 27002: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 27002: std::swap(_M_mode, __rhs._M_mode); 27002: std::swap(_M_string, __rhs._M_string); 27002: } 27002: # 241 "/usr/include/c++/12/sstream" 3 27002: __string_type 27002: str() const 27002: { 27002: __string_type __ret(_M_string.get_allocator()); 27002: if (char_type* __hi = _M_high_mark()) 27002: __ret.assign(this->pbase(), __hi); 27002: else 27002: __ret = _M_string; 27002: return __ret; 27002: } 27002: # 294 "/usr/include/c++/12/sstream" 3 27002: void 27002: str(const __string_type& __s) 27002: { 27002: 27002: 27002: _M_string.assign(__s.data(), __s.size()); 27002: _M_stringbuf_init(_M_mode); 27002: } 27002: # 323 "/usr/include/c++/12/sstream" 3 27002: protected: 27002: 27002: void 27002: _M_stringbuf_init(ios_base::openmode __mode) 27002: { 27002: _M_mode = __mode; 27002: __size_type __len = 0; 27002: if (_M_mode & (ios_base::ate | ios_base::app)) 27002: __len = _M_string.size(); 27002: _M_sync(const_cast(_M_string.data()), 0, __len); 27002: } 27002: 27002: virtual streamsize 27002: showmanyc() 27002: { 27002: streamsize __ret = -1; 27002: if (_M_mode & ios_base::in) 27002: { 27002: _M_update_egptr(); 27002: __ret = this->egptr() - this->gptr(); 27002: } 27002: return __ret; 27002: } 27002: 27002: virtual int_type 27002: underflow(); 27002: 27002: virtual int_type 27002: pbackfail(int_type __c = traits_type::eof()); 27002: 27002: virtual int_type 27002: overflow(int_type __c = traits_type::eof()); 27002: # 367 "/usr/include/c++/12/sstream" 3 27002: virtual __streambuf_type* 27002: setbuf(char_type* __s, streamsize __n) 27002: { 27002: if (__s && __n >= 0) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: _M_string.clear(); 27002: 27002: 27002: _M_sync(__s, __n, 0); 27002: } 27002: return this; 27002: } 27002: 27002: virtual pos_type 27002: seekoff(off_type __off, ios_base::seekdir __way, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out); 27002: 27002: virtual pos_type 27002: seekpos(pos_type __sp, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out); 27002: 27002: 27002: 27002: 27002: void 27002: _M_sync(char_type* __base, __size_type __i, __size_type __o); 27002: 27002: 27002: 27002: void 27002: _M_update_egptr() 27002: { 27002: if (char_type* __pptr = this->pptr()) 27002: { 27002: char_type* __egptr = this->egptr(); 27002: if (!__egptr || __pptr > __egptr) 27002: { 27002: if (_M_mode & ios_base::in) 27002: this->setg(this->eback(), this->gptr(), __pptr); 27002: else 27002: this->setg(__pptr, __pptr, __pptr); 27002: } 27002: } 27002: } 27002: 27002: 27002: 27002: void 27002: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 27002: 27002: private: 27002: 27002: 27002: 27002: 27002: __attribute__((__always_inline__)) 27002: char_type* 27002: _M_high_mark() const noexcept 27002: { 27002: if (char_type* __pptr = this->pptr()) 27002: { 27002: char_type* __egptr = this->egptr(); 27002: if (!__egptr || __pptr > __egptr) 27002: return __pptr; 27002: else 27002: return __egptr; 27002: } 27002: return 0; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: struct __xfer_bufptrs 27002: { 27002: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 27002: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 27002: { 27002: const _CharT* const __str = __from._M_string.data(); 27002: const _CharT* __end = nullptr; 27002: if (__from.eback()) 27002: { 27002: _M_goff[0] = __from.eback() - __str; 27002: _M_goff[1] = __from.gptr() - __str; 27002: _M_goff[2] = __from.egptr() - __str; 27002: __end = __from.egptr(); 27002: } 27002: if (__from.pbase()) 27002: { 27002: _M_poff[0] = __from.pbase() - __str; 27002: _M_poff[1] = __from.pptr() - __from.pbase(); 27002: _M_poff[2] = __from.epptr() - __str; 27002: if (!__end || __from.pptr() > __end) 27002: __end = __from.pptr(); 27002: } 27002: 27002: 27002: if (__end) 27002: { 27002: 27002: 27002: auto& __mut_from = const_cast(__from); 27002: __mut_from._M_string._M_length(__end - __str); 27002: } 27002: } 27002: 27002: ~__xfer_bufptrs() 27002: { 27002: char_type* __str = const_cast(_M_to->_M_string.data()); 27002: if (_M_goff[0] != -1) 27002: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 27002: if (_M_poff[0] != -1) 27002: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 27002: } 27002: 27002: basic_stringbuf* _M_to; 27002: off_type _M_goff[3]; 27002: off_type _M_poff[3]; 27002: }; 27002: # 503 "/usr/include/c++/12/sstream" 3 27002: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 27002: : __streambuf_type(static_cast(__rhs)), 27002: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 27002: { } 27002: # 518 "/usr/include/c++/12/sstream" 3 27002: }; 27002: # 536 "/usr/include/c++/12/sstream" 3 27002: template 27002: class basic_istringstream : public basic_istream<_CharT, _Traits> 27002: { 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: 27002: 27002: typedef _Alloc allocator_type; 27002: typedef typename traits_type::int_type int_type; 27002: typedef typename traits_type::pos_type pos_type; 27002: typedef typename traits_type::off_type off_type; 27002: 27002: 27002: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 27002: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 27002: typedef basic_istream __istream_type; 27002: 27002: private: 27002: __stringbuf_type _M_stringbuf; 27002: 27002: public: 27002: # 570 "/usr/include/c++/12/sstream" 3 27002: basic_istringstream() 27002: : __istream_type(), _M_stringbuf(ios_base::in) 27002: { this->init(&_M_stringbuf); } 27002: # 586 "/usr/include/c++/12/sstream" 3 27002: explicit 27002: basic_istringstream(ios_base::openmode __mode) 27002: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 27002: { this->init(&_M_stringbuf); } 27002: # 604 "/usr/include/c++/12/sstream" 3 27002: explicit 27002: basic_istringstream(const __string_type& __str, 27002: ios_base::openmode __mode = ios_base::in) 27002: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 27002: { this->init(&_M_stringbuf); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ~basic_istringstream() 27002: { } 27002: 27002: 27002: basic_istringstream(const basic_istringstream&) = delete; 27002: 27002: basic_istringstream(basic_istringstream&& __rhs) 27002: : __istream_type(std::move(__rhs)), 27002: _M_stringbuf(std::move(__rhs._M_stringbuf)) 27002: { __istream_type::set_rdbuf(&_M_stringbuf); } 27002: # 661 "/usr/include/c++/12/sstream" 3 27002: basic_istringstream& 27002: operator=(const basic_istringstream&) = delete; 27002: 27002: basic_istringstream& 27002: operator=(basic_istringstream&& __rhs) 27002: { 27002: __istream_type::operator=(std::move(__rhs)); 27002: _M_stringbuf = std::move(__rhs._M_stringbuf); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(basic_istringstream& __rhs) 27002: { 27002: __istream_type::swap(__rhs); 27002: _M_stringbuf.swap(__rhs._M_stringbuf); 27002: } 27002: # 687 "/usr/include/c++/12/sstream" 3 27002: __stringbuf_type* 27002: rdbuf() const 27002: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 27002: 27002: 27002: 27002: 27002: 27002: __string_type 27002: str() const 27002: { return _M_stringbuf.str(); } 27002: # 722 "/usr/include/c++/12/sstream" 3 27002: void 27002: str(const __string_type& __s) 27002: { _M_stringbuf.str(__s); } 27002: # 739 "/usr/include/c++/12/sstream" 3 27002: }; 27002: # 757 "/usr/include/c++/12/sstream" 3 27002: template 27002: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 27002: { 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: 27002: 27002: typedef _Alloc allocator_type; 27002: typedef typename traits_type::int_type int_type; 27002: typedef typename traits_type::pos_type pos_type; 27002: typedef typename traits_type::off_type off_type; 27002: 27002: 27002: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 27002: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 27002: typedef basic_ostream __ostream_type; 27002: 27002: private: 27002: __stringbuf_type _M_stringbuf; 27002: 27002: public: 27002: # 791 "/usr/include/c++/12/sstream" 3 27002: basic_ostringstream() 27002: : __ostream_type(), _M_stringbuf(ios_base::out) 27002: { this->init(&_M_stringbuf); } 27002: # 807 "/usr/include/c++/12/sstream" 3 27002: explicit 27002: basic_ostringstream(ios_base::openmode __mode) 27002: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 27002: { this->init(&_M_stringbuf); } 27002: # 825 "/usr/include/c++/12/sstream" 3 27002: explicit 27002: basic_ostringstream(const __string_type& __str, 27002: ios_base::openmode __mode = ios_base::out) 27002: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 27002: { this->init(&_M_stringbuf); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ~basic_ostringstream() 27002: { } 27002: 27002: 27002: basic_ostringstream(const basic_ostringstream&) = delete; 27002: 27002: basic_ostringstream(basic_ostringstream&& __rhs) 27002: : __ostream_type(std::move(__rhs)), 27002: _M_stringbuf(std::move(__rhs._M_stringbuf)) 27002: { __ostream_type::set_rdbuf(&_M_stringbuf); } 27002: # 882 "/usr/include/c++/12/sstream" 3 27002: basic_ostringstream& 27002: operator=(const basic_ostringstream&) = delete; 27002: 27002: basic_ostringstream& 27002: operator=(basic_ostringstream&& __rhs) 27002: { 27002: __ostream_type::operator=(std::move(__rhs)); 27002: _M_stringbuf = std::move(__rhs._M_stringbuf); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(basic_ostringstream& __rhs) 27002: { 27002: __ostream_type::swap(__rhs); 27002: _M_stringbuf.swap(__rhs._M_stringbuf); 27002: } 27002: # 908 "/usr/include/c++/12/sstream" 3 27002: __stringbuf_type* 27002: rdbuf() const 27002: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 27002: 27002: 27002: 27002: 27002: 27002: __string_type 27002: str() const 27002: { return _M_stringbuf.str(); } 27002: # 943 "/usr/include/c++/12/sstream" 3 27002: void 27002: str(const __string_type& __s) 27002: { _M_stringbuf.str(__s); } 27002: # 960 "/usr/include/c++/12/sstream" 3 27002: }; 27002: # 978 "/usr/include/c++/12/sstream" 3 27002: template 27002: class basic_stringstream : public basic_iostream<_CharT, _Traits> 27002: { 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: 27002: 27002: typedef _Alloc allocator_type; 27002: typedef typename traits_type::int_type int_type; 27002: typedef typename traits_type::pos_type pos_type; 27002: typedef typename traits_type::off_type off_type; 27002: 27002: 27002: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 27002: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 27002: typedef basic_iostream __iostream_type; 27002: 27002: private: 27002: __stringbuf_type _M_stringbuf; 27002: 27002: public: 27002: # 1012 "/usr/include/c++/12/sstream" 3 27002: basic_stringstream() 27002: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 27002: { this->init(&_M_stringbuf); } 27002: # 1026 "/usr/include/c++/12/sstream" 3 27002: explicit 27002: basic_stringstream(ios_base::openmode __m) 27002: : __iostream_type(), _M_stringbuf(__m) 27002: { this->init(&_M_stringbuf); } 27002: # 1042 "/usr/include/c++/12/sstream" 3 27002: explicit 27002: basic_stringstream(const __string_type& __str, 27002: ios_base::openmode __m = ios_base::out | ios_base::in) 27002: : __iostream_type(), _M_stringbuf(__str, __m) 27002: { this->init(&_M_stringbuf); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ~basic_stringstream() 27002: { } 27002: 27002: 27002: basic_stringstream(const basic_stringstream&) = delete; 27002: 27002: basic_stringstream(basic_stringstream&& __rhs) 27002: : __iostream_type(std::move(__rhs)), 27002: _M_stringbuf(std::move(__rhs._M_stringbuf)) 27002: { __iostream_type::set_rdbuf(&_M_stringbuf); } 27002: # 1101 "/usr/include/c++/12/sstream" 3 27002: basic_stringstream& 27002: operator=(const basic_stringstream&) = delete; 27002: 27002: basic_stringstream& 27002: operator=(basic_stringstream&& __rhs) 27002: { 27002: __iostream_type::operator=(std::move(__rhs)); 27002: _M_stringbuf = std::move(__rhs._M_stringbuf); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(basic_stringstream& __rhs) 27002: { 27002: __iostream_type::swap(__rhs); 27002: _M_stringbuf.swap(__rhs._M_stringbuf); 27002: } 27002: # 1127 "/usr/include/c++/12/sstream" 3 27002: __stringbuf_type* 27002: rdbuf() const 27002: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 27002: 27002: 27002: 27002: 27002: 27002: __string_type 27002: str() const 27002: { return _M_stringbuf.str(); } 27002: # 1162 "/usr/include/c++/12/sstream" 3 27002: void 27002: str(const __string_type& __s) 27002: { _M_stringbuf.str(__s); } 27002: # 1179 "/usr/include/c++/12/sstream" 3 27002: }; 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 27002: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 27002: noexcept(noexcept(__x.swap(__y))) 27002: { __x.swap(__y); } 27002: 27002: 27002: template 27002: inline void 27002: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 27002: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 27002: { __x.swap(__y); } 27002: 27002: 27002: template 27002: inline void 27002: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 27002: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 27002: { __x.swap(__y); } 27002: 27002: 27002: template 27002: inline void 27002: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 27002: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 27002: { __x.swap(__y); } 27002: 27002: 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/sstream.tcc" 1 3 27002: # 37 "/usr/include/c++/12/bits/sstream.tcc" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/sstream.tcc" 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 27002: basic_stringbuf<_CharT, _Traits, _Alloc>:: 27002: pbackfail(int_type __c) 27002: { 27002: int_type __ret = traits_type::eof(); 27002: if (this->eback() < this->gptr()) 27002: { 27002: 27002: 27002: const bool __testeof = traits_type::eq_int_type(__c, __ret); 27002: if (!__testeof) 27002: { 27002: const bool __testeq = traits_type::eq(traits_type:: 27002: to_char_type(__c), 27002: this->gptr()[-1]); 27002: const bool __testout = this->_M_mode & ios_base::out; 27002: if (__testeq || __testout) 27002: { 27002: this->gbump(-1); 27002: if (!__testeq) 27002: *this->gptr() = traits_type::to_char_type(__c); 27002: __ret = __c; 27002: } 27002: } 27002: else 27002: { 27002: this->gbump(-1); 27002: __ret = traits_type::not_eof(__c); 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 27002: basic_stringbuf<_CharT, _Traits, _Alloc>:: 27002: overflow(int_type __c) 27002: { 27002: const bool __testout = this->_M_mode & ios_base::out; 27002: if (__builtin_expect(!__testout, false)) 27002: return traits_type::eof(); 27002: 27002: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 27002: if (__builtin_expect(__testeof, false)) 27002: return traits_type::not_eof(__c); 27002: 27002: const __size_type __capacity = _M_string.capacity(); 27002: 27002: 27002: if (size_t(this->epptr() - this->pbase()) < __capacity) 27002: { 27002: 27002: char_type* __base = const_cast(_M_string.data()); 27002: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 27002: if (_M_mode & ios_base::in) 27002: { 27002: const __size_type __nget = this->gptr() - this->eback(); 27002: const __size_type __eget = this->egptr() - this->eback(); 27002: this->setg(__base, __base + __nget, __base + __eget + 1); 27002: } 27002: *this->pptr() = traits_type::to_char_type(__c); 27002: this->pbump(1); 27002: return __c; 27002: } 27002: 27002: 27002: const __size_type __max_size = _M_string.max_size(); 27002: const bool __testput = this->pptr() < this->epptr(); 27002: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 27002: return traits_type::eof(); 27002: 27002: 27002: 27002: const char_type __conv = traits_type::to_char_type(__c); 27002: if (!__testput) 27002: { 27002: # 129 "/usr/include/c++/12/bits/sstream.tcc" 3 27002: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 27002: __size_type(512)); 27002: const __size_type __len = std::min(__opt_len, __max_size); 27002: __string_type __tmp(_M_string.get_allocator()); 27002: __tmp.reserve(__len); 27002: if (this->pbase()) 27002: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 27002: __tmp.push_back(__conv); 27002: _M_string.swap(__tmp); 27002: _M_sync(const_cast(_M_string.data()), 27002: this->gptr() - this->eback(), this->pptr() - this->pbase()); 27002: } 27002: else 27002: *this->pptr() = __conv; 27002: this->pbump(1); 27002: return __c; 27002: } 27002: 27002: template 27002: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 27002: basic_stringbuf<_CharT, _Traits, _Alloc>:: 27002: underflow() 27002: { 27002: int_type __ret = traits_type::eof(); 27002: const bool __testin = this->_M_mode & ios_base::in; 27002: if (__testin) 27002: { 27002: 27002: _M_update_egptr(); 27002: 27002: if (this->gptr() < this->egptr()) 27002: __ret = traits_type::to_int_type(*this->gptr()); 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 27002: basic_stringbuf<_CharT, _Traits, _Alloc>:: 27002: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 27002: { 27002: pos_type __ret = pos_type(off_type(-1)); 27002: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 27002: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 27002: const bool __testboth = __testin && __testout && __way != ios_base::cur; 27002: __testin &= !(__mode & ios_base::out); 27002: __testout &= !(__mode & ios_base::in); 27002: 27002: 27002: 27002: const char_type* __beg = __testin ? this->eback() : this->pbase(); 27002: if ((__beg || !__off) && (__testin || __testout || __testboth)) 27002: { 27002: _M_update_egptr(); 27002: 27002: off_type __newoffi = __off; 27002: off_type __newoffo = __newoffi; 27002: if (__way == ios_base::cur) 27002: { 27002: __newoffi += this->gptr() - __beg; 27002: __newoffo += this->pptr() - __beg; 27002: } 27002: else if (__way == ios_base::end) 27002: __newoffo = __newoffi += this->egptr() - __beg; 27002: 27002: if ((__testin || __testboth) 27002: && __newoffi >= 0 27002: && this->egptr() - __beg >= __newoffi) 27002: { 27002: this->setg(this->eback(), this->eback() + __newoffi, 27002: this->egptr()); 27002: __ret = pos_type(__newoffi); 27002: } 27002: if ((__testout || __testboth) 27002: && __newoffo >= 0 27002: && this->egptr() - __beg >= __newoffo) 27002: { 27002: _M_pbump(this->pbase(), this->epptr(), __newoffo); 27002: __ret = pos_type(__newoffo); 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 27002: basic_stringbuf<_CharT, _Traits, _Alloc>:: 27002: seekpos(pos_type __sp, ios_base::openmode __mode) 27002: { 27002: pos_type __ret = pos_type(off_type(-1)); 27002: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 27002: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 27002: 27002: const char_type* __beg = __testin ? this->eback() : this->pbase(); 27002: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 27002: { 27002: _M_update_egptr(); 27002: 27002: const off_type __pos(__sp); 27002: const bool __testpos = (0 <= __pos 27002: && __pos <= this->egptr() - __beg); 27002: if (__testpos) 27002: { 27002: if (__testin) 27002: this->setg(this->eback(), this->eback() + __pos, 27002: this->egptr()); 27002: if (__testout) 27002: _M_pbump(this->pbase(), this->epptr(), __pos); 27002: __ret = __sp; 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: void 27002: basic_stringbuf<_CharT, _Traits, _Alloc>:: 27002: _M_sync(char_type* __base, __size_type __i, __size_type __o) 27002: { 27002: const bool __testin = _M_mode & ios_base::in; 27002: const bool __testout = _M_mode & ios_base::out; 27002: char_type* __endg = __base + _M_string.size(); 27002: char_type* __endp = __base + _M_string.capacity(); 27002: 27002: if (__base != _M_string.data()) 27002: { 27002: 27002: __endg += __i; 27002: __i = 0; 27002: __endp = __endg; 27002: } 27002: 27002: if (__testin) 27002: this->setg(__base, __base + __i, __endg); 27002: if (__testout) 27002: { 27002: _M_pbump(__base, __endp, __o); 27002: 27002: 27002: 27002: if (!__testin) 27002: this->setg(__endg, __endg, __endg); 27002: } 27002: } 27002: 27002: template 27002: void 27002: basic_stringbuf<_CharT, _Traits, _Alloc>:: 27002: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 27002: { 27002: this->setp(__pbeg, __pend); 27002: while (__off > __gnu_cxx::__numeric_traits::__max) 27002: { 27002: this->pbump(__gnu_cxx::__numeric_traits::__max); 27002: __off -= __gnu_cxx::__numeric_traits::__max; 27002: } 27002: this->pbump(__off); 27002: } 27002: 27002: 27002: 27002: 27002: extern template class basic_stringbuf; 27002: extern template class basic_istringstream; 27002: extern template class basic_ostringstream; 27002: extern template class basic_stringstream; 27002: 27002: 27002: extern template class basic_stringbuf; 27002: extern template class basic_istringstream; 27002: extern template class basic_ostringstream; 27002: extern template class basic_stringstream; 27002: 27002: 27002: 27002: 27002: } 27002: # 1219 "/usr/include/c++/12/sstream" 2 3 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 2 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 1 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cstdarg" 1 3 27002: # 39 "/usr/include/c++/12/cstdarg" 3 27002: 27002: # 40 "/usr/include/c++/12/cstdarg" 3 27002: # 23 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 2 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 1 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: 27002: # 31 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: 27002: # 31 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: namespace rocksdb { 27002: 27002: 27002: class Cache; 27002: class FilterPolicy; 27002: class FlushBlockPolicyFactory; 27002: class PersistentCache; 27002: class RandomAccessFile; 27002: struct TableReaderOptions; 27002: struct TableBuilderOptions; 27002: class TableBuilder; 27002: class TableFactory; 27002: class TableReader; 27002: class WritableFileWriter; 27002: struct ConfigOptions; 27002: struct EnvOptions; 27002: 27002: 27002: 27002: 27002: enum ChecksumType : char { 27002: kNoChecksum = 0x0, 27002: kCRC32c = 0x1, 27002: kxxHash = 0x2, 27002: kxxHash64 = 0x3, 27002: kXXH3 = 0x4, 27002: }; 27002: 27002: 27002: 27002: 27002: enum class PinningTier { 27002: 27002: 27002: 27002: 27002: kFallback, 27002: 27002: 27002: kNone, 27002: 27002: 27002: 27002: 27002: 27002: 27002: kFlushedAndSimilar, 27002: 27002: 27002: kAll, 27002: }; 27002: 27002: 27002: 27002: struct MetadataCacheOptions { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: PinningTier top_level_index_pinning = PinningTier::kFallback; 27002: 27002: 27002: 27002: PinningTier partition_pinning = PinningTier::kFallback; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: PinningTier unpartitioned_pinning = PinningTier::kFallback; 27002: }; 27002: 27002: struct CacheEntryRoleOptions { 27002: enum class Decision { 27002: kEnabled, 27002: kDisabled, 27002: kFallback, 27002: }; 27002: Decision charged = Decision::kFallback; 27002: bool operator==(const CacheEntryRoleOptions& other) const { 27002: return charged == other.charged; 27002: } 27002: }; 27002: 27002: struct CacheUsageOptions { 27002: CacheEntryRoleOptions options; 27002: std::map options_overrides; 27002: }; 27002: 27002: 27002: struct BlockBasedTableOptions { 27002: static const char* kName() { return "BlockTableOptions"; }; 27002: 27002: 27002: 27002: 27002: 27002: std::shared_ptr flush_block_policy_factory; 27002: # 146 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: bool cache_index_and_filter_blocks = false; 27002: 27002: 27002: 27002: 27002: 27002: bool cache_index_and_filter_blocks_with_high_priority = true; 27002: # 175 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: bool pin_l0_filter_and_index_blocks_in_cache = false; 27002: # 197 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: bool pin_top_level_index_and_filter = true; 27002: 27002: 27002: 27002: 27002: 27002: MetadataCacheOptions metadata_cache_options; 27002: 27002: 27002: enum IndexType : char { 27002: 27002: 27002: kBinarySearch = 0x00, 27002: 27002: 27002: 27002: kHashSearch = 0x01, 27002: 27002: 27002: 27002: 27002: kTwoLevelIndexSearch = 0x02, 27002: # 231 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: kBinarySearchWithFirstKey = 0x03, 27002: }; 27002: 27002: IndexType index_type = kBinarySearch; 27002: 27002: 27002: enum DataBlockIndexType : char { 27002: kDataBlockBinarySearch = 0, 27002: kDataBlockBinaryAndHash = 1, 27002: }; 27002: 27002: DataBlockIndexType data_block_index_type = kDataBlockBinarySearch; 27002: 27002: 27002: 27002: double data_block_hash_table_util_ratio = 0.75; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ChecksumType checksum = kXXH3; 27002: 27002: 27002: 27002: 27002: bool no_block_cache = false; 27002: 27002: 27002: 27002: std::shared_ptr block_cache = nullptr; 27002: 27002: 27002: 27002: std::shared_ptr persistent_cache = nullptr; 27002: 27002: 27002: 27002: 27002: 27002: std::shared_ptr block_cache_compressed = nullptr; 27002: 27002: 27002: 27002: 27002: 27002: uint64_t block_size = 4 * 1024; 27002: 27002: 27002: 27002: 27002: 27002: 27002: int block_size_deviation = 10; 27002: 27002: 27002: 27002: 27002: 27002: int block_restart_interval = 16; 27002: 27002: 27002: int index_block_restart_interval = 1; 27002: # 306 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: uint64_t metadata_block_size = 4096; 27002: # 394 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: CacheUsageOptions cache_usage_options; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool partition_filters = false; 27002: # 437 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: bool optimize_filters_for_memory = false; 27002: 27002: 27002: 27002: 27002: 27002: bool use_delta_encoding = true; 27002: 27002: 27002: 27002: 27002: std::shared_ptr filter_policy = nullptr; 27002: 27002: 27002: 27002: bool whole_key_filtering = true; 27002: # 466 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: bool detect_filter_construct_corruption = false; 27002: 27002: 27002: 27002: 27002: bool verify_compression = false; 27002: # 494 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: uint32_t read_amp_bytes_per_bit = 0; 27002: # 521 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: uint32_t format_version = 5; 27002: 27002: 27002: 27002: 27002: bool enable_index_compression = true; 27002: 27002: 27002: bool block_align = false; 27002: # 553 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: enum class IndexShorteningMode : char { 27002: 27002: kNoShortening, 27002: 27002: 27002: kShortenSeparators, 27002: 27002: kShortenSeparatorsAndSuccessor, 27002: }; 27002: 27002: IndexShorteningMode index_shortening = 27002: IndexShorteningMode::kShortenSeparators; 27002: # 592 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: size_t max_auto_readahead_size = 256 * 1024; 27002: # 606 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: enum class PrepopulateBlockCache : char { 27002: 27002: kDisable, 27002: 27002: kFlushOnly, 27002: }; 27002: 27002: PrepopulateBlockCache prepopulate_block_cache = 27002: PrepopulateBlockCache::kDisable; 27002: # 643 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: size_t initial_auto_readahead_size = 8 * 1024; 27002: # 663 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: uint64_t num_file_reads_for_auto_readahead = 2; 27002: }; 27002: 27002: 27002: struct BlockBasedTablePropertyNames { 27002: 27002: static const std::string kIndexType; 27002: 27002: static const std::string kWholeKeyFiltering; 27002: 27002: static const std::string kPrefixFiltering; 27002: }; 27002: 27002: 27002: extern TableFactory* NewBlockBasedTableFactory( 27002: const BlockBasedTableOptions& table_options = BlockBasedTableOptions()); 27002: 27002: 27002: 27002: enum EncodingType : char { 27002: 27002: kPlain, 27002: # 696 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: kPrefix, 27002: }; 27002: 27002: 27002: struct PlainTablePropertyNames { 27002: static const std::string kEncodingType; 27002: static const std::string kBloomVersion; 27002: static const std::string kNumBloomBlocks; 27002: }; 27002: 27002: const uint32_t kPlainTableVariableLength = 0; 27002: 27002: struct PlainTableOptions { 27002: static const char* kName() { return "PlainTableOptions"; }; 27002: 27002: 27002: 27002: 27002: uint32_t user_key_len = kPlainTableVariableLength; 27002: 27002: 27002: 27002: int bloom_bits_per_key = 10; 27002: 27002: 27002: 27002: 27002: 27002: double hash_table_ratio = 0.75; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t index_sparseness = 16; 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t huge_page_tlb_size = 0; 27002: # 749 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: EncodingType encoding_type = kPlain; 27002: 27002: 27002: 27002: bool full_scan_mode = false; 27002: 27002: 27002: 27002: 27002: bool store_index_in_file = false; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern TableFactory* NewPlainTableFactory( 27002: const PlainTableOptions& options = PlainTableOptions()); 27002: 27002: struct CuckooTablePropertyNames { 27002: 27002: static const std::string kEmptyKey; 27002: 27002: static const std::string kValueLength; 27002: 27002: static const std::string kNumHashFunc; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kCuckooBlockSize; 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kHashTableSize; 27002: 27002: 27002: static const std::string kIsLastLevel; 27002: 27002: static const std::string kIdentityAsFirstHash; 27002: 27002: static const std::string kUseModuleHash; 27002: 27002: static const std::string kUserKeyLength; 27002: }; 27002: 27002: struct CuckooTableOptions { 27002: static const char* kName() { return "CuckooTableOptions"; }; 27002: 27002: 27002: 27002: double hash_table_ratio = 0.9; 27002: 27002: 27002: 27002: 27002: 27002: uint32_t max_search_depth = 100; 27002: 27002: 27002: 27002: 27002: 27002: uint32_t cuckoo_block_size = 5; 27002: 27002: 27002: 27002: 27002: bool identity_as_first_hash = false; 27002: 27002: 27002: 27002: 27002: 27002: bool use_module_hash = true; 27002: }; 27002: 27002: 27002: extern TableFactory* NewCuckooTableFactory( 27002: const CuckooTableOptions& table_options = CuckooTableOptions()); 27002: 27002: 27002: 27002: class RandomAccessFileReader; 27002: 27002: 27002: class TableFactory : public Customizable { 27002: public: 27002: virtual ~TableFactory() override {} 27002: 27002: static const char* kBlockCacheOpts() { return "BlockCache"; }; 27002: static const char* kBlockBasedTableName() { return "BlockBasedTable"; }; 27002: static const char* kPlainTableName() { return "PlainTable"; } 27002: static const char* kCuckooTableName() { return "CuckooTable"; }; 27002: 27002: 27002: static Status CreateFromString(const ConfigOptions& config_options, 27002: const std::string& id, 27002: std::shared_ptr* factory); 27002: 27002: static const char* Type() { return "TableFactory"; } 27002: # 875 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: virtual Status NewTableReader( 27002: const TableReaderOptions& table_reader_options, 27002: std::unique_ptr&& file, uint64_t file_size, 27002: std::unique_ptr* table_reader, 27002: bool prefetch_index_and_filter_in_cache = true) const { 27002: ReadOptions ro; 27002: return NewTableReader(ro, table_reader_options, std::move(file), file_size, 27002: table_reader, prefetch_index_and_filter_in_cache); 27002: } 27002: 27002: 27002: 27002: virtual Status NewTableReader( 27002: const ReadOptions& ro, const TableReaderOptions& table_reader_options, 27002: std::unique_ptr&& file, uint64_t file_size, 27002: std::unique_ptr* table_reader, 27002: bool prefetch_index_and_filter_in_cache) const = 0; 27002: # 911 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: virtual TableBuilder* NewTableBuilder( 27002: const TableBuilderOptions& table_builder_options, 27002: WritableFileWriter* file) const = 0; 27002: 27002: 27002: virtual bool IsDeleteRangeSupported() const { return false; } 27002: }; 27002: # 929 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table.h" 27002: extern TableFactory* NewAdaptiveTableFactory( 27002: std::shared_ptr table_factory_to_write = nullptr, 27002: std::shared_ptr block_based_table_factory = nullptr, 27002: std::shared_ptr plain_table_factory = nullptr, 27002: std::shared_ptr cuckoo_table_factory = nullptr); 27002: 27002: 27002: 27002: } 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class FileLock; 27002: class FSDirectory; 27002: class FSRandomAccessFile; 27002: class FSRandomRWFile; 27002: class FSSequentialFile; 27002: class FSWritableFile; 27002: class Logger; 27002: class Slice; 27002: struct ImmutableDBOptions; 27002: struct MutableDBOptions; 27002: class RateLimiter; 27002: struct ConfigOptions; 27002: 27002: using AccessPattern = RandomAccessFile::AccessPattern; 27002: using FileAttributes = Env::FileAttributes; 27002: 27002: 27002: 27002: 27002: 27002: 27002: enum class IOPriority : uint8_t { 27002: kIOLow, 27002: kIOHigh, 27002: kIOTotal, 27002: }; 27002: 27002: 27002: 27002: 27002: enum class IOType : uint8_t { 27002: kData, 27002: kFilter, 27002: kIndex, 27002: kMetadata, 27002: kWAL, 27002: kManifest, 27002: kLog, 27002: kUnknown, 27002: kInvalid, 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: struct IOOptions { 27002: 27002: std::chrono::microseconds timeout; 27002: 27002: 27002: 27002: IOPriority prio; 27002: 27002: 27002: 27002: 27002: 27002: Env::IOPriority rate_limiter_priority; 27002: 27002: 27002: IOType type; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: std::unordered_map property_bag; 27002: 27002: 27002: 27002: bool force_dir_fsync; 27002: 27002: 27002: 27002: bool do_not_recurse; 27002: 27002: IOOptions() : IOOptions(false) {} 27002: 27002: explicit IOOptions(bool force_dir_fsync_) 27002: : timeout(std::chrono::microseconds::zero()), 27002: prio(IOPriority::kIOLow), 27002: rate_limiter_priority(Env::IO_TOTAL), 27002: type(IOType::kUnknown), 27002: force_dir_fsync(force_dir_fsync_), 27002: do_not_recurse(false) {} 27002: }; 27002: 27002: struct DirFsyncOptions { 27002: enum FsyncReason : uint8_t { 27002: kNewFileSynced, 27002: kFileRenamed, 27002: kDirRenamed, 27002: kFileDeleted, 27002: kDefault, 27002: } reason; 27002: 27002: std::string renamed_new_name; 27002: 27002: 27002: DirFsyncOptions(); 27002: 27002: explicit DirFsyncOptions(std::string file_renamed_new_name); 27002: 27002: explicit DirFsyncOptions(FsyncReason fsync_reason); 27002: }; 27002: 27002: 27002: 27002: 27002: struct FileOptions : EnvOptions { 27002: 27002: 27002: IOOptions io_options; 27002: 27002: 27002: 27002: 27002: 27002: 27002: Temperature temperature = Temperature::kUnknown; 27002: 27002: 27002: 27002: ChecksumType handoff_checksum_type; 27002: 27002: FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {} 27002: 27002: FileOptions(const DBOptions& opts) 27002: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 27002: 27002: FileOptions(const EnvOptions& opts) 27002: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 27002: 27002: FileOptions(const FileOptions& opts) 27002: : EnvOptions(opts), 27002: io_options(opts.io_options), 27002: temperature(opts.temperature), 27002: handoff_checksum_type(opts.handoff_checksum_type) {} 27002: 27002: FileOptions& operator=(const FileOptions&) = default; 27002: }; 27002: 27002: 27002: 27002: struct IODebugContext { 27002: 27002: std::string file_path; 27002: 27002: 27002: std::map counters; 27002: 27002: 27002: std::string msg; 27002: 27002: 27002: std::string request_id; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: enum TraceData : char { 27002: 27002: 27002: 27002: kRequestID = 0, 27002: }; 27002: uint64_t trace_data = 0; 27002: 27002: IODebugContext() {} 27002: 27002: void AddCounter(std::string& name, uint64_t value) { 27002: counters.emplace(name, value); 27002: } 27002: 27002: 27002: 27002: void SetRequestId(const std::string& _request_id) { 27002: request_id = _request_id; 27002: trace_data |= (1 << TraceData::kRequestID); 27002: } 27002: 27002: std::string ToString() { 27002: std::ostringstream ss; 27002: ss << file_path << ", "; 27002: for (auto counter : counters) { 27002: ss << counter.first << " = " << counter.second << ","; 27002: } 27002: ss << msg; 27002: return ss.str(); 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: using IOHandleDeleter = std::function; 27002: # 263 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: class FileSystem : public Customizable { 27002: public: 27002: FileSystem(); 27002: 27002: 27002: FileSystem(const FileSystem&) = delete; 27002: 27002: virtual ~FileSystem(); 27002: 27002: static const char* Type() { return "FileSystem"; } 27002: static const char* kDefaultName() { return "DefaultFileSystem"; } 27002: 27002: 27002: 27002: 27002: static Status Load(const std::string& value, 27002: std::shared_ptr* result); 27002: # 290 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: static Status CreateFromString(const ConfigOptions& options, 27002: const std::string& value, 27002: std::shared_ptr* result); 27002: 27002: 27002: 27002: static std::shared_ptr Default(); 27002: # 313 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual Status RegisterDbPaths(const std::vector& ) { 27002: return Status::OK(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status UnregisterDbPaths(const std::vector& ) { 27002: return Status::OK(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual IOStatus NewSequentialFile(const std::string& fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) = 0; 27002: # 345 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus NewRandomAccessFile( 27002: const std::string& fname, const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) = 0; 27002: 27002: 27002: enum WriteLifeTimeHint { 27002: kWLTHNotSet = 0, 27002: kWLTHNone, 27002: kWLTHShort, 27002: kWLTHMedium, 27002: kWLTHLong, 27002: kWLTHExtreme, 27002: }; 27002: # 367 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus NewWritableFile(const std::string& fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) = 0; 27002: # 380 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus ReopenWritableFile( 27002: const std::string& , const FileOptions& , 27002: std::unique_ptr* , IODebugContext* ) { 27002: return IOStatus::NotSupported("ReopenWritableFile"); 27002: } 27002: 27002: 27002: virtual IOStatus ReuseWritableFile(const std::string& fname, 27002: const std::string& old_fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg); 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual IOStatus NewRandomRWFile(const std::string& , 27002: const FileOptions& , 27002: std::unique_ptr* , 27002: IODebugContext* ) { 27002: return IOStatus::NotSupported( 27002: "RandomRWFile is not implemented in this FileSystem"); 27002: } 27002: 27002: 27002: 27002: 27002: virtual IOStatus NewMemoryMappedFileBuffer( 27002: const std::string& , 27002: std::unique_ptr* ) { 27002: return IOStatus::NotSupported( 27002: "MemoryMappedFileBuffer is not implemented in this FileSystem"); 27002: } 27002: # 423 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus NewDirectory(const std::string& name, 27002: const IOOptions& io_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual IOStatus FileExists(const std::string& fname, 27002: const IOOptions& options, 27002: IODebugContext* dbg) = 0; 27002: # 444 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options, 27002: std::vector* result, 27002: IODebugContext* dbg) = 0; 27002: # 458 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus GetChildrenFileAttributes( 27002: const std::string& dir, const IOOptions& options, 27002: std::vector* result, IODebugContext* dbg) { 27002: 27002: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 27002: (static_cast ( 27002: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: result != nullptr 27002: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: "result != nullptr" 27002: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 27002: , "./include/rocksdb/file_system.h", 461, __extension__ __PRETTY_FUNCTION__)) 27002: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: ; 27002: std::vector child_fnames; 27002: IOStatus s = GetChildren(dir, options, &child_fnames, dbg); 27002: if (!s.ok()) { 27002: return s; 27002: } 27002: result->resize(child_fnames.size()); 27002: size_t result_size = 0; 27002: for (size_t i = 0; i < child_fnames.size(); ++i) { 27002: const std::string path = dir + "/" + child_fnames[i]; 27002: if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes, 27002: dbg)) 27002: .ok()) { 27002: if (FileExists(path, options, dbg).IsNotFound()) { 27002: 27002: continue; 27002: } 27002: return s; 27002: } 27002: (*result)[result_size].name = std::move(child_fnames[i]); 27002: result_size++; 27002: } 27002: result->resize(result_size); 27002: return IOStatus::OK(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual IOStatus DeleteFile(const std::string& fname, 27002: const IOOptions& options, 27002: IODebugContext* dbg) = 0; 27002: 27002: 27002: virtual IOStatus Truncate(const std::string& , size_t , 27002: const IOOptions& , 27002: IODebugContext* ) { 27002: return IOStatus::NotSupported("Truncate is not supported for this FileSystem"); 27002: } 27002: 27002: 27002: virtual IOStatus CreateDir(const std::string& dirname, 27002: const IOOptions& options, IODebugContext* dbg) = 0; 27002: 27002: 27002: 27002: virtual IOStatus CreateDirIfMissing(const std::string& dirname, 27002: const IOOptions& options, 27002: IODebugContext* dbg) = 0; 27002: 27002: 27002: virtual IOStatus DeleteDir(const std::string& dirname, 27002: const IOOptions& options, IODebugContext* dbg) = 0; 27002: 27002: 27002: virtual IOStatus GetFileSize(const std::string& fname, 27002: const IOOptions& options, uint64_t* file_size, 27002: IODebugContext* dbg) = 0; 27002: 27002: 27002: virtual IOStatus GetFileModificationTime(const std::string& fname, 27002: const IOOptions& options, 27002: uint64_t* file_mtime, 27002: IODebugContext* dbg) = 0; 27002: 27002: virtual IOStatus RenameFile(const std::string& src, const std::string& target, 27002: const IOOptions& options, 27002: IODebugContext* dbg) = 0; 27002: 27002: 27002: virtual IOStatus LinkFile(const std::string& , 27002: const std::string& , 27002: const IOOptions& , 27002: IODebugContext* ) { 27002: return IOStatus::NotSupported("LinkFile is not supported for this FileSystem"); 27002: } 27002: 27002: virtual IOStatus NumFileLinks(const std::string& , 27002: const IOOptions& , 27002: uint64_t* , IODebugContext* ) { 27002: return IOStatus::NotSupported( 27002: "Getting number of file links is not supported for this FileSystem"); 27002: } 27002: 27002: virtual IOStatus AreFilesSame(const std::string& , 27002: const std::string& , 27002: const IOOptions& , bool* , 27002: IODebugContext* ) { 27002: return IOStatus::NotSupported("AreFilesSame is not supported for this FileSystem"); 27002: } 27002: # 568 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus LockFile(const std::string& fname, const IOOptions& options, 27002: FileLock** lock, IODebugContext* dbg) = 0; 27002: 27002: 27002: 27002: 27002: virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options, 27002: IODebugContext* dbg) = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 27002: IODebugContext* dbg) = 0; 27002: 27002: 27002: 27002: 27002: virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts, 27002: std::shared_ptr* result, 27002: IODebugContext* dbg); 27002: 27002: 27002: virtual IOStatus GetAbsolutePath(const std::string& db_path, 27002: const IOOptions& options, 27002: std::string* output_path, 27002: IODebugContext* dbg) = 0; 27002: 27002: 27002: 27002: virtual void SanitizeFileOptions(FileOptions* ) const {} 27002: 27002: 27002: 27002: virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const; 27002: 27002: 27002: 27002: 27002: virtual FileOptions OptimizeForManifestRead( 27002: const FileOptions& file_options) const; 27002: 27002: 27002: 27002: 27002: virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options, 27002: const DBOptions& db_options) const; 27002: 27002: 27002: 27002: 27002: 27002: virtual FileOptions OptimizeForManifestWrite( 27002: const FileOptions& file_options) const; 27002: 27002: 27002: 27002: 27002: virtual FileOptions OptimizeForCompactionTableWrite( 27002: const FileOptions& file_options, 27002: const ImmutableDBOptions& immutable_ops) const; 27002: 27002: 27002: 27002: 27002: virtual FileOptions OptimizeForCompactionTableRead( 27002: const FileOptions& file_options, 27002: const ImmutableDBOptions& db_options) const; 27002: 27002: 27002: 27002: 27002: virtual FileOptions OptimizeForBlobFileRead( 27002: const FileOptions& file_options, 27002: const ImmutableDBOptions& db_options) const; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual IOStatus GetFreeSpace(const std::string& , 27002: const IOOptions& , 27002: uint64_t* , 27002: IODebugContext* ) { 27002: return IOStatus::NotSupported("GetFreeSpace"); 27002: } 27002: 27002: virtual IOStatus IsDirectory(const std::string& , 27002: const IOOptions& options, bool* is_dir, 27002: IODebugContext* ) = 0; 27002: # 673 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus Poll(std::vector& , 27002: size_t ) { 27002: return IOStatus::OK(); 27002: } 27002: # 685 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus AbortIO(std::vector& ) { 27002: return IOStatus::OK(); 27002: } 27002: 27002: 27002: 27002: private: 27002: void operator=(const FileSystem&); 27002: }; 27002: 27002: 27002: class FSSequentialFile { 27002: public: 27002: FSSequentialFile() {} 27002: 27002: virtual ~FSSequentialFile() {} 27002: # 714 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result, 27002: char* scratch, IODebugContext* dbg) = 0; 27002: # 724 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus Skip(uint64_t n) = 0; 27002: 27002: 27002: 27002: virtual bool use_direct_io() const { return false; } 27002: 27002: 27002: 27002: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 27002: 27002: 27002: 27002: 27002: virtual IOStatus InvalidateCache(size_t , size_t ) { 27002: return IOStatus::NotSupported("InvalidateCache not supported."); 27002: } 27002: 27002: 27002: 27002: virtual IOStatus PositionedRead(uint64_t , size_t , 27002: const IOOptions& , 27002: Slice* , char* , 27002: IODebugContext* ) { 27002: return IOStatus::NotSupported("PositionedRead"); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: struct FSReadRequest { 27002: 27002: uint64_t offset; 27002: 27002: 27002: 27002: size_t len; 27002: # 777 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: char* scratch; 27002: # 787 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: Slice result; 27002: 27002: 27002: 27002: IOStatus status; 27002: }; 27002: 27002: 27002: class FSRandomAccessFile { 27002: public: 27002: FSRandomAccessFile() {} 27002: 27002: virtual ~FSRandomAccessFile() {} 27002: # 815 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 27002: Slice* result, char* scratch, 27002: IODebugContext* dbg) const = 0; 27002: 27002: 27002: 27002: 27002: virtual IOStatus Prefetch(uint64_t , size_t , 27002: const IOOptions& , 27002: IODebugContext* ) { 27002: return IOStatus::NotSupported("Prefetch"); 27002: } 27002: # 836 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 27002: const IOOptions& options, IODebugContext* dbg) { 27002: 27002: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 27002: (static_cast ( 27002: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: reqs != nullptr 27002: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: "reqs != nullptr" 27002: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 3 4 27002: , "./include/rocksdb/file_system.h", 838, __extension__ __PRETTY_FUNCTION__)) 27002: # 838 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: ; 27002: for (size_t i = 0; i < num_reqs; ++i) { 27002: FSReadRequest& req = reqs[i]; 27002: req.status = 27002: Read(req.offset, req.len, options, &req.result, req.scratch, dbg); 27002: } 27002: return IOStatus::OK(); 27002: } 27002: # 862 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual size_t GetUniqueId(char* , size_t ) const { 27002: return 0; 27002: 27002: }; 27002: 27002: enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed }; 27002: 27002: virtual void Hint(AccessPattern ) {} 27002: 27002: 27002: 27002: virtual bool use_direct_io() const { return false; } 27002: 27002: 27002: 27002: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 27002: 27002: 27002: 27002: 27002: virtual IOStatus InvalidateCache(size_t , size_t ) { 27002: return IOStatus::NotSupported("InvalidateCache not supported."); 27002: } 27002: # 909 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus ReadAsync( 27002: FSReadRequest& req, const IOOptions& opts, 27002: std::function cb, void* cb_arg, 27002: void** , IOHandleDeleter* , IODebugContext* dbg) { 27002: req.status = 27002: Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg); 27002: cb(req, cb_arg); 27002: return IOStatus::OK(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 27002: 27002: 27002: 27002: }; 27002: 27002: 27002: 27002: struct DataVerificationInfo { 27002: 27002: Slice checksum; 27002: }; 27002: 27002: 27002: 27002: 27002: class FSWritableFile { 27002: public: 27002: FSWritableFile() 27002: : last_preallocated_block_(0), 27002: preallocation_block_size_(0), 27002: io_priority_(Env::IO_TOTAL), 27002: write_hint_(Env::WLTH_NOT_SET), 27002: strict_bytes_per_sync_(false) {} 27002: 27002: explicit FSWritableFile(const FileOptions& options) 27002: : last_preallocated_block_(0), 27002: preallocation_block_size_(0), 27002: io_priority_(Env::IO_TOTAL), 27002: write_hint_(Env::WLTH_NOT_SET), 27002: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 27002: 27002: virtual ~FSWritableFile() {} 27002: 27002: 27002: 27002: 27002: virtual IOStatus Append(const Slice& data, const IOOptions& options, 27002: IODebugContext* dbg) = 0; 27002: # 972 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus Append(const Slice& data, const IOOptions& options, 27002: const DataVerificationInfo& , 27002: IODebugContext* dbg) { 27002: return Append(data, options, dbg); 27002: } 27002: # 998 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus PositionedAppend(const Slice& , 27002: uint64_t , 27002: const IOOptions& , 27002: IODebugContext* ) { 27002: return IOStatus::NotSupported("PositionedAppend"); 27002: } 27002: # 1013 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus PositionedAppend( 27002: const Slice& , uint64_t , 27002: const IOOptions& , 27002: const DataVerificationInfo& , 27002: IODebugContext* ) { 27002: return IOStatus::NotSupported("PositionedAppend"); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual IOStatus Truncate(uint64_t , const IOOptions& , 27002: IODebugContext* ) { 27002: return IOStatus::OK(); 27002: } 27002: virtual IOStatus Close(const IOOptions& , 27002: IODebugContext* ) = 0; 27002: 27002: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 27002: virtual IOStatus Sync(const IOOptions& options, 27002: IODebugContext* dbg) = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 27002: return Sync(options, dbg); 27002: } 27002: 27002: 27002: 27002: virtual bool IsSyncThreadSafe() const { return false; } 27002: 27002: 27002: 27002: virtual bool use_direct_io() const { return false; } 27002: 27002: 27002: 27002: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 27002: 27002: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 27002: write_hint_ = hint; 27002: } 27002: # 1073 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 27002: 27002: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 27002: 27002: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 27002: 27002: 27002: 27002: virtual uint64_t GetFileSize(const IOOptions& , 27002: IODebugContext* ) { 27002: return 0; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void SetPreallocationBlockSize(size_t size) { 27002: preallocation_block_size_ = size; 27002: } 27002: 27002: virtual void GetPreallocationStatus(size_t* block_size, 27002: size_t* last_allocated_block) { 27002: *last_allocated_block = last_preallocated_block_; 27002: *block_size = preallocation_block_size_; 27002: } 27002: 27002: 27002: virtual size_t GetUniqueId(char* , size_t ) const { 27002: return 0; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual IOStatus InvalidateCache(size_t , size_t ) { 27002: return IOStatus::NotSupported("InvalidateCache not supported."); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual IOStatus RangeSync(uint64_t , uint64_t , 27002: const IOOptions& options, IODebugContext* dbg) { 27002: if (strict_bytes_per_sync_) { 27002: return Sync(options, dbg); 27002: } 27002: return IOStatus::OK(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 27002: IODebugContext* dbg) { 27002: if (preallocation_block_size_ == 0) { 27002: return; 27002: } 27002: 27002: 27002: 27002: const auto block_size = preallocation_block_size_; 27002: size_t new_last_preallocated_block = 27002: (offset + len + block_size - 1) / block_size; 27002: if (new_last_preallocated_block > last_preallocated_block_) { 27002: size_t num_spanned_blocks = 27002: new_last_preallocated_block - last_preallocated_block_; 27002: Allocate(block_size * last_preallocated_block_, 27002: block_size * num_spanned_blocks, options, dbg) 27002: .PermitUncheckedError(); 27002: last_preallocated_block_ = new_last_preallocated_block; 27002: } 27002: } 27002: 27002: 27002: virtual IOStatus Allocate(uint64_t , uint64_t , 27002: const IOOptions& , 27002: IODebugContext* ) { 27002: return IOStatus::OK(); 27002: } 27002: 27002: 27002: 27002: 27002: protected: 27002: size_t preallocation_block_size() { return preallocation_block_size_; } 27002: 27002: private: 27002: size_t last_preallocated_block_; 27002: size_t preallocation_block_size_; 27002: 27002: FSWritableFile(const FSWritableFile&); 27002: void operator=(const FSWritableFile&); 27002: 27002: protected: 27002: Env::IOPriority io_priority_; 27002: Env::WriteLifeTimeHint write_hint_; 27002: const bool strict_bytes_per_sync_; 27002: }; 27002: 27002: 27002: class FSRandomRWFile { 27002: public: 27002: FSRandomRWFile() {} 27002: 27002: virtual ~FSRandomRWFile() {} 27002: 27002: 27002: 27002: virtual bool use_direct_io() const { return false; } 27002: 27002: 27002: 27002: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 27002: 27002: 27002: 27002: virtual IOStatus Write(uint64_t offset, const Slice& data, 27002: const IOOptions& options, IODebugContext* dbg) = 0; 27002: # 1209 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 27002: Slice* result, char* scratch, 27002: IODebugContext* dbg) const = 0; 27002: 27002: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 27002: 27002: virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; 27002: 27002: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 27002: return Sync(options, dbg); 27002: } 27002: 27002: virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 27002: 27002: 27002: 27002: 27002: 27002: FSRandomRWFile(const RandomRWFile&) = delete; 27002: FSRandomRWFile& operator=(const RandomRWFile&) = delete; 27002: }; 27002: 27002: 27002: 27002: class FSMemoryMappedFileBuffer { 27002: public: 27002: FSMemoryMappedFileBuffer(void* _base, size_t _length) 27002: : base_(_base), length_(_length) {} 27002: 27002: virtual ~FSMemoryMappedFileBuffer() = 0; 27002: 27002: 27002: 27002: FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete; 27002: FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete; 27002: 27002: void* GetBase() const { return base_; } 27002: size_t GetLen() const { return length_; } 27002: 27002: protected: 27002: void* base_; 27002: const size_t length_; 27002: }; 27002: 27002: 27002: 27002: class FSDirectory { 27002: public: 27002: virtual ~FSDirectory() {} 27002: 27002: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0; 27002: 27002: 27002: 27002: 27002: virtual IOStatus FsyncWithDirOptions( 27002: const IOOptions& options, IODebugContext* dbg, 27002: const DirFsyncOptions& ) { 27002: return Fsync(options, dbg); 27002: } 27002: 27002: 27002: virtual IOStatus Close(const IOOptions& , 27002: IODebugContext* ) { 27002: return IOStatus::NotSupported("Close"); 27002: } 27002: 27002: virtual size_t GetUniqueId(char* , size_t ) const { 27002: return 0; 27002: } 27002: 27002: 27002: 27002: }; 27002: # 1321 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/file_system.h" 27002: class FileSystemWrapper : public FileSystem { 27002: public: 27002: 27002: explicit FileSystemWrapper(const std::shared_ptr& t); 27002: ~FileSystemWrapper() override {} 27002: 27002: 27002: FileSystem* target() const { return target_.get(); } 27002: 27002: 27002: IOStatus NewSequentialFile(const std::string& f, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* r, 27002: IODebugContext* dbg) override { 27002: return target_->NewSequentialFile(f, file_opts, r, dbg); 27002: } 27002: IOStatus NewRandomAccessFile(const std::string& f, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* r, 27002: IODebugContext* dbg) override { 27002: return target_->NewRandomAccessFile(f, file_opts, r, dbg); 27002: } 27002: IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts, 27002: std::unique_ptr* r, 27002: IODebugContext* dbg) override { 27002: return target_->NewWritableFile(f, file_opts, r, dbg); 27002: } 27002: IOStatus ReopenWritableFile(const std::string& fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) override { 27002: return target_->ReopenWritableFile(fname, file_opts, result, dbg); 27002: } 27002: IOStatus ReuseWritableFile(const std::string& fname, 27002: const std::string& old_fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* r, 27002: IODebugContext* dbg) override { 27002: return target_->ReuseWritableFile(fname, old_fname, file_opts, r, 27002: dbg); 27002: } 27002: IOStatus NewRandomRWFile(const std::string& fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) override { 27002: return target_->NewRandomRWFile(fname, file_opts, result, dbg); 27002: } 27002: IOStatus NewMemoryMappedFileBuffer( 27002: const std::string& fname, 27002: std::unique_ptr* result) override { 27002: return target_->NewMemoryMappedFileBuffer(fname, result); 27002: } 27002: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) override { 27002: return target_->NewDirectory(name, io_opts, result, dbg); 27002: } 27002: IOStatus FileExists(const std::string& f, const IOOptions& io_opts, 27002: IODebugContext* dbg) override { 27002: return target_->FileExists(f, io_opts, dbg); 27002: } 27002: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 27002: std::vector* r, 27002: IODebugContext* dbg) override { 27002: return target_->GetChildren(dir, io_opts, r, dbg); 27002: } 27002: IOStatus GetChildrenFileAttributes(const std::string& dir, 27002: const IOOptions& options, 27002: std::vector* result, 27002: IODebugContext* dbg) override { 27002: return target_->GetChildrenFileAttributes(dir, options, result, dbg); 27002: } 27002: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->DeleteFile(f, options, dbg); 27002: } 27002: IOStatus Truncate(const std::string& fname, size_t size, 27002: const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Truncate(fname, size, options, dbg); 27002: } 27002: IOStatus CreateDir(const std::string& d, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->CreateDir(d, options, dbg); 27002: } 27002: IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->CreateDirIfMissing(d, options, dbg); 27002: } 27002: IOStatus DeleteDir(const std::string& d, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->DeleteDir(d, options, dbg); 27002: } 27002: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 27002: uint64_t* s, IODebugContext* dbg) override { 27002: return target_->GetFileSize(f, options, s, dbg); 27002: } 27002: 27002: IOStatus GetFileModificationTime(const std::string& fname, 27002: const IOOptions& options, 27002: uint64_t* file_mtime, 27002: IODebugContext* dbg) override { 27002: return target_->GetFileModificationTime(fname, options, file_mtime, dbg); 27002: } 27002: 27002: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 27002: std::string* output_path, 27002: IODebugContext* dbg) override { 27002: return target_->GetAbsolutePath(db_path, options, output_path, dbg); 27002: } 27002: 27002: IOStatus RenameFile(const std::string& s, const std::string& t, 27002: const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->RenameFile(s, t, options, dbg); 27002: } 27002: 27002: IOStatus LinkFile(const std::string& s, const std::string& t, 27002: const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->LinkFile(s, t, options, dbg); 27002: } 27002: 27002: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 27002: uint64_t* count, IODebugContext* dbg) override { 27002: return target_->NumFileLinks(fname, options, count, dbg); 27002: } 27002: 27002: IOStatus AreFilesSame(const std::string& first, const std::string& second, 27002: const IOOptions& options, bool* res, 27002: IODebugContext* dbg) override { 27002: return target_->AreFilesSame(first, second, options, res, dbg); 27002: } 27002: 27002: IOStatus LockFile(const std::string& f, const IOOptions& options, 27002: FileLock** l, IODebugContext* dbg) override { 27002: return target_->LockFile(f, options, l, dbg); 27002: } 27002: 27002: IOStatus UnlockFile(FileLock* l, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->UnlockFile(l, options, dbg); 27002: } 27002: 27002: IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 27002: IODebugContext* dbg) override { 27002: return target_->GetTestDirectory(options, path, dbg); 27002: } 27002: IOStatus NewLogger(const std::string& fname, const IOOptions& options, 27002: std::shared_ptr* result, 27002: IODebugContext* dbg) override { 27002: return target_->NewLogger(fname, options, result, dbg); 27002: } 27002: 27002: void SanitizeFileOptions(FileOptions* opts) const override { 27002: target_->SanitizeFileOptions(opts); 27002: } 27002: 27002: FileOptions OptimizeForLogRead( 27002: const FileOptions& file_options) const override { 27002: return target_->OptimizeForLogRead(file_options); 27002: } 27002: FileOptions OptimizeForManifestRead( 27002: const FileOptions& file_options) const override { 27002: return target_->OptimizeForManifestRead(file_options); 27002: } 27002: FileOptions OptimizeForLogWrite(const FileOptions& file_options, 27002: const DBOptions& db_options) const override { 27002: return target_->OptimizeForLogWrite(file_options, db_options); 27002: } 27002: FileOptions OptimizeForManifestWrite( 27002: const FileOptions& file_options) const override { 27002: return target_->OptimizeForManifestWrite(file_options); 27002: } 27002: FileOptions OptimizeForCompactionTableWrite( 27002: const FileOptions& file_options, 27002: const ImmutableDBOptions& immutable_ops) const override { 27002: return target_->OptimizeForCompactionTableWrite(file_options, 27002: immutable_ops); 27002: } 27002: FileOptions OptimizeForCompactionTableRead( 27002: const FileOptions& file_options, 27002: const ImmutableDBOptions& db_options) const override { 27002: return target_->OptimizeForCompactionTableRead(file_options, db_options); 27002: } 27002: FileOptions OptimizeForBlobFileRead( 27002: const FileOptions& file_options, 27002: const ImmutableDBOptions& db_options) const override { 27002: return target_->OptimizeForBlobFileRead(file_options, db_options); 27002: } 27002: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 27002: uint64_t* diskfree, IODebugContext* dbg) override { 27002: return target_->GetFreeSpace(path, options, diskfree, dbg); 27002: } 27002: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 27002: bool* is_dir, IODebugContext* dbg) override { 27002: return target_->IsDirectory(path, options, is_dir, dbg); 27002: } 27002: 27002: const Customizable* Inner() const override { return target_.get(); } 27002: Status PrepareOptions(const ConfigOptions& options) override; 27002: 27002: std::string SerializeOptions(const ConfigOptions& config_options, 27002: const std::string& header) const override; 27002: 27002: 27002: virtual IOStatus Poll(std::vector& io_handles, 27002: size_t min_completions) override { 27002: return target_->Poll(io_handles, min_completions); 27002: } 27002: 27002: virtual IOStatus AbortIO(std::vector& io_handles) override { 27002: return target_->AbortIO(io_handles); 27002: } 27002: 27002: protected: 27002: std::shared_ptr target_; 27002: }; 27002: 27002: class FSSequentialFileWrapper : public FSSequentialFile { 27002: public: 27002: 27002: 27002: explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {} 27002: 27002: FSSequentialFile* target() const { return target_; } 27002: 27002: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 27002: char* scratch, IODebugContext* dbg) override { 27002: return target_->Read(n, options, result, scratch, dbg); 27002: } 27002: IOStatus Skip(uint64_t n) override { return target_->Skip(n); } 27002: bool use_direct_io() const override { return target_->use_direct_io(); } 27002: size_t GetRequiredBufferAlignment() const override { 27002: return target_->GetRequiredBufferAlignment(); 27002: } 27002: IOStatus InvalidateCache(size_t offset, size_t length) override { 27002: return target_->InvalidateCache(offset, length); 27002: } 27002: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 27002: Slice* result, char* scratch, 27002: IODebugContext* dbg) override { 27002: return target_->PositionedRead(offset, n, options, result, scratch, dbg); 27002: } 27002: Temperature GetTemperature() const override { 27002: return target_->GetTemperature(); 27002: } 27002: 27002: private: 27002: FSSequentialFile* target_; 27002: }; 27002: 27002: class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper { 27002: public: 27002: 27002: 27002: explicit FSSequentialFileOwnerWrapper(std::unique_ptr&& t) 27002: : FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {} 27002: 27002: private: 27002: std::unique_ptr guard_; 27002: }; 27002: 27002: class FSRandomAccessFileWrapper : public FSRandomAccessFile { 27002: public: 27002: 27002: 27002: explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {} 27002: 27002: FSRandomAccessFile* target() const { return target_; } 27002: 27002: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 27002: Slice* result, char* scratch, 27002: IODebugContext* dbg) const override { 27002: return target_->Read(offset, n, options, result, scratch, dbg); 27002: } 27002: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 27002: const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->MultiRead(reqs, num_reqs, options, dbg); 27002: } 27002: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->Prefetch(offset, n, options, dbg); 27002: } 27002: size_t GetUniqueId(char* id, size_t max_size) const override { 27002: return target_->GetUniqueId(id, max_size); 27002: }; 27002: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 27002: bool use_direct_io() const override { return target_->use_direct_io(); } 27002: size_t GetRequiredBufferAlignment() const override { 27002: return target_->GetRequiredBufferAlignment(); 27002: } 27002: IOStatus InvalidateCache(size_t offset, size_t length) override { 27002: return target_->InvalidateCache(offset, length); 27002: } 27002: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 27002: std::function cb, 27002: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 27002: IODebugContext* dbg) override { 27002: return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg); 27002: } 27002: Temperature GetTemperature() const override { 27002: return target_->GetTemperature(); 27002: } 27002: 27002: private: 27002: std::unique_ptr guard_; 27002: FSRandomAccessFile* target_; 27002: }; 27002: 27002: class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper { 27002: public: 27002: 27002: 27002: explicit FSRandomAccessFileOwnerWrapper( 27002: std::unique_ptr&& t) 27002: : FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {} 27002: 27002: private: 27002: std::unique_ptr guard_; 27002: }; 27002: 27002: class FSWritableFileWrapper : public FSWritableFile { 27002: public: 27002: 27002: 27002: explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} 27002: 27002: FSWritableFile* target() const { return target_; } 27002: 27002: IOStatus Append(const Slice& data, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->Append(data, options, dbg); 27002: } 27002: IOStatus Append(const Slice& data, const IOOptions& options, 27002: const DataVerificationInfo& verification_info, 27002: IODebugContext* dbg) override { 27002: return target_->Append(data, options, verification_info, dbg); 27002: } 27002: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 27002: const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->PositionedAppend(data, offset, options, dbg); 27002: } 27002: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 27002: const IOOptions& options, 27002: const DataVerificationInfo& verification_info, 27002: IODebugContext* dbg) override { 27002: return target_->PositionedAppend(data, offset, options, verification_info, 27002: dbg); 27002: } 27002: IOStatus Truncate(uint64_t size, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->Truncate(size, options, dbg); 27002: } 27002: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Close(options, dbg); 27002: } 27002: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Flush(options, dbg); 27002: } 27002: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Sync(options, dbg); 27002: } 27002: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Fsync(options, dbg); 27002: } 27002: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 27002: 27002: bool use_direct_io() const override { return target_->use_direct_io(); } 27002: 27002: size_t GetRequiredBufferAlignment() const override { 27002: return target_->GetRequiredBufferAlignment(); 27002: } 27002: 27002: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 27002: target_->SetWriteLifeTimeHint(hint); 27002: } 27002: 27002: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 27002: return target_->GetWriteLifeTimeHint(); 27002: } 27002: 27002: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->GetFileSize(options, dbg); 27002: } 27002: 27002: void SetPreallocationBlockSize(size_t size) override { 27002: target_->SetPreallocationBlockSize(size); 27002: } 27002: 27002: void GetPreallocationStatus(size_t* block_size, 27002: size_t* last_allocated_block) override { 27002: target_->GetPreallocationStatus(block_size, last_allocated_block); 27002: } 27002: 27002: size_t GetUniqueId(char* id, size_t max_size) const override { 27002: return target_->GetUniqueId(id, max_size); 27002: } 27002: 27002: IOStatus InvalidateCache(size_t offset, size_t length) override { 27002: return target_->InvalidateCache(offset, length); 27002: } 27002: 27002: IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->RangeSync(offset, nbytes, options, dbg); 27002: } 27002: 27002: void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: target_->PrepareWrite(offset, len, options, dbg); 27002: } 27002: 27002: IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->Allocate(offset, len, options, dbg); 27002: } 27002: 27002: private: 27002: FSWritableFile* target_; 27002: }; 27002: 27002: class FSWritableFileOwnerWrapper : public FSWritableFileWrapper { 27002: public: 27002: 27002: 27002: explicit FSWritableFileOwnerWrapper(std::unique_ptr&& t) 27002: : FSWritableFileWrapper(t.get()), guard_(std::move(t)) {} 27002: 27002: private: 27002: std::unique_ptr guard_; 27002: }; 27002: 27002: class FSRandomRWFileWrapper : public FSRandomRWFile { 27002: public: 27002: 27002: 27002: explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {} 27002: 27002: FSRandomRWFile* target() const { return target_; } 27002: 27002: bool use_direct_io() const override { return target_->use_direct_io(); } 27002: size_t GetRequiredBufferAlignment() const override { 27002: return target_->GetRequiredBufferAlignment(); 27002: } 27002: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 27002: IODebugContext* dbg) override { 27002: return target_->Write(offset, data, options, dbg); 27002: } 27002: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 27002: Slice* result, char* scratch, 27002: IODebugContext* dbg) const override { 27002: return target_->Read(offset, n, options, result, scratch, dbg); 27002: } 27002: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Flush(options, dbg); 27002: } 27002: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Sync(options, dbg); 27002: } 27002: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Fsync(options, dbg); 27002: } 27002: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Close(options, dbg); 27002: } 27002: Temperature GetTemperature() const override { 27002: return target_->GetTemperature(); 27002: } 27002: 27002: private: 27002: FSRandomRWFile* target_; 27002: }; 27002: 27002: class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper { 27002: public: 27002: 27002: 27002: explicit FSRandomRWFileOwnerWrapper(std::unique_ptr&& t) 27002: : FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {} 27002: 27002: private: 27002: std::unique_ptr guard_; 27002: }; 27002: 27002: class FSDirectoryWrapper : public FSDirectory { 27002: public: 27002: 27002: 27002: explicit FSDirectoryWrapper(std::unique_ptr&& t) 27002: : guard_(std::move(t)) { 27002: target_ = guard_.get(); 27002: } 27002: 27002: 27002: 27002: explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {} 27002: 27002: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Fsync(options, dbg); 27002: } 27002: 27002: IOStatus FsyncWithDirOptions( 27002: const IOOptions& options, IODebugContext* dbg, 27002: const DirFsyncOptions& dir_fsync_options) override { 27002: return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options); 27002: } 27002: 27002: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 27002: return target_->Close(options, dbg); 27002: } 27002: 27002: size_t GetUniqueId(char* id, size_t max_size) const override { 27002: return target_->GetUniqueId(id, max_size); 27002: } 27002: 27002: private: 27002: std::unique_ptr guard_; 27002: FSDirectory* target_; 27002: }; 27002: 27002: 27002: extern IOStatus WriteStringToFile(FileSystem* fs, const Slice& data, 27002: const std::string& fname, 27002: bool should_sync = false); 27002: 27002: 27002: extern IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 27002: std::string* data); 27002: 27002: } 27002: # 22 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: # 23 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: inline size_t TruncateToPageBoundary(size_t page_size, size_t s) { 27002: s -= (s & (page_size - 1)); 27002: 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: (static_cast ( 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: (s % page_size) == 0 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: "(s % page_size) == 0" 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: , "./util/aligned_buffer.h", 25, __extension__ __PRETTY_FUNCTION__)) 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: ; 27002: return s; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: inline size_t Roundup(size_t x, size_t y) { 27002: return ((x + y - 1) / y) * y; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: inline size_t Rounddown(size_t x, size_t y) { return (x / y) * y; } 27002: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: class AlignedBuffer { 27002: size_t alignment_; 27002: std::unique_ptr buf_; 27002: size_t capacity_; 27002: size_t cursize_; 27002: char* bufstart_; 27002: 27002: public: 27002: AlignedBuffer() 27002: : alignment_(), 27002: capacity_(0), 27002: cursize_(0), 27002: bufstart_(nullptr) { 27002: } 27002: 27002: AlignedBuffer(AlignedBuffer&& o) noexcept { *this = std::move(o); } 27002: 27002: AlignedBuffer& operator=(AlignedBuffer&& o) noexcept { 27002: alignment_ = std::move(o.alignment_); 27002: buf_ = std::move(o.buf_); 27002: capacity_ = std::move(o.capacity_); 27002: cursize_ = std::move(o.cursize_); 27002: bufstart_ = std::move(o.bufstart_); 27002: return *this; 27002: } 27002: 27002: AlignedBuffer(const AlignedBuffer&) = delete; 27002: 27002: AlignedBuffer& operator=(const AlignedBuffer&) = delete; 27002: 27002: static bool isAligned(const void* ptr, size_t alignment) { 27002: return reinterpret_cast(ptr) % alignment == 0; 27002: } 27002: 27002: static bool isAligned(size_t n, size_t alignment) { 27002: return n % alignment == 0; 27002: } 27002: 27002: size_t Alignment() const { 27002: return alignment_; 27002: } 27002: 27002: size_t Capacity() const { 27002: return capacity_; 27002: } 27002: 27002: size_t CurrentSize() const { 27002: return cursize_; 27002: } 27002: 27002: const char* BufferStart() const { 27002: return bufstart_; 27002: } 27002: 27002: char* BufferStart() { return bufstart_; } 27002: 27002: void Clear() { 27002: cursize_ = 0; 27002: } 27002: 27002: char* Release() { 27002: cursize_ = 0; 27002: capacity_ = 0; 27002: bufstart_ = nullptr; 27002: return buf_.release(); 27002: } 27002: 27002: void Alignment(size_t alignment) { 27002: 27002: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: (static_cast ( 27002: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: alignment > 0 27002: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: "alignment > 0" 27002: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: , "./util/aligned_buffer.h", 125, __extension__ __PRETTY_FUNCTION__)) 27002: # 125 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: ; 27002: 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: (static_cast ( 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: (alignment & (alignment - 1)) == 0 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: "(alignment & (alignment - 1)) == 0" 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: , "./util/aligned_buffer.h", 126, __extension__ __PRETTY_FUNCTION__)) 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: ; 27002: alignment_ = alignment; 27002: } 27002: # 145 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: void AllocateNewBuffer(size_t requested_capacity, bool copy_data = false, 27002: uint64_t copy_offset = 0, size_t copy_len = 0) { 27002: 27002: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: (static_cast ( 27002: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: alignment_ > 0 27002: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: "alignment_ > 0" 27002: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: , "./util/aligned_buffer.h", 147, __extension__ __PRETTY_FUNCTION__)) 27002: # 147 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: ; 27002: 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: (static_cast ( 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: (alignment_ & (alignment_ - 1)) == 0 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: "(alignment_ & (alignment_ - 1)) == 0" 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: , "./util/aligned_buffer.h", 148, __extension__ __PRETTY_FUNCTION__)) 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: ; 27002: 27002: copy_len = copy_len > 0 ? copy_len : cursize_; 27002: if (copy_data && requested_capacity < copy_len) { 27002: 27002: 27002: return; 27002: } 27002: 27002: size_t new_capacity = Roundup(requested_capacity, alignment_); 27002: char* new_buf = new char[new_capacity + alignment_]; 27002: char* new_bufstart = reinterpret_cast( 27002: (reinterpret_cast(new_buf) + (alignment_ - 1)) & 27002: ~static_cast(alignment_ - 1)); 27002: 27002: if (copy_data) { 27002: 27002: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: (static_cast ( 27002: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_ 27002: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: "bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_" 27002: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: , "./util/aligned_buffer.h", 164, __extension__ __PRETTY_FUNCTION__)) 27002: # 164 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: ; 27002: memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); 27002: cursize_ = copy_len; 27002: } else { 27002: cursize_ = 0; 27002: } 27002: 27002: bufstart_ = new_bufstart; 27002: capacity_ = new_capacity; 27002: buf_.reset(new_buf); 27002: } 27002: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: size_t Append(const char* src, size_t append_size) { 27002: size_t buffer_remaining = capacity_ - cursize_; 27002: size_t to_copy = std::min(append_size, buffer_remaining); 27002: 27002: if (to_copy > 0) { 27002: memcpy(bufstart_ + cursize_, src, to_copy); 27002: cursize_ += to_copy; 27002: } 27002: return to_copy; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t Read(char* dest, size_t offset, size_t read_size) const { 27002: 27002: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: (static_cast ( 27002: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: offset < cursize_ 27002: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: "offset < cursize_" 27002: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: , "./util/aligned_buffer.h", 202, __extension__ __PRETTY_FUNCTION__)) 27002: # 202 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: ; 27002: 27002: size_t to_read = 0; 27002: if(offset < cursize_) { 27002: to_read = std::min(cursize_ - offset, read_size); 27002: } 27002: if (to_read > 0) { 27002: memcpy(dest, bufstart_ + offset, to_read); 27002: } 27002: return to_read; 27002: } 27002: 27002: 27002: void PadToAlignmentWith(int padding) { 27002: size_t total_size = Roundup(cursize_, alignment_); 27002: size_t pad_size = total_size - cursize_; 27002: 27002: if (pad_size > 0) { 27002: 27002: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: (static_cast ( 27002: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: (pad_size + cursize_) <= capacity_ 27002: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: "(pad_size + cursize_) <= capacity_" 27002: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: , "./util/aligned_buffer.h", 220, __extension__ __PRETTY_FUNCTION__)) 27002: # 220 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: ; 27002: memset(bufstart_ + cursize_, padding, pad_size); 27002: cursize_ += pad_size; 27002: } 27002: } 27002: 27002: void PadWith(size_t pad_size, int padding) { 27002: 27002: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: (static_cast ( 27002: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: (pad_size + cursize_) <= capacity_ 27002: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: "(pad_size + cursize_) <= capacity_" 27002: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 3 4 27002: , "./util/aligned_buffer.h", 227, __extension__ __PRETTY_FUNCTION__)) 27002: # 227 "/build/reproducible-path/rocksdb-7.8.3/util/aligned_buffer.h" 27002: ; 27002: memset(bufstart_ + cursize_, padding, pad_size); 27002: cursize_ += pad_size; 27002: } 27002: 27002: 27002: void RefitTail(size_t tail_offset, size_t tail_size) { 27002: if (tail_size > 0) { 27002: memmove(bufstart_, bufstart_ + tail_offset, tail_size); 27002: } 27002: cursize_ = tail_size; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: char* Destination() { 27002: return bufstart_ + cursize_; 27002: } 27002: 27002: void Size(size_t cursize) { 27002: cursize_ = cursize; 27002: } 27002: }; 27002: } 27002: # 24 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cassert" 1 3 27002: # 41 "/usr/include/c++/12/cassert" 3 27002: 27002: # 42 "/usr/include/c++/12/cassert" 3 27002: 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 45 "/usr/include/c++/12/cassert" 2 3 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 2 27002: 27002: # 1 "/usr/include/c++/12/iterator" 1 3 27002: # 58 "/usr/include/c++/12/iterator" 3 27002: 27002: # 59 "/usr/include/c++/12/iterator" 3 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/stream_iterator.h" 1 3 27002: # 33 "/usr/include/c++/12/bits/stream_iterator.h" 3 27002: 27002: # 34 "/usr/include/c++/12/bits/stream_iterator.h" 3 27002: 27002: 27002: 27002: 27002: # 37 "/usr/include/c++/12/bits/stream_iterator.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: #pragma GCC diagnostic push 27002: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 27002: 27002: 27002: template, typename _Dist = ptrdiff_t> 27002: class istream_iterator 27002: : public iterator 27002: { 27002: public: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: typedef basic_istream<_CharT, _Traits> istream_type; 27002: 27002: private: 27002: istream_type* _M_stream; 27002: _Tp _M_value; 27002: 27002: 27002: 27002: bool _M_ok; 27002: 27002: public: 27002: 27002: constexpr istream_iterator() 27002: noexcept(is_nothrow_default_constructible<_Tp>::value) 27002: : _M_stream(0), _M_value(), _M_ok(false) {} 27002: 27002: 27002: istream_iterator(istream_type& __s) 27002: : _M_stream(std::__addressof(__s)), _M_ok(true) 27002: { _M_read(); } 27002: 27002: istream_iterator(const istream_iterator& __obj) 27002: noexcept(is_nothrow_copy_constructible<_Tp>::value) 27002: : _M_stream(__obj._M_stream), _M_value(__obj._M_value), 27002: _M_ok(__obj._M_ok) 27002: { } 27002: # 94 "/usr/include/c++/12/bits/stream_iterator.h" 3 27002: istream_iterator& operator=(const istream_iterator&) = default; 27002: ~istream_iterator() = default; 27002: 27002: 27002: [[__nodiscard__]] 27002: const _Tp& 27002: operator*() const noexcept 27002: { 27002: 27002: 27002: ; 27002: return _M_value; 27002: } 27002: 27002: [[__nodiscard__]] 27002: const _Tp* 27002: operator->() const noexcept 27002: { return std::__addressof((operator*())); } 27002: 27002: istream_iterator& 27002: operator++() 27002: { 27002: 27002: 27002: ; 27002: _M_read(); 27002: return *this; 27002: } 27002: 27002: istream_iterator 27002: operator++(int) 27002: { 27002: 27002: 27002: ; 27002: istream_iterator __tmp = *this; 27002: _M_read(); 27002: return __tmp; 27002: } 27002: 27002: private: 27002: bool 27002: _M_equal(const istream_iterator& __x) const noexcept 27002: { 27002: 27002: 27002: return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); 27002: } 27002: 27002: void 27002: _M_read() 27002: { 27002: if (_M_stream && !(*_M_stream >> _M_value)) 27002: { 27002: _M_stream = 0; 27002: _M_ok = false; 27002: } 27002: } 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator==(const istream_iterator& __x, const istream_iterator& __y) 27002: noexcept 27002: { return __x._M_equal(__y); } 27002: 27002: 27002: 27002: 27002: [[__nodiscard__]] 27002: friend bool 27002: operator!=(const istream_iterator& __x, const istream_iterator& __y) 27002: noexcept 27002: { return !__x._M_equal(__y); } 27002: # 177 "/usr/include/c++/12/bits/stream_iterator.h" 3 27002: }; 27002: # 190 "/usr/include/c++/12/bits/stream_iterator.h" 3 27002: template > 27002: class ostream_iterator 27002: : public iterator 27002: { 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: typedef basic_ostream<_CharT, _Traits> ostream_type; 27002: 27002: 27002: private: 27002: ostream_type* _M_stream; 27002: const _CharT* _M_string; 27002: 27002: public: 27002: 27002: ostream_iterator(ostream_type& __s) noexcept 27002: : _M_stream(std::__addressof(__s)), _M_string(0) {} 27002: # 225 "/usr/include/c++/12/bits/stream_iterator.h" 3 27002: ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept 27002: : _M_stream(std::__addressof(__s)), _M_string(__c) { } 27002: 27002: 27002: ostream_iterator(const ostream_iterator& __obj) noexcept 27002: : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } 27002: 27002: 27002: ostream_iterator& operator=(const ostream_iterator&) = default; 27002: 27002: 27002: 27002: 27002: ostream_iterator& 27002: operator=(const _Tp& __value) 27002: { 27002: 27002: 27002: ; 27002: *_M_stream << __value; 27002: if (_M_string) 27002: *_M_stream << _M_string; 27002: return *this; 27002: } 27002: 27002: [[__nodiscard__]] 27002: ostream_iterator& 27002: operator*() noexcept 27002: { return *this; } 27002: 27002: ostream_iterator& 27002: operator++() noexcept 27002: { return *this; } 27002: 27002: ostream_iterator& 27002: operator++(int) noexcept 27002: { return *this; } 27002: }; 27002: #pragma GCC diagnostic pop 27002: 27002: 27002: 27002: 27002: } 27002: # 66 "/usr/include/c++/12/iterator" 2 3 27002: # 11 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 2 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/lang.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 52 "/build/reproducible-path/rocksdb-7.8.3/port/lang.h" 27002: 27002: # 52 "/build/reproducible-path/rocksdb-7.8.3/port/lang.h" 27002: constexpr bool kMustFreeHeapAllocations = false; 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: # 51 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: template 27002: class autovector { 27002: public: 27002: 27002: using value_type = T; 27002: using difference_type = typename std::vector::difference_type; 27002: using size_type = typename std::vector::size_type; 27002: using reference = value_type&; 27002: using const_reference = const value_type&; 27002: using pointer = value_type*; 27002: using const_pointer = const value_type*; 27002: 27002: 27002: template 27002: class iterator_impl { 27002: public: 27002: 27002: using self_type = iterator_impl; 27002: using value_type = TValueType; 27002: using reference = TValueType&; 27002: using pointer = TValueType*; 27002: using difference_type = typename TAutoVector::difference_type; 27002: using iterator_category = std::random_access_iterator_tag; 27002: 27002: iterator_impl(TAutoVector* vect, size_t index) 27002: : vect_(vect), index_(index) {}; 27002: iterator_impl(const iterator_impl&) = default; 27002: ~iterator_impl() {} 27002: iterator_impl& operator=(const iterator_impl&) = default; 27002: 27002: 27002: 27002: self_type& operator++() { 27002: ++index_; 27002: return *this; 27002: } 27002: 27002: 27002: self_type operator++(int) { 27002: auto old = *this; 27002: ++index_; 27002: return old; 27002: } 27002: 27002: 27002: self_type& operator--() { 27002: --index_; 27002: return *this; 27002: } 27002: 27002: 27002: self_type operator--(int) { 27002: auto old = *this; 27002: --index_; 27002: return old; 27002: } 27002: 27002: self_type operator-(difference_type len) const { 27002: return self_type(vect_, index_ - len); 27002: } 27002: 27002: difference_type operator-(const self_type& other) const { 27002: 27002: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: vect_ == other.vect_ 27002: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "vect_ == other.vect_" 27002: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 113, __extension__ __PRETTY_FUNCTION__)) 27002: # 113 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return index_ - other.index_; 27002: } 27002: 27002: self_type operator+(difference_type len) const { 27002: return self_type(vect_, index_ + len); 27002: } 27002: 27002: self_type& operator+=(difference_type len) { 27002: index_ += len; 27002: return *this; 27002: } 27002: 27002: self_type& operator-=(difference_type len) { 27002: index_ -= len; 27002: return *this; 27002: } 27002: 27002: 27002: reference operator*() const { 27002: 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: vect_->size() >= index_ 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "vect_->size() >= index_" 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 133, __extension__ __PRETTY_FUNCTION__)) 27002: # 133 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return (*vect_)[index_]; 27002: } 27002: 27002: pointer operator->() const { 27002: 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: vect_->size() >= index_ 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "vect_->size() >= index_" 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 138, __extension__ __PRETTY_FUNCTION__)) 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return &(*vect_)[index_]; 27002: } 27002: 27002: reference operator[](difference_type len) const { 27002: return *(*this + len); 27002: } 27002: 27002: 27002: bool operator==(const self_type& other) const { 27002: 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: vect_ == other.vect_ 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "vect_ == other.vect_" 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 148, __extension__ __PRETTY_FUNCTION__)) 27002: # 148 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return index_ == other.index_; 27002: } 27002: 27002: bool operator!=(const self_type& other) const { return !(*this == other); } 27002: 27002: bool operator>(const self_type& other) const { 27002: 27002: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: vect_ == other.vect_ 27002: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "vect_ == other.vect_" 27002: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 155, __extension__ __PRETTY_FUNCTION__)) 27002: # 155 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return index_ > other.index_; 27002: } 27002: 27002: bool operator<(const self_type& other) const { 27002: 27002: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: vect_ == other.vect_ 27002: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "vect_ == other.vect_" 27002: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 160, __extension__ __PRETTY_FUNCTION__)) 27002: # 160 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return index_ < other.index_; 27002: } 27002: 27002: bool operator>=(const self_type& other) const { 27002: 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: vect_ == other.vect_ 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "vect_ == other.vect_" 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 165, __extension__ __PRETTY_FUNCTION__)) 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return index_ >= other.index_; 27002: } 27002: 27002: bool operator<=(const self_type& other) const { 27002: 27002: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: vect_ == other.vect_ 27002: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "vect_ == other.vect_" 27002: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 170, __extension__ __PRETTY_FUNCTION__)) 27002: # 170 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return index_ <= other.index_; 27002: } 27002: 27002: private: 27002: TAutoVector* vect_ = nullptr; 27002: size_t index_ = 0; 27002: }; 27002: 27002: using iterator = iterator_impl; 27002: using const_iterator = iterator_impl; 27002: using reverse_iterator = std::reverse_iterator; 27002: using const_reverse_iterator = std::reverse_iterator; 27002: 27002: autovector() : values_(reinterpret_cast(buf_)) {} 27002: 27002: autovector(std::initializer_list init_list) 27002: : values_(reinterpret_cast(buf_)) { 27002: for (const T& item : init_list) { 27002: push_back(item); 27002: } 27002: } 27002: 27002: ~autovector() { clear(); } 27002: 27002: 27002: 27002: bool only_in_stack() const { 27002: 27002: return vect_.capacity() == 0; 27002: } 27002: 27002: size_type size() const { return num_stack_items_ + vect_.size(); } 27002: 27002: 27002: 27002: void resize(size_type n) { 27002: if (n > kSize) { 27002: vect_.resize(n - kSize); 27002: while (num_stack_items_ < kSize) { 27002: new ((void*)(&values_[num_stack_items_++])) value_type(); 27002: } 27002: num_stack_items_ = kSize; 27002: } else { 27002: vect_.clear(); 27002: while (num_stack_items_ < n) { 27002: new ((void*)(&values_[num_stack_items_++])) value_type(); 27002: } 27002: while (num_stack_items_ > n) { 27002: values_[--num_stack_items_].~value_type(); 27002: } 27002: } 27002: } 27002: 27002: bool empty() const { return size() == 0; } 27002: 27002: size_type capacity() const { return kSize + vect_.capacity(); } 27002: 27002: void reserve(size_t cap) { 27002: if (cap > kSize) { 27002: vect_.reserve(cap - kSize); 27002: } 27002: 27002: 27002: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: cap <= capacity() 27002: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "cap <= capacity()" 27002: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 233, __extension__ __PRETTY_FUNCTION__)) 27002: # 233 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: } 27002: 27002: const_reference operator[](size_type n) const { 27002: 27002: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: n < size() 27002: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "n < size()" 27002: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 237, __extension__ __PRETTY_FUNCTION__)) 27002: # 237 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: if (n < kSize) { 27002: return values_[n]; 27002: } 27002: return vect_[n - kSize]; 27002: } 27002: 27002: reference operator[](size_type n) { 27002: 27002: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: n < size() 27002: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "n < size()" 27002: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 245, __extension__ __PRETTY_FUNCTION__)) 27002: # 245 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: if (n < kSize) { 27002: return values_[n]; 27002: } 27002: return vect_[n - kSize]; 27002: } 27002: 27002: const_reference at(size_type n) const { 27002: 27002: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: n < size() 27002: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "n < size()" 27002: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 253, __extension__ __PRETTY_FUNCTION__)) 27002: # 253 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return (*this)[n]; 27002: } 27002: 27002: reference at(size_type n) { 27002: 27002: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: n < size() 27002: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "n < size()" 27002: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 258, __extension__ __PRETTY_FUNCTION__)) 27002: # 258 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return (*this)[n]; 27002: } 27002: 27002: reference front() { 27002: 27002: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: !empty() 27002: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "!empty()" 27002: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 263, __extension__ __PRETTY_FUNCTION__)) 27002: # 263 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return *begin(); 27002: } 27002: 27002: const_reference front() const { 27002: 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: !empty() 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "!empty()" 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 268, __extension__ __PRETTY_FUNCTION__)) 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return *begin(); 27002: } 27002: 27002: reference back() { 27002: 27002: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: !empty() 27002: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "!empty()" 27002: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 273, __extension__ __PRETTY_FUNCTION__)) 27002: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return *(end() - 1); 27002: } 27002: 27002: const_reference back() const { 27002: 27002: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: !empty() 27002: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "!empty()" 27002: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 278, __extension__ __PRETTY_FUNCTION__)) 27002: # 278 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: return *(end() - 1); 27002: } 27002: 27002: 27002: void push_back(T&& item) { 27002: if (num_stack_items_ < kSize) { 27002: new ((void*)(&values_[num_stack_items_])) value_type(); 27002: values_[num_stack_items_++] = std::move(item); 27002: } else { 27002: vect_.push_back(item); 27002: } 27002: } 27002: 27002: void push_back(const T& item) { 27002: if (num_stack_items_ < kSize) { 27002: new ((void*)(&values_[num_stack_items_])) value_type(); 27002: values_[num_stack_items_++] = item; 27002: } else { 27002: vect_.push_back(item); 27002: } 27002: } 27002: 27002: template 27002: # 312 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: void emplace_back(Args&&... args) { 27002: if (num_stack_items_ < kSize) { 27002: new ((void*)(&values_[num_stack_items_++])) 27002: value_type(std::forward(args)...); 27002: } else { 27002: vect_.emplace_back(std::forward(args)...); 27002: } 27002: } 27002: 27002: 27002: 27002: void pop_back() { 27002: 27002: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: (static_cast ( 27002: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: !empty() 27002: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: "!empty()" 27002: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 3 4 27002: , "./util/autovector.h", 324, __extension__ __PRETTY_FUNCTION__)) 27002: # 324 "/build/reproducible-path/rocksdb-7.8.3/util/autovector.h" 27002: ; 27002: if (!vect_.empty()) { 27002: vect_.pop_back(); 27002: } else { 27002: values_[--num_stack_items_].~value_type(); 27002: } 27002: } 27002: 27002: void clear() { 27002: while (num_stack_items_ > 0) { 27002: values_[--num_stack_items_].~value_type(); 27002: } 27002: vect_.clear(); 27002: } 27002: 27002: 27002: autovector& assign(const autovector& other); 27002: 27002: autovector(const autovector& other) { assign(other); } 27002: 27002: autovector& operator=(const autovector& other) { return assign(other); } 27002: 27002: autovector(autovector&& other) noexcept { *this = std::move(other); } 27002: autovector& operator=(autovector&& other); 27002: 27002: 27002: iterator begin() { return iterator(this, 0); } 27002: 27002: const_iterator begin() const { return const_iterator(this, 0); } 27002: 27002: iterator end() { return iterator(this, this->size()); } 27002: 27002: const_iterator end() const { return const_iterator(this, this->size()); } 27002: 27002: reverse_iterator rbegin() { return reverse_iterator(end()); } 27002: 27002: const_reverse_iterator rbegin() const { 27002: return const_reverse_iterator(end()); 27002: } 27002: 27002: reverse_iterator rend() { return reverse_iterator(begin()); } 27002: 27002: const_reverse_iterator rend() const { 27002: return const_reverse_iterator(begin()); 27002: } 27002: 27002: private: 27002: size_type num_stack_items_ = 0; 27002: alignas(alignof( 27002: value_type)) char buf_[kSize * 27002: sizeof(value_type)]; 27002: pointer values_; 27002: 27002: std::vector vect_; 27002: }; 27002: 27002: template 27002: autovector& autovector::assign( 27002: const autovector& other) { 27002: values_ = reinterpret_cast(buf_); 27002: 27002: vect_.assign(other.vect_.begin(), other.vect_.end()); 27002: 27002: 27002: num_stack_items_ = other.num_stack_items_; 27002: std::copy(other.values_, other.values_ + num_stack_items_, values_); 27002: 27002: return *this; 27002: } 27002: 27002: template 27002: autovector& autovector::operator=( 27002: autovector&& other) { 27002: values_ = reinterpret_cast(buf_); 27002: vect_ = std::move(other.vect_); 27002: size_t n = other.num_stack_items_; 27002: num_stack_items_ = n; 27002: other.num_stack_items_ = 0; 27002: for (size_t i = 0; i < n; ++i) { 27002: values_[i] = std::move(other.values_[i]); 27002: } 27002: return *this; 27002: } 27002: 27002: 27002: } 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: struct IOOptions; 27002: class RandomAccessFileReader; 27002: 27002: struct BufferInfo { 27002: AlignedBuffer buffer_; 27002: 27002: uint64_t offset_ = 0; 27002: 27002: 27002: 27002: size_t async_req_len_ = 0; 27002: 27002: 27002: 27002: bool async_read_in_progress_ = false; 27002: 27002: 27002: 27002: void* io_handle_ = nullptr; 27002: 27002: IOHandleDeleter del_fn_ = nullptr; 27002: 27002: 27002: uint32_t pos_ = 0; 27002: }; 27002: 27002: 27002: class FilePrefetchBuffer { 27002: public: 27002: # 81 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: FilePrefetchBuffer(size_t readahead_size = 0, size_t max_readahead_size = 0, 27002: bool enable = true, bool track_min_offset = false, 27002: bool implicit_auto_readahead = false, 27002: uint64_t num_file_reads = 0, 27002: uint64_t num_file_reads_for_auto_readahead = 0, 27002: FileSystem* fs = nullptr, SystemClock* clock = nullptr, 27002: Statistics* stats = nullptr) 27002: : curr_(0), 27002: readahead_size_(readahead_size), 27002: initial_auto_readahead_size_(readahead_size), 27002: max_readahead_size_(max_readahead_size), 27002: min_offset_read_(std::numeric_limits::max()), 27002: enable_(enable), 27002: track_min_offset_(track_min_offset), 27002: implicit_auto_readahead_(implicit_auto_readahead), 27002: prev_offset_(0), 27002: prev_len_(0), 27002: num_file_reads_for_auto_readahead_(num_file_reads_for_auto_readahead), 27002: num_file_reads_(num_file_reads), 27002: explicit_prefetch_submitted_(false), 27002: fs_(fs), 27002: clock_(clock), 27002: stats_(stats) { 27002: 27002: # 104 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 27002: (static_cast ( 27002: # 104 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: (num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0) 27002: # 104 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 104 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: "(num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0)" 27002: # 104 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 27002: , "./file/file_prefetch_buffer.h", 104, __extension__ __PRETTY_FUNCTION__)) 27002: 27002: # 105 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: ; 27002: 27002: 27002: 27002: bufs_.resize(3); 27002: for (uint32_t i = 0; i < 2; i++) { 27002: bufs_[i].pos_ = i; 27002: } 27002: } 27002: 27002: ~FilePrefetchBuffer() { 27002: 27002: if (fs_ != nullptr) { 27002: std::vector handles; 27002: for (uint32_t i = 0; i < 2; i++) { 27002: if (bufs_[i].async_read_in_progress_ && 27002: bufs_[i].io_handle_ != nullptr) { 27002: handles.emplace_back(bufs_[i].io_handle_); 27002: } 27002: } 27002: if (!handles.empty()) { 27002: StopWatch sw(clock_, stats_, ASYNC_PREFETCH_ABORT_MICROS); 27002: Status s = fs_->AbortIO(handles); 27002: 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 27002: (static_cast ( 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: s.ok() 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: "s.ok()" 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 27002: , "./file/file_prefetch_buffer.h", 128, __extension__ __PRETTY_FUNCTION__)) 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: ; 27002: } 27002: } 27002: 27002: 27002: uint64_t bytes_discarded = 0; 27002: 27002: for (int i = 0; i < 2; i++) { 27002: int first = i; 27002: int second = i ^ 1; 27002: 27002: if (DoesBufferContainData(first)) { 27002: 27002: 27002: if (prev_offset_ >= bufs_[first].offset_ && 27002: prev_offset_ + prev_len_ < 27002: bufs_[first].offset_ + bufs_[first].buffer_.CurrentSize()) { 27002: bytes_discarded += bufs_[first].buffer_.CurrentSize() - 27002: (prev_offset_ + prev_len_ - bufs_[first].offset_); 27002: } 27002: 27002: 27002: else if (prev_offset_ < bufs_[first].offset_ && 27002: !DoesBufferContainData(second)) { 27002: 27002: 27002: if (prev_offset_ + prev_len_ <= bufs_[first].offset_) { 27002: bytes_discarded += bufs_[first].buffer_.CurrentSize(); 27002: } 27002: 27002: 27002: else if (prev_offset_ + prev_len_ > bufs_[first].offset_ && 27002: bufs_[first].offset_ + bufs_[first].buffer_.CurrentSize() == 27002: bufs_[second].offset_) { 27002: bytes_discarded += bufs_[first].buffer_.CurrentSize() - 27002: ( prev_len_ - 27002: (bufs_[first].offset_ - prev_offset_)); 27002: } 27002: } 27002: } 27002: } 27002: 27002: for (uint32_t i = 0; i < 2; i++) { 27002: 27002: DestroyAndClearIOHandle(i); 27002: } 27002: RecordInHistogram(stats_, PREFETCHED_BYTES_DISCARDED, bytes_discarded); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: Status Prefetch(const IOOptions& opts, RandomAccessFileReader* reader, 27002: uint64_t offset, size_t n, 27002: Env::IOPriority rate_limiter_priority); 27002: # 197 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: Status PrefetchAsync(const IOOptions& opts, RandomAccessFileReader* reader, 27002: uint64_t offset, size_t n, Slice* result); 27002: # 215 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: bool TryReadFromCache(const IOOptions& opts, RandomAccessFileReader* reader, 27002: uint64_t offset, size_t n, Slice* result, Status* s, 27002: Env::IOPriority rate_limiter_priority, 27002: bool for_compaction = false); 27002: 27002: bool TryReadFromCacheAsync(const IOOptions& opts, 27002: RandomAccessFileReader* reader, uint64_t offset, 27002: size_t n, Slice* result, Status* status, 27002: Env::IOPriority rate_limiter_priority); 27002: 27002: 27002: 27002: size_t min_offset_read() const { return min_offset_read_; } 27002: 27002: 27002: void UpdateReadPattern(const uint64_t& offset, const size_t& len, 27002: bool decrease_readaheadsize) { 27002: if (decrease_readaheadsize) { 27002: 27002: 27002: 27002: DecreaseReadAheadIfEligible(offset, len); 27002: } 27002: prev_offset_ = offset; 27002: prev_len_ = len; 27002: explicit_prefetch_submitted_ = false; 27002: } 27002: 27002: void GetReadaheadState(ReadaheadFileInfo::ReadaheadInfo* readahead_info) { 27002: readahead_info->readahead_size = readahead_size_; 27002: readahead_info->num_file_reads = num_file_reads_; 27002: } 27002: 27002: void DecreaseReadAheadIfEligible(uint64_t offset, size_t size, 27002: size_t value = 8 * 1024) { 27002: # 259 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: size_t curr_size = bufs_[curr_].async_read_in_progress_ 27002: ? bufs_[curr_].async_req_len_ 27002: : bufs_[curr_].buffer_.CurrentSize(); 27002: if (implicit_auto_readahead_ && readahead_size_ > 0) { 27002: if ((offset + size > bufs_[curr_].offset_ + curr_size) && 27002: IsBlockSequential(offset) && 27002: (num_file_reads_ + 1 > num_file_reads_for_auto_readahead_)) { 27002: readahead_size_ = 27002: std::max(initial_auto_readahead_size_, 27002: (readahead_size_ >= value ? readahead_size_ - value : 0)); 27002: } 27002: } 27002: } 27002: 27002: 27002: void PrefetchAsyncCallback(const FSReadRequest& req, void* cb_arg); 27002: 27002: private: 27002: 27002: 27002: 27002: void CalculateOffsetAndLen(size_t alignment, uint64_t offset, 27002: size_t roundup_len, uint32_t index, 27002: bool refit_tail, uint64_t& chunk_len); 27002: 27002: void AbortIOIfNeeded(uint64_t offset); 27002: 27002: void AbortAllIOs(); 27002: 27002: void UpdateBuffersIfNeeded(uint64_t offset); 27002: 27002: 27002: 27002: 27002: void PollAndUpdateBuffersIfNeeded(uint64_t offset); 27002: 27002: Status PrefetchAsyncInternal(const IOOptions& opts, 27002: RandomAccessFileReader* reader, uint64_t offset, 27002: size_t length, size_t readahead_size, 27002: Env::IOPriority rate_limiter_priority, 27002: bool& copy_to_third_buffer); 27002: 27002: Status Read(const IOOptions& opts, RandomAccessFileReader* reader, 27002: Env::IOPriority rate_limiter_priority, uint64_t read_len, 27002: uint64_t chunk_len, uint64_t rounddown_start, uint32_t index); 27002: 27002: Status ReadAsync(const IOOptions& opts, RandomAccessFileReader* reader, 27002: uint64_t read_len, uint64_t rounddown_start, uint32_t index); 27002: 27002: 27002: void CopyDataToBuffer(uint32_t src, uint64_t& offset, size_t& length); 27002: 27002: bool IsBlockSequential(const size_t& offset) { 27002: return (prev_len_ == 0 || (prev_offset_ + prev_len_ == offset)); 27002: } 27002: 27002: 27002: void ResetValues() { 27002: num_file_reads_ = 1; 27002: readahead_size_ = initial_auto_readahead_size_; 27002: } 27002: 27002: 27002: bool IsEligibleForPrefetch(uint64_t offset, size_t n) { 27002: 27002: 27002: if (!IsBlockSequential(offset)) { 27002: UpdateReadPattern(offset, n, false ); 27002: ResetValues(); 27002: return false; 27002: } 27002: num_file_reads_++; 27002: 27002: 27002: 27002: 27002: if (explicit_prefetch_submitted_) { 27002: return true; 27002: } 27002: if (num_file_reads_ <= num_file_reads_for_auto_readahead_) { 27002: UpdateReadPattern(offset, n, false ); 27002: return false; 27002: } 27002: return true; 27002: } 27002: 27002: 27002: bool IsDataBlockInBuffer(uint64_t offset, size_t length, uint32_t index) { 27002: return (offset >= bufs_[index].offset_ && 27002: offset + length <= 27002: bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 27002: } 27002: bool IsOffsetInBuffer(uint64_t offset, uint32_t index) { 27002: return (offset >= bufs_[index].offset_ && 27002: offset < bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 27002: } 27002: bool DoesBufferContainData(uint32_t index) { 27002: return bufs_[index].buffer_.CurrentSize() > 0; 27002: } 27002: bool IsBufferOutdated(uint64_t offset, uint32_t index) { 27002: return ( 27002: !bufs_[index].async_read_in_progress_ && DoesBufferContainData(index) && 27002: offset >= bufs_[index].offset_ + bufs_[index].buffer_.CurrentSize()); 27002: } 27002: bool IsBufferOutdatedWithAsyncProgress(uint64_t offset, uint32_t index) { 27002: return (bufs_[index].async_read_in_progress_ && 27002: bufs_[index].io_handle_ != nullptr && 27002: offset >= bufs_[index].offset_ + bufs_[index].async_req_len_); 27002: } 27002: bool IsOffsetInBufferWithAsyncProgress(uint64_t offset, uint32_t index) { 27002: return (bufs_[index].async_read_in_progress_ && 27002: offset >= bufs_[index].offset_ && 27002: offset < bufs_[index].offset_ + bufs_[index].async_req_len_); 27002: } 27002: 27002: bool IsSecondBuffEligibleForPrefetching() { 27002: uint32_t second = curr_ ^ 1; 27002: if (bufs_[second].async_read_in_progress_) { 27002: return false; 27002: } 27002: 27002: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 27002: (static_cast ( 27002: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: !bufs_[curr_].async_read_in_progress_ 27002: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: "!bufs_[curr_].async_read_in_progress_" 27002: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 3 4 27002: , "./file/file_prefetch_buffer.h", 379, __extension__ __PRETTY_FUNCTION__)) 27002: # 379 "/build/reproducible-path/rocksdb-7.8.3/file/file_prefetch_buffer.h" 27002: ; 27002: 27002: if (DoesBufferContainData(curr_) && DoesBufferContainData(second) && 27002: (bufs_[curr_].offset_ + bufs_[curr_].buffer_.CurrentSize() == 27002: bufs_[second].offset_)) { 27002: return false; 27002: } 27002: bufs_[second].buffer_.Clear(); 27002: return true; 27002: } 27002: 27002: void DestroyAndClearIOHandle(uint32_t index) { 27002: if (bufs_[index].io_handle_ != nullptr && bufs_[index].del_fn_ != nullptr) { 27002: bufs_[index].del_fn_(bufs_[index].io_handle_); 27002: bufs_[index].io_handle_ = nullptr; 27002: bufs_[index].del_fn_ = nullptr; 27002: } 27002: bufs_[index].async_read_in_progress_ = false; 27002: } 27002: 27002: Status HandleOverlappingData(const IOOptions& opts, 27002: RandomAccessFileReader* reader, uint64_t offset, 27002: size_t length, size_t readahead_size, 27002: Env::IOPriority rate_limiter_priority, 27002: bool& copy_to_third_buffer, uint64_t& tmp_offset, 27002: size_t& tmp_length); 27002: 27002: std::vector bufs_; 27002: 27002: 27002: uint32_t curr_; 27002: 27002: size_t readahead_size_; 27002: size_t initial_auto_readahead_size_; 27002: 27002: 27002: size_t max_readahead_size_; 27002: 27002: 27002: size_t min_offset_read_; 27002: 27002: 27002: bool enable_; 27002: 27002: 27002: bool track_min_offset_; 27002: 27002: 27002: 27002: bool implicit_auto_readahead_; 27002: uint64_t prev_offset_; 27002: size_t prev_len_; 27002: 27002: 27002: uint64_t num_file_reads_for_auto_readahead_; 27002: uint64_t num_file_reads_; 27002: 27002: 27002: 27002: 27002: 27002: bool explicit_prefetch_submitted_; 27002: 27002: FileSystem* fs_; 27002: SystemClock* clock_; 27002: Statistics* stats_; 27002: }; 27002: } 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/env/file_system_tracer.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/fstream" 1 3 27002: # 36 "/usr/include/c++/12/fstream" 3 27002: 27002: # 37 "/usr/include/c++/12/fstream" 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/bits/codecvt.h" 1 3 27002: # 39 "/usr/include/c++/12/bits/codecvt.h" 3 27002: 27002: # 40 "/usr/include/c++/12/bits/codecvt.h" 3 27002: 27002: 27002: 27002: 27002: 27002: # 44 "/usr/include/c++/12/bits/codecvt.h" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: class codecvt_base 27002: { 27002: public: 27002: enum result 27002: { 27002: ok, 27002: partial, 27002: error, 27002: noconv 27002: }; 27002: }; 27002: # 70 "/usr/include/c++/12/bits/codecvt.h" 3 27002: template 27002: class __codecvt_abstract_base 27002: : public locale::facet, public codecvt_base 27002: { 27002: public: 27002: 27002: typedef codecvt_base::result result; 27002: typedef _InternT intern_type; 27002: typedef _ExternT extern_type; 27002: typedef _StateT state_type; 27002: # 118 "/usr/include/c++/12/bits/codecvt.h" 3 27002: result 27002: out(state_type& __state, const intern_type* __from, 27002: const intern_type* __from_end, const intern_type*& __from_next, 27002: extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const 27002: { 27002: return this->do_out(__state, __from, __from_end, __from_next, 27002: __to, __to_end, __to_next); 27002: } 27002: # 157 "/usr/include/c++/12/bits/codecvt.h" 3 27002: result 27002: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const 27002: { return this->do_unshift(__state, __to,__to_end,__to_next); } 27002: # 198 "/usr/include/c++/12/bits/codecvt.h" 3 27002: result 27002: in(state_type& __state, const extern_type* __from, 27002: const extern_type* __from_end, const extern_type*& __from_next, 27002: intern_type* __to, intern_type* __to_end, 27002: intern_type*& __to_next) const 27002: { 27002: return this->do_in(__state, __from, __from_end, __from_next, 27002: __to, __to_end, __to_next); 27002: } 27002: 27002: int 27002: encoding() const throw() 27002: { return this->do_encoding(); } 27002: 27002: bool 27002: always_noconv() const throw() 27002: { return this->do_always_noconv(); } 27002: 27002: int 27002: length(state_type& __state, const extern_type* __from, 27002: const extern_type* __end, size_t __max) const 27002: { return this->do_length(__state, __from, __end, __max); } 27002: 27002: int 27002: max_length() const throw() 27002: { return this->do_max_length(); } 27002: 27002: protected: 27002: explicit 27002: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 27002: 27002: virtual 27002: ~__codecvt_abstract_base() { } 27002: # 239 "/usr/include/c++/12/bits/codecvt.h" 3 27002: virtual result 27002: do_out(state_type& __state, const intern_type* __from, 27002: const intern_type* __from_end, const intern_type*& __from_next, 27002: extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const = 0; 27002: 27002: virtual result 27002: do_unshift(state_type& __state, extern_type* __to, 27002: extern_type* __to_end, extern_type*& __to_next) const = 0; 27002: 27002: virtual result 27002: do_in(state_type& __state, const extern_type* __from, 27002: const extern_type* __from_end, const extern_type*& __from_next, 27002: intern_type* __to, intern_type* __to_end, 27002: intern_type*& __to_next) const = 0; 27002: 27002: virtual int 27002: do_encoding() const throw() = 0; 27002: 27002: virtual bool 27002: do_always_noconv() const throw() = 0; 27002: 27002: virtual int 27002: do_length(state_type&, const extern_type* __from, 27002: const extern_type* __end, size_t __max) const = 0; 27002: 27002: virtual int 27002: do_max_length() const throw() = 0; 27002: }; 27002: # 276 "/usr/include/c++/12/bits/codecvt.h" 3 27002: template 27002: class codecvt 27002: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 27002: { 27002: public: 27002: 27002: typedef codecvt_base::result result; 27002: typedef _InternT intern_type; 27002: typedef _ExternT extern_type; 27002: typedef _StateT state_type; 27002: 27002: protected: 27002: __c_locale _M_c_locale_codecvt; 27002: 27002: public: 27002: static locale::id id; 27002: 27002: explicit 27002: codecvt(size_t __refs = 0) 27002: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 27002: _M_c_locale_codecvt(0) 27002: { } 27002: 27002: explicit 27002: codecvt(__c_locale __cloc, size_t __refs = 0); 27002: 27002: protected: 27002: virtual 27002: ~codecvt() { } 27002: 27002: virtual result 27002: do_out(state_type& __state, const intern_type* __from, 27002: const intern_type* __from_end, const intern_type*& __from_next, 27002: extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const; 27002: 27002: virtual result 27002: do_unshift(state_type& __state, extern_type* __to, 27002: extern_type* __to_end, extern_type*& __to_next) const; 27002: 27002: virtual result 27002: do_in(state_type& __state, const extern_type* __from, 27002: const extern_type* __from_end, const extern_type*& __from_next, 27002: intern_type* __to, intern_type* __to_end, 27002: intern_type*& __to_next) const; 27002: 27002: virtual int 27002: do_encoding() const throw(); 27002: 27002: virtual bool 27002: do_always_noconv() const throw(); 27002: 27002: virtual int 27002: do_length(state_type&, const extern_type* __from, 27002: const extern_type* __end, size_t __max) const; 27002: 27002: virtual int 27002: do_max_length() const throw(); 27002: }; 27002: 27002: template 27002: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 27002: 27002: 27002: template<> 27002: class codecvt 27002: : public __codecvt_abstract_base 27002: { 27002: friend class messages; 27002: 27002: public: 27002: 27002: typedef char intern_type; 27002: typedef char extern_type; 27002: typedef mbstate_t state_type; 27002: 27002: protected: 27002: __c_locale _M_c_locale_codecvt; 27002: 27002: public: 27002: static locale::id id; 27002: 27002: explicit 27002: codecvt(size_t __refs = 0); 27002: 27002: explicit 27002: codecvt(__c_locale __cloc, size_t __refs = 0); 27002: 27002: protected: 27002: virtual 27002: ~codecvt(); 27002: 27002: virtual result 27002: do_out(state_type& __state, const intern_type* __from, 27002: const intern_type* __from_end, const intern_type*& __from_next, 27002: extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const; 27002: 27002: virtual result 27002: do_unshift(state_type& __state, extern_type* __to, 27002: extern_type* __to_end, extern_type*& __to_next) const; 27002: 27002: virtual result 27002: do_in(state_type& __state, const extern_type* __from, 27002: const extern_type* __from_end, const extern_type*& __from_next, 27002: intern_type* __to, intern_type* __to_end, 27002: intern_type*& __to_next) const; 27002: 27002: virtual int 27002: do_encoding() const throw(); 27002: 27002: virtual bool 27002: do_always_noconv() const throw(); 27002: 27002: virtual int 27002: do_length(state_type&, const extern_type* __from, 27002: const extern_type* __end, size_t __max) const; 27002: 27002: virtual int 27002: do_max_length() const throw(); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: class codecvt 27002: : public __codecvt_abstract_base 27002: { 27002: friend class messages; 27002: 27002: public: 27002: 27002: typedef wchar_t intern_type; 27002: typedef char extern_type; 27002: typedef mbstate_t state_type; 27002: 27002: protected: 27002: __c_locale _M_c_locale_codecvt; 27002: 27002: public: 27002: static locale::id id; 27002: 27002: explicit 27002: codecvt(size_t __refs = 0); 27002: 27002: explicit 27002: codecvt(__c_locale __cloc, size_t __refs = 0); 27002: 27002: protected: 27002: virtual 27002: ~codecvt(); 27002: 27002: virtual result 27002: do_out(state_type& __state, const intern_type* __from, 27002: const intern_type* __from_end, const intern_type*& __from_next, 27002: extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const; 27002: 27002: virtual result 27002: do_unshift(state_type& __state, 27002: extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const; 27002: 27002: virtual result 27002: do_in(state_type& __state, 27002: const extern_type* __from, const extern_type* __from_end, 27002: const extern_type*& __from_next, 27002: intern_type* __to, intern_type* __to_end, 27002: intern_type*& __to_next) const; 27002: 27002: virtual 27002: int do_encoding() const throw(); 27002: 27002: virtual 27002: bool do_always_noconv() const throw(); 27002: 27002: virtual 27002: int do_length(state_type&, const extern_type* __from, 27002: const extern_type* __end, size_t __max) const; 27002: 27002: virtual int 27002: do_max_length() const throw(); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: class codecvt 27002: : public __codecvt_abstract_base 27002: { 27002: public: 27002: 27002: typedef char16_t intern_type; 27002: typedef char extern_type; 27002: typedef mbstate_t state_type; 27002: 27002: public: 27002: static locale::id id; 27002: 27002: explicit 27002: codecvt(size_t __refs = 0) 27002: : __codecvt_abstract_base(__refs) { } 27002: 27002: protected: 27002: virtual 27002: ~codecvt(); 27002: 27002: virtual result 27002: do_out(state_type& __state, const intern_type* __from, 27002: const intern_type* __from_end, const intern_type*& __from_next, 27002: extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const; 27002: 27002: virtual result 27002: do_unshift(state_type& __state, 27002: extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const; 27002: 27002: virtual result 27002: do_in(state_type& __state, 27002: const extern_type* __from, const extern_type* __from_end, 27002: const extern_type*& __from_next, 27002: intern_type* __to, intern_type* __to_end, 27002: intern_type*& __to_next) const; 27002: 27002: virtual 27002: int do_encoding() const throw(); 27002: 27002: virtual 27002: bool do_always_noconv() const throw(); 27002: 27002: virtual 27002: int do_length(state_type&, const extern_type* __from, 27002: const extern_type* __end, size_t __max) const; 27002: 27002: virtual int 27002: do_max_length() const throw(); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: template<> 27002: class codecvt 27002: : public __codecvt_abstract_base 27002: { 27002: public: 27002: 27002: typedef char32_t intern_type; 27002: typedef char extern_type; 27002: typedef mbstate_t state_type; 27002: 27002: public: 27002: static locale::id id; 27002: 27002: explicit 27002: codecvt(size_t __refs = 0) 27002: : __codecvt_abstract_base(__refs) { } 27002: 27002: protected: 27002: virtual 27002: ~codecvt(); 27002: 27002: virtual result 27002: do_out(state_type& __state, const intern_type* __from, 27002: const intern_type* __from_end, const intern_type*& __from_next, 27002: extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const; 27002: 27002: virtual result 27002: do_unshift(state_type& __state, 27002: extern_type* __to, extern_type* __to_end, 27002: extern_type*& __to_next) const; 27002: 27002: virtual result 27002: do_in(state_type& __state, 27002: const extern_type* __from, const extern_type* __from_end, 27002: const extern_type*& __from_next, 27002: intern_type* __to, intern_type* __to_end, 27002: intern_type*& __to_next) const; 27002: 27002: virtual 27002: int do_encoding() const throw(); 27002: 27002: virtual 27002: bool do_always_noconv() const throw(); 27002: 27002: virtual 27002: int do_length(state_type&, const extern_type* __from, 27002: const extern_type* __end, size_t __max) const; 27002: 27002: virtual int 27002: do_max_length() const throw(); 27002: }; 27002: # 698 "/usr/include/c++/12/bits/codecvt.h" 3 27002: template 27002: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 27002: { 27002: public: 27002: explicit 27002: codecvt_byname(const char* __s, size_t __refs = 0) 27002: : codecvt<_InternT, _ExternT, _StateT>(__refs) 27002: { 27002: if (__builtin_strcmp(__s, "C") != 0 27002: && __builtin_strcmp(__s, "POSIX") != 0) 27002: { 27002: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 27002: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 27002: } 27002: } 27002: 27002: 27002: explicit 27002: codecvt_byname(const string& __s, size_t __refs = 0) 27002: : codecvt_byname(__s.c_str(), __refs) { } 27002: 27002: 27002: protected: 27002: virtual 27002: ~codecvt_byname() { } 27002: }; 27002: 27002: 27002: template<> 27002: class codecvt_byname 27002: : public codecvt 27002: { 27002: public: 27002: explicit 27002: codecvt_byname(const char*, size_t __refs = 0) 27002: : codecvt(__refs) { } 27002: 27002: explicit 27002: codecvt_byname(const string& __s, size_t __refs = 0) 27002: : codecvt_byname(__s.c_str(), __refs) { } 27002: 27002: protected: 27002: virtual 27002: ~codecvt_byname() { } 27002: }; 27002: 27002: template<> 27002: class codecvt_byname 27002: : public codecvt 27002: { 27002: public: 27002: explicit 27002: codecvt_byname(const char*, size_t __refs = 0) 27002: : codecvt(__refs) { } 27002: 27002: explicit 27002: codecvt_byname(const string& __s, size_t __refs = 0) 27002: : codecvt_byname(__s.c_str(), __refs) { } 27002: 27002: protected: 27002: virtual 27002: ~codecvt_byname() { } 27002: }; 27002: # 805 "/usr/include/c++/12/bits/codecvt.h" 3 27002: extern template class codecvt_byname; 27002: 27002: extern template 27002: const codecvt& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: 27002: extern template class codecvt_byname; 27002: 27002: extern template 27002: const codecvt& 27002: use_facet >(const locale&); 27002: 27002: extern template 27002: bool 27002: has_facet >(const locale&); 27002: 27002: 27002: 27002: extern template class codecvt_byname; 27002: extern template class codecvt_byname; 27002: # 840 "/usr/include/c++/12/bits/codecvt.h" 3 27002: 27002: } 27002: # 41 "/usr/include/c++/12/fstream" 2 3 27002: # 1 "/usr/include/c++/12/cstdio" 1 3 27002: # 39 "/usr/include/c++/12/cstdio" 3 27002: 27002: # 40 "/usr/include/c++/12/cstdio" 3 27002: # 42 "/usr/include/c++/12/fstream" 2 3 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/basic_file.h" 1 3 27002: # 37 "/usr/include/arm-linux-gnueabihf/c++/12/bits/basic_file.h" 3 27002: 27002: # 38 "/usr/include/arm-linux-gnueabihf/c++/12/bits/basic_file.h" 3 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++io.h" 1 3 27002: # 35 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++io.h" 3 27002: # 1 "/usr/include/c++/12/cstdio" 1 3 27002: # 39 "/usr/include/c++/12/cstdio" 3 27002: 27002: # 40 "/usr/include/c++/12/cstdio" 3 27002: # 36 "/usr/include/arm-linux-gnueabihf/c++/12/bits/c++io.h" 2 3 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: typedef __gthread_mutex_t __c_lock; 27002: 27002: 27002: typedef FILE __c_file; 27002: 27002: 27002: } 27002: # 41 "/usr/include/arm-linux-gnueabihf/c++/12/bits/basic_file.h" 2 3 27002: 27002: 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: template 27002: class __basic_file; 27002: 27002: 27002: template<> 27002: class __basic_file 27002: { 27002: 27002: __c_file* _M_cfile; 27002: 27002: 27002: bool _M_cfile_created; 27002: 27002: public: 27002: __basic_file(__c_lock* __lock = 0) throw (); 27002: 27002: 27002: __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept 27002: : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) 27002: { 27002: __rv._M_cfile = nullptr; 27002: __rv._M_cfile_created = false; 27002: } 27002: 27002: __basic_file& operator=(const __basic_file&) = delete; 27002: __basic_file& operator=(__basic_file&&) = delete; 27002: 27002: void 27002: swap(__basic_file& __f) noexcept 27002: { 27002: std::swap(_M_cfile, __f._M_cfile); 27002: std::swap(_M_cfile_created, __f._M_cfile_created); 27002: } 27002: 27002: 27002: __basic_file* 27002: open(const char* __name, ios_base::openmode __mode, int __prot = 0664); 27002: 27002: 27002: 27002: 27002: 27002: 27002: __basic_file* 27002: sys_open(__c_file* __file, ios_base::openmode); 27002: 27002: __basic_file* 27002: sys_open(int __fd, ios_base::openmode __mode) throw (); 27002: 27002: __basic_file* 27002: close(); 27002: 27002: __attribute__ ((__pure__)) bool 27002: is_open() const throw (); 27002: 27002: __attribute__ ((__pure__)) int 27002: fd() throw (); 27002: 27002: __attribute__ ((__pure__)) __c_file* 27002: file() throw (); 27002: 27002: ~__basic_file(); 27002: 27002: streamsize 27002: xsputn(const char* __s, streamsize __n); 27002: 27002: streamsize 27002: xsputn_2(const char* __s1, streamsize __n1, 27002: const char* __s2, streamsize __n2); 27002: 27002: streamsize 27002: xsgetn(char* __s, streamsize __n); 27002: 27002: streamoff 27002: seekoff(streamoff __off, ios_base::seekdir __way) throw (); 27002: 27002: int 27002: sync(); 27002: 27002: streamsize 27002: showmanyc(); 27002: }; 27002: 27002: 27002: } 27002: # 43 "/usr/include/c++/12/fstream" 2 3 27002: # 52 "/usr/include/c++/12/fstream" 3 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: 27002: 27002: template().make_preferred().filename())> 27002: using _If_fs_path = enable_if_t, _Result>; 27002: # 84 "/usr/include/c++/12/fstream" 3 27002: template 27002: class basic_filebuf : public basic_streambuf<_CharT, _Traits> 27002: { 27002: 27002: template 27002: using __chk_state = __and_, 27002: is_copy_constructible<_Tp>, 27002: is_default_constructible<_Tp>>; 27002: 27002: static_assert(__chk_state::value, 27002: "state_type must be CopyAssignable, CopyConstructible" 27002: " and DefaultConstructible"); 27002: 27002: static_assert(is_same>::value, 27002: "pos_type must be fpos"); 27002: 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: typedef typename traits_type::int_type int_type; 27002: typedef typename traits_type::pos_type pos_type; 27002: typedef typename traits_type::off_type off_type; 27002: 27002: typedef basic_streambuf __streambuf_type; 27002: typedef basic_filebuf __filebuf_type; 27002: typedef __basic_file __file_type; 27002: typedef typename traits_type::state_type __state_type; 27002: typedef codecvt __codecvt_type; 27002: 27002: friend class ios_base; 27002: 27002: protected: 27002: 27002: 27002: __c_lock _M_lock; 27002: 27002: 27002: __file_type _M_file; 27002: 27002: 27002: ios_base::openmode _M_mode; 27002: 27002: 27002: __state_type _M_state_beg; 27002: 27002: 27002: 27002: 27002: __state_type _M_state_cur; 27002: 27002: 27002: 27002: __state_type _M_state_last; 27002: 27002: 27002: char_type* _M_buf; 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t _M_buf_size; 27002: 27002: 27002: bool _M_buf_allocated; 27002: # 160 "/usr/include/c++/12/fstream" 3 27002: bool _M_reading; 27002: bool _M_writing; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: char_type _M_pback; 27002: char_type* _M_pback_cur_save; 27002: char_type* _M_pback_end_save; 27002: bool _M_pback_init; 27002: 27002: 27002: 27002: const __codecvt_type* _M_codecvt; 27002: 27002: 27002: 27002: 27002: 27002: 27002: char* _M_ext_buf; 27002: 27002: 27002: 27002: 27002: streamsize _M_ext_buf_size; 27002: 27002: 27002: 27002: 27002: 27002: 27002: const char* _M_ext_next; 27002: char* _M_ext_end; 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: _M_create_pback() 27002: { 27002: if (!_M_pback_init) 27002: { 27002: _M_pback_cur_save = this->gptr(); 27002: _M_pback_end_save = this->egptr(); 27002: this->setg(&_M_pback, &_M_pback, &_M_pback + 1); 27002: _M_pback_init = true; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: void 27002: _M_destroy_pback() throw() 27002: { 27002: if (_M_pback_init) 27002: { 27002: 27002: _M_pback_cur_save += this->gptr() != this->eback(); 27002: this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); 27002: _M_pback_init = false; 27002: } 27002: } 27002: 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: basic_filebuf(); 27002: 27002: 27002: basic_filebuf(const basic_filebuf&) = delete; 27002: basic_filebuf(basic_filebuf&&); 27002: 27002: 27002: 27002: 27002: 27002: virtual 27002: ~basic_filebuf() 27002: { 27002: try 27002: { this->close(); } 27002: catch(...) 27002: { } 27002: } 27002: 27002: 27002: basic_filebuf& operator=(const basic_filebuf&) = delete; 27002: basic_filebuf& operator=(basic_filebuf&&); 27002: void swap(basic_filebuf&); 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool 27002: is_open() const throw() 27002: { return _M_file.is_open(); } 27002: # 314 "/usr/include/c++/12/fstream" 3 27002: __filebuf_type* 27002: open(const char* __s, ios_base::openmode __mode); 27002: # 335 "/usr/include/c++/12/fstream" 3 27002: __filebuf_type* 27002: open(const std::string& __s, ios_base::openmode __mode) 27002: { return open(__s.c_str(), __mode); } 27002: # 346 "/usr/include/c++/12/fstream" 3 27002: template 27002: _If_fs_path<_Path, __filebuf_type*> 27002: open(const _Path& __s, ios_base::openmode __mode) 27002: { return open(__s.c_str(), __mode); } 27002: # 365 "/usr/include/c++/12/fstream" 3 27002: __filebuf_type* 27002: close(); 27002: 27002: protected: 27002: void 27002: _M_allocate_internal_buffer(); 27002: 27002: void 27002: _M_destroy_internal_buffer() throw(); 27002: 27002: 27002: virtual streamsize 27002: showmanyc(); 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual int_type 27002: underflow(); 27002: 27002: virtual int_type 27002: pbackfail(int_type __c = _Traits::eof()); 27002: # 397 "/usr/include/c++/12/fstream" 3 27002: virtual int_type 27002: overflow(int_type __c = _Traits::eof()); 27002: 27002: 27002: 27002: bool 27002: _M_convert_to_external(char_type*, streamsize); 27002: # 417 "/usr/include/c++/12/fstream" 3 27002: virtual __streambuf_type* 27002: setbuf(char_type* __s, streamsize __n); 27002: 27002: virtual pos_type 27002: seekoff(off_type __off, ios_base::seekdir __way, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out); 27002: 27002: virtual pos_type 27002: seekpos(pos_type __pos, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out); 27002: 27002: 27002: pos_type 27002: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); 27002: 27002: int 27002: _M_get_ext_pos(__state_type &__state); 27002: 27002: virtual int 27002: sync(); 27002: 27002: virtual void 27002: imbue(const locale& __loc); 27002: 27002: virtual streamsize 27002: xsgetn(char_type* __s, streamsize __n); 27002: 27002: virtual streamsize 27002: xsputn(const char_type* __s, streamsize __n); 27002: 27002: 27002: bool 27002: _M_terminate_output(); 27002: # 463 "/usr/include/c++/12/fstream" 3 27002: void 27002: _M_set_buffer(streamsize __off) 27002: { 27002: const bool __testin = _M_mode & ios_base::in; 27002: const bool __testout = (_M_mode & ios_base::out 27002: || _M_mode & ios_base::app); 27002: 27002: if (__testin && __off > 0) 27002: this->setg(_M_buf, _M_buf, _M_buf + __off); 27002: else 27002: this->setg(_M_buf, _M_buf, _M_buf); 27002: 27002: if (__testout && __off == 0 && _M_buf_size > 1 ) 27002: this->setp(_M_buf, _M_buf + _M_buf_size - 1); 27002: else 27002: this->setp(0, 0); 27002: } 27002: }; 27002: # 496 "/usr/include/c++/12/fstream" 3 27002: template 27002: class basic_ifstream : public basic_istream<_CharT, _Traits> 27002: { 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: typedef typename traits_type::int_type int_type; 27002: typedef typename traits_type::pos_type pos_type; 27002: typedef typename traits_type::off_type off_type; 27002: 27002: 27002: typedef basic_filebuf __filebuf_type; 27002: typedef basic_istream __istream_type; 27002: 27002: private: 27002: __filebuf_type _M_filebuf; 27002: 27002: public: 27002: # 523 "/usr/include/c++/12/fstream" 3 27002: basic_ifstream() : __istream_type(), _M_filebuf() 27002: { this->init(&_M_filebuf); } 27002: # 533 "/usr/include/c++/12/fstream" 3 27002: explicit 27002: basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) 27002: : __istream_type(), _M_filebuf() 27002: { 27002: this->init(&_M_filebuf); 27002: this->open(__s, __mode); 27002: } 27002: # 566 "/usr/include/c++/12/fstream" 3 27002: explicit 27002: basic_ifstream(const std::string& __s, 27002: ios_base::openmode __mode = ios_base::in) 27002: : __istream_type(), _M_filebuf() 27002: { 27002: this->init(&_M_filebuf); 27002: this->open(__s, __mode); 27002: } 27002: # 583 "/usr/include/c++/12/fstream" 3 27002: template> 27002: basic_ifstream(const _Path& __s, 27002: ios_base::openmode __mode = ios_base::in) 27002: : basic_ifstream(__s.c_str(), __mode) 27002: { } 27002: 27002: 27002: basic_ifstream(const basic_ifstream&) = delete; 27002: 27002: basic_ifstream(basic_ifstream&& __rhs) 27002: : __istream_type(std::move(__rhs)), 27002: _M_filebuf(std::move(__rhs._M_filebuf)) 27002: { __istream_type::set_rdbuf(&_M_filebuf); } 27002: # 604 "/usr/include/c++/12/fstream" 3 27002: ~basic_ifstream() 27002: { } 27002: 27002: 27002: 27002: 27002: basic_ifstream& 27002: operator=(const basic_ifstream&) = delete; 27002: 27002: basic_ifstream& 27002: operator=(basic_ifstream&& __rhs) 27002: { 27002: __istream_type::operator=(std::move(__rhs)); 27002: _M_filebuf = std::move(__rhs._M_filebuf); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(basic_ifstream& __rhs) 27002: { 27002: __istream_type::swap(__rhs); 27002: _M_filebuf.swap(__rhs._M_filebuf); 27002: } 27002: # 636 "/usr/include/c++/12/fstream" 3 27002: __filebuf_type* 27002: rdbuf() const 27002: { return const_cast<__filebuf_type*>(&_M_filebuf); } 27002: 27002: 27002: 27002: 27002: 27002: bool 27002: is_open() 27002: { return _M_filebuf.is_open(); } 27002: 27002: 27002: 27002: bool 27002: is_open() const 27002: { return _M_filebuf.is_open(); } 27002: # 662 "/usr/include/c++/12/fstream" 3 27002: void 27002: open(const char* __s, ios_base::openmode __mode = ios_base::in) 27002: { 27002: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 27002: this->setstate(ios_base::failbit); 27002: else 27002: 27002: 27002: this->clear(); 27002: } 27002: # 701 "/usr/include/c++/12/fstream" 3 27002: void 27002: open(const std::string& __s, ios_base::openmode __mode = ios_base::in) 27002: { 27002: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 27002: this->setstate(ios_base::failbit); 27002: else 27002: 27002: 27002: this->clear(); 27002: } 27002: # 721 "/usr/include/c++/12/fstream" 3 27002: template 27002: _If_fs_path<_Path, void> 27002: open(const _Path& __s, ios_base::openmode __mode = ios_base::in) 27002: { open(__s.c_str(), __mode); } 27002: # 734 "/usr/include/c++/12/fstream" 3 27002: void 27002: close() 27002: { 27002: if (!_M_filebuf.close()) 27002: this->setstate(ios_base::failbit); 27002: } 27002: }; 27002: # 757 "/usr/include/c++/12/fstream" 3 27002: template 27002: class basic_ofstream : public basic_ostream<_CharT,_Traits> 27002: { 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: typedef typename traits_type::int_type int_type; 27002: typedef typename traits_type::pos_type pos_type; 27002: typedef typename traits_type::off_type off_type; 27002: 27002: 27002: typedef basic_filebuf __filebuf_type; 27002: typedef basic_ostream __ostream_type; 27002: 27002: private: 27002: __filebuf_type _M_filebuf; 27002: 27002: public: 27002: # 784 "/usr/include/c++/12/fstream" 3 27002: basic_ofstream(): __ostream_type(), _M_filebuf() 27002: { this->init(&_M_filebuf); } 27002: # 794 "/usr/include/c++/12/fstream" 3 27002: explicit 27002: basic_ofstream(const char* __s, 27002: ios_base::openmode __mode = ios_base::out) 27002: : __ostream_type(), _M_filebuf() 27002: { 27002: this->init(&_M_filebuf); 27002: this->open(__s, __mode); 27002: } 27002: # 829 "/usr/include/c++/12/fstream" 3 27002: explicit 27002: basic_ofstream(const std::string& __s, 27002: ios_base::openmode __mode = ios_base::out) 27002: : __ostream_type(), _M_filebuf() 27002: { 27002: this->init(&_M_filebuf); 27002: this->open(__s, __mode); 27002: } 27002: # 846 "/usr/include/c++/12/fstream" 3 27002: template> 27002: basic_ofstream(const _Path& __s, 27002: ios_base::openmode __mode = ios_base::out) 27002: : basic_ofstream(__s.c_str(), __mode) 27002: { } 27002: 27002: 27002: basic_ofstream(const basic_ofstream&) = delete; 27002: 27002: basic_ofstream(basic_ofstream&& __rhs) 27002: : __ostream_type(std::move(__rhs)), 27002: _M_filebuf(std::move(__rhs._M_filebuf)) 27002: { __ostream_type::set_rdbuf(&_M_filebuf); } 27002: # 867 "/usr/include/c++/12/fstream" 3 27002: ~basic_ofstream() 27002: { } 27002: 27002: 27002: 27002: 27002: basic_ofstream& 27002: operator=(const basic_ofstream&) = delete; 27002: 27002: basic_ofstream& 27002: operator=(basic_ofstream&& __rhs) 27002: { 27002: __ostream_type::operator=(std::move(__rhs)); 27002: _M_filebuf = std::move(__rhs._M_filebuf); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(basic_ofstream& __rhs) 27002: { 27002: __ostream_type::swap(__rhs); 27002: _M_filebuf.swap(__rhs._M_filebuf); 27002: } 27002: # 899 "/usr/include/c++/12/fstream" 3 27002: __filebuf_type* 27002: rdbuf() const 27002: { return const_cast<__filebuf_type*>(&_M_filebuf); } 27002: 27002: 27002: 27002: 27002: 27002: bool 27002: is_open() 27002: { return _M_filebuf.is_open(); } 27002: 27002: 27002: 27002: bool 27002: is_open() const 27002: { return _M_filebuf.is_open(); } 27002: # 925 "/usr/include/c++/12/fstream" 3 27002: void 27002: open(const char* __s, ios_base::openmode __mode = ios_base::out) 27002: { 27002: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 27002: this->setstate(ios_base::failbit); 27002: else 27002: 27002: 27002: this->clear(); 27002: } 27002: # 964 "/usr/include/c++/12/fstream" 3 27002: void 27002: open(const std::string& __s, ios_base::openmode __mode = ios_base::out) 27002: { 27002: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 27002: this->setstate(ios_base::failbit); 27002: else 27002: 27002: 27002: this->clear(); 27002: } 27002: # 984 "/usr/include/c++/12/fstream" 3 27002: template 27002: _If_fs_path<_Path, void> 27002: open(const _Path& __s, ios_base::openmode __mode = ios_base::out) 27002: { open(__s.c_str(), __mode); } 27002: # 997 "/usr/include/c++/12/fstream" 3 27002: void 27002: close() 27002: { 27002: if (!_M_filebuf.close()) 27002: this->setstate(ios_base::failbit); 27002: } 27002: }; 27002: # 1020 "/usr/include/c++/12/fstream" 3 27002: template 27002: class basic_fstream : public basic_iostream<_CharT, _Traits> 27002: { 27002: public: 27002: 27002: typedef _CharT char_type; 27002: typedef _Traits traits_type; 27002: typedef typename traits_type::int_type int_type; 27002: typedef typename traits_type::pos_type pos_type; 27002: typedef typename traits_type::off_type off_type; 27002: 27002: 27002: typedef basic_filebuf __filebuf_type; 27002: typedef basic_ios __ios_type; 27002: typedef basic_iostream __iostream_type; 27002: 27002: private: 27002: __filebuf_type _M_filebuf; 27002: 27002: public: 27002: # 1048 "/usr/include/c++/12/fstream" 3 27002: basic_fstream() 27002: : __iostream_type(), _M_filebuf() 27002: { this->init(&_M_filebuf); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: explicit 27002: basic_fstream(const char* __s, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out) 27002: : __iostream_type(0), _M_filebuf() 27002: { 27002: this->init(&_M_filebuf); 27002: this->open(__s, __mode); 27002: } 27002: # 1087 "/usr/include/c++/12/fstream" 3 27002: explicit 27002: basic_fstream(const std::string& __s, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out) 27002: : __iostream_type(0), _M_filebuf() 27002: { 27002: this->init(&_M_filebuf); 27002: this->open(__s, __mode); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: template> 27002: basic_fstream(const _Path& __s, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out) 27002: : basic_fstream(__s.c_str(), __mode) 27002: { } 27002: 27002: 27002: basic_fstream(const basic_fstream&) = delete; 27002: 27002: basic_fstream(basic_fstream&& __rhs) 27002: : __iostream_type(std::move(__rhs)), 27002: _M_filebuf(std::move(__rhs._M_filebuf)) 27002: { __iostream_type::set_rdbuf(&_M_filebuf); } 27002: # 1123 "/usr/include/c++/12/fstream" 3 27002: ~basic_fstream() 27002: { } 27002: 27002: 27002: 27002: 27002: basic_fstream& 27002: operator=(const basic_fstream&) = delete; 27002: 27002: basic_fstream& 27002: operator=(basic_fstream&& __rhs) 27002: { 27002: __iostream_type::operator=(std::move(__rhs)); 27002: _M_filebuf = std::move(__rhs._M_filebuf); 27002: return *this; 27002: } 27002: 27002: void 27002: swap(basic_fstream& __rhs) 27002: { 27002: __iostream_type::swap(__rhs); 27002: _M_filebuf.swap(__rhs._M_filebuf); 27002: } 27002: # 1155 "/usr/include/c++/12/fstream" 3 27002: __filebuf_type* 27002: rdbuf() const 27002: { return const_cast<__filebuf_type*>(&_M_filebuf); } 27002: 27002: 27002: 27002: 27002: 27002: bool 27002: is_open() 27002: { return _M_filebuf.is_open(); } 27002: 27002: 27002: 27002: bool 27002: is_open() const 27002: { return _M_filebuf.is_open(); } 27002: # 1181 "/usr/include/c++/12/fstream" 3 27002: void 27002: open(const char* __s, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out) 27002: { 27002: if (!_M_filebuf.open(__s, __mode)) 27002: this->setstate(ios_base::failbit); 27002: else 27002: 27002: 27002: this->clear(); 27002: } 27002: # 1222 "/usr/include/c++/12/fstream" 3 27002: void 27002: open(const std::string& __s, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out) 27002: { 27002: if (!_M_filebuf.open(__s, __mode)) 27002: this->setstate(ios_base::failbit); 27002: else 27002: 27002: 27002: this->clear(); 27002: } 27002: # 1243 "/usr/include/c++/12/fstream" 3 27002: template 27002: _If_fs_path<_Path, void> 27002: open(const _Path& __s, 27002: ios_base::openmode __mode = ios_base::in | ios_base::out) 27002: { open(__s.c_str(), __mode); } 27002: # 1257 "/usr/include/c++/12/fstream" 3 27002: void 27002: close() 27002: { 27002: if (!_M_filebuf.close()) 27002: this->setstate(ios_base::failbit); 27002: } 27002: }; 27002: 27002: 27002: 27002: template 27002: inline void 27002: swap(basic_filebuf<_CharT, _Traits>& __x, 27002: basic_filebuf<_CharT, _Traits>& __y) 27002: { __x.swap(__y); } 27002: 27002: 27002: template 27002: inline void 27002: swap(basic_ifstream<_CharT, _Traits>& __x, 27002: basic_ifstream<_CharT, _Traits>& __y) 27002: { __x.swap(__y); } 27002: 27002: 27002: template 27002: inline void 27002: swap(basic_ofstream<_CharT, _Traits>& __x, 27002: basic_ofstream<_CharT, _Traits>& __y) 27002: { __x.swap(__y); } 27002: 27002: 27002: template 27002: inline void 27002: swap(basic_fstream<_CharT, _Traits>& __x, 27002: basic_fstream<_CharT, _Traits>& __y) 27002: { __x.swap(__y); } 27002: 27002: 27002: 27002: } 27002: 27002: # 1 "/usr/include/c++/12/bits/fstream.tcc" 1 3 27002: # 37 "/usr/include/c++/12/bits/fstream.tcc" 3 27002: 27002: # 38 "/usr/include/c++/12/bits/fstream.tcc" 3 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cerrno" 1 3 27002: # 39 "/usr/include/c++/12/cerrno" 3 27002: 27002: # 40 "/usr/include/c++/12/cerrno" 3 27002: # 42 "/usr/include/c++/12/bits/fstream.tcc" 2 3 27002: 27002: namespace std __attribute__ ((__visibility__ ("default"))) 27002: { 27002: 27002: 27002: template 27002: void 27002: basic_filebuf<_CharT, _Traits>:: 27002: _M_allocate_internal_buffer() 27002: { 27002: 27002: 27002: if (!_M_buf_allocated && !_M_buf) 27002: { 27002: _M_buf = new char_type[_M_buf_size]; 27002: _M_buf_allocated = true; 27002: } 27002: } 27002: 27002: template 27002: void 27002: basic_filebuf<_CharT, _Traits>:: 27002: _M_destroy_internal_buffer() throw() 27002: { 27002: if (_M_buf_allocated) 27002: { 27002: delete [] _M_buf; 27002: _M_buf = 0; 27002: _M_buf_allocated = false; 27002: } 27002: delete [] _M_ext_buf; 27002: _M_ext_buf = 0; 27002: _M_ext_buf_size = 0; 27002: _M_ext_next = 0; 27002: _M_ext_end = 0; 27002: } 27002: 27002: template 27002: basic_filebuf<_CharT, _Traits>:: 27002: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), 27002: _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), 27002: _M_state_last(), _M_buf(0), _M_buf_size(8192), 27002: _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), 27002: _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), 27002: _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), 27002: _M_ext_end(0) 27002: { 27002: if (has_facet<__codecvt_type>(this->_M_buf_locale)) 27002: _M_codecvt = &use_facet<__codecvt_type>(this->_M_buf_locale); 27002: } 27002: 27002: 27002: template 27002: basic_filebuf<_CharT, _Traits>:: 27002: basic_filebuf(basic_filebuf&& __rhs) 27002: : __streambuf_type(__rhs), 27002: _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), 27002: _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), 27002: _M_state_beg(std::move(__rhs._M_state_beg)), 27002: _M_state_cur(std::move(__rhs._M_state_cur)), 27002: _M_state_last(std::move(__rhs._M_state_last)), 27002: _M_buf(std::__exchange(__rhs._M_buf, nullptr)), 27002: _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), 27002: _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), 27002: _M_reading(std::__exchange(__rhs._M_reading, false)), 27002: _M_writing(std::__exchange(__rhs._M_writing, false)), 27002: _M_pback(__rhs._M_pback), 27002: _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), 27002: _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), 27002: _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), 27002: _M_codecvt(__rhs._M_codecvt), 27002: _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), 27002: _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), 27002: _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), 27002: _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) 27002: { 27002: __rhs._M_set_buffer(-1); 27002: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 27002: } 27002: 27002: template 27002: basic_filebuf<_CharT, _Traits>& 27002: basic_filebuf<_CharT, _Traits>:: 27002: operator=(basic_filebuf&& __rhs) 27002: { 27002: this->close(); 27002: __streambuf_type::operator=(__rhs); 27002: _M_file.swap(__rhs._M_file); 27002: _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); 27002: _M_state_beg = std::move(__rhs._M_state_beg); 27002: _M_state_cur = std::move(__rhs._M_state_cur); 27002: _M_state_last = std::move(__rhs._M_state_last); 27002: _M_buf = std::__exchange(__rhs._M_buf, nullptr); 27002: _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); 27002: _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); 27002: _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); 27002: _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); 27002: _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); 27002: _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); 27002: _M_reading = std::__exchange(__rhs._M_reading, false); 27002: _M_writing = std::__exchange(__rhs._M_writing, false); 27002: _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); 27002: _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); 27002: _M_pback_init = std::__exchange(__rhs._M_pback_init, false); 27002: __rhs._M_set_buffer(-1); 27002: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 27002: return *this; 27002: } 27002: 27002: template 27002: void 27002: basic_filebuf<_CharT, _Traits>:: 27002: swap(basic_filebuf& __rhs) 27002: { 27002: __streambuf_type::swap(__rhs); 27002: _M_file.swap(__rhs._M_file); 27002: std::swap(_M_mode, __rhs._M_mode); 27002: std::swap(_M_state_beg, __rhs._M_state_beg); 27002: std::swap(_M_state_cur, __rhs._M_state_cur); 27002: std::swap(_M_state_last, __rhs._M_state_last); 27002: std::swap(_M_buf, __rhs._M_buf); 27002: std::swap(_M_buf_size, __rhs._M_buf_size); 27002: std::swap(_M_buf_allocated, __rhs._M_buf_allocated); 27002: std::swap(_M_ext_buf, __rhs._M_ext_buf); 27002: std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); 27002: std::swap(_M_ext_next, __rhs._M_ext_next); 27002: std::swap(_M_ext_end, __rhs._M_ext_end); 27002: std::swap(_M_reading, __rhs._M_reading); 27002: std::swap(_M_writing, __rhs._M_writing); 27002: std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); 27002: std::swap(_M_pback_end_save, __rhs._M_pback_end_save); 27002: std::swap(_M_pback_init, __rhs._M_pback_init); 27002: } 27002: 27002: 27002: template 27002: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 27002: basic_filebuf<_CharT, _Traits>:: 27002: open(const char* __s, ios_base::openmode __mode) 27002: { 27002: __filebuf_type *__ret = 0; 27002: if (!this->is_open()) 27002: { 27002: _M_file.open(__s, __mode); 27002: if (this->is_open()) 27002: { 27002: _M_allocate_internal_buffer(); 27002: _M_mode = __mode; 27002: 27002: 27002: _M_reading = false; 27002: _M_writing = false; 27002: _M_set_buffer(-1); 27002: 27002: 27002: _M_state_last = _M_state_cur = _M_state_beg; 27002: 27002: 27002: if ((__mode & ios_base::ate) 27002: && this->seekoff(0, ios_base::end, __mode) 27002: == pos_type(off_type(-1))) 27002: this->close(); 27002: else 27002: __ret = this; 27002: } 27002: } 27002: return __ret; 27002: } 27002: # 247 "/usr/include/c++/12/bits/fstream.tcc" 3 27002: template 27002: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 27002: basic_filebuf<_CharT, _Traits>:: 27002: close() 27002: { 27002: if (!this->is_open()) 27002: return 0; 27002: 27002: bool __testfail = false; 27002: { 27002: 27002: struct __close_sentry 27002: { 27002: basic_filebuf *__fb; 27002: __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } 27002: ~__close_sentry () 27002: { 27002: __fb->_M_mode = ios_base::openmode(0); 27002: __fb->_M_pback_init = false; 27002: __fb->_M_destroy_internal_buffer(); 27002: __fb->_M_reading = false; 27002: __fb->_M_writing = false; 27002: __fb->_M_set_buffer(-1); 27002: __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; 27002: } 27002: } __cs (this); 27002: 27002: try 27002: { 27002: if (!_M_terminate_output()) 27002: __testfail = true; 27002: } 27002: catch(...) 27002: { 27002: _M_file.close(); 27002: throw; 27002: } 27002: } 27002: 27002: if (!_M_file.close()) 27002: __testfail = true; 27002: 27002: if (__testfail) 27002: return 0; 27002: else 27002: return this; 27002: } 27002: 27002: template 27002: streamsize 27002: basic_filebuf<_CharT, _Traits>:: 27002: showmanyc() 27002: { 27002: streamsize __ret = -1; 27002: const bool __testin = _M_mode & ios_base::in; 27002: if (__testin && this->is_open()) 27002: { 27002: 27002: 27002: __ret = this->egptr() - this->gptr(); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: if (__check_facet(_M_codecvt).encoding() >= 0) 27002: 27002: __ret += _M_file.showmanyc() / _M_codecvt->max_length(); 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: typename basic_filebuf<_CharT, _Traits>::int_type 27002: basic_filebuf<_CharT, _Traits>:: 27002: underflow() 27002: { 27002: int_type __ret = traits_type::eof(); 27002: const bool __testin = _M_mode & ios_base::in; 27002: if (__testin) 27002: { 27002: if (_M_writing) 27002: { 27002: if (overflow() == traits_type::eof()) 27002: return __ret; 27002: _M_set_buffer(-1); 27002: _M_writing = false; 27002: } 27002: 27002: 27002: 27002: _M_destroy_pback(); 27002: 27002: if (this->gptr() < this->egptr()) 27002: return traits_type::to_int_type(*this->gptr()); 27002: 27002: 27002: const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 27002: 27002: 27002: bool __got_eof = false; 27002: 27002: streamsize __ilen = 0; 27002: codecvt_base::result __r = codecvt_base::ok; 27002: if (__check_facet(_M_codecvt).always_noconv()) 27002: { 27002: __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), 27002: __buflen); 27002: if (__ilen == 0) 27002: __got_eof = true; 27002: } 27002: else 27002: { 27002: 27002: 27002: const int __enc = _M_codecvt->encoding(); 27002: streamsize __blen; 27002: streamsize __rlen; 27002: if (__enc > 0) 27002: __blen = __rlen = __buflen * __enc; 27002: else 27002: { 27002: __blen = __buflen + _M_codecvt->max_length() - 1; 27002: __rlen = __buflen; 27002: } 27002: const streamsize __remainder = _M_ext_end - _M_ext_next; 27002: __rlen = __rlen > __remainder ? __rlen - __remainder : 0; 27002: 27002: 27002: 27002: if (_M_reading && this->egptr() == this->eback() && __remainder) 27002: __rlen = 0; 27002: 27002: 27002: 27002: if (_M_ext_buf_size < __blen) 27002: { 27002: char* __buf = new char[__blen]; 27002: if (__remainder) 27002: __builtin_memcpy(__buf, _M_ext_next, __remainder); 27002: 27002: delete [] _M_ext_buf; 27002: _M_ext_buf = __buf; 27002: _M_ext_buf_size = __blen; 27002: } 27002: else if (__remainder) 27002: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 27002: 27002: _M_ext_next = _M_ext_buf; 27002: _M_ext_end = _M_ext_buf + __remainder; 27002: _M_state_last = _M_state_cur; 27002: 27002: do 27002: { 27002: if (__rlen > 0) 27002: { 27002: 27002: 27002: 27002: if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) 27002: { 27002: __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") 27002: 27002: ); 27002: } 27002: streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); 27002: if (__elen == 0) 27002: __got_eof = true; 27002: else if (__elen == -1) 27002: break; 27002: _M_ext_end += __elen; 27002: } 27002: 27002: char_type* __iend = this->eback(); 27002: if (_M_ext_next < _M_ext_end) 27002: __r = _M_codecvt->in(_M_state_cur, _M_ext_next, 27002: _M_ext_end, _M_ext_next, 27002: this->eback(), 27002: this->eback() + __buflen, __iend); 27002: if (__r == codecvt_base::noconv) 27002: { 27002: size_t __avail = _M_ext_end - _M_ext_buf; 27002: __ilen = std::min(__avail, __buflen); 27002: traits_type::copy(this->eback(), 27002: reinterpret_cast 27002: (_M_ext_buf), __ilen); 27002: _M_ext_next = _M_ext_buf + __ilen; 27002: } 27002: else 27002: __ilen = __iend - this->eback(); 27002: 27002: 27002: 27002: 27002: if (__r == codecvt_base::error) 27002: break; 27002: 27002: __rlen = 1; 27002: } 27002: while (__ilen == 0 && !__got_eof); 27002: } 27002: 27002: if (__ilen > 0) 27002: { 27002: _M_set_buffer(__ilen); 27002: _M_reading = true; 27002: __ret = traits_type::to_int_type(*this->gptr()); 27002: } 27002: else if (__got_eof) 27002: { 27002: 27002: 27002: 27002: _M_set_buffer(-1); 27002: _M_reading = false; 27002: 27002: 27002: if (__r == codecvt_base::partial) 27002: __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") 27002: ); 27002: } 27002: else if (__r == codecvt_base::error) 27002: __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") 27002: ); 27002: else 27002: __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") 27002: , (*__errno_location ())); 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: typename basic_filebuf<_CharT, _Traits>::int_type 27002: basic_filebuf<_CharT, _Traits>:: 27002: pbackfail(int_type __i) 27002: { 27002: int_type __ret = traits_type::eof(); 27002: const bool __testin = _M_mode & ios_base::in; 27002: if (__testin) 27002: { 27002: if (_M_writing) 27002: { 27002: if (overflow() == traits_type::eof()) 27002: return __ret; 27002: _M_set_buffer(-1); 27002: _M_writing = false; 27002: } 27002: 27002: 27002: const bool __testpb = _M_pback_init; 27002: const bool __testeof = traits_type::eq_int_type(__i, __ret); 27002: int_type __tmp; 27002: if (this->eback() < this->gptr()) 27002: { 27002: this->gbump(-1); 27002: __tmp = traits_type::to_int_type(*this->gptr()); 27002: } 27002: else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) 27002: { 27002: __tmp = this->underflow(); 27002: if (traits_type::eq_int_type(__tmp, __ret)) 27002: return __ret; 27002: } 27002: else 27002: { 27002: 27002: 27002: 27002: 27002: 27002: return __ret; 27002: } 27002: 27002: 27002: 27002: if (!__testeof && traits_type::eq_int_type(__i, __tmp)) 27002: __ret = __i; 27002: else if (__testeof) 27002: __ret = traits_type::not_eof(__i); 27002: else if (!__testpb) 27002: { 27002: _M_create_pback(); 27002: _M_reading = true; 27002: *this->gptr() = traits_type::to_char_type(__i); 27002: __ret = __i; 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: typename basic_filebuf<_CharT, _Traits>::int_type 27002: basic_filebuf<_CharT, _Traits>:: 27002: overflow(int_type __c) 27002: { 27002: int_type __ret = traits_type::eof(); 27002: const bool __testeof = traits_type::eq_int_type(__c, __ret); 27002: const bool __testout = (_M_mode & ios_base::out 27002: || _M_mode & ios_base::app); 27002: if (__testout) 27002: { 27002: if (_M_reading) 27002: { 27002: _M_destroy_pback(); 27002: const int __gptr_off = _M_get_ext_pos(_M_state_last); 27002: if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) 27002: == pos_type(off_type(-1))) 27002: return __ret; 27002: } 27002: if (this->pbase() < this->pptr()) 27002: { 27002: 27002: if (!__testeof) 27002: { 27002: *this->pptr() = traits_type::to_char_type(__c); 27002: this->pbump(1); 27002: } 27002: 27002: 27002: 27002: if (_M_convert_to_external(this->pbase(), 27002: this->pptr() - this->pbase())) 27002: { 27002: _M_set_buffer(0); 27002: __ret = traits_type::not_eof(__c); 27002: } 27002: } 27002: else if (_M_buf_size > 1) 27002: { 27002: 27002: 27002: 27002: _M_set_buffer(0); 27002: _M_writing = true; 27002: if (!__testeof) 27002: { 27002: *this->pptr() = traits_type::to_char_type(__c); 27002: this->pbump(1); 27002: } 27002: __ret = traits_type::not_eof(__c); 27002: } 27002: else 27002: { 27002: 27002: char_type __conv = traits_type::to_char_type(__c); 27002: if (__testeof || _M_convert_to_external(&__conv, 1)) 27002: { 27002: _M_writing = true; 27002: __ret = traits_type::not_eof(__c); 27002: } 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: bool 27002: basic_filebuf<_CharT, _Traits>:: 27002: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) 27002: { 27002: 27002: streamsize __elen; 27002: streamsize __plen; 27002: if (__check_facet(_M_codecvt).always_noconv()) 27002: { 27002: __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); 27002: __plen = __ilen; 27002: } 27002: else 27002: { 27002: 27002: 27002: streamsize __blen = __ilen * _M_codecvt->max_length(); 27002: char* __buf = static_cast(__builtin_alloca(__blen)); 27002: 27002: char* __bend; 27002: const char_type* __iend; 27002: codecvt_base::result __r; 27002: __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, 27002: __iend, __buf, __buf + __blen, __bend); 27002: 27002: if (__r == codecvt_base::ok || __r == codecvt_base::partial) 27002: __blen = __bend - __buf; 27002: else if (__r == codecvt_base::noconv) 27002: { 27002: 27002: __buf = reinterpret_cast(__ibuf); 27002: __blen = __ilen; 27002: } 27002: else 27002: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 27002: ); 27002: 27002: __elen = _M_file.xsputn(__buf, __blen); 27002: __plen = __blen; 27002: 27002: 27002: if (__r == codecvt_base::partial && __elen == __plen) 27002: { 27002: const char_type* __iresume = __iend; 27002: streamsize __rlen = this->pptr() - __iend; 27002: __r = _M_codecvt->out(_M_state_cur, __iresume, 27002: __iresume + __rlen, __iend, __buf, 27002: __buf + __blen, __bend); 27002: if (__r != codecvt_base::error) 27002: { 27002: __rlen = __bend - __buf; 27002: __elen = _M_file.xsputn(__buf, __rlen); 27002: __plen = __rlen; 27002: } 27002: else 27002: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 27002: ); 27002: } 27002: } 27002: return __elen == __plen; 27002: } 27002: 27002: template 27002: streamsize 27002: basic_filebuf<_CharT, _Traits>:: 27002: xsgetn(_CharT* __s, streamsize __n) 27002: { 27002: 27002: streamsize __ret = 0; 27002: if (_M_pback_init) 27002: { 27002: if (__n > 0 && this->gptr() == this->eback()) 27002: { 27002: *__s++ = *this->gptr(); 27002: this->gbump(1); 27002: __ret = 1; 27002: --__n; 27002: } 27002: _M_destroy_pback(); 27002: } 27002: else if (_M_writing) 27002: { 27002: if (overflow() == traits_type::eof()) 27002: return __ret; 27002: _M_set_buffer(-1); 27002: _M_writing = false; 27002: } 27002: 27002: 27002: 27002: 27002: const bool __testin = _M_mode & ios_base::in; 27002: const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 27002: 27002: if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() 27002: && __testin) 27002: { 27002: 27002: const streamsize __avail = this->egptr() - this->gptr(); 27002: if (__avail != 0) 27002: { 27002: traits_type::copy(__s, this->gptr(), __avail); 27002: __s += __avail; 27002: this->setg(this->eback(), this->gptr() + __avail, this->egptr()); 27002: __ret += __avail; 27002: __n -= __avail; 27002: } 27002: 27002: 27002: 27002: streamsize __len; 27002: for (;;) 27002: { 27002: __len = _M_file.xsgetn(reinterpret_cast(__s), __n); 27002: if (__len == -1) 27002: __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") 27002: , (*__errno_location ())); 27002: if (__len == 0) 27002: break; 27002: 27002: __n -= __len; 27002: __ret += __len; 27002: if (__n == 0) 27002: break; 27002: 27002: __s += __len; 27002: } 27002: 27002: if (__n == 0) 27002: { 27002: 27002: _M_reading = true; 27002: } 27002: else if (__len == 0) 27002: { 27002: 27002: 27002: 27002: _M_set_buffer(-1); 27002: _M_reading = false; 27002: } 27002: } 27002: else 27002: __ret += __streambuf_type::xsgetn(__s, __n); 27002: 27002: return __ret; 27002: } 27002: 27002: template 27002: streamsize 27002: basic_filebuf<_CharT, _Traits>:: 27002: xsputn(const _CharT* __s, streamsize __n) 27002: { 27002: streamsize __ret = 0; 27002: 27002: 27002: 27002: const bool __testout = (_M_mode & ios_base::out 27002: || _M_mode & ios_base::app); 27002: if (__check_facet(_M_codecvt).always_noconv() 27002: && __testout && !_M_reading) 27002: { 27002: 27002: const streamsize __chunk = 1ul << 10; 27002: streamsize __bufavail = this->epptr() - this->pptr(); 27002: 27002: 27002: if (!_M_writing && _M_buf_size > 1) 27002: __bufavail = _M_buf_size - 1; 27002: 27002: const streamsize __limit = std::min(__chunk, __bufavail); 27002: if (__n >= __limit) 27002: { 27002: const streamsize __buffill = this->pptr() - this->pbase(); 27002: const char* __buf = reinterpret_cast(this->pbase()); 27002: __ret = _M_file.xsputn_2(__buf, __buffill, 27002: reinterpret_cast(__s), 27002: __n); 27002: if (__ret == __buffill + __n) 27002: { 27002: _M_set_buffer(0); 27002: _M_writing = true; 27002: } 27002: if (__ret > __buffill) 27002: __ret -= __buffill; 27002: else 27002: __ret = 0; 27002: } 27002: else 27002: __ret = __streambuf_type::xsputn(__s, __n); 27002: } 27002: else 27002: __ret = __streambuf_type::xsputn(__s, __n); 27002: return __ret; 27002: } 27002: 27002: template 27002: typename basic_filebuf<_CharT, _Traits>::__streambuf_type* 27002: basic_filebuf<_CharT, _Traits>:: 27002: setbuf(char_type* __s, streamsize __n) 27002: { 27002: if (!this->is_open()) 27002: { 27002: if (__s == 0 && __n == 0) 27002: _M_buf_size = 1; 27002: else if (__s && __n > 0) 27002: { 27002: # 820 "/usr/include/c++/12/bits/fstream.tcc" 3 27002: _M_buf = __s; 27002: _M_buf_size = __n; 27002: } 27002: } 27002: return this; 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: typename basic_filebuf<_CharT, _Traits>::pos_type 27002: basic_filebuf<_CharT, _Traits>:: 27002: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) 27002: { 27002: int __width = 0; 27002: if (_M_codecvt) 27002: __width = _M_codecvt->encoding(); 27002: if (__width < 0) 27002: __width = 0; 27002: 27002: pos_type __ret = pos_type(off_type(-1)); 27002: const bool __testfail = __off != 0 && __width <= 0; 27002: if (this->is_open() && !__testfail) 27002: { 27002: 27002: 27002: 27002: 27002: bool __no_movement = __way == ios_base::cur && __off == 0 27002: && (!_M_writing || _M_codecvt->always_noconv()); 27002: 27002: 27002: if (!__no_movement) 27002: _M_destroy_pback(); 27002: 27002: 27002: 27002: 27002: 27002: 27002: __state_type __state = _M_state_beg; 27002: off_type __computed_off = __off * __width; 27002: if (_M_reading && __way == ios_base::cur) 27002: { 27002: __state = _M_state_last; 27002: __computed_off += _M_get_ext_pos(__state); 27002: } 27002: if (!__no_movement) 27002: __ret = _M_seek(__computed_off, __way, __state); 27002: else 27002: { 27002: if (_M_writing) 27002: __computed_off = this->pptr() - this->pbase(); 27002: 27002: off_type __file_off = _M_file.seekoff(0, ios_base::cur); 27002: if (__file_off != off_type(-1)) 27002: { 27002: __ret = __file_off + __computed_off; 27002: __ret.state(__state); 27002: } 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: template 27002: typename basic_filebuf<_CharT, _Traits>::pos_type 27002: basic_filebuf<_CharT, _Traits>:: 27002: seekpos(pos_type __pos, ios_base::openmode) 27002: { 27002: pos_type __ret = pos_type(off_type(-1)); 27002: if (this->is_open()) 27002: { 27002: 27002: _M_destroy_pback(); 27002: __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: typename basic_filebuf<_CharT, _Traits>::pos_type 27002: basic_filebuf<_CharT, _Traits>:: 27002: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) 27002: { 27002: pos_type __ret = pos_type(off_type(-1)); 27002: if (_M_terminate_output()) 27002: { 27002: off_type __file_off = _M_file.seekoff(__off, __way); 27002: if (__file_off != off_type(-1)) 27002: { 27002: _M_reading = false; 27002: _M_writing = false; 27002: _M_ext_next = _M_ext_end = _M_ext_buf; 27002: _M_set_buffer(-1); 27002: _M_state_cur = __state; 27002: __ret = __file_off; 27002: __ret.state(_M_state_cur); 27002: } 27002: } 27002: return __ret; 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: int basic_filebuf<_CharT, _Traits>:: 27002: _M_get_ext_pos(__state_type& __state) 27002: { 27002: if (_M_codecvt->always_noconv()) 27002: return this->gptr() - this->egptr(); 27002: else 27002: { 27002: 27002: 27002: 27002: const int __gptr_off = 27002: _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, 27002: this->gptr() - this->eback()); 27002: return _M_ext_buf + __gptr_off - _M_ext_end; 27002: } 27002: } 27002: 27002: template 27002: bool 27002: basic_filebuf<_CharT, _Traits>:: 27002: _M_terminate_output() 27002: { 27002: 27002: bool __testvalid = true; 27002: if (this->pbase() < this->pptr()) 27002: { 27002: const int_type __tmp = this->overflow(); 27002: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 27002: __testvalid = false; 27002: } 27002: 27002: 27002: if (_M_writing && !__check_facet(_M_codecvt).always_noconv() 27002: && __testvalid) 27002: { 27002: 27002: 27002: 27002: const size_t __blen = 128; 27002: char __buf[__blen]; 27002: codecvt_base::result __r; 27002: streamsize __ilen = 0; 27002: 27002: do 27002: { 27002: char* __next; 27002: __r = _M_codecvt->unshift(_M_state_cur, __buf, 27002: __buf + __blen, __next); 27002: if (__r == codecvt_base::error) 27002: __testvalid = false; 27002: else if (__r == codecvt_base::ok || 27002: __r == codecvt_base::partial) 27002: { 27002: __ilen = __next - __buf; 27002: if (__ilen > 0) 27002: { 27002: const streamsize __elen = _M_file.xsputn(__buf, __ilen); 27002: if (__elen != __ilen) 27002: __testvalid = false; 27002: } 27002: } 27002: } 27002: while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); 27002: 27002: if (__testvalid) 27002: { 27002: 27002: 27002: 27002: 27002: const int_type __tmp = this->overflow(); 27002: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 27002: __testvalid = false; 27002: } 27002: } 27002: return __testvalid; 27002: } 27002: 27002: template 27002: int 27002: basic_filebuf<_CharT, _Traits>:: 27002: sync() 27002: { 27002: 27002: 27002: int __ret = 0; 27002: if (this->pbase() < this->pptr()) 27002: { 27002: const int_type __tmp = this->overflow(); 27002: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 27002: __ret = -1; 27002: } 27002: return __ret; 27002: } 27002: 27002: template 27002: void 27002: basic_filebuf<_CharT, _Traits>:: 27002: imbue(const locale& __loc) 27002: { 27002: bool __testvalid = true; 27002: 27002: const __codecvt_type* _M_codecvt_tmp = 0; 27002: if (__builtin_expect(has_facet<__codecvt_type>(__loc), true)) 27002: _M_codecvt_tmp = &use_facet<__codecvt_type>(__loc); 27002: 27002: if (this->is_open()) 27002: { 27002: 27002: if ((_M_reading || _M_writing) 27002: && __check_facet(_M_codecvt).encoding() == -1) 27002: __testvalid = false; 27002: else 27002: { 27002: if (_M_reading) 27002: { 27002: if (__check_facet(_M_codecvt).always_noconv()) 27002: { 27002: if (_M_codecvt_tmp 27002: && !__check_facet(_M_codecvt_tmp).always_noconv()) 27002: __testvalid = this->seekoff(0, ios_base::cur, _M_mode) 27002: != pos_type(off_type(-1)); 27002: } 27002: else 27002: { 27002: 27002: _M_ext_next = _M_ext_buf 27002: + _M_codecvt->length(_M_state_last, _M_ext_buf, 27002: _M_ext_next, 27002: this->gptr() - this->eback()); 27002: const streamsize __remainder = _M_ext_end - _M_ext_next; 27002: if (__remainder) 27002: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 27002: 27002: _M_ext_next = _M_ext_buf; 27002: _M_ext_end = _M_ext_buf + __remainder; 27002: _M_set_buffer(-1); 27002: _M_state_last = _M_state_cur = _M_state_beg; 27002: } 27002: } 27002: else if (_M_writing && (__testvalid = _M_terminate_output())) 27002: _M_set_buffer(-1); 27002: } 27002: } 27002: 27002: if (__testvalid) 27002: _M_codecvt = _M_codecvt_tmp; 27002: else 27002: _M_codecvt = 0; 27002: } 27002: 27002: 27002: 27002: 27002: extern template class basic_filebuf; 27002: extern template class basic_ifstream; 27002: extern template class basic_ofstream; 27002: extern template class basic_fstream; 27002: 27002: 27002: extern template class basic_filebuf; 27002: extern template class basic_ifstream; 27002: extern template class basic_ofstream; 27002: extern template class basic_fstream; 27002: 27002: 27002: 27002: 27002: } 27002: # 1299 "/usr/include/c++/12/fstream" 2 3 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/monitoring/instrumented_mutex.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/monitoring/instrumented_mutex.h" 27002: 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/monitoring/instrumented_mutex.h" 27002: namespace rocksdb { 27002: class InstrumentedCondVar; 27002: 27002: 27002: 27002: class InstrumentedMutex { 27002: public: 27002: explicit InstrumentedMutex(bool adaptive = false) 27002: : mutex_(adaptive), stats_(nullptr), clock_(nullptr), stats_code_(0) {} 27002: 27002: explicit InstrumentedMutex(SystemClock* clock, bool adaptive = false) 27002: : mutex_(adaptive), stats_(nullptr), clock_(clock), stats_code_(0) {} 27002: 27002: InstrumentedMutex(Statistics* stats, SystemClock* clock, int stats_code, 27002: bool adaptive = false) 27002: : mutex_(adaptive), 27002: stats_(stats), 27002: clock_(clock), 27002: stats_code_(stats_code) {} 27002: # 45 "/build/reproducible-path/rocksdb-7.8.3/monitoring/instrumented_mutex.h" 27002: void Lock(); 27002: 27002: void Unlock() { mutex_.Unlock(); } 27002: 27002: void AssertHeld() { 27002: mutex_.AssertHeld(); 27002: } 27002: 27002: private: 27002: void LockInternal(); 27002: friend class InstrumentedCondVar; 27002: port::Mutex mutex_; 27002: Statistics* stats_; 27002: SystemClock* clock_; 27002: int stats_code_; 27002: 27002: 27002: 27002: }; 27002: 27002: class alignas(64U) CacheAlignedInstrumentedMutex 27002: : public InstrumentedMutex { 27002: using InstrumentedMutex::InstrumentedMutex; 27002: }; 27002: static_assert(alignof(CacheAlignedInstrumentedMutex) != 64U || 27002: sizeof(CacheAlignedInstrumentedMutex) % 64U == 0); 27002: 27002: 27002: class InstrumentedMutexLock { 27002: public: 27002: explicit InstrumentedMutexLock(InstrumentedMutex* mutex) : mutex_(mutex) { 27002: mutex_->Lock(); 27002: } 27002: 27002: ~InstrumentedMutexLock() { 27002: mutex_->Unlock(); 27002: } 27002: 27002: private: 27002: InstrumentedMutex* const mutex_; 27002: InstrumentedMutexLock(const InstrumentedMutexLock&) = delete; 27002: void operator=(const InstrumentedMutexLock&) = delete; 27002: }; 27002: 27002: 27002: 27002: class InstrumentedMutexUnlock { 27002: public: 27002: explicit InstrumentedMutexUnlock(InstrumentedMutex* mutex) : mutex_(mutex) { 27002: mutex_->Unlock(); 27002: } 27002: 27002: ~InstrumentedMutexUnlock() { mutex_->Lock(); } 27002: 27002: private: 27002: InstrumentedMutex* const mutex_; 27002: InstrumentedMutexUnlock(const InstrumentedMutexUnlock&) = delete; 27002: void operator=(const InstrumentedMutexUnlock&) = delete; 27002: }; 27002: 27002: class InstrumentedCondVar { 27002: public: 27002: explicit InstrumentedCondVar(InstrumentedMutex* instrumented_mutex) 27002: : cond_(&(instrumented_mutex->mutex_)), 27002: stats_(instrumented_mutex->stats_), 27002: clock_(instrumented_mutex->clock_), 27002: stats_code_(instrumented_mutex->stats_code_) {} 27002: 27002: void Wait(); 27002: 27002: bool TimedWait(uint64_t abs_time_us); 27002: 27002: void Signal() { 27002: cond_.Signal(); 27002: } 27002: 27002: void SignalAll() { 27002: cond_.SignalAll(); 27002: } 27002: 27002: private: 27002: void WaitInternal(); 27002: bool TimedWaitInternal(uint64_t abs_time_us); 27002: port::CondVar cond_; 27002: Statistics* stats_; 27002: SystemClock* clock_; 27002: int stats_code_; 27002: }; 27002: 27002: } 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 2 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/trace_record.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/trace_record.h" 27002: namespace rocksdb { 27002: 27002: class ColumnFamilyHandle; 27002: class DB; 27002: 27002: 27002: enum TraceType : char { 27002: kTraceNone = 0, 27002: kTraceBegin = 1, 27002: kTraceEnd = 2, 27002: 27002: kTraceWrite = 3, 27002: kTraceGet = 4, 27002: kTraceIteratorSeek = 5, 27002: kTraceIteratorSeekForPrev = 6, 27002: 27002: kBlockTraceIndexBlock = 7, 27002: 27002: kBlockTraceFilterBlock = 8, 27002: kBlockTraceDataBlock = 9, 27002: kBlockTraceUncompressionDictBlock = 10, 27002: kBlockTraceRangeDeletionBlock = 11, 27002: 27002: kIOTracer = 12, 27002: 27002: kTraceMultiGet = 13, 27002: 27002: kTraceMax, 27002: }; 27002: 27002: class GetQueryTraceRecord; 27002: class IteratorSeekQueryTraceRecord; 27002: class MultiGetQueryTraceRecord; 27002: class TraceRecordResult; 27002: class WriteQueryTraceRecord; 27002: 27002: 27002: class TraceRecord { 27002: public: 27002: explicit TraceRecord(uint64_t timestamp); 27002: 27002: virtual ~TraceRecord() = default; 27002: 27002: 27002: virtual TraceType GetTraceType() const = 0; 27002: 27002: 27002: virtual uint64_t GetTimestamp() const; 27002: 27002: class Handler { 27002: public: 27002: virtual ~Handler() = default; 27002: 27002: virtual Status Handle(const WriteQueryTraceRecord& record, 27002: std::unique_ptr* result) = 0; 27002: 27002: virtual Status Handle(const GetQueryTraceRecord& record, 27002: std::unique_ptr* result) = 0; 27002: 27002: virtual Status Handle(const IteratorSeekQueryTraceRecord& record, 27002: std::unique_ptr* result) = 0; 27002: 27002: virtual Status Handle(const MultiGetQueryTraceRecord& record, 27002: std::unique_ptr* result) = 0; 27002: }; 27002: 27002: 27002: virtual Status Accept(Handler* handler, 27002: std::unique_ptr* result) = 0; 27002: 27002: 27002: static Handler* NewExecutionHandler( 27002: DB* db, const std::vector& handles); 27002: 27002: private: 27002: uint64_t timestamp_; 27002: }; 27002: 27002: 27002: class QueryTraceRecord : public TraceRecord { 27002: public: 27002: explicit QueryTraceRecord(uint64_t timestamp); 27002: }; 27002: 27002: 27002: class WriteQueryTraceRecord : public QueryTraceRecord { 27002: public: 27002: WriteQueryTraceRecord(PinnableSlice&& write_batch_rep, uint64_t timestamp); 27002: 27002: WriteQueryTraceRecord(const std::string& write_batch_rep, uint64_t timestamp); 27002: 27002: virtual ~WriteQueryTraceRecord() override; 27002: 27002: TraceType GetTraceType() const override { return kTraceWrite; } 27002: 27002: 27002: virtual Slice GetWriteBatchRep() const; 27002: 27002: Status Accept(Handler* handler, 27002: std::unique_ptr* result) override; 27002: 27002: private: 27002: PinnableSlice rep_; 27002: }; 27002: 27002: 27002: class GetQueryTraceRecord : public QueryTraceRecord { 27002: public: 27002: GetQueryTraceRecord(uint32_t column_family_id, PinnableSlice&& key, 27002: uint64_t timestamp); 27002: 27002: GetQueryTraceRecord(uint32_t column_family_id, const std::string& key, 27002: uint64_t timestamp); 27002: 27002: virtual ~GetQueryTraceRecord() override; 27002: 27002: TraceType GetTraceType() const override { return kTraceGet; } 27002: 27002: 27002: virtual uint32_t GetColumnFamilyID() const; 27002: 27002: 27002: virtual Slice GetKey() const; 27002: 27002: Status Accept(Handler* handler, 27002: std::unique_ptr* result) override; 27002: 27002: private: 27002: uint32_t cf_id_; 27002: PinnableSlice key_; 27002: }; 27002: 27002: 27002: class IteratorQueryTraceRecord : public QueryTraceRecord { 27002: public: 27002: explicit IteratorQueryTraceRecord(uint64_t timestamp); 27002: 27002: IteratorQueryTraceRecord(PinnableSlice&& lower_bound, 27002: PinnableSlice&& upper_bound, uint64_t timestamp); 27002: 27002: IteratorQueryTraceRecord(const std::string& lower_bound, 27002: const std::string& upper_bound, uint64_t timestamp); 27002: 27002: virtual ~IteratorQueryTraceRecord() override; 27002: 27002: 27002: 27002: virtual Slice GetLowerBound() const; 27002: virtual Slice GetUpperBound() const; 27002: 27002: private: 27002: PinnableSlice lower_; 27002: PinnableSlice upper_; 27002: }; 27002: 27002: 27002: class IteratorSeekQueryTraceRecord : public IteratorQueryTraceRecord { 27002: public: 27002: 27002: enum SeekType { 27002: kSeek = kTraceIteratorSeek, 27002: kSeekForPrev = kTraceIteratorSeekForPrev 27002: }; 27002: 27002: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 27002: PinnableSlice&& key, uint64_t timestamp); 27002: 27002: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 27002: const std::string& key, uint64_t timestamp); 27002: 27002: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 27002: PinnableSlice&& key, PinnableSlice&& lower_bound, 27002: PinnableSlice&& upper_bound, uint64_t timestamp); 27002: 27002: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 27002: const std::string& key, 27002: const std::string& lower_bound, 27002: const std::string& upper_bound, 27002: uint64_t timestamp); 27002: 27002: virtual ~IteratorSeekQueryTraceRecord() override; 27002: 27002: 27002: TraceType GetTraceType() const override; 27002: 27002: 27002: virtual SeekType GetSeekType() const; 27002: 27002: 27002: virtual uint32_t GetColumnFamilyID() const; 27002: 27002: 27002: virtual Slice GetKey() const; 27002: 27002: Status Accept(Handler* handler, 27002: std::unique_ptr* result) override; 27002: 27002: private: 27002: SeekType type_; 27002: uint32_t cf_id_; 27002: PinnableSlice key_; 27002: }; 27002: 27002: 27002: class MultiGetQueryTraceRecord : public QueryTraceRecord { 27002: public: 27002: MultiGetQueryTraceRecord(std::vector column_family_ids, 27002: std::vector&& keys, 27002: uint64_t timestamp); 27002: 27002: MultiGetQueryTraceRecord(std::vector column_family_ids, 27002: const std::vector& keys, 27002: uint64_t timestamp); 27002: 27002: virtual ~MultiGetQueryTraceRecord() override; 27002: 27002: TraceType GetTraceType() const override { return kTraceMultiGet; } 27002: 27002: 27002: virtual std::vector GetColumnFamilyIDs() const; 27002: 27002: 27002: virtual std::vector GetKeys() const; 27002: 27002: Status Accept(Handler* handler, 27002: std::unique_ptr* result) override; 27002: 27002: private: 27002: std::vector cf_ids_; 27002: std::vector keys_; 27002: }; 27002: 27002: } 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/trace_replay.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/trace_replay.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/utilities/replayer.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/utilities/replayer.h" 27002: namespace rocksdb { 27002: 27002: class TraceRecord; 27002: class TraceRecordResult; 27002: 27002: struct ReplayOptions { 27002: 27002: 27002: uint32_t num_threads; 27002: 27002: 27002: 27002: 27002: 27002: 27002: double fast_forward; 27002: 27002: ReplayOptions() : num_threads(1), fast_forward(1.0) {} 27002: 27002: ReplayOptions(uint32_t num_of_threads, double fast_forward_ratio) 27002: : num_threads(num_of_threads), fast_forward(fast_forward_ratio) {} 27002: }; 27002: 27002: 27002: 27002: 27002: class Replayer { 27002: public: 27002: virtual ~Replayer() = default; 27002: 27002: 27002: 27002: virtual Status Prepare() = 0; 27002: 27002: 27002: virtual uint64_t GetHeaderTimestamp() const = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status Next(std::unique_ptr* record) = 0; 27002: # 72 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/utilities/replayer.h" 27002: virtual Status Execute(const std::unique_ptr& record, 27002: std::unique_ptr* result) = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status Replay( 27002: const ReplayOptions& options, 27002: const std::function&&)>& 27002: result_callback) = 0; 27002: }; 27002: 27002: } 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/trace_replay.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: class ColumnFamilyHandle; 27002: class ColumnFamilyData; 27002: class DB; 27002: class DBImpl; 27002: class Env; 27002: class Slice; 27002: class SystemClock; 27002: class TraceReader; 27002: class TraceWriter; 27002: class WriteBatch; 27002: 27002: struct ReadOptions; 27002: struct TraceOptions; 27002: struct WriteOptions; 27002: 27002: extern const std::string kTraceMagic; 27002: const unsigned int kTraceTimestampSize = 8; 27002: const unsigned int kTraceTypeSize = 1; 27002: const unsigned int kTracePayloadLengthSize = 4; 27002: const unsigned int kTraceMetadataSize = 27002: kTraceTimestampSize + kTraceTypeSize + kTracePayloadLengthSize; 27002: 27002: static const int kTraceFileMajorVersion = 0; 27002: static const int kTraceFileMinorVersion = 2; 27002: 27002: 27002: struct Trace { 27002: uint64_t ts; 27002: TraceType type; 27002: 27002: 27002: 27002: 27002: uint64_t payload_map = 0; 27002: 27002: 27002: std::string payload; 27002: 27002: void reset() { 27002: ts = 0; 27002: type = kTraceMax; 27002: payload_map = 0; 27002: payload.clear(); 27002: } 27002: }; 27002: 27002: enum TracePayloadType : char { 27002: 27002: 27002: kEmptyPayload = 0, 27002: kWriteBatchData = 1, 27002: kGetCFID = 2, 27002: kGetKey = 3, 27002: kIterCFID = 4, 27002: kIterKey = 5, 27002: kIterLowerBound = 6, 27002: kIterUpperBound = 7, 27002: kMultiGetSize = 8, 27002: kMultiGetCFIDs = 9, 27002: kMultiGetKeys = 10, 27002: }; 27002: 27002: class TracerHelper { 27002: public: 27002: 27002: static Status ParseVersionStr(std::string& v_string, int* v_num); 27002: 27002: 27002: static Status ParseTraceHeader(const Trace& header, int* trace_version, 27002: int* db_version); 27002: 27002: 27002: static void EncodeTrace(const Trace& trace, std::string* encoded_trace); 27002: 27002: 27002: static Status DecodeTrace(const std::string& encoded_trace, Trace* trace); 27002: 27002: 27002: static Status DecodeHeader(const std::string& encoded_trace, Trace* header); 27002: 27002: 27002: static bool SetPayloadMap(uint64_t& payload_map, 27002: const TracePayloadType payload_type); 27002: 27002: 27002: 27002: 27002: 27002: static Status DecodeTraceRecord(Trace* trace, int trace_file_version, 27002: std::unique_ptr* record); 27002: }; 27002: 27002: 27002: 27002: 27002: class Tracer { 27002: public: 27002: Tracer(SystemClock* clock, const TraceOptions& trace_options, 27002: std::unique_ptr&& trace_writer); 27002: ~Tracer(); 27002: 27002: 27002: Status Write(WriteBatch* write_batch); 27002: 27002: 27002: Status Get(ColumnFamilyHandle* cfname, const Slice& key); 27002: 27002: 27002: Status IteratorSeek(const uint32_t& cf_id, const Slice& key, 27002: const Slice& lower_bound, const Slice upper_bound); 27002: Status IteratorSeekForPrev(const uint32_t& cf_id, const Slice& key, 27002: const Slice& lower_bound, const Slice upper_bound); 27002: 27002: 27002: 27002: Status MultiGet(const size_t num_keys, ColumnFamilyHandle** column_families, 27002: const Slice* keys); 27002: 27002: Status MultiGet(const size_t num_keys, ColumnFamilyHandle* column_family, 27002: const Slice* keys); 27002: 27002: Status MultiGet(const std::vector& column_family, 27002: const std::vector& keys); 27002: 27002: 27002: 27002: bool IsTraceFileOverMax(); 27002: 27002: 27002: 27002: bool IsWriteOrderPreserved() { return trace_options_.preserve_write_order; } 27002: 27002: 27002: Status Close(); 27002: 27002: private: 27002: 27002: 27002: 27002: Status WriteHeader(); 27002: 27002: 27002: Status WriteFooter(); 27002: 27002: 27002: 27002: Status WriteTrace(const Trace& trace); 27002: 27002: 27002: 27002: bool ShouldSkipTrace(const TraceType& type); 27002: 27002: SystemClock* clock_; 27002: TraceOptions trace_options_; 27002: std::unique_ptr trace_writer_; 27002: uint64_t trace_request_count_; 27002: }; 27002: 27002: } 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 2 27002: 27002: namespace rocksdb { 27002: class SystemClock; 27002: class TraceReader; 27002: class TraceWriter; 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 27002: enum IOTraceOp : char { 27002: 27002: 27002: kIOFileSize = 0, 27002: kIOLen = 1, 27002: kIOOffset = 2, 27002: }; 27002: 27002: struct IOTraceRecord { 27002: 27002: uint64_t access_timestamp = 0; 27002: TraceType trace_type = TraceType::kTraceMax; 27002: 27002: 27002: 27002: uint64_t io_op_data = 0; 27002: std::string file_operation; 27002: uint64_t latency = 0; 27002: std::string io_status; 27002: 27002: std::string file_name; 27002: 27002: 27002: uint64_t len = 0; 27002: uint64_t offset = 0; 27002: uint64_t file_size = 0; 27002: 27002: 27002: uint64_t trace_data = 0; 27002: std::string request_id; 27002: 27002: IOTraceRecord() {} 27002: 27002: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 27002: const uint64_t& _io_op_data, const std::string& _file_operation, 27002: const uint64_t& _latency, const std::string& _io_status, 27002: const std::string& _file_name, const uint64_t& _file_size = 0) 27002: : access_timestamp(_access_timestamp), 27002: trace_type(_trace_type), 27002: io_op_data(_io_op_data), 27002: file_operation(_file_operation), 27002: latency(_latency), 27002: io_status(_io_status), 27002: file_name(_file_name), 27002: file_size(_file_size) {} 27002: 27002: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 27002: const uint64_t& _io_op_data, const std::string& _file_operation, 27002: const uint64_t& _latency, const std::string& _io_status, 27002: const std::string& _file_name, const uint64_t& _len, 27002: const uint64_t& _offset) 27002: : access_timestamp(_access_timestamp), 27002: trace_type(_trace_type), 27002: io_op_data(_io_op_data), 27002: file_operation(_file_operation), 27002: latency(_latency), 27002: io_status(_io_status), 27002: file_name(_file_name), 27002: len(_len), 27002: offset(_offset) {} 27002: }; 27002: 27002: struct IOTraceHeader { 27002: uint64_t start_time; 27002: uint32_t rocksdb_major_version; 27002: uint32_t rocksdb_minor_version; 27002: }; 27002: 27002: 27002: 27002: class IOTraceWriter { 27002: public: 27002: IOTraceWriter(SystemClock* clock, const TraceOptions& trace_options, 27002: std::unique_ptr&& trace_writer); 27002: ~IOTraceWriter() = default; 27002: 27002: IOTraceWriter(const IOTraceWriter&) = delete; 27002: IOTraceWriter& operator=(const IOTraceWriter&) = delete; 27002: IOTraceWriter(IOTraceWriter&&) = delete; 27002: IOTraceWriter& operator=(IOTraceWriter&&) = delete; 27002: 27002: Status WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 27002: 27002: 27002: 27002: Status WriteHeader(); 27002: 27002: private: 27002: SystemClock* clock_; 27002: TraceOptions trace_options_; 27002: std::unique_ptr trace_writer_; 27002: }; 27002: 27002: 27002: class IOTraceReader { 27002: public: 27002: explicit IOTraceReader(std::unique_ptr&& reader); 27002: ~IOTraceReader() = default; 27002: 27002: IOTraceReader(const IOTraceReader&) = delete; 27002: IOTraceReader& operator=(const IOTraceReader&) = delete; 27002: IOTraceReader(IOTraceReader&&) = delete; 27002: IOTraceReader& operator=(IOTraceReader&&) = delete; 27002: 27002: Status ReadHeader(IOTraceHeader* header); 27002: 27002: Status ReadIOOp(IOTraceRecord* record); 27002: 27002: private: 27002: std::unique_ptr trace_reader_; 27002: }; 27002: 27002: 27002: 27002: class IOTracer { 27002: public: 27002: IOTracer(); 27002: ~IOTracer(); 27002: 27002: IOTracer(const IOTracer&) = delete; 27002: IOTracer& operator=(const IOTracer&) = delete; 27002: IOTracer(IOTracer&&) = delete; 27002: IOTracer& operator=(IOTracer&&) = delete; 27002: # 163 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/io_tracer.h" 27002: Status 27002: StartIOTrace(SystemClock* clock, const TraceOptions& trace_options, 27002: std::unique_ptr&& trace_writer); 27002: 27002: 27002: void EndIOTrace(); 27002: 27002: bool is_tracing_enabled() const { return tracing_enabled; } 27002: 27002: void WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 27002: 27002: private: 27002: TraceOptions trace_options_; 27002: 27002: InstrumentedMutex trace_writer_mutex_; 27002: std::atomic writer_; 27002: 27002: 27002: 27002: bool tracing_enabled; 27002: }; 27002: 27002: } 27002: # 11 "/build/reproducible-path/rocksdb-7.8.3/env/file_system_tracer.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FileSystemTracingWrapper : public FileSystemWrapper { 27002: public: 27002: FileSystemTracingWrapper(const std::shared_ptr& t, 27002: const std::shared_ptr& io_tracer) 27002: : FileSystemWrapper(t), 27002: io_tracer_(io_tracer), 27002: clock_(SystemClock::Default().get()) {} 27002: 27002: ~FileSystemTracingWrapper() override {} 27002: 27002: static const char* kClassName() { return "FileSystemTracing"; } 27002: const char* Name() const override { return kClassName(); } 27002: 27002: IOStatus NewSequentialFile(const std::string& fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus NewRandomAccessFile(const std::string& fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus NewWritableFile(const std::string& fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus ReopenWritableFile(const std::string& fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus ReuseWritableFile(const std::string& fname, 27002: const std::string& old_fname, 27002: const FileOptions& file_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus NewRandomRWFile(const std::string& fname, const FileOptions& options, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 27002: std::unique_ptr* result, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 27002: std::vector* r, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus DeleteFile(const std::string& fname, const IOOptions& options, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus CreateDir(const std::string& dirname, const IOOptions& options, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus CreateDirIfMissing(const std::string& dirname, 27002: const IOOptions& options, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus DeleteDir(const std::string& dirname, const IOOptions& options, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus GetFileSize(const std::string& fname, const IOOptions& options, 27002: uint64_t* file_size, IODebugContext* dbg) override; 27002: 27002: IOStatus Truncate(const std::string& fname, size_t size, 27002: const IOOptions& options, IODebugContext* dbg) override; 27002: 27002: private: 27002: std::shared_ptr io_tracer_; 27002: SystemClock* clock_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FileSystemPtr { 27002: public: 27002: FileSystemPtr(std::shared_ptr fs, 27002: const std::shared_ptr& io_tracer) 27002: : fs_(fs), io_tracer_(io_tracer) { 27002: fs_tracer_ = std::make_shared(fs_, io_tracer_); 27002: } 27002: 27002: std::shared_ptr operator->() const { 27002: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 27002: return fs_tracer_; 27002: } else { 27002: return fs_; 27002: } 27002: } 27002: 27002: 27002: FileSystem* get() const { 27002: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 27002: return fs_tracer_.get(); 27002: } else { 27002: return fs_.get(); 27002: } 27002: } 27002: 27002: private: 27002: std::shared_ptr fs_; 27002: std::shared_ptr io_tracer_; 27002: std::shared_ptr fs_tracer_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FSSequentialFileTracingWrapper : public FSSequentialFileOwnerWrapper { 27002: public: 27002: FSSequentialFileTracingWrapper(std::unique_ptr&& t, 27002: std::shared_ptr io_tracer, 27002: const std::string& file_name) 27002: : FSSequentialFileOwnerWrapper(std::move(t)), 27002: io_tracer_(io_tracer), 27002: clock_(SystemClock::Default().get()), 27002: file_name_(file_name) {} 27002: 27002: ~FSSequentialFileTracingWrapper() override {} 27002: 27002: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 27002: char* scratch, IODebugContext* dbg) override; 27002: 27002: IOStatus InvalidateCache(size_t offset, size_t length) override; 27002: 27002: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 27002: Slice* result, char* scratch, 27002: IODebugContext* dbg) override; 27002: 27002: private: 27002: std::shared_ptr io_tracer_; 27002: SystemClock* clock_; 27002: std::string file_name_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FSSequentialFilePtr { 27002: public: 27002: FSSequentialFilePtr() = delete; 27002: FSSequentialFilePtr(std::unique_ptr&& fs, 27002: const std::shared_ptr& io_tracer, 27002: const std::string& file_name) 27002: : io_tracer_(io_tracer), 27002: fs_tracer_(std::move(fs), io_tracer_, 27002: file_name.substr(file_name.find_last_of("/\\") + 27002: 1) ) {} 27002: 27002: FSSequentialFile* operator->() const { 27002: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 27002: return const_cast(&fs_tracer_); 27002: } else { 27002: return fs_tracer_.target(); 27002: } 27002: } 27002: 27002: FSSequentialFile* get() const { 27002: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 27002: return const_cast(&fs_tracer_); 27002: } else { 27002: return fs_tracer_.target(); 27002: } 27002: } 27002: 27002: private: 27002: std::shared_ptr io_tracer_; 27002: FSSequentialFileTracingWrapper fs_tracer_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FSRandomAccessFileTracingWrapper : public FSRandomAccessFileOwnerWrapper { 27002: public: 27002: FSRandomAccessFileTracingWrapper(std::unique_ptr&& t, 27002: std::shared_ptr io_tracer, 27002: const std::string& file_name) 27002: : FSRandomAccessFileOwnerWrapper(std::move(t)), 27002: io_tracer_(io_tracer), 27002: clock_(SystemClock::Default().get()), 27002: file_name_(file_name) {} 27002: 27002: ~FSRandomAccessFileTracingWrapper() override {} 27002: 27002: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 27002: Slice* result, char* scratch, 27002: IODebugContext* dbg) const override; 27002: 27002: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 27002: const IOOptions& options, IODebugContext* dbg) override; 27002: 27002: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus InvalidateCache(size_t offset, size_t length) override; 27002: 27002: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 27002: std::function cb, 27002: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 27002: IODebugContext* dbg) override; 27002: 27002: void ReadAsyncCallback(const FSReadRequest& req, void* cb_arg); 27002: 27002: private: 27002: std::shared_ptr io_tracer_; 27002: SystemClock* clock_; 27002: 27002: std::string file_name_; 27002: 27002: struct ReadAsyncCallbackInfo { 27002: uint64_t start_time_; 27002: std::function cb_; 27002: void* cb_arg_; 27002: std::string file_op_; 27002: }; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FSRandomAccessFilePtr { 27002: public: 27002: FSRandomAccessFilePtr(std::unique_ptr&& fs, 27002: const std::shared_ptr& io_tracer, 27002: const std::string& file_name) 27002: : io_tracer_(io_tracer), 27002: fs_tracer_(std::move(fs), io_tracer_, 27002: file_name.substr(file_name.find_last_of("/\\") + 27002: 1) ) {} 27002: 27002: FSRandomAccessFile* operator->() const { 27002: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 27002: return const_cast(&fs_tracer_); 27002: } else { 27002: return fs_tracer_.target(); 27002: } 27002: } 27002: 27002: FSRandomAccessFile* get() const { 27002: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 27002: return const_cast(&fs_tracer_); 27002: } else { 27002: return fs_tracer_.target(); 27002: } 27002: } 27002: 27002: private: 27002: std::shared_ptr io_tracer_; 27002: FSRandomAccessFileTracingWrapper fs_tracer_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FSWritableFileTracingWrapper : public FSWritableFileOwnerWrapper { 27002: public: 27002: FSWritableFileTracingWrapper(std::unique_ptr&& t, 27002: std::shared_ptr io_tracer, 27002: const std::string& file_name) 27002: : FSWritableFileOwnerWrapper(std::move(t)), 27002: io_tracer_(io_tracer), 27002: clock_(SystemClock::Default().get()), 27002: file_name_(file_name) {} 27002: 27002: ~FSWritableFileTracingWrapper() override {} 27002: 27002: IOStatus Append(const Slice& data, const IOOptions& options, 27002: IODebugContext* dbg) override; 27002: IOStatus Append(const Slice& data, const IOOptions& options, 27002: const DataVerificationInfo& , 27002: IODebugContext* dbg) override { 27002: return Append(data, options, dbg); 27002: } 27002: 27002: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 27002: const IOOptions& options, 27002: IODebugContext* dbg) override; 27002: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 27002: const IOOptions& options, 27002: const DataVerificationInfo& , 27002: IODebugContext* dbg) override { 27002: return PositionedAppend(data, offset, options, dbg); 27002: } 27002: 27002: IOStatus Truncate(uint64_t size, const IOOptions& options, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 27002: 27002: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override; 27002: 27002: IOStatus InvalidateCache(size_t offset, size_t length) override; 27002: 27002: private: 27002: std::shared_ptr io_tracer_; 27002: SystemClock* clock_; 27002: 27002: std::string file_name_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FSWritableFilePtr { 27002: public: 27002: FSWritableFilePtr(std::unique_ptr&& fs, 27002: const std::shared_ptr& io_tracer, 27002: const std::string& file_name) 27002: : io_tracer_(io_tracer) { 27002: fs_tracer_.reset(new FSWritableFileTracingWrapper( 27002: std::move(fs), io_tracer_, 27002: file_name.substr(file_name.find_last_of("/\\") + 27002: 1) )); 27002: } 27002: 27002: FSWritableFile* operator->() const { 27002: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 27002: return fs_tracer_.get(); 27002: } else { 27002: return fs_tracer_->target(); 27002: } 27002: } 27002: 27002: FSWritableFile* get() const { 27002: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 27002: return fs_tracer_.get(); 27002: } else if (fs_tracer_) { 27002: return fs_tracer_->target(); 27002: } else { 27002: return nullptr; 27002: } 27002: } 27002: 27002: void reset() { 27002: fs_tracer_.reset(); 27002: io_tracer_ = nullptr; 27002: } 27002: 27002: private: 27002: std::shared_ptr io_tracer_; 27002: std::unique_ptr fs_tracer_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FSRandomRWFileTracingWrapper : public FSRandomRWFileOwnerWrapper { 27002: public: 27002: FSRandomRWFileTracingWrapper(std::unique_ptr&& t, 27002: std::shared_ptr io_tracer, 27002: const std::string& file_name) 27002: : FSRandomRWFileOwnerWrapper(std::move(t)), 27002: io_tracer_(io_tracer), 27002: clock_(SystemClock::Default().get()), 27002: file_name_(file_name) {} 27002: 27002: ~FSRandomRWFileTracingWrapper() override {} 27002: 27002: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 27002: IODebugContext* dbg) override; 27002: 27002: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 27002: Slice* result, char* scratch, 27002: IODebugContext* dbg) const override; 27002: 27002: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 27002: 27002: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 27002: 27002: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 27002: 27002: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 27002: 27002: private: 27002: std::shared_ptr io_tracer_; 27002: SystemClock* clock_; 27002: 27002: std::string file_name_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class FSRandomRWFilePtr { 27002: public: 27002: FSRandomRWFilePtr(std::unique_ptr&& fs, 27002: std::shared_ptr io_tracer, 27002: const std::string& file_name) 27002: : io_tracer_(io_tracer), 27002: fs_tracer_(std::move(fs), io_tracer_, 27002: file_name.substr(file_name.find_last_of("/\\") + 27002: 1) ) {} 27002: 27002: FSRandomRWFile* operator->() const { 27002: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 27002: return const_cast(&fs_tracer_); 27002: } else { 27002: return fs_tracer_.target(); 27002: } 27002: } 27002: 27002: FSRandomRWFile* get() const { 27002: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 27002: return const_cast(&fs_tracer_); 27002: } else { 27002: return fs_tracer_.target(); 27002: } 27002: } 27002: 27002: private: 27002: std::shared_ptr io_tracer_; 27002: FSRandomRWFileTracingWrapper fs_tracer_; 27002: }; 27002: 27002: } 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 2 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: class RateLimiter { 27002: public: 27002: enum class OpType { 27002: kRead, 27002: kWrite, 27002: }; 27002: 27002: enum class Mode { 27002: kReadsOnly, 27002: kWritesOnly, 27002: kAllIo, 27002: }; 27002: 27002: 27002: explicit RateLimiter(Mode mode = Mode::kWritesOnly) : mode_(mode) {} 27002: 27002: virtual ~RateLimiter() {} 27002: 27002: 27002: 27002: virtual void SetBytesPerSecond(int64_t bytes_per_second) = 0; 27002: # 52 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 27002: virtual void Request(const int64_t , const Env::IOPriority ) { 27002: 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 27002: (static_cast ( 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 27002: false 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 27002: "false" 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 27002: , "./include/rocksdb/rate_limiter.h", 53, __extension__ __PRETTY_FUNCTION__)) 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 27002: ; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 27002: Statistics* ) { 27002: 27002: 27002: Request(bytes, pri); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 27002: Statistics* stats, OpType op_type) { 27002: if (IsRateLimited(op_type)) { 27002: Request(bytes, pri, stats); 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual size_t RequestToken(size_t bytes, size_t alignment, 27002: Env::IOPriority io_priority, Statistics* stats, 27002: RateLimiter::OpType op_type); 27002: 27002: 27002: virtual int64_t GetSingleBurstBytes() const = 0; 27002: 27002: 27002: virtual int64_t GetTotalBytesThrough( 27002: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 27002: 27002: 27002: virtual int64_t GetTotalRequests( 27002: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status GetTotalPendingRequests( 27002: int64_t* total_pending_requests, 27002: const Env::IOPriority pri = Env::IO_TOTAL) const { 27002: 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 27002: (static_cast ( 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 27002: total_pending_requests != nullptr 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 27002: "total_pending_requests != nullptr" 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 3 4 27002: , "./include/rocksdb/rate_limiter.h", 106, __extension__ __PRETTY_FUNCTION__)) 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 27002: ; 27002: (void)total_pending_requests; 27002: (void)pri; 27002: return Status::NotSupported(); 27002: } 27002: 27002: virtual int64_t GetBytesPerSecond() const = 0; 27002: 27002: virtual bool IsRateLimited(OpType op_type) { 27002: if ((mode_ == RateLimiter::Mode::kWritesOnly && 27002: op_type == RateLimiter::OpType::kRead) || 27002: (mode_ == RateLimiter::Mode::kReadsOnly && 27002: op_type == RateLimiter::OpType::kWrite)) { 27002: return false; 27002: } 27002: return true; 27002: } 27002: 27002: protected: 27002: Mode GetMode() { return mode_; } 27002: 27002: private: 27002: const Mode mode_; 27002: }; 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/rate_limiter.h" 27002: extern RateLimiter* NewGenericRateLimiter( 27002: int64_t rate_bytes_per_sec, int64_t refill_period_us = 100 * 1000, 27002: int32_t fairness = 10, 27002: RateLimiter::Mode mode = RateLimiter::Mode::kWritesOnly, 27002: bool auto_tuned = false); 27002: 27002: } 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: class Statistics; 27002: class HistogramImpl; 27002: class SystemClock; 27002: 27002: using AlignedBuf = std::unique_ptr; 27002: 27002: 27002: FSReadRequest Align(const FSReadRequest& r, size_t alignment); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool TryMerge(FSReadRequest* dest, const FSReadRequest& src); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class RandomAccessFileReader { 27002: private: 27002: 27002: void NotifyOnFileReadFinish( 27002: uint64_t offset, size_t length, 27002: const FileOperationInfo::StartTimePoint& start_ts, 27002: const FileOperationInfo::FinishTimePoint& finish_ts, 27002: const Status& status) const { 27002: FileOperationInfo info(FileOperationType::kRead, file_name_, start_ts, 27002: finish_ts, status, file_temperature_); 27002: info.offset = offset; 27002: info.length = length; 27002: 27002: for (auto& listener : listeners_) { 27002: listener->OnFileReadFinish(info); 27002: } 27002: info.status.PermitUncheckedError(); 27002: } 27002: 27002: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 27002: const std::string& file_path, size_t length, 27002: uint64_t offset) const { 27002: if (listeners_.empty()) { 27002: return; 27002: } 27002: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 27002: 27002: for (auto& listener : listeners_) { 27002: listener->OnIOError(io_error_info); 27002: } 27002: io_status.PermitUncheckedError(); 27002: } 27002: 27002: 27002: 27002: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 27002: 27002: FSRandomAccessFilePtr file_; 27002: std::string file_name_; 27002: SystemClock* clock_; 27002: Statistics* stats_; 27002: uint32_t hist_type_; 27002: HistogramImpl* file_read_hist_; 27002: RateLimiter* rate_limiter_; 27002: std::vector> listeners_; 27002: const Temperature file_temperature_; 27002: const bool is_last_level_; 27002: 27002: struct ReadAsyncInfo { 27002: ReadAsyncInfo(std::function cb, 27002: void* cb_arg, uint64_t start_time) 27002: : cb_(cb), 27002: cb_arg_(cb_arg), 27002: start_time_(start_time), 27002: user_scratch_(nullptr), 27002: user_aligned_buf_(nullptr), 27002: user_offset_(0), 27002: user_len_(0), 27002: is_aligned_(false) {} 27002: 27002: std::function cb_; 27002: void* cb_arg_; 27002: uint64_t start_time_; 27002: 27002: FileOperationInfo::StartTimePoint fs_start_ts_; 27002: 27002: 27002: char* user_scratch_; 27002: AlignedBuf* user_aligned_buf_; 27002: uint64_t user_offset_; 27002: size_t user_len_; 27002: Slice user_result_; 27002: 27002: AlignedBuffer buf_; 27002: bool is_aligned_; 27002: }; 27002: 27002: public: 27002: explicit RandomAccessFileReader( 27002: std::unique_ptr&& raf, const std::string& _file_name, 27002: SystemClock* clock = nullptr, 27002: const std::shared_ptr& io_tracer = nullptr, 27002: Statistics* stats = nullptr, uint32_t hist_type = 0, 27002: HistogramImpl* file_read_hist = nullptr, 27002: RateLimiter* rate_limiter = nullptr, 27002: const std::vector>& listeners = {}, 27002: Temperature file_temperature = Temperature::kUnknown, 27002: bool is_last_level = false) 27002: : file_(std::move(raf), io_tracer, _file_name), 27002: file_name_(std::move(_file_name)), 27002: clock_(clock), 27002: stats_(stats), 27002: hist_type_(hist_type), 27002: file_read_hist_(file_read_hist), 27002: rate_limiter_(rate_limiter), 27002: listeners_(), 27002: file_temperature_(file_temperature), 27002: is_last_level_(is_last_level) { 27002: 27002: std::for_each(listeners.begin(), listeners.end(), 27002: [this](const std::shared_ptr& e) { 27002: if (e->ShouldBeNotifiedOnFileIO()) { 27002: listeners_.emplace_back(e); 27002: } 27002: }); 27002: 27002: 27002: 27002: } 27002: 27002: static IOStatus Create(const std::shared_ptr& fs, 27002: const std::string& fname, const FileOptions& file_opts, 27002: std::unique_ptr* reader, 27002: IODebugContext* dbg); 27002: RandomAccessFileReader(const RandomAccessFileReader&) = delete; 27002: RandomAccessFileReader& operator=(const RandomAccessFileReader&) = delete; 27002: # 178 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 27002: IOStatus Read(const IOOptions& opts, uint64_t offset, size_t n, Slice* result, 27002: char* scratch, AlignedBuf* aligned_buf, 27002: Env::IOPriority rate_limiter_priority) const; 27002: # 191 "/build/reproducible-path/rocksdb-7.8.3/file/random_access_file_reader.h" 27002: IOStatus MultiRead(const IOOptions& opts, FSReadRequest* reqs, 27002: size_t num_reqs, AlignedBuf* aligned_buf, 27002: Env::IOPriority rate_limiter_priority) const; 27002: 27002: IOStatus Prefetch(uint64_t offset, size_t n, 27002: const Env::IOPriority rate_limiter_priority) const { 27002: IOOptions opts; 27002: opts.rate_limiter_priority = rate_limiter_priority; 27002: return file_->Prefetch(offset, n, opts, nullptr); 27002: } 27002: 27002: FSRandomAccessFile* file() { return file_.get(); } 27002: 27002: const std::string& file_name() const { return file_name_; } 27002: 27002: bool use_direct_io() const { return file_->use_direct_io(); } 27002: 27002: IOStatus PrepareIOOptions(const ReadOptions& ro, IOOptions& opts); 27002: 27002: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 27002: std::function cb, 27002: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 27002: AlignedBuf* aligned_buf); 27002: 27002: void ReadAsyncCallback(const FSReadRequest& req, void* cb_arg); 27002: }; 27002: } 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/memory/memory_allocator.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: struct CustomDeleter { 27002: CustomDeleter(MemoryAllocator* a = nullptr) : allocator(a) {} 27002: 27002: void operator()(char* ptr) const { 27002: if (allocator) { 27002: allocator->Deallocate(reinterpret_cast(ptr)); 27002: } else { 27002: delete[] ptr; 27002: } 27002: } 27002: 27002: MemoryAllocator* allocator; 27002: }; 27002: 27002: using CacheAllocationPtr = std::unique_ptr; 27002: 27002: inline CacheAllocationPtr AllocateBlock(size_t size, 27002: MemoryAllocator* allocator) { 27002: if (allocator) { 27002: auto block = reinterpret_cast(allocator->Allocate(size)); 27002: return CacheAllocationPtr(block, allocator); 27002: } 27002: return CacheAllocationPtr(new char[size]); 27002: } 27002: 27002: } 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/options/cf_options.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/options/db_options.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: class SystemClock; 27002: 27002: struct ImmutableDBOptions { 27002: static const char* kName() { return "ImmutableDBOptions"; } 27002: ImmutableDBOptions(); 27002: explicit ImmutableDBOptions(const DBOptions& options); 27002: 27002: void Dump(Logger* log) const; 27002: 27002: bool create_if_missing; 27002: bool create_missing_column_families; 27002: bool error_if_exists; 27002: bool paranoid_checks; 27002: bool flush_verify_memtable_count; 27002: bool track_and_verify_wals_in_manifest; 27002: bool verify_sst_unique_id_in_manifest; 27002: Env* env; 27002: std::shared_ptr rate_limiter; 27002: std::shared_ptr sst_file_manager; 27002: std::shared_ptr info_log; 27002: InfoLogLevel info_log_level; 27002: int max_file_opening_threads; 27002: std::shared_ptr statistics; 27002: bool use_fsync; 27002: std::vector db_paths; 27002: std::string db_log_dir; 27002: 27002: 27002: 27002: std::string wal_dir; 27002: size_t max_log_file_size; 27002: size_t log_file_time_to_roll; 27002: size_t keep_log_file_num; 27002: size_t recycle_log_file_num; 27002: uint64_t max_manifest_file_size; 27002: int table_cache_numshardbits; 27002: uint64_t WAL_ttl_seconds; 27002: uint64_t WAL_size_limit_MB; 27002: uint64_t max_write_batch_group_size_bytes; 27002: size_t manifest_preallocation_size; 27002: bool allow_mmap_reads; 27002: bool allow_mmap_writes; 27002: bool use_direct_reads; 27002: bool use_direct_io_for_flush_and_compaction; 27002: bool allow_fallocate; 27002: bool is_fd_close_on_exec; 27002: bool advise_random_on_open; 27002: size_t db_write_buffer_size; 27002: std::shared_ptr write_buffer_manager; 27002: DBOptions::AccessHint access_hint_on_compaction_start; 27002: size_t random_access_max_buffer_size; 27002: bool use_adaptive_mutex; 27002: std::vector> listeners; 27002: bool enable_thread_tracking; 27002: bool enable_pipelined_write; 27002: bool unordered_write; 27002: bool allow_concurrent_memtable_write; 27002: bool enable_write_thread_adaptive_yield; 27002: uint64_t write_thread_max_yield_usec; 27002: uint64_t write_thread_slow_yield_usec; 27002: bool skip_stats_update_on_db_open; 27002: bool skip_checking_sst_file_sizes_on_db_open; 27002: WALRecoveryMode wal_recovery_mode; 27002: bool allow_2pc; 27002: std::shared_ptr row_cache; 27002: 27002: WalFilter* wal_filter; 27002: 27002: bool fail_if_options_file_error; 27002: bool dump_malloc_stats; 27002: bool avoid_flush_during_recovery; 27002: bool allow_ingest_behind; 27002: bool two_write_queues; 27002: bool manual_wal_flush; 27002: CompressionType wal_compression; 27002: bool atomic_flush; 27002: bool avoid_unnecessary_blocking_io; 27002: bool persist_stats_to_disk; 27002: bool write_dbid_to_manifest; 27002: size_t log_readahead_size; 27002: std::shared_ptr file_checksum_gen_factory; 27002: bool best_efforts_recovery; 27002: int max_bgerror_resume_count; 27002: uint64_t bgerror_resume_retry_interval; 27002: bool allow_data_in_errors; 27002: std::string db_host_id; 27002: FileTypeSet checksum_handoff_file_types; 27002: CacheTier lowest_used_cache_tier; 27002: 27002: std::shared_ptr fs; 27002: SystemClock* clock; 27002: Statistics* stats; 27002: Logger* logger; 27002: std::shared_ptr compaction_service; 27002: bool enforce_single_del_contracts; 27002: 27002: bool IsWalDirSameAsDBPath() const; 27002: bool IsWalDirSameAsDBPath(const std::string& path) const; 27002: const std::string& GetWalDir() const; 27002: const std::string& GetWalDir(const std::string& path) const; 27002: }; 27002: 27002: struct MutableDBOptions { 27002: static const char* kName() { return "MutableDBOptions"; } 27002: MutableDBOptions(); 27002: explicit MutableDBOptions(const DBOptions& options); 27002: 27002: void Dump(Logger* log) const; 27002: 27002: int max_background_jobs; 27002: int max_background_compactions; 27002: uint32_t max_subcompactions; 27002: bool avoid_flush_during_shutdown; 27002: size_t writable_file_max_buffer_size; 27002: uint64_t delayed_write_rate; 27002: uint64_t max_total_wal_size; 27002: uint64_t delete_obsolete_files_period_micros; 27002: unsigned int stats_dump_period_sec; 27002: unsigned int stats_persist_period_sec; 27002: size_t stats_history_buffer_size; 27002: int max_open_files; 27002: uint64_t bytes_per_sync; 27002: uint64_t wal_bytes_per_sync; 27002: bool strict_bytes_per_sync; 27002: size_t compaction_readahead_size; 27002: int max_background_flushes; 27002: }; 27002: 27002: 27002: Status GetStringFromMutableDBOptions(const ConfigOptions& config_options, 27002: const MutableDBOptions& mutable_opts, 27002: std::string* opt_string); 27002: 27002: Status GetMutableDBOptionsFromStrings( 27002: const MutableDBOptions& base_options, 27002: const std::unordered_map& options_map, 27002: MutableDBOptions* new_options); 27002: 27002: bool MutableDBOptionsAreEqual(const MutableDBOptions& this_options, 27002: const MutableDBOptions& that_options); 27002: 27002: 27002: } 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/options/cf_options.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/malloc.h" 1 3 4 27002: # 24 "/usr/include/malloc.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 25 "/usr/include/malloc.h" 2 3 4 27002: # 36 "/usr/include/malloc.h" 3 4 27002: 27002: # 36 "/usr/include/malloc.h" 3 4 27002: extern "C" { 27002: 27002: 27002: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 27002: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: extern void *calloc (size_t __nmemb, size_t __size) 27002: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern void *realloc (void *__ptr, size_t __size) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) 27002: __attribute__ ((__malloc__ (__builtin_free, 1))); 27002: 27002: 27002: extern void free (void *__ptr) noexcept (true); 27002: 27002: 27002: extern void *memalign (size_t __alignment, size_t __size) 27002: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 27002: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 27002: 27002: 27002: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 27002: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 27002: 27002: 27002: 27002: extern void *pvalloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 27002: 27002: 27002: 27002: struct mallinfo 27002: { 27002: int arena; 27002: int ordblks; 27002: int smblks; 27002: int hblks; 27002: int hblkhd; 27002: int usmblks; 27002: int fsmblks; 27002: int uordblks; 27002: int fordblks; 27002: int keepcost; 27002: }; 27002: 27002: 27002: 27002: 27002: struct mallinfo2 27002: { 27002: size_t arena; 27002: size_t ordblks; 27002: size_t smblks; 27002: size_t hblks; 27002: size_t hblkhd; 27002: size_t usmblks; 27002: size_t fsmblks; 27002: size_t uordblks; 27002: size_t fordblks; 27002: size_t keepcost; 27002: }; 27002: 27002: 27002: extern struct mallinfo mallinfo (void) noexcept (true) __attribute__ ((__deprecated__)); 27002: 27002: 27002: extern struct mallinfo2 mallinfo2 (void) noexcept (true); 27002: # 144 "/usr/include/malloc.h" 3 4 27002: extern int mallopt (int __param, int __val) noexcept (true); 27002: 27002: 27002: 27002: extern int malloc_trim (size_t __pad) noexcept (true); 27002: 27002: 27002: 27002: extern size_t malloc_usable_size (void *__ptr) noexcept (true); 27002: 27002: 27002: extern void malloc_stats (void) noexcept (true); 27002: 27002: 27002: extern int malloc_info (int __options, FILE *__fp) noexcept (true); 27002: 27002: } 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 8 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 2 27002: # 24 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 27002: 27002: # 24 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct KillPoint { 27002: public: 27002: 27002: 27002: int rocksdb_kill_odds = 0; 27002: 27002: std::vector rocksdb_kill_exclude_prefixes; 27002: 27002: void TestKillRandom(std::string kill_point, int odds, 27002: const std::string& srcfile, int srcline); 27002: 27002: static KillPoint* GetInstance(); 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 63 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 27002: namespace rocksdb { 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 27002: class SyncPoint { 27002: public: 27002: static SyncPoint* GetInstance(); 27002: 27002: SyncPoint(const SyncPoint&) = delete; 27002: SyncPoint& operator=(const SyncPoint&) = delete; 27002: ~SyncPoint(); 27002: 27002: struct SyncPointPair { 27002: std::string predecessor; 27002: std::string successor; 27002: }; 27002: 27002: 27002: 27002: void LoadDependency(const std::vector& dependencies); 27002: 27002: 27002: 27002: 27002: 27002: void LoadDependencyAndMarkers(const std::vector& dependencies, 27002: const std::vector& markers); 27002: 27002: 27002: 27002: 27002: void SetCallBack(const std::string& point, 27002: const std::function& callback); 27002: 27002: 27002: void ClearCallBack(const std::string& point); 27002: 27002: 27002: void ClearAllCallBacks(); 27002: 27002: 27002: void EnableProcessing(); 27002: 27002: 27002: void DisableProcessing(); 27002: 27002: 27002: void ClearTrace(); 27002: 27002: 27002: 27002: 27002: void Process(const Slice& point, void* cb_arg = nullptr); 27002: 27002: 27002: 27002: template 27002: void Process(const char (&point)[kLen], void* cb_arg = nullptr) { 27002: static_assert(kLen > 0, "Must not be empty"); 27002: 27002: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 3 4 27002: (static_cast ( 27002: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 27002: point[kLen - 1] == '\0' 27002: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 27002: "point[kLen - 1] == '\\0'" 27002: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 3 4 27002: , "./test_util/sync_point.h", 129, __extension__ __PRETTY_FUNCTION__)) 27002: # 129 "/build/reproducible-path/rocksdb-7.8.3/test_util/sync_point.h" 27002: ; 27002: Process(Slice(point, kLen - 1), cb_arg); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct Data; 27002: 27002: private: 27002: 27002: SyncPoint(); 27002: Data* impl_; 27002: }; 27002: 27002: 27002: 27002: void SetupSyncPointsToMockDirectIO(); 27002: } 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/compression_context_cache.h" 1 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/util/compression_context_cache.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: class ZSTDUncompressCachedData; 27002: 27002: class CompressionContextCache { 27002: public: 27002: 27002: static CompressionContextCache* Instance(); 27002: static void InitSingleton(); 27002: CompressionContextCache(const CompressionContextCache&) = delete; 27002: CompressionContextCache& operator=(const CompressionContextCache&) = delete; 27002: 27002: ZSTDUncompressCachedData GetCachedZSTDUncompressData(); 27002: void ReturnCachedZSTDUncompressData(int64_t idx); 27002: 27002: private: 27002: 27002: CompressionContextCache(); 27002: ~CompressionContextCache(); 27002: 27002: class Rep; 27002: Rep* rep_; 27002: }; 27002: 27002: } 27002: # 29 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/string_util.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/util/string_util.h" 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: 27002: extern std::vector StringSplit(const std::string& arg, char delim); 27002: 27002: 27002: extern void AppendNumberTo(std::string* str, uint64_t num); 27002: 27002: 27002: 27002: extern void AppendEscapedStringTo(std::string* str, const Slice& value); 27002: 27002: 27002: 27002: template 27002: inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { 27002: const char* digitChars = uppercase ? "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 27002: : "0123456789abcdefghijklmnopqrstuvwxyz"; 27002: for (size_t i = n; i > 0; --i) { 27002: (*buf)[i - 1] = digitChars[static_cast(v % kBase)]; 27002: v /= kBase; 27002: } 27002: *buf += n; 27002: } 27002: # 51 "/build/reproducible-path/rocksdb-7.8.3/util/string_util.h" 27002: template 27002: inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { 27002: while (n) { 27002: char c = **buf; 27002: *v *= static_cast(kBase); 27002: if (c >= '0' && (kBase >= 10 ? c <= '9' : c < '0' + kBase)) { 27002: *v += static_cast(c - '0'); 27002: } else if (kBase > 10 && c >= 'A' && c < 'A' + kBase - 10) { 27002: *v += static_cast(c - 'A' + 10); 27002: } else if (kBase > 10 && c >= 'a' && c < 'a' + kBase - 10) { 27002: *v += static_cast(c - 'a' + 10); 27002: } else { 27002: return false; 27002: } 27002: --n; 27002: ++*buf; 27002: } 27002: return true; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: extern std::string NumberToHumanString(int64_t num); 27002: 27002: 27002: 27002: extern std::string BytesToHumanString(uint64_t bytes); 27002: 27002: 27002: 27002: extern std::string TimeToHumanString(int unixtime); 27002: 27002: 27002: int AppendHumanMicros(uint64_t micros, char* output, int len, 27002: bool fixed_format); 27002: 27002: 27002: int AppendHumanBytes(uint64_t bytes, char* output, int len); 27002: 27002: 27002: 27002: extern std::string EscapeString(const Slice& value); 27002: 27002: 27002: 27002: 27002: 27002: extern bool ConsumeDecimalNumber(Slice* in, uint64_t* val); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool isSpecialChar(const char c); 27002: 27002: 27002: 27002: 27002: char UnescapeChar(const char c); 27002: 27002: 27002: 27002: 27002: char EscapeChar(const char c); 27002: # 129 "/build/reproducible-path/rocksdb-7.8.3/util/string_util.h" 27002: std::string EscapeOptionString(const std::string& raw_string); 27002: 27002: 27002: 27002: 27002: 27002: 27002: std::string UnescapeOptionString(const std::string& escaped_string); 27002: 27002: std::string trim(const std::string& str); 27002: 27002: 27002: bool EndsWith(const std::string& string, const std::string& pattern); 27002: 27002: 27002: bool StartsWith(const std::string& string, const std::string& pattern); 27002: 27002: 27002: bool ParseBoolean(const std::string& type, const std::string& value); 27002: 27002: uint8_t ParseUint8(const std::string& value); 27002: 27002: uint32_t ParseUint32(const std::string& value); 27002: 27002: int32_t ParseInt32(const std::string& value); 27002: 27002: 27002: uint64_t ParseUint64(const std::string& value); 27002: 27002: int ParseInt(const std::string& value); 27002: 27002: int64_t ParseInt64(const std::string& value); 27002: 27002: double ParseDouble(const std::string& value); 27002: 27002: size_t ParseSizeT(const std::string& value); 27002: 27002: std::vector ParseVectorInt(const std::string& value); 27002: 27002: bool SerializeIntVector(const std::vector& vec, std::string* value); 27002: 27002: extern const std::string kNullptrString; 27002: 27002: 27002: 27002: extern std::string errnoStr(int err); 27002: 27002: } 27002: # 30 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: 27002: 27002: # 1 "/usr/include/snappy.h" 1 3 4 27002: # 42 "/usr/include/snappy.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 43 "/usr/include/snappy.h" 2 3 4 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/snappy-stubs-public.h" 1 3 4 27002: # 41 "/usr/include/snappy-stubs-public.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 1 3 4 27002: # 23 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 1 3 4 27002: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 2 3 4 27002: 27002: 27002: 27002: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 27002: struct iovec 27002: { 27002: void *iov_base; 27002: size_t iov_len; 27002: }; 27002: # 24 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern "C" { 27002: # 41 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 27002: extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: # 52 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 27002: extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: # 67 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 27002: extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, 27002: __off_t __offset) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: # 80 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 27002: extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, 27002: _In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void rocksdb::autovector::push_back(const T&) [with T = long long unsigned int; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-7.8.3/util/autovector.h:297:22, inlined from 'rocksdb::FragmentedRangeTombstoneList::FragmentTombstones(std::unique_ptr >, const rocksdb::InternalKeyComparator&, bool, const std::vector&)::' at /build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.cc:129:35: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ _off_t __offset) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: # 110 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 27002: extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, 27002: __off64_t __offset) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: # 123 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 27002: extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, 27002: __off64_t __offset) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern ssize_t preadv2 (int __fp, const struct iovec *__iovec, int __count, 27002: __off_t __offset, int ___flags) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: 27002: 27002: extern ssize_t pwritev2 (int __fd, const struct iovec *__iodev, int __count, 27002: __off_t __offset, int __flags) __attribute__ ((__warn_unused_result__)); 27002: # 161 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 27002: extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, 27002: int __count, __off64_t __offset, 27002: int ___flags) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: 27002: 27002: extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, 27002: int __count, __off64_t __offset, 27002: int __flags) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 1 3 4 27002: # 26 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 27002: extern "C" { 27002: 27002: 27002: extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, 27002: unsigned long int __liovcnt, 27002: const struct iovec *__rvec, 27002: unsigned long int __riovcnt, 27002: unsigned long int __flags) 27002: noexcept (true); 27002: 27002: 27002: extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, 27002: unsigned long int __liovcnt, 27002: const struct iovec *__rvec, 27002: unsigned long int __riovcnt, 27002: unsigned long int __flags) 27002: noexcept (true); 27002: # 51 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 27002: } 27002: # 180 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 27002: # 42 "/usr/include/snappy-stubs-public.h" 2 3 4 27002: # 50 "/usr/include/snappy-stubs-public.h" 3 4 27002: namespace snappy { 27002: # 61 "/usr/include/snappy-stubs-public.h" 3 4 27002: } 27002: # 48 "/usr/include/snappy.h" 2 3 4 27002: 27002: namespace snappy { 27002: class Source; 27002: class Sink; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t Compress(Source* source, Sink* sink); 27002: # 68 "/usr/include/snappy.h" 3 4 27002: bool GetUncompressedLength(Source* source, uint32_t* result); 27002: # 78 "/usr/include/snappy.h" 3 4 27002: size_t Compress(const char* input, size_t input_length, 27002: std::string* compressed); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool Uncompress(const char* compressed, size_t compressed_length, 27002: std::string* uncompressed); 27002: 27002: 27002: 27002: 27002: bool Uncompress(Source* compressed, Sink* uncompressed); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t UncompressAsMuchAsPossible(Source* compressed, Sink* uncompressed); 27002: # 122 "/usr/include/snappy.h" 3 4 27002: void RawCompress(const char* input, 27002: size_t input_length, 27002: char* compressed, 27002: size_t* compressed_length); 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool RawUncompress(const char* compressed, size_t compressed_length, 27002: char* uncompressed); 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool RawUncompress(Source* compressed, char* uncompressed); 27002: # 150 "/usr/include/snappy.h" 3 4 27002: bool RawUncompressToIOVec(const char* compressed, size_t compressed_length, 27002: const struct iovec* iov, size_t iov_cnt); 27002: # 161 "/usr/include/snappy.h" 3 4 27002: bool RawUncompressToIOVec(Source* compressed, const struct iovec* iov, 27002: size_t iov_cnt); 27002: 27002: 27002: 27002: size_t MaxCompressedLength(size_t source_bytes); 27002: 27002: 27002: 27002: 27002: 27002: bool GetUncompressedLength(const char* compressed, size_t compressed_length, 27002: size_t* result); 27002: 27002: 27002: 27002: 27002: 27002: bool IsValidCompressedBuffer(const char* compressed, 27002: size_t compressed_length); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool IsValidCompressed(Source* compressed); 27002: # 199 "/usr/include/snappy.h" 3 4 27002: static constexpr int kBlockLog = 16; 27002: static constexpr size_t kBlockSize = 1 << kBlockLog; 27002: 27002: static constexpr int kMinHashTableBits = 8; 27002: static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits; 27002: 27002: static constexpr int kMaxHashTableBits = 14; 27002: static constexpr size_t kMaxHashTableSize = 1 << kMaxHashTableBits; 27002: } 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: 27002: 27002: 27002: # 1 "/usr/include/zlib.h" 1 3 4 27002: # 34 "/usr/include/zlib.h" 3 4 27002: # 1 "/usr/include/zconf.h" 1 3 4 27002: # 250 "/usr/include/zconf.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 251 "/usr/include/zconf.h" 2 3 4 27002: typedef size_t z_size_t; 27002: # 397 "/usr/include/zconf.h" 3 4 27002: typedef unsigned char Byte; 27002: 27002: typedef unsigned int uInt; 27002: typedef unsigned long uLong; 27002: 27002: 27002: 27002: 27002: 27002: typedef Byte Bytef; 27002: 27002: typedef char charf; 27002: typedef int intf; 27002: typedef uInt uIntf; 27002: typedef uLong uLongf; 27002: 27002: 27002: typedef void const *voidpc; 27002: typedef void *voidpf; 27002: typedef void *voidp; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 1 3 4 27002: # 425 "/usr/include/zconf.h" 2 3 4 27002: # 435 "/usr/include/zconf.h" 3 4 27002: typedef unsigned z_crc_t; 27002: # 488 "/usr/include/zconf.h" 3 4 27002: # 1 "/usr/include/unistd.h" 1 3 4 27002: # 27 "/usr/include/unistd.h" 3 4 27002: extern "C" { 27002: # 202 "/usr/include/unistd.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix_opt.h" 1 3 4 27002: # 203 "/usr/include/unistd.h" 2 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 1 3 4 27002: # 22 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 27002: # 23 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 2 3 4 27002: # 207 "/usr/include/unistd.h" 2 3 4 27002: # 226 "/usr/include/unistd.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 227 "/usr/include/unistd.h" 2 3 4 27002: # 274 "/usr/include/unistd.h" 3 4 27002: typedef __socklen_t socklen_t; 27002: # 287 "/usr/include/unistd.h" 3 4 27002: extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: extern int euidaccess (const char *__name, int __type) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int eaccess (const char *__name, int __type) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int execveat (int __fd, const char *__path, char *const __argv[], 27002: char *const __envp[], int __flags) 27002: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int faccessat (int __fd, const char *__file, int __type, int __flag) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 27002: # 339 "/usr/include/unistd.h" 3 4 27002: extern __off_t lseek (int __fd, __off_t __offset, int __whence) noexcept (true); 27002: # 350 "/usr/include/unistd.h" 3 4 27002: extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) 27002: noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int close (int __fd); 27002: 27002: 27002: 27002: 27002: extern void closefrom (int __lowfd) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: 27002: 27002: 27002: 27002: 27002: extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: # 389 "/usr/include/unistd.h" 3 4 27002: extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, 27002: __off_t __offset) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern ssize_t pwrite (int __fd, const void *__buf, size_t __n, 27002: __off_t __offset) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: # 422 "/usr/include/unistd.h" 3 4 27002: extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, 27002: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: 27002: 27002: extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, 27002: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__read_only__, 2, 3))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int pipe (int __pipedes[2]) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: # 452 "/usr/include/unistd.h" 3 4 27002: extern unsigned int alarm (unsigned int __seconds) noexcept (true); 27002: # 464 "/usr/include/unistd.h" 3 4 27002: extern unsigned int sleep (unsigned int __seconds); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) 27002: noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int usleep (__useconds_t __useconds); 27002: # 489 "/usr/include/unistd.h" 3 4 27002: extern int pause (void); 27002: 27002: 27002: 27002: extern int chown (const char *__file, __uid_t __owner, __gid_t __group) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fchownat (int __fd, const char *__file, __uid_t __owner, 27002: __gid_t __group, int __flag) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern int fchdir (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: # 531 "/usr/include/unistd.h" 3 4 27002: extern char *getcwd (char *__buf, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: extern char *get_current_dir_name (void) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern char *getwd (char *__buf) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 1))); 27002: 27002: 27002: 27002: 27002: extern int dup (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: extern int dup2 (int __fd, int __fd2) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); 27002: 27002: 27002: 27002: extern char **__environ; 27002: 27002: extern char **environ; 27002: 27002: 27002: 27002: 27002: 27002: extern int execve (const char *__path, char *const __argv[], 27002: char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: 27002: extern int execv (const char *__path, char *const __argv[]) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: extern int execle (const char *__path, const char *__arg, ...) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: extern int execl (const char *__path, const char *__arg, ...) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: extern int execvp (const char *__file, char *const __argv[]) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: extern int execlp (const char *__file, const char *__arg, ...) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: extern int execvpe (const char *__file, char *const __argv[], 27002: char *const __envp[]) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: 27002: extern int nice (int __inc) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern void _exit (int __status) __attribute__ ((__noreturn__)); 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 3 4 27002: enum 27002: { 27002: _PC_LINK_MAX, 27002: 27002: _PC_MAX_CANON, 27002: 27002: _PC_MAX_INPUT, 27002: 27002: _PC_NAME_MAX, 27002: 27002: _PC_PATH_MAX, 27002: 27002: _PC_PIPE_BUF, 27002: 27002: _PC_CHOWN_RESTRICTED, 27002: 27002: _PC_NO_TRUNC, 27002: 27002: _PC_VDISABLE, 27002: 27002: _PC_SYNC_IO, 27002: 27002: _PC_ASYNC_IO, 27002: 27002: _PC_PRIO_IO, 27002: 27002: _PC_SOCK_MAXBUF, 27002: 27002: _PC_FILESIZEBITS, 27002: 27002: _PC_REC_INCR_XFER_SIZE, 27002: 27002: _PC_REC_MAX_XFER_SIZE, 27002: 27002: _PC_REC_MIN_XFER_SIZE, 27002: 27002: _PC_REC_XFER_ALIGN, 27002: 27002: _PC_ALLOC_SIZE_MIN, 27002: 27002: _PC_SYMLINK_MAX, 27002: 27002: _PC_2_SYMLINKS 27002: 27002: }; 27002: 27002: 27002: enum 27002: { 27002: _SC_ARG_MAX, 27002: 27002: _SC_CHILD_MAX, 27002: 27002: _SC_CLK_TCK, 27002: 27002: _SC_NGROUPS_MAX, 27002: 27002: _SC_OPEN_MAX, 27002: 27002: _SC_STREAM_MAX, 27002: 27002: _SC_TZNAME_MAX, 27002: 27002: _SC_JOB_CONTROL, 27002: 27002: _SC_SAVED_IDS, 27002: 27002: _SC_REALTIME_SIGNALS, 27002: 27002: _SC_PRIORITY_SCHEDULING, 27002: 27002: _SC_TIMERS, 27002: 27002: _SC_ASYNCHRONOUS_IO, 27002: 27002: _SC_PRIORITIZED_IO, 27002: 27002: _SC_SYNCHRONIZED_IO, 27002: 27002: _SC_FSYNC, 27002: 27002: _SC_MAPPED_FILES, 27002: 27002: _SC_MEMLOCK, 27002: 27002: _SC_MEMLOCK_RANGE, 27002: 27002: _SC_MEMORY_PROTECTION, 27002: 27002: _SC_MESSAGE_PASSING, 27002: 27002: _SC_SEMAPHORES, 27002: 27002: _SC_SHARED_MEMORY_OBJECTS, 27002: 27002: _SC_AIO_LISTIO_MAX, 27002: 27002: _SC_AIO_MAX, 27002: 27002: _SC_AIO_PRIO_DELTA_MAX, 27002: 27002: _SC_DELAYTIMER_MAX, 27002: 27002: _SC_MQ_OPEN_MAX, 27002: 27002: _SC_MQ_PRIO_MAX, 27002: 27002: _SC_VERSION, 27002: 27002: _SC_PAGESIZE, 27002: 27002: 27002: _SC_RTSIG_MAX, 27002: 27002: _SC_SEM_NSEMS_MAX, 27002: 27002: _SC_SEM_VALUE_MAX, 27002: 27002: _SC_SIGQUEUE_MAX, 27002: 27002: _SC_TIMER_MAX, 27002: 27002: 27002: 27002: 27002: _SC_BC_BASE_MAX, 27002: 27002: _SC_BC_DIM_MAX, 27002: 27002: _SC_BC_SCALE_MAX, 27002: 27002: _SC_BC_STRING_MAX, 27002: 27002: _SC_COLL_WEIGHTS_MAX, 27002: 27002: _SC_EQUIV_CLASS_MAX, 27002: 27002: _SC_EXPR_NEST_MAX, 27002: 27002: _SC_LINE_MAX, 27002: 27002: _SC_RE_DUP_MAX, 27002: 27002: _SC_CHARCLASS_NAME_MAX, 27002: 27002: 27002: _SC_2_VERSION, 27002: 27002: _SC_2_C_BIND, 27002: 27002: _SC_2_C_DEV, 27002: 27002: _SC_2_FORT_DEV, 27002: 27002: _SC_2_FORT_RUN, 27002: 27002: _SC_2_SW_DEV, 27002: 27002: _SC_2_LOCALEDEF, 27002: 27002: 27002: _SC_PII, 27002: 27002: _SC_PII_XTI, 27002: 27002: _SC_PII_SOCKET, 27002: 27002: _SC_PII_INTERNET, 27002: 27002: _SC_PII_OSI, 27002: 27002: _SC_POLL, 27002: 27002: _SC_SELECT, 27002: 27002: _SC_UIO_MAXIOV, 27002: 27002: _SC_IOV_MAX = _SC_UIO_MAXIOV, 27002: 27002: _SC_PII_INTERNET_STREAM, 27002: 27002: _SC_PII_INTERNET_DGRAM, 27002: 27002: _SC_PII_OSI_COTS, 27002: 27002: _SC_PII_OSI_CLTS, 27002: 27002: _SC_PII_OSI_M, 27002: 27002: _SC_T_IOV_MAX, 27002: 27002: 27002: 27002: _SC_THREADS, 27002: 27002: _SC_THREAD_SAFE_FUNCTIONS, 27002: 27002: _SC_GETGR_R_SIZE_MAX, 27002: 27002: _SC_GETPW_R_SIZE_MAX, 27002: 27002: _SC_LOGIN_NAME_MAX, 27002: 27002: _SC_TTY_NAME_MAX, 27002: 27002: _SC_THREAD_DESTRUCTOR_ITERATIONS, 27002: 27002: _SC_THREAD_KEYS_MAX, 27002: 27002: _SC_THREAD_STACK_MIN, 27002: 27002: _SC_THREAD_THREADS_MAX, 27002: 27002: _SC_THREAD_ATTR_STACKADDR, 27002: 27002: _SC_THREAD_ATTR_STACKSIZE, 27002: 27002: _SC_THREAD_PRIORITY_SCHEDULING, 27002: 27002: _SC_THREAD_PRIO_INHERIT, 27002: 27002: _SC_THREAD_PRIO_PROTECT, 27002: 27002: _SC_THREAD_PROCESS_SHARED, 27002: 27002: 27002: _SC_NPROCESSORS_CONF, 27002: 27002: _SC_NPROCESSORS_ONLN, 27002: 27002: _SC_PHYS_PAGES, 27002: 27002: _SC_AVPHYS_PAGES, 27002: 27002: _SC_ATEXIT_MAX, 27002: 27002: _SC_PASS_MAX, 27002: 27002: 27002: _SC_XOPEN_VERSION, 27002: 27002: _SC_XOPEN_XCU_VERSION, 27002: 27002: _SC_XOPEN_UNIX, 27002: 27002: _SC_XOPEN_CRYPT, 27002: 27002: _SC_XOPEN_ENH_I18N, 27002: 27002: _SC_XOPEN_SHM, 27002: 27002: 27002: _SC_2_CHAR_TERM, 27002: 27002: _SC_2_C_VERSION, 27002: 27002: _SC_2_UPE, 27002: 27002: 27002: _SC_XOPEN_XPG2, 27002: 27002: _SC_XOPEN_XPG3, 27002: 27002: _SC_XOPEN_XPG4, 27002: 27002: 27002: _SC_CHAR_BIT, 27002: 27002: _SC_CHAR_MAX, 27002: 27002: _SC_CHAR_MIN, 27002: 27002: _SC_INT_MAX, 27002: 27002: _SC_INT_MIN, 27002: 27002: _SC_LONG_BIT, 27002: 27002: _SC_WORD_BIT, 27002: 27002: _SC_MB_LEN_MAX, 27002: 27002: _SC_NZERO, 27002: 27002: _SC_SSIZE_MAX, 27002: 27002: _SC_SCHAR_MAX, 27002: 27002: _SC_SCHAR_MIN, 27002: 27002: _SC_SHRT_MAX, 27002: 27002: _SC_SHRT_MIN, 27002: 27002: _SC_UCHAR_MAX, 27002: 27002: _SC_UINT_MAX, 27002: 27002: _SC_ULONG_MAX, 27002: 27002: _SC_USHRT_MAX, 27002: 27002: 27002: _SC_NL_ARGMAX, 27002: 27002: _SC_NL_LANGMAX, 27002: 27002: _SC_NL_MSGMAX, 27002: 27002: _SC_NL_NMAX, 27002: 27002: _SC_NL_SETMAX, 27002: 27002: _SC_NL_TEXTMAX, 27002: 27002: 27002: _SC_XBS5_ILP32_OFF32, 27002: 27002: _SC_XBS5_ILP32_OFFBIG, 27002: 27002: _SC_XBS5_LP64_OFF64, 27002: 27002: _SC_XBS5_LPBIG_OFFBIG, 27002: 27002: 27002: _SC_XOPEN_LEGACY, 27002: 27002: _SC_XOPEN_REALTIME, 27002: 27002: _SC_XOPEN_REALTIME_THREADS, 27002: 27002: 27002: _SC_ADVISORY_INFO, 27002: 27002: _SC_BARRIERS, 27002: 27002: _SC_BASE, 27002: 27002: _SC_C_LANG_SUPPORT, 27002: 27002: _SC_C_LANG_SUPPORT_R, 27002: 27002: _SC_CLOCK_SELECTION, 27002: 27002: _SC_CPUTIME, 27002: 27002: _SC_THREAD_CPUTIME, 27002: 27002: _SC_DEVICE_IO, 27002: 27002: _SC_DEVICE_SPECIFIC, 27002: 27002: _SC_DEVICE_SPECIFIC_R, 27002: 27002: _SC_FD_MGMT, 27002: 27002: _SC_FIFO, 27002: 27002: _SC_PIPE, 27002: 27002: _SC_FILE_ATTRIBUTES, 27002: 27002: _SC_FILE_LOCKING, 27002: 27002: _SC_FILE_SYSTEM, 27002: 27002: _SC_MONOTONIC_CLOCK, 27002: 27002: _SC_MULTI_PROCESS, 27002: 27002: _SC_SINGLE_PROCESS, 27002: 27002: _SC_NETWORKING, 27002: 27002: _SC_READER_WRITER_LOCKS, 27002: 27002: _SC_SPIN_LOCKS, 27002: 27002: _SC_REGEXP, 27002: 27002: _SC_REGEX_VERSION, 27002: 27002: _SC_SHELL, 27002: 27002: _SC_SIGNALS, 27002: 27002: _SC_SPAWN, 27002: 27002: _SC_SPORADIC_SERVER, 27002: 27002: _SC_THREAD_SPORADIC_SERVER, 27002: 27002: _SC_SYSTEM_DATABASE, 27002: 27002: _SC_SYSTEM_DATABASE_R, 27002: 27002: _SC_TIMEOUTS, 27002: 27002: _SC_TYPED_MEMORY_OBJECTS, 27002: 27002: _SC_USER_GROUPS, 27002: 27002: _SC_USER_GROUPS_R, 27002: 27002: _SC_2_PBS, 27002: 27002: _SC_2_PBS_ACCOUNTING, 27002: 27002: _SC_2_PBS_LOCATE, 27002: 27002: _SC_2_PBS_MESSAGE, 27002: 27002: _SC_2_PBS_TRACK, 27002: 27002: _SC_SYMLOOP_MAX, 27002: 27002: _SC_STREAMS, 27002: 27002: _SC_2_PBS_CHECKPOINT, 27002: 27002: 27002: _SC_V6_ILP32_OFF32, 27002: 27002: _SC_V6_ILP32_OFFBIG, 27002: 27002: _SC_V6_LP64_OFF64, 27002: 27002: _SC_V6_LPBIG_OFFBIG, 27002: 27002: 27002: _SC_HOST_NAME_MAX, 27002: 27002: _SC_TRACE, 27002: 27002: _SC_TRACE_EVENT_FILTER, 27002: 27002: _SC_TRACE_INHERIT, 27002: 27002: _SC_TRACE_LOG, 27002: 27002: 27002: _SC_LEVEL1_ICACHE_SIZE, 27002: 27002: _SC_LEVEL1_ICACHE_ASSOC, 27002: 27002: _SC_LEVEL1_ICACHE_LINESIZE, 27002: 27002: _SC_LEVEL1_DCACHE_SIZE, 27002: 27002: _SC_LEVEL1_DCACHE_ASSOC, 27002: 27002: _SC_LEVEL1_DCACHE_LINESIZE, 27002: 27002: _SC_LEVEL2_CACHE_SIZE, 27002: 27002: _SC_LEVEL2_CACHE_ASSOC, 27002: 27002: _SC_LEVEL2_CACHE_LINESIZE, 27002: 27002: _SC_LEVEL3_CACHE_SIZE, 27002: 27002: _SC_LEVEL3_CACHE_ASSOC, 27002: 27002: _SC_LEVEL3_CACHE_LINESIZE, 27002: 27002: _SC_LEVEL4_CACHE_SIZE, 27002: 27002: _SC_LEVEL4_CACHE_ASSOC, 27002: 27002: _SC_LEVEL4_CACHE_LINESIZE, 27002: 27002: 27002: 27002: _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, 27002: 27002: _SC_RAW_SOCKETS, 27002: 27002: 27002: _SC_V7_ILP32_OFF32, 27002: 27002: _SC_V7_ILP32_OFFBIG, 27002: 27002: _SC_V7_LP64_OFF64, 27002: 27002: _SC_V7_LPBIG_OFFBIG, 27002: 27002: 27002: _SC_SS_REPL_MAX, 27002: 27002: 27002: _SC_TRACE_EVENT_NAME_MAX, 27002: 27002: _SC_TRACE_NAME_MAX, 27002: 27002: _SC_TRACE_SYS_MAX, 27002: 27002: _SC_TRACE_USER_EVENT_MAX, 27002: 27002: 27002: _SC_XOPEN_STREAMS, 27002: 27002: 27002: _SC_THREAD_ROBUST_PRIO_INHERIT, 27002: 27002: _SC_THREAD_ROBUST_PRIO_PROTECT, 27002: 27002: 27002: _SC_MINSIGSTKSZ, 27002: 27002: 27002: _SC_SIGSTKSZ 27002: 27002: }; 27002: 27002: 27002: enum 27002: { 27002: _CS_PATH, 27002: 27002: 27002: _CS_V6_WIDTH_RESTRICTED_ENVS, 27002: 27002: 27002: 27002: _CS_GNU_LIBC_VERSION, 27002: 27002: _CS_GNU_LIBPTHREAD_VERSION, 27002: 27002: 27002: _CS_V5_WIDTH_RESTRICTED_ENVS, 27002: 27002: 27002: 27002: _CS_V7_WIDTH_RESTRICTED_ENVS, 27002: 27002: 27002: 27002: _CS_LFS_CFLAGS = 1000, 27002: 27002: _CS_LFS_LDFLAGS, 27002: 27002: _CS_LFS_LIBS, 27002: 27002: _CS_LFS_LINTFLAGS, 27002: 27002: _CS_LFS64_CFLAGS, 27002: 27002: _CS_LFS64_LDFLAGS, 27002: 27002: _CS_LFS64_LIBS, 27002: 27002: _CS_LFS64_LINTFLAGS, 27002: 27002: 27002: _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, 27002: 27002: _CS_XBS5_ILP32_OFF32_LDFLAGS, 27002: 27002: _CS_XBS5_ILP32_OFF32_LIBS, 27002: 27002: _CS_XBS5_ILP32_OFF32_LINTFLAGS, 27002: 27002: _CS_XBS5_ILP32_OFFBIG_CFLAGS, 27002: 27002: _CS_XBS5_ILP32_OFFBIG_LDFLAGS, 27002: 27002: _CS_XBS5_ILP32_OFFBIG_LIBS, 27002: 27002: _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, 27002: 27002: _CS_XBS5_LP64_OFF64_CFLAGS, 27002: 27002: _CS_XBS5_LP64_OFF64_LDFLAGS, 27002: 27002: _CS_XBS5_LP64_OFF64_LIBS, 27002: 27002: _CS_XBS5_LP64_OFF64_LINTFLAGS, 27002: 27002: _CS_XBS5_LPBIG_OFFBIG_CFLAGS, 27002: 27002: _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, 27002: 27002: _CS_XBS5_LPBIG_OFFBIG_LIBS, 27002: 27002: _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, 27002: 27002: 27002: _CS_POSIX_V6_ILP32_OFF32_CFLAGS, 27002: 27002: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, 27002: 27002: _CS_POSIX_V6_ILP32_OFF32_LIBS, 27002: 27002: _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, 27002: 27002: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, 27002: 27002: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, 27002: 27002: _CS_POSIX_V6_ILP32_OFFBIG_LIBS, 27002: 27002: _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, 27002: 27002: _CS_POSIX_V6_LP64_OFF64_CFLAGS, 27002: 27002: _CS_POSIX_V6_LP64_OFF64_LDFLAGS, 27002: 27002: _CS_POSIX_V6_LP64_OFF64_LIBS, 27002: 27002: _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, 27002: 27002: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, 27002: 27002: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, 27002: 27002: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, 27002: 27002: _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, 27002: 27002: 27002: _CS_POSIX_V7_ILP32_OFF32_CFLAGS, 27002: 27002: _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, 27002: 27002: _CS_POSIX_V7_ILP32_OFF32_LIBS, 27002: 27002: _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, 27002: 27002: _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, 27002: 27002: _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, 27002: 27002: _CS_POSIX_V7_ILP32_OFFBIG_LIBS, 27002: 27002: _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, 27002: 27002: _CS_POSIX_V7_LP64_OFF64_CFLAGS, 27002: 27002: _CS_POSIX_V7_LP64_OFF64_LDFLAGS, 27002: 27002: _CS_POSIX_V7_LP64_OFF64_LIBS, 27002: 27002: _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, 27002: 27002: _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, 27002: 27002: _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, 27002: 27002: _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, 27002: 27002: _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, 27002: 27002: 27002: _CS_V6_ENV, 27002: 27002: _CS_V7_ENV 27002: 27002: }; 27002: # 631 "/usr/include/unistd.h" 2 3 4 27002: 27002: 27002: extern long int pathconf (const char *__path, int __name) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern long int fpathconf (int __fd, int __name) noexcept (true); 27002: 27002: 27002: extern long int sysconf (int __name) noexcept (true); 27002: 27002: 27002: 27002: extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: 27002: 27002: 27002: 27002: extern __pid_t getpid (void) noexcept (true); 27002: 27002: 27002: extern __pid_t getppid (void) noexcept (true); 27002: 27002: 27002: extern __pid_t getpgrp (void) noexcept (true); 27002: 27002: 27002: extern __pid_t __getpgid (__pid_t __pid) noexcept (true); 27002: 27002: extern __pid_t getpgid (__pid_t __pid) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); 27002: # 682 "/usr/include/unistd.h" 3 4 27002: extern int setpgrp (void) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern __pid_t setsid (void) noexcept (true); 27002: 27002: 27002: 27002: extern __pid_t getsid (__pid_t __pid) noexcept (true); 27002: 27002: 27002: 27002: extern __uid_t getuid (void) noexcept (true); 27002: 27002: 27002: extern __uid_t geteuid (void) noexcept (true); 27002: 27002: 27002: extern __gid_t getgid (void) noexcept (true); 27002: 27002: 27002: extern __gid_t getegid (void) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 2, 1))); 27002: 27002: 27002: extern int group_member (__gid_t __gid) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int setuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int seteuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int setgid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int setegid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) 27002: noexcept (true); 27002: 27002: 27002: 27002: extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) 27002: noexcept (true); 27002: 27002: 27002: 27002: extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern __pid_t fork (void) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern __pid_t vfork (void) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern __pid_t _Fork (void) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern char *ttyname (int __fd) noexcept (true); 27002: 27002: 27002: 27002: extern int ttyname_r (int __fd, char *__buf, size_t __buflen) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: 27002: 27002: 27002: extern int isatty (int __fd) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int ttyslot (void) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int link (const char *__from, const char *__to) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int linkat (int __fromfd, const char *__from, int __tofd, 27002: const char *__to, int __flags) 27002: noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern int symlink (const char *__from, const char *__to) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: extern ssize_t readlink (const char *__restrict __path, 27002: char *__restrict __buf, size_t __len) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: 27002: 27002: 27002: 27002: 27002: extern int symlinkat (const char *__from, int __tofd, 27002: const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: extern ssize_t readlinkat (int __fd, const char *__restrict __path, 27002: char *__restrict __buf, size_t __len) 27002: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 3, 4))); 27002: 27002: 27002: 27002: extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern int unlinkat (int __fd, const char *__name, int __flag) 27002: noexcept (true) __attribute__ ((__nonnull__ (2))); 27002: 27002: 27002: 27002: extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: extern __pid_t tcgetpgrp (int __fd) noexcept (true); 27002: 27002: 27002: extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern char *getlogin (void); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) 27002: __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: 27002: 27002: 27002: 27002: extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 1 3 4 27002: # 27 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 1 3 4 27002: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern char *optarg; 27002: # 50 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 27002: extern int optind; 27002: 27002: 27002: 27002: 27002: extern int opterr; 27002: 27002: 27002: 27002: extern int optopt; 27002: # 91 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 27002: extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) 27002: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 27002: 27002: } 27002: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 2 3 4 27002: 27002: extern "C" { 27002: # 49 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 27002: } 27002: # 904 "/usr/include/unistd.h" 2 3 4 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) 27002: __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int sethostname (const char *__name, size_t __len) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 27002: 27002: 27002: 27002: extern int sethostid (long int __id) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: extern int getdomainname (char *__name, size_t __len) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: extern int setdomainname (const char *__name, size_t __len) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 27002: 27002: 27002: 27002: 27002: extern int vhangup (void) noexcept (true); 27002: 27002: 27002: extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int profil (unsigned short int *__sample_buffer, size_t __size, 27002: size_t __offset, unsigned int __scale) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: extern int acct (const char *__name) noexcept (true); 27002: 27002: 27002: 27002: extern char *getusershell (void) noexcept (true); 27002: extern void endusershell (void) noexcept (true); 27002: extern void setusershell (void) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern int daemon (int __nochdir, int __noclose) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int fsync (int __fd); 27002: 27002: 27002: 27002: 27002: 27002: extern int syncfs (int __fd) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern long int gethostid (void); 27002: 27002: 27002: extern void sync (void) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: 27002: 27002: extern int getdtablesize (void) noexcept (true); 27002: # 1026 "/usr/include/unistd.h" 3 4 27002: extern int truncate (const char *__file, __off_t __length) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 1038 "/usr/include/unistd.h" 3 4 27002: extern int truncate64 (const char *__file, __off64_t __length) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 27002: # 1049 "/usr/include/unistd.h" 3 4 27002: extern int ftruncate (int __fd, __off_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: # 1059 "/usr/include/unistd.h" 3 4 27002: extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: # 1070 "/usr/include/unistd.h" 3 4 27002: extern int brk (void *__addr) noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: 27002: 27002: 27002: 27002: 27002: extern void *sbrk (intptr_t __delta) noexcept (true); 27002: # 1091 "/usr/include/unistd.h" 3 4 27002: extern long int syscall (long int __sysno, ...) noexcept (true); 27002: # 1114 "/usr/include/unistd.h" 3 4 27002: extern int lockf (int __fd, int __cmd, __off_t __len) __attribute__ ((__warn_unused_result__)); 27002: # 1124 "/usr/include/unistd.h" 3 4 27002: extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); 27002: # 1142 "/usr/include/unistd.h" 3 4 27002: ssize_t copy_file_range (int __infd, __off64_t *__pinoff, 27002: int __outfd, __off64_t *__poutoff, 27002: size_t __length, unsigned int __flags); 27002: 27002: 27002: 27002: 27002: 27002: extern int fdatasync (int __fildes); 27002: # 1159 "/usr/include/unistd.h" 3 4 27002: extern char *crypt (const char *__key, const char *__salt) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern void swab (const void *__restrict __from, void *__restrict __to, 27002: ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) 27002: __attribute__ ((__access__ (__read_only__, 1, 3))) 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: # 1198 "/usr/include/unistd.h" 3 4 27002: int getentropy (void *__buffer, size_t __length) __attribute__ ((__warn_unused_result__)) 27002: __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: # 1208 "/usr/include/unistd.h" 3 4 27002: extern int close_range (unsigned int __fd, unsigned int __max_fd, 27002: int __flags) noexcept (true); 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 1 3 4 27002: # 23 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 27002: extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, 27002: size_t __buflen) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 27002: read (int __fd, void *__buf, size_t __nbytes) 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, 27002: __off_t __offset, size_t __bufsize) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, 27002: __off64_t __offset, size_t __bufsize) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) 27002: ; 27002: extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") 27002: 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) 27002: ; 27002: 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 27002: pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset) 27002: { 27002: 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)))))) ? __pread_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)))) ? __pread_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)) : __pread_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)))) 27002: 27002: ; 27002: } 27002: # 89 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 27002: pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: 27002: 27002: extern ssize_t __readlink_chk (const char *__restrict __path, 27002: char *__restrict __buf, size_t __len, 27002: size_t __buflen) 27002: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlink") 27002: 27002: 27002: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlink_chk") 27002: 27002: 27002: 27002: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t 27002: __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) 27002: 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: 27002: extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, 27002: char *__restrict __buf, size_t __len, 27002: size_t __buflen) 27002: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 27002: extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlinkat") 27002: 27002: 27002: 27002: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 27002: 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") 27002: 27002: 27002: 27002: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) 27002: 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t 27002: __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) 27002: 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)); 27002: extern char *__getcwd_alias (char *__buf, size_t __size) noexcept (true) __asm__ ("" "getcwd") 27002: __attribute__ ((__warn_unused_result__)); 27002: extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) noexcept (true) __asm__ ("" "__getcwd_chk") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 27002: __attribute__ ((__leaf__)) getcwd (char *__buf, size_t __size) noexcept (true) 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern char *__getwd_chk (char *__buf, size_t buflen) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: extern char *__getwd_warn (char *__buf) noexcept (true) __asm__ ("" "getwd") 27002: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * 27002: __attribute__ ((__leaf__)) getwd (char *__buf) noexcept (true) 27002: { 27002: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 27002: return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); 27002: return __getwd_warn (__buf); 27002: } 27002: 27002: 27002: extern size_t __confstr_chk (int __name, char *__buf, size_t __len, 27002: size_t __buflen) noexcept (true) 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern size_t __confstr_alias (int __name, char *__buf, size_t __len) noexcept (true) __asm__ ("" "confstr") 27002: 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__confstr_chk") 27002: 27002: 27002: __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 27002: __attribute__ ((__leaf__)) confstr (int __name, char *__buf, size_t __len) noexcept (true) 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) 27002: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 27002: extern int __getgroups_alias (int __size, __gid_t __list[]) noexcept (true) __asm__ ("" "getgroups") 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 27002: extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) noexcept (true) __asm__ ("" "__getgroups_chk") 27002: 27002: 27002: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) getgroups (int __size, __gid_t __list[]) noexcept (true) 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, 27002: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 27002: __attribute__ ((__access__ (__write_only__, 2, 3))); 27002: extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ttyname_r") 27002: 27002: __attribute__ ((__nonnull__ (2))); 27002: extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ttyname_r_chk") 27002: 27002: 27002: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) ttyname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: 27002: extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) 27002: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") 27002: __attribute__ ((__nonnull__ (1))); 27002: extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") 27002: 27002: 27002: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: getlogin_r (char *__buf, size_t __buflen) 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: 27002: 27002: extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: extern int __gethostname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "gethostname") 27002: 27002: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__gethostname_chk") 27002: 27002: 27002: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) gethostname (char *__buf, size_t __buflen) noexcept (true) 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: 27002: 27002: 27002: 27002: extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: extern int __getdomainname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "getdomainname") 27002: 27002: __attribute__ ((__nonnull__ (1))) 27002: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 27002: extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__getdomainname_chk") 27002: 27002: 27002: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) 27002: 27002: ; 27002: 27002: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 27002: __attribute__ ((__leaf__)) getdomainname (char *__buf, size_t __buflen) noexcept (true) 27002: { 27002: 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)))) 27002: 27002: ; 27002: } 27002: # 1215 "/usr/include/unistd.h" 2 3 4 27002: 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 1 3 4 27002: # 34 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 3 4 27002: extern __pid_t gettid (void) noexcept (true); 27002: 27002: 27002: 27002: # 1 "/usr/include/linux/close_range.h" 1 3 4 27002: # 39 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 2 3 4 27002: # 1219 "/usr/include/unistd.h" 2 3 4 27002: 27002: } 27002: # 489 "/usr/include/zconf.h" 2 3 4 27002: # 35 "/usr/include/zlib.h" 2 3 4 27002: 27002: 27002: extern "C" { 27002: # 81 "/usr/include/zlib.h" 3 4 27002: typedef voidpf (*alloc_func) (voidpf opaque, uInt items, uInt size); 27002: typedef void (*free_func) (voidpf opaque, voidpf address); 27002: 27002: struct internal_state; 27002: 27002: typedef struct z_stream_s { 27002: Bytef *next_in; 27002: uInt avail_in; 27002: uLong total_in; 27002: 27002: Bytef *next_out; 27002: uInt avail_out; 27002: uLong total_out; 27002: 27002: char *msg; 27002: struct internal_state *state; 27002: 27002: alloc_func zalloc; 27002: free_func zfree; 27002: voidpf opaque; 27002: 27002: int data_type; 27002: 27002: uLong adler; 27002: uLong reserved; 27002: } z_stream; 27002: 27002: typedef z_stream *z_streamp; 27002: 27002: 27002: 27002: 27002: 27002: typedef struct gz_header_s { 27002: int text; 27002: uLong time; 27002: int xflags; 27002: int os; 27002: Bytef *extra; 27002: uInt extra_len; 27002: uInt extra_max; 27002: Bytef *name; 27002: uInt name_max; 27002: Bytef *comment; 27002: uInt comm_max; 27002: int hcrc; 27002: int done; 27002: 27002: } gz_header; 27002: 27002: typedef gz_header *gz_headerp; 27002: # 220 "/usr/include/zlib.h" 3 4 27002: extern const char * zlibVersion (void); 27002: # 250 "/usr/include/zlib.h" 3 4 27002: extern int deflate (z_streamp strm, int flush); 27002: # 363 "/usr/include/zlib.h" 3 4 27002: extern int deflateEnd (z_streamp strm); 27002: # 400 "/usr/include/zlib.h" 3 4 27002: extern int inflate (z_streamp strm, int flush); 27002: # 520 "/usr/include/zlib.h" 3 4 27002: extern int inflateEnd (z_streamp strm); 27002: # 610 "/usr/include/zlib.h" 3 4 27002: extern int deflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength) 27002: 27002: ; 27002: # 654 "/usr/include/zlib.h" 3 4 27002: extern int deflateGetDictionary (z_streamp strm, Bytef *dictionary, uInt *dictLength) 27002: 27002: ; 27002: # 676 "/usr/include/zlib.h" 3 4 27002: extern int deflateCopy (z_streamp dest, z_streamp source) 27002: ; 27002: # 694 "/usr/include/zlib.h" 3 4 27002: extern int deflateReset (z_streamp strm); 27002: # 705 "/usr/include/zlib.h" 3 4 27002: extern int deflateParams (z_streamp strm, int level, int strategy) 27002: 27002: ; 27002: # 743 "/usr/include/zlib.h" 3 4 27002: extern int deflateTune (z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain) 27002: 27002: 27002: 27002: ; 27002: # 760 "/usr/include/zlib.h" 3 4 27002: extern uLong deflateBound (z_streamp strm, uLong sourceLen) 27002: ; 27002: # 775 "/usr/include/zlib.h" 3 4 27002: extern int deflatePending (z_streamp strm, unsigned *pending, int *bits) 27002: 27002: ; 27002: # 790 "/usr/include/zlib.h" 3 4 27002: extern int deflatePrime (z_streamp strm, int bits, int value) 27002: 27002: ; 27002: # 807 "/usr/include/zlib.h" 3 4 27002: extern int deflateSetHeader (z_streamp strm, gz_headerp head) 27002: ; 27002: # 886 "/usr/include/zlib.h" 3 4 27002: extern int inflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength) 27002: 27002: ; 27002: # 909 "/usr/include/zlib.h" 3 4 27002: extern int inflateGetDictionary (z_streamp strm, Bytef *dictionary, uInt *dictLength) 27002: 27002: ; 27002: # 924 "/usr/include/zlib.h" 3 4 27002: extern int inflateSync (z_streamp strm); 27002: # 943 "/usr/include/zlib.h" 3 4 27002: extern int inflateCopy (z_streamp dest, z_streamp source) 27002: ; 27002: # 959 "/usr/include/zlib.h" 3 4 27002: extern int inflateReset (z_streamp strm); 27002: # 969 "/usr/include/zlib.h" 3 4 27002: extern int inflateReset2 (z_streamp strm, int windowBits) 27002: ; 27002: # 983 "/usr/include/zlib.h" 3 4 27002: extern int inflatePrime (z_streamp strm, int bits, int value) 27002: 27002: ; 27002: # 1004 "/usr/include/zlib.h" 3 4 27002: extern long inflateMark (z_streamp strm); 27002: # 1032 "/usr/include/zlib.h" 3 4 27002: extern int inflateGetHeader (z_streamp strm, gz_headerp head) 27002: ; 27002: # 1094 "/usr/include/zlib.h" 3 4 27002: typedef unsigned (*in_func) (void *, unsigned char * *) 27002: ; 27002: typedef int (*out_func) (void *, unsigned char *, unsigned); 27002: 27002: extern int inflateBack (z_streamp strm, in_func in, void *in_desc, out_func out, void *out_desc) 27002: 27002: ; 27002: # 1168 "/usr/include/zlib.h" 3 4 27002: extern int inflateBackEnd (z_streamp strm); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern uLong zlibCompileFlags (void); 27002: # 1229 "/usr/include/zlib.h" 3 4 27002: extern int compress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen) 27002: ; 27002: # 1244 "/usr/include/zlib.h" 3 4 27002: extern int compress2 (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level) 27002: 27002: ; 27002: # 1260 "/usr/include/zlib.h" 3 4 27002: extern uLong compressBound (uLong sourceLen); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen) 27002: ; 27002: # 1285 "/usr/include/zlib.h" 3 4 27002: extern int uncompress2 (Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen) 27002: ; 27002: # 1302 "/usr/include/zlib.h" 3 4 27002: typedef struct gzFile_s *gzFile; 27002: # 1342 "/usr/include/zlib.h" 3 4 27002: extern gzFile gzdopen (int fd, const char *mode); 27002: # 1365 "/usr/include/zlib.h" 3 4 27002: extern int gzbuffer (gzFile file, unsigned size); 27002: # 1381 "/usr/include/zlib.h" 3 4 27002: extern int gzsetparams (gzFile file, int level, int strategy); 27002: # 1392 "/usr/include/zlib.h" 3 4 27002: extern int gzread (gzFile file, voidp buf, unsigned len); 27002: # 1422 "/usr/include/zlib.h" 3 4 27002: extern z_size_t gzfread (voidp buf, z_size_t size, z_size_t nitems, gzFile file) 27002: ; 27002: # 1448 "/usr/include/zlib.h" 3 4 27002: extern int gzwrite (gzFile file, voidpc buf, unsigned len); 27002: 27002: 27002: 27002: 27002: 27002: extern z_size_t gzfwrite (voidpc buf, z_size_t size, z_size_t nitems, gzFile file) 27002: ; 27002: # 1468 "/usr/include/zlib.h" 3 4 27002: extern int gzprintf (gzFile file, const char *format, ...); 27002: # 1483 "/usr/include/zlib.h" 3 4 27002: extern int gzputs (gzFile file, const char *s); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern char * gzgets (gzFile file, char *buf, int len); 27002: # 1505 "/usr/include/zlib.h" 3 4 27002: extern int gzputc (gzFile file, int c); 27002: 27002: 27002: 27002: 27002: 27002: extern int gzgetc (gzFile file); 27002: # 1520 "/usr/include/zlib.h" 3 4 27002: extern int gzungetc (int c, gzFile file); 27002: # 1532 "/usr/include/zlib.h" 3 4 27002: extern int gzflush (gzFile file, int flush); 27002: # 1567 "/usr/include/zlib.h" 3 4 27002: extern int gzrewind (gzFile file); 27002: # 1595 "/usr/include/zlib.h" 3 4 27002: extern int gzeof (gzFile file); 27002: # 1610 "/usr/include/zlib.h" 3 4 27002: extern int gzdirect (gzFile file); 27002: # 1631 "/usr/include/zlib.h" 3 4 27002: extern int gzclose (gzFile file); 27002: # 1644 "/usr/include/zlib.h" 3 4 27002: extern int gzclose_r (gzFile file); 27002: extern int gzclose_w (gzFile file); 27002: # 1656 "/usr/include/zlib.h" 3 4 27002: extern const char * gzerror (gzFile file, int *errnum); 27002: # 1672 "/usr/include/zlib.h" 3 4 27002: extern void gzclearerr (gzFile file); 27002: # 1689 "/usr/include/zlib.h" 3 4 27002: extern uLong adler32 (uLong adler, const Bytef *buf, uInt len); 27002: # 1709 "/usr/include/zlib.h" 3 4 27002: extern uLong adler32_z (uLong adler, const Bytef *buf, z_size_t len) 27002: ; 27002: # 1727 "/usr/include/zlib.h" 3 4 27002: extern uLong crc32 (uLong crc, const Bytef *buf, uInt len); 27002: # 1745 "/usr/include/zlib.h" 3 4 27002: extern uLong crc32_z (uLong crc, const Bytef *buf, z_size_t len) 27002: ; 27002: # 1768 "/usr/include/zlib.h" 3 4 27002: extern uLong crc32_combine_op (uLong crc1, uLong crc2, uLong op); 27002: # 1781 "/usr/include/zlib.h" 3 4 27002: extern int deflateInit_ (z_streamp strm, int level, const char *version, int stream_size) 27002: ; 27002: extern int inflateInit_ (z_streamp strm, const char *version, int stream_size) 27002: ; 27002: extern int deflateInit2_ (z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size) 27002: 27002: 27002: ; 27002: extern int inflateInit2_ (z_streamp strm, int windowBits, const char *version, int stream_size) 27002: ; 27002: extern int inflateBackInit_ (z_streamp strm, int windowBits, unsigned char *window, const char *version, int stream_size) 27002: 27002: 27002: ; 27002: # 1834 "/usr/include/zlib.h" 3 4 27002: struct gzFile_s { 27002: unsigned have; 27002: unsigned char *next; 27002: off64_t pos; 27002: }; 27002: extern int gzgetc_ (gzFile file); 27002: # 1856 "/usr/include/zlib.h" 3 4 27002: extern gzFile gzopen64 (const char *, const char *); 27002: extern off64_t gzseek64 (gzFile, off64_t, int); 27002: extern off64_t gztell64 (gzFile); 27002: extern off64_t gzoffset64 (gzFile); 27002: extern uLong adler32_combine64 (uLong, uLong, off64_t); 27002: extern uLong crc32_combine64 (uLong, uLong, off64_t); 27002: extern uLong crc32_combine_gen64 (off64_t); 27002: # 1893 "/usr/include/zlib.h" 3 4 27002: extern gzFile gzopen (const char *, const char *); 27002: extern off_t gzseek (gzFile, off_t, int); 27002: extern off_t gztell (gzFile); 27002: extern off_t gzoffset (gzFile); 27002: extern uLong adler32_combine (uLong, uLong, off_t); 27002: extern uLong crc32_combine (uLong, uLong, off_t); 27002: extern uLong crc32_combine_gen (off_t); 27002: # 1911 "/usr/include/zlib.h" 3 4 27002: extern const char * zError (int); 27002: extern int inflateSyncPoint (z_streamp); 27002: extern const z_crc_t * get_crc_table (void); 27002: extern int inflateUndermine (z_streamp, int); 27002: extern int inflateValidate (z_streamp, int); 27002: extern unsigned long inflateCodesUsed (z_streamp); 27002: extern int inflateResetKeep (z_streamp); 27002: extern int deflateResetKeep (z_streamp); 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int gzvprintf (gzFile file, const char *format, va_list va) 27002: 27002: ; 27002: 27002: 27002: 27002: 27002: } 27002: # 37 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: 27002: 27002: 27002: # 1 "/usr/include/bzlib.h" 1 3 4 27002: # 26 "/usr/include/bzlib.h" 3 4 27002: extern "C" { 27002: # 48 "/usr/include/bzlib.h" 3 4 27002: typedef 27002: struct { 27002: char *next_in; 27002: unsigned int avail_in; 27002: unsigned int total_in_lo32; 27002: unsigned int total_in_hi32; 27002: 27002: char *next_out; 27002: unsigned int avail_out; 27002: unsigned int total_out_lo32; 27002: unsigned int total_out_hi32; 27002: 27002: void *state; 27002: 27002: void *(*bzalloc)(void *,int,int); 27002: void (*bzfree)(void *,void *); 27002: void *opaque; 27002: } 27002: bz_stream; 27002: # 100 "/usr/include/bzlib.h" 3 4 27002: extern int BZ2_bzCompressInit ( 27002: bz_stream* strm, 27002: int blockSize100k, 27002: int verbosity, 27002: int workFactor 27002: ); 27002: 27002: extern int BZ2_bzCompress ( 27002: bz_stream* strm, 27002: int action 27002: ); 27002: 27002: extern int BZ2_bzCompressEnd ( 27002: bz_stream* strm 27002: ); 27002: 27002: extern int BZ2_bzDecompressInit ( 27002: bz_stream *strm, 27002: int verbosity, 27002: int small 27002: ); 27002: 27002: extern int BZ2_bzDecompress ( 27002: bz_stream* strm 27002: ); 27002: 27002: extern int BZ2_bzDecompressEnd ( 27002: bz_stream *strm 27002: ); 27002: # 137 "/usr/include/bzlib.h" 3 4 27002: typedef void BZFILE; 27002: 27002: extern BZFILE* BZ2_bzReadOpen ( 27002: int* bzerror, 27002: FILE* f, 27002: int verbosity, 27002: int small, 27002: void* unused, 27002: int nUnused 27002: ); 27002: 27002: extern void BZ2_bzReadClose ( 27002: int* bzerror, 27002: BZFILE* b 27002: ); 27002: 27002: extern void BZ2_bzReadGetUnused ( 27002: int* bzerror, 27002: BZFILE* b, 27002: void** unused, 27002: int* nUnused 27002: ); 27002: 27002: extern int BZ2_bzRead ( 27002: int* bzerror, 27002: BZFILE* b, 27002: void* buf, 27002: int len 27002: ); 27002: 27002: extern BZFILE* BZ2_bzWriteOpen ( 27002: int* bzerror, 27002: FILE* f, 27002: int blockSize100k, 27002: int verbosity, 27002: int workFactor 27002: ); 27002: 27002: extern void BZ2_bzWrite ( 27002: int* bzerror, 27002: BZFILE* b, 27002: void* buf, 27002: int len 27002: ); 27002: 27002: extern void BZ2_bzWriteClose ( 27002: int* bzerror, 27002: BZFILE* b, 27002: int abandon, 27002: unsigned int* nbytes_in, 27002: unsigned int* nbytes_out 27002: ); 27002: 27002: extern void BZ2_bzWriteClose64 ( 27002: int* bzerror, 27002: BZFILE* b, 27002: int abandon, 27002: unsigned int* nbytes_in_lo32, 27002: unsigned int* nbytes_in_hi32, 27002: unsigned int* nbytes_out_lo32, 27002: unsigned int* nbytes_out_hi32 27002: ); 27002: 27002: 27002: 27002: 27002: 27002: extern int BZ2_bzBuffToBuffCompress ( 27002: char* dest, 27002: unsigned int* destLen, 27002: char* source, 27002: unsigned int sourceLen, 27002: int blockSize100k, 27002: int verbosity, 27002: int workFactor 27002: ); 27002: 27002: extern int BZ2_bzBuffToBuffDecompress ( 27002: char* dest, 27002: unsigned int* destLen, 27002: char* source, 27002: unsigned int sourceLen, 27002: int small, 27002: int verbosity 27002: ); 27002: # 233 "/usr/include/bzlib.h" 3 4 27002: extern const char * BZ2_bzlibVersion ( 27002: void 27002: ); 27002: 27002: 27002: extern BZFILE * BZ2_bzopen ( 27002: const char *path, 27002: const char *mode 27002: ); 27002: 27002: extern BZFILE * BZ2_bzdopen ( 27002: int fd, 27002: const char *mode 27002: ); 27002: 27002: extern int BZ2_bzread ( 27002: BZFILE* b, 27002: void* buf, 27002: int len 27002: ); 27002: 27002: extern int BZ2_bzwrite ( 27002: BZFILE* b, 27002: void* buf, 27002: int len 27002: ); 27002: 27002: extern int BZ2_bzflush ( 27002: BZFILE* b 27002: ); 27002: 27002: extern void BZ2_bzclose ( 27002: BZFILE* b 27002: ); 27002: 27002: extern const char * BZ2_bzerror ( 27002: BZFILE *b, 27002: int *errnum 27002: ); 27002: 27002: 27002: 27002: } 27002: # 41 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: 27002: 27002: 27002: # 1 "/usr/include/lz4.h" 1 3 4 27002: # 36 "/usr/include/lz4.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 44 "/usr/include/lz4.h" 2 3 4 27002: # 142 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_versionNumber (void); 27002: __attribute__ ((visibility ("default"))) const char* LZ4_versionString (void); 27002: # 189 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 27002: # 205 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity); 27002: # 223 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_compressBound(int inputSize); 27002: # 233 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 27002: # 242 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_sizeofState(void); 27002: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 27002: # 269 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_compress_destSize (const char* src, char* dst, int* srcSizePtr, int targetDstSize); 27002: # 306 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 27002: 27002: 27002: 27002: 27002: 27002: typedef union LZ4_stream_u LZ4_stream_t; 27002: # 329 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_createStream(void); 27002: __attribute__ ((visibility ("default"))) int LZ4_freeStream (LZ4_stream_t* streamPtr); 27002: # 356 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); 27002: # 369 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 27002: # 394 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 27002: # 403 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_saveDict (LZ4_stream_t* streamPtr, char* safeBuffer, int maxDictSize); 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef union LZ4_streamDecode_u LZ4_streamDecode_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) LZ4_streamDecode_t* LZ4_createStreamDecode(void); 27002: __attribute__ ((visibility ("default"))) int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream); 27002: # 430 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 27002: # 443 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_decoderRingBufferSize(int maxBlockSize); 27002: # 471 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int 27002: LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, 27002: const char* src, char* dst, 27002: int srcSize, int dstCapacity); 27002: # 485 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) int 27002: LZ4_decompress_safe_usingDict(const char* src, char* dst, 27002: int srcSize, int dstCapacity, 27002: const char* dictStart, int dictSize); 27002: 27002: __attribute__ ((visibility ("default"))) int 27002: LZ4_decompress_safe_partial_usingDict(const char* src, char* dst, 27002: int compressedSize, 27002: int targetOutputSize, int maxOutputSize, 27002: const char* dictStart, int dictSize); 27002: # 660 "/usr/include/lz4.h" 3 4 27002: typedef int8_t LZ4_i8; 27002: typedef uint8_t LZ4_byte; 27002: typedef uint16_t LZ4_u16; 27002: typedef uint32_t LZ4_u32; 27002: # 677 "/usr/include/lz4.h" 3 4 27002: typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; 27002: struct LZ4_stream_t_internal { 27002: LZ4_u32 hashTable[(1 << (14 -2))]; 27002: const LZ4_byte* dictionary; 27002: const LZ4_stream_t_internal* dictCtx; 27002: LZ4_u32 currentOffset; 27002: LZ4_u32 tableType; 27002: LZ4_u32 dictSize; 27002: 27002: }; 27002: 27002: 27002: union LZ4_stream_u { 27002: char minStateSize[((1UL << 14) + 32)]; 27002: LZ4_stream_t_internal internal_donotuse; 27002: }; 27002: # 709 "/usr/include/lz4.h" 3 4 27002: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_initStream (void* buffer, size_t size); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef struct { 27002: const LZ4_byte* externalDict; 27002: const LZ4_byte* prefixEnd; 27002: size_t extDictSize; 27002: size_t prefixSize; 27002: } LZ4_streamDecode_t_internal; 27002: 27002: 27002: union LZ4_streamDecode_u { 27002: char minStateSize[32]; 27002: LZ4_streamDecode_t_internal internal_donotuse; 27002: } ; 27002: # 765 "/usr/include/lz4.h" 3 4 27002: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress (const char* src, char* dest, int srcSize); 27002: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput (const char* src, char* dest, int srcSize, int maxOutputSize); 27002: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_withState (void* state, const char* source, char* dest, int inputSize); 27002: [[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); 27002: [[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); 27002: [[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); 27002: 27002: 27002: [[deprecated("use LZ4_decompress_fast() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress (const char* source, char* dest, int outputSize); 27002: [[deprecated("use LZ4_decompress_safe() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); 27002: # 786 "/usr/include/lz4.h" 3 4 27002: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_create (char* inputBuffer); 27002: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamState(void); 27002: [[deprecated("Use LZ4_resetStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamState(void* state, char* inputBuffer); 27002: [[deprecated("Use LZ4_saveDict() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBuffer (void* state); 27002: 27002: 27002: [[deprecated("use LZ4_decompress_safe_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); 27002: [[deprecated("use LZ4_decompress_fast_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); 27002: # 821 "/usr/include/lz4.h" 3 4 27002: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe() instead")]] 27002: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast (const char* src, char* dst, int originalSize); 27002: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_continue() instead")]] 27002: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int originalSize); 27002: [[deprecated("This function is deprecated anIn member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'rocksdb::FragmentedRangeTombstoneList::FragmentTombstones(std::unique_ptr >, const rocksdb::InternalKeyComparator&, bool, const std::vector&)::' at /build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.cc:158:38: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ d unsafe. Consider using LZ4_decompress_safe_usingDict() instead")]] 27002: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) void LZ4_resetStream (LZ4_stream_t* streamPtr); 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: # 45 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: # 1 "/usr/include/lz4hc.h" 1 3 4 27002: # 38 "/usr/include/lz4hc.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/lz4.h" 1 3 4 27002: # 36 "/usr/include/lz4.h" 3 4 27002: extern "C" { 27002: # 841 "/usr/include/lz4.h" 3 4 27002: } 27002: # 44 "/usr/include/lz4hc.h" 2 3 4 27002: # 66 "/usr/include/lz4hc.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 27002: # 79 "/usr/include/lz4hc.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_sizeofStateHC(void); 27002: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_extStateHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 27002: # 91 "/usr/include/lz4hc.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_destSize(void* stateHC, 27002: const char* src, char* dst, 27002: int* srcSizePtr, int targetDstSize, 27002: int compressionLevel); 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef union LZ4_streamHC_u LZ4_streamHC_t; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_createStreamHC(void); 27002: __attribute__ ((visibility ("default"))) int LZ4_freeStreamHC (LZ4_streamHC_t* streamHCPtr); 27002: # 155 "/usr/include/lz4hc.h" 3 4 27002: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); 27002: __attribute__ ((visibility ("default"))) int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize); 27002: 27002: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, 27002: const char* src, char* dst, 27002: int srcSize, int maxDstSize); 27002: # 172 "/usr/include/lz4hc.h" 3 4 27002: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, 27002: const char* src, char* dst, 27002: int* srcSizePtr, int targetDstSize); 27002: 27002: __attribute__ ((visibility ("default"))) int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, int maxDictSize); 27002: # 204 "/usr/include/lz4hc.h" 3 4 27002: typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal; 27002: struct LZ4HC_CCtx_internal 27002: { 27002: LZ4_u32 hashTable[(1 << 15)]; 27002: LZ4_u16 chainTable[(1<<16)]; 27002: const LZ4_byte* end; 27002: const LZ4_byte* prefixStart; 27002: const LZ4_byte* dictStart; 27002: LZ4_u32 dictLimit; 27002: LZ4_u32 lowLimit; 27002: LZ4_u32 nextToUpdate; 27002: short compressionLevel; 27002: LZ4_i8 favorDecSpeed; 27002: 27002: LZ4_i8 dirty; 27002: const LZ4HC_CCtx_internal* dictCtx; 27002: }; 27002: 27002: 27002: union LZ4_streamHC_u { 27002: char minStateSize[262200]; 27002: LZ4HC_CCtx_internal internal_donotuse; 27002: }; 27002: # 245 "/usr/include/lz4hc.h" 3 4 27002: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_initStreamHC(void* buffer, size_t size); 27002: # 254 "/usr/include/lz4hc.h" 3 4 27002: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC (const char* source, char* dest, int inputSize); 27002: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); 27002: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 27002: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 27002: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); 27002: [[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); 27002: [[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); 27002: [[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); 27002: [[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); 27002: [[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); 27002: # 274 "/usr/include/lz4hc.h" 3 4 27002: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_createHC (const char* inputBuffer); 27002: [[deprecated("use LZ4_freeStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_freeHC (void* LZ4HC_Data); 27002: 27002: [[deprecated("use LZ4_saveDictHC() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBufferHC (void* LZ4HC_Data); 27002: [[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); 27002: [[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); 27002: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamStateHC(void); 27002: [[deprecated("use LZ4_initStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamStateHC(void* state, char* inputBuffer); 27002: # 292 "/usr/include/lz4hc.h" 3 4 27002: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 27002: 27002: 27002: 27002: } 27002: # 46 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: 27002: 27002: 27002: # 1 "/usr/include/zstd.h" 1 3 4 27002: # 11 "/usr/include/zstd.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/limits.h" 1 3 4 27002: # 19 "/usr/include/zstd.h" 2 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 20 "/usr/include/zstd.h" 2 3 4 27002: # 114 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) unsigned ZSTD_versionNumber(void); 27002: # 123 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) const char* ZSTD_versionString(void); 27002: # 154 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_compress( void* dst, size_t dstCapacity, 27002: const void* src, size_t srcSize, 27002: int compressionLevel); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress( void* dst, size_t dstCapacity, 27002: const void* src, size_t compressedSize); 27002: # 192 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: [[deprecated("Replaced by ZSTD_getFrameContentSize")]] 27002: __attribute__ ((visibility ("default"))) 27002: unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); 27002: # 232 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_compressBound(size_t srcSize); 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) unsigned ZSTD_isError(size_t code); 27002: __attribute__ ((visibility ("default"))) const char* ZSTD_getErrorName(size_t code); 27002: __attribute__ ((visibility ("default"))) int ZSTD_minCLevel(void); 27002: __attribute__ ((visibility ("default"))) int ZSTD_maxCLevel(void); 27002: __attribute__ ((visibility ("default"))) int ZSTD_defaultCLevel(void); 27002: # 258 "/usr/include/zstd.h" 3 4 27002: typedef struct ZSTD_CCtx_s ZSTD_CCtx; 27002: __attribute__ ((visibility ("default"))) ZSTD_CCtx* ZSTD_createCCtx(void); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 27002: # 270 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 27002: void* dst, size_t dstCapacity, 27002: const void* src, size_t srcSize, 27002: int compressionLevel); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef struct ZSTD_DCtx_s ZSTD_DCtx; 27002: __attribute__ ((visibility ("default"))) ZSTD_DCtx* ZSTD_createDCtx(void); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, 27002: void* dst, size_t dstCapacity, 27002: const void* src, size_t srcSize); 27002: # 314 "/usr/include/zstd.h" 3 4 27002: typedef enum { ZSTD_fast=1, 27002: ZSTD_dfast=2, 27002: ZSTD_greedy=3, 27002: ZSTD_lazy=4, 27002: ZSTD_lazy2=5, 27002: ZSTD_btlazy2=6, 27002: ZSTD_btopt=7, 27002: ZSTD_btultra=8, 27002: ZSTD_btultra2=9 27002: 27002: 27002: } ZSTD_strategy; 27002: 27002: typedef enum { 27002: 27002: 27002: 27002: 27002: 27002: ZSTD_c_compressionLevel=100, 27002: # 346 "/usr/include/zstd.h" 3 4 27002: ZSTD_c_windowLog=101, 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ZSTD_c_hashLog=102, 27002: 27002: 27002: 27002: 27002: 27002: ZSTD_c_chainLog=103, 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ZSTD_c_searchLog=104, 27002: 27002: 27002: 27002: ZSTD_c_minMatch=105, 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ZSTD_c_targetLength=106, 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ZSTD_c_strategy=107, 27002: 27002: 27002: 27002: 27002: ZSTD_c_enableLongDistanceMatching=160, 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ZSTD_c_ldmHashLog=161, 27002: 27002: 27002: 27002: 27002: 27002: ZSTD_c_ldmMinMatch=162, 27002: 27002: 27002: 27002: ZSTD_c_ldmBucketSizeLog=163, 27002: 27002: 27002: 27002: ZSTD_c_ldmHashRateLog=164, 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ZSTD_c_contentSizeFlag=200, 27002: 27002: 27002: 27002: ZSTD_c_checksumFlag=201, 27002: ZSTD_c_dictIDFlag=202, 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: ZSTD_c_nbWorkers=400, 27002: # 445 "/usr/include/zstd.h" 3 4 27002: ZSTD_c_jobSize=401, 27002: 27002: 27002: 27002: 27002: ZSTD_c_overlapLog=402, 27002: # 487 "/usr/include/zstd.h" 3 4 27002: ZSTD_c_experimentalParam1=500, 27002: ZSTD_c_experimentalParam2=10, 27002: ZSTD_c_experimentalParam3=1000, 27002: ZSTD_c_experimentalParam4=1001, 27002: ZSTD_c_experimentalParam5=1002, 27002: ZSTD_c_experimentalParam6=1003, 27002: ZSTD_c_experimentalParam7=1004, 27002: ZSTD_c_experimentalParam8=1005, 27002: ZSTD_c_experimentalParam9=1006, 27002: ZSTD_c_experimentalParam10=1007, 27002: ZSTD_c_experimentalParam11=1008, 27002: ZSTD_c_experimentalParam12=1009, 27002: ZSTD_c_experimentalParam13=1010, 27002: ZSTD_c_experimentalParam14=1011, 27002: ZSTD_c_experimentalParam15=1012, 27002: ZSTD_c_experimentalParam16=1013, 27002: ZSTD_c_experimentalParam17=1014, 27002: ZSTD_c_experimentalParam18=1015, 27002: ZSTD_c_experimentalParam19=1016 27002: } ZSTD_cParameter; 27002: 27002: typedef struct { 27002: size_t error; 27002: int lowerBound; 27002: int upperBound; 27002: } ZSTD_bounds; 27002: # 521 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); 27002: # 534 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); 27002: # 551 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 27002: 27002: typedef enum { 27002: ZSTD_reset_session_only = 1, 27002: ZSTD_reset_parameters = 2, 27002: ZSTD_reset_session_and_parameters = 3 27002: } ZSTD_ResetDirective; 27002: # 573 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); 27002: # 585 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_compress2( ZSTD_CCtx* cctx, 27002: void* dst, size_t dstCapacity, 27002: const void* src, size_t srcSize); 27002: # 602 "/usr/include/zstd.h" 3 4 27002: typedef enum { 27002: 27002: ZSTD_d_windowLogMax=100, 27002: # 622 "/usr/include/zstd.h" 3 4 27002: ZSTD_d_experimentalParam1=1000, 27002: ZSTD_d_experimentalParam2=1001, 27002: ZSTD_d_experimentalParam3=1002, 27002: ZSTD_d_experimentalParam4=1003, 27002: ZSTD_d_experimentalParam5=1004 27002: 27002: } ZSTD_dParameter; 27002: # 637 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); 27002: # 646 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef struct ZSTD_inBuffer_s { 27002: const void* src; 27002: size_t size; 27002: size_t pos; 27002: } ZSTD_inBuffer; 27002: 27002: typedef struct ZSTD_outBuffer_s { 27002: void* dst; 27002: size_t size; 27002: size_t pos; 27002: } ZSTD_outBuffer; 27002: # 736 "/usr/include/zstd.h" 3 4 27002: typedef ZSTD_CCtx ZSTD_CStream; 27002: 27002: 27002: __attribute__ ((visibility ("default"))) ZSTD_CStream* ZSTD_createCStream(void); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCStream(ZSTD_CStream* zcs); 27002: 27002: 27002: typedef enum { 27002: ZSTD_e_continue=0, 27002: ZSTD_e_flush=1, 27002: 27002: 27002: 27002: ZSTD_e_end=2 27002: 27002: 27002: 27002: 27002: } ZSTD_EndDirective; 27002: # 778 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 27002: ZSTD_outBuffer* output, 27002: ZSTD_inBuffer* input, 27002: ZSTD_EndDirective endOp); 27002: # 797 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamInSize(void); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamOutSize(void); 27002: # 817 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 27002: # 858 "/usr/include/zstd.h" 3 4 27002: typedef ZSTD_DCtx ZSTD_DStream; 27002: 27002: 27002: __attribute__ ((visibility ("default"))) ZSTD_DStream* ZSTD_createDStream(void); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDStream(ZSTD_DStream* zds); 27002: # 874 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_initDStream(ZSTD_DStream* zds); 27002: # 891 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamInSize(void); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamOutSize(void); 27002: # 907 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, 27002: void* dst, size_t dstCapacity, 27002: const void* src, size_t srcSize, 27002: const void* dict,size_t dictSize, 27002: int compressionLevel); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, 27002: void* dst, size_t dstCapacity, 27002: const void* src, size_t srcSize, 27002: const void* dict,size_t dictSize); 27002: 27002: 27002: 27002: 27002: 27002: typedef struct ZSTD_CDict_s ZSTD_CDict; 27002: # 942 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 27002: int compressionLevel); 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 27002: void* dst, size_t dstCapacity, 27002: const void* src, size_t srcSize, 27002: const ZSTD_CDict* cdict); 27002: 27002: 27002: typedef struct ZSTD_DDict_s ZSTD_DDict; 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDDict(ZSTD_DDict* ddict); 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, 27002: void* dst, size_t dstCapacity, 27002: const void* src, size_t srcSize, 27002: const ZSTD_DDict* ddict); 27002: # 990 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); 27002: # 1014 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); 27002: # 1045 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 27002: # 1059 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 27002: # 1079 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 27002: const void* prefix, size_t prefixSize); 27002: # 1097 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 27002: # 1116 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 27002: # 1134 "/usr/include/zstd.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, 27002: const void* prefix, size_t prefixSize); 27002: 27002: 27002: 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 27002: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); 27002: # 2973 "/usr/include/zstd.h" 3 4 27002: } 27002: # 50 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: 27002: # 1 "/usr/include/zdict.h" 1 3 4 27002: # 12 "/usr/include/zdict.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 20 "/usr/include/zdict.h" 2 3 4 27002: # 210 "/usr/include/zdict.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, 27002: const void* samplesBuffer, 27002: const size_t* samplesSizes, unsigned nbSamples); 27002: 27002: typedef struct { 27002: int compressionLevel; 27002: unsigned notificationLevel; 27002: unsigned dictID; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } ZDICT_params_t; 27002: # 262 "/usr/include/zdict.h" 3 4 27002: __attribute__ ((visibility ("default"))) size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, 27002: const void* dictContent, size_t dictContentSize, 27002: const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, 27002: ZDICT_params_t parameters); 27002: 27002: 27002: 27002: __attribute__ ((visibility ("default"))) unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); 27002: __attribute__ ((visibility ("default"))) size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); 27002: __attribute__ ((visibility ("default"))) unsigned ZDICT_isError(size_t errorCode); 27002: __attribute__ ((visibility ("default"))) const char* ZDICT_getErrorName(size_t errorCode); 27002: # 473 "/usr/include/zdict.h" 3 4 27002: } 27002: # 52 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 2 27002: 27002: 27002: 27002: 27002: 27002: # 56 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: namespace rocksdb { 27002: # 82 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: class ZSTDUncompressCachedData { 27002: public: 27002: using ZSTDNativeContext = ZSTD_DCtx*; 27002: ZSTDUncompressCachedData() {} 27002: 27002: ZSTDUncompressCachedData(const ZSTDUncompressCachedData& o) = delete; 27002: ZSTDUncompressCachedData& operator=(const ZSTDUncompressCachedData&) = delete; 27002: ZSTDUncompressCachedData(ZSTDUncompressCachedData&& o) noexcept 27002: : ZSTDUncompressCachedData() { 27002: *this = std::move(o); 27002: } 27002: ZSTDUncompressCachedData& operator=(ZSTDUncompressCachedData&& o) noexcept { 27002: 27002: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: zstd_ctx_ == nullptr 27002: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "zstd_ctx_ == nullptr" 27002: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 94, __extension__ __PRETTY_FUNCTION__)) 27002: # 94 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: std::swap(zstd_ctx_, o.zstd_ctx_); 27002: std::swap(cache_idx_, o.cache_idx_); 27002: return *this; 27002: } 27002: ZSTDNativeContext Get() const { return zstd_ctx_; } 27002: int64_t GetCacheIndex() const { return cache_idx_; } 27002: void CreateIfNeeded() { 27002: if (zstd_ctx_ == nullptr) { 27002: 27002: 27002: 27002: 27002: zstd_ctx_ = ZSTD_createDCtx(); 27002: 27002: cache_idx_ = -1; 27002: } 27002: } 27002: void InitFromCache(const ZSTDUncompressCachedData& o, int64_t idx) { 27002: zstd_ctx_ = o.zstd_ctx_; 27002: cache_idx_ = idx; 27002: } 27002: ~ZSTDUncompressCachedData() { 27002: if (zstd_ctx_ != nullptr && cache_idx_ == -1) { 27002: ZSTD_freeDCtx(zstd_ctx_); 27002: } 27002: } 27002: 27002: private: 27002: ZSTDNativeContext zstd_ctx_ = nullptr; 27002: int64_t cache_idx_ = -1; 27002: }; 27002: 27002: } 27002: # 156 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: namespace rocksdb { 27002: 27002: 27002: 27002: struct CompressionDict { 27002: 27002: ZSTD_CDict* zstd_cdict_ = nullptr; 27002: 27002: std::string dict_; 27002: 27002: public: 27002: 27002: CompressionDict(std::string dict, CompressionType type, int level) { 27002: 27002: 27002: 27002: dict_ = std::move(dict); 27002: 27002: zstd_cdict_ = nullptr; 27002: if (!dict_.empty() && (type == kZSTD || type == kZSTDNotFinalCompression)) { 27002: if (level == CompressionOptions::kDefaultCompressionLevel) { 27002: 27002: 27002: level = 3; 27002: } 27002: 27002: 27002: zstd_cdict_ = ZSTD_createCDict(dict_.data(), dict_.size(), level); 27002: 27002: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: zstd_cdict_ != nullptr 27002: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "zstd_cdict_ != nullptr" 27002: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 184, __extension__ __PRETTY_FUNCTION__)) 27002: # 184 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: } 27002: 27002: } 27002: 27002: ~CompressionDict() { 27002: 27002: size_t res = 0; 27002: if (zstd_cdict_ != nullptr) { 27002: res = ZSTD_freeCDict(zstd_cdict_); 27002: } 27002: 27002: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: res == 0 27002: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "res == 0" 27002: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 195, __extension__ __PRETTY_FUNCTION__)) 27002: # 195 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: (void)res; 27002: 27002: } 27002: 27002: 27002: const ZSTD_CDict* GetDigestedZstdCDict() const { return zstd_cdict_; } 27002: 27002: 27002: Slice GetRawDict() const { return dict_; } 27002: 27002: static const CompressionDict& GetEmptyDict() { 27002: static CompressionDict empty_dict{}; 27002: return empty_dict; 27002: } 27002: 27002: CompressionDict() = default; 27002: 27002: CompressionDict(const CompressionDict&) = delete; 27002: CompressionDict& operator=(const CompressionDict&) = delete; 27002: CompressionDict(CompressionDict&&) = delete; 27002: CompressionDict& operator=(CompressionDict&&) = delete; 27002: }; 27002: 27002: 27002: 27002: struct UncompressionDict { 27002: 27002: 27002: std::string dict_; 27002: 27002: 27002: 27002: 27002: CacheAllocationPtr allocation_; 27002: 27002: 27002: 27002: 27002: Slice slice_; 27002: # 244 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: UncompressionDict(std::string dict, bool ) 27002: 27002: : dict_(std::move(dict)), slice_(dict_) { 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: UncompressionDict(Slice slice, CacheAllocationPtr&& allocation, 27002: bool ) 27002: 27002: : allocation_(std::move(allocation)), slice_(std::move(slice)) { 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: UncompressionDict(UncompressionDict&& rhs) 27002: : dict_(std::move(rhs.dict_)), 27002: allocation_(std::move(rhs.allocation_)), 27002: slice_(std::move(rhs.slice_)) 27002: 27002: 27002: 27002: 27002: { 27002: 27002: 27002: 27002: } 27002: 27002: ~UncompressionDict() { 27002: # 294 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: } 27002: 27002: UncompressionDict& operator=(UncompressionDict&& rhs) { 27002: if (this == &rhs) { 27002: return *this; 27002: } 27002: 27002: dict_ = std::move(rhs.dict_); 27002: allocation_ = std::move(rhs.allocation_); 27002: slice_ = std::move(rhs.slice_); 27002: 27002: 27002: 27002: 27002: 27002: 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: bool own_bytes() const { return !dict_.empty() || allocation_; } 27002: 27002: const Slice& GetRawDict() const { return slice_; } 27002: 27002: 27002: 27002: 27002: 27002: static const UncompressionDict& GetEmptyDict() { 27002: static UncompressionDict empty_dict{}; 27002: return empty_dict; 27002: } 27002: 27002: size_t ApproximateMemoryUsage() const { 27002: size_t usage = sizeof(struct UncompressionDict); 27002: usage += dict_.size(); 27002: if (allocation_) { 27002: auto allocator = allocation_.get_deleter().allocator; 27002: if (allocator) { 27002: usage += allocator->UsableSize(allocation_.get(), slice_.size()); 27002: } else { 27002: usage += slice_.size(); 27002: } 27002: } 27002: 27002: 27002: 27002: return usage; 27002: } 27002: 27002: UncompressionDict() = default; 27002: 27002: UncompressionDict(const CompressionDict&) = delete; 27002: UncompressionDict& operator=(const CompressionDict&) = delete; 27002: }; 27002: 27002: class CompressionContext { 27002: private: 27002: 27002: ZSTD_CCtx* zstd_ctx_ = nullptr; 27002: void CreateNativeContext(CompressionType type) { 27002: if (type == kZSTD || type == kZSTDNotFinalCompression) { 27002: 27002: 27002: 27002: 27002: zstd_ctx_ = ZSTD_createCCtx(); 27002: 27002: } 27002: } 27002: void DestroyNativeContext() { 27002: if (zstd_ctx_ != nullptr) { 27002: ZSTD_freeCCtx(zstd_ctx_); 27002: } 27002: } 27002: 27002: public: 27002: 27002: ZSTD_CCtx* ZSTDPreallocCtx() const { 27002: 27002: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: zstd_ctx_ != nullptr 27002: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "zstd_ctx_ != nullptr" 27002: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 376, __extension__ __PRETTY_FUNCTION__)) 27002: # 376 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: return zstd_ctx_; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: public: 27002: explicit CompressionContext(CompressionType type) { 27002: CreateNativeContext(type); 27002: } 27002: ~CompressionContext() { DestroyNativeContext(); } 27002: CompressionContext(const CompressionContext&) = delete; 27002: CompressionContext& operator=(const CompressionContext&) = delete; 27002: }; 27002: 27002: class CompressionInfo { 27002: const CompressionOptions& opts_; 27002: const CompressionContext& context_; 27002: const CompressionDict& dict_; 27002: const CompressionType type_; 27002: const uint64_t sample_for_compression_; 27002: 27002: public: 27002: CompressionInfo(const CompressionOptions& _opts, 27002: const CompressionContext& _context, 27002: const CompressionDict& _dict, CompressionType _type, 27002: uint64_t _sample_for_compression) 27002: : opts_(_opts), 27002: context_(_context), 27002: dict_(_dict), 27002: type_(_type), 27002: sample_for_compression_(_sample_for_compression) {} 27002: 27002: const CompressionOptions& options() const { return opts_; } 27002: const CompressionContext& context() const { return context_; } 27002: const CompressionDict& dict() const { return dict_; } 27002: CompressionType type() const { return type_; } 27002: uint64_t SampleForCompression() const { return sample_for_compression_; } 27002: }; 27002: 27002: class UncompressionContext { 27002: private: 27002: CompressionContextCache* ctx_cache_ = nullptr; 27002: ZSTDUncompressCachedData uncomp_cached_data_; 27002: 27002: public: 27002: explicit UncompressionContext(CompressionType type) { 27002: if (type == kZSTD || type == kZSTDNotFinalCompression) { 27002: ctx_cache_ = CompressionContextCache::Instance(); 27002: uncomp_cached_data_ = ctx_cache_->GetCachedZSTDUncompressData(); 27002: } 27002: } 27002: ~UncompressionContext() { 27002: if (uncomp_cached_data_.GetCacheIndex() != -1) { 27002: 27002: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ctx_cache_ != nullptr 27002: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "ctx_cache_ != nullptr" 27002: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 433, __extension__ __PRETTY_FUNCTION__)) 27002: # 433 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: ctx_cache_->ReturnCachedZSTDUncompressData( 27002: uncomp_cached_data_.GetCacheIndex()); 27002: } 27002: } 27002: UncompressionContext(const UncompressionContext&) = delete; 27002: UncompressionContext& operator=(const UncompressionContext&) = delete; 27002: 27002: ZSTDUncompressCachedData::ZSTDNativeContext GetZSTDContext() const { 27002: return uncomp_cached_data_.Get(); 27002: } 27002: }; 27002: 27002: class UncompressionInfo { 27002: const UncompressionContext& context_; 27002: const UncompressionDict& dict_; 27002: const CompressionType type_; 27002: 27002: public: 27002: UncompressionInfo(const UncompressionContext& _context, 27002: const UncompressionDict& _dict, CompressionType _type) 27002: : context_(_context), dict_(_dict), type_(_type) {} 27002: 27002: const UncompressionContext& context() const { return context_; } 27002: const UncompressionDict& dict() const { return dict_; } 27002: CompressionType type() const { return type_; } 27002: }; 27002: 27002: inline bool Snappy_Supported() { 27002: 27002: return true; 27002: 27002: 27002: 27002: } 27002: 27002: inline bool Zlib_Supported() { 27002: 27002: return true; 27002: 27002: 27002: 27002: } 27002: 27002: inline bool BZip2_Supported() { 27002: 27002: return true; 27002: 27002: 27002: 27002: } 27002: 27002: inline bool LZ4_Supported() { 27002: 27002: return true; 27002: 27002: 27002: 27002: } 27002: 27002: inline bool XPRESS_Supported() { 27002: 27002: 27002: 27002: return false; 27002: 27002: } 27002: 27002: inline bool ZSTD_Supported() { 27002: 27002: 27002: return (ZSTD_versionNumber() >= 800); 27002: 27002: 27002: 27002: } 27002: 27002: inline bool ZSTDNotFinal_Supported() { 27002: 27002: return true; 27002: 27002: 27002: 27002: } 27002: 27002: inline bool ZSTD_Streaming_Supported() { 27002: 27002: return true; 27002: 27002: 27002: 27002: } 27002: 27002: inline bool StreamingCompressionTypeSupported( 27002: CompressionType compression_type) { 27002: switch (compression_type) { 27002: case kNoCompression: 27002: return true; 27002: case kZSTD: 27002: return ZSTD_Streaming_Supported(); 27002: default: 27002: return false; 27002: } 27002: } 27002: 27002: inline bool CompressionTypeSupported(CompressionType compression_type) { 27002: switch (compression_type) { 27002: case kNoCompression: 27002: return true; 27002: case kSnappyCompression: 27002: return Snappy_Supported(); 27002: case kZlibCompression: 27002: return Zlib_Supported(); 27002: case kBZip2Compression: 27002: return BZip2_Supported(); 27002: case kLZ4Compression: 27002: return LZ4_Supported(); 27002: case kLZ4HCCompression: 27002: return LZ4_Supported(); 27002: case kXpressCompression: 27002: return XPRESS_Supported(); 27002: case kZSTDNotFinalCompression: 27002: return ZSTDNotFinal_Supported(); 27002: case kZSTD: 27002: return ZSTD_Supported(); 27002: default: 27002: 27002: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: false 27002: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "false" 27002: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 559, __extension__ __PRETTY_FUNCTION__)) 27002: # 559 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: return false; 27002: } 27002: } 27002: 27002: inline bool DictCompressionTypeSupported(CompressionType compression_type) { 27002: switch (compression_type) { 27002: case kNoCompression: 27002: return false; 27002: case kSnappyCompression: 27002: return false; 27002: case kZlibCompression: 27002: return Zlib_Supported(); 27002: case kBZip2Compression: 27002: return false; 27002: case kLZ4Compression: 27002: case kLZ4HCCompression: 27002: 27002: return LZ4_Supported(); 27002: 27002: 27002: 27002: case kXpressCompression: 27002: return false; 27002: case kZSTDNotFinalCompression: 27002: 27002: return ZSTDNotFinal_Supported(); 27002: 27002: 27002: 27002: case kZSTD: 27002: 27002: return ZSTD_Supported(); 27002: 27002: 27002: 27002: default: 27002: 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: false 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "false" 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 596, __extension__ __PRETTY_FUNCTION__)) 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: return false; 27002: } 27002: } 27002: 27002: inline std::string CompressionTypeToString(CompressionType compression_type) { 27002: switch (compression_type) { 27002: case kNoCompression: 27002: return "NoCompression"; 27002: case kSnappyCompression: 27002: return "Snappy"; 27002: case kZlibCompression: 27002: return "Zlib"; 27002: case kBZip2Compression: 27002: return "BZip2"; 27002: case kLZ4Compression: 27002: return "LZ4"; 27002: case kLZ4HCCompression: 27002: return "LZ4HC"; 27002: case kXpressCompression: 27002: return "Xpress"; 27002: case kZSTD: 27002: return "ZSTD"; 27002: case kZSTDNotFinalCompression: 27002: return "ZSTDNotFinal"; 27002: case kDisableCompressionOption: 27002: return "DisableOption"; 27002: default: 27002: 27002: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: false 27002: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "false" 27002: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 624, __extension__ __PRETTY_FUNCTION__)) 27002: # 624 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: return ""; 27002: } 27002: } 27002: 27002: inline std::string CompressionOptionsToString( 27002: CompressionOptions& compression_options) { 27002: std::string result; 27002: result.reserve(512); 27002: result.append("window_bits=") 27002: .append(std::to_string(compression_options.window_bits)) 27002: .append("; "); 27002: result.append("level=") 27002: .append(std::to_string(compression_options.level)) 27002: .append("; "); 27002: result.append("strategy=") 27002: .append(std::to_string(compression_options.strategy)) 27002: .append("; "); 27002: result.append("max_dict_bytes=") 27002: .append(std::to_string(compression_options.max_dict_bytes)) 27002: .append("; "); 27002: result.append("zstd_max_train_bytes=") 27002: .append(std::to_string(compression_options.zstd_max_train_bytes)) 27002: .append("; "); 27002: result.append("enabled=") 27002: .append(std::to_string(compression_options.enabled)) 27002: .append("; "); 27002: result.append("max_dict_buffer_bytes=") 27002: .append(std::to_string(compression_options.max_dict_buffer_bytes)) 27002: .append("; "); 27002: result.append("use_zstd_dict_trainer=") 27002: .append(std::to_string(compression_options.use_zstd_dict_trainer)) 27002: .append("; "); 27002: return result; 27002: } 27002: # 667 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: inline bool Snappy_Compress(const CompressionInfo& , const char* input, 27002: size_t length, ::std::string* output) { 27002: 27002: output->resize(snappy::MaxCompressedLength(length)); 27002: size_t outlen; 27002: snappy::RawCompress(input, length, &(*output)[0], &outlen); 27002: output->resize(outlen); 27002: return true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: inline CacheAllocationPtr Snappy_Uncompress( 27002: const char* input, size_t length, size_t* uncompressed_size, 27002: MemoryAllocator* allocator = nullptr) { 27002: 27002: size_t uncompressed_length = 0; 27002: if (!snappy::GetUncompressedLength(input, length, &uncompressed_length)) { 27002: return nullptr; 27002: } 27002: 27002: CacheAllocationPtr output = AllocateBlock(uncompressed_length, allocator); 27002: 27002: if (!snappy::RawUncompress(input, length, output.get())) { 27002: return nullptr; 27002: } 27002: 27002: *uncompressed_size = uncompressed_length; 27002: 27002: return output; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: namespace compression { 27002: 27002: inline size_t PutDecompressedSizeInfo(std::string* output, uint32_t length) { 27002: PutVarint32(output, length); 27002: return output->size(); 27002: } 27002: 27002: inline bool GetDecompressedSizeInfo(const char** input_data, 27002: size_t* input_length, 27002: uint32_t* output_len) { 27002: auto new_input_data = 27002: GetVarint32Ptr(*input_data, *input_data + *input_length, output_len); 27002: if (new_input_data == nullptr) { 27002: return false; 27002: } 27002: *input_length -= (new_input_data - *input_data); 27002: *input_data = new_input_data; 27002: return true; 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline bool Zlib_Compress(const CompressionInfo& info, 27002: uint32_t compress_format_version, const char* input, 27002: size_t length, ::std::string* output) { 27002: 27002: if (length > std::numeric_limits::max()) { 27002: 27002: return false; 27002: } 27002: 27002: size_t output_header_len = 0; 27002: if (compress_format_version == 2) { 27002: output_header_len = compression::PutDecompressedSizeInfo( 27002: output, static_cast(length)); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: static const int memLevel = 8; 27002: int level; 27002: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 27002: level = 27002: # 760 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (-1) 27002: # 760 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: } else { 27002: level = info.options().level; 27002: } 27002: z_stream _stream; 27002: memset(&_stream, 0, sizeof(z_stream)); 27002: int st = 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: deflateInit2_(( 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: &_stream 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ),( 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: level 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ),(8),( 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: info.options().window_bits 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ),( 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: memLevel 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ), ( 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: info.options().strategy 27002: # 766 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ), "1.2.13", (int)sizeof(z_stream)) 27002: 27002: # 767 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: if (st != 27002: # 768 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 0 27002: # 768 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ) { 27002: return false; 27002: } 27002: 27002: Slice compression_dict = info.dict().GetRawDict(); 27002: if (compression_dict.size()) { 27002: 27002: st = deflateSetDictionary( 27002: &_stream, reinterpret_cast(compression_dict.data()), 27002: static_cast(compression_dict.size())); 27002: if (st != 27002: # 778 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 0 27002: # 778 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ) { 27002: deflateEnd(&_stream); 27002: return false; 27002: } 27002: } 27002: 27002: 27002: size_t upper_bound = 27002: deflateBound(&_stream, static_cast(length)); 27002: output->resize(output_header_len + upper_bound); 27002: 27002: 27002: _stream.next_in = (Bytef*)input; 27002: _stream.avail_in = static_cast(length); 27002: 27002: 27002: _stream.avail_out = static_cast(upper_bound); 27002: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 27002: 27002: bool compressed = false; 27002: st = deflate(&_stream, 27002: # 798 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 4 27002: # 798 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ); 27002: if (st == 27002: # 799 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 1 27002: # 799 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ) { 27002: compressed = true; 27002: output->resize(output->size() - _stream.avail_out); 27002: } 27002: 27002: 27002: 27002: 27002: deflateEnd(&_stream); 27002: return compressed; 27002: # 817 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline CacheAllocationPtr Zlib_Uncompress( 27002: const UncompressionInfo& info, const char* input_data, size_t input_length, 27002: size_t* uncompressed_size, uint32_t compress_format_version, 27002: MemoryAllocator* allocator = nullptr, int windowBits = -14) { 27002: 27002: uint32_t output_len = 0; 27002: if (compress_format_version == 2) { 27002: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 27002: &output_len)) { 27002: return nullptr; 27002: } 27002: } else { 27002: 27002: 27002: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 27002: output_len = static_cast( 27002: std::min(proposed_output_len, 27002: static_cast(std::numeric_limits::max()))); 27002: } 27002: 27002: z_stream _stream; 27002: memset(&_stream, 0, sizeof(z_stream)); 27002: 27002: 27002: 27002: 27002: int st = 27002: 27002: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: inflateInit2_(( 27002: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: &_stream 27002: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ), ( 27002: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: windowBits > 0 ? windowBits + 32 : windowBits 27002: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ), "1.2.13", (int)sizeof(z_stream)) 27002: # 852 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: if (st != 27002: # 853 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 0 27002: # 853 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ) { 27002: return nullptr; 27002: } 27002: 27002: const Slice& compression_dict = info.dict().GetRawDict(); 27002: if (compression_dict.size()) { 27002: 27002: st = inflateSetDictionary( 27002: &_stream, reinterpret_cast(compression_dict.data()), 27002: static_cast(compression_dict.size())); 27002: if (st != 27002: # 863 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 0 27002: # 863 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ) { 27002: return nullptr; 27002: } 27002: } 27002: 27002: _stream.next_in = (Bytef*)input_data; 27002: _stream.avail_in = static_cast(input_length); 27002: 27002: auto output = AllocateBlock(output_len, allocator); 27002: 27002: _stream.next_out = (Bytef*)output.get(); 27002: _stream.avail_out = static_cast(output_len); 27002: 27002: bool done = false; 27002: while (!done) { 27002: st = inflate(&_stream, 27002: # 878 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 2 27002: # 878 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ); 27002: switch (st) { 27002: case 27002: # 880 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 1 27002: # 880 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: : 27002: done = true; 27002: break; 27002: case 27002: # 883 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 0 27002: # 883 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: : { 27002: 27002: 27002: 27002: 27002: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: compress_format_version != 2 27002: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "compress_format_version != 2" 27002: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 887, __extension__ __PRETTY_FUNCTION__)) 27002: # 887 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: size_t old_sz = output_len; 27002: uint32_t output_len_delta = output_len / 5; 27002: output_len += output_len_delta < 10 ? 10 : output_len_delta; 27002: auto tmp = AllocateBlock(output_len, allocator); 27002: memcpy(tmp.get(), output.get(), old_sz); 27002: output = std::move(tmp); 27002: 27002: 27002: _stream.next_out = (Bytef*)(output.get() + old_sz); 27002: _stream.avail_out = static_cast(output_len - old_sz); 27002: break; 27002: } 27002: case 27002: # 900 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (-5) 27002: # 900 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: : 27002: default: 27002: inflateEnd(&_stream); 27002: return nullptr; 27002: } 27002: } 27002: 27002: 27002: 27002: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: compress_format_version != 2 || _stream.avail_out == 0 27002: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "compress_format_version != 2 || _stream.avail_out == 0" 27002: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 908, __extension__ __PRETTY_FUNCTION__)) 27002: # 908 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: 27002: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: output_len >= _stream.avail_out 27002: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "output_len >= _stream.avail_out" 27002: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 909, __extension__ __PRETTY_FUNCTION__)) 27002: # 909 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: *uncompressed_size = output_len - _stream.avail_out; 27002: inflateEnd(&_stream); 27002: return output; 27002: # 923 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: } 27002: 27002: 27002: 27002: 27002: 27002: inline bool BZip2_Compress(const CompressionInfo& , 27002: uint32_t compress_format_version, const char* input, 27002: size_t length, ::std::string* output) { 27002: 27002: if (length > std::numeric_limits::max()) { 27002: 27002: return false; 27002: } 27002: size_t output_header_len = 0; 27002: if (compress_format_version == 2) { 27002: output_header_len = compression::PutDecompressedSizeInfo( 27002: output, static_cast(length)); 27002: } 27002: 27002: 27002: output->resize(output_header_len + length); 27002: 27002: bz_stream _stream; 27002: memset(&_stream, 0, sizeof(bz_stream)); 27002: 27002: 27002: 27002: 27002: int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); 27002: if (st != 27002: # 953 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 0 27002: # 953 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ) { 27002: return false; 27002: } 27002: 27002: 27002: _stream.next_in = (char*)input; 27002: _stream.avail_in = static_cast(length); 27002: 27002: 27002: _stream.avail_out = static_cast(length); 27002: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 27002: 27002: bool compressed = false; 27002: st = BZ2_bzCompress(&_stream, 27002: # 966 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 2 27002: # 966 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ); 27002: if (st == 27002: # 967 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 4 27002: # 967 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ) { 27002: compressed = true; 27002: output->resize(output->size() - _stream.avail_out); 27002: } 27002: 27002: 27002: 27002: 27002: BZ2_bzCompressEnd(&_stream); 27002: return compressed; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: 27002: 27002: inline CacheAllocationPtr BZip2_Uncompress( 27002: const char* input_data, size_t input_length, size_t* uncompressed_size, 27002: uint32_t compress_format_version, MemoryAllocator* allocator = nullptr) { 27002: 27002: uint32_t output_len = 0; 27002: if (compress_format_version == 2) { 27002: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 27002: &output_len)) { 27002: return nullptr; 27002: } 27002: } else { 27002: 27002: 27002: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 27002: output_len = static_cast( 27002: std::min(proposed_output_len, 27002: static_cast(std::numeric_limits::max()))); 27002: } 27002: 27002: bz_stream _stream; 27002: memset(&_stream, 0, sizeof(bz_stream)); 27002: 27002: int st = BZ2_bzDecompressInit(&_stream, 0, 0); 27002: if (st != 27002: # 1013 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 0 27002: # 1013 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ) { 27002: return nullptr; 27002: } 27002: 27002: _stream.next_in = (char*)input_data; 27002: _stream.avail_in = static_cast(input_length); 27002: 27002: auto output = AllocateBlock(output_len, allocator); 27002: 27002: _stream.next_out = (char*)output.get(); 27002: _stream.avail_out = static_cast(output_len); 27002: 27002: bool done = false; 27002: while (!done) { 27002: st = BZ2_bzDecompress(&_stream); 27002: switch (st) { 27002: case 27002: # 1029 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 4 27002: # 1029 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: : 27002: done = true; 27002: break; 27002: case 27002: # 1032 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: 0 27002: # 1032 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: : { 27002: 27002: 27002: 27002: 27002: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: compress_format_version != 2 27002: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "compress_format_version != 2" 27002: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1036, __extension__ __PRETTY_FUNCTION__)) 27002: # 1036 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: uint32_t old_sz = output_len; 27002: output_len = output_len * 1.2; 27002: auto tmp = AllocateBlock(output_len, allocator); 27002: memcpy(tmp.get(), output.get(), old_sz); 27002: output = std::move(tmp); 27002: 27002: 27002: _stream.next_out = (char*)(output.get() + old_sz); 27002: _stream.avail_out = static_cast(output_len - old_sz); 27002: break; 27002: } 27002: default: 27002: BZ2_bzDecompressEnd(&_stream); 27002: return nullptr; 27002: } 27002: } 27002: 27002: 27002: 27002: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: compress_format_version != 2 || _stream.avail_out == 0 27002: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "compress_format_version != 2 || _stream.avail_out == 0" 27002: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1055, __extension__ __PRETTY_FUNCTION__)) 27002: # 1055 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: 27002: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: output_len >= _stream.avail_out 27002: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "output_len >= _stream.avail_out" 27002: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1056, __extension__ __PRETTY_FUNCTION__)) 27002: # 1056 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: *uncompressed_size = output_len - _stream.avail_out; 27002: BZ2_bzDecompressEnd(&_stream); 27002: return output; 27002: # 1068 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline bool LZ4_Compress(const CompressionInfo& info, 27002: uint32_t compress_format_version, const char* input, 27002: size_t length, ::std::string* output) { 27002: 27002: if (length > std::numeric_limits::max()) { 27002: 27002: return false; 27002: } 27002: 27002: size_t output_header_len = 0; 27002: if (compress_format_version == 2) { 27002: 27002: output_header_len = compression::PutDecompressedSizeInfo( 27002: output, static_cast(length)); 27002: } else { 27002: 27002: 27002: output_header_len = 8; 27002: output->resize(output_header_len); 27002: char* p = const_cast(output->c_str()); 27002: memcpy(p, &length, sizeof(length)); 27002: } 27002: int compress_bound = LZ4_compressBound(static_cast(length)); 27002: output->resize(static_cast(output_header_len + compress_bound)); 27002: 27002: int outlen; 27002: 27002: LZ4_stream_t* stream = LZ4_createStream(); 27002: Slice compression_dict = info.dict().GetRawDict(); 27002: if (compression_dict.size()) { 27002: LZ4_loadDict(stream, compression_dict.data(), 27002: static_cast(compression_dict.size())); 27002: } 27002: 27002: outlen = 27002: LZ4_compress_fast_continue(stream, input, &(*output)[output_header_len], 27002: static_cast(length), compress_bound, 1); 27002: 27002: 27002: 27002: 27002: 27002: LZ4_freeStream(stream); 27002: 27002: 27002: 27002: 27002: 27002: if (outlen == 0) { 27002: return false; 27002: } 27002: output->resize(static_cast(output_header_len + outlen)); 27002: return true; 27002: # 1137 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline CacheAllocationPtr LZ4_Uncompress(const UncompressionInfo& info, 27002: const char* input_data, 27002: size_t input_length, 27002: size_t* uncompressed_size, 27002: uint32_t compress_format_version, 27002: MemoryAllocator* allocator = nullptr) { 27002: 27002: uint32_t output_len = 0; 27002: if (compress_format_version == 2) { 27002: 27002: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 27002: &output_len)) { 27002: return nullptr; 27002: } 27002: } else { 27002: 27002: 27002: if (input_length < 8) { 27002: return nullptr; 27002: } 27002: if (port::kLittleEndian) { 27002: memcpy(&output_len, input_data, sizeof(output_len)); 27002: } else { 27002: memcpy(&output_len, input_data + 4, sizeof(output_len)); 27002: } 27002: input_length -= 8; 27002: input_data += 8; 27002: } 27002: 27002: auto output = AllocateBlock(output_len, allocator); 27002: 27002: int decompress_bytes = 0; 27002: 27002: 27002: LZ4_streamDecode_t* stream = LZ4_createStreamDecode(); 27002: const Slice& compression_dict = info.dict().GetRawDict(); 27002: if (compression_dict.size()) { 27002: LZ4_setStreamDecode(stream, compression_dict.data(), 27002: static_cast(compression_dict.size())); 27002: } 27002: decompress_bytes = LZ4_decompress_safe_continue( 27002: stream, input_data, output.get(), static_cast(input_length), 27002: static_cast(output_len)); 27002: LZ4_freeStreamDecode(stream); 27002: 27002: 27002: 27002: 27002: 27002: 27002: if (decompress_bytes < 0) { 27002: return nullptr; 27002: } 27002: 27002: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: decompress_bytes == static_cast(output_len) 27002: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "decompress_bytes == static_cast(output_len)" 27002: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1198, __extension__ __PRETTY_FUNCTION__)) 27002: # 1198 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: *uncompressed_size = decompress_bytes; 27002: return output; 27002: # 1210 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline bool LZ4HC_Compress(const CompressionInfo& info, 27002: uint32_t compress_format_version, const char* input, 27002: size_t length, ::std::string* output) { 27002: 27002: if (length > std::numeric_limits::max()) { 27002: 27002: return false; 27002: } 27002: 27002: size_t output_header_len = 0; 27002: if (compress_format_version == 2) { 27002: 27002: output_header_len = compression::PutDecompressedSizeInfo( 27002: output, static_cast(length)); 27002: } else { 27002: 27002: 27002: output_header_len = 8; 27002: output->resize(output_header_len); 27002: char* p = const_cast(output->c_str()); 27002: memcpy(p, &length, sizeof(length)); 27002: } 27002: int compress_bound = LZ4_compressBound(static_cast(length)); 27002: output->resize(static_cast(output_header_len + compress_bound)); 27002: 27002: int outlen; 27002: int level; 27002: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 27002: level = 0; 27002: } else { 27002: level = info.options().level; 27002: } 27002: 27002: LZ4_streamHC_t* stream = LZ4_createStreamHC(); 27002: LZ4_resetStreamHC(stream, level); 27002: Slice compression_dict = info.dict().GetRawDict(); 27002: const char* compression_dict_data = 27002: compression_dict.size() > 0 ? compression_dict.data() : nullptr; 27002: size_t compression_dict_size = compression_dict.size(); 27002: if (compression_dict_data != nullptr) { 27002: LZ4_loadDictHC(stream, compression_dict_data, 27002: static_cast(compression_dict_size)); 27002: } 27002: 27002: 27002: outlen = 27002: LZ4_compress_HC_continue(stream, input, &(*output)[output_header_len], 27002: static_cast(length), compress_bound); 27002: 27002: 27002: 27002: 27002: 27002: LZ4_freeStreamHC(stream); 27002: # 1283 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: if (outlen == 0) { 27002: return false; 27002: } 27002: output->resize(static_cast(output_header_len + outlen)); 27002: return true; 27002: # 1296 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline bool XPRESS_Compress(const char* , size_t , 27002: std::string* ) { 27002: return false; 27002: } 27002: # 1316 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: inline char* XPRESS_Uncompress(const char* , 27002: size_t , 27002: size_t* ) { 27002: return nullptr; 27002: } 27002: 27002: 27002: inline bool ZSTD_Compress(const CompressionInfo& info, const char* input, 27002: size_t length, ::std::string* output) { 27002: 27002: if (length > std::numeric_limits::max()) { 27002: 27002: return false; 27002: } 27002: 27002: size_t output_header_len = compression::PutDecompressedSizeInfo( 27002: output, static_cast(length)); 27002: 27002: size_t compressBound = ZSTD_compressBound(length); 27002: output->resize(static_cast(output_header_len + compressBound)); 27002: size_t outlen = 0; 27002: int level; 27002: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 27002: 27002: 27002: level = 3; 27002: } else { 27002: level = info.options().level; 27002: } 27002: 27002: ZSTD_CCtx* context = info.context().ZSTDPreallocCtx(); 27002: 27002: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: context != nullptr 27002: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "context != nullptr" 27002: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1347, __extension__ __PRETTY_FUNCTION__)) 27002: # 1347 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: 27002: if (info.dict().GetDigestedZstdCDict() != nullptr) { 27002: outlen = ZSTD_compress_usingCDict(context, &(*output)[output_header_len], 27002: compressBound, input, length, 27002: info.dict().GetDigestedZstdCDict()); 27002: } 27002: 27002: if (outlen == 0) { 27002: outlen = ZSTD_compress_usingDict(context, &(*output)[output_header_len], 27002: compressBound, input, length, 27002: info.dict().GetRawDict().data(), 27002: info.dict().GetRawDict().size(), level); 27002: } 27002: 27002: 27002: 27002: 27002: if (outlen == 0) { 27002: return false; 27002: } 27002: output->resize(output_header_len + outlen); 27002: return true; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: 27002: 27002: inline CacheAllocationPtr ZSTD_Uncompress( 27002: const UncompressionInfo& info, const char* input_data, size_t input_length, 27002: size_t* uncompressed_size, MemoryAllocator* allocator = nullptr) { 27002: 27002: uint32_t output_len = 0; 27002: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 27002: &output_len)) { 27002: return nullptr; 27002: } 27002: 27002: auto output = AllocateBlock(output_len, allocator); 27002: size_t actual_output_length = 0; 27002: 27002: ZSTD_DCtx* context = info.context().GetZSTDContext(); 27002: 27002: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: context != nullptr 27002: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "context != nullptr" 27002: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1395, __extension__ __PRETTY_FUNCTION__)) 27002: # 1395 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: if (actual_output_length == 0) { 27002: actual_output_length = ZSTD_decompress_usingDict( 27002: context, output.get(), output_len, input_data, input_length, 27002: info.dict().GetRawDict().data(), info.dict().GetRawDict().size()); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: actual_output_length == output_len 27002: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "actual_output_length == output_len" 27002: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1413, __extension__ __PRETTY_FUNCTION__)) 27002: # 1413 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: *uncompressed_size = actual_output_length; 27002: return output; 27002: # 1424 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: } 27002: 27002: inline bool ZSTD_TrainDictionarySupported() { 27002: 27002: 27002: 27002: 27002: return (ZSTD_versionNumber() >= 10103); 27002: 27002: 27002: 27002: } 27002: 27002: inline std::string ZSTD_TrainDictionary(const std::string& samples, 27002: const std::vector& sample_lens, 27002: size_t max_dict_bytes) { 27002: 27002: 27002: 27002: 27002: 27002: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: samples.empty() == sample_lens.empty() 27002: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "samples.empty() == sample_lens.empty()" 27002: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1444, __extension__ __PRETTY_FUNCTION__)) 27002: # 1444 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: if (samples.empty()) { 27002: return ""; 27002: } 27002: std::string dict_data(max_dict_bytes, '\0'); 27002: size_t dict_len = ZDICT_trainFromBuffer( 27002: &dict_data[0], max_dict_bytes, &samples[0], &sample_lens[0], 27002: static_cast(sample_lens.size())); 27002: if (ZDICT_isError(dict_len)) { 27002: return ""; 27002: } 27002: 27002: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: dict_len <= max_dict_bytes 27002: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "dict_len <= max_dict_bytes" 27002: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1455, __extension__ __PRETTY_FUNCTION__)) 27002: # 1455 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: dict_data.resize(dict_len); 27002: return dict_data; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: inline std::string ZSTD_TrainDictionary(const std::string& samples, 27002: size_t sample_len_shift, 27002: size_t max_dict_bytes) { 27002: 27002: 27002: 27002: 27002: size_t num_samples = samples.size() >> sample_len_shift; 27002: std::vector sample_lens(num_samples, size_t(1) << sample_len_shift); 27002: return ZSTD_TrainDictionary(samples, sample_lens, max_dict_bytes); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: inline bool ZSTD_FinalizeDictionarySupported() { 27002: 27002: 27002: return (ZSTD_versionNumber() >= 10405); 27002: 27002: 27002: 27002: } 27002: 27002: inline std::string ZSTD_FinalizeDictionary( 27002: const std::string& samples, const std::vector& sample_lens, 27002: size_t max_dict_bytes, int level) { 27002: 27002: 27002: 27002: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: samples.empty() == sample_lens.empty() 27002: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "samples.empty() == sample_lens.empty()" 27002: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1500, __extension__ __PRETTY_FUNCTION__)) 27002: # 1500 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: if (samples.empty()) { 27002: return ""; 27002: } 27002: if (level == CompressionOptions::kDefaultCompressionLevel) { 27002: 27002: 27002: level = 3; 27002: } 27002: std::string dict_data(max_dict_bytes, '\0'); 27002: size_t dict_len = ZDICT_finalizeDictionary( 27002: dict_data.data(), max_dict_bytes, samples.data(), 27002: std::min(static_cast(samples.size()), max_dict_bytes), 27002: samples.data(), sample_lens.data(), 27002: static_cast(sample_lens.size()), 27002: {level, 0 , 0 }); 27002: if (ZDICT_isError(dict_len)) { 27002: return ""; 27002: } else { 27002: 27002: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: dict_len <= max_dict_bytes 27002: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "dict_len <= max_dict_bytes" 27002: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1519, __extension__ __PRETTY_FUNCTION__)) 27002: # 1519 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: dict_data.resize(dict_len); 27002: return dict_data; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: } 27002: 27002: inline bool CompressData(const Slice& raw, 27002: const CompressionInfo& compression_info, 27002: uint32_t compress_format_version, 27002: std::string* compressed_output) { 27002: bool ret = false; 27002: 27002: 27002: 27002: switch (compression_info.type()) { 27002: case kSnappyCompression: 27002: ret = Snappy_Compress(compression_info, raw.data(), raw.size(), 27002: compressed_output); 27002: break; 27002: case kZlibCompression: 27002: ret = Zlib_Compress(compression_info, compress_format_version, raw.data(), 27002: raw.size(), compressed_output); 27002: break; 27002: case kBZip2Compression: 27002: ret = BZip2_Compress(compression_info, compress_format_version, 27002: raw.data(), raw.size(), compressed_output); 27002: break; 27002: case kLZ4Compression: 27002: ret = LZ4_Compress(compression_info, compress_format_version, raw.data(), 27002: raw.size(), compressed_output); 27002: break; 27002: case kLZ4HCCompression: 27002: ret = LZ4HC_Compress(compression_info, compress_format_version, 27002: raw.data(), raw.size(), compressed_output); 27002: break; 27002: case kXpressCompression: 27002: ret = XPRESS_Compress(raw.data(), raw.size(), compressed_output); 27002: break; 27002: case kZSTD: 27002: case kZSTDNotFinalCompression: 27002: ret = ZSTD_Compress(compression_info, raw.data(), raw.size(), 27002: compressed_output); 27002: break; 27002: default: 27002: 27002: break; 27002: } 27002: 27002: rocksdb::SyncPoint::GetInstance()->Process("CompressData:TamperWithReturnValue", static_cast(&ret)) 27002: ; 27002: 27002: return ret; 27002: } 27002: 27002: inline CacheAllocationPtr UncompressData( 27002: const UncompressionInfo& uncompression_info, const char* data, size_t n, 27002: size_t* uncompressed_size, uint32_t compress_format_version, 27002: MemoryAllocator* allocator = nullptr) { 27002: switch (uncompression_info.type()) { 27002: case kSnappyCompression: 27002: return Snappy_Uncompress(data, n, uncompressed_size, allocator); 27002: case kZlibCompression: 27002: return Zlib_Uncompress(uncompression_info, data, n, uncompressed_size, 27002: compress_format_version, allocator); 27002: case kBZip2Compression: 27002: return BZip2_Uncompress(data, n, uncompressed_size, 27002: compress_format_version, allocator); 27002: case kLZ4Compression: 27002: case kLZ4HCCompression: 27002: return LZ4_Uncompress(uncompression_info, data, n, uncompressed_size, 27002: compress_format_version, allocator); 27002: case kXpressCompression: 27002: 27002: 27002: return CacheAllocationPtr(XPRESS_Uncompress(data, n, uncompressed_size)); 27002: case kZSTD: 27002: case kZSTDNotFinalCompression: 27002: return ZSTD_Uncompress(uncompression_info, data, n, uncompressed_size, 27002: allocator); 27002: default: 27002: return CacheAllocationPtr(); 27002: } 27002: } 27002: 27002: 27002: class CompressionTypeRecord { 27002: public: 27002: explicit CompressionTypeRecord(CompressionType compression_type) 27002: : compression_type_(compression_type) {} 27002: 27002: CompressionType GetCompressionType() const { return compression_type_; } 27002: 27002: inline void EncodeTo(std::string* dst) const { 27002: 27002: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: dst != nullptr 27002: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "dst != nullptr" 27002: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1619, __extension__ __PRETTY_FUNCTION__)) 27002: # 1619 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: PutFixed32(dst, compression_type_); 27002: } 27002: 27002: inline Status DecodeFrom(Slice* src) { 27002: constexpr char class_name[] = "CompressionTypeRecord"; 27002: 27002: uint32_t val; 27002: if (!GetFixed32(src, &val)) { 27002: return Status::Corruption(class_name, 27002: "Error decoding WAL compression type"); 27002: } 27002: CompressionType compression_type = static_cast(val); 27002: if (!StreamingCompressionTypeSupported(compression_type)) { 27002: return Status::Corruption(class_name, 27002: "WAL compression type not supported"); 27002: } 27002: compression_type_ = compression_type; 27002: return Status::OK(); 27002: } 27002: 27002: inline std::string DebugString() const { 27002: return "compression_type: " + CompressionTypeToString(compression_type_); 27002: } 27002: 27002: private: 27002: CompressionType compression_type_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class StreamingCompress { 27002: public: 27002: StreamingCompress(CompressionType compression_type, 27002: const CompressionOptions& opts, 27002: uint32_t compress_format_version, size_t max_output_len) 27002: : compression_type_(compression_type), 27002: opts_(opts), 27002: compress_format_version_(compress_format_version), 27002: max_output_len_(max_output_len) {} 27002: virtual ~StreamingCompress() = default; 27002: # 1674 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: virtual int Compress(const char* input, size_t input_size, char* output, 27002: size_t* output_pos) = 0; 27002: 27002: 27002: static StreamingCompress* Create(CompressionType compression_type, 27002: const CompressionOptions& opts, 27002: uint32_t compress_format_version, 27002: size_t max_output_len); 27002: virtual void Reset() = 0; 27002: 27002: protected: 27002: const CompressionType compression_type_; 27002: const CompressionOptions opts_; 27002: const uint32_t compress_format_version_; 27002: const size_t max_output_len_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class StreamingUncompress { 27002: public: 27002: StreamingUncompress(CompressionType compression_type, 27002: uint32_t compress_format_version, size_t max_output_len) 27002: : compression_type_(compression_type), 27002: compress_format_version_(compress_format_version), 27002: max_output_len_(max_output_len) {} 27002: virtual ~StreamingUncompress() = default; 27002: # 1714 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: virtual int Uncompress(const char* input, size_t input_size, char* output, 27002: size_t* output_pos) = 0; 27002: static StreamingUncompress* Create(CompressionType compression_type, 27002: uint32_t compress_format_version, 27002: size_t max_output_len); 27002: virtual void Reset() = 0; 27002: 27002: protected: 27002: CompressionType compression_type_; 27002: uint32_t compress_format_version_; 27002: size_t max_output_len_; 27002: }; 27002: 27002: class ZSTDStreamingCompress final : public StreamingCompress { 27002: public: 27002: explicit ZSTDStreamingCompress(const CompressionOptions& opts, 27002: uint32_t compress_format_version, 27002: size_t max_output_len) 27002: : StreamingCompress(kZSTD, opts, compress_format_version, 27002: max_output_len) { 27002: 27002: cctx_ = ZSTD_createCCtx(); 27002: 27002: ZSTD_CCtx_setParameter(cctx_, ZSTD_c_checksumFlag, 1); 27002: 27002: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: cctx_ != nullptr 27002: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "cctx_ != nullptr" 27002: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1738, __extension__ __PRETTY_FUNCTION__)) 27002: # 1738 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: input_buffer_ = { nullptr, 0, 0}; 27002: 27002: } 27002: ~ZSTDStreamingCompress() override { 27002: 27002: ZSTD_freeCCtx(cctx_); 27002: 27002: } 27002: int Compress(const char* input, size_t input_size, char* output, 27002: size_t* output_pos) override; 27002: void Reset() override; 27002: 27002: ZSTD_CCtx* cctx_; 27002: ZSTD_inBuffer input_buffer_; 27002: 27002: }; 27002: 27002: class ZSTDStreamingUncompress final : public StreamingUncompress { 27002: public: 27002: explicit ZSTDStreamingUncompress(uint32_t compress_format_version, 27002: size_t max_output_len) 27002: : StreamingUncompress(kZSTD, compress_format_version, max_output_len) { 27002: 27002: dctx_ = ZSTD_createDCtx(); 27002: 27002: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: (static_cast ( 27002: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: dctx_ != nullptr 27002: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: "dctx_ != nullptr" 27002: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 3 4 27002: , "./util/compression.h", 1763, __extension__ __PRETTY_FUNCTION__)) 27002: # 1763 "/build/reproducible-path/rocksdb-7.8.3/util/compression.h" 27002: ; 27002: input_buffer_ = { nullptr, 0, 0}; 27002: 27002: } 27002: ~ZSTDStreamingUncompress() override { 27002: 27002: ZSTD_freeDCtx(dctx_); 27002: 27002: } 27002: int Uncompress(const char* input, size_t input_size, char* output, 27002: size_t* output_size) override; 27002: void Reset() override; 27002: 27002: private: 27002: 27002: ZSTD_DCtx* dctx_; 27002: ZSTD_inBuffer input_buffer_; 27002: 27002: }; 27002: 27002: } 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/options/cf_options.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: struct ImmutableCFOptions { 27002: public: 27002: static const char* kName() { return "ImmutableCFOptions"; } 27002: explicit ImmutableCFOptions(); 27002: explicit ImmutableCFOptions(const ColumnFamilyOptions& cf_options); 27002: 27002: CompactionStyle compaction_style; 27002: 27002: CompactionPri compaction_pri; 27002: 27002: const Comparator* user_comparator; 27002: InternalKeyComparator internal_comparator; 27002: 27002: std::shared_ptr merge_operator; 27002: 27002: const CompactionFilter* compaction_filter; 27002: 27002: std::shared_ptr compaction_filter_factory; 27002: 27002: int min_write_buffer_number_to_merge; 27002: 27002: int max_write_buffer_number_to_maintain; 27002: 27002: int64_t max_write_buffer_size_to_maintain; 27002: 27002: bool inplace_update_support; 27002: 27002: UpdateStatus (*inplace_callback)(char* existing_value, 27002: uint32_t* existing_value_size, 27002: Slice delta_value, 27002: std::string* merged_value); 27002: 27002: std::shared_ptr memtable_factory; 27002: 27002: std::shared_ptr table_factory; 27002: 27002: Options::TablePropertiesCollectorFactories 27002: table_properties_collector_factories; 27002: 27002: 27002: 27002: uint32_t bloom_locality; 27002: 27002: bool level_compaction_dynamic_level_bytes; 27002: 27002: bool level_compaction_dynamic_file_size; 27002: 27002: int num_levels; 27002: 27002: bool optimize_filters_for_hits; 27002: 27002: bool force_consistency_checks; 27002: 27002: uint64_t preclude_last_level_data_seconds; 27002: 27002: uint64_t preserve_internal_time_seconds; 27002: 27002: std::shared_ptr 27002: memtable_insert_with_hint_prefix_extractor; 27002: 27002: std::vector cf_paths; 27002: 27002: std::shared_ptr compaction_thread_limiter; 27002: 27002: std::shared_ptr sst_partitioner_factory; 27002: 27002: std::shared_ptr blob_cache; 27002: }; 27002: 27002: struct ImmutableOptions : public ImmutableDBOptions, public ImmutableCFOptions { 27002: explicit ImmutableOptions(); 27002: explicit ImmutableOptions(const Options& options); 27002: 27002: ImmutableOptions(const DBOptions& db_options, 27002: const ColumnFamilyOptions& cf_options); 27002: 27002: ImmutableOptions(const ImmutableDBOptions& db_options, 27002: const ImmutableCFOptions& cf_options); 27002: 27002: ImmutableOptions(const DBOptions& db_options, 27002: const ImmutableCFOptions& cf_options); 27002: 27002: ImmutableOptions(const ImmutableDBOptions& db_options, 27002: const ColumnFamilyOptions& cf_options); 27002: }; 27002: 27002: struct MutableCFOptions { 27002: static const char* kName() { return "MutableCFOptions"; } 27002: explicit MutableCFOptions(const ColumnFamilyOptions& options) 27002: : write_buffer_size(options.write_buffer_size), 27002: max_write_buffer_number(options.max_write_buffer_number), 27002: arena_block_size(options.arena_block_size), 27002: memtable_prefix_bloom_size_ratio( 27002: options.memtable_prefix_bloom_size_ratio), 27002: memtable_whole_key_filtering(options.memtable_whole_key_filtering), 27002: memtable_huge_page_size(options.memtable_huge_page_size), 27002: max_successive_merges(options.max_successive_merges), 27002: inplace_update_num_locks(options.inplace_update_num_locks), 27002: prefix_extractor(options.prefix_extractor), 27002: experimental_mempurge_threshold( 27002: options.experimental_mempurge_threshold), 27002: disable_auto_compactions(options.disable_auto_compactions), 27002: soft_pending_compaction_bytes_limit( 27002: options.soft_pending_compaction_bytes_limit), 27002: hard_pending_compaction_bytes_limit( 27002: options.hard_pending_compaction_bytes_limit), 27002: level0_file_num_compaction_trigger( 27002: options.level0_file_num_compaction_trigger), 27002: level0_slowdown_writes_trigger(options.level0_slowdown_writes_trigger), 27002: level0_stop_writes_trigger(options.level0_stop_writes_trigger), 27002: max_compaction_bytes(options.max_compaction_bytes), 27002: ignore_max_compaction_bytes_for_input( 27002: options.ignore_max_compaction_bytes_for_input), 27002: target_file_size_base(options.target_file_size_base), 27002: target_file_size_multiplier(options.target_file_size_multiplier), 27002: max_bytes_for_level_base(options.max_bytes_for_level_base), 27002: max_bytes_for_level_multiplier(options.max_bytes_for_level_multiplier), 27002: ttl(options.ttl), 27002: periodic_compaction_seconds(options.periodic_compaction_seconds), 27002: max_bytes_for_level_multiplier_additional( 27002: options.max_bytes_for_level_multiplier_additional), 27002: compaction_options_fifo(options.compaction_options_fifo), 27002: compaction_options_universal(options.compaction_options_universal), 27002: enable_blob_files(options.enable_blob_files), 27002: min_blob_size(options.min_blob_size), 27002: blob_file_size(options.blob_file_size), 27002: blob_compression_type(options.blob_compression_type), 27002: enable_blob_garbage_collection(options.enable_blob_garbage_collection), 27002: blob_garbage_collection_age_cutoff( 27002: options.blob_garbage_collection_age_cutoff), 27002: blob_garbage_collection_force_threshold( 27002: options.blob_garbage_collection_force_threshold), 27002: blob_compaction_readahead_size(options.blob_compaction_readahead_size), 27002: blob_file_starting_level(options.blob_file_starting_level), 27002: prepopulate_blob_cache(options.prepopulate_blob_cache), 27002: max_sequential_skip_in_iterations( 27002: options.max_sequential_skip_in_iterations), 27002: check_flush_compaction_key_order( 27002: options.check_flush_compaction_key_order), 27002: paranoid_file_checks(options.paranoid_file_checks), 27002: report_bg_io_stats(options.report_bg_io_stats), 27002: compression(options.compression), 27002: bottommost_compression(options.bottommost_compression), 27002: compression_opts(options.compression_opts), 27002: bottommost_compression_opts(options.bottommost_compression_opts), 27002: last_level_temperature(options.last_level_temperature == 27002: Temperature::kUnknown 27002: ? options.bottommost_temperature 27002: : options.last_level_temperature), 27002: memtable_protection_bytes_per_key( 27002: options.memtable_protection_bytes_per_key), 27002: sample_for_compression( 27002: options.sample_for_compression), 27002: compression_per_level(options.compression_per_level) { 27002: RefreshDerivedOptions(options.num_levels, options.compaction_style); 27002: } 27002: 27002: MutableCFOptions() 27002: : write_buffer_size(0), 27002: max_write_buffer_number(0), 27002: arena_block_size(0), 27002: memtable_prefix_bloom_size_ratio(0), 27002: memtable_whole_key_filtering(false), 27002: memtable_huge_page_size(0), 27002: max_successive_merges(0), 27002: inplace_update_num_locks(0), 27002: prefix_extractor(nullptr), 27002: experimental_mempurge_threshold(0.0), 27002: disable_auto_compactions(false), 27002: soft_pending_compaction_bytes_limit(0), 27002: hard_pending_compaction_bytes_limit(0), 27002: level0_file_num_compaction_trigger(0), 27002: level0_slowdown_writes_trigger(0), 27002: level0_stop_writes_trigger(0), 27002: max_compaction_bytes(0), 27002: ignore_max_compaction_bytes_for_input(true), 27002: target_file_size_base(0), 27002: target_file_size_multiplier(0), 27002: max_bytes_for_level_base(0), 27002: max_bytes_for_level_multiplier(0), 27002: ttl(0), 27002: periodic_compaction_seconds(0), 27002: compaction_options_fifo(), 27002: enable_blob_files(false), 27002: min_blob_size(0), 27002: blob_file_size(0), 27002: blob_compression_type(kNoCompression), 27002: enable_blob_garbage_collection(false), 27002: blob_garbage_collection_age_cutoff(0.0), 27002: blob_garbage_collection_force_threshold(0.0), 27002: blob_compaction_readahead_size(0), 27002: blob_file_starting_level(0), 27002: prepopulate_blob_cache(PrepopulateBlobCache::kDisable), 27002: max_sequential_skip_in_iterations(0), 27002: check_flush_compaction_key_order(true), 27002: paranoid_file_checks(false), 27002: report_bg_io_stats(false), 27002: compression(Snappy_Supported() ? kSnappyCompression : kNoCompression), 27002: bottommost_compression(kDisableCompressionOption), 27002: last_level_temperature(Temperature::kUnknown), 27002: memtable_protection_bytes_per_key(0), 27002: sample_for_compression(0) {} 27002: 27002: explicit MutableCFOptions(const Options& options); 27002: 27002: 27002: void RefreshDerivedOptions(int num_levels, CompactionStyle compaction_style); 27002: 27002: void RefreshDerivedOptions(const ImmutableCFOptions& ioptions) { 27002: RefreshDerivedOptions(ioptions.num_levels, ioptions.compaction_style); 27002: } 27002: 27002: int MaxBytesMultiplerAdditional(int level) const { 27002: if (level >= 27002: static_cast(max_bytes_for_level_multiplier_additional.size())) { 27002: return 1; 27002: } 27002: return max_bytes_for_level_multiplier_additional[level]; 27002: } 27002: 27002: void Dump(Logger* log) const; 27002: 27002: 27002: size_t write_buffer_size; 27002: int max_write_buffer_number; 27002: size_t arena_block_size; 27002: double memtable_prefix_bloom_size_ratio; 27002: bool memtable_whole_key_filtering; 27002: size_t memtable_huge_page_size; 27002: size_t max_successive_merges; 27002: size_t inplace_update_num_locks; 27002: std::shared_ptr prefix_extractor; 27002: # 269 "/build/reproducible-path/rocksdb-7.8.3/options/cf_options.h" 27002: double experimental_mempurge_threshold; 27002: 27002: 27002: bool disable_auto_compactions; 27002: uint64_t soft_pending_compaction_bytes_limit; 27002: uint64_t hard_pending_compaction_bytes_limit; 27002: int level0_file_num_compaction_trigger; 27002: int level0_slowdown_writes_trigger; 27002: int level0_stop_writes_trigger; 27002: uint64_t max_compaction_bytes; 27002: bool ignore_max_compaction_bytes_for_input; 27002: uint64_t target_file_size_base; 27002: int target_file_size_multiplier; 27002: uint64_t max_bytes_for_level_base; 27002: double max_bytes_for_level_multiplier; 27002: uint64_t ttl; 27002: uint64_t periodic_compaction_seconds; 27002: std::vector max_bytes_for_level_multiplier_additional; 27002: CompactionOptionsFIFO compaction_options_fifo; 27002: CompactionOptionsUniversal compaction_options_universal; 27002: 27002: 27002: bool enable_blob_files; 27002: uint64_t min_blob_size; 27002: uint64_t blob_file_size; 27002: CompressionType blob_compression_type; 27002: bool enable_blob_garbage_collection; 27002: double blob_garbage_collection_age_cutoff; 27002: double blob_garbage_collection_force_threshold; 27002: uint64_t blob_compaction_readahead_size; 27002: int blob_file_starting_level; 27002: PrepopulateBlobCache prepopulate_blob_cache; 27002: 27002: 27002: uint64_t max_sequential_skip_in_iterations; 27002: bool check_flush_compaction_key_order; 27002: bool paranoid_file_checks; 27002: bool report_bg_io_stats; 27002: CompressionType compression; 27002: CompressionType bottommost_compression; 27002: CompressionOptions compression_opts; 27002: CompressionOptions bottommost_compression_opts; 27002: Temperature last_level_temperature; 27002: uint32_t memtable_protection_bytes_per_key; 27002: 27002: uint64_t sample_for_compression; 27002: std::vector compression_per_level; 27002: 27002: 27002: 27002: std::vector max_file_size; 27002: }; 27002: 27002: uint64_t MultiplyCheckOverflow(uint64_t op1, double op2); 27002: 27002: 27002: uint64_t MaxFileSizeForLevel(const MutableCFOptions& cf_options, 27002: int level, CompactionStyle compaction_style, int base_level = 1, 27002: bool level_compaction_dynamic_level_bytes = false); 27002: 27002: 27002: 27002: size_t MaxFileSizeForL0MetaPin(const MutableCFOptions& cf_options); 27002: 27002: 27002: Status GetStringFromMutableCFOptions(const ConfigOptions& config_options, 27002: const MutableCFOptions& mutable_opts, 27002: std::string* opt_string); 27002: 27002: Status GetMutableOptionsFromStrings( 27002: const MutableCFOptions& base_options, 27002: const std::unordered_map& options_map, 27002: Logger* info_log, MutableCFOptions* new_options); 27002: 27002: 27002: } 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/malloc.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/port/malloc.h" 27002: 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 2 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class RandomAccessFile; 27002: struct ReadOptions; 27002: 27002: bool ShouldReportDetailedTime(Env* env, Statistics* stats); 27002: 27002: 27002: constexpr uint32_t kMagicNumberLengthByte = 8; 27002: 27002: 27002: 27002: class BlockHandle { 27002: public: 27002: 27002: 27002: BlockHandle(); 27002: BlockHandle(uint64_t offset, uint64_t size); 27002: 27002: 27002: uint64_t offset() const { return offset_; } 27002: void set_offset(uint64_t _offset) { offset_ = _offset; } 27002: 27002: 27002: uint64_t size() const { return size_; } 27002: void set_size(uint64_t _size) { size_ = _size; } 27002: 27002: void EncodeTo(std::string* dst) const; 27002: char* EncodeTo(char* dst) const; 27002: Status DecodeFrom(Slice* input); 27002: Status DecodeSizeFrom(uint64_t offset, Slice* input); 27002: 27002: 27002: std::string ToString(bool hex = true) const; 27002: 27002: 27002: 27002: bool IsNull() const { return offset_ == 0 && size_ == 0; } 27002: 27002: static const BlockHandle& NullBlockHandle() { return kNullBlockHandle; } 27002: 27002: 27002: static constexpr uint32_t kMaxEncodedLength = 2 * kMaxVarint64Length; 27002: 27002: inline bool operator==(const BlockHandle& rhs) const { 27002: return offset_ == rhs.offset_ && size_ == rhs.size_; 27002: } 27002: inline bool operator!=(const BlockHandle& rhs) const { 27002: return !(*this == rhs); 27002: } 27002: 27002: private: 27002: uint64_t offset_; 27002: uint64_t size_; 27002: 27002: static const BlockHandle kNullBlockHandle; 27002: }; 27002: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 27002: struct IndexValue { 27002: BlockHandle handle; 27002: 27002: Slice first_internal_key; 27002: 27002: IndexValue() = default; 27002: IndexValue(BlockHandle _handle, Slice _first_internal_key) 27002: : handle(_handle), first_internal_key(_first_internal_key) {} 27002: 27002: 27002: 27002: 27002: 27002: 27002: void EncodeTo(std::string* dst, bool have_first_key, 27002: const BlockHandle* previous_handle) const; 27002: Status DecodeFrom(Slice* input, bool have_first_key, 27002: const BlockHandle* previous_handle); 27002: 27002: std::string ToString(bool hex, bool have_first_key) const; 27002: }; 27002: 27002: inline uint32_t GetCompressFormatForVersion(uint32_t format_version) { 27002: 27002: 27002: 27002: return format_version >= 2 ? 2 : 1; 27002: } 27002: 27002: constexpr uint32_t kLatestFormatVersion = 5; 27002: 27002: inline bool IsSupportedFormatVersion(uint32_t version) { 27002: return version <= kLatestFormatVersion; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class Footer { 27002: public: 27002: 27002: Footer() {} 27002: 27002: 27002: 27002: 27002: Status DecodeFrom(Slice input, uint64_t input_offset); 27002: 27002: 27002: 27002: uint64_t table_magic_number() const { return table_magic_number_; } 27002: 27002: 27002: 27002: 27002: uint32_t format_version() const { return format_version_; } 27002: 27002: 27002: const BlockHandle& metaindex_handle() const { return metaindex_handle_; } 27002: 27002: 27002: const BlockHandle& index_handle() const { return index_handle_; } 27002: 27002: 27002: ChecksumType checksum_type() const { 27002: return static_cast(checksum_type_); 27002: } 27002: 27002: 27002: 27002: 27002: inline size_t GetBlockTrailerSize() const { return block_trailer_size_; } 27002: 27002: 27002: std::string ToString() const; 27002: 27002: 27002: 27002: 27002: 27002: 27002: static constexpr uint32_t kVersion0EncodedLength = 27002: 2 * BlockHandle::kMaxEncodedLength + kMagicNumberLengthByte; 27002: static constexpr uint32_t kMinEncodedLength = kVersion0EncodedLength; 27002: 27002: 27002: 27002: 27002: 27002: static constexpr uint32_t kNewVersionsEncodedLength = 27002: 1 + 2 * BlockHandle::kMaxEncodedLength + 4 + kMagicNumberLengthByte; 27002: static constexpr uint32_t kMaxEncodedLength = kNewVersionsEncodedLength; 27002: 27002: static constexpr uint64_t kNullTableMagicNumber = 0; 27002: 27002: static constexpr uint32_t kInvalidFormatVersion = 0xffffffffU; 27002: 27002: private: 27002: static constexpr int kInvalidChecksumType = 27002: (1 << (sizeof(ChecksumType) * 8)) | kNoChecksum; 27002: 27002: uint64_t table_magic_number_ = kNullTableMagicNumber; 27002: uint32_t format_version_ = kInvalidFormatVersion; 27002: BlockHandle metaindex_handle_; 27002: BlockHandle index_handle_; 27002: int checksum_type_ = kInvalidChecksumType; 27002: uint8_t block_trailer_size_ = 0; 27002: }; 27002: 27002: 27002: class FooterBuilder { 27002: public: 27002: # 220 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 27002: void Build(uint64_t table_magic_number, uint32_t format_version, 27002: uint64_t footer_offset, ChecksumType checksum_type, 27002: const BlockHandle& metaindex_handle, 27002: const BlockHandle& index_handle = BlockHandle::NullBlockHandle()); 27002: 27002: 27002: 27002: const Slice& GetSlice() const { 27002: 27002: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 3 4 27002: (static_cast ( 27002: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 27002: slice_.size() 27002: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 27002: "slice_.size()" 27002: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 3 4 27002: , "./table/format.h", 228, __extension__ __PRETTY_FUNCTION__)) 27002: # 228 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 27002: ; 27002: return slice_; 27002: } 27002: 27002: private: 27002: Slice slice_; 27002: std::array data_; 27002: }; 27002: 27002: 27002: 27002: 27002: Status ReadFooterFromFile(const IOOptions& opts, RandomAccessFileReader* file, 27002: FilePrefetchBuffer* prefetch_buffer, 27002: uint64_t file_size, Footer* footer, 27002: uint64_t enforce_table_magic_number = 0); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint32_t ComputeBuiltinChecksum(ChecksumType type, const char* data, 27002: size_t size); 27002: uint32_t ComputeBuiltinChecksumWithLastByte(ChecksumType type, const char* data, 27002: size_t size, char last_byte); 27002: # 279 "/build/reproducible-path/rocksdb-7.8.3/table/format.h" 27002: struct BlockContents { 27002: 27002: Slice data; 27002: CacheAllocationPtr allocation; 27002: 27002: 27002: 27002: 27002: bool has_trailer = false; 27002: 27002: 27002: BlockContents() {} 27002: 27002: 27002: BlockContents(const Slice& _data) : data(_data) {} 27002: 27002: 27002: BlockContents(CacheAllocationPtr&& _data, size_t _size) 27002: : data(_data.get(), _size), allocation(std::move(_data)) {} 27002: 27002: 27002: BlockContents(std::unique_ptr&& _data, size_t _size) 27002: : data(_data.get(), _size) { 27002: allocation.reset(_data.release()); 27002: } 27002: 27002: 27002: bool own_bytes() const { return allocation.get() != nullptr; } 27002: 27002: 27002: size_t usable_size() const { 27002: if (allocation.get() != nullptr) { 27002: auto allocator = allocation.get_deleter().allocator; 27002: if (allocator) { 27002: return allocator->UsableSize(allocation.get(), data.size()); 27002: } 27002: 27002: return malloc_usable_size(allocation.get()); 27002: 27002: 27002: 27002: } else { 27002: return 0; 27002: } 27002: } 27002: 27002: size_t ApproximateMemoryUsage() const { 27002: return usable_size() + sizeof(*this); 27002: } 27002: 27002: BlockContents(BlockContents&& other) noexcept { *this = std::move(other); } 27002: 27002: BlockContents& operator=(BlockContents&& other) { 27002: data = std::move(other.data); 27002: allocation = std::move(other.allocation); 27002: 27002: has_trailer = other.has_trailer; 27002: 27002: return *this; 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: Status UncompressSerializedBlock(const UncompressionInfo& info, 27002: const char* data, size_t size, 27002: BlockContents* out_contents, 27002: uint32_t format_version, 27002: const ImmutableOptions& ioptions, 27002: MemoryAllocator* allocator = nullptr); 27002: 27002: 27002: 27002: Status UncompressBlockData(const UncompressionInfo& info, const char* data, 27002: size_t size, BlockContents* out_contents, 27002: uint32_t format_version, 27002: const ImmutableOptions& ioptions, 27002: MemoryAllocator* allocator = nullptr); 27002: 27002: 27002: Status ReifyDbHostIdProperty(Env* env, std::string* db_host_id); 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline BlockHandle::BlockHandle() : BlockHandle(~uint64_t{0}, ~uint64_t{0}) {} 27002: 27002: inline BlockHandle::BlockHandle(uint64_t _offset, uint64_t _size) 27002: : offset_(_offset), size_(_size) {} 27002: 27002: } 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class PinnedIteratorsManager; 27002: 27002: enum class IterBoundCheck : char { 27002: kUnknown = 0, 27002: kOutOfBound, 27002: kInbound, 27002: }; 27002: 27002: struct IterateResult { 27002: Slice key; 27002: IterBoundCheck bound_check_result = IterBoundCheck::kUnknown; 27002: 27002: bool value_prepared = true; 27002: }; 27002: 27002: template 27002: class InternalIteratorBase : public Cleanable { 27002: public: 27002: InternalIteratorBase() {} 27002: 27002: 27002: InternalIteratorBase(const InternalIteratorBase&) = delete; 27002: InternalIteratorBase& operator=(const InternalIteratorBase&) = delete; 27002: 27002: virtual ~InternalIteratorBase() {} 27002: 27002: 27002: 27002: 27002: virtual bool Valid() const = 0; 27002: 27002: 27002: 27002: virtual void SeekToFirst() = 0; 27002: 27002: 27002: 27002: virtual void SeekToLast() = 0; 27002: # 66 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 27002: virtual void Seek(const Slice& target) = 0; 27002: 27002: 27002: 27002: 27002: virtual void SeekForPrev(const Slice& target) = 0; 27002: 27002: 27002: 27002: 27002: virtual void Next() = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual bool NextAndGetResult(IterateResult* result) { 27002: Next(); 27002: bool is_valid = Valid(); 27002: if (is_valid) { 27002: result->key = key(); 27002: 27002: 27002: 27002: result->bound_check_result = IterBoundCheck::kUnknown; 27002: result->value_prepared = false; 27002: 27002: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 3 4 27002: (static_cast ( 27002: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 27002: UpperBoundCheckResult() != IterBoundCheck::kOutOfBound 27002: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 27002: "UpperBoundCheckResult() != IterBoundCheck::kOutOfBound" 27002: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 3 4 27002: , "./table/internal_iterator.h", 92, __extension__ __PRETTY_FUNCTION__)) 27002: # 92 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 27002: ; 27002: } 27002: return is_valid; 27002: } 27002: 27002: 27002: 27002: 27002: virtual void Prev() = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual Slice key() const = 0; 27002: 27002: 27002: 27002: virtual Slice user_key() const { return ExtractUserKey(key()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual TValue value() const = 0; 27002: 27002: 27002: 27002: 27002: virtual Status status() const = 0; 27002: # 135 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 27002: virtual bool PrepareValue() { return true; } 27002: 27002: 27002: virtual bool MayBeOutOfLowerBound() { return true; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual IterBoundCheck UpperBoundCheckResult() { 27002: return IterBoundCheck::kUnknown; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual void SetPinnedItersMgr(PinnedIteratorsManager* ) { 27002: } 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 27002: virtual bool IsKeyPinned() const { return false; } 27002: 27002: 27002: 27002: 27002: 27002: virtual bool IsValuePinned() const { return false; } 27002: 27002: virtual Status GetProperty(std::string , std::string* ) { 27002: return Status::NotSupported(""); 27002: } 27002: # 184 "/build/reproducible-path/rocksdb-7.8.3/table/internal_iterator.h" 27002: virtual void GetReadaheadState(ReadaheadFileInfo* ) {} 27002: 27002: 27002: virtual void SetReadaheadState(ReadaheadFileInfo* ) {} 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual bool IsDeleteRangeSentinelKey() const { return false; } 27002: 27002: protected: 27002: void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) { 27002: Seek(target); 27002: if (!Valid()) { 27002: SeekToLast(); 27002: } 27002: while (Valid() && cmp->Compare(target, key()) < 0) { 27002: Prev(); 27002: } 27002: } 27002: 27002: bool is_mutable_; 27002: }; 27002: 27002: using InternalIterator = InternalIteratorBase; 27002: 27002: 27002: template 27002: extern InternalIteratorBase* NewEmptyInternalIterator(); 27002: 27002: 27002: template 27002: extern InternalIteratorBase* NewErrorInternalIterator( 27002: const Status& status); 27002: 27002: 27002: template 27002: extern InternalIteratorBase* NewErrorInternalIterator( 27002: const Status& status, Arena* arena); 27002: 27002: } 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: class PinnedIteratorsManager : public Cleanable { 27002: public: 27002: PinnedIteratorsManager() : pinning_enabled(false) {} 27002: ~PinnedIteratorsManager() { 27002: if (pinning_enabled) { 27002: ReleasePinnedData(); 27002: } 27002: } 27002: 27002: 27002: PinnedIteratorsManager(PinnedIteratorsManager&& other) noexcept = default; 27002: PinnedIteratorsManager& operator=(PinnedIteratorsManager&& other) noexcept = 27002: default; 27002: 27002: 27002: void StartPinning() { 27002: 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 27002: (static_cast ( 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 27002: pinning_enabled == false 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 27002: "pinning_enabled == false" 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 27002: , "./db/pinned_iterators_manager.h", 35, __extension__ __PRETTY_FUNCTION__)) 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 27002: ; 27002: pinning_enabled = true; 27002: } 27002: 27002: 27002: bool PinningEnabled() { return pinning_enabled; } 27002: 27002: 27002: void PinIterator(InternalIterator* iter, bool arena = false) { 27002: if (arena) { 27002: PinPtr(iter, &PinnedIteratorsManager::ReleaseArenaInternalIterator); 27002: } else { 27002: PinPtr(iter, &PinnedIteratorsManager::ReleaseInternalIterator); 27002: } 27002: } 27002: 27002: using ReleaseFunction = void (*)(void* arg1); 27002: void PinPtr(void* ptr, ReleaseFunction release_func) { 27002: 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 27002: (static_cast ( 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 27002: pinning_enabled 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 27002: "pinning_enabled" 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 27002: , "./db/pinned_iterators_manager.h", 53, __extension__ __PRETTY_FUNCTION__)) 27002: # 53 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 27002: ; 27002: if (ptr == nullptr) { 27002: return; 27002: } 27002: pinned_ptrs_.emplace_back(ptr, release_func); 27002: } 27002: 27002: 27002: inline void ReleasePinnedData() { 27002: 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 27002: (static_cast ( 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 27002: pinning_enabled == true 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 27002: "pinning_enabled == true" 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 3 4 27002: , "./db/pinned_iterators_manager.h", 62, __extension__ __PRETTY_FUNCTION__)) 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/db/pinned_iterators_manager.h" 27002: ; 27002: pinning_enabled = false; 27002: 27002: 27002: std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); 27002: auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); 27002: 27002: for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { 27002: void* ptr = i->first; 27002: ReleaseFunction release_func = i->second; 27002: release_func(ptr); 27002: } 27002: pinned_ptrs_.clear(); 27002: 27002: Cleanable::Reset(); 27002: } 27002: 27002: private: 27002: static void ReleaseInternalIterator(void* ptr) { 27002: delete reinterpret_cast(ptr); 27002: } 27002: 27002: static void ReleaseArenaInternalIterator(void* ptr) { 27002: reinterpret_cast(ptr)->~InternalIterator(); 27002: } 27002: 27002: bool pinning_enabled; 27002: std::vector> pinned_ptrs_; 27002: }; 27002: 27002: } 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 2 27002: 27002: 27002: 27002: namespace rocksdb { 27002: struct FragmentedRangeTombstoneList; 27002: 27002: struct FragmentedRangeTombstoneListCache { 27002: 27002: std::mutex reader_mutex; 27002: std::unique_ptr tombstones = nullptr; 27002: 27002: std::atomic initialized = false; 27002: }; 27002: 27002: struct FragmentedRangeTombstoneList { 27002: public: 27002: # 40 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 27002: struct RangeTombstoneStack { 27002: RangeTombstoneStack(const Slice& start, const Slice& end, size_t start_idx, 27002: size_t end_idx) 27002: : start_key(start), 27002: end_key(end), 27002: seq_start_idx(start_idx), 27002: seq_end_idx(end_idx) {} 27002: Slice start_key; 27002: Slice end_key; 27002: size_t seq_start_idx; 27002: size_t seq_end_idx; 27002: }; 27002: 27002: 27002: FragmentedRangeTombstoneList( 27002: std::unique_ptr unfragmented_tombstones, 27002: const InternalKeyComparator& icmp, bool for_compaction = false, 27002: const std::vector& snapshots = {}); 27002: 27002: std::vector::const_iterator begin() const { 27002: return tombstones_.begin(); 27002: } 27002: 27002: std::vector::const_iterator end() const { 27002: return tombstones_.end(); 27002: } 27002: 27002: std::vector::const_iterator seq_iter(size_t idx) const { 27002: return std::next(tombstone_seqs_.begin(), idx); 27002: } 27002: 27002: std::vector::const_iterator ts_iter(size_t idx) const { 27002: return std::next(tombstone_timestamps_.begin(), idx); 27002: } 27002: 27002: std::vector::const_iterator seq_begin() const { 27002: return tombstone_seqs_.begin(); 27002: } 27002: 27002: std::vector::const_iterator seq_end() const { 27002: return tombstone_seqs_.end(); 27002: } 27002: 27002: bool empty() const { return tombstones_.empty(); } 27002: 27002: 27002: 27002: bool ContainsRange(SequenceNumber lower, SequenceNumber upper) const; 27002: 27002: uint64_t num_unfragmented_tombstones() const { 27002: return num_unfragmented_tombstones_; 27002: } 27002: 27002: uint64_t total_tombstone_payload_bytes() const { 27002: return total_tombstone_payload_bytes_; 27002: } 27002: 27002: private: 27002: # 108 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 27002: void FragmentTombstones( 27002: std::unique_ptr unfragmented_tombstones, 27002: const InternalKeyComparator& icmp, bool for_compaction, 27002: const std::vector& snapshots); 27002: 27002: std::vector tombstones_; 27002: std::vector tombstone_seqs_; 27002: std::vector tombstone_timestamps_; 27002: std::set seq_set_; 27002: std::list pinned_slices_; 27002: PinnedIteratorsManager pinned_iters_mgr_; 27002: uint64_t num_unfragmented_tombstones_; 27002: uint64_t total_tombstone_payload_bytes_; 27002: }; 27002: # 132 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 27002: class FragmentedRangeTombstoneIterator : public InternalIterator { 27002: public: 27002: FragmentedRangeTombstoneIterator( 27002: const FragmentedRangeTombstoneList* tombstones, 27002: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 27002: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 27002: FragmentedRangeTombstoneIterator( 27002: const std::shared_ptr& tombstones, 27002: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 27002: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 27002: FragmentedRangeTombstoneIterator( 27002: const std::shared_ptr& tombstones, 27002: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 27002: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 27002: 27002: void SeekToFirst() override; 27002: void SeekToLast() override; 27002: 27002: void SeekToTopFirst(); 27002: void SeekToTopLast(); 27002: # 161 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 27002: void Seek(const Slice& target) override; 27002: 27002: 27002: 27002: void SeekForPrev(const Slice& target) override; 27002: 27002: void Next() override; 27002: void Prev() override; 27002: 27002: void TopNext(); 27002: void TopPrev(); 27002: 27002: bool Valid() const override; 27002: 27002: 27002: Slice key() const override { 27002: MaybePinKey(); 27002: return current_start_key_.Encode(); 27002: } 27002: Slice value() const override { return pos_->end_key; } 27002: bool IsKeyPinned() const override { return false; } 27002: bool IsValuePinned() const override { return true; } 27002: Status status() const override { return Status::OK(); } 27002: 27002: bool empty() const { return tombstones_->empty(); } 27002: void Invalidate() { 27002: pos_ = tombstones_->end(); 27002: seq_pos_ = tombstones_->seq_end(); 27002: pinned_pos_ = tombstones_->end(); 27002: pinned_seq_pos_ = tombstones_->seq_end(); 27002: } 27002: 27002: RangeTombstone Tombstone() const { 27002: 27002: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 3 4 27002: (static_cast ( 27002: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 27002: Valid() 27002: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 27002: "Valid()" 27002: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 3 4 27002: , "./db/range_tombstone_fragmenter.h", 194, __extension__ __PRETTY_FUNCTION__)) 27002: # 194 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 27002: ; 27002: if (icmp_->user_comparator()->timestamp_size()) { 27002: return RangeTombstone(start_key(), end_key(), seq(), timestamp()); 27002: } 27002: return RangeTombstone(start_key(), end_key(), seq()); 27002: } 27002: 27002: 27002: 27002: Slice start_key() const { return pos_->start_key; } 27002: Slice end_key() const { return pos_->end_key; } 27002: SequenceNumber seq() const { return *seq_pos_; } 27002: Slice timestamp() const { 27002: 27002: return *tombstones_->ts_iter(seq_pos_ - tombstones_->seq_begin()); 27002: } 27002: 27002: 27002: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 27002: ts_upper_bound_ = ts_upper_bound; 27002: } 27002: 27002: ParsedInternalKey parsed_start_key() const { 27002: return ParsedInternalKey(pos_->start_key, kMaxSequenceNumber, 27002: kTypeRangeDeletion); 27002: } 27002: ParsedInternalKey parsed_end_key() const { 27002: return ParsedInternalKey(pos_->end_key, kMaxSequenceNumber, 27002: kTypeRangeDeletion); 27002: } 27002: 27002: 27002: 27002: 27002: SequenceNumber MaxCoveringTombstoneSeqnum(const Slice& user_key); 27002: # 239 "/build/reproducible-path/rocksdb-7.8.3/db/range_tombstone_fragmenter.h" 27002: std::map> 27002: SplitBySnapshot(const std::vector& snapshots); 27002: 27002: SequenceNumber upper_bound() const { return upper_bound_; } 27002: SequenceNumber lower_bound() const { return lower_bound_; } 27002: 27002: uint64_t num_unfragmented_tombstones() const { 27002: return tombstones_->num_unfragmented_tombstones(); 27002: } 27002: uint64_t total_tombstone_payload_bytes() const { 27002: return tombstones_->total_tombstone_payload_bytes(); 27002: } 27002: 27002: private: 27002: using RangeTombstoneStack = FragmentedRangeTombstoneList::RangeTombstoneStack; 27002: 27002: struct RangeTombstoneStackStartComparator { 27002: explicit RangeTombstoneStackStartComparator(const Comparator* c) : cmp(c) {} 27002: 27002: bool operator()(const RangeTombstoneStack& a, 27002: const RangeTombstoneStack& b) const { 27002: return cmp->CompareWithoutTimestamp(a.start_key, b.start_key) < 0; 27002: } 27002: 27002: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 27002: return cmp->CompareWithoutTimestamp(a.start_key, b) < 0; 27002: } 27002: 27002: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 27002: return cmp->CompareWithoutTimestamp(a, b.start_key) < 0; 27002: } 27002: 27002: const Comparator* cmp; 27002: }; 27002: 27002: struct RangeTombstoneStackEndComparator { 27002: explicit RangeTombstoneStackEndComparator(const Comparator* c) : cmp(c) {} 27002: 27002: bool operator()(const RangeTombstoneStack& a, 27002: const RangeTombstoneStack& b) const { 27002: return cmp->CompareWithoutTimestamp(a.end_key, b.end_key) < 0; 27002: } 27002: 27002: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 27002: return cmp->CompareWithoutTimestamp(a.end_key, b) < 0; 27002: } 27002: 27002: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 27002: return cmp->CompareWithoutTimestamp(a, b.end_key) < 0; 27002: } 27002: 27002: const Comparator* cmp; 27002: }; 27002: 27002: void MaybePinKey() const { 27002: if (pos_ != tombstones_->end() && seq_pos_ != tombstones_->seq_end() && 27002: (pinned_pos_ != pos_ || pinned_seq_pos_ != seq_pos_)) { 27002: current_start_key_.Set(pos_->start_key, *seq_pos_, kTypeRangeDeletion); 27002: pinned_pos_ = pos_; 27002: pinned_seq_pos_ = seq_pos_; 27002: } 27002: } 27002: 27002: void SeekToCoveringTombstone(const Slice& key); 27002: void SeekForPrevToCoveringTombstone(const Slice& key); 27002: void ScanForwardToVisibleTombstone(); 27002: void ScanBackwardToVisibleTombstone(); 27002: bool ValidPos() const { 27002: return Valid() && seq_pos_ != tombstones_->seq_iter(pos_->seq_end_idx); 27002: } 27002: 27002: const RangeTombstoneStackStartComparator tombstone_start_cmp_; 27002: const RangeTombstoneStackEndComparator tombstone_end_cmp_; 27002: const InternalKeyComparator* icmp_; 27002: const Comparator* ucmp_; 27002: std::shared_ptr tombstones_ref_; 27002: std::shared_ptr tombstones_cache_ref_; 27002: const FragmentedRangeTombstoneList* tombstones_; 27002: SequenceNumber upper_bound_; 27002: SequenceNumber lower_bound_; 27002: 27002: const Slice* ts_upper_bound_; 27002: std::vector::const_iterator pos_; 27002: std::vector::const_iterator seq_pos_; 27002: mutable std::vector::const_iterator pinned_pos_; 27002: mutable std::vector::const_iterator pinned_seq_pos_; 27002: mutable InternalKey current_start_key_; 27002: 27002: 27002: 27002: 27002: 27002: void SetMaxVisibleSeqAndTimestamp() { 27002: seq_pos_ = std::lower_bound(tombstones_->seq_iter(pos_->seq_start_idx), 27002: tombstones_->seq_iter(pos_->seq_end_idx), 27002: upper_bound_, std::greater()); 27002: if (ts_upper_bound_ && !ts_upper_bound_->empty()) { 27002: auto ts_pos = std::lower_bound( 27002: tombstones_->ts_iter(pos_->seq_start_idx), 27002: tombstones_->ts_iter(pos_->seq_end_idx), *ts_upper_bound_, 27002: [this](const Slice& s1, const Slice& s2) { 27002: return ucmp_->CompareTimestamp(s1, s2) > 0; 27002: }); 27002: auto ts_idx = ts_pos - tombstones_->ts_iter(pos_->seq_start_idx); 27002: auto seq_idx = seq_pos_ - tombstones_->seq_iter(pos_->seq_start_idx); 27002: if (seq_idx < ts_idx) { 27002: 27002: 27002: seq_pos_ = tombstones_->seq_iter(pos_->seq_start_idx + ts_idx); 27002: } 27002: } 27002: } 27002: }; 27002: 27002: } 27002: # 22 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class ReadCallback { 27002: public: 27002: explicit ReadCallback(SequenceNumber last_visible_seq) 27002: : max_visible_seq_(last_visible_seq) {} 27002: ReadCallback(SequenceNumber last_visible_seq, SequenceNumber min_uncommitted) 27002: : max_visible_seq_(last_visible_seq), min_uncommitted_(min_uncommitted) {} 27002: 27002: virtual ~ReadCallback() {} 27002: 27002: 27002: 27002: virtual bool IsVisibleFullCheck(SequenceNumber seq) = 0; 27002: 27002: inline bool IsVisible(SequenceNumber seq) { 27002: 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: (static_cast ( 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: min_uncommitted_ > 0 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: "min_uncommitted_ > 0" 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: , "./db/read_callback.h", 27, __extension__ __PRETTY_FUNCTION__)) 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: ; 27002: 27002: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: (static_cast ( 27002: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: min_uncommitted_ >= kMinUnCommittedSeq 27002: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: "min_uncommitted_ >= kMinUnCommittedSeq" 27002: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: , "./db/read_callback.h", 28, __extension__ __PRETTY_FUNCTION__)) 27002: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: ; 27002: if (seq < min_uncommitted_) { 27002: 27002: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: (static_cast ( 27002: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: seq <= max_visible_seq_ 27002: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: "seq <= max_visible_seq_" 27002: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: , "./db/read_callback.h", 30, __extension__ __PRETTY_FUNCTION__)) 27002: # 30 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: ; 27002: return true; 27002: } else if (max_visible_seq_ < seq) { 27002: 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: (static_cast ( 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: seq != 0 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: "seq != 0" 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: , "./db/read_callback.h", 33, __extension__ __PRETTY_FUNCTION__)) 27002: # 33 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: ; 27002: return false; 27002: } else { 27002: 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: (static_cast ( 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: seq != 0 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: "seq != 0" 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 3 4 27002: , "./db/read_callback.h", 36, __extension__ __PRETTY_FUNCTION__)) 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/db/read_callback.h" 27002: ; 27002: return IsVisibleFullCheck(seq); 27002: } 27002: } 27002: 27002: inline SequenceNumber max_visible_seq() { return max_visible_seq_; } 27002: 27002: 27002: virtual void Refresh(SequenceNumber seq) { max_visible_seq_ = seq; } 27002: 27002: protected: 27002: 27002: 27002: SequenceNumber max_visible_seq_ = kMaxSequenceNumber; 27002: 27002: const SequenceNumber min_uncommitted_ = kMinUnCommittedSeq; 27002: }; 27002: 27002: } 27002: # 23 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cassert" 1 3 27002: # 41 "/usr/include/c++/12/cassert" 3 27002: 27002: # 42 "/usr/include/c++/12/cassert" 3 27002: 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 45 "/usr/include/c++/12/cassert" 2 3 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 2 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_constants.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: constexpr uint64_t kInvalidBlobFileNumber = 0; 27002: 27002: } 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class JSONWriter; 27002: class Slice; 27002: class Status; 27002: 27002: class BlobFileAddition { 27002: public: 27002: BlobFileAddition() = default; 27002: 27002: BlobFileAddition(uint64_t blob_file_number, uint64_t total_blob_count, 27002: uint64_t total_blob_bytes, std::string checksum_method, 27002: std::string checksum_value) 27002: : blob_file_number_(blob_file_number), 27002: total_blob_count_(total_blob_count), 27002: total_blob_bytes_(total_blob_bytes), 27002: checksum_method_(std::move(checksum_method)), 27002: checksum_value_(std::move(checksum_value)) { 27002: 27002: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 3 4 27002: (static_cast ( 27002: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 27002: checksum_method_.empty() == checksum_value_.empty() 27002: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 27002: "checksum_method_.empty() == checksum_value_.empty()" 27002: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 3 4 27002: , "./db/blob/blob_file_addition.h", 34, __extension__ __PRETTY_FUNCTION__)) 27002: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_addition.h" 27002: ; 27002: } 27002: 27002: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 27002: uint64_t GetTotalBlobCount() const { return total_blob_count_; } 27002: uint64_t GetTotalBlobBytes() const { return total_blob_bytes_; } 27002: const std::string& GetChecksumMethod() const { return checksum_method_; } 27002: const std::string& GetChecksumValue() const { return checksum_value_; } 27002: 27002: void EncodeTo(std::string* output) const; 27002: Status DecodeFrom(Slice* input); 27002: 27002: std::string DebugString() const; 27002: std::string DebugJSON() const; 27002: 27002: private: 27002: enum CustomFieldTags : uint32_t; 27002: 27002: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 27002: uint64_t total_blob_count_ = 0; 27002: uint64_t total_blob_bytes_ = 0; 27002: std::string checksum_method_; 27002: std::string checksum_value_; 27002: }; 27002: 27002: bool operator==(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 27002: bool operator!=(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 27002: 27002: std::ostream& operator<<(std::ostream& os, 27002: const BlobFileAddition& blob_file_addition); 27002: JSONWriter& operator<<(JSONWriter& jw, 27002: const BlobFileAddition& blob_file_addition); 27002: 27002: } 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_garbage.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/db/blob/blob_file_garbage.h" 27002: namespace rocksdb { 27002: 27002: class JSONWriter; 27002: class Slice; 27002: class Status; 27002: 27002: class BlobFileGarbage { 27002: public: 27002: BlobFileGarbage() = default; 27002: 27002: BlobFileGarbage(uint64_t blob_file_number, uint64_t garbage_blob_count, 27002: uint64_t garbage_blob_bytes) 27002: : blob_file_number_(blob_file_number), 27002: garbage_blob_count_(garbage_blob_count), 27002: garbage_blob_bytes_(garbage_blob_bytes) {} 27002: 27002: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 27002: uint64_t GetGarbageBlobCount() const { return garbage_blob_count_; } 27002: uint64_t GetGarbageBlobBytes() const { return garbage_blob_bytes_; } 27002: 27002: void EncodeTo(std::string* output) const; 27002: Status DecodeFrom(Slice* input); 27002: 27002: std::string DebugString() const; 27002: std::string DebugJSON() const; 27002: 27002: private: 27002: enum CustomFieldTags : uint32_t; 27002: 27002: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 27002: uint64_t garbage_blob_count_ = 0; 27002: uint64_t garbage_blob_bytes_ = 0; 27002: }; 27002: 27002: bool operator==(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 27002: bool operator!=(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 27002: 27002: std::ostream& operator<<(std::ostream& os, 27002: const BlobFileGarbage& blob_file_garbage); 27002: JSONWriter& operator<<(JSONWriter& jw, 27002: const BlobFileGarbage& blob_file_garbage); 27002: 27002: } 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/wal_edit.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/wal_edit.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/logging/log_buffer.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/ctime" 1 3 27002: # 39 "/usr/include/c++/12/ctime" 3 27002: 27002: # 40 "/usr/include/c++/12/ctime" 3 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/logging/log_buffer.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 1 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 1 3 4 27002: # 25 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 27002: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" 1 3 4 27002: # 26 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 27002: # 41 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 1 3 4 27002: # 29 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-map-flags-generic.h" 1 3 4 27002: # 30 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 1 3 4 27002: # 119 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 3 4 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 1 3 4 27002: # 47 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 27002: 27002: # 47 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 27002: extern "C" { 27002: 27002: 27002: 27002: int memfd_create (const char *__name, unsigned int __flags) noexcept (true); 27002: 27002: 27002: 27002: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); 27002: 27002: 27002: 27002: int pkey_set (int __key, unsigned int __access_rights) noexcept (true); 27002: 27002: 27002: 27002: int pkey_get (int __key) noexcept (true); 27002: 27002: 27002: 27002: int pkey_free (int __key) noexcept (true); 27002: 27002: 27002: 27002: int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); 27002: 27002: } 27002: # 120 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 2 3 4 27002: # 33 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 27002: # 42 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 27002: 27002: 27002: 27002: 27002: extern "C" { 27002: # 57 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 27002: extern void *mmap (void *__addr, size_t __len, int __prot, 27002: int __flags, int __fd, __off_t __offset) noexcept (true); 27002: # 70 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 27002: extern void *mmap64 (void *__addr, size_t __len, int __prot, 27002: int __flags, int __fd, __off64_t __offset) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int munmap (void *__addr, size_t __len) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int msync (void *__addr, size_t __len, int __flags); 27002: 27002: 27002: 27002: 27002: extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); 27002: 27002: 27002: 27002: extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int mlock (const void *__addr, size_t __len) noexcept (true); 27002: 27002: 27002: extern int munlock (const void *__addr, size_t __len) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int mlockall (int __flags) noexcept (true); 27002: 27002: 27002: 27002: extern int munlockall (void) noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: extern int mincore (void *__start, size_t __len, unsigned char *__vec) 27002: noexcept (true); 27002: # 133 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 27002: extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 27002: int __flags, ...) noexcept (true); 27002: 27002: 27002: 27002: extern int remap_file_pages (void *__start, size_t __size, int __prot, 27002: size_t __pgoff, int __flags) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int shm_open (const char *__name, int __oflag, mode_t __mode); 27002: 27002: 27002: extern int shm_unlink (const char *__name); 27002: 27002: 27002: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 1 3 4 27002: # 24 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 3 4 27002: struct iovec; 27002: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, 27002: size_t __count, int __advice, 27002: unsigned __flags) 27002: noexcept (true); 27002: 27002: extern int process_mrelease (int pidfd, unsigned int flags) noexcept (true); 27002: # 151 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 27002: 27002: } 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 2 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 2 27002: 27002: # 1 "/usr/include/c++/12/cerrno" 1 3 27002: # 39 "/usr/include/c++/12/cerrno" 3 27002: 27002: # 40 "/usr/include/c++/12/cerrno" 3 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 2 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/memory/allocator.h" 1 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/memory/allocator.h" 27002: 27002: # 1 "/usr/include/c++/12/cerrno" 1 3 27002: # 39 "/usr/include/c++/12/cerrno" 3 27002: 27002: # 40 "/usr/include/c++/12/cerrno" 3 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/memory/allocator.h" 2 27002: 27002: 27002: 27002: 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/memory/allocator.h" 27002: namespace rocksdb { 27002: 27002: class Logger; 27002: 27002: class Allocator { 27002: public: 27002: virtual ~Allocator() {} 27002: 27002: virtual char* Allocate(size_t bytes) = 0; 27002: virtual char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 27002: Logger* logger = nullptr) = 0; 27002: 27002: virtual size_t BlockSize() const = 0; 27002: }; 27002: 27002: class AllocTracker { 27002: public: 27002: explicit AllocTracker(WriteBufferManager* write_buffer_manager); 27002: 27002: AllocTracker(const AllocTracker&) = delete; 27002: void operator=(const AllocTracker&) = delete; 27002: 27002: ~AllocTracker(); 27002: void Allocate(size_t bytes); 27002: 27002: 27002: void DoneAllocating(); 27002: 27002: void FreeMem(); 27002: 27002: bool is_freed() const { return write_buffer_manager_ == nullptr || freed_; } 27002: 27002: private: 27002: WriteBufferManager* write_buffer_manager_; 27002: std::atomic bytes_allocated_; 27002: bool done_allocating_; 27002: bool freed_; 27002: }; 27002: 27002: } 27002: # 24 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class Arena : public Allocator { 27002: public: 27002: 27002: Arena(const Arena&) = delete; 27002: void operator=(const Arena&) = delete; 27002: 27002: static const size_t kInlineSize = 2048; 27002: static const size_t kMinBlockSize; 27002: static const size_t kMaxBlockSize; 27002: 27002: 27002: 27002: 27002: explicit Arena(size_t block_size = kMinBlockSize, 27002: AllocTracker* tracker = nullptr, size_t huge_page_size = 0); 27002: ~Arena(); 27002: 27002: char* Allocate(size_t bytes) override; 27002: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 27002: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 27002: Logger* logger = nullptr) override; 27002: 27002: 27002: 27002: 27002: size_t ApproximateMemoryUsage() const { 27002: return blocks_memory_ + blocks_.capacity() * sizeof(char*) - 27002: alloc_bytes_remaining_; 27002: } 27002: 27002: size_t MemoryAllocatedBytes() const { return blocks_memory_; } 27002: 27002: size_t AllocatedAndUnused() const { return alloc_bytes_remaining_; } 27002: 27002: 27002: 27002: size_t IrregularBlockNum() const { return irregular_block_num; } 27002: 27002: size_t BlockSize() const override { return kBlockSize; } 27002: 27002: bool IsInInlineBlock() const { 27002: return blocks_.empty() && huge_blocks_.empty(); 27002: } 27002: 27002: private: 27002: char inline_block_[kInlineSize] __attribute__((__aligned__(alignof(max_align_t)))); 27002: 27002: const size_t kBlockSize; 27002: 27002: using Blocks = std::vector; 27002: Blocks blocks_; 27002: 27002: struct MmapInfo { 27002: void* addr_; 27002: size_t length_; 27002: 27002: MmapInfo(void* addr, size_t length) : addr_(addr), length_(length) {} 27002: }; 27002: std::vector huge_blocks_; 27002: size_t irregular_block_num = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: char* unaligned_alloc_ptr_ = nullptr; 27002: char* aligned_alloc_ptr_ = nullptr; 27002: 27002: size_t alloc_bytes_remaining_ = 0; 27002: 27002: 27002: size_t hugetlb_size_ = 0; 27002: 27002: char* AllocateFromHugePage(size_t bytes); 27002: char* AllocateFallback(size_t bytes, bool aligned); 27002: char* AllocateNewBlock(size_t block_bytes); 27002: 27002: 27002: size_t blocks_memory_ = 0; 27002: AllocTracker* tracker_; 27002: }; 27002: 27002: inline char* Arena::Allocate(size_t bytes) { 27002: 27002: 27002: 27002: 27002: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 3 4 27002: (static_cast ( 27002: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 27002: bytes > 0 27002: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 27002: "bytes > 0" 27002: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 3 4 27002: , "./memory/arena.h", 127, __extension__ __PRETTY_FUNCTION__)) 27002: # 127 "/build/reproducible-path/rocksdb-7.8.3/memory/arena.h" 27002: ; 27002: if (bytes <= alloc_bytes_remaining_) { 27002: unaligned_alloc_ptr_ -= bytes; 27002: alloc_bytes_remaining_ -= bytes; 27002: return unaligned_alloc_ptr_; 27002: } 27002: return AllocateFallback(bytes, false ); 27002: } 27002: 27002: 27002: 27002: 27002: extern size_t OptimizeBlockSize(size_t block_size); 27002: 27002: } 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/logging/log_buffer.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/port/sys_time.h" 1 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/port/sys_time.h" 27002: 27002: # 43 "/build/reproducible-path/rocksdb-7.8.3/port/sys_time.h" 27002: # 1 "/usr/include/arm-linux-gnueabihf/sys/time.h" 1 3 4 27002: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 27002: 27002: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 27002: extern "C" { 27002: # 52 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 27002: struct timezone 27002: { 27002: int tz_minuteswest; 27002: int tz_dsttime; 27002: }; 27002: # 67 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 27002: extern int gettimeofday (struct timeval *__restrict __tv, 27002: void *__restrict __tz) noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: # 86 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 27002: extern int settimeofday (const struct timeval *__tv, 27002: const struct timezone *__tz) 27002: noexcept (true); 27002: 27002: 27002: 27002: 27002: 27002: extern int adjtime (const struct timeval *__delta, 27002: struct timeval *__olddelta) noexcept (true); 27002: # 114 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 27002: enum __itimer_which 27002: { 27002: 27002: ITIMER_REAL = 0, 27002: 27002: 27002: ITIMER_VIRTUAL = 1, 27002: 27002: 27002: 27002: ITIMER_PROF = 2 27002: 27002: }; 27002: 27002: 27002: 27002: struct itimerval 27002: { 27002: 27002: struct timeval it_interval; 27002: 27002: struct timeval it_value; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: typedef int __itimer_which_t; 27002: 27002: 27002: 27002: 27002: 27002: extern int getitimer (__itimer_which_t __which, 27002: struct itimerval *__value) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int setitimer (__itimer_which_t __which, 27002: const struct itimerval *__restrict __new, 27002: struct itimerval *__restrict __old) noexcept (true); 27002: 27002: 27002: 27002: 27002: extern int utimes (const char *__file, const struct timeval __tvp[2]) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: # 189 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 27002: extern int lutimes (const char *__file, const struct timeval __tvp[2]) 27002: noexcept (true) __attribute__ ((__nonnull__ (1))); 27002: 27002: 27002: extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true); 27002: # 214 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 27002: extern int futimesat (int __fd, const char *__file, 27002: const struct timeval __tvp[2]) noexcept (true); 27002: # 258 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 27002: } 27002: # 44 "/build/reproducible-path/rocksdb-7.8.3/port/sys_time.h" 2 27002: 27002: 27002: # 45 "/build/reproducible-path/rocksdb-7.8.3/port/sys_time.h" 27002: namespace rocksdb { 27002: 27002: namespace port { 27002: 27002: using TimeVal = struct timeval; 27002: 27002: inline void GetTimeOfDay(TimeVal* tv, struct timezone* tz) { 27002: gettimeofday(tv, tz); 27002: } 27002: 27002: inline struct tm* LocalTimeR(const time_t* timep, struct tm* result) { 27002: return localtime_r(timep, result); 27002: } 27002: 27002: } 27002: 27002: } 27002: # 11 "/build/reproducible-path/rocksdb-7.8.3/logging/log_buffer.h" 2 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class Logger; 27002: 27002: 27002: class LogBuffer { 27002: public: 27002: 27002: 27002: LogBuffer(const InfoLogLevel log_level, Logger* info_log); 27002: 27002: 27002: 27002: void AddLogToBuffer(size_t max_log_size, const char* format, va_list ap); 27002: 27002: size_t IsEmpty() const { return logs_.empty(); } 27002: 27002: 27002: void FlushBufferToLog(); 27002: static const size_t kDefaultMaxLogSize = 512; 27002: 27002: private: 27002: 27002: struct BufferedLog { 27002: port::TimeVal now_tv; 27002: char message[1]; 27002: }; 27002: 27002: const InfoLogLevel log_level_; 27002: Logger* info_log_; 27002: Arena arena_; 27002: autovector logs_; 27002: }; 27002: 27002: 27002: 27002: 27002: extern void LogToBuffer(LogBuffer* log_buffer, size_t max_log_size, 27002: const char* format, ...); 27002: 27002: extern void LogToBuffer(LogBuffer* log_buffer, const char* format, ...); 27002: 27002: } 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class JSONWriter { 27002: public: 27002: JSONWriter() : state_(kExpectKey), first_element_(true), in_array_(false) { 27002: stream_ << "{"; 27002: } 27002: 27002: void AddKey(const std::string& key) { 27002: 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: (static_cast ( 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: state_ == kExpectKey 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: "state_ == kExpectKey" 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: , "./logging/event_logger.h", 25, __extension__ __PRETTY_FUNCTION__)) 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: ; 27002: if (!first_element_) { 27002: stream_ << ", "; 27002: } 27002: stream_ << "\"" << key << "\": "; 27002: state_ = kExpectValue; 27002: first_element_ = false; 27002: } 27002: 27002: void AddValue(const char* value) { 27002: 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: (static_cast ( 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: state_ == kExpectValue || state_ == kInArray 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: "state_ == kExpectValue || state_ == kInArray" 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: , "./logging/event_logger.h", 35, __extension__ __PRETTY_FUNCTION__)) 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: ; 27002: if (state_ == kInArray && !first_element_) { 27002: stream_ << ", "; 27002: } 27002: stream_ << "\"" << value << "\""; 27002: if (state_ != kInArray) { 27002: state_ = kExpectKey; 27002: } 27002: first_element_ = false; 27002: } 27002: 27002: template 27002: void AddValue(const T& value) { 27002: 27002: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: (static_cast ( 27002: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: state_ == kExpectValue || state_ == kInArray 27002: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: "state_ == kExpectValue || state_ == kInArray" 27002: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: , "./logging/event_logger.h", 48, __extension__ __PRETTY_FUNCTION__)) 27002: # 48 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: ; 27002: if (state_ == kInArray && !first_element_) { 27002: stream_ << ", "; 27002: } 27002: stream_ << value; 27002: if (state_ != kInArray) { 27002: state_ = kExpectKey; 27002: } 27002: first_element_ = false; 27002: } 27002: 27002: void StartArray() { 27002: 27002: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: (static_cast ( 27002: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: state_ == kExpectValue 27002: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: "state_ == kExpectValue" 27002: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: , "./logging/event_logger.h", 60, __extension__ __PRETTY_FUNCTION__)) 27002: # 60 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: ; 27002: state_ = kInArray; 27002: in_array_ = true; 27002: stream_ << "["; 27002: first_element_ = true; 27002: } 27002: 27002: void EndArray() { 27002: 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: (static_cast ( 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: state_ == kInArray 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: "state_ == kInArray" 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: , "./logging/event_logger.h", 68, __extension__ __PRETTY_FUNCTION__)) 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: ; 27002: state_ = kExpectKey; 27002: in_array_ = false; 27002: stream_ << "]"; 27002: first_element_ = false; 27002: } 27002: 27002: void StartObject() { 27002: 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: (static_cast ( 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: state_ == kExpectValue 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: "state_ == kExpectValue" 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: , "./logging/event_logger.h", 76, __extension__ __PRETTY_FUNCTION__)) 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: ; 27002: state_ = kExpectKey; 27002: stream_ << "{"; 27002: first_element_ = true; 27002: } 27002: 27002: void EndObject() { 27002: 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: (static_cast ( 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: state_ == kExpectKey 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: "state_ == kExpectKey" 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: , "./logging/event_logger.h", 83, __extension__ __PRETTY_FUNCTION__)) 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: ; 27002: stream_ << "}"; 27002: first_element_ = false; 27002: } 27002: 27002: void StartArrayedObject() { 27002: 27002: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: (static_cast ( 27002: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: state_ == kInArray && in_array_ 27002: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: "state_ == kInArray && in_array_" 27002: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: , "./logging/event_logger.h", 89, __extension__ __PRETTY_FUNCTION__)) 27002: # 89 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: ; 27002: state_ = kExpectValue; 27002: if (!first_element_) { 27002: stream_ << ", "; 27002: } 27002: StartObject(); 27002: } 27002: 27002: void EndArrayedObject() { 27002: 27002: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: (static_cast ( 27002: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: in_array_ 27002: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: "in_array_" 27002: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: , "./logging/event_logger.h", 98, __extension__ __PRETTY_FUNCTION__)) 27002: # 98 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: ; 27002: EndObject(); 27002: state_ = kInArray; 27002: } 27002: 27002: std::string Get() const { return stream_.str(); } 27002: 27002: JSONWriter& operator<<(const char* val) { 27002: if (state_ == kExpectKey) { 27002: AddKey(val); 27002: } else { 27002: AddValue(val); 27002: } 27002: return *this; 27002: } 27002: 27002: JSONWriter& operator<<(const std::string& val) { 27002: return *this << val.c_str(); 27002: } 27002: 27002: template 27002: JSONWriter& operator<<(const T& val) { 27002: 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: (static_cast ( 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: state_ != kExpectKey 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: "state_ != kExpectKey" 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 3 4 27002: , "./logging/event_logger.h", 120, __extension__ __PRETTY_FUNCTION__)) 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/logging/event_logger.h" 27002: ; 27002: AddValue(val); 27002: return *this; 27002: } 27002: 27002: private: 27002: enum JSONWriterState { 27002: kExpectKey, 27002: kExpectValue, 27002: kInArray, 27002: kInArrayedObject, 27002: }; 27002: JSONWriterState state_; 27002: bool first_element_; 27002: bool in_array_; 27002: std::ostringstream stream_; 27002: }; 27002: 27002: class EventLoggerStream { 27002: public: 27002: template 27002: EventLoggerStream& operator<<(const T& val) { 27002: MakeStream(); 27002: *json_writer_ << val; 27002: return *this; 27002: } 27002: 27002: void StartArray() { json_writer_->StartArray(); } 27002: void EndArray() { json_writer_->EndArray(); } 27002: void StartObject() { json_writer_->StartObject(); } 27002: void EndObject() { json_writer_->EndObject(); } 27002: 27002: ~EventLoggerStream(); 27002: 27002: private: 27002: void MakeStream() { 27002: if (!json_writer_) { 27002: json_writer_ = new JSONWriter(); 27002: *this << "time_micros" 27002: << std::chrono::duration_cast( 27002: std::chrono::system_clock::now().time_since_epoch()).count(); 27002: } 27002: } 27002: friend class EventLogger; 27002: explicit EventLoggerStream(Logger* logger); 27002: explicit EventLoggerStream(LogBuffer* log_buffer, const size_t max_log_size); 27002: 27002: Logger* const logger_; 27002: LogBuffer* const log_buffer_; 27002: const size_t max_log_size_; 27002: 27002: JSONWriter* json_writer_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: class EventLogger { 27002: public: 27002: static const char* Prefix() { 27002: return "EVENT_LOG_v1"; 27002: } 27002: 27002: explicit EventLogger(Logger* logger) : logger_(logger) {} 27002: EventLoggerStream Log() { return EventLoggerStream(logger_); } 27002: EventLoggerStream LogToBuffer(LogBuffer* log_buffer) { 27002: return EventLoggerStream(log_buffer, LogBuffer::kDefaultMaxLogSize); 27002: } 27002: EventLoggerStream LogToBuffer(LogBuffer* log_buffer, 27002: const size_t max_log_size) { 27002: return EventLoggerStream(log_buffer, max_log_size); 27002: } 27002: void Log(const JSONWriter& jwriter); 27002: static void Log(Logger* logger, const JSONWriter& jwriter); 27002: static void LogToBuffer( 27002: LogBuffer* log_buffer, const JSONWriter& jwriter, 27002: const size_t max_log_size = LogBuffer::kDefaultMaxLogSize); 27002: 27002: private: 27002: Logger* logger_; 27002: }; 27002: 27002: } 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/db/wal_edit.h" 2 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class JSONWriter; 27002: class Slice; 27002: class Status; 27002: 27002: using WalNumber = uint64_t; 27002: 27002: 27002: class WalMetadata { 27002: public: 27002: WalMetadata() = default; 27002: 27002: explicit WalMetadata(uint64_t synced_size_bytes) 27002: : synced_size_bytes_(synced_size_bytes) {} 27002: 27002: bool HasSyncedSize() const { return synced_size_bytes_ != kUnknownWalSize; } 27002: 27002: void SetSyncedSizeInBytes(uint64_t bytes) { synced_size_bytes_ = bytes; } 27002: 27002: uint64_t GetSyncedSizeInBytes() const { return synced_size_bytes_; } 27002: 27002: private: 27002: friend bool operator==(const WalMetadata& lhs, const WalMetadata& rhs); 27002: friend bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs); 27002: 27002: 27002: constexpr static uint64_t kUnknownWalSize = 27002: std::numeric_limits::max(); 27002: 27002: 27002: uint64_t synced_size_bytes_ = kUnknownWalSize; 27002: }; 27002: 27002: inline bool operator==(const WalMetadata& lhs, const WalMetadata& rhs) { 27002: return lhs.synced_size_bytes_ == rhs.synced_size_bytes_; 27002: } 27002: 27002: inline bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs) { 27002: return !(lhs == rhs); 27002: } 27002: 27002: 27002: enum class WalAdditionTag : uint32_t { 27002: 27002: kTerminate = 1, 27002: 27002: kSyncedSize = 2, 27002: 27002: }; 27002: 27002: 27002: class WalAddition { 27002: public: 27002: WalAddition() : number_(0), metadata_() {} 27002: 27002: explicit WalAddition(WalNumber number) : number_(number), metadata_() {} 27002: 27002: WalAddition(WalNumber number, WalMetadata meta) 27002: : number_(number), metadata_(std::move(meta)) {} 27002: 27002: WalNumber GetLogNumber() const { return number_; } 27002: 27002: const WalMetadata& GetMetadata() const { return metadata_; } 27002: 27002: void EncodeTo(std::string* dst) const; 27002: 27002: Status DecodeFrom(Slice* src); 27002: 27002: std::string DebugString() const; 27002: 27002: private: 27002: WalNumber number_; 27002: WalMetadata metadata_; 27002: }; 27002: 27002: std::ostream& operator<<(std::ostream& os, const WalAddition& wal); 27002: JSONWriter& operator<<(JSONWriter& jw, const WalAddition& wal); 27002: 27002: using WalAdditions = std::vector; 27002: 27002: 27002: class WalDeletion { 27002: public: 27002: WalDeletion() : number_(kEmpty) {} 27002: 27002: explicit WalDeletion(WalNumber number) : number_(number) {} 27002: 27002: WalNumber GetLogNumber() const { return number_; } 27002: 27002: void EncodeTo(std::string* dst) const; 27002: 27002: Status DecodeFrom(Slice* src); 27002: 27002: std::string DebugString() const; 27002: 27002: bool IsEmpty() const { return number_ == kEmpty; } 27002: 27002: void Reset() { number_ = kEmpty; } 27002: 27002: private: 27002: static constexpr WalNumber kEmpty = 0; 27002: 27002: WalNumber number_; 27002: }; 27002: 27002: std::ostream& operator<<(std::ostream& os, const WalDeletion& wal); 27002: JSONWriter& operator<<(JSONWriter& jw, const WalDeletion& wal); 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/db/wal_edit.h" 27002: class WalSet { 27002: public: 27002: 27002: 27002: 27002: 27002: 27002: Status AddWal(const WalAddition& wal); 27002: Status AddWals(const WalAdditions& wals); 27002: 27002: 27002: 27002: Status DeleteWalsBefore(WalNumber wal); 27002: 27002: 27002: void Reset(); 27002: 27002: 27002: WalNumber GetMinWalNumberToKeep() const { return min_wal_number_to_keep_; } 27002: 27002: const std::map& GetWals() const { return wals_; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: Status CheckWals( 27002: Env* env, 27002: const std::unordered_map& logs_on_disk) const; 27002: 27002: private: 27002: std::map wals_; 27002: 27002: 27002: WalNumber min_wal_number_to_keep_ = 0; 27002: }; 27002: 27002: } 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 2 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/table_reader_caller.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: enum TableReaderCaller : char { 27002: kUserGet = 1, 27002: kUserMultiGet = 2, 27002: kUserIterator = 3, 27002: kUserApproximateSize = 4, 27002: kUserVerifyChecksum = 5, 27002: kSSTDumpTool = 6, 27002: kExternalSSTIngestion = 7, 27002: kRepair = 8, 27002: kPrefetch = 9, 27002: kCompaction = 10, 27002: 27002: 27002: kCompactionRefill = 11, 27002: 27002: 27002: kFlush = 12, 27002: 27002: kSSTFileReader = 13, 27002: 27002: 27002: kUncategorized = 14, 27002: 27002: kMaxBlockCacheLookupCaller 27002: }; 27002: } 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: class BlobFetcher; 27002: class Comparator; 27002: class Logger; 27002: class MergeContext; 27002: class MergeOperator; 27002: class PinnableWideColumns; 27002: class PinnedIteratorsManager; 27002: class Statistics; 27002: class SystemClock; 27002: struct ParsedInternalKey; 27002: 27002: 27002: 27002: 27002: struct GetContextStats { 27002: uint64_t num_cache_hit = 0; 27002: uint64_t num_cache_index_hit = 0; 27002: uint64_t num_cache_data_hit = 0; 27002: uint64_t num_cache_filter_hit = 0; 27002: uint64_t num_cache_compression_dict_hit = 0; 27002: uint64_t num_cache_index_miss = 0; 27002: uint64_t num_cache_filter_miss = 0; 27002: uint64_t num_cache_data_miss = 0; 27002: uint64_t num_cache_compression_dict_miss = 0; 27002: uint64_t num_cache_bytes_read = 0; 27002: uint64_t num_cache_miss = 0; 27002: uint64_t num_cache_add = 0; 27002: uint64_t num_cache_add_redundant = 0; 27002: uint64_t num_cache_bytes_write = 0; 27002: uint64_t num_cache_index_add = 0; 27002: uint64_t num_cache_index_add_redundant = 0; 27002: uint64_t num_cache_index_bytes_insert = 0; 27002: uint64_t num_cache_data_add = 0; 27002: uint64_t num_cache_data_add_redundant = 0; 27002: uint64_t num_cache_data_bytes_insert = 0; 27002: uint64_t num_cache_filter_add = 0; 27002: uint64_t num_cache_filter_add_redundant = 0; 27002: uint64_t num_cache_filter_bytes_insert = 0; 27002: uint64_t num_cache_compression_dict_add = 0; 27002: uint64_t num_cache_compression_dict_add_redundant = 0; 27002: uint64_t num_cache_compression_dict_bytes_insert = 0; 27002: 27002: uint64_t num_filter_read = 0; 27002: uint64_t num_index_read = 0; 27002: uint64_t num_sst_read = 0; 27002: }; 27002: # 67 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 27002: class GetContext { 27002: public: 27002: 27002: 27002: enum GetState { 27002: kNotFound, 27002: kFound, 27002: kDeleted, 27002: kCorrupt, 27002: kMerge, 27002: kUnexpectedBlobIndex, 27002: 27002: kUnexpectedWideColumnEntity, 27002: }; 27002: GetContextStats get_context_stats_; 27002: # 103 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 27002: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 27002: Logger* logger, Statistics* statistics, GetState init_state, 27002: const Slice& user_key, PinnableSlice* value, 27002: PinnableWideColumns* columns, bool* value_found, 27002: MergeContext* merge_context, bool do_merge, 27002: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 27002: SequenceNumber* seq = nullptr, 27002: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 27002: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 27002: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 27002: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 27002: Logger* logger, Statistics* statistics, GetState init_state, 27002: const Slice& user_key, PinnableSlice* value, 27002: PinnableWideColumns* columns, std::string* timestamp, 27002: bool* value_found, MergeContext* merge_context, bool do_merge, 27002: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 27002: SequenceNumber* seq = nullptr, 27002: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 27002: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 27002: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 27002: 27002: GetContext() = delete; 27002: 27002: 27002: 27002: void MarkKeyMayExist(); 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 27002: bool SaveValue(const ParsedInternalKey& parsed_key, const Slice& value, 27002: bool* matched, Cleanable* value_pinner = nullptr); 27002: 27002: 27002: 27002: void SaveValue(const Slice& value, SequenceNumber seq); 27002: 27002: GetState State() const { return state_; } 27002: 27002: SequenceNumber* max_covering_tombstone_seq() { 27002: return max_covering_tombstone_seq_; 27002: } 27002: 27002: bool NeedTimestamp() { return timestamp_ != nullptr; } 27002: 27002: void SetTimestampFromRangeTombstone(const Slice& timestamp) { 27002: 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 3 4 27002: (static_cast ( 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 27002: timestamp_ 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 27002: "timestamp_" 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 3 4 27002: , "./table/get_context.h", 154, __extension__ __PRETTY_FUNCTION__)) 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/table/get_context.h" 27002: ; 27002: timestamp_->assign(timestamp.data(), timestamp.size()); 27002: ts_from_rangetombstone_ = true; 27002: } 27002: 27002: PinnedIteratorsManager* pinned_iters_mgr() { return pinned_iters_mgr_; } 27002: 27002: 27002: 27002: 27002: void SetReplayLog(std::string* replay_log) { replay_log_ = replay_log; } 27002: 27002: 27002: bool NeedToReadSequence() const { return (seq_ != nullptr); } 27002: 27002: bool sample() const { return sample_; } 27002: 27002: bool CheckCallback(SequenceNumber seq) { 27002: if (callback_) { 27002: return callback_->IsVisible(seq); 27002: } 27002: return true; 27002: } 27002: 27002: void ReportCounters(); 27002: 27002: bool has_callback() const { return callback_ != nullptr; } 27002: 27002: uint64_t get_tracing_get_id() const { return tracing_get_id_; } 27002: 27002: void push_operand(const Slice& value, Cleanable* value_pinner); 27002: 27002: private: 27002: void Merge(const Slice* value); 27002: bool GetBlobValue(const Slice& blob_index, PinnableSlice* blob_value); 27002: 27002: const Comparator* ucmp_; 27002: const MergeOperator* merge_operator_; 27002: 27002: Logger* logger_; 27002: Statistics* statistics_; 27002: 27002: GetState state_; 27002: Slice user_key_; 27002: PinnableSlice* pinnable_val_; 27002: PinnableWideColumns* columns_; 27002: std::string* timestamp_; 27002: bool ts_from_rangetombstone_{false}; 27002: bool* value_found_; 27002: MergeContext* merge_context_; 27002: SequenceNumber* max_covering_tombstone_seq_; 27002: SystemClock* clock_; 27002: 27002: 27002: SequenceNumber* seq_; 27002: std::string* replay_log_; 27002: 27002: PinnedIteratorsManager* pinned_iters_mgr_; 27002: ReadCallback* callback_; 27002: bool sample_; 27002: 27002: 27002: 27002: bool do_merge_; 27002: bool* is_blob_index_; 27002: 27002: 27002: const uint64_t tracing_get_id_; 27002: BlobFetcher* blob_fetcher_; 27002: }; 27002: 27002: 27002: 27002: 27002: void replayGetContextLog(const Slice& replay_log, const Slice& user_key, 27002: GetContext* get_context, 27002: Cleanable* value_pinner = nullptr); 27002: 27002: } 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/lookup_key.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/db/lookup_key.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: class LookupKey { 27002: public: 27002: 27002: 27002: LookupKey(const Slice& _user_key, SequenceNumber sequence, 27002: const Slice* ts = nullptr); 27002: 27002: ~LookupKey(); 27002: 27002: 27002: Slice memtable_key() const { 27002: return Slice(start_, static_cast(end_ - start_)); 27002: } 27002: 27002: 27002: Slice internal_key() const { 27002: return Slice(kstart_, static_cast(end_ - kstart_)); 27002: } 27002: 27002: 27002: Slice user_key() const { 27002: return Slice(kstart_, static_cast(end_ - kstart_ - 8)); 27002: } 27002: 27002: private: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: const char* start_; 27002: const char* kstart_; 27002: const char* end_; 27002: char space_[200]; 27002: 27002: 27002: LookupKey(const LookupKey&); 27002: void operator=(const LookupKey&); 27002: }; 27002: 27002: inline LookupKey::~LookupKey() { 27002: if (start_ != space_) delete[] start_; 27002: } 27002: 27002: } 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: const std::vector empty_operand_list; 27002: 27002: 27002: 27002: 27002: 27002: class MergeContext { 27002: public: 27002: 27002: void Clear() { 27002: if (operand_list_) { 27002: operand_list_->clear(); 27002: copied_operands_->clear(); 27002: } 27002: } 27002: 27002: 27002: void PushOperand(const Slice& operand_slice, bool operand_pinned = false) { 27002: Initialize(); 27002: SetDirectionBackward(); 27002: 27002: if (operand_pinned) { 27002: operand_list_->push_back(operand_slice); 27002: } else { 27002: 27002: copied_operands_->emplace_back( 27002: new std::string(operand_slice.data(), operand_slice.size())); 27002: operand_list_->push_back(*copied_operands_->back()); 27002: } 27002: } 27002: 27002: 27002: void PushOperandBack(const Slice& operand_slice, 27002: bool operand_pinned = false) { 27002: Initialize(); 27002: SetDirectionForward(); 27002: 27002: if (operand_pinned) { 27002: operand_list_->push_back(operand_slice); 27002: } else { 27002: 27002: copied_operands_->emplace_back( 27002: new std::string(operand_slice.data(), operand_slice.size())); 27002: operand_list_->push_back(*copied_operands_->back()); 27002: } 27002: } 27002: 27002: 27002: size_t GetNumOperands() const { 27002: if (!operand_list_) { 27002: return 0; 27002: } 27002: return operand_list_->size(); 27002: } 27002: 27002: 27002: Slice GetOperand(int index) const { 27002: 27002: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 3 4 27002: (static_cast ( 27002: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 27002: operand_list_ 27002: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 27002: "operand_list_" 27002: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 3 4 27002: , "./db/merge_context.h", 72, __extension__ __PRETTY_FUNCTION__)) 27002: # 72 "/build/reproducible-path/rocksdb-7.8.3/db/merge_context.h" 27002: ; 27002: 27002: SetDirectionForward(); 27002: return (*operand_list_)[index]; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: const std::vector& GetOperands() const { 27002: return GetOperandsDirectionForward(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: const std::vector& GetOperandsDirectionForward() const { 27002: if (!operand_list_) { 27002: return empty_operand_list; 27002: } 27002: 27002: SetDirectionForward(); 27002: return *operand_list_; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: const std::vector& GetOperandsDirectionBackward() const { 27002: if (!operand_list_) { 27002: return empty_operand_list; 27002: } 27002: 27002: SetDirectionBackward(); 27002: return *operand_list_; 27002: } 27002: 27002: private: 27002: void Initialize() { 27002: if (!operand_list_) { 27002: operand_list_.reset(new std::vector()); 27002: copied_operands_.reset(new std::vector>()); 27002: } 27002: } 27002: 27002: void SetDirectionForward() const { 27002: if (operands_reversed_ == true) { 27002: std::reverse(operand_list_->begin(), operand_list_->end()); 27002: operands_reversed_ = false; 27002: } 27002: } 27002: 27002: void SetDirectionBackward() const { 27002: if (operands_reversed_ == false) { 27002: std::reverse(operand_list_->begin(), operand_list_->end()); 27002: operands_reversed_ = true; 27002: } 27002: } 27002: 27002: 27002: mutable std::unique_ptr> operand_list_; 27002: 27002: std::unique_ptr>> copied_operands_; 27002: mutable bool operands_reversed_ = true; 27002: }; 27002: 27002: } 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 2 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/async_file_reader.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 2 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: namespace rocksdb { 27002: 27002: 27002: 27002: template 27002: inline int FloorLog2(T v) { 27002: static_assert(std::is_integral::value, "non-integral type"); 27002: 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 27002: (static_cast ( 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: v > 0 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: "v > 0" 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 27002: , "./util/math.h", 25, __extension__ __PRETTY_FUNCTION__)) 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: ; 27002: # 46 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 27002: if (sizeof(T) <= sizeof(unsigned int)) { 27002: int lz = __builtin_clz(static_cast(v)); 27002: return int{sizeof(unsigned int)} * 8 - 1 - lz; 27002: } else if (sizeof(T) <= sizeof(unsigned long)) { 27002: int lz = __builtin_clzl(static_cast(v)); 27002: return int{sizeof(unsigned long)} * 8 - 1 - lz; 27002: } else { 27002: int lz = __builtin_clzll(static_cast(v)); 27002: return int{sizeof(unsigned long long)} * 8 - 1 - lz; 27002: } 27002: 27002: } 27002: 27002: 27002: template 27002: constexpr int ConstexprFloorLog2(T v) { 27002: int rv = 0; 27002: while (v > T{1}) { 27002: ++rv; 27002: v >>= 1; 27002: } 27002: return rv; 27002: } 27002: 27002: 27002: template 27002: inline int CountTrailingZeroBits(T v) { 27002: static_assert(std::is_integral::value, "non-integral type"); 27002: 27002: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 27002: (static_cast ( 27002: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: v != 0 27002: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: "v != 0" 27002: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 3 4 27002: , "./util/math.h", 75, __extension__ __PRETTY_FUNCTION__)) 27002: # 75 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: ; 27002: # 95 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 27002: if (sizeof(T) <= sizeof(unsigned int)) { 27002: return __builtin_ctz(static_cast(v)); 27002: } else if (sizeof(T) <= sizeof(unsigned long)) { 27002: return __builtin_ctzl(static_cast(v)); 27002: } else { 27002: return __builtin_ctzll(static_cast(v)); 27002: } 27002: 27002: } 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: template 27002: inline int BitsSetToOne(T v) { 27002: static_assert(std::is_integral::value, "non-integral type"); 27002: # 171 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 27002: if (sizeof(T) < sizeof(unsigned int)) { 27002: 27002: constexpr auto mm = 8 * sizeof(unsigned int) - 1; 27002: 27002: constexpr unsigned int m = (1U << ((8 * sizeof(T)) & mm)) - 1; 27002: return __builtin_popcount(static_cast(v) & m); 27002: } else if (sizeof(T) == sizeof(unsigned int)) { 27002: return __builtin_popcount(static_cast(v)); 27002: } else if (sizeof(T) <= sizeof(unsigned long)) { 27002: return __builtin_popcountl(static_cast(v)); 27002: } else { 27002: return __builtin_popcountll(static_cast(v)); 27002: } 27002: 27002: } 27002: 27002: template 27002: inline int BitParity(T v) { 27002: static_assert(std::is_integral::value, "non-integral type"); 27002: 27002: 27002: 27002: 27002: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 27002: if (sizeof(T) <= sizeof(unsigned int)) { 27002: 27002: return __builtin_parity(static_cast(v)); 27002: } else if (sizeof(T) <= sizeof(unsigned long)) { 27002: return __builtin_parityl(static_cast(v)); 27002: } else { 27002: return __builtin_parityll(static_cast(v)); 27002: } 27002: 27002: } 27002: 27002: 27002: 27002: 27002: template 27002: inline T EndianSwapValue(T v) { 27002: static_assert(std::is_integral::value, "non-integral type"); 27002: # 223 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: if (sizeof(T) == 2) { 27002: return static_cast(__builtin_bswap16(static_cast(v))); 27002: } else if (sizeof(T) == 4) { 27002: return static_cast(__builtin_bswap32(static_cast(v))); 27002: } else if (sizeof(T) == 8) { 27002: return static_cast(__builtin_bswap64(static_cast(v))); 27002: } 27002: 27002: 27002: T ret_val = 0; 27002: for (std::size_t i = 0; i < sizeof(T); ++i) { 27002: ret_val |= ((v >> (8 * i)) & 0xff) << (8 * (sizeof(T) - 1 - i)); 27002: } 27002: return ret_val; 27002: } 27002: 27002: 27002: template 27002: inline T ReverseBits(T v) { 27002: T r = EndianSwapValue(v); 27002: const T kHighestByte = T{1} << ((sizeof(T) - 1) * 8); 27002: const T kEveryByte = kHighestByte | (kHighestByte / 255); 27002: 27002: r = ((r & (kEveryByte * 0x0f)) << 4) | ((r >> 4) & (kEveryByte * 0x0f)); 27002: r = ((r & (kEveryByte * 0x33)) << 2) | ((r >> 2) & (kEveryByte * 0x33)); 27002: r = ((r & (kEveryByte * 0x55)) << 1) | ((r >> 1) & (kEveryByte * 0x55)); 27002: 27002: return r; 27002: } 27002: # 273 "/build/reproducible-path/rocksdb-7.8.3/util/math.h" 27002: template 27002: inline T DownwardInvolution(T v) { 27002: static_assert(std::is_integral::value, "non-integral type"); 27002: static_assert(sizeof(T) <= 8, "only supported up to 64 bits"); 27002: 27002: uint64_t r = static_cast(v); 27002: if constexpr (sizeof(T) > 4) { 27002: r ^= r >> 32; 27002: } 27002: if constexpr (sizeof(T) > 2) { 27002: r ^= (r & 0xffff0000ffff0000U) >> 16; 27002: } 27002: if constexpr (sizeof(T) > 1) { 27002: r ^= (r & 0xff00ff00ff00ff00U) >> 8; 27002: } 27002: r ^= (r & 0xf0f0f0f0f0f0f0f0U) >> 4; 27002: r ^= (r & 0xccccccccccccccccU) >> 2; 27002: r ^= (r & 0xaaaaaaaaaaaaaaaaU) >> 1; 27002: return static_cast(r); 27002: } 27002: 27002: } 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/single_thread_executor.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 2 27002: 27002: namespace rocksdb { 27002: class GetContext; 27002: 27002: struct KeyContext { 27002: const Slice* key; 27002: LookupKey* lkey; 27002: Slice ukey_with_ts; 27002: Slice ukey_without_ts; 27002: Slice ikey; 27002: ColumnFamilyHandle* column_family; 27002: Status* s; 27002: MergeContext merge_context; 27002: SequenceNumber max_covering_tombstone_seq; 27002: bool key_exists; 27002: bool is_blob_index; 27002: void* cb_arg; 27002: PinnableSlice* value; 27002: std::string* timestamp; 27002: GetContext* get_context; 27002: 27002: KeyContext(ColumnFamilyHandle* col_family, const Slice& user_key, 27002: PinnableSlice* val, std::string* ts, Status* stat) 27002: : key(&user_key), 27002: lkey(nullptr), 27002: column_family(col_family), 27002: s(stat), 27002: max_covering_tombstone_seq(0), 27002: key_exists(false), 27002: is_blob_index(false), 27002: cb_arg(nullptr), 27002: value(val), 27002: timestamp(ts), 27002: get_context(nullptr) {} 27002: 27002: KeyContext() = default; 27002: }; 27002: # 94 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: class MultiGetContext { 27002: public: 27002: 27002: 27002: 27002: 27002: static const int MAX_BATCH_SIZE = 32; 27002: 27002: 27002: 27002: using Mask = uint64_t; 27002: static_assert(MAX_BATCH_SIZE < sizeof(Mask) * 8); 27002: 27002: MultiGetContext(autovector* sorted_keys, 27002: size_t begin, size_t num_keys, SequenceNumber snapshot, 27002: const ReadOptions& read_opts, FileSystem* fs, 27002: Statistics* stats) 27002: : num_keys_(num_keys), 27002: value_mask_(0), 27002: value_size_(0), 27002: lookup_key_ptr_(reinterpret_cast(lookup_key_stack_buf)) 27002: 27002: 27002: 27002: 27002: 27002: { 27002: (void)fs; 27002: (void)stats; 27002: 27002: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: num_keys <= MAX_BATCH_SIZE 27002: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "num_keys <= MAX_BATCH_SIZE" 27002: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 123, __extension__ __PRETTY_FUNCTION__)) 27002: # 123 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: if (num_keys > MAX_LOOKUP_KEYS_ON_STACK) { 27002: lookup_key_heap_buf.reset(new char[sizeof(LookupKey) * num_keys]); 27002: lookup_key_ptr_ = reinterpret_cast( 27002: lookup_key_heap_buf.get()); 27002: } 27002: 27002: for (size_t iter = 0; iter != num_keys_; ++iter) { 27002: 27002: sorted_keys_[iter] = (*sorted_keys)[begin + iter]; 27002: sorted_keys_[iter]->lkey = new (&lookup_key_ptr_[iter]) 27002: LookupKey(*sorted_keys_[iter]->key, snapshot, read_opts.timestamp); 27002: sorted_keys_[iter]->ukey_with_ts = sorted_keys_[iter]->lkey->user_key(); 27002: sorted_keys_[iter]->ukey_without_ts = StripTimestampFromUserKey( 27002: sorted_keys_[iter]->lkey->user_key(), 27002: read_opts.timestamp == nullptr ? 0 : read_opts.timestamp->size()); 27002: sorted_keys_[iter]->ikey = sorted_keys_[iter]->lkey->internal_key(); 27002: sorted_keys_[iter]->timestamp = (*sorted_keys)[begin + iter]->timestamp; 27002: sorted_keys_[iter]->get_context = 27002: (*sorted_keys)[begin + iter]->get_context; 27002: } 27002: } 27002: 27002: ~MultiGetContext() { 27002: for (size_t i = 0; i < num_keys_; ++i) { 27002: lookup_key_ptr_[i].~LookupKey(); 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: private: 27002: static const int MAX_LOOKUP_KEYS_ON_STACK = 16; 27002: alignas(alignof(LookupKey)) 27002: char lookup_key_stack_buf[sizeof(LookupKey) * MAX_LOOKUP_KEYS_ON_STACK]; 27002: std::array sorted_keys_; 27002: size_t num_keys_; 27002: Mask value_mask_; 27002: uint64_t value_size_; 27002: std::unique_ptr lookup_key_heap_buf; 27002: LookupKey* lookup_key_ptr_; 27002: 27002: 27002: 27002: 27002: 27002: public: 27002: # 183 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: class Range { 27002: public: 27002: 27002: 27002: 27002: class Iterator { 27002: public: 27002: 27002: using self_type = Iterator; 27002: using value_type = KeyContext; 27002: using reference = KeyContext&; 27002: using pointer = KeyContext*; 27002: using difference_type = int; 27002: using iterator_category = std::forward_iterator_tag; 27002: 27002: Iterator(const Range* range, size_t idx) 27002: : range_(range), ctx_(range->ctx_), index_(idx) { 27002: while (index_ < range_->end_ && 27002: (Mask{1} << index_) & 27002: (range_->ctx_->value_mask_ | range_->skip_mask_ | 27002: range_->invalid_mask_)) 27002: index_++; 27002: } 27002: 27002: Iterator(const Iterator&) = default; 27002: 27002: Iterator(const Iterator& other, const Range* range) 27002: : range_(range), ctx_(other.ctx_), index_(other.index_) { 27002: 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: range->ctx_ == other.ctx_ 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "range->ctx_ == other.ctx_" 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 211, __extension__ __PRETTY_FUNCTION__)) 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: } 27002: Iterator& operator=(const Iterator&) = default; 27002: 27002: Iterator& operator++() { 27002: while (++index_ < range_->end_ && 27002: (Mask{1} << index_) & 27002: (range_->ctx_->value_mask_ | range_->skip_mask_ | 27002: range_->invalid_mask_)) 27002: ; 27002: return *this; 27002: } 27002: 27002: bool operator==(Iterator other) const { 27002: 27002: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: range_->ctx_ == other.range_->ctx_ 27002: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "range_->ctx_ == other.range_->ctx_" 27002: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 225, __extension__ __PRETTY_FUNCTION__)) 27002: # 225 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: return index_ == other.index_; 27002: } 27002: 27002: bool operator!=(Iterator other) const { 27002: 27002: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: range_->ctx_ == other.range_->ctx_ 27002: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "range_->ctx_ == other.range_->ctx_" 27002: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 230, __extension__ __PRETTY_FUNCTION__)) 27002: # 230 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: return index_ != other.index_; 27002: } 27002: 27002: KeyContext& operator*() { 27002: 27002: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: index_ < range_->end_ && index_ >= range_->start_ 27002: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "index_ < range_->end_ && index_ >= range_->start_" 27002: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 235, __extension__ __PRETTY_FUNCTION__)) 27002: # 235 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: return *(ctx_->sorted_keys_[index_]); 27002: } 27002: 27002: KeyContext* operator->() { 27002: 27002: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: index_ < range_->end_ && index_ >= range_->start_ 27002: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "index_ < range_->end_ && index_ >= range_->start_" 27002: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 240, __extension__ __PRETTY_FUNCTION__)) 27002: # 240 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: return ctx_->sorted_keys_[index_]; 27002: } 27002: 27002: size_t index() { return index_; } 27002: 27002: private: 27002: friend Range; 27002: const Range* range_; 27002: const MultiGetContext* ctx_; 27002: size_t index_; 27002: }; 27002: 27002: Range(const Range& mget_range, 27002: const Iterator& first, 27002: const Iterator& last) { 27002: ctx_ = mget_range.ctx_; 27002: if (first == last) { 27002: 27002: 27002: start_ = mget_range.start_; 27002: end_ = start_; 27002: } else { 27002: start_ = first.index_; 27002: end_ = last.index_; 27002: } 27002: skip_mask_ = mget_range.skip_mask_; 27002: invalid_mask_ = mget_range.invalid_mask_; 27002: 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: start_ < 64 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "start_ < 64" 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 268, __extension__ __PRETTY_FUNCTION__)) 27002: # 268 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: 27002: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: end_ < 64 27002: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "end_ < 64" 27002: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 269, __extension__ __PRETTY_FUNCTION__)) 27002: # 269 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: } 27002: 27002: Range() = default; 27002: 27002: Iterator begin() const { return Iterator(this, start_); } 27002: 27002: Iterator end() const { return Iterator(this, end_); } 27002: 27002: bool empty() const { return RemainingMask() == 0; } 27002: 27002: void SkipIndex(size_t index) { skip_mask_ |= Mask{1} << index; } 27002: 27002: void SkipKey(const Iterator& iter) { SkipIndex(iter.index_); } 27002: 27002: bool IsKeySkipped(const Iterator& iter) const { 27002: return skip_mask_ & (Mask{1} << iter.index_); 27002: } 27002: 27002: 27002: 27002: void MarkKeyDone(Iterator& iter) { 27002: ctx_->value_mask_ |= (Mask{1} << iter.index_); 27002: } 27002: 27002: bool CheckKeyDone(Iterator& iter) const { 27002: return ctx_->value_mask_ & (Mask{1} << iter.index_); 27002: } 27002: 27002: uint64_t KeysLeft() const { return BitsSetToOne(RemainingMask()); } 27002: 27002: void AddSkipsFrom(const Range& other) { 27002: 27002: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ctx_ == other.ctx_ 27002: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "ctx_ == other.ctx_" 27002: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 301, __extension__ __PRETTY_FUNCTION__)) 27002: # 301 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: skip_mask_ |= other.skip_mask_; 27002: } 27002: 27002: uint64_t GetValueSize() { return ctx_->value_size_; } 27002: 27002: void AddValueSize(uint64_t value_size) { ctx_->value_size_ += value_size; } 27002: 27002: MultiGetContext* context() const { return ctx_; } 27002: 27002: Range Suffix(const Range& other) const { 27002: size_t other_last = other.FindLastRemaining(); 27002: size_t my_last = FindLastRemaining(); 27002: 27002: if (my_last > other_last) { 27002: return Range(*this, Iterator(this, other_last), 27002: Iterator(this, my_last)); 27002: } else { 27002: return Range(*this, begin(), begin()); 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: Range& operator+=(const Range& rhs) { 27002: 27002: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: rhs.start_ >= end_ 27002: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "rhs.start_ >= end_" 27002: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 328, __extension__ __PRETTY_FUNCTION__)) 27002: # 328 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: 27002: if (end_ < rhs.start_) { 27002: invalid_mask_ |= RangeMask(end_, rhs.start_); 27002: skip_mask_ |= RangeMask(end_, rhs.start_); 27002: } 27002: start_ = std::min(start_, rhs.start_); 27002: end_ = std::max(end_, rhs.end_); 27002: skip_mask_ |= rhs.skip_mask_ & RangeMask(rhs.start_, rhs.end_); 27002: invalid_mask_ |= (rhs.invalid_mask_ | rhs.skip_mask_) & 27002: RangeMask(rhs.start_, rhs.end_); 27002: 27002: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: start_ < 64 27002: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "start_ < 64" 27002: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 339, __extension__ __PRETTY_FUNCTION__)) 27002: # 339 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: 27002: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: end_ < 64 27002: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "end_ < 64" 27002: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 340, __extension__ __PRETTY_FUNCTION__)) 27002: # 340 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: return *this; 27002: } 27002: 27002: 27002: 27002: 27002: Range& operator-=(const Range& rhs) { 27002: 27002: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: start_ <= rhs.start_ && end_ >= rhs.end_ 27002: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "start_ <= rhs.start_ && end_ >= rhs.end_" 27002: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 348, __extension__ __PRETTY_FUNCTION__)) 27002: # 348 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: skip_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 27002: RangeMask(rhs.start_, rhs.end_); 27002: invalid_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 27002: RangeMask(rhs.start_, rhs.end_); 27002: return *this; 27002: } 27002: 27002: 27002: Range operator~() { 27002: Range res = *this; 27002: res.skip_mask_ = ~skip_mask_ & RangeMask(start_, end_); 27002: return res; 27002: } 27002: 27002: private: 27002: friend MultiGetContext; 27002: MultiGetContext* ctx_; 27002: size_t start_; 27002: size_t end_; 27002: Mask skip_mask_; 27002: Mask invalid_mask_; 27002: 27002: Range(MultiGetContext* ctx, size_t num_keys) 27002: : ctx_(ctx), 27002: start_(0), 27002: end_(num_keys), 27002: skip_mask_(0), 27002: invalid_mask_(0) { 27002: 27002: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: (static_cast ( 27002: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: num_keys < 64 27002: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: "num_keys < 64" 27002: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 3 4 27002: , "./table/multiget_context.h", 377, __extension__ __PRETTY_FUNCTION__)) 27002: # 377 "/build/reproducible-path/rocksdb-7.8.3/table/multiget_context.h" 27002: ; 27002: } 27002: 27002: static Mask RangeMask(size_t start, size_t end) { 27002: return (((Mask{1} << (end - start)) - 1) << start); 27002: } 27002: 27002: Mask RemainingMask() const { 27002: return (((Mask{1} << end_) - 1) & ~((Mask{1} << start_) - 1) & 27002: ~(ctx_->value_mask_ | skip_mask_)); 27002: } 27002: 27002: size_t FindLastRemaining() const { 27002: Mask mask = RemainingMask(); 27002: size_t index = (mask >>= start_) ? start_ : 0; 27002: while (mask >>= 1) { 27002: index++; 27002: } 27002: return index; 27002: } 27002: }; 27002: 27002: 27002: Range GetMultiGetRange() { return Range(this, num_keys_); } 27002: }; 27002: 27002: } 27002: # 22 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class Iterator; 27002: struct ParsedInternalKey; 27002: class Slice; 27002: class Arena; 27002: struct ReadOptions; 27002: struct TableProperties; 27002: class GetContext; 27002: class MultiGetContext; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class TableReader { 27002: public: 27002: virtual ~TableReader() {} 27002: # 56 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 27002: virtual InternalIterator* NewIterator( 27002: const ReadOptions& read_options, const SliceTransform* prefix_extractor, 27002: Arena* arena, bool skip_filters, TableReaderCaller caller, 27002: size_t compaction_readahead_size = 0, 27002: bool allow_unprepared_value = false) = 0; 27002: 27002: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 27002: const ReadOptions& ) { 27002: return nullptr; 27002: } 27002: # 78 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 27002: virtual uint64_t ApproximateOffsetOf(const Slice& key, 27002: TableReaderCaller caller) = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual uint64_t ApproximateSize(const Slice& start, const Slice& end, 27002: TableReaderCaller caller) = 0; 27002: 27002: struct Anchor { 27002: Anchor(const Slice& _user_key, size_t _range_size) 27002: : user_key(_user_key.ToStringView()), range_size(_range_size) {} 27002: std::string user_key; 27002: size_t range_size; 27002: }; 27002: 27002: 27002: 27002: virtual Status ApproximateKeyAnchors(const ReadOptions& , 27002: std::vector& ) { 27002: return Status::NotSupported("ApproximateKeyAnchors() not supported."); 27002: } 27002: 27002: 27002: 27002: virtual void SetupForCompaction() = 0; 27002: 27002: virtual std::shared_ptr GetTableProperties() const = 0; 27002: 27002: 27002: virtual void Prepare(const Slice& ) {} 27002: 27002: 27002: virtual size_t ApproximateMemoryUsage() const = 0; 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 27002: virtual Status Get(const ReadOptions& readOptions, const Slice& key, 27002: GetContext* get_context, 27002: const SliceTransform* prefix_extractor, 27002: bool skip_filters = false) = 0; 27002: 27002: 27002: 27002: 27002: virtual Status MultiGetFilter(const ReadOptions& , 27002: const SliceTransform* , 27002: MultiGetContext::Range* ) { 27002: return Status::NotSupported(); 27002: } 27002: 27002: virtual void MultiGet(const ReadOptions& readOptions, 27002: const MultiGetContext::Range* mget_range, 27002: const SliceTransform* prefix_extractor, 27002: bool skip_filters = false) { 27002: for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) { 27002: *iter->s = Get(readOptions, iter->ikey, iter->get_context, 27002: prefix_extractor, skip_filters); 27002: } 27002: } 27002: # 162 "/build/reproducible-path/rocksdb-7.8.3/table/table_reader.h" 27002: virtual Status Prefetch(const Slice* begin = nullptr, 27002: const Slice* end = nullptr) { 27002: (void) begin; 27002: (void) end; 27002: 27002: 27002: return Status::OK(); 27002: } 27002: 27002: 27002: virtual Status DumpTable(WritableFile* ) { 27002: return Status::NotSupported("DumpTable() not supported"); 27002: } 27002: 27002: 27002: virtual Status VerifyChecksum(const ReadOptions& , 27002: TableReaderCaller ) { 27002: return Status::NotSupported("VerifyChecksum() not supported"); 27002: } 27002: }; 27002: 27002: } 27002: # 26 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/unique_id_impl.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/unique_id.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/unique_id.h" 27002: Status GetUniqueIdFromTableProperties(const TableProperties &props, 27002: std::string *out_id); 27002: # 47 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/unique_id.h" 27002: Status GetExtendedUniqueIdFromTableProperties(const TableProperties &props, 27002: std::string *out_id); 27002: 27002: 27002: 27002: 27002: std::string UniqueIdToHumanString(const std::string &id); 27002: 27002: } 27002: # 11 "/build/reproducible-path/rocksdb-7.8.3/table/unique_id_impl.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: 27002: using UniqueId64x2 = std::array; 27002: 27002: 27002: constexpr UniqueId64x2 kNullUniqueId64x2 = {}; 27002: 27002: 27002: 27002: using UniqueId64x3 = std::array; 27002: 27002: 27002: constexpr UniqueId64x3 kNullUniqueId64x3 = {}; 27002: 27002: 27002: struct UniqueIdPtr { 27002: uint64_t *ptr = nullptr; 27002: bool extended = false; 27002: 27002: UniqueIdPtr(UniqueId64x2 *id) { 27002: ptr = (*id).data(); 27002: extended = false; 27002: } 27002: UniqueIdPtr(UniqueId64x3 *id) { 27002: ptr = (*id).data(); 27002: extended = true; 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: Status GetSstInternalUniqueId(const std::string &db_id, 27002: const std::string &db_session_id, 27002: uint64_t file_number, UniqueIdPtr out, 27002: bool force = false); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: void InternalUniqueIdToExternal(UniqueIdPtr in_out); 27002: 27002: 27002: 27002: void ExternalUniqueIdToInternal(UniqueIdPtr in_out); 27002: 27002: 27002: std::string EncodeUniqueIdBytes(UniqueIdPtr in); 27002: 27002: 27002: Status DecodeUniqueIdBytes(const std::string &unique_id, UniqueIdPtr out); 27002: 27002: 27002: 27002: std::string InternalUniqueIdToHumanString(UniqueIdPtr in); 27002: # 85 "/build/reproducible-path/rocksdb-7.8.3/table/unique_id_impl.h" 27002: std::string EncodeSessionId(uint64_t upper, uint64_t lower); 27002: 27002: 27002: 27002: 27002: Status DecodeSessionId(const std::string &db_session_id, uint64_t *upper, 27002: uint64_t *lower); 27002: 27002: } 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: enum Tag : uint32_t { 27002: kComparator = 1, 27002: kLogNumber = 2, 27002: kNextFileNumber = 3, 27002: kLastSequence = 4, 27002: kCompactCursor = 5, 27002: kDeletedFile = 6, 27002: kNewFile = 7, 27002: 27002: kPrevLogNumber = 9, 27002: kMinLogNumberToKeep = 10, 27002: 27002: 27002: kNewFile2 = 100, 27002: kNewFile3 = 102, 27002: kNewFile4 = 103, 27002: kColumnFamily = 200, 27002: kColumnFamilyAdd = 201, 27002: kColumnFamilyDrop = 202, 27002: kMaxColumnFamily = 203, 27002: 27002: kInAtomicGroup = 300, 27002: 27002: kBlobFileAddition = 400, 27002: kBlobFileGarbage, 27002: 27002: 27002: kTagSafeIgnoreMask = 1 << 13, 27002: 27002: 27002: kDbId, 27002: kBlobFileAddition_DEPRECATED, 27002: kBlobFileGarbage_DEPRECATED, 27002: kWalAddition, 27002: kWalDeletion, 27002: kFullHistoryTsLow, 27002: kWalAddition2, 27002: kWalDeletion2, 27002: }; 27002: 27002: enum NewFileCustomTag : uint32_t { 27002: kTerminate = 1, 27002: kNeedCompaction = 2, 27002: 27002: 27002: 27002: kMinLogNumberToKeepHack = 3, 27002: kOldestBlobFileNumber = 4, 27002: kOldestAncesterTime = 5, 27002: kFileCreationTime = 6, 27002: kFileChecksum = 7, 27002: kFileChecksumFuncName = 8, 27002: kTemperature = 9, 27002: kMinTimestamp = 10, 27002: kMaxTimestamp = 11, 27002: kUniqueId = 12, 27002: 27002: 27002: 27002: kCustomTagNonSafeIgnoreMask = 1 << 6, 27002: 27002: 27002: kPathId, 27002: }; 27002: 27002: class VersionSet; 27002: 27002: constexpr uint64_t kFileNumberMask = 0x3FFFFFFFFFFFFFFF; 27002: constexpr uint64_t kUnknownOldestAncesterTime = 0; 27002: constexpr uint64_t kUnknownFileCreationTime = 0; 27002: 27002: extern uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id); 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct FileDescriptor { 27002: 27002: TableReader* table_reader; 27002: uint64_t packed_number_and_path_id; 27002: uint64_t file_size; 27002: SequenceNumber smallest_seqno; 27002: SequenceNumber largest_seqno; 27002: 27002: FileDescriptor() : FileDescriptor(0, 0, 0) {} 27002: 27002: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size) 27002: : FileDescriptor(number, path_id, _file_size, kMaxSequenceNumber, 0) {} 27002: 27002: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size, 27002: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno) 27002: : table_reader(nullptr), 27002: packed_number_and_path_id(PackFileNumberAndPathId(number, path_id)), 27002: file_size(_file_size), 27002: smallest_seqno(_smallest_seqno), 27002: largest_seqno(_largest_seqno) {} 27002: 27002: FileDescriptor(const FileDescriptor& fd) { *this = fd; } 27002: 27002: FileDescriptor& operator=(const FileDescriptor& fd) { 27002: table_reader = fd.table_reader; 27002: packed_number_and_path_id = fd.packed_number_and_path_id; 27002: file_size = fd.file_size; 27002: smallest_seqno = fd.smallest_seqno; 27002: largest_seqno = fd.largest_seqno; 27002: return *this; 27002: } 27002: 27002: uint64_t GetNumber() const { 27002: return packed_number_and_path_id & kFileNumberMask; 27002: } 27002: uint32_t GetPathId() const { 27002: return static_cast( 27002: packed_number_and_path_id / (kFileNumberMask + 1)); 27002: } 27002: uint64_t GetFileSize() const { return file_size; } 27002: }; 27002: 27002: struct FileSampledStats { 27002: FileSampledStats() : num_reads_sampled(0) {} 27002: FileSampledStats(const FileSampledStats& other) { *this = other; } 27002: FileSampledStats& operator=(const FileSampledStats& other) { 27002: num_reads_sampled = other.num_reads_sampled.load(); 27002: return *this; 27002: } 27002: 27002: 27002: mutable std::atomic num_reads_sampled; 27002: }; 27002: 27002: struct FileMetaData { 27002: FileDescriptor fd; 27002: InternalKey smallest; 27002: InternalKey largest; 27002: 27002: 27002: Cache::Handle* table_reader_handle = nullptr; 27002: 27002: FileSampledStats stats; 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint64_t compensated_file_size = 0; 27002: 27002: 27002: uint64_t num_entries = 0; 27002: uint64_t num_deletions = 0; 27002: uint64_t raw_key_size = 0; 27002: uint64_t raw_value_size = 0; 27002: 27002: int refs = 0; 27002: 27002: bool being_compacted = false; 27002: bool init_stats_from_file = false; 27002: 27002: 27002: bool marked_for_compaction = false; 27002: 27002: Temperature temperature = Temperature::kUnknown; 27002: 27002: 27002: 27002: uint64_t oldest_blob_file_number = kInvalidBlobFileNumber; 27002: 27002: 27002: 27002: 27002: 27002: uint64_t oldest_ancester_time = kUnknownOldestAncesterTime; 27002: 27002: 27002: uint64_t file_creation_time = kUnknownFileCreationTime; 27002: 27002: 27002: std::string file_checksum = kUnknownFileChecksum; 27002: 27002: 27002: std::string file_checksum_func_name = kUnknownFileChecksumFuncName; 27002: 27002: 27002: UniqueId64x2 unique_id{}; 27002: 27002: FileMetaData() = default; 27002: 27002: FileMetaData(uint64_t file, uint32_t file_path_id, uint64_t file_size, 27002: const InternalKey& smallest_key, const InternalKey& largest_key, 27002: const SequenceNumber& smallest_seq, 27002: const SequenceNumber& largest_seq, bool marked_for_compact, 27002: Temperature _temperature, uint64_t oldest_blob_file, 27002: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 27002: const std::string& _file_checksum, 27002: const std::string& _file_checksum_func_name, 27002: UniqueId64x2 _unique_id) 27002: : fd(file, file_path_id, file_size, smallest_seq, largest_seq), 27002: smallest(smallest_key), 27002: largest(largest_key), 27002: marked_for_compaction(marked_for_compact), 27002: temperature(_temperature), 27002: oldest_blob_file_number(oldest_blob_file), 27002: oldest_ancester_time(_oldest_ancester_time), 27002: file_creation_time(_file_creation_time), 27002: file_checksum(_file_checksum), 27002: file_checksum_func_name(_file_checksum_func_name), 27002: unique_id(std::move(_unique_id)) { 27002: rocksdb::SyncPoint::GetInstance()->Process("FileMetaData::FileMetaData", this); 27002: } 27002: 27002: 27002: 27002: Status UpdateBoundaries(const Slice& key, const Slice& value, 27002: SequenceNumber seqno, ValueType value_type); 27002: 27002: 27002: 27002: void UpdateBoundariesForRange(const InternalKey& start, 27002: const InternalKey& end, SequenceNumber seqno, 27002: const InternalKeyComparator& icmp) { 27002: if (smallest.size() == 0 || icmp.Compare(start, smallest) < 0) { 27002: smallest = start; 27002: } 27002: if (largest.size() == 0 || icmp.Compare(largest, end) < 0) { 27002: largest = end; 27002: } 27002: fd.smallest_seqno = std::min(fd.smallest_seqno, seqno); 27002: fd.largest_seqno = std::max(fd.largest_seqno, seqno); 27002: } 27002: 27002: 27002: 27002: 27002: uint64_t TryGetOldestAncesterTime() { 27002: if (oldest_ancester_time != kUnknownOldestAncesterTime) { 27002: return oldest_ancester_time; 27002: } else if (fd.table_reader != nullptr && 27002: fd.table_reader->GetTableProperties() != nullptr) { 27002: return fd.table_reader->GetTableProperties()->creation_time; 27002: } 27002: return kUnknownOldestAncesterTime; 27002: } 27002: 27002: uint64_t TryGetFileCreationTime() { 27002: if (file_creation_time != kUnknownFileCreationTime) { 27002: return file_creation_time; 27002: } else if (fd.table_reader != nullptr && 27002: fd.table_reader->GetTableProperties() != nullptr) { 27002: return fd.table_reader->GetTableProperties()->file_creation_time; 27002: } 27002: return kUnknownFileCreationTime; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t ApproximateMemoryUsage() const { 27002: size_t usage = 0; 27002: 27002: usage += malloc_usable_size(const_cast(this)); 27002: 27002: 27002: 27002: usage += smallest.size() + largest.size() + file_checksum.size() + 27002: file_checksum_func_name.size(); 27002: return usage; 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: struct FdWithKeyRange { 27002: FileDescriptor fd; 27002: FileMetaData* file_metadata; 27002: Slice smallest_key; 27002: Slice largest_key; 27002: 27002: FdWithKeyRange() 27002: : fd(), 27002: file_metadata(nullptr), 27002: smallest_key(), 27002: largest_key() { 27002: } 27002: 27002: FdWithKeyRange(FileDescriptor _fd, Slice _smallest_key, Slice _largest_key, 27002: FileMetaData* _file_metadata) 27002: : fd(_fd), 27002: file_metadata(_file_metadata), 27002: smallest_key(_smallest_key), 27002: largest_key(_largest_key) {} 27002: }; 27002: 27002: 27002: 27002: struct LevelFilesBrief { 27002: size_t num_files; 27002: FdWithKeyRange* files; 27002: LevelFilesBrief() { 27002: num_files = 0; 27002: files = nullptr; 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: class VersionEdit { 27002: public: 27002: void Clear(); 27002: 27002: void SetDBId(const std::string& db_id) { 27002: has_db_id_ = true; 27002: db_id_ = db_id; 27002: } 27002: bool HasDbId() const { return has_db_id_; } 27002: const std::string& GetDbId() const { return db_id_; } 27002: 27002: void SetComparatorName(const Slice& name) { 27002: has_comparator_ = true; 27002: comparator_ = name.ToString(); 27002: } 27002: bool HasComparatorName() const { return has_comparator_; } 27002: const std::string& GetComparatorName() const { return comparator_; } 27002: 27002: void SetLogNumber(uint64_t num) { 27002: has_log_number_ = true; 27002: log_number_ = num; 27002: } 27002: bool HasLogNumber() const { return has_log_number_; } 27002: uint64_t GetLogNumber() const { return log_number_; } 27002: 27002: void SetPrevLogNumber(uint64_t num) { 27002: has_prev_log_number_ = true; 27002: prev_log_number_ = num; 27002: } 27002: bool HasPrevLogNumber() const { return has_prev_log_number_; } 27002: uint64_t GetPrevLogNumber() const { return prev_log_number_; } 27002: 27002: void SetNextFile(uint64_t num) { 27002: has_next_file_number_ = true; 27002: next_file_number_ = num; 27002: } 27002: bool HasNextFile() const { return has_next_file_number_; } 27002: uint64_t GetNextFile() const { return next_file_number_; } 27002: 27002: void SetMaxColumnFamily(uint32_t max_column_family) { 27002: has_max_column_family_ = true; 27002: max_column_family_ = max_column_family; 27002: } 27002: bool HasMaxColumnFamily() const { return has_max_column_family_; } 27002: uint32_t GetMaxColumnFamily() const { return max_column_family_; } 27002: 27002: void SetMinLogNumberToKeep(uint64_t num) { 27002: has_min_log_number_to_keep_ = true; 27002: min_log_number_to_keep_ = num; 27002: } 27002: bool HasMinLogNumberToKeep() const { return has_min_log_number_to_keep_; } 27002: uint64_t GetMinLogNumberToKeep() const { return min_log_number_to_keep_; } 27002: 27002: void SetLastSequence(SequenceNumber seq) { 27002: has_last_sequence_ = true; 27002: last_sequence_ = seq; 27002: } 27002: bool HasLastSequence() const { return has_last_sequence_; } 27002: SequenceNumber GetLastSequence() const { return last_sequence_; } 27002: 27002: 27002: void DeleteFile(int level, uint64_t file) { 27002: deleted_files_.emplace(level, file); 27002: } 27002: 27002: 27002: using DeletedFiles = std::set>; 27002: const DeletedFiles& GetDeletedFiles() const { return deleted_files_; } 27002: 27002: 27002: 27002: 27002: 27002: void AddFile(int level, uint64_t file, uint32_t file_path_id, 27002: uint64_t file_size, const InternalKey& smallest, 27002: const InternalKey& largest, const SequenceNumber& smallest_seqno, 27002: const SequenceNumber& largest_seqno, bool marked_for_compaction, 27002: Temperature temperature, uint64_t oldest_blob_file_number, 27002: uint64_t oldest_ancester_time, uint64_t file_creation_time, 27002: const std::string& file_checksum, 27002: const std::string& file_checksum_func_name, 27002: const UniqueId64x2& unique_id) { 27002: 27002: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: smallest_seqno <= largest_seqno 27002: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "smallest_seqno <= largest_seqno" 27002: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 430, __extension__ __PRETTY_FUNCTION__)) 27002: # 430 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: new_files_.emplace_back( 27002: level, 27002: FileMetaData(file, file_path_id, file_size, smallest, largest, 27002: smallest_seqno, largest_seqno, marked_for_compaction, 27002: temperature, oldest_blob_file_number, oldest_ancester_time, 27002: file_creation_time, file_checksum, file_checksum_func_name, 27002: unique_id)); 27002: if (!HasLastSequence() || largest_seqno > GetLastSequence()) { 27002: SetLastSequence(largest_seqno); 27002: } 27002: } 27002: 27002: void AddFile(int level, const FileMetaData& f) { 27002: 27002: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: f.fd.smallest_seqno <= f.fd.largest_seqno 27002: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "f.fd.smallest_seqno <= f.fd.largest_seqno" 27002: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 444, __extension__ __PRETTY_FUNCTION__)) 27002: # 444 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: new_files_.emplace_back(level, f); 27002: if (!HasLastSequence() || f.fd.largest_seqno > GetLastSequence()) { 27002: SetLastSequence(f.fd.largest_seqno); 27002: } 27002: } 27002: 27002: 27002: using NewFiles = std::vector>; 27002: const NewFiles& GetNewFiles() const { return new_files_; } 27002: 27002: 27002: using CompactCursors = std::vector>; 27002: const CompactCursors& GetCompactCursors() const { return compact_cursors_; } 27002: void AddCompactCursor(int level, const InternalKey& cursor) { 27002: compact_cursors_.push_back(std::make_pair(level, cursor)); 27002: } 27002: void SetCompactCursors( 27002: const std::vector& compact_cursors_by_level) { 27002: compact_cursors_.clear(); 27002: compact_cursors_.reserve(compact_cursors_by_level.size()); 27002: for (int i = 0; i < (int)compact_cursors_by_level.size(); i++) { 27002: if (compact_cursors_by_level[i].Valid()) { 27002: compact_cursors_.push_back( 27002: std::make_pair(i, compact_cursors_by_level[i])); 27002: } 27002: } 27002: } 27002: 27002: 27002: void AddBlobFile(uint64_t blob_file_number, uint64_t total_blob_count, 27002: uint64_t total_blob_bytes, std::string checksum_method, 27002: std::string checksum_value) { 27002: blob_file_additions_.emplace_back( 27002: blob_file_number, total_blob_count, total_blob_bytes, 27002: std::move(checksum_method), std::move(checksum_value)); 27002: } 27002: 27002: void AddBlobFile(BlobFileAddition blob_file_addition) { 27002: blob_file_additions_.emplace_back(std::move(blob_file_addition)); 27002: } 27002: 27002: 27002: using BlobFileAdditions = std::vector; 27002: const BlobFileAdditions& GetBlobFileAdditions() const { 27002: return blob_file_additions_; 27002: } 27002: 27002: void SetBlobFileAdditions(BlobFileAdditions blob_file_additions) { 27002: 27002: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: blob_file_additions_.empty() 27002: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "blob_file_additions_.empty()" 27002: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 493, __extension__ __PRETTY_FUNCTION__)) 27002: # 493 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: blob_file_additions_ = std::move(blob_file_additions); 27002: } 27002: 27002: 27002: 27002: void AddBlobFileGarbage(uint64_t blob_file_number, 27002: uint64_t garbage_blob_count, 27002: uint64_t garbage_blob_bytes) { 27002: blob_file_garbages_.emplace_back(blob_file_number, garbage_blob_count, 27002: garbage_blob_bytes); 27002: } 27002: 27002: void AddBlobFileGarbage(BlobFileGarbage blob_file_garbage) { 27002: blob_file_garbages_.emplace_back(std::move(blob_file_garbage)); 27002: } 27002: 27002: 27002: using BlobFileGarbages = std::vector; 27002: const BlobFileGarbages& GetBlobFileGarbages() const { 27002: return blob_file_garbages_; 27002: } 27002: 27002: void SetBlobFileGarbages(BlobFileGarbages blob_file_garbages) { 27002: 27002: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: blob_file_garbages_.empty() 27002: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "blob_file_garbages_.empty()" 27002: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 517, __extension__ __PRETTY_FUNCTION__)) 27002: # 517 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: blob_file_garbages_ = std::move(blob_file_garbages); 27002: } 27002: 27002: 27002: 27002: void AddWal(WalNumber number, WalMetadata metadata = WalMetadata()) { 27002: 27002: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: NumEntries() == wal_additions_.size() 27002: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "NumEntries() == wal_additions_.size()" 27002: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 524, __extension__ __PRETTY_FUNCTION__)) 27002: # 524 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: wal_additions_.emplace_back(number, std::move(metadata)); 27002: } 27002: 27002: 27002: const WalAdditions& GetWalAdditions() const { return wal_additions_; } 27002: 27002: bool IsWalAddition() const { return !wal_additions_.empty(); } 27002: 27002: 27002: 27002: void DeleteWalsBefore(WalNumber number) { 27002: 27002: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: (NumEntries() == 1) == !wal_deletion_.IsEmpty() 27002: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "(NumEntries() == 1) == !wal_deletion_.IsEmpty()" 27002: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 536, __extension__ __PRETTY_FUNCTION__)) 27002: # 536 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: wal_deletion_ = WalDeletion(number); 27002: } 27002: 27002: const WalDeletion& GetWalDeletion() const { return wal_deletion_; } 27002: 27002: bool IsWalDeletion() const { return !wal_deletion_.IsEmpty(); } 27002: 27002: bool IsWalManipulation() const { 27002: size_t entries = NumEntries(); 27002: return (entries > 0) && ((entries == wal_additions_.size()) || 27002: (entries == !wal_deletion_.IsEmpty())); 27002: } 27002: 27002: 27002: size_t NumEntries() const { 27002: return new_files_.size() + deleted_files_.size() + 27002: blob_file_additions_.size() + blob_file_garbages_.size() + 27002: wal_additions_.size() + !wal_deletion_.IsEmpty(); 27002: } 27002: 27002: void SetColumnFamily(uint32_t column_family_id) { 27002: column_family_ = column_family_id; 27002: } 27002: uint32_t GetColumnFamily() const { return column_family_; } 27002: 27002: 27002: void AddColumnFamily(const std::string& name) { 27002: 27002: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: !is_column_family_drop_ 27002: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "!is_column_family_drop_" 27002: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 564, __extension__ __PRETTY_FUNCTION__)) 27002: # 564 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: 27002: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: !is_column_family_add_ 27002: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "!is_column_family_add_" 27002: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 565, __extension__ __PRETTY_FUNCTION__)) 27002: # 565 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: 27002: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: NumEntries() == 0 27002: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "NumEntries() == 0" 27002: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 566, __extension__ __PRETTY_FUNCTION__)) 27002: # 566 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: is_column_family_add_ = true; 27002: column_family_name_ = name; 27002: } 27002: 27002: 27002: void DropColumnFamily() { 27002: 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: !is_column_family_drop_ 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "!is_column_family_drop_" 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 573, __extension__ __PRETTY_FUNCTION__)) 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: 27002: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: !is_column_family_add_ 27002: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "!is_column_family_add_" 27002: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 574, __extension__ __PRETTY_FUNCTION__)) 27002: # 574 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: 27002: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: NumEntries() == 0 27002: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "NumEntries() == 0" 27002: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 575, __extension__ __PRETTY_FUNCTION__)) 27002: # 575 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: is_column_family_drop_ = true; 27002: } 27002: 27002: bool IsColumnFamilyManipulation() const { 27002: return is_column_family_add_ || is_column_family_drop_; 27002: } 27002: 27002: bool IsColumnFamilyAdd() const { return is_column_family_add_; } 27002: 27002: bool IsColumnFamilyDrop() const { return is_column_family_drop_; } 27002: 27002: void MarkAtomicGroup(uint32_t remaining_entries) { 27002: is_in_atomic_group_ = true; 27002: remaining_entries_ = remaining_entries; 27002: } 27002: bool IsInAtomicGroup() const { return is_in_atomic_group_; } 27002: uint32_t GetRemainingEntries() const { return remaining_entries_; } 27002: 27002: bool HasFullHistoryTsLow() const { return !full_history_ts_low_.empty(); } 27002: const std::string& GetFullHistoryTsLow() const { 27002: 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: HasFullHistoryTsLow() 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "HasFullHistoryTsLow()" 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 596, __extension__ __PRETTY_FUNCTION__)) 27002: # 596 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: return full_history_ts_low_; 27002: } 27002: void SetFullHistoryTsLow(std::string full_history_ts_low) { 27002: 27002: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: (static_cast ( 27002: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: !full_history_ts_low.empty() 27002: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: "!full_history_ts_low.empty()" 27002: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 3 4 27002: , "./db/version_edit.h", 600, __extension__ __PRETTY_FUNCTION__)) 27002: # 600 "/build/reproducible-path/rocksdb-7.8.3/db/version_edit.h" 27002: ; 27002: full_history_ts_low_ = std::move(full_history_ts_low); 27002: } 27002: 27002: 27002: bool EncodeTo(std::string* dst) const; 27002: Status DecodeFrom(const Slice& src); 27002: 27002: std::string DebugString(bool hex_key = false) const; 27002: std::string DebugJSON(int edit_num, bool hex_key = false) const; 27002: 27002: private: 27002: friend class ReactiveVersionSet; 27002: friend class VersionEditHandlerBase; 27002: friend class ListColumnFamiliesHandler; 27002: friend class VersionEditHandler; 27002: friend class VersionEditHandlerPointInTime; 27002: friend class DumpManifestHandler; 27002: friend class VersionSet; 27002: friend class Version; 27002: friend class AtomicGroupReadBuffer; 27002: 27002: bool GetLevel(Slice* input, int* level, const char** msg); 27002: 27002: const char* DecodeNewFile4From(Slice* input); 27002: 27002: int max_level_ = 0; 27002: std::string db_id_; 27002: std::string comparator_; 27002: uint64_t log_number_ = 0; 27002: uint64_t prev_log_number_ = 0; 27002: uint64_t next_file_number_ = 0; 27002: uint32_t max_column_family_ = 0; 27002: 27002: uint64_t min_log_number_to_keep_ = 0; 27002: SequenceNumber last_sequence_ = 0; 27002: bool has_db_id_ = false; 27002: bool has_comparator_ = false; 27002: bool has_log_number_ = false; 27002: bool has_prev_log_number_ = false; 27002: bool has_next_file_number_ = false; 27002: bool has_max_column_family_ = false; 27002: bool has_min_log_number_to_keep_ = false; 27002: bool has_last_sequence_ = false; 27002: 27002: 27002: CompactCursors compact_cursors_; 27002: 27002: DeletedFiles deleted_files_; 27002: NewFiles new_files_; 27002: 27002: BlobFileAdditions blob_file_additions_; 27002: BlobFileGarbages blob_file_garbages_; 27002: 27002: WalAdditions wal_additions_; 27002: WalDeletion wal_deletion_; 27002: 27002: 27002: 27002: uint32_t column_family_ = 0; 27002: 27002: 27002: 27002: bool is_column_family_drop_ = false; 27002: bool is_column_family_add_ = false; 27002: std::string column_family_name_; 27002: 27002: bool is_in_atomic_group_ = false; 27002: uint32_t remaining_entries_ = 0; 27002: 27002: std::string full_history_ts_low_; 27002: }; 27002: 27002: } 27002: # 24 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 27002: 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 27002: namespace rocksdb { 27002: # 34 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 27002: using UnrefHandler = void (*)(void* ptr); 27002: # 44 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 27002: class ThreadLocalPtr { 27002: public: 27002: explicit ThreadLocalPtr(UnrefHandler handler = nullptr); 27002: 27002: ThreadLocalPtr(const ThreadLocalPtr&) = delete; 27002: ThreadLocalPtr& operator=(const ThreadLocalPtr&) = delete; 27002: 27002: ~ThreadLocalPtr(); 27002: 27002: 27002: void* Get() const; 27002: 27002: 27002: void Reset(void* ptr); 27002: 27002: 27002: void* Swap(void* ptr); 27002: 27002: 27002: 27002: 27002: 27002: bool CompareAndSwap(void* ptr, void*& expected); 27002: 27002: 27002: 27002: void Scrape(autovector* ptrs, void* const replacement); 27002: 27002: using FoldFunc = std::function; 27002: 27002: 27002: 27002: 27002: void Fold(FoldFunc func, void* res); 27002: 27002: 27002: 27002: static uint32_t TEST_PeekId(); 27002: # 90 "/build/reproducible-path/rocksdb-7.8.3/util/thread_local.h" 27002: static void InitSingletons(); 27002: 27002: class StaticMeta; 27002: 27002: private: 27002: 27002: static StaticMeta* Instance(); 27002: 27002: const uint32_t id_; 27002: }; 27002: 27002: } 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 2 27002: # 30 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: namespace rocksdb { 27002: 27002: class Logger; 27002: # 41 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: class ConcurrentArena : public Allocator { 27002: public: 27002: 27002: 27002: 27002: 27002: explicit ConcurrentArena(size_t block_size = Arena::kMinBlockSize, 27002: AllocTracker* tracker = nullptr, 27002: size_t huge_page_size = 0); 27002: 27002: char* Allocate(size_t bytes) override { 27002: return AllocateImpl(bytes, false , 27002: [this, bytes]() { return arena_.Allocate(bytes); }); 27002: } 27002: 27002: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 27002: Logger* logger = nullptr) override { 27002: size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1; 27002: 27002: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 27002: (static_cast ( 27002: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0 27002: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: "rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0" 27002: # 59 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 27002: , "./memory/concurrent_arena.h", 59, __extension__ __PRETTY_FUNCTION__)) 27002: 27002: # 60 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: ; 27002: 27002: return AllocateImpl(rounded_up, huge_page_size != 0 , 27002: [this, rounded_up, huge_page_size, logger]() { 27002: return arena_.AllocateAligned(rounded_up, 27002: huge_page_size, logger); 27002: }); 27002: } 27002: 27002: size_t ApproximateMemoryUsage() const { 27002: std::unique_lock lock(arena_mutex_, std::defer_lock); 27002: lock.lock(); 27002: return arena_.ApproximateMemoryUsage() - ShardAllocatedAndUnused(); 27002: } 27002: 27002: size_t MemoryAllocatedBytes() const { 27002: return memory_allocated_bytes_.load(std::memory_order_relaxed); 27002: } 27002: 27002: size_t AllocatedAndUnused() const { 27002: return arena_allocated_and_unused_.load(std::memory_order_relaxed) + 27002: ShardAllocatedAndUnused(); 27002: } 27002: 27002: size_t IrregularBlockNum() const { 27002: return irregular_block_num_.load(std::memory_order_relaxed); 27002: } 27002: 27002: size_t BlockSize() const override { return arena_.BlockSize(); } 27002: 27002: private: 27002: struct Shard { 27002: char padding[40] ; 27002: mutable SpinMutex mutex; 27002: char* free_begin_; 27002: std::atomic allocated_and_unused_; 27002: 27002: Shard() : free_begin_(nullptr), allocated_and_unused_(0) {} 27002: }; 27002: 27002: static thread_local size_t tls_cpuid; 27002: 27002: char padding0[56] ; 27002: 27002: size_t shard_block_size_; 27002: 27002: CoreLocalArray shards_; 27002: 27002: Arena arena_; 27002: mutable SpinMutex arena_mutex_; 27002: std::atomic arena_allocated_and_unused_; 27002: std::atomic memory_allocated_bytes_; 27002: std::atomic irregular_block_num_; 27002: 27002: char padding1[56] ; 27002: 27002: Shard* Repick(); 27002: 27002: size_t ShardAllocatedAndUnused() const { 27002: size_t total = 0; 27002: for (size_t i = 0; i < shards_.Size(); ++i) { 27002: total += shards_.AccessAtCore(i)->allocated_and_unused_.load( 27002: std::memory_order_relaxed); 27002: } 27002: return total; 27002: } 27002: 27002: template 27002: char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { 27002: size_t cpu; 27002: 27002: 27002: 27002: 27002: 27002: std::unique_lock arena_lock(arena_mutex_, std::defer_lock); 27002: if (bytes > shard_block_size_ / 4 || force_arena || 27002: ((cpu = tls_cpuid) == 0 && 27002: !shards_.AccessAtCore(0)->allocated_and_unused_.load( 27002: std::memory_order_relaxed) && 27002: arena_lock.try_lock())) { 27002: if (!arena_lock.owns_lock()) { 27002: arena_lock.lock(); 27002: } 27002: auto rv = func(); 27002: Fixup(); 27002: return rv; 27002: } 27002: 27002: 27002: Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); 27002: if (!s->mutex.try_lock()) { 27002: s = Repick(); 27002: s->mutex.lock(); 27002: } 27002: std::unique_lock lock(s->mutex, std::adopt_lock); 27002: 27002: size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); 27002: if (avail < bytes) { 27002: 27002: std::lock_guard reload_lock(arena_mutex_); 27002: 27002: 27002: 27002: auto exact = arena_allocated_and_unused_.load(std::memory_order_relaxed); 27002: 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 27002: (static_cast ( 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: exact == arena_.AllocatedAndUnused() 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: "exact == arena_.AllocatedAndUnused()" 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 3 4 27002: , "./memory/concurrent_arena.h", 165, __extension__ __PRETTY_FUNCTION__)) 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: ; 27002: 27002: if (exact >= bytes && arena_.IsInInlineBlock()) { 27002: # 176 "/build/reproducible-path/rocksdb-7.8.3/memory/concurrent_arena.h" 27002: auto rv = func(); 27002: Fixup(); 27002: return rv; 27002: } 27002: 27002: avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 27002: ? exact 27002: : shard_block_size_; 27002: s->free_begin_ = arena_.AllocateAligned(avail); 27002: Fixup(); 27002: } 27002: s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); 27002: 27002: char* rv; 27002: if ((bytes % sizeof(void*)) == 0) { 27002: 27002: rv = s->free_begin_; 27002: s->free_begin_ += bytes; 27002: } else { 27002: 27002: rv = s->free_begin_ + avail - bytes; 27002: } 27002: return rv; 27002: } 27002: 27002: void Fixup() { 27002: arena_allocated_and_unused_.store(arena_.AllocatedAndUnused(), 27002: std::memory_order_relaxed); 27002: memory_allocated_bytes_.store(arena_.MemoryAllocatedBytes(), 27002: std::memory_order_relaxed); 27002: irregular_block_num_.store(arena_.IrregularBlockNum(), 27002: std::memory_order_relaxed); 27002: } 27002: 27002: ConcurrentArena(const ConcurrentArena&) = delete; 27002: ConcurrentArena& operator=(const ConcurrentArena&) = delete; 27002: }; 27002: 27002: } 27002: # 26 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/block_cache_trace_writer.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/trace_reader_writer.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/trace_reader_writer.h" 27002: class TraceWriter { 27002: public: 27002: virtual ~TraceWriter() = default; 27002: 27002: virtual Status Write(const Slice& data) = 0; 27002: virtual Status Close() = 0; 27002: virtual uint64_t GetFileSize() = 0; 27002: }; 27002: 27002: 27002: 27002: class TraceReader { 27002: public: 27002: virtual ~TraceReader() = default; 27002: 27002: virtual Status Read(std::string* data) = 0; 27002: virtual Status Close() = 0; 27002: 27002: 27002: 27002: virtual Status Reset() = 0; 27002: }; 27002: 27002: 27002: 27002: Status NewFileTraceWriter(Env* env, const EnvOptions& env_options, 27002: const std::string& trace_filename, 27002: std::unique_ptr* trace_writer); 27002: Status NewFileTraceReader(Env* env, const EnvOptions& env_options, 27002: const std::string& trace_filename, 27002: std::unique_ptr* trace_reader); 27002: 27002: } 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/block_cache_trace_writer.h" 2 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: struct BlockCacheTraceRecord { 27002: 27002: uint64_t access_timestamp = 0; 27002: 27002: 27002: 27002: 27002: std::string block_key; 27002: 27002: 27002: TraceType block_type = TraceType::kTraceMax; 27002: 27002: 27002: uint64_t block_size = 0; 27002: 27002: 27002: 27002: 27002: uint64_t cf_id = 0; 27002: 27002: 27002: std::string cf_name; 27002: 27002: 27002: uint32_t level = 0; 27002: 27002: 27002: uint64_t sst_fd_number = 0; 27002: 27002: 27002: 27002: 27002: TableReaderCaller caller = TableReaderCaller::kMaxBlockCacheLookupCaller; 27002: 27002: 27002: bool is_cache_hit = false; 27002: 27002: 27002: bool no_insert = false; 27002: 27002: 27002: 27002: 27002: uint64_t get_id = kReservedGetId; 27002: 27002: 27002: bool get_from_user_specified_snapshot = false; 27002: 27002: 27002: std::string referenced_key; 27002: 27002: 27002: 27002: 27002: uint64_t referenced_data_size = 0; 27002: 27002: 27002: uint64_t num_keys_in_block = 0; 27002: 27002: 27002: bool referenced_key_exist_in_block = false; 27002: 27002: static const uint64_t kReservedGetId; 27002: 27002: BlockCacheTraceRecord() {} 27002: 27002: BlockCacheTraceRecord(uint64_t _access_timestamp, std::string _block_key, 27002: TraceType _block_type, uint64_t _block_size, 27002: uint64_t _cf_id, std::string _cf_name, uint32_t _level, 27002: uint64_t _sst_fd_number, TableReaderCaller _caller, 27002: bool _is_cache_hit, bool _no_insert, uint64_t _get_id, 27002: bool _get_from_user_specified_snapshot = false, 27002: std::string _referenced_key = "", 27002: uint64_t _referenced_data_size = 0, 27002: uint64_t _num_keys_in_block = 0, 27002: bool _referenced_key_exist_in_block = false) 27002: : access_timestamp(_access_timestamp), 27002: block_key(_block_key), 27002: block_type(_block_type), 27002: block_size(_block_size), 27002: cf_id(_cf_id), 27002: cf_name(_cf_name), 27002: level(_level), 27002: sst_fd_number(_sst_fd_number), 27002: caller(_caller), 27002: is_cache_hit(_is_cache_hit), 27002: no_insert(_no_insert), 27002: get_id(_get_id), 27002: get_from_user_specified_snapshot(_get_from_user_specified_snapshot), 27002: referenced_key(_referenced_key), 27002: referenced_data_size(_referenced_data_size), 27002: num_keys_in_block(_num_keys_in_block), 27002: referenced_key_exist_in_block(_referenced_key_exist_in_block) {} 27002: }; 27002: 27002: 27002: struct BlockCacheTraceOptions { 27002: 27002: 27002: uint64_t sampling_frequency = 1; 27002: }; 27002: 27002: 27002: struct BlockCacheTraceWriterOptions { 27002: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 27002: }; 27002: 27002: 27002: 27002: 27002: class BlockCacheTraceWriter { 27002: public: 27002: virtual ~BlockCacheTraceWriter() {} 27002: 27002: 27002: virtual Status WriteBlockAccess(const BlockCacheTraceRecord& record, 27002: const Slice& block_key, const Slice& cf_name, 27002: const Slice& referenced_key) = 0; 27002: 27002: 27002: 27002: virtual Status WriteHeader() = 0; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: std::unique_ptr NewBlockCacheTraceWriter( 27002: SystemClock* clock, const BlockCacheTraceWriterOptions& trace_options, 27002: std::unique_ptr&& trace_writer); 27002: 27002: } 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 2 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct FileStorageInfo { 27002: 27002: std::string relative_filename; 27002: 27002: 27002: std::string directory; 27002: 27002: 27002: 27002: uint64_t file_number = 0; 27002: 27002: FileType file_type = kTempFile; 27002: 27002: 27002: uint64_t size = 0; 27002: 27002: 27002: Temperature temperature = Temperature::kUnknown; 27002: 27002: 27002: 27002: 27002: 27002: std::string file_checksum; 27002: 27002: 27002: 27002: 27002: 27002: std::string file_checksum_func_name; 27002: }; 27002: 27002: 27002: 27002: struct LiveFileStorageInfo : public FileStorageInfo { 27002: 27002: 27002: 27002: 27002: 27002: std::string replacement_contents; 27002: 27002: 27002: 27002: 27002: bool trim_to_size = false; 27002: }; 27002: 27002: 27002: 27002: struct SstFileMetaData : public FileStorageInfo { 27002: SstFileMetaData() { file_type = kTableFile; } 27002: 27002: SstFileMetaData(const std::string& _file_name, uint64_t _file_number, 27002: const std::string& _directory, uint64_t _size, 27002: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno, 27002: const std::string& _smallestkey, 27002: const std::string& _largestkey, uint64_t _num_reads_sampled, 27002: bool _being_compacted, Temperature _temperature, 27002: uint64_t _oldest_blob_file_number, 27002: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 27002: std::string& _file_checksum, 27002: std::string& _file_checksum_func_name) 27002: : smallest_seqno(_smallest_seqno), 27002: largest_seqno(_largest_seqno), 27002: smallestkey(_smallestkey), 27002: largestkey(_largestkey), 27002: num_reads_sampled(_num_reads_sampled), 27002: being_compacted(_being_compacted), 27002: num_entries(0), 27002: num_deletions(0), 27002: oldest_blob_file_number(_oldest_blob_file_number), 27002: oldest_ancester_time(_oldest_ancester_time), 27002: file_creation_time(_file_creation_time) { 27002: if (!_file_name.empty()) { 27002: if (_file_name[0] == '/') { 27002: relative_filename = _file_name.substr(1); 27002: name = _file_name; 27002: } else { 27002: relative_filename = _file_name; 27002: name = std::string("/") + _file_name; 27002: } 27002: 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 27002: (static_cast ( 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: relative_filename.size() + 1 == name.size() 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: "relative_filename.size() + 1 == name.size()" 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 27002: , "./include/rocksdb/metadata.h", 106, __extension__ __PRETTY_FUNCTION__)) 27002: # 106 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: ; 27002: 27002: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 27002: (static_cast ( 27002: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: relative_filename[0] != '/' 27002: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: "relative_filename[0] != '/'" 27002: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 27002: , "./include/rocksdb/metadata.h", 107, __extension__ __PRETTY_FUNCTION__)) 27002: # 107 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: ; 27002: 27002: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 27002: (static_cast ( 27002: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: name[0] == '/' 27002: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: "name[0] == '/'" 27002: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 3 4 27002: , "./include/rocksdb/metadata.h", 108, __extension__ __PRETTY_FUNCTION__)) 27002: # 108 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: ; 27002: } 27002: directory = _directory; 27002: db_path = _directory; 27002: file_number = _file_number; 27002: file_type = kTableFile; 27002: size = _size; 27002: temperature = _temperature; 27002: file_checksum = _file_checksum; 27002: file_checksum_func_name = _file_checksum_func_name; 27002: } 27002: 27002: SequenceNumber smallest_seqno = 0; 27002: SequenceNumber largest_seqno = 0; 27002: std::string smallestkey; 27002: std::string largestkey; 27002: uint64_t num_reads_sampled = 0; 27002: bool being_compacted = 27002: false; 27002: 27002: uint64_t num_entries = 0; 27002: uint64_t num_deletions = 0; 27002: 27002: uint64_t oldest_blob_file_number = 0; 27002: # 140 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/metadata.h" 27002: uint64_t oldest_ancester_time = 0; 27002: 27002: 27002: uint64_t file_creation_time = 0; 27002: 27002: 27002: 27002: 27002: std::string name; 27002: 27002: 27002: std::string db_path; 27002: }; 27002: 27002: 27002: struct LiveFileMetaData : SstFileMetaData { 27002: std::string column_family_name; 27002: int level; 27002: LiveFileMetaData() : column_family_name(), level(0) {} 27002: }; 27002: 27002: 27002: struct BlobMetaData { 27002: BlobMetaData() 27002: : blob_file_number(0), 27002: blob_file_size(0), 27002: total_blob_count(0), 27002: total_blob_bytes(0), 27002: garbage_blob_count(0), 27002: garbage_blob_bytes(0) {} 27002: 27002: BlobMetaData(uint64_t _file_number, const std::string& _file_name, 27002: const std::string& _file_path, uint64_t _file_size, 27002: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 27002: uint64_t _garbage_blob_count, uint64_t _garbage_blob_bytes, 27002: const std::string& _file_checksum, 27002: const std::string& _file_checksum_func_name) 27002: : blob_file_number(_file_number), 27002: blob_file_name(_file_name), 27002: blob_file_path(_file_path), 27002: blob_file_size(_file_size), 27002: total_blob_count(_total_blob_count), 27002: total_blob_bytes(_total_blob_bytes), 27002: garbage_blob_count(_garbage_blob_count), 27002: garbage_blob_bytes(_garbage_blob_bytes), 27002: checksum_method(_file_checksum), 27002: checksum_value(_file_checksum_func_name) {} 27002: uint64_t blob_file_number; 27002: std::string blob_file_name; 27002: std::string blob_file_path; 27002: uint64_t blob_file_size; 27002: uint64_t total_blob_count; 27002: uint64_t total_blob_bytes; 27002: uint64_t garbage_blob_count; 27002: uint64_t garbage_blob_bytes; 27002: std::string checksum_method; 27002: std::string checksum_value; 27002: }; 27002: 27002: 27002: struct LevelMetaData { 27002: LevelMetaData(int _level, uint64_t _size, 27002: const std::vector&& _files) 27002: : level(_level), size(_size), files(_files) {} 27002: 27002: 27002: const int level; 27002: 27002: 27002: const uint64_t size; 27002: 27002: const std::vector files; 27002: }; 27002: 27002: 27002: struct ColumnFamilyMetaData { 27002: ColumnFamilyMetaData() : size(0), file_count(0), name("") {} 27002: ColumnFamilyMetaData(const std::string& _name, uint64_t _size, 27002: const std::vector&& _levels) 27002: : size(_size), name(_name), levels(_levels) {} 27002: 27002: 27002: 27002: uint64_t size; 27002: 27002: size_t file_count; 27002: 27002: std::string name; 27002: 27002: std::vector levels; 27002: 27002: 27002: uint64_t blob_file_size = 0; 27002: 27002: size_t blob_file_count = 0; 27002: 27002: std::vector blob_files; 27002: }; 27002: 27002: 27002: 27002: struct ExportImportFilesMetaData { 27002: std::string db_comparator_name; 27002: std::vector files; 27002: }; 27002: } 27002: # 24 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/snapshot.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class DB; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class Snapshot { 27002: public: 27002: virtual SequenceNumber GetSequenceNumber() const = 0; 27002: 27002: 27002: 27002: virtual int64_t GetUnixTime() const = 0; 27002: 27002: virtual uint64_t GetTimestamp() const = 0; 27002: 27002: protected: 27002: virtual ~Snapshot(); 27002: }; 27002: 27002: 27002: 27002: 27002: class ManagedSnapshot { 27002: public: 27002: explicit ManagedSnapshot(DB* db); 27002: 27002: 27002: ManagedSnapshot(DB* db, const Snapshot* _snapshot); 27002: 27002: ~ManagedSnapshot(); 27002: 27002: const Snapshot* snapshot(); 27002: 27002: private: 27002: DB* db_; 27002: const Snapshot* snapshot_; 27002: }; 27002: 27002: } 27002: # 26 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/sst_file_writer.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 24 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/sst_file_writer.h" 27002: namespace rocksdb { 27002: 27002: class Comparator; 27002: 27002: 27002: 27002: struct ExternalSstFileInfo { 27002: ExternalSstFileInfo() 27002: : file_path(""), 27002: smallest_key(""), 27002: largest_key(""), 27002: smallest_range_del_key(""), 27002: largest_range_del_key(""), 27002: file_checksum(""), 27002: file_checksum_func_name(""), 27002: sequence_number(0), 27002: file_size(0), 27002: num_entries(0), 27002: num_range_del_entries(0), 27002: version(0) {} 27002: 27002: ExternalSstFileInfo(const std::string& _file_path, 27002: const std::string& _smallest_key, 27002: const std::string& _largest_key, 27002: SequenceNumber _sequence_number, uint64_t _file_size, 27002: int32_t _num_entries, int32_t _version) 27002: : file_path(_file_path), 27002: smallest_key(_smallest_key), 27002: largest_key(_largest_key), 27002: smallest_range_del_key(""), 27002: largest_range_del_key(""), 27002: file_checksum(""), 27002: file_checksum_func_name(""), 27002: sequence_number(_sequence_number), 27002: file_size(_file_size), 27002: num_entries(_num_entries), 27002: num_range_del_entries(0), 27002: version(_version) {} 27002: 27002: std::string file_path; 27002: std::string smallest_key; 27002: std::string largest_key; 27002: std::string 27002: smallest_range_del_key; 27002: std::string largest_range_del_key; 27002: std::string file_checksum; 27002: std::string file_checksum_func_name; 27002: SequenceNumber sequence_number; 27002: uint64_t file_size; 27002: uint64_t num_entries; 27002: uint64_t num_range_del_entries; 27002: int32_t version; 27002: }; 27002: 27002: 27002: 27002: class SstFileWriter { 27002: public: 27002: # 92 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/sst_file_writer.h" 27002: SstFileWriter(const EnvOptions& env_options, const Options& options, 27002: ColumnFamilyHandle* column_family = nullptr, 27002: bool invalidate_page_cache = true, 27002: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 27002: bool skip_filters = false) 27002: : SstFileWriter(env_options, options, options.comparator, column_family, 27002: invalidate_page_cache, io_priority, skip_filters) {} 27002: 27002: 27002: SstFileWriter(const EnvOptions& env_options, const Options& options, 27002: const Comparator* user_comparator, 27002: ColumnFamilyHandle* column_family = nullptr, 27002: bool invalidate_page_cache = true, 27002: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 27002: bool skip_filters = false); 27002: 27002: ~SstFileWriter(); 27002: 27002: 27002: Status Open(const std::string& file_path); 27002: 27002: 27002: 27002: 27002: __attribute__((__deprecated__)) Status Add(const Slice& user_key, const Slice& value); 27002: 27002: 27002: 27002: 27002: Status Put(const Slice& user_key, const Slice& value); 27002: 27002: 27002: 27002: 27002: 27002: 27002: Status Put(const Slice& user_key, const Slice& timestamp, const Slice& value); 27002: 27002: 27002: 27002: 27002: Status Merge(const Slice& user_key, const Slice& value); 27002: 27002: 27002: 27002: 27002: Status Delete(const Slice& user_key); 27002: 27002: 27002: 27002: 27002: 27002: 27002: Status Delete(const Slice& user_key, const Slice& timestamp); 27002: 27002: 27002: 27002: Status DeleteRange(const Slice& begin_key, const Slice& end_key); 27002: 27002: 27002: 27002: 27002: 27002: Status DeleteRange(const Slice& begin_key, const Slice& end_key, 27002: const Slice& timestamp); 27002: 27002: 27002: 27002: 27002: 27002: Status Finish(ExternalSstFileInfo* file_info = nullptr); 27002: 27002: 27002: uint64_t FileSize(); 27002: 27002: private: 27002: void InvalidatePageCache(bool closing); 27002: struct Rep; 27002: std::unique_ptr rep_; 27002: }; 27002: } 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/transaction_log.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 1 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 27002: 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch_base.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch_base.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: class Status; 27002: class ColumnFamilyHandle; 27002: class WriteBatch; 27002: struct SliceParts; 27002: 27002: 27002: 27002: 27002: class WriteBatchBase { 27002: public: 27002: virtual ~WriteBatchBase() {} 27002: 27002: 27002: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& value) = 0; 27002: virtual Status Put(const Slice& key, const Slice& value) = 0; 27002: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& ts, const Slice& value) = 0; 27002: 27002: 27002: 27002: 27002: virtual Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 27002: const SliceParts& value); 27002: virtual Status Put(const SliceParts& key, const SliceParts& value); 27002: 27002: 27002: 27002: virtual Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 27002: const WideColumns& columns) = 0; 27002: 27002: 27002: 27002: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& value) = 0; 27002: virtual Status Merge(const Slice& key, const Slice& value) = 0; 27002: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& ts, const Slice& value) = 0; 27002: 27002: 27002: virtual Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 27002: const SliceParts& value); 27002: virtual Status Merge(const SliceParts& key, const SliceParts& value); 27002: 27002: 27002: virtual Status Delete(ColumnFamilyHandle* column_family, 27002: const Slice& key) = 0; 27002: virtual Status Delete(const Slice& key) = 0; 27002: virtual Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& ts) = 0; 27002: 27002: 27002: virtual Status Delete(ColumnFamilyHandle* column_family, 27002: const SliceParts& key); 27002: virtual Status Delete(const SliceParts& key); 27002: 27002: 27002: 27002: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 27002: const Slice& key) = 0; 27002: virtual Status SingleDelete(const Slice& key) = 0; 27002: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 27002: const Slice& key, const Slice& ts) = 0; 27002: 27002: 27002: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 27002: const SliceParts& key); 27002: virtual Status SingleDelete(const SliceParts& key); 27002: 27002: 27002: 27002: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 27002: const Slice& begin_key, const Slice& end_key) = 0; 27002: virtual Status DeleteRange(const Slice& begin_key, const Slice& end_key) = 0; 27002: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 27002: const Slice& begin_key, const Slice& end_key, 27002: const Slice& ts) = 0; 27002: 27002: 27002: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 27002: const SliceParts& begin_key, 27002: const SliceParts& end_key); 27002: virtual Status DeleteRange(const SliceParts& begin_key, 27002: const SliceParts& end_key); 27002: # 114 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch_base.h" 27002: virtual Status PutLogData(const Slice& blob) = 0; 27002: 27002: 27002: virtual void Clear() = 0; 27002: 27002: 27002: 27002: 27002: virtual WriteBatch* GetWriteBatch() = 0; 27002: 27002: 27002: 27002: virtual void SetSavePoint() = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual Status RollbackToSavePoint() = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual Status PopSavePoint() = 0; 27002: 27002: 27002: virtual void SetMaxBytes(size_t max_bytes) = 0; 27002: }; 27002: 27002: } 27002: # 37 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: class ColumnFamilyHandle; 27002: struct SavePoints; 27002: struct SliceParts; 27002: 27002: struct SavePoint { 27002: size_t size; 27002: int count; 27002: uint32_t content_flags; 27002: 27002: SavePoint() : size(0), count(0), content_flags(0) {} 27002: 27002: SavePoint(size_t _size, int _count, uint32_t _flags) 27002: : size(_size), count(_count), content_flags(_flags) {} 27002: 27002: void clear() { 27002: size = 0; 27002: count = 0; 27002: content_flags = 0; 27002: } 27002: 27002: bool is_cleared() const { return (size | count | content_flags) == 0; } 27002: }; 27002: 27002: class WriteBatch : public WriteBatchBase { 27002: public: 27002: explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0) 27002: : WriteBatch(reserved_bytes, max_bytes, 0, 0) {} 27002: 27002: 27002: 27002: 27002: explicit WriteBatch(size_t reserved_bytes, size_t max_bytes, 27002: size_t protection_bytes_per_key, size_t default_cf_ts_sz); 27002: ~WriteBatch() override; 27002: 27002: using WriteBatchBase::Put; 27002: 27002: 27002: 27002: 27002: 27002: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& value) override; 27002: Status Put(const Slice& key, const Slice& value) override { 27002: return Put(nullptr, key, value); 27002: } 27002: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& ts, const Slice& value) override; 27002: # 97 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 27002: Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 27002: const SliceParts& value) override; 27002: Status Put(const SliceParts& key, const SliceParts& value) override { 27002: return Put(nullptr, key, value); 27002: } 27002: 27002: 27002: 27002: using WriteBatchBase::PutEntity; 27002: Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 27002: const WideColumns& columns) override; 27002: 27002: using WriteBatchBase::Delete; 27002: 27002: 27002: 27002: 27002: 27002: Status Delete(ColumnFamilyHandle* column_family, const Slice& key) override; 27002: Status Delete(const Slice& key) override { return Delete(nullptr, key); } 27002: Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& ts) override; 27002: 27002: 27002: 27002: 27002: 27002: 27002: Status Delete(ColumnFamilyHandle* column_family, 27002: const SliceParts& key) override; 27002: Status Delete(const SliceParts& key) override { return Delete(nullptr, key); } 27002: 27002: using WriteBatchBase::SingleDelete; 27002: 27002: Status SingleDelete(ColumnFamilyHandle* column_family, 27002: const Slice& key) override; 27002: Status SingleDelete(const Slice& key) override { 27002: return SingleDelete(nullptr, key); 27002: } 27002: Status SingleDelete(ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& ts) override; 27002: 27002: 27002: Status SingleDelete(ColumnFamilyHandle* column_family, 27002: const SliceParts& key) override; 27002: Status SingleDelete(const SliceParts& key) override { 27002: return SingleDelete(nullptr, key); 27002: } 27002: 27002: using WriteBatchBase::DeleteRange; 27002: 27002: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 27002: const Slice& end_key) override; 27002: Status DeleteRange(const Slice& begin_key, const Slice& end_key) override { 27002: return DeleteRange(nullptr, begin_key, end_key); 27002: } 27002: 27002: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 27002: const Slice& end_key, const Slice& ts) override; 27002: 27002: 27002: Status DeleteRange(ColumnFamilyHandle* column_family, 27002: const SliceParts& begin_key, 27002: const SliceParts& end_key) override; 27002: Status DeleteRange(const SliceParts& begin_key, 27002: const SliceParts& end_key) override { 27002: return DeleteRange(nullptr, begin_key, end_key); 27002: } 27002: 27002: using WriteBatchBase::Merge; 27002: 27002: 27002: Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& value) override; 27002: Status Merge(const Slice& key, const Slice& value) override { 27002: return Merge(nullptr, key, value); 27002: } 27002: Status Merge(ColumnFamilyHandle* , const Slice& , 27002: const Slice& , const Slice& ) override { 27002: return Status::NotSupported( 27002: "Merge does not support user-defined timestamp"); 27002: } 27002: 27002: 27002: Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 27002: const SliceParts& value) override; 27002: Status Merge(const SliceParts& key, const SliceParts& value) override { 27002: return Merge(nullptr, key, value); 27002: } 27002: 27002: using WriteBatchBase::PutLogData; 27002: # 198 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 27002: Status PutLogData(const Slice& blob) override; 27002: 27002: using WriteBatchBase::Clear; 27002: 27002: void Clear() override; 27002: 27002: 27002: 27002: void SetSavePoint() override; 27002: 27002: 27002: 27002: 27002: 27002: 27002: Status RollbackToSavePoint() override; 27002: 27002: 27002: 27002: 27002: 27002: Status PopSavePoint() override; 27002: 27002: 27002: class Handler { 27002: public: 27002: virtual ~Handler(); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status PutCF(uint32_t column_family_id, const Slice& key, 27002: const Slice& value) { 27002: if (column_family_id == 0) { 27002: 27002: 27002: 27002: Put(key, value); 27002: return Status::OK(); 27002: } 27002: return Status::InvalidArgument( 27002: "non-default column family and PutCF not implemented"); 27002: } 27002: virtual void Put(const Slice& , const Slice& ) {} 27002: 27002: virtual Status PutEntityCF(uint32_t , 27002: const Slice& , 27002: const Slice& ) { 27002: return Status::NotSupported("PutEntityCF not implemented"); 27002: } 27002: 27002: virtual Status DeleteCF(uint32_t column_family_id, const Slice& key) { 27002: if (column_family_id == 0) { 27002: Delete(key); 27002: return Status::OK(); 27002: } 27002: return Status::InvalidArgument( 27002: "non-default column family and DeleteCF not implemented"); 27002: } 27002: virtual void Delete(const Slice& ) {} 27002: 27002: virtual Status SingleDeleteCF(uint32_t column_family_id, const Slice& key) { 27002: if (column_family_id == 0) { 27002: SingleDelete(key); 27002: return Status::OK(); 27002: } 27002: return Status::InvalidArgument( 27002: "non-default column family and SingleDeleteCF not implemented"); 27002: } 27002: virtual void SingleDelete(const Slice& ) {} 27002: 27002: virtual Status DeleteRangeCF(uint32_t , 27002: const Slice& , 27002: const Slice& ) { 27002: return Status::InvalidArgument("DeleteRangeCF not implemented"); 27002: } 27002: 27002: virtual Status MergeCF(uint32_t column_family_id, const Slice& key, 27002: const Slice& value) { 27002: if (column_family_id == 0) { 27002: Merge(key, value); 27002: return Status::OK(); 27002: } 27002: return Status::InvalidArgument( 27002: "non-default column family and MergeCF not implemented"); 27002: } 27002: virtual void Merge(const Slice& , const Slice& ) {} 27002: 27002: virtual Status PutBlobIndexCF(uint32_t , 27002: const Slice& , 27002: const Slice& ) { 27002: return Status::InvalidArgument("PutBlobIndexCF not implemented"); 27002: } 27002: 27002: 27002: virtual void LogData(const Slice& blob); 27002: 27002: virtual Status MarkBeginPrepare(bool = false) { 27002: return Status::InvalidArgument("MarkBeginPrepare() handler not defined."); 27002: } 27002: 27002: virtual Status MarkEndPrepare(const Slice& ) { 27002: return Status::InvalidArgument("MarkEndPrepare() handler not defined."); 27002: } 27002: 27002: virtual Status MarkNoop(bool ) { 27002: return Status::InvalidArgument("MarkNoop() handler not defined."); 27002: } 27002: 27002: virtual Status MarkRollback(const Slice& ) { 27002: return Status::InvalidArgument( 27002: "MarkRollbackPrepare() handler not defined."); 27002: } 27002: 27002: virtual Status MarkCommit(const Slice& ) { 27002: return Status::InvalidArgument("MarkCommit() handler not defined."); 27002: } 27002: 27002: virtual Status MarkCommitWithTimestamp(const Slice& , 27002: const Slice& ) { 27002: return Status::InvalidArgument( 27002: "MarkCommitWithTimestamp() handler not defined."); 27002: } 27002: 27002: 27002: 27002: 27002: virtual bool Continue(); 27002: 27002: protected: 27002: friend class WriteBatchInternal; 27002: enum class OptionState { 27002: kUnknown, 27002: kDisabled, 27002: kEnabled, 27002: }; 27002: virtual OptionState WriteAfterCommit() const { 27002: return OptionState::kUnknown; 27002: } 27002: virtual OptionState WriteBeforePrepare() const { 27002: return OptionState::kUnknown; 27002: } 27002: }; 27002: Status Iterate(Handler* handler) const; 27002: 27002: 27002: const std::string& Data() const { return rep_; } 27002: 27002: 27002: size_t GetDataSize() const { return rep_.size(); } 27002: 27002: 27002: uint32_t Count() const; 27002: 27002: 27002: bool HasPut() const; 27002: 27002: 27002: bool HasPutEntity() const; 27002: 27002: 27002: bool HasDelete() const; 27002: 27002: 27002: bool HasSingleDelete() const; 27002: 27002: 27002: bool HasDeleteRange() const; 27002: 27002: 27002: bool HasMerge() const; 27002: 27002: 27002: bool HasBeginPrepare() const; 27002: 27002: 27002: bool HasEndPrepare() const; 27002: 27002: 27002: bool HasCommit() const; 27002: 27002: 27002: bool HasRollback() const; 27002: # 403 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 27002: Status UpdateTimestamps(const Slice& ts, 27002: std::function ts_sz_func); 27002: 27002: 27002: 27002: 27002: 27002: Status VerifyChecksum() const; 27002: 27002: using WriteBatchBase::GetWriteBatch; 27002: WriteBatch* GetWriteBatch() override { return this; } 27002: 27002: 27002: explicit WriteBatch(const std::string& rep); 27002: explicit WriteBatch(std::string&& rep); 27002: 27002: WriteBatch(const WriteBatch& src); 27002: WriteBatch(WriteBatch&& src) noexcept; 27002: WriteBatch& operator=(const WriteBatch& src); 27002: WriteBatch& operator=(WriteBatch&& src); 27002: 27002: 27002: 27002: void MarkWalTerminationPoint(); 27002: const SavePoint& GetWalTerminationPoint() const { return wal_term_point_; } 27002: 27002: void SetMaxBytes(size_t max_bytes) override { max_bytes_ = max_bytes; } 27002: 27002: struct ProtectionInfo; 27002: size_t GetProtectionBytesPerKey() const; 27002: 27002: private: 27002: friend class WriteBatchInternal; 27002: friend class LocalSavePoint; 27002: 27002: 27002: 27002: friend class WriteBatchWithIndex; 27002: std::unique_ptr save_points_; 27002: 27002: 27002: 27002: 27002: SavePoint wal_term_point_; 27002: 27002: 27002: 27002: 27002: 27002: bool is_latest_persistent_state_ = false; 27002: # 461 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/write_batch.h" 27002: bool needs_in_place_update_ts_ = false; 27002: 27002: 27002: 27002: bool has_key_with_ts_ = false; 27002: 27002: 27002: mutable std::atomic content_flags_; 27002: 27002: 27002: uint32_t ComputeContentFlags() const; 27002: 27002: 27002: size_t max_bytes_; 27002: 27002: std::unique_ptr prot_info_; 27002: 27002: size_t default_cf_ts_sz_ = 0; 27002: 27002: protected: 27002: std::string rep_; 27002: }; 27002: 27002: } 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/transaction_log.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class LogFile; 27002: using VectorLogPtr = std::vector>; 27002: 27002: enum WalFileType { 27002: 27002: 27002: 27002: 27002: 27002: 27002: kArchivedLogFile = 0, 27002: 27002: 27002: kAliveLogFile = 1 27002: }; 27002: 27002: class LogFile { 27002: public: 27002: LogFile() {} 27002: virtual ~LogFile() {} 27002: 27002: 27002: 27002: 27002: virtual std::string PathName() const = 0; 27002: 27002: 27002: 27002: virtual uint64_t LogNumber() const = 0; 27002: 27002: 27002: virtual WalFileType Type() const = 0; 27002: 27002: 27002: virtual SequenceNumber StartSequence() const = 0; 27002: 27002: 27002: virtual uint64_t SizeFileBytes() const = 0; 27002: }; 27002: 27002: struct BatchResult { 27002: SequenceNumber sequence = 0; 27002: std::unique_ptr writeBatchPtr; 27002: 27002: 27002: 27002: 27002: BatchResult() {} 27002: 27002: ~BatchResult() {} 27002: 27002: BatchResult(const BatchResult&) = delete; 27002: 27002: BatchResult& operator=(const BatchResult&) = delete; 27002: 27002: BatchResult(BatchResult&& bResult) 27002: : sequence(std::move(bResult.sequence)), 27002: writeBatchPtr(std::move(bResult.writeBatchPtr)) {} 27002: 27002: BatchResult& operator=(BatchResult&& bResult) { 27002: sequence = std::move(bResult.sequence); 27002: writeBatchPtr = std::move(bResult.writeBatchPtr); 27002: return *this; 27002: } 27002: }; 27002: 27002: 27002: 27002: 27002: class TransactionLogIterator { 27002: public: 27002: TransactionLogIterator() {} 27002: virtual ~TransactionLogIterator() {} 27002: 27002: 27002: 27002: 27002: virtual bool Valid() = 0; 27002: 27002: 27002: 27002: virtual void Next() = 0; 27002: 27002: 27002: 27002: virtual Status status() = 0; 27002: 27002: 27002: 27002: 27002: virtual BatchResult GetBatch() = 0; 27002: 27002: 27002: struct ReadOptions { 27002: 27002: 27002: 27002: bool verify_checksums_; 27002: 27002: ReadOptions() : verify_checksums_(true) {} 27002: 27002: explicit ReadOptions(bool verify_checksums) 27002: : verify_checksums_(verify_checksums) {} 27002: }; 27002: }; 27002: } 27002: # 29 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 2 27002: # 44 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: namespace rocksdb { 27002: 27002: struct ColumnFamilyOptions; 27002: struct CompactionOptions; 27002: struct CompactRangeOptions; 27002: struct DBOptions; 27002: struct ExternalSstFileInfo; 27002: struct FlushOptions; 27002: struct Options; 27002: struct ReadOptions; 27002: struct TableProperties; 27002: struct WriteOptions; 27002: 27002: 27002: 27002: class Env; 27002: class EventListener; 27002: class FileSystem; 27002: 27002: class Replayer; 27002: 27002: class StatsHistoryIterator; 27002: 27002: class TraceReader; 27002: class TraceWriter; 27002: 27002: class WriteBatch; 27002: 27002: extern const std::string kDefaultColumnFamilyName; 27002: extern const std::string kPersistentStatsColumnFamilyName; 27002: struct ColumnFamilyDescriptor { 27002: std::string name; 27002: ColumnFamilyOptions options; 27002: ColumnFamilyDescriptor() 27002: : name(kDefaultColumnFamilyName), options(ColumnFamilyOptions()) {} 27002: ColumnFamilyDescriptor(const std::string& _name, 27002: const ColumnFamilyOptions& _options) 27002: : name(_name), options(_options) {} 27002: }; 27002: 27002: class ColumnFamilyHandle { 27002: public: 27002: virtual ~ColumnFamilyHandle() {} 27002: 27002: virtual const std::string& GetName() const = 0; 27002: 27002: virtual uint32_t GetID() const = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status GetDescriptor(ColumnFamilyDescriptor* desc) = 0; 27002: 27002: 27002: virtual const Comparator* GetComparator() const = 0; 27002: }; 27002: 27002: static const int kMajorVersion = 7; 27002: static const int kMinorVersion = 8; 27002: 27002: 27002: struct Range { 27002: Slice start; 27002: Slice limit; 27002: 27002: Range() {} 27002: Range(const Slice& s, const Slice& l) : start(s), limit(l) {} 27002: }; 27002: 27002: struct RangePtr { 27002: const Slice* start; 27002: const Slice* limit; 27002: 27002: RangePtr() : start(nullptr), limit(nullptr) {} 27002: RangePtr(const Slice* s, const Slice* l) : start(s), limit(l) {} 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: struct IngestExternalFileArg { 27002: ColumnFamilyHandle* column_family = nullptr; 27002: std::vector external_files; 27002: IngestExternalFileOptions options; 27002: std::vector files_checksums; 27002: std::vector files_checksum_func_names; 27002: Temperature file_temperature = Temperature::kUnknown; 27002: }; 27002: 27002: struct GetMergeOperandsOptions { 27002: int expected_max_number_of_operands = 0; 27002: }; 27002: 27002: 27002: 27002: 27002: using TablePropertiesCollection = 27002: std::unordered_map>; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class DB { 27002: public: 27002: # 165 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: static Status Open(const Options& options, const std::string& name, 27002: DB** dbptr); 27002: # 182 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: static Status Open(const DBOptions& db_options, const std::string& name, 27002: const std::vector& column_families, 27002: std::vector* handles, DB** dbptr); 27002: # 202 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: static Status OpenForReadOnly(const Options& options, const std::string& name, 27002: DB** dbptr, 27002: bool error_if_wal_file_exists = false); 27002: # 215 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: static Status OpenForReadOnly( 27002: const DBOptions& db_options, const std::string& name, 27002: const std::vector& column_families, 27002: std::vector* handles, DB** dbptr, 27002: bool error_if_wal_file_exists = false); 27002: # 245 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: static Status OpenAsSecondary(const Options& options, const std::string& name, 27002: const std::string& secondary_path, DB** dbptr); 27002: # 280 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: static Status OpenAsSecondary( 27002: const DBOptions& db_options, const std::string& name, 27002: const std::string& secondary_path, 27002: const std::vector& column_families, 27002: std::vector* handles, DB** dbptr); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: static Status OpenAndCompact( 27002: const std::string& name, const std::string& output_directory, 27002: const std::string& input, std::string* output, 27002: const CompactionServiceOptionsOverride& override_options); 27002: 27002: static Status OpenAndCompact( 27002: const OpenAndCompactOptions& options, const std::string& name, 27002: const std::string& output_directory, const std::string& input, 27002: std::string* output, 27002: const CompactionServiceOptionsOverride& override_options); 27002: # 310 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: static Status OpenAndTrimHistory( 27002: const DBOptions& db_options, const std::string& dbname, 27002: const std::vector& column_families, 27002: std::vector* handles, DB** dbptr, 27002: std::string trim_ts); 27002: 27002: virtual Status Resume() { return Status::NotSupported(); } 27002: # 330 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status Close() { return Status::NotSupported(); } 27002: 27002: 27002: 27002: 27002: 27002: static Status ListColumnFamilies(const DBOptions& db_options, 27002: const std::string& name, 27002: std::vector* column_families); 27002: 27002: 27002: DB() {} 27002: 27002: DB(const DB&) = delete; 27002: void operator=(const DB&) = delete; 27002: 27002: virtual ~DB(); 27002: 27002: 27002: 27002: virtual Status CreateColumnFamily(const ColumnFamilyOptions& options, 27002: const std::string& column_family_name, 27002: ColumnFamilyHandle** handle); 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status CreateColumnFamilies( 27002: const ColumnFamilyOptions& options, 27002: const std::vector& column_family_names, 27002: std::vector* handles); 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status CreateColumnFamilies( 27002: const std::vector& column_families, 27002: std::vector* handles); 27002: 27002: 27002: 27002: 27002: virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); 27002: 27002: 27002: 27002: 27002: 27002: virtual Status DropColumnFamilies( 27002: const std::vector& column_families); 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status DestroyColumnFamilyHandle(ColumnFamilyHandle* column_family); 27002: 27002: 27002: 27002: 27002: 27002: virtual Status Put(const WriteOptions& options, 27002: ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& value) = 0; 27002: virtual Status Put(const WriteOptions& options, 27002: ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& ts, const Slice& value) = 0; 27002: virtual Status Put(const WriteOptions& options, const Slice& key, 27002: const Slice& value) { 27002: return Put(options, DefaultColumnFamily(), key, value); 27002: } 27002: virtual Status Put(const WriteOptions& options, const Slice& key, 27002: const Slice& ts, const Slice& value) { 27002: return Put(options, DefaultColumnFamily(), key, ts, value); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status PutEntity(const WriteOptions& options, 27002: ColumnFamilyHandle* column_family, const Slice& key, 27002: const WideColumns& columns); 27002: 27002: 27002: 27002: 27002: 27002: virtual Status Delete(const WriteOptions& options, 27002: ColumnFamilyHandle* column_family, 27002: const Slice& key) = 0; 27002: virtual Status Delete(const WriteOptions& options, 27002: ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& ts) = 0; 27002: virtual Status Delete(const WriteOptions& options, const Slice& key) { 27002: return Delete(options, DefaultColumnFamily(), key); 27002: } 27002: virtual Status Delete(const WriteOptions& options, const Slice& key, 27002: const Slice& ts) { 27002: return Delete(options, DefaultColumnFamily(), key, ts); 27002: } 27002: # 454 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status SingleDelete(const WriteOptions& options, 27002: ColumnFamilyHandle* column_family, 27002: const Slice& key) = 0; 27002: virtual Status SingleDelete(const WriteOptions& options, 27002: ColumnFamilyHandle* column_family, 27002: const Slice& key, const Slice& ts) = 0; 27002: virtual Status SingleDelete(const WriteOptions& options, const Slice& key) { 27002: return SingleDelete(options, DefaultColumnFamily(), key); 27002: } 27002: virtual Status SingleDelete(const WriteOptions& options, const Slice& key, 27002: const Slice& ts) { 27002: return SingleDelete(options, DefaultColumnFamily(), key, ts); 27002: } 27002: # 482 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status DeleteRange(const WriteOptions& options, 27002: ColumnFamilyHandle* column_family, 27002: const Slice& begin_key, const Slice& end_key); 27002: virtual Status DeleteRange(const WriteOptions& options, 27002: ColumnFamilyHandle* column_family, 27002: const Slice& begin_key, const Slice& end_key, 27002: const Slice& ts); 27002: 27002: 27002: 27002: 27002: 27002: virtual Status Merge(const WriteOptions& options, 27002: ColumnFamilyHandle* column_family, const Slice& key, 27002: const Slice& value) = 0; 27002: virtual Status Merge(const WriteOptions& options, const Slice& key, 27002: const Slice& value) { 27002: return Merge(options, DefaultColumnFamily(), key, value); 27002: } 27002: virtual Status Merge(const WriteOptions& , 27002: ColumnFamilyHandle* , 27002: const Slice& , const Slice& , 27002: const Slice& ) { 27002: return Status::NotSupported( 27002: "Merge does not support user-defined timestamp yet"); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; 27002: # 527 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual inline Status Get(const ReadOptions& options, 27002: ColumnFamilyHandle* column_family, const Slice& key, 27002: std::string* value) { 27002: 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: (static_cast ( 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: value != nullptr 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: "value != nullptr" 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: , "./include/rocksdb/db.h", 530, __extension__ __PRETTY_FUNCTION__)) 27002: # 530 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: ; 27002: PinnableSlice pinnable_val(value); 27002: 27002: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: (static_cast ( 27002: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: !pinnable_val.IsPinned() 27002: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: "!pinnable_val.IsPinned()" 27002: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: , "./include/rocksdb/db.h", 532, __extension__ __PRETTY_FUNCTION__)) 27002: # 532 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: ; 27002: auto s = Get(options, column_family, key, &pinnable_val); 27002: if (s.ok() && pinnable_val.IsPinned()) { 27002: value->assign(pinnable_val.data(), pinnable_val.size()); 27002: } 27002: return s; 27002: } 27002: virtual Status Get(const ReadOptions& options, 27002: ColumnFamilyHandle* column_family, const Slice& key, 27002: PinnableSlice* value) = 0; 27002: virtual Status Get(const ReadOptions& options, const Slice& key, 27002: std::string* value) { 27002: return Get(options, DefaultColumnFamily(), key, value); 27002: } 27002: 27002: 27002: 27002: virtual inline Status Get(const ReadOptions& options, 27002: ColumnFamilyHandle* column_family, const Slice& key, 27002: std::string* value, std::string* timestamp) { 27002: 27002: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: (static_cast ( 27002: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: value != nullptr 27002: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: "value != nullptr" 27002: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: , "./include/rocksdb/db.h", 552, __extension__ __PRETTY_FUNCTION__)) 27002: # 552 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: ; 27002: PinnableSlice pinnable_val(value); 27002: 27002: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: (static_cast ( 27002: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: !pinnable_val.IsPinned() 27002: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: "!pinnable_val.IsPinned()" 27002: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 3 4 27002: , "./include/rocksdb/db.h", 554, __extension__ __PRETTY_FUNCTION__)) 27002: # 554 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: ; 27002: auto s = Get(options, column_family, key, &pinnable_val, timestamp); 27002: if (s.ok() && pinnable_val.IsPinned()) { 27002: value->assign(pinnable_val.data(), pinnable_val.size()); 27002: } 27002: return s; 27002: } 27002: virtual Status Get(const ReadOptions& , 27002: ColumnFamilyHandle* , 27002: const Slice& , PinnableSlice* , 27002: std::string* ) { 27002: return Status::NotSupported( 27002: "Get() that returns timestamp is not implemented."); 27002: } 27002: virtual Status Get(const ReadOptions& options, const Slice& key, 27002: std::string* value, std::string* timestamp) { 27002: return Get(options, DefaultColumnFamily(), key, value, timestamp); 27002: } 27002: # 582 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status GetEntity(const ReadOptions& , 27002: ColumnFamilyHandle* , 27002: const Slice& , 27002: PinnableWideColumns* ) { 27002: return Status::NotSupported("GetEntity not supported"); 27002: } 27002: # 607 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status GetMergeOperands( 27002: const ReadOptions& options, ColumnFamilyHandle* column_family, 27002: const Slice& key, PinnableSlice* merge_operands, 27002: GetMergeOperandsOptions* get_merge_operands_options, 27002: int* number_of_operands) = 0; 27002: # 628 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual std::vector MultiGet( 27002: const ReadOptions& options, 27002: const std::vector& column_family, 27002: const std::vector& keys, std::vector* values) = 0; 27002: virtual std::vector MultiGet(const ReadOptions& options, 27002: const std::vector& keys, 27002: std::vector* values) { 27002: return MultiGet( 27002: options, 27002: std::vector(keys.size(), DefaultColumnFamily()), 27002: keys, values); 27002: } 27002: 27002: virtual std::vector MultiGet( 27002: const ReadOptions& , 27002: const std::vector& , 27002: const std::vector& keys, std::vector* , 27002: std::vector* ) { 27002: return std::vector( 27002: keys.size(), Status::NotSupported( 27002: "MultiGet() returning timestamps not implemented.")); 27002: } 27002: virtual std::vector MultiGet(const ReadOptions& options, 27002: const std::vector& keys, 27002: std::vector* values, 27002: std::vector* timestamps) { 27002: return MultiGet( 27002: options, 27002: std::vector(keys.size(), DefaultColumnFamily()), 27002: keys, values, timestamps); 27002: } 27002: # 679 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual void MultiGet(const ReadOptions& options, 27002: ColumnFamilyHandle* column_family, 27002: const size_t num_keys, const Slice* keys, 27002: PinnableSlice* values, Status* statuses, 27002: const bool = false) { 27002: std::vector cf; 27002: std::vector user_keys; 27002: std::vector status; 27002: std::vector vals; 27002: 27002: for (size_t i = 0; i < num_keys; ++i) { 27002: cf.emplace_back(column_family); 27002: user_keys.emplace_back(keys[i]); 27002: } 27002: status = MultiGet(options, cf, user_keys, &vals); 27002: std::copy(status.begin(), status.end(), statuses); 27002: for (auto& value : vals) { 27002: values->PinSelf(value); 27002: values++; 27002: } 27002: } 27002: 27002: virtual void MultiGet(const ReadOptions& options, 27002: ColumnFamilyHandle* column_family, 27002: const size_t num_keys, const Slice* keys, 27002: PinnableSlice* values, std::string* timestamps, 27002: Status* statuses, const bool = false) { 27002: std::vector cf; 27002: std::vector user_keys; 27002: std::vector status; 27002: std::vector vals; 27002: std::vector tss; 27002: 27002: for (size_t i = 0; i < num_keys; ++i) { 27002: cf.emplace_back(column_family); 27002: user_keys.emplace_back(keys[i]); 27002: } 27002: status = MultiGet(options, cf, user_keys, &vals, &tss); 27002: std::copy(status.begin(), status.end(), statuses); 27002: std::copy(tss.begin(), tss.end(), timestamps); 27002: for (auto& value : vals) { 27002: values->PinSelf(value); 27002: values++; 27002: } 27002: } 27002: # 744 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 27002: ColumnFamilyHandle** column_families, const Slice* keys, 27002: PinnableSlice* values, Status* statuses, 27002: const bool = false) { 27002: std::vector cf; 27002: std::vector user_keys; 27002: std::vector status; 27002: std::vector vals; 27002: 27002: for (size_t i = 0; i < num_keys; ++i) { 27002: cf.emplace_back(column_families[i]); 27002: user_keys.emplace_back(keys[i]); 27002: } 27002: status = MultiGet(options, cf, user_keys, &vals); 27002: std::copy(status.begin(), status.end(), statuses); 27002: for (auto& value : vals) { 27002: values->PinSelf(value); 27002: values++; 27002: } 27002: } 27002: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 27002: ColumnFamilyHandle** column_families, const Slice* keys, 27002: PinnableSlice* values, std::string* timestamps, 27002: Status* statuses, const bool = false) { 27002: std::vector cf; 27002: std::vector user_keys; 27002: std::vector status; 27002: std::vector vals; 27002: std::vector tss; 27002: 27002: for (size_t i = 0; i < num_keys; ++i) { 27002: cf.emplace_back(column_families[i]); 27002: user_keys.emplace_back(keys[i]); 27002: } 27002: status = MultiGet(options, cf, user_keys, &vals, &tss); 27002: std::copy(status.begin(), status.end(), statuses); 27002: std::copy(tss.begin(), tss.end(), timestamps); 27002: for (auto& value : vals) { 27002: values->PinSelf(value); 27002: values++; 27002: } 27002: } 27002: # 794 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual bool KeyMayExist(const ReadOptions& , 27002: ColumnFamilyHandle* , 27002: const Slice& , std::string* , 27002: std::string* , 27002: bool* value_found = nullptr) { 27002: if (value_found != nullptr) { 27002: *value_found = false; 27002: } 27002: return true; 27002: } 27002: 27002: virtual bool KeyMayExist(const ReadOptions& options, 27002: ColumnFamilyHandle* column_family, const Slice& key, 27002: std::string* value, bool* value_found = nullptr) { 27002: return KeyMayExist(options, column_family, key, value, 27002: nullptr, value_found); 27002: } 27002: 27002: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 27002: std::string* value, bool* value_found = nullptr) { 27002: return KeyMayExist(options, DefaultColumnFamily(), key, value, value_found); 27002: } 27002: 27002: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 27002: std::string* value, std::string* timestamp, 27002: bool* value_found = nullptr) { 27002: return KeyMayExist(options, DefaultColumnFamily(), key, value, timestamp, 27002: value_found); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Iterator* NewIterator(const ReadOptions& options, 27002: ColumnFamilyHandle* column_family) = 0; 27002: virtual Iterator* NewIterator(const ReadOptions& options) { 27002: return NewIterator(options, DefaultColumnFamily()); 27002: } 27002: 27002: 27002: 27002: virtual Status NewIterators( 27002: const ReadOptions& options, 27002: const std::vector& column_families, 27002: std::vector* iterators) = 0; 27002: # 850 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual const Snapshot* GetSnapshot() = 0; 27002: 27002: 27002: 27002: virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0; 27002: # 863 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: struct Properties { 27002: 27002: 27002: 27002: static const std::string kNumFilesAtLevelPrefix; 27002: 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kCompressionRatioAtLevelPrefix; 27002: 27002: 27002: 27002: static const std::string kStats; 27002: 27002: 27002: 27002: static const std::string kSSTables; 27002: 27002: 27002: 27002: static const std::string kCFStats; 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kCFStatsNoFileHistogram; 27002: 27002: 27002: 27002: static const std::string kCFFileHistogram; 27002: 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kDBStats; 27002: 27002: 27002: 27002: static const std::string kLevelStats; 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kBlockCacheEntryStats; 27002: 27002: 27002: 27002: static const std::string kFastBlockCacheEntryStats; 27002: 27002: 27002: 27002: static const std::string kNumImmutableMemTable; 27002: 27002: 27002: 27002: static const std::string kNumImmutableMemTableFlushed; 27002: 27002: 27002: 27002: static const std::string kMemTableFlushPending; 27002: 27002: 27002: 27002: static const std::string kNumRunningFlushes; 27002: 27002: 27002: 27002: static const std::string kCompactionPending; 27002: 27002: 27002: 27002: static const std::string kNumRunningCompactions; 27002: 27002: 27002: 27002: static const std::string kBackgroundErrors; 27002: 27002: 27002: 27002: static const std::string kCurSizeActiveMemTable; 27002: 27002: 27002: 27002: static const std::string kCurSizeAllMemTables; 27002: 27002: 27002: 27002: static const std::string kSizeAllMemTables; 27002: 27002: 27002: 27002: static const std::string kNumEntriesActiveMemTable; 27002: 27002: 27002: 27002: static const std::string kNumEntriesImmMemTables; 27002: 27002: 27002: 27002: static const std::string kNumDeletesActiveMemTable; 27002: 27002: 27002: 27002: static const std::string kNumDeletesImmMemTables; 27002: 27002: 27002: 27002: static const std::string kEstimateNumKeys; 27002: 27002: 27002: 27002: 27002: static const std::string kEstimateTableReadersMem; 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kIsFileDeletionsEnabled; 27002: 27002: 27002: 27002: static const std::string kNumSnapshots; 27002: 27002: 27002: 27002: static const std::string kOldestSnapshotTime; 27002: 27002: 27002: 27002: static const std::string kOldestSnapshotSequence; 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kNumLiveVersions; 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kCurrentSuperVersionNumber; 27002: 27002: 27002: 27002: 27002: static const std::string kEstimateLiveDataSize; 27002: 27002: 27002: 27002: static const std::string kMinLogNumberToKeep; 27002: 27002: 27002: 27002: 27002: static const std::string kMinObsoleteSstNumberToKeep; 27002: 27002: 27002: 27002: 27002: static const std::string kTotalSstFilesSize; 27002: 27002: 27002: 27002: static const std::string kLiveSstFilesSize; 27002: 27002: 27002: 27002: static const std::string kLiveSstFilesSizeAtTemperature; 27002: 27002: 27002: 27002: static const std::string kBaseLevel; 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kEstimatePendingCompactionBytes; 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kAggregatedTableProperties; 27002: 27002: 27002: 27002: 27002: static const std::string kAggregatedTablePropertiesAtLevel; 27002: 27002: 27002: 27002: static const std::string kActualDelayedWriteRate; 27002: 27002: 27002: static const std::string kIsWriteStopped; 27002: 27002: 27002: 27002: 27002: 27002: static const std::string kEstimateOldestKeyTime; 27002: 27002: 27002: static const std::string kBlockCacheCapacity; 27002: 27002: 27002: 27002: static const std::string kBlockCacheUsage; 27002: 27002: 27002: 27002: static const std::string kBlockCachePinnedUsage; 27002: 27002: 27002: 27002: static const std::string kOptionsStatistics; 27002: 27002: 27002: 27002: static const std::string kNumBlobFiles; 27002: 27002: 27002: 27002: 27002: static const std::string kBlobStats; 27002: 27002: 27002: 27002: static const std::string kTotalBlobFileSize; 27002: 27002: 27002: 27002: static const std::string kLiveBlobFileSize; 27002: 27002: 27002: 27002: static const std::string kLiveBlobFileGarbageSize; 27002: 27002: 27002: static const std::string kBlobCacheCapacity; 27002: 27002: 27002: 27002: static const std::string kBlobCacheUsage; 27002: 27002: 27002: 27002: static const std::string kBlobCachePinnedUsage; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual bool GetProperty(ColumnFamilyHandle* column_family, 27002: const Slice& property, std::string* value) = 0; 27002: virtual bool GetProperty(const Slice& property, std::string* value) { 27002: return GetProperty(DefaultColumnFamily(), property, value); 27002: } 27002: 27002: 27002: 27002: virtual bool GetMapProperty(ColumnFamilyHandle* column_family, 27002: const Slice& property, 27002: std::map* value) = 0; 27002: virtual bool GetMapProperty(const Slice& property, 27002: std::map* value) { 27002: return GetMapProperty(DefaultColumnFamily(), property, value); 27002: } 27002: # 1189 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual bool GetIntProperty(ColumnFamilyHandle* column_family, 27002: const Slice& property, uint64_t* value) = 0; 27002: virtual bool GetIntProperty(const Slice& property, uint64_t* value) { 27002: return GetIntProperty(DefaultColumnFamily(), property, value); 27002: } 27002: 27002: 27002: 27002: 27002: virtual Status ResetStats() { 27002: return Status::NotSupported("Not implemented"); 27002: } 27002: 27002: 27002: 27002: virtual bool GetAggregatedIntProperty(const Slice& property, 27002: uint64_t* value) = 0; 27002: 27002: 27002: 27002: enum class SizeApproximationFlags : uint8_t { 27002: NONE = 0, 27002: INCLUDE_MEMTABLES = 1 << 0, 27002: INCLUDE_FILES = 1 << 1 27002: }; 27002: # 1222 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status GetApproximateSizes(const SizeApproximationOptions& options, 27002: ColumnFamilyHandle* column_family, 27002: const Range* ranges, int n, 27002: uint64_t* sizes) = 0; 27002: 27002: 27002: 27002: 27002: virtual Status GetApproximateSizes(ColumnFamilyHandle* column_family, 27002: const Range* ranges, int n, 27002: uint64_t* sizes, 27002: SizeApproximationFlags include_flags = 27002: SizeApproximationFlags::INCLUDE_FILES); 27002: 27002: virtual Status GetApproximateSizes( 27002: const Range* ranges, int n, uint64_t* sizes, 27002: SizeApproximationFlags include_flags = 27002: SizeApproximationFlags::INCLUDE_FILES) { 27002: return GetApproximateSizes(DefaultColumnFamily(), ranges, n, sizes, 27002: include_flags); 27002: } 27002: 27002: 27002: 27002: virtual void GetApproximateMemTableStats(ColumnFamilyHandle* column_family, 27002: const Range& range, 27002: uint64_t* const count, 27002: uint64_t* const size) = 0; 27002: virtual void GetApproximateMemTableStats(const Range& range, 27002: uint64_t* const count, 27002: uint64_t* const size) { 27002: GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); 27002: } 27002: # 1275 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status CompactRange(const CompactRangeOptions& options, 27002: ColumnFamilyHandle* column_family, 27002: const Slice* begin, const Slice* end) = 0; 27002: virtual Status CompactRange(const CompactRangeOptions& options, 27002: const Slice* begin, const Slice* end) { 27002: return CompactRange(options, DefaultColumnFamily(), begin, end); 27002: } 27002: # 1301 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status SetOptions( 27002: ColumnFamilyHandle* , 27002: const std::unordered_map& ) { 27002: return Status::NotSupported("Not implemented"); 27002: } 27002: 27002: virtual Status SetOptions( 27002: const std::unordered_map& new_options) { 27002: return SetOptions(DefaultColumnFamily(), new_options); 27002: } 27002: # 1321 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status SetDBOptions( 27002: const std::unordered_map& new_options) = 0; 27002: # 1331 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status CompactFiles( 27002: const CompactionOptions& compact_options, 27002: ColumnFamilyHandle* column_family, 27002: const std::vector& input_file_names, const int output_level, 27002: const int output_path_id = -1, 27002: std::vector* const output_file_names = nullptr, 27002: CompactionJobInfo* compaction_job_info = nullptr) = 0; 27002: 27002: virtual Status CompactFiles( 27002: const CompactionOptions& compact_options, 27002: const std::vector& input_file_names, const int output_level, 27002: const int output_path_id = -1, 27002: std::vector* const output_file_names = nullptr, 27002: CompactionJobInfo* compaction_job_info = nullptr) { 27002: return CompactFiles(compact_options, DefaultColumnFamily(), 27002: input_file_names, output_level, output_path_id, 27002: output_file_names, compaction_job_info); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: virtual Status PauseBackgroundWork() = 0; 27002: virtual Status ContinueBackgroundWork() = 0; 27002: # 1366 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status EnableAutoCompaction( 27002: const std::vector& column_family_handles) = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual void DisableManualCompaction() = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual void EnableManualCompaction() = 0; 27002: 27002: 27002: virtual int NumberLevels(ColumnFamilyHandle* column_family) = 0; 27002: virtual int NumberLevels() { return NumberLevels(DefaultColumnFamily()); } 27002: 27002: 27002: 27002: virtual int MaxMemCompactionLevel(ColumnFamilyHandle* column_family) = 0; 27002: virtual int MaxMemCompactionLevel() { 27002: return MaxMemCompactionLevel(DefaultColumnFamily()); 27002: } 27002: 27002: 27002: virtual int Level0StopWriteTrigger(ColumnFamilyHandle* column_family) = 0; 27002: virtual int Level0StopWriteTrigger() { 27002: return Level0StopWriteTrigger(DefaultColumnFamily()); 27002: } 27002: 27002: 27002: 27002: virtual const std::string& GetName() const = 0; 27002: 27002: 27002: virtual Env* GetEnv() const = 0; 27002: 27002: 27002: 27002: virtual FileSystem* GetFileSystem() const; 27002: 27002: 27002: 27002: 27002: 27002: virtual Options GetOptions(ColumnFamilyHandle* column_family) const = 0; 27002: virtual Options GetOptions() const { 27002: return GetOptions(DefaultColumnFamily()); 27002: } 27002: 27002: virtual DBOptions GetDBOptions() const = 0; 27002: 27002: 27002: 27002: 27002: virtual Status Flush(const FlushOptions& options, 27002: ColumnFamilyHandle* column_family) = 0; 27002: virtual Status Flush(const FlushOptions& options) { 27002: return Flush(options, DefaultColumnFamily()); 27002: } 27002: # 1436 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status Flush( 27002: const FlushOptions& options, 27002: const std::vector& column_families) = 0; 27002: 27002: 27002: 27002: virtual Status FlushWAL(bool ) { 27002: return Status::NotSupported("FlushWAL not implemented"); 27002: } 27002: 27002: 27002: 27002: 27002: virtual Status SyncWAL() = 0; 27002: 27002: 27002: virtual Status LockWAL() { 27002: return Status::NotSupported("LockWAL not implemented"); 27002: } 27002: 27002: 27002: virtual Status UnlockWAL() { 27002: return Status::NotSupported("UnlockWAL not implemented"); 27002: } 27002: 27002: 27002: virtual SequenceNumber GetLatestSequenceNumber() const = 0; 27002: 27002: 27002: 27002: 27002: virtual Status DisableFileDeletions() = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual Status IncreaseFullHistoryTsLow(ColumnFamilyHandle* column_family, 27002: std::string ts_low) = 0; 27002: 27002: 27002: virtual Status GetFullHistoryTsLow(ColumnFamilyHandle* column_family, 27002: std::string* ts_low) = 0; 27002: # 1489 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status EnableFileDeletions(bool force = true) = 0; 27002: # 1502 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status GetCreationTimeOfOldestFile(uint64_t* creation_time) = 0; 27002: # 1516 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status GetUpdatesSince( 27002: SequenceNumber seq_number, std::unique_ptr* iter, 27002: const TransactionLogIterator::ReadOptions& read_options = 27002: TransactionLogIterator::ReadOptions()) = 0; 27002: # 1534 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status DeleteFile(std::string name) = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual void GetLiveFilesMetaData( 27002: std::vector* ) {} 27002: 27002: 27002: 27002: 27002: 27002: virtual Status GetLiveFilesChecksumInfo(FileChecksumList* checksum_list) = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status GetLiveFilesStorageInfo( 27002: const LiveFilesStorageInfoOptions& opts, 27002: std::vector* files) = 0; 27002: 27002: 27002: 27002: virtual void GetColumnFamilyMetaData(ColumnFamilyHandle* , 27002: ColumnFamilyMetaData* ) {} 27002: 27002: 27002: void GetColumnFamilyMetaData(ColumnFamilyMetaData* metadata) { 27002: GetColumnFamilyMetaData(DefaultColumnFamily(), metadata); 27002: } 27002: 27002: 27002: 27002: virtual void GetAllColumnFamilyMetaData( 27002: std::vector* ) {} 27002: # 1589 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status GetLiveFiles(std::vector&, 27002: uint64_t* manifest_file_size, 27002: bool flush_memtable = true) = 0; 27002: 27002: 27002: virtual Status GetSortedWalFiles(VectorLogPtr& files) = 0; 27002: # 1603 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status GetCurrentWalFile( 27002: std::unique_ptr* current_log_file) = 0; 27002: # 1628 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status IngestExternalFile( 27002: ColumnFamilyHandle* column_family, 27002: const std::vector& external_files, 27002: const IngestExternalFileOptions& options) = 0; 27002: 27002: virtual Status IngestExternalFile( 27002: const std::vector& external_files, 27002: const IngestExternalFileOptions& options) { 27002: return IngestExternalFile(DefaultColumnFamily(), external_files, options); 27002: } 27002: # 1654 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status IngestExternalFiles( 27002: const std::vector& args) = 0; 27002: # 1673 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status CreateColumnFamilyWithImport( 27002: const ColumnFamilyOptions& options, const std::string& column_family_name, 27002: const ImportColumnFamilyOptions& import_options, 27002: const ExportImportFilesMetaData& metadata, 27002: ColumnFamilyHandle** handle) = 0; 27002: 27002: 27002: 27002: virtual Status VerifyFileChecksums(const ReadOptions& ) { 27002: return Status::NotSupported("File verification not supported"); 27002: } 27002: 27002: 27002: 27002: virtual Status VerifyChecksum(const ReadOptions& read_options) = 0; 27002: 27002: virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status GetDbIdentity(std::string& identity) const = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Status GetDbSessionId(std::string& session_id) const = 0; 27002: 27002: 27002: virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0; 27002: 27002: 27002: 27002: virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family, 27002: TablePropertiesCollection* props) = 0; 27002: virtual Status GetPropertiesOfAllTables(TablePropertiesCollection* props) { 27002: return GetPropertiesOfAllTables(DefaultColumnFamily(), props); 27002: } 27002: virtual Status GetPropertiesOfTablesInRange( 27002: ColumnFamilyHandle* column_family, const Range* range, std::size_t n, 27002: TablePropertiesCollection* props) = 0; 27002: 27002: virtual Status SuggestCompactRange(ColumnFamilyHandle* , 27002: const Slice* , 27002: const Slice* ) { 27002: return Status::NotSupported("SuggestCompactRange() is not implemented."); 27002: } 27002: 27002: virtual Status PromoteL0(ColumnFamilyHandle* , 27002: int ) { 27002: return Status::NotSupported("PromoteL0() is not implemented."); 27002: } 27002: 27002: 27002: virtual Status StartTrace(const TraceOptions& , 27002: std::unique_ptr&& ) { 27002: return Status::NotSupported("StartTrace() is not implemented."); 27002: } 27002: 27002: virtual Status EndTrace() { 27002: return Status::NotSupported("EndTrace() is not implemented."); 27002: } 27002: 27002: 27002: virtual Status StartIOTrace(const TraceOptions& , 27002: std::unique_ptr&& ) { 27002: return Status::NotSupported("StartIOTrace() is not implemented."); 27002: } 27002: 27002: virtual Status EndIOTrace() { 27002: return Status::NotSupported("EndIOTrace() is not implemented."); 27002: } 27002: 27002: 27002: virtual Status StartBlockCacheTrace( 27002: const TraceOptions& , 27002: std::unique_ptr&& ) { 27002: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 27002: } 27002: 27002: virtual Status StartBlockCacheTrace( 27002: const BlockCacheTraceOptions& , 27002: std::unique_ptr&& ) { 27002: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 27002: } 27002: 27002: virtual Status EndBlockCacheTrace() { 27002: return Status::NotSupported("EndBlockCacheTrace() is not implemented."); 27002: } 27002: 27002: 27002: virtual Status NewDefaultReplayer( 27002: const std::vector& , 27002: std::unique_ptr&& , 27002: std::unique_ptr* ) { 27002: return Status::NotSupported("NewDefaultReplayer() is not implemented."); 27002: } 27002: 27002: 27002: 27002: 27002: virtual DB* GetRootDB() { return this; } 27002: 27002: 27002: 27002: 27002: virtual Status GetStatsHistory( 27002: uint64_t , uint64_t , 27002: std::unique_ptr* ) { 27002: return Status::NotSupported("GetStatsHistory() is not implemented."); 27002: } 27002: # 1800 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: virtual Status TryCatchUpWithPrimary() { 27002: return Status::NotSupported("Supported only by secondary instance"); 27002: } 27002: 27002: }; 27002: 27002: 27002: inline DB::SizeApproximationFlags operator&(DB::SizeApproximationFlags lhs, 27002: DB::SizeApproximationFlags rhs) { 27002: return static_cast(static_cast(lhs) & 27002: static_cast(rhs)); 27002: } 27002: inline DB::SizeApproximationFlags operator|(DB::SizeApproximationFlags lhs, 27002: DB::SizeApproximationFlags rhs) { 27002: return static_cast(static_cast(lhs) | 27002: static_cast(rhs)); 27002: } 27002: 27002: inline Status DB::GetApproximateSizes(ColumnFamilyHandle* column_family, 27002: const Range* ranges, int n, 27002: uint64_t* sizes, 27002: SizeApproximationFlags include_flags) { 27002: SizeApproximationOptions options; 27002: options.include_memtables = 27002: ((include_flags & SizeApproximationFlags::INCLUDE_MEMTABLES) != 27002: SizeApproximationFlags::NONE); 27002: options.include_files = 27002: ((include_flags & SizeApproximationFlags::INCLUDE_FILES) != 27002: SizeApproximationFlags::NONE); 27002: return GetApproximateSizes(options, column_family, ranges, n, sizes); 27002: } 27002: 27002: 27002: 27002: Status DestroyDB(const std::string& name, const Options& options, 27002: const std::vector& column_families = 27002: std::vector()); 27002: # 1848 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/db.h" 27002: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 27002: const std::vector& column_families); 27002: 27002: 27002: 27002: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 27002: const std::vector& column_families, 27002: const ColumnFamilyOptions& unknown_cf_opts); 27002: 27002: 27002: 27002: Status RepairDB(const std::string& dbname, const Options& options); 27002: 27002: 27002: 27002: } 27002: # 29 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/dynamic_bloom.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/util/dynamic_bloom.h" 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: class Allocator; 27002: class Logger; 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/util/dynamic_bloom.h" 27002: class DynamicBloom { 27002: public: 27002: # 47 "/build/reproducible-path/rocksdb-7.8.3/util/dynamic_bloom.h" 27002: explicit DynamicBloom(Allocator* allocator, uint32_t total_bits, 27002: uint32_t num_probes = 6, size_t huge_page_tlb_size = 0, 27002: Logger* logger = nullptr); 27002: 27002: ~DynamicBloom() {} 27002: 27002: 27002: void Add(const Slice& key); 27002: 27002: 27002: void AddConcurrently(const Slice& key); 27002: 27002: 27002: void AddHash(uint32_t hash); 27002: 27002: 27002: void AddHashConcurrently(uint32_t hash); 27002: 27002: 27002: bool MayContain(const Slice& key) const; 27002: 27002: void MayContain(int num_keys, Slice* keys, bool* may_match) const; 27002: 27002: 27002: bool MayContainHash(uint32_t hash) const; 27002: 27002: void Prefetch(uint32_t h); 27002: 27002: private: 27002: 27002: 27002: uint32_t kLen; 27002: 27002: 27002: const uint32_t kNumDoubleProbes; 27002: 27002: std::atomic* data_; 27002: 27002: 27002: 27002: template 27002: void AddHash(uint32_t hash, const OrFunc& or_func); 27002: 27002: bool DoubleProbe(uint32_t h32, size_t a) const; 27002: }; 27002: 27002: inline void DynamicBloom::Add(const Slice& key) { AddHash(BloomHash(key)); } 27002: 27002: inline void DynamicBloom::AddConcurrently(const Slice& key) { 27002: AddHashConcurrently(BloomHash(key)); 27002: } 27002: 27002: inline void DynamicBloom::AddHash(uint32_t hash) { 27002: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 27002: ptr->store(ptr->load(std::memory_order_relaxed) | mask, 27002: std::memory_order_relaxed); 27002: }); 27002: } 27002: 27002: inline void DynamicBloom::AddHashConcurrently(uint32_t hash) { 27002: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 27002: 27002: 27002: 27002: 27002: 27002: if ((mask & ptr->load(std::memory_order_relaxed)) != mask) { 27002: ptr->fetch_or(mask, std::memory_order_relaxed); 27002: } 27002: }); 27002: } 27002: 27002: inline bool DynamicBloom::MayContain(const Slice& key) const { 27002: return (MayContainHash(BloomHash(key))); 27002: } 27002: 27002: inline void DynamicBloom::MayContain(int num_keys, Slice* keys, 27002: bool* may_match) const { 27002: std::array hashes; 27002: std::array byte_offsets; 27002: for (int i = 0; i < num_keys; ++i) { 27002: hashes[i] = BloomHash(keys[i]); 27002: size_t a = FastRange32(kLen, hashes[i]); 27002: __builtin_prefetch(data_ + a, 0, 3); 27002: byte_offsets[i] = a; 27002: } 27002: 27002: for (int i = 0; i < num_keys; i++) { 27002: may_match[i] = DoubleProbe(hashes[i], byte_offsets[i]); 27002: } 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline void DynamicBloom::Prefetch(uint32_t h32) { 27002: size_t a = FastRange32(kLen, h32); 27002: __builtin_prefetch(data_ + a, 0, 3); 27002: } 27002: # 173 "/build/reproducible-path/rocksdb-7.8.3/util/dynamic_bloom.h" 27002: inline bool DynamicBloom::MayContainHash(uint32_t h32) const { 27002: size_t a = FastRange32(kLen, h32); 27002: __builtin_prefetch(data_ + a, 0, 3); 27002: return DoubleProbe(h32, a); 27002: } 27002: 27002: inline bool DynamicBloom::DoubleProbe(uint32_t h32, size_t byte_offset) const { 27002: 27002: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 27002: for (unsigned i = 0;; ++i) { 27002: 27002: uint64_t mask = 27002: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 27002: uint64_t val = data_[byte_offset ^ i].load(std::memory_order_relaxed); 27002: if (i + 1 >= kNumDoubleProbes) { 27002: return (val & mask) == mask; 27002: } else if ((val & mask) != mask) { 27002: return false; 27002: } 27002: h = (h >> 12) | (h << 52); 27002: } 27002: } 27002: 27002: template 27002: inline void DynamicBloom::AddHash(uint32_t h32, const OrFunc& or_func) { 27002: size_t a = FastRange32(kLen, h32); 27002: __builtin_prefetch(data_ + a, 0, 3); 27002: 27002: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 27002: for (unsigned i = 0;; ++i) { 27002: 27002: uint64_t mask = 27002: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 27002: or_func(&data_[a ^ i], mask); 27002: if (i + 1 >= kNumDoubleProbes) { 27002: return; 27002: } 27002: h = (h >> 12) | (h << 52); 27002: } 27002: } 27002: 27002: } 27002: # 32 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/hash_containers.h" 1 27002: # 11 "/build/reproducible-path/rocksdb-7.8.3/util/hash_containers.h" 27002: 27002: # 38 "/build/reproducible-path/rocksdb-7.8.3/util/hash_containers.h" 27002: namespace rocksdb { 27002: 27002: template 27002: using UnorderedMap = std::unordered_map; 27002: 27002: template 27002: using UnorderedMapH = std::unordered_map; 27002: 27002: template 27002: using UnorderedSet = std::unordered_set; 27002: 27002: } 27002: # 34 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: struct FlushJobInfo; 27002: class Mutex; 27002: class MemTableIterator; 27002: class MergeContext; 27002: class SystemClock; 27002: 27002: struct ImmutableMemTableOptions { 27002: explicit ImmutableMemTableOptions(const ImmutableOptions& ioptions, 27002: const MutableCFOptions& mutable_cf_options); 27002: size_t arena_block_size; 27002: uint32_t memtable_prefix_bloom_bits; 27002: size_t memtable_huge_page_size; 27002: bool memtable_whole_key_filtering; 27002: bool inplace_update_support; 27002: size_t inplace_update_num_locks; 27002: UpdateStatus (*inplace_callback)(char* existing_value, 27002: uint32_t* existing_value_size, 27002: Slice delta_value, 27002: std::string* merged_value); 27002: size_t max_successive_merges; 27002: Statistics* statistics; 27002: MergeOperator* merge_operator; 27002: Logger* info_log; 27002: bool allow_data_in_errors; 27002: uint32_t protection_bytes_per_key; 27002: }; 27002: 27002: 27002: 27002: 27002: struct MemTablePostProcessInfo { 27002: uint64_t data_size = 0; 27002: uint64_t num_entries = 0; 27002: uint64_t num_deletes = 0; 27002: }; 27002: 27002: using MultiGetRange = MultiGetContext::Range; 27002: # 87 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: class MemTable { 27002: public: 27002: struct KeyComparator : public MemTableRep::KeyComparator { 27002: const InternalKeyComparator comparator; 27002: explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) { } 27002: virtual int operator()(const char* prefix_len_key1, 27002: const char* prefix_len_key2) const override; 27002: virtual int operator()(const char* prefix_len_key, 27002: const DecodedType& key) const override; 27002: }; 27002: # 107 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: explicit MemTable(const InternalKeyComparator& comparator, 27002: const ImmutableOptions& ioptions, 27002: const MutableCFOptions& mutable_cf_options, 27002: WriteBufferManager* write_buffer_manager, 27002: SequenceNumber earliest_seq, uint32_t column_family_id); 27002: 27002: MemTable(const MemTable&) = delete; 27002: MemTable& operator=(const MemTable&) = delete; 27002: 27002: 27002: ~MemTable(); 27002: 27002: 27002: 27002: 27002: void Ref() { ++refs_; } 27002: 27002: 27002: 27002: 27002: 27002: MemTable* Unref() { 27002: --refs_; 27002: 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 3 4 27002: (static_cast ( 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: refs_ >= 0 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: "refs_ >= 0" 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 3 4 27002: , "./db/memtable.h", 130, __extension__ __PRETTY_FUNCTION__)) 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: ; 27002: if (refs_ <= 0) { 27002: return this; 27002: } 27002: return nullptr; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: size_t ApproximateMemoryUsage(); 27002: 27002: 27002: 27002: size_t ApproximateMemoryUsageFast() const { 27002: return approximate_memory_usage_.load(std::memory_order_relaxed); 27002: } 27002: 27002: 27002: size_t MemoryAllocatedBytes() const { 27002: return table_->ApproximateMemoryUsage() + 27002: range_del_table_->ApproximateMemoryUsage() + 27002: arena_.MemoryAllocatedBytes(); 27002: } 27002: # 170 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: void UniqueRandomSample(const uint64_t& target_sample_size, 27002: std::unordered_set* entries) { 27002: 27002: 27002: table_->UniqueRandomSample(num_entries(), target_sample_size, entries); 27002: } 27002: 27002: 27002: 27002: bool ShouldScheduleFlush() const { 27002: return flush_state_.load(std::memory_order_relaxed) == FLUSH_REQUESTED; 27002: } 27002: 27002: 27002: 27002: bool MarkFlushScheduled() { 27002: auto before = FLUSH_REQUESTED; 27002: return flush_state_.compare_exchange_strong(before, FLUSH_SCHEDULED, 27002: std::memory_order_relaxed, 27002: std::memory_order_relaxed); 27002: } 27002: # 204 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: InternalIterator* NewIterator(const ReadOptions& read_options, Arena* arena); 27002: # 216 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 27002: const ReadOptions& read_options, SequenceNumber read_seq, 27002: bool immutable_memtable); 27002: 27002: Status VerifyEncodedEntry(Slice encoded, 27002: const ProtectionInfoKVOS64& kv_prot_info); 27002: # 233 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: Status Add(SequenceNumber seq, ValueType type, const Slice& key, 27002: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info, 27002: bool allow_concurrent = false, 27002: MemTablePostProcessInfo* post_process_info = nullptr, 27002: void** hint = nullptr); 27002: # 262 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: bool Get(const LookupKey& key, std::string* value, 27002: PinnableWideColumns* columns, std::string* timestamp, Status* s, 27002: MergeContext* merge_context, 27002: SequenceNumber* max_covering_tombstone_seq, SequenceNumber* seq, 27002: const ReadOptions& read_opts, bool immutable_memtable, 27002: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 27002: bool do_merge = true); 27002: 27002: bool Get(const LookupKey& key, std::string* value, 27002: PinnableWideColumns* columns, std::string* timestamp, Status* s, 27002: MergeContext* merge_context, 27002: SequenceNumber* max_covering_tombstone_seq, 27002: const ReadOptions& read_opts, bool immutable_memtable, 27002: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 27002: bool do_merge = true) { 27002: SequenceNumber seq; 27002: return Get(key, value, columns, timestamp, s, merge_context, 27002: max_covering_tombstone_seq, &seq, read_opts, immutable_memtable, 27002: callback, is_blob_index, do_merge); 27002: } 27002: 27002: 27002: 27002: 27002: void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 27002: ReadCallback* callback, bool immutable_memtable); 27002: # 299 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: Status Update(SequenceNumber seq, ValueType value_type, const Slice& key, 27002: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info); 27002: # 316 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: Status UpdateCallback(SequenceNumber seq, const Slice& key, 27002: const Slice& delta, 27002: const ProtectionInfoKVOS64* kv_prot_info); 27002: 27002: 27002: 27002: 27002: size_t CountSuccessiveMergeEntries(const LookupKey& key); 27002: 27002: 27002: 27002: void BatchPostProcess(const MemTablePostProcessInfo& update_counters) { 27002: num_entries_.fetch_add(update_counters.num_entries, 27002: std::memory_order_relaxed); 27002: data_size_.fetch_add(update_counters.data_size, std::memory_order_relaxed); 27002: if (update_counters.num_deletes != 0) { 27002: num_deletes_.fetch_add(update_counters.num_deletes, 27002: std::memory_order_relaxed); 27002: } 27002: UpdateFlushState(); 27002: } 27002: 27002: 27002: 27002: 27002: uint64_t num_entries() const { 27002: return num_entries_.load(std::memory_order_relaxed); 27002: } 27002: 27002: 27002: 27002: 27002: uint64_t num_deletes() const { 27002: return num_deletes_.load(std::memory_order_relaxed); 27002: } 27002: 27002: uint64_t get_data_size() const { 27002: return data_size_.load(std::memory_order_relaxed); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: void UpdateWriteBufferSize(size_t new_write_buffer_size) { 27002: if (bloom_filter_ == nullptr || 27002: new_write_buffer_size < write_buffer_size_) { 27002: write_buffer_size_.store(new_write_buffer_size, 27002: std::memory_order_relaxed); 27002: } 27002: } 27002: 27002: 27002: VersionEdit* GetEdits() { return &edit_; } 27002: 27002: 27002: 27002: 27002: bool IsEmpty() const { return first_seqno_ == 0; } 27002: 27002: 27002: 27002: 27002: 27002: SequenceNumber GetFirstSequenceNumber() { 27002: return first_seqno_.load(std::memory_order_relaxed); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: void SetFirstSequenceNumber(SequenceNumber first_seqno) { 27002: return first_seqno_.store(first_seqno, std::memory_order_relaxed); 27002: } 27002: # 399 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.h" 27002: SequenceNumber GetEarliestSequenceNumber() { 27002: return earliest_seqno_.load(std::memory_order_relaxed); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: void SetEarliestSequenceNumber(SequenceNumber earliest_seqno) { 27002: return earliest_seqno_.store(earliest_seqno, std::memory_order_relaxed); 27002: } 27002: 27002: 27002: 27002: SequenceNumber GetCreationSeq() const { return creation_seq_; } 27002: 27002: void SetCreationSeq(SequenceNumber sn) { creation_seq_ = sn; } 27002: 27002: 27002: 27002: 27002: 27002: uint64_t GetNextLogNumber() { return mem_next_logfile_number_; } 27002: 27002: 27002: 27002: 27002: 27002: void SetNextLogNumber(uint64_t num) { mem_next_logfile_number_ = num; } 27002: 27002: 27002: 27002: 27002: 27002: void RefLogContainingPrepSection(uint64_t log); 27002: uint64_t GetMinLogContainingPrepSection(); 27002: 27002: 27002: 27002: 27002: 27002: 27002: void MarkImmutable() { 27002: table_->MarkReadOnly(); 27002: mem_tracker_.DoneAllocating(); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: void MarkFlushed() { 27002: table_->MarkFlushed(); 27002: } 27002: 27002: 27002: bool IsMergeOperatorSupported() const { 27002: return table_->IsMergeOperatorSupported(); 27002: } 27002: 27002: 27002: 27002: bool IsSnapshotSupported() const { 27002: return table_->IsSnapshotSupported() && !moptions_.inplace_update_support; 27002: } 27002: 27002: struct MemTableStats { 27002: uint64_t size; 27002: uint64_t count; 27002: }; 27002: 27002: MemTableStats ApproximateStats(const Slice& start_ikey, 27002: const Slice& end_ikey); 27002: 27002: 27002: port::RWMutex* GetLock(const Slice& key); 27002: 27002: const InternalKeyComparator& GetInternalKeyComparator() const { 27002: return comparator_.comparator; 27002: } 27002: 27002: const ImmutableMemTableOptions* GetImmutableMemTableOptions() const { 27002: return &moptions_; 27002: } 27002: 27002: uint64_t ApproximateOldestKeyTime() const { 27002: return oldest_key_time_.load(std::memory_order_relaxed); 27002: } 27002: 27002: 27002: void SetID(uint64_t id) { id_ = id; } 27002: 27002: uint64_t GetID() const { return id_; } 27002: 27002: void SetFlushCompleted(bool completed) { flush_completed_ = completed; } 27002: 27002: uint64_t GetFileNumber() const { return file_number_; } 27002: 27002: void SetFileNumber(uint64_t file_num) { file_number_ = file_num; } 27002: 27002: void SetFlushInProgress(bool in_progress) { 27002: flush_in_progress_ = in_progress; 27002: } 27002: 27002: 27002: void SetFlushJobInfo(std::unique_ptr&& info) { 27002: flush_job_info_ = std::move(info); 27002: } 27002: 27002: std::unique_ptr ReleaseFlushJobInfo() { 27002: return std::move(flush_job_info_); 27002: } 27002: 27002: 27002: 27002: bool ShouldFlushNow(); 27002: 27002: void ConstructFragmentedRangeTombstones(); 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: bool IsFragmentedRangeTombstonesConstructed(bool allow_empty = true) const { 27002: if (allow_empty) { 27002: return fragmented_range_tombstone_list_.get() != nullptr || 27002: is_range_del_table_empty_; 27002: } else { 27002: return fragmented_range_tombstone_list_.get() != nullptr; 27002: } 27002: } 27002: 27002: 27002: static Status VerifyEntryChecksum(const char* entry, 27002: size_t protection_bytes_per_key, 27002: bool allow_data_in_errors = false); 27002: 27002: private: 27002: enum FlushStateEnum { FLUSH_NOT_REQUESTED, FLUSH_REQUESTED, FLUSH_SCHEDULED }; 27002: 27002: friend class MemTableIterator; 27002: friend class MemTableBackwardIterator; 27002: friend class MemTableList; 27002: 27002: KeyComparator comparator_; 27002: const ImmutableMemTableOptions moptions_; 27002: int refs_; 27002: const size_t kArenaBlockSize; 27002: AllocTracker mem_tracker_; 27002: ConcurrentArena arena_; 27002: std::unique_ptr table_; 27002: std::unique_ptr range_del_table_; 27002: std::atomic_bool is_range_del_table_empty_; 27002: 27002: 27002: std::atomic data_size_; 27002: std::atomic num_entries_; 27002: std::atomic num_deletes_; 27002: 27002: 27002: std::atomic write_buffer_size_; 27002: 27002: 27002: bool flush_in_progress_; 27002: bool flush_completed_; 27002: uint64_t file_number_; 27002: 27002: 27002: 27002: VersionEdit edit_; 27002: 27002: 27002: std::atomic first_seqno_; 27002: 27002: 27002: 27002: std::atomic earliest_seqno_; 27002: 27002: SequenceNumber creation_seq_; 27002: 27002: 27002: uint64_t mem_next_logfile_number_; 27002: 27002: 27002: 27002: std::atomic min_prep_log_referenced_; 27002: 27002: 27002: std::vector locks_; 27002: 27002: const SliceTransform* const prefix_extractor_; 27002: std::unique_ptr bloom_filter_; 27002: 27002: std::atomic flush_state_; 27002: 27002: SystemClock* clock_; 27002: 27002: 27002: const SliceTransform* insert_with_hint_prefix_extractor_; 27002: 27002: 27002: UnorderedMapH insert_hints_; 27002: 27002: 27002: std::atomic oldest_key_time_; 27002: 27002: 27002: uint64_t id_ = 0; 27002: 27002: 27002: 27002: 27002: 27002: SequenceNumber atomic_flush_seqno_; 27002: 27002: 27002: 27002: std::atomic approximate_memory_usage_; 27002: 27002: 27002: 27002: std::unique_ptr flush_job_info_; 27002: 27002: 27002: 27002: void UpdateFlushState(); 27002: 27002: void UpdateOldestKeyTime(); 27002: 27002: void GetFromTable(const LookupKey& key, 27002: SequenceNumber max_covering_tombstone_seq, bool do_merge, 27002: ReadCallback* callback, bool* is_blob_index, 27002: std::string* value, PinnableWideColumns* columns, 27002: std::string* timestamp, Status* s, 27002: MergeContext* merge_context, SequenceNumber* seq, 27002: bool* found_final_value, bool* merge_in_progress); 27002: 27002: 27002: 27002: 27002: 27002: 27002: FragmentedRangeTombstoneIterator* NewRangeTombstoneIteratorInternal( 27002: const ReadOptions& read_options, SequenceNumber read_seq, 27002: bool immutable_memtable); 27002: 27002: 27002: 27002: 27002: std::unique_ptr 27002: fragmented_range_tombstone_list_; 27002: 27002: 27002: std::mutex range_del_mutex_; 27002: CoreLocalArray> 27002: cached_range_tombstone_; 27002: 27002: void UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 27002: const Slice& key, const Slice& value, ValueType type, 27002: SequenceNumber s, char* checksum_ptr); 27002: }; 27002: 27002: extern const char* EncodeKey(std::string* scratch, const Slice& target); 27002: 27002: } 27002: # 11 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/compaction/compaction_iteration_stats.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: struct CompactionIterationStats { 27002: 27002: 27002: 27002: 27002: int64_t num_record_drop_user = 0; 27002: 27002: int64_t num_record_drop_hidden = 0; 27002: int64_t num_record_drop_obsolete = 0; 27002: int64_t num_record_drop_range_del = 0; 27002: int64_t num_range_del_drop_obsolete = 0; 27002: 27002: int64_t num_optimized_del_drop_obsolete = 0; 27002: uint64_t total_filter_time = 0; 27002: 27002: 27002: 27002: 27002: uint64_t num_input_records = 0; 27002: uint64_t num_input_deletion_records = 0; 27002: uint64_t num_input_corrupt_records = 0; 27002: uint64_t total_input_raw_key_bytes = 0; 27002: uint64_t total_input_raw_value_bytes = 0; 27002: 27002: 27002: uint64_t num_single_del_fallthru = 0; 27002: uint64_t num_single_del_mismatch = 0; 27002: 27002: 27002: uint64_t num_blobs_read = 0; 27002: uint64_t total_blob_bytes_read = 0; 27002: uint64_t num_blobs_relocated = 0; 27002: uint64_t total_blob_bytes_relocated = 0; 27002: }; 27002: 27002: } 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 2 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: class ScopedArenaIterator { 27002: void reset(InternalIterator* iter) noexcept { 27002: if (iter_ != nullptr) { 27002: iter_->~InternalIterator(); 27002: } 27002: iter_ = iter; 27002: } 27002: 27002: public: 27002: 27002: explicit ScopedArenaIterator(InternalIterator* iter = nullptr) 27002: : iter_(iter) {} 27002: 27002: ScopedArenaIterator(const ScopedArenaIterator&) = delete; 27002: ScopedArenaIterator& operator=(const ScopedArenaIterator&) = delete; 27002: 27002: ScopedArenaIterator(ScopedArenaIterator&& o) noexcept { 27002: iter_ = o.iter_; 27002: o.iter_ = nullptr; 27002: } 27002: 27002: ScopedArenaIterator& operator=(ScopedArenaIterator&& o) noexcept { 27002: reset(o.iter_); 27002: o.iter_ = nullptr; 27002: return *this; 27002: } 27002: 27002: InternalIterator* operator->() { return iter_; } 27002: InternalIterator* get() { return iter_; } 27002: 27002: void set(InternalIterator* iter) { reset(iter); } 27002: 27002: InternalIterator* release() { 27002: 27002: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 3 4 27002: (static_cast ( 27002: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 27002: iter_ != nullptr 27002: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 27002: "iter_ != nullptr" 27002: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 3 4 27002: , "./table/scoped_arena_iterator.h", 47, __extension__ __PRETTY_FUNCTION__)) 27002: # 47 "/build/reproducible-path/rocksdb-7.8.3/table/scoped_arena_iterator.h" 27002: ; 27002: auto* res = iter_; 27002: iter_ = nullptr; 27002: return res; 27002: } 27002: 27002: ~ScopedArenaIterator() { 27002: reset(nullptr); 27002: } 27002: 27002: private: 27002: InternalIterator* iter_; 27002: }; 27002: } 27002: # 26 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 27002: 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 1 "/usr/include/c++/12/cinttypes" 1 3 27002: # 32 "/usr/include/c++/12/cinttypes" 3 27002: 27002: # 33 "/usr/include/c++/12/cinttypes" 3 27002: # 46 "/usr/include/c++/12/cinttypes" 3 27002: # 1 "/usr/include/inttypes.h" 1 3 4 27002: # 266 "/usr/include/inttypes.h" 3 4 27002: 27002: # 266 "/usr/include/inttypes.h" 3 4 27002: extern "C" { 27002: # 280 "/usr/include/inttypes.h" 3 4 27002: typedef struct 27002: { 27002: __extension__ long long int quot; 27002: __extension__ long long int rem; 27002: } imaxdiv_t; 27002: 27002: 27002: 27002: 27002: 27002: extern intmax_t imaxabs (intmax_t __n) noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) 27002: noexcept (true) __attribute__ ((__const__)); 27002: 27002: 27002: extern intmax_t strtoimax (const char *__restrict __nptr, 27002: char **__restrict __endptr, int __base) noexcept (true); 27002: 27002: 27002: extern uintmax_t strtoumax (const char *__restrict __nptr, 27002: char ** __restrict __endptr, int __base) noexcept (true); 27002: 27002: 27002: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, 27002: wchar_t **__restrict __endptr, int __base) 27002: noexcept (true); 27002: 27002: 27002: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, 27002: wchar_t ** __restrict __endptr, int __base) 27002: noexcept (true); 27002: 27002: } 27002: # 47 "/usr/include/c++/12/cinttypes" 2 3 27002: # 55 "/usr/include/c++/12/cinttypes" 3 27002: namespace std 27002: { 27002: 27002: using ::imaxdiv_t; 27002: 27002: 27002: using ::imaxabs; 27002: using ::imaxdiv; 27002: 27002: 27002: 27002: 27002: 27002: using ::strtoimax; 27002: using ::strtoumax; 27002: 27002: 27002: using ::wcstoimax; 27002: using ::wcstoumax; 27002: 27002: } 27002: # 11 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 2 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 27002: 27002: # 19 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 27002: namespace rocksdb { 27002: 27002: constexpr uint64_t kUnknownSeqnoTime = 0; 27002: # 35 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 27002: class SeqnoToTimeMapping { 27002: public: 27002: 27002: 27002: static constexpr uint64_t kMaxSeqnoTimePairsPerSST = 100; 27002: # 49 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 27002: static constexpr uint64_t kMaxSeqnoTimePairsPerCF = 100; 27002: 27002: 27002: struct SeqnoTimePair { 27002: SequenceNumber seqno = 0; 27002: uint64_t time = 0; 27002: 27002: SeqnoTimePair() = default; 27002: SeqnoTimePair(SequenceNumber _seqno, uint64_t _time) 27002: : seqno(_seqno), time(_time) {} 27002: 27002: 27002: void Encode(std::string& dest) const; 27002: 27002: 27002: Status Decode(Slice& input); 27002: 27002: 27002: SeqnoTimePair operator-(const SeqnoTimePair& other) const; 27002: 27002: 27002: void Add(const SeqnoTimePair& obj) { 27002: seqno += obj.seqno; 27002: time += obj.time; 27002: } 27002: 27002: 27002: 27002: bool operator<(const SequenceNumber& other) const { return seqno < other; } 27002: 27002: 27002: bool operator<(const SeqnoTimePair& other) const { 27002: return std::tie(seqno, time) < std::tie(other.seqno, other.time); 27002: } 27002: 27002: 27002: bool operator==(const SeqnoTimePair& other) const { 27002: return std::tie(seqno, time) == std::tie(other.seqno, other.time); 27002: } 27002: }; 27002: # 98 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 27002: explicit SeqnoToTimeMapping(uint64_t max_time_duration = 0, 27002: uint64_t max_capacity = 0) 27002: : max_time_duration_(max_time_duration), max_capacity_(max_capacity) {} 27002: 27002: 27002: 27002: bool Append(SequenceNumber seqno, uint64_t time); 27002: 27002: 27002: uint64_t GetOldestApproximateTime(SequenceNumber seqno) const; 27002: 27002: 27002: void TruncateOldEntries(uint64_t now); 27002: 27002: 27002: SequenceNumber GetOldestSequenceNum(uint64_t time); 27002: 27002: 27002: void Encode(std::string& des, SequenceNumber start, SequenceNumber end, 27002: uint64_t now, 27002: uint64_t output_size = kMaxSeqnoTimePairsPerSST) const; 27002: 27002: 27002: 27002: void Add(SequenceNumber seqno, uint64_t time); 27002: 27002: 27002: Status Add(const std::string& seqno_time_mapping_str); 27002: 27002: 27002: size_t Size() const { return seqno_time_mapping_.size(); } 27002: 27002: 27002: bool Resize(uint64_t min_time_duration, uint64_t max_time_duration); 27002: 27002: 27002: void SetMaxTimeDuration(uint64_t max_time_duration) { 27002: max_time_duration_ = max_time_duration; 27002: } 27002: 27002: uint64_t GetCapacity() const { return max_capacity_; } 27002: 27002: 27002: 27002: Status Sort(); 27002: 27002: 27002: SeqnoToTimeMapping Copy(SequenceNumber smallest_seqno) const; 27002: 27002: 27002: bool Empty() const { return seqno_time_mapping_.empty(); } 27002: 27002: 27002: void Clear() { seqno_time_mapping_.clear(); } 27002: 27002: 27002: 27002: std::string ToHumanString() const; 27002: 27002: 27002: const std::deque& TEST_GetInternalMapping() const { 27002: return seqno_time_mapping_; 27002: } 27002: 27002: 27002: private: 27002: static constexpr uint64_t kMaxSeqnoToTimeEntries = 27002: kMaxSeqnoTimePairsPerCF * 10; 27002: 27002: uint64_t max_time_duration_; 27002: uint64_t max_capacity_; 27002: 27002: std::deque seqno_time_mapping_; 27002: 27002: bool is_sorted_ = true; 27002: 27002: static uint64_t CalculateMaxCapacity(uint64_t min_time_duration, 27002: uint64_t max_time_duration); 27002: 27002: SeqnoTimePair& Last() { 27002: 27002: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 3 4 27002: (static_cast ( 27002: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 27002: !Empty() 27002: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 27002: "!Empty()" 27002: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 3 4 27002: , "./db/seqno_to_time_mapping.h", 178, __extension__ __PRETTY_FUNCTION__)) 27002: # 178 "/build/reproducible-path/rocksdb-7.8.3/db/seqno_to_time_mapping.h" 27002: ; 27002: return seqno_time_mapping_.back(); 27002: } 27002: }; 27002: 27002: 27002: inline bool operator<(const SequenceNumber& seqno, 27002: const SeqnoToTimeMapping::SeqnoTimePair& other) { 27002: return seqno < other.seqno; 27002: } 27002: 27002: } 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 17 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 27002: namespace rocksdb { 27002: 27002: 27002: class IntTblPropCollector { 27002: public: 27002: virtual ~IntTblPropCollector() {} 27002: virtual Status Finish(UserCollectedProperties* properties) = 0; 27002: 27002: virtual const char* Name() const = 0; 27002: 27002: 27002: 27002: virtual Status InternalAdd(const Slice& key, const Slice& value, 27002: uint64_t file_size) = 0; 27002: 27002: virtual void BlockAdd(uint64_t block_uncomp_bytes, 27002: uint64_t block_compressed_bytes_fast, 27002: uint64_t block_compressed_bytes_slow) = 0; 27002: 27002: virtual UserCollectedProperties GetReadableProperties() const = 0; 27002: 27002: virtual bool NeedCompact() const { return false; } 27002: }; 27002: 27002: 27002: class IntTblPropCollectorFactory { 27002: public: 27002: virtual ~IntTblPropCollectorFactory() {} 27002: 27002: virtual IntTblPropCollector* CreateIntTblPropCollector( 27002: uint32_t column_family_id, int level_at_creation) = 0; 27002: 27002: 27002: virtual const char* Name() const = 0; 27002: }; 27002: 27002: using IntTblPropCollectorFactories = 27002: std::vector>; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class UserKeyTablePropertiesCollector : public IntTblPropCollector { 27002: public: 27002: 27002: explicit UserKeyTablePropertiesCollector(TablePropertiesCollector* collector) 27002: : collector_(collector) {} 27002: 27002: virtual ~UserKeyTablePropertiesCollector() {} 27002: 27002: virtual Status InternalAdd(const Slice& key, const Slice& value, 27002: uint64_t file_size) override; 27002: 27002: virtual void BlockAdd(uint64_t block_uncomp_bytes, 27002: uint64_t block_compressed_bytes_fast, 27002: uint64_t block_compressed_bytes_slow) override; 27002: 27002: virtual Status Finish(UserCollectedProperties* properties) override; 27002: 27002: virtual const char* Name() const override { return collector_->Name(); } 27002: 27002: UserCollectedProperties GetReadableProperties() const override; 27002: 27002: virtual bool NeedCompact() const override { 27002: return collector_->NeedCompact(); 27002: } 27002: 27002: protected: 27002: std::unique_ptr collector_; 27002: }; 27002: 27002: class UserKeyTablePropertiesCollectorFactory 27002: : public IntTblPropCollectorFactory { 27002: public: 27002: explicit UserKeyTablePropertiesCollectorFactory( 27002: std::shared_ptr user_collector_factory) 27002: : user_collector_factory_(user_collector_factory) {} 27002: virtual IntTblPropCollector* CreateIntTblPropCollector( 27002: uint32_t column_family_id, int level_at_creation) override { 27002: TablePropertiesCollectorFactory::Context context; 27002: context.column_family_id = column_family_id; 27002: context.level_at_creation = level_at_creation; 27002: return new UserKeyTablePropertiesCollector( 27002: user_collector_factory_->CreateTablePropertiesCollector(context)); 27002: } 27002: 27002: virtual const char* Name() const override { 27002: return user_collector_factory_->Name(); 27002: } 27002: 27002: private: 27002: std::shared_ptr user_collector_factory_; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: 27002: class TimestampTablePropertiesCollector : public IntTblPropCollector { 27002: public: 27002: explicit TimestampTablePropertiesCollector(const Comparator* cmp) 27002: : cmp_(cmp), 27002: timestamp_min_(kDisableUserTimestamp), 27002: timestamp_max_(kDisableUserTimestamp) {} 27002: 27002: Status InternalAdd(const Slice& key, const Slice& , 27002: uint64_t ) override { 27002: auto user_key = ExtractUserKey(key); 27002: 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 27002: (static_cast ( 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 27002: cmp_ && cmp_->timestamp_size() > 0 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 27002: "cmp_ && cmp_->timestamp_size() > 0" 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 27002: , "./db/table_properties_collector.h", 128, __extension__ __PRETTY_FUNCTION__)) 27002: # 128 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 27002: ; 27002: if (user_key.size() < cmp_->timestamp_size()) { 27002: return Status::Corruption( 27002: "User key size mismatch when comparing to timestamp size."); 27002: } 27002: auto timestamp_in_key = 27002: ExtractTimestampFromUserKey(user_key, cmp_->timestamp_size()); 27002: if (timestamp_max_ == kDisableUserTimestamp || 27002: cmp_->CompareTimestamp(timestamp_in_key, timestamp_max_) > 0) { 27002: timestamp_max_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 27002: } 27002: if (timestamp_min_ == kDisableUserTimestamp || 27002: cmp_->CompareTimestamp(timestamp_min_, timestamp_in_key) > 0) { 27002: timestamp_min_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 27002: } 27002: return Status::OK(); 27002: } 27002: 27002: void BlockAdd(uint64_t , 27002: uint64_t , 27002: uint64_t ) override { 27002: return; 27002: } 27002: 27002: Status Finish(UserCollectedProperties* properties) override { 27002: 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 27002: (static_cast ( 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 27002: timestamp_min_.size() == timestamp_max_.size() && timestamp_max_.size() == cmp_->timestamp_size() 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 27002: "timestamp_min_.size() == timestamp_max_.size() && timestamp_max_.size() == cmp_->timestamp_size()" 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 3 4 27002: , "./db/table_properties_collector.h", 153, __extension__ __PRETTY_FUNCTION__)) 27002: 27002: # 154 "/build/reproducible-path/rocksdb-7.8.3/db/table_properties_collector.h" 27002: ; 27002: properties->insert({"rocksdb.timestamp_min", timestamp_min_}); 27002: properties->insert({"rocksdb.timestamp_max", timestamp_max_}); 27002: return Status::OK(); 27002: } 27002: 27002: const char* Name() const override { 27002: return "TimestampTablePropertiesCollector"; 27002: } 27002: 27002: UserCollectedProperties GetReadableProperties() const override { 27002: return {{"rocksdb.timestamp_min", Slice(timestamp_min_).ToString(true)}, 27002: {"rocksdb.timestamp_max", Slice(timestamp_max_).ToString(true)}}; 27002: } 27002: 27002: protected: 27002: const Comparator* const cmp_; 27002: std::string timestamp_min_; 27002: std::string timestamp_max_; 27002: }; 27002: 27002: } 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 27002: 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 27002: namespace rocksdb { 27002: class Statistics; 27002: class SystemClock; 27002: # 36 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 27002: class WritableFileWriter { 27002: private: 27002: 27002: void NotifyOnFileWriteFinish( 27002: uint64_t offset, size_t length, 27002: const FileOperationInfo::StartTimePoint& start_ts, 27002: const FileOperationInfo::FinishTimePoint& finish_ts, 27002: const IOStatus& io_status) { 27002: FileOperationInfo info(FileOperationType::kWrite, file_name_, start_ts, 27002: finish_ts, io_status, temperature_); 27002: info.offset = offset; 27002: info.length = length; 27002: 27002: for (auto& listener : listeners_) { 27002: listener->OnFileWriteFinish(info); 27002: } 27002: info.status.PermitUncheckedError(); 27002: } 27002: void NotifyOnFileFlushFinish( 27002: const FileOperationInfo::StartTimePoint& start_ts, 27002: const FileOperationInfo::FinishTimePoint& finish_ts, 27002: const IOStatus& io_status) { 27002: FileOperationInfo info(FileOperationType::kFlush, file_name_, start_ts, 27002: finish_ts, io_status, temperature_); 27002: 27002: for (auto& listener : listeners_) { 27002: listener->OnFileFlushFinish(info); 27002: } 27002: info.status.PermitUncheckedError(); 27002: } 27002: void NotifyOnFileSyncFinish( 27002: const FileOperationInfo::StartTimePoint& start_ts, 27002: const FileOperationInfo::FinishTimePoint& finish_ts, 27002: const IOStatus& io_status, 27002: FileOperationType type = FileOperationType::kSync) { 27002: FileOperationInfo info(type, file_name_, start_ts, finish_ts, io_status, 27002: temperature_); 27002: 27002: for (auto& listener : listeners_) { 27002: listener->OnFileSyncFinish(info); 27002: } 27002: info.status.PermitUncheckedError(); 27002: } 27002: void NotifyOnFileRangeSyncFinish( 27002: uint64_t offset, size_t length, 27002: const FileOperationInfo::StartTimePoint& start_ts, 27002: const FileOperationInfo::FinishTimePoint& finish_ts, 27002: const IOStatus& io_status) { 27002: FileOperationInfo info(FileOperationType::kRangeSync, file_name_, start_ts, 27002: finish_ts, io_status, temperature_); 27002: info.offset = offset; 27002: info.length = length; 27002: 27002: for (auto& listener : listeners_) { 27002: listener->OnFileRangeSyncFinish(info); 27002: } 27002: info.status.PermitUncheckedError(); 27002: } 27002: void NotifyOnFileTruncateFinish( 27002: const FileOperationInfo::StartTimePoint& start_ts, 27002: const FileOperationInfo::FinishTimePoint& finish_ts, 27002: const IOStatus& io_status) { 27002: FileOperationInfo info(FileOperationType::kTruncate, file_name_, start_ts, 27002: finish_ts, io_status, temperature_); 27002: 27002: for (auto& listener : listeners_) { 27002: listener->OnFileTruncateFinish(info); 27002: } 27002: info.status.PermitUncheckedError(); 27002: } 27002: void NotifyOnFileCloseFinish( 27002: const FileOperationInfo::StartTimePoint& start_ts, 27002: const FileOperationInfo::FinishTimePoint& finish_ts, 27002: const IOStatus& io_status) { 27002: FileOperationInfo info(FileOperationType::kClose, file_name_, start_ts, 27002: finish_ts, io_status, temperature_); 27002: 27002: for (auto& listener : listeners_) { 27002: listener->OnFileCloseFinish(info); 27002: } 27002: info.status.PermitUncheckedError(); 27002: } 27002: 27002: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 27002: const std::string& file_path, size_t length = 0, 27002: uint64_t offset = 0) { 27002: if (listeners_.empty()) { 27002: return; 27002: } 27002: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 27002: for (auto& listener : listeners_) { 27002: listener->OnIOError(io_error_info); 27002: } 27002: io_error_info.io_status.PermitUncheckedError(); 27002: } 27002: 27002: 27002: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 27002: void UpdateFileChecksum(const Slice& data); 27002: void Crc32cHandoffChecksumCalculation(const char* data, size_t size, 27002: char* buf); 27002: 27002: std::string file_name_; 27002: FSWritableFilePtr writable_file_; 27002: SystemClock* clock_; 27002: AlignedBuffer buf_; 27002: size_t max_buffer_size_; 27002: 27002: 27002: std::atomic filesize_; 27002: std::atomic flushed_size_; 27002: 27002: 27002: 27002: 27002: uint64_t next_write_offset_; 27002: 27002: bool pending_sync_; 27002: std::atomic seen_error_; 27002: 27002: 27002: 27002: 27002: 27002: std::atomic sync_without_flush_called_ = false; 27002: 27002: uint64_t last_sync_size_; 27002: uint64_t bytes_per_sync_; 27002: RateLimiter* rate_limiter_; 27002: Statistics* stats_; 27002: std::vector> listeners_; 27002: std::unique_ptr checksum_generator_; 27002: bool checksum_finalized_; 27002: bool perform_data_verification_; 27002: uint32_t buffered_data_crc32c_checksum_; 27002: bool buffered_data_with_checksum_; 27002: 27002: Temperature temperature_; 27002: 27002: 27002: public: 27002: WritableFileWriter( 27002: std::unique_ptr&& file, const std::string& _file_name, 27002: const FileOptions& options, SystemClock* clock = nullptr, 27002: const std::shared_ptr& io_tracer = nullptr, 27002: Statistics* stats = nullptr, 27002: const std::vector>& listeners = {}, 27002: FileChecksumGenFactory* file_checksum_gen_factory = nullptr, 27002: bool perform_data_verification = false, 27002: bool buffered_data_with_checksum = false) 27002: : file_name_(_file_name), 27002: writable_file_(std::move(file), io_tracer, _file_name), 27002: clock_(clock), 27002: buf_(), 27002: max_buffer_size_(options.writable_file_max_buffer_size), 27002: filesize_(0), 27002: flushed_size_(0), 27002: 27002: next_write_offset_(0), 27002: 27002: pending_sync_(false), 27002: seen_error_(false), 27002: last_sync_size_(0), 27002: bytes_per_sync_(options.bytes_per_sync), 27002: rate_limiter_(options.rate_limiter), 27002: stats_(stats), 27002: listeners_(), 27002: checksum_generator_(nullptr), 27002: checksum_finalized_(false), 27002: perform_data_verification_(perform_data_verification), 27002: buffered_data_crc32c_checksum_(0), 27002: buffered_data_with_checksum_(buffered_data_with_checksum) { 27002: 27002: temperature_ = options.temperature; 27002: 27002: 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 27002: (static_cast ( 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 27002: !use_direct_io() || max_buffer_size_ > 0 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 27002: "!use_direct_io() || max_buffer_size_ > 0" 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 27002: , "./file/writable_file_writer.h", 211, __extension__ __PRETTY_FUNCTION__)) 27002: # 211 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 27002: ; 27002: rocksdb::SyncPoint::GetInstance()->Process("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_)) 27002: ; 27002: buf_.Alignment(writable_file_->GetRequiredBufferAlignment()); 27002: buf_.AllocateNewBuffer(std::min((size_t)65536, max_buffer_size_)); 27002: 27002: std::for_each(listeners.begin(), listeners.end(), 27002: [this](const std::shared_ptr& e) { 27002: if (e->ShouldBeNotifiedOnFileIO()) { 27002: listeners_.emplace_back(e); 27002: } 27002: }); 27002: 27002: 27002: 27002: if (file_checksum_gen_factory != nullptr) { 27002: FileChecksumGenContext checksum_gen_context; 27002: checksum_gen_context.file_name = _file_name; 27002: checksum_generator_ = 27002: file_checksum_gen_factory->CreateFileChecksumGenerator( 27002: checksum_gen_context); 27002: } 27002: } 27002: 27002: static IOStatus Create(const std::shared_ptr& fs, 27002: const std::string& fname, const FileOptions& file_opts, 27002: std::unique_ptr* writer, 27002: IODebugContext* dbg); 27002: WritableFileWriter(const WritableFileWriter&) = delete; 27002: 27002: WritableFileWriter& operator=(const WritableFileWriter&) = delete; 27002: 27002: ~WritableFileWriter() { 27002: auto s = Close(); 27002: s.PermitUncheckedError(); 27002: } 27002: 27002: std::string file_name() const { return file_name_; } 27002: 27002: 27002: 27002: IOStatus Append(const Slice& data, uint32_t crc32c_checksum = 0, 27002: Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 27002: 27002: IOStatus Pad(const size_t pad_bytes, 27002: Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 27002: 27002: IOStatus Flush(Env::IOPriority op_rate_limiter_priority = Env::IO_TOTAL); 27002: 27002: IOStatus Close(); 27002: 27002: IOStatus Sync(bool use_fsync); 27002: 27002: 27002: 27002: 27002: IOStatus SyncWithoutFlush(bool use_fsync); 27002: 27002: uint64_t GetFileSize() const { 27002: return filesize_.load(std::memory_order_acquire); 27002: } 27002: 27002: 27002: 27002: 27002: 27002: uint64_t GetFlushedSize() const { 27002: return flushed_size_.load(std::memory_order_acquire); 27002: } 27002: 27002: IOStatus InvalidateCache(size_t offset, size_t length) { 27002: return writable_file_->InvalidateCache(offset, length); 27002: } 27002: 27002: FSWritableFile* writable_file() const { return writable_file_.get(); } 27002: 27002: bool use_direct_io() { return writable_file_->use_direct_io(); } 27002: 27002: bool BufferIsEmpty() { return buf_.CurrentSize() == 0; } 27002: 27002: void TEST_SetFileChecksumGenerator( 27002: FileChecksumGenerator* checksum_generator) { 27002: checksum_generator_.reset(checksum_generator); 27002: } 27002: 27002: std::string GetFileChecksum(); 27002: 27002: const char* GetFileChecksumFuncName() const; 27002: 27002: bool seen_error() const { 27002: return seen_error_.load(std::memory_order_relaxed); 27002: } 27002: 27002: 27002: void reset_seen_error() { 27002: seen_error_.store(false, std::memory_order_relaxed); 27002: } 27002: void set_seen_error() { seen_error_.store(true, std::memory_order_relaxed); } 27002: 27002: IOStatus AssertFalseAndGetStatusForPrevError() { 27002: 27002: 27002: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 27002: (static_cast ( 27002: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 27002: sync_without_flush_called_ 27002: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 27002: "sync_without_flush_called_" 27002: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 3 4 27002: , "./file/writable_file_writer.h", 312, __extension__ __PRETTY_FUNCTION__)) 27002: # 312 "/build/reproducible-path/rocksdb-7.8.3/file/writable_file_writer.h" 27002: ; 27002: return IOStatus::IOError("Writer has previous error."); 27002: } 27002: 27002: private: 27002: 27002: static Env::IOPriority DecideRateLimiterPriority( 27002: Env::IOPriority writable_file_io_priority, 27002: Env::IOPriority op_rate_limiter_priority); 27002: 27002: 27002: 27002: 27002: IOStatus WriteDirect(Env::IOPriority op_rate_limiter_priority); 27002: IOStatus WriteDirectWithChecksum(Env::IOPriority op_rate_limiter_priority); 27002: 27002: 27002: IOStatus WriteBuffered(const char* data, size_t size, 27002: Env::IOPriority op_rate_limiter_priority); 27002: IOStatus WriteBufferedWithChecksum(const char* data, size_t size, 27002: Env::IOPriority op_rate_limiter_priority); 27002: IOStatus RangeSync(uint64_t offset, uint64_t nbytes); 27002: IOStatus SyncInternal(bool use_fsync); 27002: }; 27002: } 27002: # 22 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 2 27002: 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/block_cache_tracer.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/block_cache_tracer.h" 27002: namespace rocksdb { 27002: class Env; 27002: class SystemClock; 27002: 27002: extern const uint64_t kMicrosInSecond; 27002: extern const uint64_t kSecondInMinute; 27002: extern const uint64_t kSecondInHour; 27002: 27002: struct BlockCacheTraceRecord; 27002: 27002: class BlockCacheTraceHelper { 27002: public: 27002: static bool IsGetOrMultiGetOnDataBlock(TraceType block_type, 27002: TableReaderCaller caller); 27002: static bool IsGetOrMultiGet(TableReaderCaller caller); 27002: static bool IsUserAccess(TableReaderCaller caller); 27002: 27002: 27002: static std::string ComputeRowKey(const BlockCacheTraceRecord& access); 27002: 27002: 27002: static uint64_t GetTableId(const BlockCacheTraceRecord& access); 27002: 27002: 27002: static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); 27002: 27002: static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); 27002: 27002: static const std::string kUnknownColumnFamilyName; 27002: static const uint64_t kReservedGetId; 27002: }; 27002: # 69 "/build/reproducible-path/rocksdb-7.8.3/trace_replay/block_cache_tracer.h" 27002: struct BlockCacheLookupContext { 27002: BlockCacheLookupContext(const TableReaderCaller& _caller) : caller(_caller) {} 27002: BlockCacheLookupContext(const TableReaderCaller& _caller, uint64_t _get_id, 27002: bool _get_from_user_specified_snapshot) 27002: : caller(_caller), 27002: get_id(_get_id), 27002: get_from_user_specified_snapshot(_get_from_user_specified_snapshot) {} 27002: const TableReaderCaller caller; 27002: 27002: 27002: 27002: bool is_cache_hit = false; 27002: bool no_insert = false; 27002: TraceType block_type = TraceType::kTraceMax; 27002: uint64_t block_size = 0; 27002: std::string block_key; 27002: uint64_t num_keys_in_block = 0; 27002: 27002: 27002: 27002: uint64_t get_id = 0; 27002: std::string referenced_key; 27002: bool get_from_user_specified_snapshot = false; 27002: 27002: void FillLookupContext(bool _is_cache_hit, bool _no_insert, 27002: TraceType _block_type, uint64_t _block_size, 27002: const std::string& _block_key, 27002: uint64_t _num_keys_in_block) { 27002: is_cache_hit = _is_cache_hit; 27002: no_insert = _no_insert; 27002: block_type = _block_type; 27002: block_size = _block_size; 27002: block_key = _block_key; 27002: num_keys_in_block = _num_keys_in_block; 27002: } 27002: }; 27002: 27002: struct BlockCacheTraceHeader { 27002: uint64_t start_time; 27002: uint32_t rocksdb_major_version; 27002: uint32_t rocksdb_minor_version; 27002: }; 27002: 27002: 27002: 27002: 27002: 27002: class BlockCacheTraceWriterImpl : public BlockCacheTraceWriter { 27002: public: 27002: BlockCacheTraceWriterImpl(SystemClock* clock, 27002: const BlockCacheTraceWriterOptions& trace_options, 27002: std::unique_ptr&& trace_writer); 27002: ~BlockCacheTraceWriterImpl() = default; 27002: 27002: BlockCacheTraceWriterImpl(const BlockCacheTraceWriterImpl&) = delete; 27002: BlockCacheTraceWriterImpl& operator=(const BlockCacheTraceWriterImpl&) = 27002: delete; 27002: BlockCacheTraceWriterImpl(BlockCacheTraceWriterImpl&&) = delete; 27002: BlockCacheTraceWriterImpl& operator=(BlockCacheTraceWriterImpl&&) = delete; 27002: 27002: 27002: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 27002: const Slice& block_key, const Slice& cf_name, 27002: const Slice& referenced_key); 27002: 27002: 27002: 27002: Status WriteHeader(); 27002: 27002: private: 27002: SystemClock* clock_; 27002: BlockCacheTraceWriterOptions trace_options_; 27002: std::unique_ptr trace_writer_; 27002: }; 27002: 27002: 27002: 27002: 27002: class BlockCacheHumanReadableTraceWriter { 27002: public: 27002: ~BlockCacheHumanReadableTraceWriter(); 27002: 27002: Status NewWritableFile(const std::string& human_readable_trace_file_path, 27002: rocksdb::Env* env); 27002: 27002: Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, 27002: uint64_t block_id, uint64_t get_key_id); 27002: 27002: private: 27002: char trace_record_buffer_[1024 * 1024]; 27002: std::unique_ptr 27002: human_readable_trace_file_writer_; 27002: }; 27002: 27002: 27002: 27002: class BlockCacheTraceReader { 27002: public: 27002: BlockCacheTraceReader(std::unique_ptr&& reader); 27002: virtual ~BlockCacheTraceReader() = default; 27002: 27002: BlockCacheTraceReader(const BlockCacheTraceReader&) = delete; 27002: BlockCacheTraceReader& operator=(const BlockCacheTraceReader&) = delete; 27002: BlockCacheTraceReader(BlockCacheTraceReader&&) = delete; 27002: BlockCacheTraceReader& operator=(BlockCacheTraceReader&&) = delete; 27002: 27002: Status ReadHeader(BlockCacheTraceHeader* header); 27002: 27002: Status ReadAccess(BlockCacheTraceRecord* record); 27002: 27002: private: 27002: std::unique_ptr trace_reader_; 27002: }; 27002: 27002: 27002: 27002: 27002: class BlockCacheHumanReadableTraceReader : public BlockCacheTraceReader { 27002: public: 27002: BlockCacheHumanReadableTraceReader(const std::string& trace_file_path); 27002: 27002: ~BlockCacheHumanReadableTraceReader(); 27002: 27002: Status ReadHeader(BlockCacheTraceHeader* header); 27002: 27002: Status ReadAccess(BlockCacheTraceRecord* record); 27002: 27002: private: 27002: std::ifstream human_readable_trace_reader_; 27002: }; 27002: 27002: 27002: 27002: 27002: class BlockCacheTracer { 27002: public: 27002: BlockCacheTracer(); 27002: ~BlockCacheTracer(); 27002: 27002: BlockCacheTracer(const BlockCacheTracer&) = delete; 27002: BlockCacheTracer& operator=(const BlockCacheTracer&) = delete; 27002: BlockCacheTracer(BlockCacheTracer&&) = delete; 27002: BlockCacheTracer& operator=(BlockCacheTracer&&) = delete; 27002: 27002: 27002: Status StartTrace(const BlockCacheTraceOptions& trace_options, 27002: std::unique_ptr&& trace_writer); 27002: 27002: 27002: void EndTrace(); 27002: 27002: bool is_tracing_enabled() const { 27002: return writer_.load(std::memory_order_relaxed); 27002: } 27002: 27002: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 27002: const Slice& block_key, const Slice& cf_name, 27002: const Slice& referenced_key); 27002: 27002: 27002: uint64_t NextGetId(); 27002: 27002: private: 27002: BlockCacheTraceOptions trace_options_; 27002: 27002: InstrumentedMutex trace_writer_mutex_; 27002: std::atomic writer_; 27002: std::atomic get_id_counter_; 27002: }; 27002: 27002: } 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: class Status; 27002: 27002: struct TableReaderOptions { 27002: 27002: TableReaderOptions( 27002: const ImmutableOptions& _ioptions, 27002: const std::shared_ptr& _prefix_extractor, 27002: const EnvOptions& _env_options, 27002: const InternalKeyComparator& _internal_comparator, 27002: bool _skip_filters = false, bool _immortal = false, 27002: bool _force_direct_prefetch = false, int _level = -1, 27002: BlockCacheTracer* const _block_cache_tracer = nullptr, 27002: size_t _max_file_size_for_l0_meta_pin = 0, 27002: const std::string& _cur_db_session_id = "", uint64_t _cur_file_num = 0, 27002: UniqueId64x2 _unique_id = {}, SequenceNumber _largest_seqno = 0) 27002: : ioptions(_ioptions), 27002: prefix_extractor(_prefix_extractor), 27002: env_options(_env_options), 27002: internal_comparator(_internal_comparator), 27002: skip_filters(_skip_filters), 27002: immortal(_immortal), 27002: force_direct_prefetch(_force_direct_prefetch), 27002: level(_level), 27002: largest_seqno(_largest_seqno), 27002: block_cache_tracer(_block_cache_tracer), 27002: max_file_size_for_l0_meta_pin(_max_file_size_for_l0_meta_pin), 27002: cur_db_session_id(_cur_db_session_id), 27002: cur_file_num(_cur_file_num), 27002: unique_id(_unique_id) {} 27002: 27002: const ImmutableOptions& ioptions; 27002: const std::shared_ptr& prefix_extractor; 27002: const EnvOptions& env_options; 27002: const InternalKeyComparator& internal_comparator; 27002: 27002: bool skip_filters; 27002: 27002: bool immortal; 27002: 27002: 27002: 27002: bool force_direct_prefetch; 27002: 27002: 27002: int level; 27002: 27002: SequenceNumber largest_seqno; 27002: BlockCacheTracer* const block_cache_tracer; 27002: 27002: 27002: const size_t max_file_size_for_l0_meta_pin; 27002: 27002: std::string cur_db_session_id; 27002: 27002: uint64_t cur_file_num; 27002: 27002: 27002: UniqueId64x2 unique_id; 27002: }; 27002: 27002: struct TableBuilderOptions { 27002: TableBuilderOptions( 27002: const ImmutableOptions& _ioptions, const MutableCFOptions& _moptions, 27002: const InternalKeyComparator& _internal_comparator, 27002: const IntTblPropCollectorFactories* _int_tbl_prop_collector_factories, 27002: CompressionType _compression_type, 27002: const CompressionOptions& _compression_opts, uint32_t _column_family_id, 27002: const std::string& _column_family_name, int _level, 27002: bool _is_bottommost = false, 27002: TableFileCreationReason _reason = TableFileCreationReason::kMisc, 27002: const int64_t _oldest_key_time = 0, 27002: const uint64_t _file_creation_time = 0, const std::string& _db_id = "", 27002: const std::string& _db_session_id = "", 27002: const uint64_t _target_file_size = 0, const uint64_t _cur_file_num = 0) 27002: : ioptions(_ioptions), 27002: moptions(_moptions), 27002: internal_comparator(_internal_comparator), 27002: int_tbl_prop_collector_factories(_int_tbl_prop_collector_factories), 27002: compression_type(_compression_type), 27002: compression_opts(_compression_opts), 27002: column_family_id(_column_family_id), 27002: column_family_name(_column_family_name), 27002: oldest_key_time(_oldest_key_time), 27002: target_file_size(_target_file_size), 27002: file_creation_time(_file_creation_time), 27002: db_id(_db_id), 27002: db_session_id(_db_session_id), 27002: level_at_creation(_level), 27002: is_bottommost(_is_bottommost), 27002: reason(_reason), 27002: cur_file_num(_cur_file_num) {} 27002: 27002: const ImmutableOptions& ioptions; 27002: const MutableCFOptions& moptions; 27002: const InternalKeyComparator& internal_comparator; 27002: const IntTblPropCollectorFactories* int_tbl_prop_collector_factories; 27002: const CompressionType compression_type; 27002: const CompressionOptions& compression_opts; 27002: const uint32_t column_family_id; 27002: const std::string& column_family_name; 27002: const int64_t oldest_key_time; 27002: const uint64_t target_file_size; 27002: const uint64_t file_creation_time; 27002: const std::string db_id; 27002: const std::string db_session_id; 27002: 27002: const int level_at_creation; 27002: const bool is_bottommost; 27002: const TableFileCreationReason reason; 27002: 27002: 27002: 27002: 27002: 27002: bool skip_filters = false; 27002: const uint64_t cur_file_num; 27002: }; 27002: # 156 "/build/reproducible-path/rocksdb-7.8.3/table/table_builder.h" 27002: class TableBuilder { 27002: public: 27002: 27002: virtual ~TableBuilder() {} 27002: 27002: 27002: 27002: 27002: virtual void Add(const Slice& key, const Slice& value) = 0; 27002: 27002: 27002: virtual Status status() const = 0; 27002: 27002: 27002: virtual IOStatus io_status() const = 0; 27002: 27002: 27002: 27002: virtual Status Finish() = 0; 27002: 27002: 27002: 27002: 27002: 27002: virtual void Abandon() = 0; 27002: 27002: 27002: virtual uint64_t NumEntries() const = 0; 27002: 27002: 27002: 27002: virtual bool IsEmpty() const { 27002: return NumEntries() == 0 && GetTableProperties().num_range_deletions == 0; 27002: } 27002: 27002: 27002: 27002: virtual uint64_t FileSize() const = 0; 27002: 27002: 27002: 27002: 27002: virtual uint64_t EstimatedFileSize() const { return FileSize(); } 27002: 27002: 27002: 27002: virtual bool NeedCompact() const { return false; } 27002: 27002: 27002: virtual TableProperties GetTableProperties() const = 0; 27002: 27002: 27002: virtual std::string GetFileChecksum() const = 0; 27002: 27002: 27002: virtual const char* GetFileChecksumFuncName() const = 0; 27002: 27002: 27002: virtual void SetSeqnoTimeTableProperties( 27002: const std::string& , 27002: uint64_t ){}; 27002: }; 27002: 27002: } 27002: # 27 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: # 40 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: template> 27002: class BinaryHeap { 27002: public: 27002: BinaryHeap() { } 27002: explicit BinaryHeap(Compare cmp) : cmp_(std::move(cmp)) { } 27002: 27002: void push(const T& value) { 27002: data_.push_back(value); 27002: upheap(data_.size() - 1); 27002: } 27002: 27002: void push(T&& value) { 27002: data_.push_back(std::move(value)); 27002: upheap(data_.size() - 1); 27002: } 27002: 27002: const T& top() const { 27002: 27002: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: (static_cast ( 27002: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: !empty() 27002: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: "!empty()" 27002: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: , "./util/heap.h", 57, __extension__ __PRETTY_FUNCTION__)) 27002: # 57 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: ; 27002: return data_.front(); 27002: } 27002: 27002: void replace_top(const T& value) { 27002: 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: (static_cast ( 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: !empty() 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: "!empty()" 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: , "./util/heap.h", 62, __extension__ __PRETTY_FUNCTION__)) 27002: # 62 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: ; 27002: data_.front() = value; 27002: downheap(get_root()); 27002: } 27002: 27002: void replace_top(T&& value) { 27002: 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: (static_cast ( 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: !empty() 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: "!empty()" 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: , "./util/heap.h", 68, __extension__ __PRETTY_FUNCTION__)) 27002: # 68 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: ; 27002: data_.front() = std::move(value); 27002: downheap(get_root()); 27002: } 27002: 27002: void pop() { 27002: 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: (static_cast ( 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: !empty() 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: "!empty()" 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: , "./util/heap.h", 74, __extension__ __PRETTY_FUNCTION__)) 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: ; 27002: if (data_.size() > 1) { 27002: 27002: 27002: 27002: data_.front() = std::move(data_.back()); 27002: } 27002: data_.pop_back(); 27002: if (!empty()) { 27002: downheap(get_root()); 27002: } else { 27002: reset_root_cmp_cache(); 27002: } 27002: } 27002: 27002: void swap(BinaryHeap &other) { 27002: std::swap(cmp_, other.cmp_); 27002: data_.swap(other.data_); 27002: std::swap(root_cmp_cache_, other.root_cmp_cache_); 27002: } 27002: 27002: void clear() { 27002: data_.clear(); 27002: reset_root_cmp_cache(); 27002: } 27002: 27002: bool empty() const { return data_.empty(); } 27002: 27002: size_t size() const { return data_.size(); } 27002: 27002: void reset_root_cmp_cache() { 27002: root_cmp_cache_ = std::numeric_limits::max(); 27002: } 27002: 27002: private: 27002: static inline size_t get_root() { return 0; } 27002: static inline size_t get_parent(size_t index) { return (index - 1) / 2; } 27002: static inline size_t get_left(size_t index) { return 2 * index + 1; } 27002: static inline size_t get_right(size_t index) { return 2 * index + 2; } 27002: 27002: void upheap(size_t index) { 27002: T v = std::move(data_[index]); 27002: while (index > get_root()) { 27002: const size_t parent = get_parent(index); 27002: if (!cmp_(data_[parent], v)) { 27002: break; 27002: } 27002: data_[index] = std::move(data_[parent]); 27002: index = parent; 27002: } 27002: data_[index] = std::move(v); 27002: reset_root_cmp_cache(); 27002: } 27002: 27002: void downheap(size_t index) { 27002: T v = std::move(data_[index]); 27002: 27002: size_t picked_child = std::numeric_limits::max(); 27002: while (1) { 27002: const size_t left_child = get_left(index); 27002: if (get_left(index) >= data_.size()) { 27002: break; 27002: } 27002: const size_t right_child = left_child + 1; 27002: 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: (static_cast ( 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: right_child == get_right(index) 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: "right_child == get_right(index)" 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 3 4 27002: , "./util/heap.h", 138, __extension__ __PRETTY_FUNCTION__)) 27002: # 138 "/build/reproducible-path/rocksdb-7.8.3/util/heap.h" 27002: ; 27002: picked_child = left_child; 27002: if (index == 0 && root_cmp_cache_ < data_.size()) { 27002: picked_child = root_cmp_cache_; 27002: } else if (right_child < data_.size() && 27002: cmp_(data_[left_child], data_[right_child])) { 27002: picked_child = right_child; 27002: } 27002: if (!cmp_(v, data_[picked_child])) { 27002: break; 27002: } 27002: data_[index] = std::move(data_[picked_child]); 27002: index = picked_child; 27002: } 27002: 27002: if (index == 0) { 27002: 27002: 27002: 27002: 27002: root_cmp_cache_ = picked_child; 27002: } else { 27002: 27002: reset_root_cmp_cache(); 27002: } 27002: 27002: data_[index] = std::move(v); 27002: } 27002: 27002: Compare cmp_; 27002: autovector data_; 27002: 27002: size_t root_cmp_cache_ = std::numeric_limits::max(); 27002: }; 27002: 27002: } 27002: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/util/kv_map.h" 1 27002: 27002: 27002: 27002: 27002: 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/util/kv_map.h" 27002: namespace rocksdb { 27002: namespace stl_wrappers { 27002: 27002: struct LessOfComparator { 27002: explicit LessOfComparator(const Comparator* c = BytewiseComparator()) 27002: : cmp(c) {} 27002: 27002: bool operator()(const std::string& a, const std::string& b) const { 27002: return cmp->Compare(Slice(a), Slice(b)) < 0; 27002: } 27002: bool operator()(const Slice& a, const Slice& b) const { 27002: return cmp->Compare(a, b) < 0; 27002: } 27002: 27002: const Comparator* cmp; 27002: }; 27002: 27002: using KVMap = std::map; 27002: } 27002: } 27002: # 29 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 2 27002: 27002: namespace rocksdb { 27002: 27002: class TruncatedRangeDelIterator { 27002: public: 27002: TruncatedRangeDelIterator( 27002: std::unique_ptr iter, 27002: const InternalKeyComparator* icmp, const InternalKey* smallest, 27002: const InternalKey* largest); 27002: 27002: bool Valid() const; 27002: 27002: void Next() { iter_->TopNext(); } 27002: void Prev() { iter_->TopPrev(); } 27002: 27002: void InternalNext() { iter_->Next(); } 27002: 27002: 27002: 27002: 27002: 27002: void Seek(const Slice& target); 27002: 27002: 27002: 27002: 27002: void SeekForPrev(const Slice& target); 27002: 27002: void SeekToFirst(); 27002: void SeekToLast(); 27002: 27002: ParsedInternalKey start_key() const { 27002: return (smallest_ == nullptr || 27002: icmp_->Compare(*smallest_, iter_->parsed_start_key()) <= 0) 27002: ? iter_->parsed_start_key() 27002: : *smallest_; 27002: } 27002: 27002: ParsedInternalKey end_key() const { 27002: return (largest_ == nullptr || 27002: icmp_->Compare(iter_->parsed_end_key(), *largest_) <= 0) 27002: ? iter_->parsed_end_key() 27002: : *largest_; 27002: } 27002: 27002: SequenceNumber seq() const { return iter_->seq(); } 27002: Slice timestamp() const { 27002: 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: (static_cast ( 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: icmp_->user_comparator()->timestamp_size() 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: "icmp_->user_comparator()->timestamp_size()" 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: , "./db/range_del_aggregator.h", 76, __extension__ __PRETTY_FUNCTION__)) 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: ; 27002: return iter_->timestamp(); 27002: } 27002: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 27002: iter_->SetTimestampUpperBound(ts_upper_bound); 27002: } 27002: 27002: std::map> 27002: SplitBySnapshot(const std::vector& snapshots); 27002: 27002: SequenceNumber upper_bound() const { return iter_->upper_bound(); } 27002: 27002: SequenceNumber lower_bound() const { return iter_->lower_bound(); } 27002: 27002: private: 27002: std::unique_ptr iter_; 27002: const InternalKeyComparator* icmp_; 27002: const ParsedInternalKey* smallest_ = nullptr; 27002: const ParsedInternalKey* largest_ = nullptr; 27002: std::list pinned_bounds_; 27002: 27002: const InternalKey* smallest_ikey_; 27002: const InternalKey* largest_ikey_; 27002: }; 27002: 27002: struct SeqMaxComparator { 27002: bool operator()(const TruncatedRangeDelIterator* a, 27002: const TruncatedRangeDelIterator* b) const { 27002: return a->seq() > b->seq(); 27002: } 27002: }; 27002: 27002: struct StartKeyMinComparator { 27002: explicit StartKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 27002: 27002: bool operator()(const TruncatedRangeDelIterator* a, 27002: const TruncatedRangeDelIterator* b) const { 27002: return icmp->Compare(a->start_key(), b->start_key()) > 0; 27002: } 27002: 27002: const InternalKeyComparator* icmp; 27002: }; 27002: 27002: class ForwardRangeDelIterator { 27002: public: 27002: explicit ForwardRangeDelIterator(const InternalKeyComparator* icmp); 27002: 27002: bool ShouldDelete(const ParsedInternalKey& parsed); 27002: void Invalidate(); 27002: 27002: void AddNewIter(TruncatedRangeDelIterator* iter, 27002: const ParsedInternalKey& parsed) { 27002: iter->Seek(parsed.user_key); 27002: PushIter(iter, parsed); 27002: 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: (static_cast ( 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: active_iters_.size() == active_seqnums_.size() 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: "active_iters_.size() == active_seqnums_.size()" 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: , "./db/range_del_aggregator.h", 130, __extension__ __PRETTY_FUNCTION__)) 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: ; 27002: } 27002: 27002: size_t UnusedIdx() const { return unused_idx_; } 27002: void IncUnusedIdx() { unused_idx_++; } 27002: 27002: private: 27002: using ActiveSeqSet = 27002: std::multiset; 27002: 27002: struct EndKeyMinComparator { 27002: explicit EndKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 27002: 27002: bool operator()(const ActiveSeqSet::const_iterator& a, 27002: const ActiveSeqSet::const_iterator& b) const { 27002: return icmp->Compare((*a)->end_key(), (*b)->end_key()) > 0; 27002: } 27002: 27002: const InternalKeyComparator* icmp; 27002: }; 27002: 27002: void PushIter(TruncatedRangeDelIterator* iter, 27002: const ParsedInternalKey& parsed) { 27002: if (!iter->Valid()) { 27002: 27002: 27002: return; 27002: } 27002: int cmp = icmp_->Compare(parsed, iter->start_key()); 27002: if (cmp < 0) { 27002: PushInactiveIter(iter); 27002: } else { 27002: PushActiveIter(iter); 27002: } 27002: } 27002: 27002: void PushActiveIter(TruncatedRangeDelIterator* iter) { 27002: auto seq_pos = active_seqnums_.insert(iter); 27002: active_iters_.push(seq_pos); 27002: } 27002: 27002: TruncatedRangeDelIterator* PopActiveIter() { 27002: auto active_top = active_iters_.top(); 27002: auto iter = *active_top; 27002: active_iters_.pop(); 27002: active_seqnums_.erase(active_top); 27002: return iter; 27002: } 27002: 27002: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 27002: inactive_iters_.push(iter); 27002: } 27002: 27002: TruncatedRangeDelIterator* PopInactiveIter() { 27002: auto* iter = inactive_iters_.top(); 27002: inactive_iters_.pop(); 27002: return iter; 27002: } 27002: 27002: const InternalKeyComparator* icmp_; 27002: size_t unused_idx_; 27002: ActiveSeqSet active_seqnums_; 27002: BinaryHeap active_iters_; 27002: BinaryHeap inactive_iters_; 27002: }; 27002: 27002: class ReverseRangeDelIterator { 27002: public: 27002: explicit ReverseRangeDelIterator(const InternalKeyComparator* icmp); 27002: 27002: bool ShouldDelete(const ParsedInternalKey& parsed); 27002: void Invalidate(); 27002: 27002: void AddNewIter(TruncatedRangeDelIterator* iter, 27002: const ParsedInternalKey& parsed) { 27002: iter->SeekForPrev(parsed.user_key); 27002: PushIter(iter, parsed); 27002: 27002: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: (static_cast ( 27002: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: active_iters_.size() == active_seqnums_.size() 27002: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: "active_iters_.size() == active_seqnums_.size()" 27002: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: , "./db/range_del_aggregator.h", 207, __extension__ __PRETTY_FUNCTION__)) 27002: # 207 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: ; 27002: } 27002: 27002: size_t UnusedIdx() const { return unused_idx_; } 27002: void IncUnusedIdx() { unused_idx_++; } 27002: 27002: private: 27002: using ActiveSeqSet = 27002: std::multiset; 27002: 27002: struct EndKeyMaxComparator { 27002: explicit EndKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 27002: 27002: bool operator()(const TruncatedRangeDelIterator* a, 27002: const TruncatedRangeDelIterator* b) const { 27002: return icmp->Compare(a->end_key(), b->end_key()) < 0; 27002: } 27002: 27002: const InternalKeyComparator* icmp; 27002: }; 27002: struct StartKeyMaxComparator { 27002: explicit StartKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 27002: 27002: bool operator()(const ActiveSeqSet::const_iterator& a, 27002: const ActiveSeqSet::const_iterator& b) const { 27002: return icmp->Compare((*a)->start_key(), (*b)->start_key()) < 0; 27002: } 27002: 27002: const InternalKeyComparator* icmp; 27002: }; 27002: 27002: void PushIter(TruncatedRangeDelIterator* iter, 27002: const ParsedInternalKey& parsed) { 27002: if (!iter->Valid()) { 27002: 27002: 27002: } else if (icmp_->Compare(iter->end_key(), parsed) <= 0) { 27002: PushInactiveIter(iter); 27002: } else { 27002: PushActiveIter(iter); 27002: } 27002: } 27002: 27002: void PushActiveIter(TruncatedRangeDelIterator* iter) { 27002: auto seq_pos = active_seqnums_.insert(iter); 27002: active_iters_.push(seq_pos); 27002: } 27002: 27002: TruncatedRangeDelIterator* PopActiveIter() { 27002: auto active_top = active_iters_.top(); 27002: auto iter = *active_top; 27002: active_iters_.pop(); 27002: active_seqnums_.erase(active_top); 27002: return iter; 27002: } 27002: 27002: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 27002: inactive_iters_.push(iter); 27002: } 27002: 27002: TruncatedRangeDelIterator* PopInactiveIter() { 27002: auto* iter = inactive_iters_.top(); 27002: inactive_iters_.pop(); 27002: return iter; 27002: } 27002: 27002: const InternalKeyComparator* icmp_; 27002: size_t unused_idx_; 27002: ActiveSeqSet active_seqnums_; 27002: BinaryHeap active_iters_; 27002: BinaryHeap inactive_iters_; 27002: }; 27002: 27002: enum class RangeDelPositioningMode { kForwardTraversal, kBackwardTraversal }; 27002: class RangeDelAggregator { 27002: public: 27002: explicit RangeDelAggregator(const InternalKeyComparator* icmp) 27002: : icmp_(icmp) {} 27002: virtual ~RangeDelAggregator() {} 27002: 27002: virtual void AddTombstones( 27002: std::unique_ptr input_iter, 27002: const InternalKey* smallest = nullptr, 27002: const InternalKey* largest = nullptr) = 0; 27002: 27002: bool ShouldDelete(const Slice& ikey, RangeDelPositioningMode mode) { 27002: ParsedInternalKey parsed; 27002: 27002: Status pik_status = 27002: ParseInternalKey(ikey, &parsed, false ); 27002: 27002: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: (static_cast ( 27002: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: pik_status.ok() 27002: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: "pik_status.ok()" 27002: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 3 4 27002: , "./db/range_del_aggregator.h", 297, __extension__ __PRETTY_FUNCTION__)) 27002: # 297 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: ; 27002: if (!pik_status.ok()) { 27002: return false; 27002: } 27002: 27002: return ShouldDelete(parsed, mode); 27002: } 27002: virtual bool ShouldDelete(const ParsedInternalKey& parsed, 27002: RangeDelPositioningMode mode) = 0; 27002: 27002: virtual void InvalidateRangeDelMapPositions() = 0; 27002: 27002: virtual bool IsEmpty() const = 0; 27002: 27002: bool AddFile(uint64_t file_number) { 27002: return files_seen_.insert(file_number).second; 27002: } 27002: 27002: protected: 27002: class StripeRep { 27002: public: 27002: StripeRep(const InternalKeyComparator* icmp, SequenceNumber upper_bound, 27002: SequenceNumber lower_bound) 27002: : icmp_(icmp), 27002: forward_iter_(icmp), 27002: reverse_iter_(icmp), 27002: upper_bound_(upper_bound), 27002: lower_bound_(lower_bound) {} 27002: 27002: void AddTombstones(std::unique_ptr input_iter) { 27002: iters_.push_back(std::move(input_iter)); 27002: } 27002: 27002: bool IsEmpty() const { return iters_.empty(); } 27002: 27002: bool ShouldDelete(const ParsedInternalKey& parsed, 27002: RangeDelPositioningMode mode); 27002: 27002: void Invalidate() { 27002: if (!IsEmpty()) { 27002: InvalidateForwardIter(); 27002: InvalidateReverseIter(); 27002: } 27002: } 27002: 27002: 27002: 27002: bool IsRangeOverlapped(const Slice& start, const Slice& end); 27002: 27002: private: 27002: bool InStripe(SequenceNumber seq) const { 27002: return lower_bound_ <= seq && seq <= upper_bound_; 27002: } 27002: 27002: void InvalidateForwardIter() { forward_iter_.Invalidate(); } 27002: 27002: void InvalidateReverseIter() { reverse_iter_.Invalidate(); } 27002: 27002: const InternalKeyComparator* icmp_; 27002: std::vector> iters_; 27002: ForwardRangeDelIterator forward_iter_; 27002: ReverseRangeDelIterator reverse_iter_; 27002: SequenceNumber upper_bound_; 27002: SequenceNumber lower_bound_; 27002: }; 27002: 27002: const InternalKeyComparator* icmp_; 27002: 27002: private: 27002: std::set files_seen_; 27002: }; 27002: 27002: class ReadRangeDelAggregator final : public RangeDelAggregator { 27002: public: 27002: ReadRangeDelAggregator(const InternalKeyComparator* icmp, 27002: SequenceNumber upper_bound) 27002: : RangeDelAggregator(icmp), 27002: rep_(icmp, upper_bound, 0 ) {} 27002: ~ReadRangeDelAggregator() override {} 27002: 27002: using RangeDelAggregator::ShouldDelete; 27002: void AddTombstones( 27002: std::unique_ptr input_iter, 27002: const InternalKey* smallest = nullptr, 27002: const InternalKey* largest = nullptr) override; 27002: 27002: bool ShouldDelete(const ParsedInternalKey& parsed, 27002: RangeDelPositioningMode mode) final override { 27002: if (rep_.IsEmpty()) { 27002: return false; 27002: } 27002: return ShouldDeleteImpl(parsed, mode); 27002: } 27002: 27002: bool IsRangeOverlapped(const Slice& start, const Slice& end); 27002: 27002: void InvalidateRangeDelMapPositions() override { rep_.Invalidate(); } 27002: 27002: bool IsEmpty() const override { return rep_.IsEmpty(); } 27002: 27002: private: 27002: StripeRep rep_; 27002: 27002: bool ShouldDeleteImpl(const ParsedInternalKey& parsed, 27002: RangeDelPositioningMode mode); 27002: }; 27002: 27002: class CompactionRangeDelAggregator : public RangeDelAggregator { 27002: public: 27002: CompactionRangeDelAggregator(const InternalKeyComparator* icmp, 27002: const std::vector& snapshots, 27002: const std::string* full_history_ts_low = nullptr, 27002: const std::string* trim_ts = nullptr) 27002: : RangeDelAggregator(icmp), snapshots_(&snapshots) { 27002: if (full_history_ts_low) { 27002: ts_upper_bound_ = *full_history_ts_low; 27002: } 27002: if (trim_ts) { 27002: trim_ts_ = *trim_ts; 27002: 27002: 27002: if (ts_upper_bound_.empty()) { 27002: ts_upper_bound_ = trim_ts_; 27002: } else if (!trim_ts_.empty() && icmp->user_comparator()->CompareTimestamp( 27002: trim_ts_, ts_upper_bound_) < 0) { 27002: ts_upper_bound_ = trim_ts_; 27002: } 27002: } 27002: } 27002: ~CompactionRangeDelAggregator() override {} 27002: 27002: void AddTombstones( 27002: std::unique_ptr input_iter, 27002: const InternalKey* smallest = nullptr, 27002: const InternalKey* largest = nullptr) override; 27002: 27002: using RangeDelAggregator::ShouldDelete; 27002: bool ShouldDelete(const ParsedInternalKey& parsed, 27002: RangeDelPositioningMode mode) override; 27002: 27002: bool IsRangeOverlapped(const Slice& start, const Slice& end); 27002: 27002: void InvalidateRangeDelMapPositions() override { 27002: for (auto& rep : reps_) { 27002: rep.second.Invalidate(); 27002: } 27002: } 27002: 27002: bool IsEmpty() const override { 27002: for (const auto& rep : reps_) { 27002: if (!rep.second.IsEmpty()) { 27002: return false; 27002: } 27002: } 27002: return true; 27002: } 27002: # 462 "/build/reproducible-path/rocksdb-7.8.3/db/range_del_aggregator.h" 27002: std::unique_ptr NewIterator( 27002: const Slice* lower_bound = nullptr, const Slice* upper_bound = nullptr, 27002: bool upper_bound_inclusive = false); 27002: 27002: private: 27002: std::vector> parent_iters_; 27002: std::map reps_; 27002: 27002: const std::vector* snapshots_; 27002: 27002: Slice ts_upper_bound_{}; 27002: Slice trim_ts_{}; 27002: }; 27002: 27002: } 27002: # 14 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/snapshot_checker.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: enum class SnapshotCheckerResult : int { 27002: kInSnapshot = 0, 27002: kNotInSnapshot = 1, 27002: 27002: 27002: kSnapshotReleased = 2, 27002: }; 27002: 27002: 27002: class SnapshotChecker { 27002: public: 27002: virtual ~SnapshotChecker() {} 27002: virtual SnapshotCheckerResult CheckInSnapshot( 27002: SequenceNumber sequence, SequenceNumber snapshot_sequence) const = 0; 27002: }; 27002: 27002: class DisableGCSnapshotChecker : public SnapshotChecker { 27002: public: 27002: virtual ~DisableGCSnapshotChecker() {} 27002: virtual SnapshotCheckerResult CheckInSnapshot( 27002: SequenceNumber , 27002: SequenceNumber ) const override { 27002: 27002: return SnapshotCheckerResult::kNotInSnapshot; 27002: } 27002: static DisableGCSnapshotChecker* Instance(); 27002: 27002: protected: 27002: explicit DisableGCSnapshotChecker() {} 27002: }; 27002: 27002: class WritePreparedTxnDB; 27002: 27002: 27002: 27002: class WritePreparedSnapshotChecker : public SnapshotChecker { 27002: public: 27002: explicit WritePreparedSnapshotChecker(WritePreparedTxnDB* txn_db); 27002: virtual ~WritePreparedSnapshotChecker() {} 27002: 27002: virtual SnapshotCheckerResult CheckInSnapshot( 27002: SequenceNumber sequence, SequenceNumber snapshot_sequence) const override; 27002: 27002: private: 27002: 27002: const WritePreparedTxnDB* const txn_db_; 27002: 27002: }; 27002: 27002: } 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 1 27002: # 9 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 27002: 27002: 27002: # 1 "/usr/include/c++/12/cassert" 1 3 27002: # 41 "/usr/include/c++/12/cassert" 3 27002: 27002: # 42 "/usr/include/c++/12/cassert" 3 27002: 27002: 27002: # 1 "/usr/include/assert.h" 1 3 4 27002: # 45 "/usr/include/c++/12/cassert" 2 3 27002: # 12 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 2 27002: # 20 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: class SliceTransform; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: class CompactionFilter : public Customizable { 27002: public: 27002: enum ValueType { 27002: kValue, 27002: kMergeOperand, 27002: kBlobIndex, 27002: }; 27002: 27002: enum class Decision { 27002: kKeep, 27002: kRemove, 27002: kChangeValue, 27002: kRemoveAndSkipUntil, 27002: kChangeBlobIndex, 27002: kIOError, 27002: kPurge, 27002: kUndetermined, 27002: }; 27002: 27002: enum class BlobDecision { kKeep, kChangeValue, kCorruption, kIOError }; 27002: 27002: 27002: struct Context { 27002: 27002: 27002: bool is_full_compaction; 27002: 27002: 27002: bool is_manual_compaction; 27002: 27002: uint32_t column_family_id; 27002: 27002: TableFileCreationReason reason; 27002: }; 27002: 27002: virtual ~CompactionFilter() {} 27002: static const char* Type() { return "CompactionFilter"; } 27002: static Status CreateFromString(const ConfigOptions& config_options, 27002: const std::string& name, 27002: const CompactionFilter** result); 27002: # 104 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 27002: virtual bool Filter(int , const Slice& , 27002: const Slice& , 27002: std::string* , 27002: bool* ) const { 27002: return false; 27002: } 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 27002: virtual bool FilterMergeOperand(int , const Slice& , 27002: const Slice& ) const { 27002: return false; 27002: } 27002: # 166 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 27002: virtual Decision FilterV2(int level, const Slice& key, ValueType value_type, 27002: const Slice& existing_value, std::string* new_value, 27002: std::string* ) const { 27002: switch (value_type) { 27002: case ValueType::kValue: { 27002: bool value_changed = false; 27002: bool rv = Filter(level, key, existing_value, new_value, &value_changed); 27002: if (rv) { 27002: return Decision::kRemove; 27002: } 27002: return value_changed ? Decision::kChangeValue : Decision::kKeep; 27002: } 27002: case ValueType::kMergeOperand: { 27002: bool rv = FilterMergeOperand(level, key, existing_value); 27002: return rv ? Decision::kRemove : Decision::kKeep; 27002: } 27002: case ValueType::kBlobIndex: 27002: return Decision::kKeep; 27002: } 27002: 27002: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 3 4 27002: (static_cast ( 27002: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 27002: false 27002: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 27002: "false" 27002: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 3 4 27002: , "./include/rocksdb/compaction_filter.h", 185, __extension__ __PRETTY_FUNCTION__)) 27002: # 185 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 27002: ; 27002: return Decision::kKeep; 27002: } 27002: 27002: 27002: virtual BlobDecision PrepareBlobOutput(const Slice& , 27002: const Slice& , 27002: std::string* ) const { 27002: return BlobDecision::kKeep; 27002: } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual bool IgnoreSnapshots() const { return true; } 27002: 27002: 27002: 27002: const char* Name() const override = 0; 27002: 27002: 27002: virtual bool IsStackedBlobDbInternalCompactionFilter() const { return false; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual Decision FilterBlobByKey(int , const Slice& , 27002: std::string* , 27002: std::string* ) const { 27002: return Decision::kUndetermined; 27002: } 27002: }; 27002: # 230 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/compaction_filter.h" 27002: class CompactionFilterFactory : public Customizable { 27002: public: 27002: virtual ~CompactionFilterFactory() {} 27002: static const char* Type() { return "CompactionFilterFactory"; } 27002: static Status CreateFromString( 27002: const ConfigOptions& config_options, const std::string& name, 27002: std::shared_ptr* result); 27002: 27002: 27002: 27002: 27002: virtual bool ShouldFilterTableFileCreation( 27002: TableFileCreationReason reason) const { 27002: 27002: 27002: return reason == TableFileCreationReason::kCompaction; 27002: } 27002: 27002: virtual std::unique_ptr CreateCompactionFilter( 27002: const CompactionFilter::Context& context) = 0; 27002: 27002: 27002: virtual const char* Name() const override = 0; 27002: }; 27002: 27002: } 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: class Logger; 27002: # 50 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: class MergeOperator : public Customizable { 27002: public: 27002: virtual ~MergeOperator() {} 27002: static const char* Type() { return "MergeOperator"; } 27002: static Status CreateFromString(const ConfigOptions& opts, 27002: const std::string& id, 27002: std::shared_ptr* result); 27002: # 76 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: virtual bool FullMerge(const Slice& , const Slice* , 27002: const std::deque& , 27002: std::string* , Logger* ) const { 27002: 27002: 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 3 4 27002: (static_cast ( 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: false 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: "false" 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 3 4 27002: , "./include/rocksdb/merge_operator.h", 80, __extension__ __PRETTY_FUNCTION__)) 27002: # 80 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: ; 27002: return false; 27002: } 27002: 27002: struct MergeOperationInput { 27002: explicit MergeOperationInput(const Slice& _key, 27002: const Slice* _existing_value, 27002: const std::vector& _operand_list, 27002: Logger* _logger) 27002: : key(_key), 27002: existing_value(_existing_value), 27002: operand_list(_operand_list), 27002: logger(_logger) {} 27002: 27002: 27002: const Slice& key; 27002: 27002: 27002: const Slice* existing_value; 27002: 27002: const std::vector& operand_list; 27002: 27002: 27002: Logger* logger; 27002: }; 27002: 27002: struct MergeOperationOutput { 27002: explicit MergeOperationOutput(std::string& _new_value, 27002: Slice& _existing_operand) 27002: : new_value(_new_value), existing_operand(_existing_operand) {} 27002: 27002: 27002: std::string& new_value; 27002: 27002: 27002: 27002: Slice& existing_operand; 27002: }; 27002: # 136 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: virtual bool FullMergeV2(const MergeOperationInput& merge_in, 27002: MergeOperationOutput* merge_out) const; 27002: # 170 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: virtual bool PartialMerge(const Slice& , const Slice& , 27002: const Slice& , 27002: std::string* , 27002: Logger* ) const { 27002: return false; 27002: } 27002: # 198 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: virtual bool PartialMergeMulti(const Slice& key, 27002: const std::deque& operand_list, 27002: std::string* new_value, Logger* logger) const; 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual const char* Name() const override = 0; 27002: 27002: 27002: 27002: 27002: 27002: 27002: virtual bool AllowSingleOperand() const { return false; } 27002: # 227 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: virtual bool ShouldMerge(const std::vector& ) const { 27002: return false; 27002: } 27002: }; 27002: 27002: 27002: class AssociativeMergeOperator : public MergeOperator { 27002: public: 27002: ~AssociativeMergeOperator() override {} 27002: # 250 "/build/reproducible-path/rocksdb-7.8.3/include/rocksdb/merge_operator.h" 27002: virtual bool Merge(const Slice& key, const Slice* existing_value, 27002: const Slice& value, std::string* new_value, 27002: Logger* logger) const = 0; 27002: 27002: private: 27002: 27002: bool FullMergeV2(const MergeOperationInput& merge_in, 27002: MergeOperationOutput* merge_out) const override; 27002: 27002: bool PartialMerge(const Slice& key, const Slice& left_operand, 27002: const Slice& right_operand, std::string* new_value, 27002: Logger* logger) const override; 27002: }; 27002: 27002: } 27002: # 18 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 2 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class Comparator; 27002: class Iterator; 27002: class Logger; 27002: class MergeOperator; 27002: class Statistics; 27002: class SystemClock; 27002: class BlobFetcher; 27002: class PrefetchBufferCollection; 27002: struct CompactionIterationStats; 27002: 27002: class MergeHelper { 27002: public: 27002: MergeHelper(Env* env, const Comparator* user_comparator, 27002: const MergeOperator* user_merge_operator, 27002: const CompactionFilter* compaction_filter, Logger* logger, 27002: bool assert_valid_internal_key, SequenceNumber latest_snapshot, 27002: const SnapshotChecker* snapshot_checker = nullptr, int level = 0, 27002: Statistics* stats = nullptr, 27002: const std::atomic* shutting_down = nullptr); 27002: # 51 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: static Status TimedFullMerge(const MergeOperator* merge_operator, 27002: const Slice& key, const Slice* value, 27002: const std::vector& operands, 27002: std::string* result, Logger* logger, 27002: Statistics* statistics, SystemClock* clock, 27002: Slice* result_operand = nullptr, 27002: bool update_num_ops_stats = false); 27002: # 90 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: Status MergeUntil(InternalIterator* iter, 27002: CompactionRangeDelAggregator* range_del_agg, 27002: const SequenceNumber stop_before, const bool at_bottom, 27002: const bool allow_data_in_errors, 27002: const BlobFetcher* blob_fetcher, 27002: PrefetchBufferCollection* prefetch_buffers, 27002: CompactionIterationStats* c_iter_stats); 27002: 27002: 27002: 27002: 27002: 27002: CompactionFilter::Decision FilterMerge(const Slice& user_key, 27002: const Slice& value_slice); 27002: # 130 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: const std::deque& keys() const { return keys_; } 27002: const std::vector& values() const { 27002: return merge_context_.GetOperands(); 27002: } 27002: uint64_t TotalFilterTime() const { return total_filter_time_; } 27002: bool HasOperator() const { return user_merge_operator_ != nullptr; } 27002: 27002: 27002: 27002: 27002: bool FilteredUntil(Slice* skip_until) const { 27002: if (!has_compaction_filter_skip_until_) { 27002: return false; 27002: } 27002: 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 27002: (static_cast ( 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: compaction_filter_ != nullptr 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: "compaction_filter_ != nullptr" 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 27002: , "./db/merge_helper.h", 144, __extension__ __PRETTY_FUNCTION__)) 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: ; 27002: 27002: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 27002: (static_cast ( 27002: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: skip_until != nullptr 27002: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: "skip_until != nullptr" 27002: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 27002: , "./db/merge_helper.h", 145, __extension__ __PRETTY_FUNCTION__)) 27002: # 145 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: ; 27002: 27002: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 27002: (static_cast ( 27002: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: compaction_filter_skip_until_.Valid() 27002: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: "compaction_filter_skip_until_.Valid()" 27002: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 3 4 27002: , "./db/merge_helper.h", 146, __extension__ __PRETTY_FUNCTION__)) 27002: # 146 "/build/reproducible-path/rocksdb-7.8.3/db/merge_helper.h" 27002: ; 27002: *skip_until = compaction_filter_skip_until_.Encode(); 27002: return true; 27002: } 27002: 27002: private: 27002: Env* env_; 27002: SystemClock* clock_; 27002: const Comparator* user_comparator_; 27002: const MergeOperator* user_merge_operator_; 27002: const CompactionFilter* compaction_filter_; 27002: const std::atomic* shutting_down_; 27002: Logger* logger_; 27002: bool assert_valid_internal_key_; 27002: bool allow_single_operand_; 27002: SequenceNumber latest_snapshot_; 27002: const SnapshotChecker* const snapshot_checker_; 27002: int level_; 27002: 27002: 27002: 27002: 27002: 27002: std::deque keys_; 27002: 27002: mutable MergeContext merge_context_; 27002: 27002: StopWatchNano filter_timer_; 27002: uint64_t total_filter_time_; 27002: Statistics* stats_; 27002: 27002: bool has_compaction_filter_skip_until_ = false; 27002: std::string compaction_filter_value_; 27002: InternalKey compaction_filter_skip_until_; 27002: 27002: bool IsShuttingDown() { 27002: 27002: return shutting_down_ && shutting_down_->load(std::memory_order_relaxed); 27002: } 27002: }; 27002: 27002: 27002: class MergeOutputIterator { 27002: public: 27002: 27002: explicit MergeOutputIterator(const MergeHelper* merge_helper); 27002: 27002: 27002: void SeekToFirst(); 27002: 27002: void Next(); 27002: 27002: Slice key() { return Slice(*it_keys_); } 27002: Slice value() { return Slice(*it_values_); } 27002: bool Valid() { return it_keys_ != merge_helper_->keys().rend(); } 27002: 27002: private: 27002: const MergeHelper* merge_helper_; 27002: std::deque::const_reverse_iterator it_keys_; 27002: std::vector::const_reverse_iterator it_values_; 27002: }; 27002: 27002: } 27002: # 21 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 27002: 27002: 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/db/wide/wide_column_serialization.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 15 "/build/reproducible-path/rocksdb-7.8.3/db/wide/wide_column_serialization.h" 27002: namespace rocksdb { 27002: 27002: class Slice; 27002: # 44 "/build/reproducible-path/rocksdb-7.8.3/db/wide/wide_column_serialization.h" 27002: class WideColumnSerialization { 27002: public: 27002: static Status Serialize(const WideColumns& columns, std::string& output); 27002: static Status Serialize(const Slice& value_of_default, 27002: const WideColumns& other_columns, 27002: std::string& output); 27002: 27002: static Status Deserialize(Slice& input, WideColumns& columns); 27002: 27002: static WideColumns::const_iterator Find(const WideColumns& columns, 27002: const Slice& column_name); 27002: static Status GetValueOfDefaultColumn(Slice& input, Slice& value); 27002: 27002: static constexpr uint32_t kCurrentVersion = 1; 27002: 27002: private: 27002: static Status SerializeImpl(const Slice* value_of_default, 27002: const WideColumns& columns, std::string& output); 27002: }; 27002: 27002: inline Status WideColumnSerialization::Serialize(const WideColumns& columns, 27002: std::string& output) { 27002: constexpr Slice* value_of_default = nullptr; 27002: 27002: return SerializeImpl(value_of_default, columns, output); 27002: } 27002: 27002: inline Status WideColumnSerialization::Serialize( 27002: const Slice& value_of_default, const WideColumns& other_columns, 27002: std::string& output) { 27002: return SerializeImpl(&value_of_default, other_columns, output); 27002: } 27002: 27002: } 27002: # 25 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/logging/logging.h" 1 27002: # 13 "/build/reproducible-path/rocksdb-7.8.3/logging/logging.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: inline const char* RocksLogShorterFileName(const char* file) 27002: { 27002: 27002: 27002: return file + (sizeof("./logging/logging.h") > 18 ? sizeof("./logging/logging.h") - 18 : 0); 27002: } 27002: # 26 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 27002: 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/memory/memory_usage.h" 1 27002: 27002: 27002: 27002: 27002: 27002: 27002: # 16 "/build/reproducible-path/rocksdb-7.8.3/memory/memory_usage.h" 27002: namespace rocksdb { 27002: 27002: 27002: 27002: template 27002: size_t ApproximateMemoryUsage( 27002: const std::unordered_map& umap) { 27002: using Map = std::unordered_map; 27002: return sizeof(umap) + 27002: 27002: (sizeof(typename Map::value_type) + sizeof(void*)) * umap.size() + 27002: 27002: umap.bucket_count() * sizeof(void*); 27002: } 27002: # 38 "/build/reproducible-path/rocksdb-7.8.3/memory/memory_usage.h" 27002: } 27002: # 28 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 27002: # 40 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: 27002: 27002: 27002: 27002: template 27002: class IteratorWrapperBase { 27002: public: 27002: IteratorWrapperBase() : iter_(nullptr), valid_(false) {} 27002: explicit IteratorWrapperBase(InternalIteratorBase* _iter) 27002: : iter_(nullptr) { 27002: Set(_iter); 27002: } 27002: ~IteratorWrapperBase() {} 27002: InternalIteratorBase* iter() const { return iter_; } 27002: 27002: 27002: 27002: InternalIteratorBase* Set(InternalIteratorBase* _iter) { 27002: InternalIteratorBase* old_iter = iter_; 27002: 27002: iter_ = _iter; 27002: if (iter_ == nullptr) { 27002: valid_ = false; 27002: } else { 27002: Update(); 27002: } 27002: return old_iter; 27002: } 27002: 27002: void DeleteIter(bool is_arena_mode) { 27002: if (iter_) { 27002: if (!is_arena_mode) { 27002: delete iter_; 27002: } else { 27002: iter_->~InternalIteratorBase(); 27002: } 27002: } 27002: } 27002: 27002: 27002: bool Valid() const { return valid_; } 27002: Slice key() const { 27002: 27002: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: Valid() 27002: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "Valid()" 27002: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 61, __extension__ __PRETTY_FUNCTION__)) 27002: # 61 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: return result_.key; 27002: } 27002: TValue value() const { 27002: 27002: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: Valid() 27002: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "Valid()" 27002: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 65, __extension__ __PRETTY_FUNCTION__)) 27002: # 65 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: return iter_->value(); 27002: } 27002: 27002: Status status() const { 27002: 27002: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: iter_ 27002: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "iter_" 27002: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 70, __extension__ __PRETTY_FUNCTION__)) 27002: # 70 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: return iter_->status(); 27002: } 27002: bool PrepareValue() { 27002: 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: Valid() 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "Valid()" 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 74, __extension__ __PRETTY_FUNCTION__)) 27002: # 74 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: if (result_.value_prepared) { 27002: return true; 27002: } 27002: if (iter_->PrepareValue()) { 27002: result_.value_prepared = true; 27002: return true; 27002: } 27002: 27002: 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: !iter_->Valid() 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "!iter_->Valid()" 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 83, __extension__ __PRETTY_FUNCTION__)) 27002: # 83 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: valid_ = false; 27002: return false; 27002: } 27002: void Next() { 27002: 27002: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: iter_ 27002: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "iter_" 27002: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 88, __extension__ __PRETTY_FUNCTION__)) 27002: # 88 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: valid_ = iter_->NextAndGetResult(&result_); 27002: 27002: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: !valid_ || iter_->status().ok() 27002: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "!valid_ || iter_->status().ok()" 27002: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 90, __extension__ __PRETTY_FUNCTION__)) 27002: # 90 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: } 27002: bool NextAndGetResult(IterateResult* result) { 27002: 27002: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: iter_ 27002: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "iter_" 27002: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 93, __extension__ __PRETTY_FUNCTION__)) 27002: # 93 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: valid_ = iter_->NextAndGetResult(&result_); 27002: *result = result_; 27002: 27002: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: !valid_ || iter_->status().ok() 27002: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "!valid_ || iter_->status().ok()" 27002: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 96, __extension__ __PRETTY_FUNCTION__)) 27002: # 96 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: return valid_; 27002: } 27002: void Prev() { 27002: 27002: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: iter_ 27002: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "iter_" 27002: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 100, __extension__ __PRETTY_FUNCTION__)) 27002: # 100 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: iter_->Prev(); 27002: Update(); 27002: } 27002: void Seek(const Slice& k) { 27002: 27002: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: iter_ 27002: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "iter_" 27002: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 105, __extension__ __PRETTY_FUNCTION__)) 27002: # 105 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: iter_->Seek(k); 27002: Update(); 27002: } 27002: void SeekForPrev(const Slice& k) { 27002: 27002: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: iter_ 27002: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "iter_" 27002: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 110, __extension__ __PRETTY_FUNCTION__)) 27002: # 110 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: iter_->SeekForPrev(k); 27002: Update(); 27002: } 27002: void SeekToFirst() { 27002: 27002: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: iter_ 27002: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "iter_" 27002: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 115, __extension__ __PRETTY_FUNCTION__)) 27002: # 115 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: iter_->SeekToFirst(); 27002: Update(); 27002: } 27002: void SeekToLast() { 27002: 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: iter_ 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "iter_" 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 120, __extension__ __PRETTY_FUNCTION__)) 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: iter_->SeekToLast(); 27002: Update(); 27002: } 27002: 27002: bool MayBeOutOfLowerBound() { 27002: 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: Valid() 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "Valid()" 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 126, __extension__ __PRETTY_FUNCTION__)) 27002: # 126 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: return iter_->MayBeOutOfLowerBound(); 27002: } 27002: 27002: IterBoundCheck UpperBoundCheckResult() { 27002: 27002: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: Valid() 27002: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "Valid()" 27002: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 131, __extension__ __PRETTY_FUNCTION__)) 27002: # 131 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: return result_.bound_check_result; 27002: } 27002: 27002: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) { 27002: 27002: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: iter_ 27002: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "iter_" 27002: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 136, __extension__ __PRETTY_FUNCTION__)) 27002: # 136 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: iter_->SetPinnedItersMgr(pinned_iters_mgr); 27002: } 27002: bool IsKeyPinned() const { 27002: 27002: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: Valid() 27002: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "Valid()" 27002: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 140, __extension__ __PRETTY_FUNCTION__)) 27002: # 140 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: return iter_->IsKeyPinned(); 27002: } 27002: bool IsValuePinned() const { 27002: 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: Valid() 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "Valid()" 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 144, __extension__ __PRETTY_FUNCTION__)) 27002: # 144 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: return iter_->IsValuePinned(); 27002: } 27002: 27002: bool IsValuePrepared() const { 27002: return result_.value_prepared; 27002: } 27002: 27002: Slice user_key() const { 27002: 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: Valid() 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "Valid()" 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 153, __extension__ __PRETTY_FUNCTION__)) 27002: # 153 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: return iter_->user_key(); 27002: } 27002: 27002: void UpdateReadaheadState(InternalIteratorBase* old_iter) { 27002: if (old_iter && iter_) { 27002: ReadaheadFileInfo readahead_file_info; 27002: old_iter->GetReadaheadState(&readahead_file_info); 27002: iter_->SetReadaheadState(&readahead_file_info); 27002: } 27002: } 27002: 27002: bool IsDeleteRangeSentinelKey() const { 27002: return iter_->IsDeleteRangeSentinelKey(); 27002: } 27002: 27002: private: 27002: void Update() { 27002: valid_ = iter_->Valid(); 27002: if (valid_) { 27002: 27002: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: (static_cast ( 27002: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: iter_->status().ok() 27002: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: "iter_->status().ok()" 27002: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 3 4 27002: , "./table/iterator_wrapper.h", 173, __extension__ __PRETTY_FUNCTION__)) 27002: # 173 "/build/reproducible-path/rocksdb-7.8.3/table/iterator_wrapper.h" 27002: ; 27002: result_.key = iter_->key(); 27002: result_.bound_check_result = IterBoundCheck::kUnknown; 27002: result_.value_prepared = false; 27002: } 27002: } 27002: 27002: InternalIteratorBase* iter_; 27002: IterateResult result_; 27002: bool valid_; 27002: }; 27002: 27002: using IteratorWrapper = IteratorWrapperBase; 27002: 27002: class Arena; 27002: 27002: template 27002: extern InternalIteratorBase* NewEmptyInternalIterator(Arena* arena); 27002: 27002: } 27002: # 41 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 27002: # 1 "/build/reproducible-path/rocksdb-7.8.3/table/merging_iterator.h" 1 27002: # 10 "/build/reproducible-path/rocksdb-7.8.3/table/merging_iterator.h" 27002: 27002: 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: class Arena; 27002: class ArenaWrappedDBIter; 27002: class InternalKeyComparator; 27002: 27002: template 27002: class InternalIteratorBase; 27002: using InternalIterator = InternalIteratorBase; 27002: # 34 "/build/reproducible-path/rocksdb-7.8.3/table/merging_iterator.h" 27002: extern InternalIterator* NewMergingIterator( 27002: const InternalKeyComparator* comparator, InternalIterator** children, int n, 27002: Arena* arena = nullptr, bool prefix_seek_mode = false); 27002: 27002: class MergingIterator; 27002: 27002: 27002: 27002: 27002: class MergeIteratorBuilder { 27002: public: 27002: 27002: 27002: explicit MergeIteratorBuilder(const InternalKeyComparator* comparator, 27002: Arena* arena, bool prefix_seek_mode = false, 27002: const Slice* iterate_upper_bound = nullptr); 27002: ~MergeIteratorBuilder(); 27002: 27002: 27002: void AddIterator(InternalIterator* iter); 27002: # 66 "/build/reproducible-path/rocksdb-7.8.3/table/merging_iterator.h" 27002: void AddPointAndTombstoneIterator( 27002: InternalIterator* point_iter, TruncatedRangeDelIterator* tombstone_iter, 27002: TruncatedRangeDelIterator*** tombstone_iter_ptr = nullptr); 27002: 27002: 27002: 27002: Arena* GetArena() { return arena; } 27002: 27002: 27002: 27002: 27002: 27002: 27002: InternalIterator* Finish(ArenaWrappedDBIter* db_iter = nullptr); 27002: 27002: private: 27002: MergingIterator* merge_iter; 27002: InternalIterator* first_iter; 27002: bool use_merging_iter; 27002: Arena* arena; 27002: 27002: 27002: std::vector> 27002: range_del_iter_ptrs_; 27002: }; 27002: 27002: } 27002: # 42 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 2 27002: 27002: 27002: 27002: 27002: namespace rocksdb { 27002: 27002: ImmutableMemTableOptions::ImmutableMemTableOptions( 27002: const ImmutableOptions& ioptions, 27002: const MutableCFOptions& mutable_cf_options) 27002: : arena_block_size(mutable_cf_options.arena_block_size), 27002: memtable_prefix_bloom_bits( 27002: static_cast( 27002: static_cast(mutable_cf_options.write_buffer_size) * 27002: mutable_cf_options.memtable_prefix_bloom_size_ratio) * 27002: 8u), 27002: memtable_huge_page_size(mutable_cf_options.memtable_huge_page_size), 27002: memtable_whole_key_filtering( 27002: mutable_cf_options.memtable_whole_key_filtering), 27002: inplace_update_support(ioptions.inplace_update_support), 27002: inplace_update_num_locks(mutable_cf_options.inplace_update_num_locks), 27002: inplace_callback(ioptions.inplace_callback), 27002: max_successive_merges(mutable_cf_options.max_successive_merges), 27002: statistics(ioptions.stats), 27002: merge_operator(ioptions.merge_operator.get()), 27002: info_log(ioptions.logger), 27002: allow_data_in_errors(ioptions.allow_data_in_errors), 27002: protection_bytes_per_key( 27002: mutable_cf_options.memtable_protection_bytes_per_key) {} 27002: 27002: MemTable::MemTable(const InternalKeyComparator& cmp, 27002: const ImmutableOptions& ioptions, 27002: const MutableCFOptions& mutable_cf_options, 27002: WriteBufferManager* write_buffer_manager, 27002: SequenceNumber latest_seq, uint32_t column_family_id) 27002: : comparator_(cmp), 27002: moptions_(ioptions, mutable_cf_options), 27002: refs_(0), 27002: kArenaBlockSize(OptimizeBlockSize(moptions_.arena_block_size)), 27002: mem_tracker_(write_buffer_manager), 27002: arena_(moptions_.arena_block_size, 27002: (write_buffer_manager != nullptr && 27002: (write_buffer_manager->enabled() || 27002: write_buffer_manager->cost_to_cache())) 27002: ? &mem_tracker_ 27002: : nullptr, 27002: mutable_cf_options.memtable_huge_page_size), 27002: table_(ioptions.memtable_factory->CreateMemTableRep( 27002: comparator_, &arena_, mutable_cf_options.prefix_extractor.get(), 27002: ioptions.logger, column_family_id)), 27002: range_del_table_(SkipListFactory().CreateMemTableRep( 27002: comparator_, &arena_, nullptr , ioptions.logger, 27002: column_family_id)), 27002: is_range_del_table_empty_(true), 27002: data_size_(0), 27002: num_entries_(0), 27002: num_deletes_(0), 27002: write_buffer_size_(mutable_cf_options.write_buffer_size), 27002: flush_in_progress_(false), 27002: flush_completed_(false), 27002: file_number_(0), 27002: first_seqno_(0), 27002: earliest_seqno_(latest_seq), 27002: creation_seq_(latest_seq), 27002: mem_next_logfile_number_(0), 27002: min_prep_log_referenced_(0), 27002: locks_(moptions_.inplace_update_support 27002: ? moptions_.inplace_update_num_locks 27002: : 0), 27002: prefix_extractor_(mutable_cf_options.prefix_extractor.get()), 27002: flush_state_(FLUSH_NOT_REQUESTED), 27002: clock_(ioptions.clock), 27002: insert_with_hint_prefix_extractor_( 27002: ioptions.memtable_insert_with_hint_prefix_extractor.get()), 27002: oldest_key_time_(std::numeric_limits::max()), 27002: atomic_flush_seqno_(kMaxSequenceNumber), 27002: approximate_memory_usage_(0) { 27002: UpdateFlushState(); 27002: 27002: 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: !ShouldScheduleFlush() 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "!ShouldScheduleFlush()" 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 120, __extension__ __PRETTY_FUNCTION__)) 27002: # 120 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: 27002: 27002: if ((prefix_extractor_ || moptions_.memtable_whole_key_filtering) && 27002: moptions_.memtable_prefix_bloom_bits > 0) { 27002: bloom_filter_.reset( 27002: new DynamicBloom(&arena_, moptions_.memtable_prefix_bloom_bits, 27002: 6 , 27002: moptions_.memtable_huge_page_size, ioptions.logger)); 27002: } 27002: 27002: 27002: 27002: auto new_cache = std::make_shared(); 27002: size_t size = cached_range_tombstone_.Size(); 27002: for (size_t i = 0; i < size; ++i) { 27002: std::shared_ptr* local_cache_ref_ptr = 27002: cached_range_tombstone_.AccessAtCore(i); 27002: auto new_local_cache_ref = std::make_shared< 27002: const std::shared_ptr>(new_cache); 27002: std::atomic_store_explicit( 27002: local_cache_ref_ptr, 27002: std::shared_ptr(new_local_cache_ref, 27002: new_cache.get()), 27002: std::memory_order_relaxed); 27002: } 27002: } 27002: 27002: MemTable::~MemTable() { 27002: mem_tracker_.FreeMem(); 27002: 27002: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: refs_ == 0 27002: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "refs_ == 0" 27002: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 150, __extension__ __PRETTY_FUNCTION__)) 27002: # 150 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: } 27002: 27002: size_t MemTable::ApproximateMemoryUsage() { 27002: autovector usages = { 27002: arena_.ApproximateMemoryUsage(), table_->ApproximateMemoryUsage(), 27002: range_del_table_->ApproximateMemoryUsage(), 27002: rocksdb::ApproximateMemoryUsage(insert_hints_)}; 27002: size_t total_usage = 0; 27002: for (size_t usage : usages) { 27002: 27002: 27002: if (usage >= std::numeric_limits::max() - total_usage) { 27002: return std::numeric_limits::max(); 27002: } 27002: total_usage += usage; 27002: } 27002: approximate_memory_usage_.store(total_usage, std::memory_order_relaxed); 27002: 27002: return total_usage; 27002: } 27002: 27002: bool MemTable::ShouldFlushNow() { 27002: size_t write_buffer_size = write_buffer_size_.load(std::memory_order_relaxed); 27002: 27002: 27002: 27002: 27002: 27002: 27002: const double kAllowOverAllocationRatio = 0.6; 27002: 27002: 27002: 27002: auto allocated_memory = table_->ApproximateMemoryUsage() + 27002: range_del_table_->ApproximateMemoryUsage() + 27002: arena_.MemoryAllocatedBytes(); 27002: 27002: approximate_memory_usage_.store(allocated_memory, std::memory_order_relaxed); 27002: 27002: 27002: 27002: if (allocated_memory + kArenaBlockSize < 27002: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 27002: return false; 27002: } 27002: 27002: 27002: 27002: if (allocated_memory > 27002: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 27002: return true; 27002: } 27002: # 229 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: return arena_.AllocatedAndUnused() < kArenaBlockSize / 4; 27002: } 27002: 27002: void MemTable::UpdateFlushState() { 27002: auto state = flush_state_.load(std::memory_order_relaxed); 27002: if (state == FLUSH_NOT_REQUESTED && ShouldFlushNow()) { 27002: 27002: 27002: flush_state_.compare_exchange_strong(state, FLUSH_REQUESTED, 27002: std::memory_order_relaxed, 27002: std::memory_order_relaxed); 27002: } 27002: } 27002: 27002: void MemTable::UpdateOldestKeyTime() { 27002: uint64_t oldest_key_time = oldest_key_time_.load(std::memory_order_relaxed); 27002: if (oldest_key_time == std::numeric_limits::max()) { 27002: int64_t current_time = 0; 27002: auto s = clock_->GetCurrentTime(¤t_time); 27002: if (s.ok()) { 27002: 27002: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: current_time >= 0 27002: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "current_time >= 0" 27002: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 249, __extension__ __PRETTY_FUNCTION__)) 27002: # 249 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: 27002: oldest_key_time_.compare_exchange_strong( 27002: oldest_key_time, static_cast(current_time), 27002: std::memory_order_relaxed, std::memory_order_relaxed); 27002: } 27002: } 27002: } 27002: 27002: Status MemTable::VerifyEntryChecksum(const char* entry, 27002: size_t protection_bytes_per_key, 27002: bool allow_data_in_errors) { 27002: if (protection_bytes_per_key == 0) { 27002: return Status::OK(); 27002: } 27002: uint32_t key_length; 27002: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 27002: if (key_ptr == nullptr) { 27002: return Status::Corruption("Unable to parse internal key length"); 27002: } 27002: if (key_length < 8) { 27002: return Status::Corruption("Memtable entry internal key length too short."); 27002: } 27002: Slice user_key = Slice(key_ptr, key_length - 8); 27002: 27002: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 27002: ValueType type; 27002: SequenceNumber seq; 27002: UnPackSequenceAndType(tag, &seq, &type); 27002: 27002: uint32_t value_length = 0; 27002: const char* value_ptr = GetVarint32Ptr( 27002: key_ptr + key_length, key_ptr + key_length + 5, &value_length); 27002: if (value_ptr == nullptr) { 27002: return Status::Corruption("Unable to parse internal key value"); 27002: } 27002: Slice value = Slice(value_ptr, value_length); 27002: 27002: const char* checksum_ptr = value_ptr + value_length; 27002: uint64_t expected = ProtectionInfo64() 27002: .ProtectKVO(user_key, value, type) 27002: .ProtectS(seq) 27002: .GetVal(); 27002: bool match = true; 27002: switch (protection_bytes_per_key) { 27002: case 1: 27002: match = static_cast(checksum_ptr[0]) == 27002: static_cast(expected); 27002: break; 27002: case 2: 27002: match = DecodeFixed16(checksum_ptr) == static_cast(expected); 27002: break; 27002: case 4: 27002: match = DecodeFixed32(checksum_ptr) == static_cast(expected); 27002: break; 27002: case 8: 27002: match = DecodeFixed64(checksum_ptr) == expected; 27002: break; 27002: default: 27002: 27002: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: false 27002: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "false" 27002: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 308, __extension__ __PRETTY_FUNCTION__)) 27002: # 308 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: } 27002: if (!match) { 27002: std::string msg( 27002: "Corrupted memtable entry, per key-value checksum verification " 27002: "failed."); 27002: if (allow_data_in_errors) { 27002: msg.append("Unrecognized value type: " + 27002: std::to_string(static_cast(type)) + ". "); 27002: msg.append("User key: " + user_key.ToString( true) + ". "); 27002: msg.append("seq: " + std::to_string(seq) + "."); 27002: } 27002: return Status::Corruption(msg.c_str()); 27002: } 27002: return Status::OK(); 27002: } 27002: 27002: int MemTable::KeyComparator::operator()(const char* prefix_len_key1, 27002: const char* prefix_len_key2) const { 27002: 27002: Slice k1 = GetLengthPrefixedSlice(prefix_len_key1); 27002: Slice k2 = GetLengthPrefixedSlice(prefix_len_key2); 27002: return comparator.CompareKeySeq(k1, k2); 27002: } 27002: 27002: int MemTable::KeyComparator::operator()(const char* prefix_len_key, 27002: const KeyComparator::DecodedType& key) 27002: const { 27002: 27002: Slice a = GetLengthPrefixedSlice(prefix_len_key); 27002: return comparator.CompareKeySeq(a, key); 27002: } 27002: 27002: void MemTableRep::InsertConcurrently(KeyHandle ) { 27002: 27002: throw std::runtime_error("concurrent insert not supported"); 27002: 27002: 27002: 27002: } 27002: 27002: Slice MemTableRep::UserKey(const char* key) const { 27002: Slice slice = GetLengthPrefixedSlice(key); 27002: return Slice(slice.data(), slice.size() - 8); 27002: } 27002: 27002: KeyHandle MemTableRep::Allocate(const size_t len, char** buf) { 27002: *buf = allocator_->Allocate(len); 27002: return static_cast(*buf); 27002: } 27002: 27002: 27002: 27002: 27002: const char* EncodeKey(std::string* scratch, const Slice& target) { 27002: scratch->clear(); 27002: PutVarint32(scratch, static_cast(target.size())); 27002: scratch->append(target.data(), target.size()); 27002: return scratch->data(); 27002: } 27002: 27002: class MemTableIterator : public InternalIterator { 27002: public: 27002: MemTableIterator(const MemTable& mem, const ReadOptions& read_options, 27002: Arena* arena, bool use_range_del_table = false) 27002: : bloom_(nullptr), 27002: prefix_extractor_(mem.prefix_extractor_), 27002: comparator_(mem.comparator_), 27002: valid_(false), 27002: arena_mode_(arena != nullptr), 27002: value_pinned_( 27002: !mem.GetImmutableMemTableOptions()->inplace_update_support), 27002: protection_bytes_per_key_(mem.moptions_.protection_bytes_per_key), 27002: status_(Status::OK()), 27002: logger_(mem.moptions_.info_log) { 27002: if (use_range_del_table) { 27002: iter_ = mem.range_del_table_->GetIterator(arena); 27002: } else if (prefix_extractor_ != nullptr && !read_options.total_order_seek && 27002: !read_options.auto_prefix_mode) { 27002: 27002: bloom_ = mem.bloom_filter_.get(); 27002: iter_ = mem.table_->GetDynamicPrefixIterator(arena); 27002: } else { 27002: iter_ = mem.table_->GetIterator(arena); 27002: } 27002: status_.PermitUncheckedError(); 27002: } 27002: 27002: MemTableIterator(const MemTableIterator&) = delete; 27002: void operator=(const MemTableIterator&) = delete; 27002: 27002: ~MemTableIterator() override { 27002: 27002: 27002: 27002: 27002: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: !pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled() 27002: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "!pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled()" 27002: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 403, __extension__ __PRETTY_FUNCTION__)) 27002: # 403 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: 27002: if (arena_mode_) { 27002: iter_->~Iterator(); 27002: } else { 27002: delete iter_; 27002: } 27002: } 27002: 27002: 27002: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 27002: pinned_iters_mgr_ = pinned_iters_mgr; 27002: } 27002: PinnedIteratorsManager* pinned_iters_mgr_ = nullptr; 27002: 27002: 27002: bool Valid() const override { return valid_ && status_.ok(); } 27002: void Seek(const Slice& k) override { 27002: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; }; 27002: if (bloom_) { 27002: 27002: auto ts_sz = comparator_.comparator.user_comparator()->timestamp_size(); 27002: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz)); 27002: if (prefix_extractor_->InDomain(user_k_without_ts)) { 27002: if (!bloom_->MayContain( 27002: prefix_extractor_->Transform(user_k_without_ts))) { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 27002: valid_ = false; 27002: return; 27002: } else { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 27002: } 27002: } 27002: } 27002: iter_->Seek(k, nullptr); 27002: valid_ = iter_->Valid(); 27002: VerifyEntryChecksum(); 27002: } 27002: void SeekForPrev(const Slice& k) override { 27002: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; }; 27002: if (bloom_) { 27002: auto ts_sz = comparator_.comparator.user_comparator()->timestamp_size(); 27002: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz)); 27002: if (prefix_extractor_->InDomain(user_k_without_ts)) { 27002: if (!bloom_->MayContain( 27002: prefix_extractor_->Transform(user_k_without_ts))) { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 27002: valid_ = false; 27002: return; 27002: } else { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 27002: } 27002: } 27002: } 27002: iter_->Seek(k, nullptr); 27002: valid_ = iter_->Valid(); 27002: VerifyEntryChecksum(); 27002: if (!Valid() && status().ok()) { 27002: SeekToLast(); 27002: } 27002: while (Valid() && comparator_.comparator.Compare(k, key()) < 0) { 27002: Prev(); 27002: } 27002: } 27002: void SeekToFirst() override { 27002: iter_->SeekToFirst(); 27002: valid_ = iter_->Valid(); 27002: VerifyEntryChecksum(); 27002: } 27002: void SeekToLast() override { 27002: iter_->SeekToLast(); 27002: valid_ = iter_->Valid(); 27002: VerifyEntryChecksum(); 27002: } 27002: void Next() override { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.next_on_memtable_count += 1; }; 27002: 27002: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: Valid() 27002: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "Valid()" 27002: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 481, __extension__ __PRETTY_FUNCTION__)) 27002: # 481 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: iter_->Next(); 27002: rocksdb::SyncPoint::GetInstance()->Process("MemTableIterator::Next:0", iter_); 27002: valid_ = iter_->Valid(); 27002: VerifyEntryChecksum(); 27002: } 27002: bool NextAndGetResult(IterateResult* result) override { 27002: Next(); 27002: bool is_valid = Valid(); 27002: if (is_valid) { 27002: result->key = key(); 27002: result->bound_check_result = IterBoundCheck::kUnknown; 27002: result->value_prepared = true; 27002: } 27002: return is_valid; 27002: } 27002: void Prev() override { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.prev_on_memtable_count += 1; }; 27002: 27002: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: Valid() 27002: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "Valid()" 27002: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 499, __extension__ __PRETTY_FUNCTION__)) 27002: # 499 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: iter_->Prev(); 27002: valid_ = iter_->Valid(); 27002: VerifyEntryChecksum(); 27002: } 27002: Slice key() const override { 27002: 27002: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: Valid() 27002: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "Valid()" 27002: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 505, __extension__ __PRETTY_FUNCTION__)) 27002: # 505 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: return GetLengthPrefixedSlice(iter_->key()); 27002: } 27002: Slice value() const override { 27002: 27002: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: Valid() 27002: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "Valid()" 27002: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 509, __extension__ __PRETTY_FUNCTION__)) 27002: # 509 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: Slice key_slice = GetLengthPrefixedSlice(iter_->key()); 27002: return GetLengthPrefixedSlice(key_slice.data() + key_slice.size()); 27002: } 27002: 27002: Status status() const override { return status_; } 27002: 27002: bool IsKeyPinned() const override { 27002: 27002: return true; 27002: } 27002: 27002: bool IsValuePinned() const override { 27002: 27002: return value_pinned_; 27002: } 27002: 27002: private: 27002: DynamicBloom* bloom_; 27002: const SliceTransform* const prefix_extractor_; 27002: const MemTable::KeyComparator comparator_; 27002: MemTableRep::Iterator* iter_; 27002: bool valid_; 27002: bool arena_mode_; 27002: bool value_pinned_; 27002: size_t protection_bytes_per_key_; 27002: Status status_; 27002: Logger* logger_; 27002: 27002: void VerifyEntryChecksum() { 27002: if (protection_bytes_per_key_ > 0 && Valid()) { 27002: status_ = MemTable::VerifyEntryChecksum(iter_->key(), 27002: protection_bytes_per_key_); 27002: if (!status_.ok()) { 27002: rocksdb::Log(InfoLogLevel::ERROR_LEVEL, logger_, ("[%s:" "543" "] " "In MemtableIterator: %s"), RocksLogShorterFileName("./db/memtable.cc"), status_.getState()); 27002: } 27002: } 27002: } 27002: }; 27002: 27002: InternalIterator* MemTable::NewIterator(const ReadOptions& read_options, 27002: Arena* arena) { 27002: 27002: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: arena != nullptr 27002: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "arena != nullptr" 27002: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 551, __extension__ __PRETTY_FUNCTION__)) 27002: # 551 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: auto mem = arena->AllocateAligned(sizeof(MemTableIterator)); 27002: return new (mem) MemTableIterator(*this, read_options, arena); 27002: } 27002: 27002: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIterator( 27002: const ReadOptions& read_options, SequenceNumber read_seq, 27002: bool immutable_memtable) { 27002: if (read_options.ignore_range_deletions || 27002: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 27002: return nullptr; 27002: } 27002: return NewRangeTombstoneIteratorInternal(read_options, read_seq, 27002: immutable_memtable); 27002: } 27002: 27002: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIteratorInternal( 27002: const ReadOptions& read_options, SequenceNumber read_seq, 27002: bool immutable_memtable) { 27002: if (immutable_memtable) { 27002: 27002: 27002: 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: IsFragmentedRangeTombstonesConstructed() 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "IsFragmentedRangeTombstonesConstructed()" 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 573, __extension__ __PRETTY_FUNCTION__)) 27002: # 573 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: return new FragmentedRangeTombstoneIterator( 27002: fragmented_range_tombstone_list_.get(), comparator_.comparator, 27002: read_seq, read_options.timestamp); 27002: } 27002: 27002: 27002: std::shared_ptr cache = 27002: std::atomic_load_explicit(cached_range_tombstone_.Access(), 27002: std::memory_order_relaxed); 27002: 27002: if (!cache->initialized.load(std::memory_order_acquire)) { 27002: cache->reader_mutex.lock(); 27002: if (!cache->tombstones) { 27002: auto* unfragmented_iter = 27002: new MemTableIterator(*this, read_options, nullptr , 27002: true ); 27002: cache->tombstones = std::make_unique( 27002: FragmentedRangeTombstoneList( 27002: std::unique_ptr(unfragmented_iter), 27002: comparator_.comparator)); 27002: cache->initialized.store(true, std::memory_order_release); 27002: } 27002: cache->reader_mutex.unlock(); 27002: } 27002: 27002: auto* fragmented_iter = new FragmentedRangeTombstoneIterator( 27002: cache, comparator_.comparator, read_seq, read_options.timestamp); 27002: return fragmented_iter; 27002: } 27002: 27002: void MemTable::ConstructFragmentedRangeTombstones() { 27002: 27002: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: !IsFragmentedRangeTombstonesConstructed(false) 27002: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "!IsFragmentedRangeTombstonesConstructed(false)" 27002: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 605, __extension__ __PRETTY_FUNCTION__)) 27002: # 605 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: 27002: if (!is_range_del_table_empty_.load(std::memory_order_relaxed)) { 27002: auto* unfragmented_iter = 27002: new MemTableIterator(*this, ReadOptions(), nullptr , 27002: true ); 27002: 27002: fragmented_range_tombstone_list_ = 27002: std::make_unique( 27002: std::unique_ptr(unfragmented_iter), 27002: comparator_.comparator); 27002: } 27002: } 27002: 27002: port::RWMutex* MemTable::GetLock(const Slice& key) { 27002: return &locks_[GetSliceRangedNPHash(key, locks_.size())]; 27002: } 27002: 27002: MemTable::MemTableStats MemTable::ApproximateStats(const Slice& start_ikey, 27002: const Slice& end_ikey) { 27002: uint64_t entry_count = table_->ApproximateNumEntries(start_ikey, end_ikey); 27002: entry_count += range_del_table_->ApproximateNumEntries(start_ikey, end_ikey); 27002: if (entry_count == 0) { 27002: return {0, 0}; 27002: } 27002: uint64_t n = num_entries_.load(std::memory_order_relaxed); 27002: if (n == 0) { 27002: return {0, 0}; 27002: } 27002: if (entry_count > n) { 27002: 27002: 27002: 27002: entry_count = n; 27002: } 27002: uint64_t data_size = data_size_.load(std::memory_order_relaxed); 27002: return {entry_count * (data_size / n), entry_count}; 27002: } 27002: 27002: Status MemTable::VerifyEncodedEntry(Slice encoded, 27002: const ProtectionInfoKVOS64& kv_prot_info) { 27002: uint32_t ikey_len = 0; 27002: if (!GetVarint32(&encoded, &ikey_len)) { 27002: return Status::Corruption("Unable to parse internal key length"); 27002: } 27002: size_t ts_sz = GetInternalKeyComparator().user_comparator()->timestamp_size(); 27002: if (ikey_len < 8 + ts_sz) { 27002: return Status::Corruption("Internal key length too short"); 27002: } 27002: if (ikey_len > encoded.size()) { 27002: return Status::Corruption("Internal key length too long"); 27002: } 27002: uint32_t value_len = 0; 27002: const size_t user_key_len = ikey_len - 8; 27002: Slice key(encoded.data(), user_key_len); 27002: encoded.remove_prefix(user_key_len); 27002: 27002: uint64_t packed = DecodeFixed64(encoded.data()); 27002: ValueType value_type = kMaxValue; 27002: SequenceNumber sequence_number = kMaxSequenceNumber; 27002: UnPackSequenceAndType(packed, &sequence_number, &value_type); 27002: encoded.remove_prefix(8); 27002: 27002: if (!GetVarint32(&encoded, &value_len)) { 27002: return Status::Corruption("Unable to parse value length"); 27002: } 27002: if (value_len < encoded.size()) { 27002: return Status::Corruption("Value length too short"); 27002: } 27002: if (value_len > encoded.size()) { 27002: return Status::Corruption("Value length too long"); 27002: } 27002: Slice value(encoded.data(), value_len); 27002: 27002: return kv_prot_info.StripS(sequence_number) 27002: .StripKVO(key, value, value_type) 27002: .GetStatus(); 27002: } 27002: 27002: void MemTable::UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 27002: const Slice& key, const Slice& value, 27002: ValueType type, SequenceNumber s, 27002: char* checksum_ptr) { 27002: if (moptions_.protection_bytes_per_key == 0) { 27002: return; 27002: } 27002: 27002: uint64_t checksum = 0; 27002: if (kv_prot_info == nullptr) { 27002: checksum = 27002: ProtectionInfo64().ProtectKVO(key, value, type).ProtectS(s).GetVal(); 27002: } else { 27002: checksum = kv_prot_info->GetVal(); 27002: } 27002: switch (moptions_.protection_bytes_per_key) { 27002: case 1: 27002: checksum_ptr[0] = static_cast(checksum); 27002: break; 27002: case 2: 27002: EncodeFixed16(checksum_ptr, static_cast(checksum)); 27002: break; 27002: case 4: 27002: EncodeFixed32(checksum_ptr, static_cast(checksum)); 27002: break; 27002: case 8: 27002: EncodeFixed64(checksum_ptr, checksum); 27002: break; 27002: default: 27002: 27002: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: false 27002: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "false" 27002: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 713, __extension__ __PRETTY_FUNCTION__)) 27002: # 713 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: } 27002: } 27002: 27002: Status MemTable::Add(SequenceNumber s, ValueType type, 27002: const Slice& key, 27002: const Slice& value, 27002: const ProtectionInfoKVOS64* kv_prot_info, 27002: bool allow_concurrent, 27002: MemTablePostProcessInfo* post_process_info, void** hint) { 27002: 27002: 27002: 27002: 27002: 27002: 27002: uint32_t key_size = static_cast(key.size()); 27002: uint32_t val_size = static_cast(value.size()); 27002: uint32_t internal_key_size = key_size + 8; 27002: const uint32_t encoded_len = VarintLength(internal_key_size) + 27002: internal_key_size + VarintLength(val_size) + 27002: val_size + moptions_.protection_bytes_per_key; 27002: char* buf = nullptr; 27002: std::unique_ptr& table = 27002: type == kTypeRangeDeletion ? range_del_table_ : table_; 27002: KeyHandle handle = table->Allocate(encoded_len, &buf); 27002: 27002: char* p = EncodeVarint32(buf, internal_key_size); 27002: memcpy(p, key.data(), key_size); 27002: Slice key_slice(p, key_size); 27002: p += key_size; 27002: uint64_t packed = PackSequenceAndType(s, type); 27002: EncodeFixed64(p, packed); 27002: p += 8; 27002: p = EncodeVarint32(p, val_size); 27002: memcpy(p, value.data(), val_size); 27002: 27002: # 749 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 749 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: (unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len 27002: # 749 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 749 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "(unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len" 27002: # 749 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 749, __extension__ __PRETTY_FUNCTION__)) 27002: 27002: # 750 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: 27002: UpdateEntryChecksum(kv_prot_info, key, value, type, s, 27002: buf + encoded_len - moptions_.protection_bytes_per_key); 27002: Slice encoded(buf, encoded_len - moptions_.protection_bytes_per_key); 27002: if (kv_prot_info != nullptr) { 27002: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:Encoded", &encoded); 27002: Status status = VerifyEncodedEntry(encoded, *kv_prot_info); 27002: if (!status.ok()) { 27002: return status; 27002: } 27002: } 27002: 27002: size_t ts_sz = GetInternalKeyComparator().user_comparator()->timestamp_size(); 27002: Slice key_without_ts = StripTimestampFromUserKey(key, ts_sz); 27002: 27002: if (!allow_concurrent) { 27002: 27002: if (insert_with_hint_prefix_extractor_ != nullptr && 27002: insert_with_hint_prefix_extractor_->InDomain(key_slice)) { 27002: Slice prefix = insert_with_hint_prefix_extractor_->Transform(key_slice); 27002: bool res = table->InsertKeyWithHint(handle, &insert_hints_[prefix]); 27002: if ((__builtin_expect((!res), 0))) { 27002: return Status::TryAgain("key+seq exists"); 27002: } 27002: } else { 27002: bool res = table->InsertKey(handle); 27002: if ((__builtin_expect((!res), 0))) { 27002: return Status::TryAgain("key+seq exists"); 27002: } 27002: } 27002: 27002: 27002: 27002: num_entries_.store(num_entries_.load(std::memory_order_relaxed) + 1, 27002: std::memory_order_relaxed); 27002: data_size_.store(data_size_.load(std::memory_order_relaxed) + encoded_len, 27002: std::memory_order_relaxed); 27002: if (type == kTypeDeletion) { 27002: num_deletes_.store(num_deletes_.load(std::memory_order_relaxed) + 1, 27002: std::memory_order_relaxed); 27002: } 27002: 27002: if (bloom_filter_ && prefix_extractor_ && 27002: prefix_extractor_->InDomain(key_without_ts)) { 27002: bloom_filter_->Add(prefix_extractor_->Transform(key_without_ts)); 27002: } 27002: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 27002: bloom_filter_->Add(key_without_ts); 27002: } 27002: 27002: 27002: 27002: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: first_seqno_ == 0 || s >= first_seqno_ 27002: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "first_seqno_ == 0 || s >= first_seqno_" 27002: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 802, __extension__ __PRETTY_FUNCTION__)) 27002: # 802 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: if (first_seqno_ == 0) { 27002: first_seqno_.store(s, std::memory_order_relaxed); 27002: 27002: if (earliest_seqno_ == kMaxSequenceNumber) { 27002: earliest_seqno_.store(GetFirstSequenceNumber(), 27002: std::memory_order_relaxed); 27002: } 27002: 27002: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: first_seqno_.load() >= earliest_seqno_.load() 27002: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "first_seqno_.load() >= earliest_seqno_.load()" 27002: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 810, __extension__ __PRETTY_FUNCTION__)) 27002: # 810 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: } 27002: 27002: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: post_process_info == nullptr 27002: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "post_process_info == nullptr" 27002: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 812, __extension__ __PRETTY_FUNCTION__)) 27002: # 812 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: UpdateFlushState(); 27002: } else { 27002: bool res = (hint == nullptr) 27002: ? table->InsertKeyConcurrently(handle) 27002: : table->InsertKeyWithHintConcurrently(handle, hint); 27002: if ((__builtin_expect((!res), 0))) { 27002: return Status::TryAgain("key+seq exists"); 27002: } 27002: 27002: 27002: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: post_process_info != nullptr 27002: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "post_process_info != nullptr" 27002: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 822, __extension__ __PRETTY_FUNCTION__)) 27002: # 822 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: post_process_info->num_entries++; 27002: post_process_info->data_size += encoded_len; 27002: if (type == kTypeDeletion) { 27002: post_process_info->num_deletes++; 27002: } 27002: 27002: if (bloom_filter_ && prefix_extractor_ && 27002: prefix_extractor_->InDomain(key_without_ts)) { 27002: bloom_filter_->AddConcurrently( 27002: prefix_extractor_->Transform(key_without_ts)); 27002: } 27002: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 27002: bloom_filter_->AddConcurrently(key_without_ts); 27002: } 27002: 27002: 27002: uint64_t cur_seq_num = first_seqno_.load(std::memory_order_relaxed); 27002: while ((cur_seq_num == 0 || s < cur_seq_num) && 27002: !first_seqno_.compare_exchange_weak(cur_seq_num, s)) { 27002: } 27002: uint64_t cur_earliest_seqno = 27002: earliest_seqno_.load(std::memory_order_relaxed); 27002: while ( 27002: (cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) && 27002: !first_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) { 27002: } 27002: } 27002: if (type == kTypeRangeDeletion) { 27002: auto new_cache = std::make_shared(); 27002: size_t size = cached_range_tombstone_.Size(); 27002: if (allow_concurrent) { 27002: range_del_mutex_.lock(); 27002: } 27002: for (size_t i = 0; i < size; ++i) { 27002: std::shared_ptr* local_cache_ref_ptr = 27002: cached_range_tombstone_.AccessAtCore(i); 27002: auto new_local_cache_ref = std::make_shared< 27002: const std::shared_ptr>(new_cache); 27002: 27002: 27002: 27002: 27002: 27002: std::atomic_store_explicit( 27002: local_cache_ref_ptr, 27002: std::shared_ptr( 27002: new_local_cache_ref, new_cache.get()), 27002: std::memory_order_relaxed); 27002: } 27002: if (allow_concurrent) { 27002: range_del_mutex_.unlock(); 27002: } 27002: is_range_del_table_empty_.store(false, std::memory_order_relaxed); 27002: } 27002: UpdateOldestKeyTime(); 27002: 27002: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:BeforeReturn:Encoded", &encoded); 27002: return Status::OK(); 27002: } 27002: 27002: 27002: namespace { 27002: 27002: struct Saver { 27002: Status* status; 27002: const LookupKey* key; 27002: bool* found_final_value; 27002: bool* merge_in_progress; 27002: std::string* value; 27002: PinnableWideColumns* columns; 27002: SequenceNumber seq; 27002: std::string* timestamp; 27002: const MergeOperator* merge_operator; 27002: 27002: MergeContext* merge_context; 27002: SequenceNumber max_covering_tombstone_seq; 27002: MemTable* mem; 27002: Logger* logger; 27002: Statistics* statistics; 27002: bool inplace_update_support; 27002: bool do_merge; 27002: SystemClock* clock; 27002: 27002: ReadCallback* callback_; 27002: bool* is_blob_index; 27002: bool allow_data_in_errors; 27002: size_t protection_bytes_per_key; 27002: bool CheckCallback(SequenceNumber _seq) { 27002: if (callback_) { 27002: return callback_->IsVisible(_seq); 27002: } 27002: return true; 27002: } 27002: }; 27002: } 27002: 27002: static bool SaveValue(void* arg, const char* entry) { 27002: rocksdb::SyncPoint::GetInstance()->Process("Memtable::SaveValue:Begin:entry", &entry); 27002: Saver* s = reinterpret_cast(arg); 27002: 27002: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: s != nullptr 27002: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "s != nullptr" 27002: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 922, __extension__ __PRETTY_FUNCTION__)) 27002: # 922 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: 27002: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: !s->value || !s->columns 27002: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "!s->value || !s->columns" 27002: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 923, __extension__ __PRETTY_FUNCTION__)) 27002: # 923 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: 27002: if (s->protection_bytes_per_key > 0) { 27002: *(s->status) = MemTable::VerifyEntryChecksum( 27002: entry, s->protection_bytes_per_key, s->allow_data_in_errors); 27002: if (!s->status->ok()) { 27002: rocksdb::Log(InfoLogLevel::ERROR_LEVEL, s->logger, ("[%s:" "929" "] " "In SaveValue: %s"), RocksLogShorterFileName("./db/memtable.cc"), s->status->getState()); 27002: 27002: return false; 27002: } 27002: } 27002: 27002: MergeContext* merge_context = s->merge_context; 27002: SequenceNumber max_covering_tombstone_seq = s->max_covering_tombstone_seq; 27002: const MergeOperator* merge_operator = s->merge_operator; 27002: 27002: 27002: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: merge_context != nullptr 27002: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "merge_context != nullptr" 27002: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 939, __extension__ __PRETTY_FUNCTION__)) 27002: # 939 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: 27002: 27002: 27002: uint32_t key_length = 0; 27002: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 27002: 27002: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: key_length >= 8 27002: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "key_length >= 8" 27002: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 945, __extension__ __PRETTY_FUNCTION__)) 27002: # 945 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: Slice user_key_slice = Slice(key_ptr, key_length - 8); 27002: const Comparator* user_comparator = 27002: s->mem->GetInternalKeyComparator().user_comparator(); 27002: size_t ts_sz = user_comparator->timestamp_size(); 27002: if (ts_sz && s->timestamp && max_covering_tombstone_seq > 0) { 27002: 27002: 27002: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: s->timestamp->size() == ts_sz 27002: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "s->timestamp->size() == ts_sz" 27002: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 952, __extension__ __PRETTY_FUNCTION__)) 27002: # 952 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: } 27002: if (user_comparator->EqualWithoutTimestamp(user_key_slice, 27002: s->key->user_key())) { 27002: 27002: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 27002: ValueType type; 27002: SequenceNumber seq; 27002: UnPackSequenceAndType(tag, &seq, &type); 27002: 27002: if (!s->CheckCallback(seq)) { 27002: return true; 27002: } 27002: 27002: if (s->seq == kMaxSequenceNumber) { 27002: s->seq = seq; 27002: if (s->seq > max_covering_tombstone_seq) { 27002: if (ts_sz && s->timestamp != nullptr) { 27002: 27002: 27002: 27002: 27002: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 27002: s->timestamp->assign(ts.data(), ts_sz); 27002: } 27002: } else { 27002: s->seq = max_covering_tombstone_seq; 27002: } 27002: } 27002: 27002: if (ts_sz > 0 && s->timestamp != nullptr) { 27002: if (!s->timestamp->empty()) { 27002: 27002: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ts_sz == s->timestamp->size() 27002: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "ts_sz == s->timestamp->size()" 27002: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 984, __extension__ __PRETTY_FUNCTION__)) 27002: # 984 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: } 27002: 27002: const std::string kMaxTs(ts_sz, '\xff'); 27002: if (s->timestamp->empty() || 27002: user_comparator->CompareTimestamp(*(s->timestamp), kMaxTs) == 0) { 27002: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 27002: s->timestamp->assign(ts.data(), ts_sz); 27002: } 27002: } 27002: 27002: if ((type == kTypeValue || type == kTypeMerge || type == kTypeBlobIndex || 27002: type == kTypeWideColumnEntity || type == kTypeDeletion || 27002: type == kTypeSingleDeletion || type == kTypeDeletionWithTimestamp) && 27002: max_covering_tombstone_seq > seq) { 27002: type = kTypeRangeDeletion; 27002: } 27002: switch (type) { 27002: case kTypeBlobIndex: { 27002: if (!s->do_merge) { 27002: *(s->status) = Status::NotSupported( 27002: "GetMergeOperands not supported by stacked BlobDB"); 27002: *(s->found_final_value) = true; 27002: return false; 27002: } 27002: 27002: if (*(s->merge_in_progress)) { 27002: *(s->status) = Status::NotSupported( 27002: "Merge operator not supported by stacked BlobDB"); 27002: *(s->found_final_value) = true; 27002: return false; 27002: } 27002: 27002: if (s->is_blob_index == nullptr) { 27002: rocksdb::Log(InfoLogLevel::ERROR_LEVEL, s->logger, ("[%s:" "1018" "] " "Encountered unexpected blob index."), RocksLogShorterFileName("./db/memtable.cc")); 27002: *(s->status) = Status::NotSupported( 27002: "Encountered unexpected blob index. Please open DB with " 27002: "ROCKSDB_NAMESPACE::blob_db::BlobDB."); 27002: *(s->found_final_value) = true; 27002: return false; 27002: } 27002: 27002: if (s->inplace_update_support) { 27002: s->mem->GetLock(s->key->user_key())->ReadLock(); 27002: } 27002: 27002: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 27002: 27002: *(s->status) = Status::OK(); 27002: 27002: if (s->value) { 27002: s->value->assign(v.data(), v.size()); 27002: } else if (s->columns) { 27002: s->columns->SetPlainValue(v); 27002: } 27002: 27002: if (s->inplace_update_support) { 27002: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 27002: } 27002: 27002: *(s->found_final_value) = true; 27002: *(s->is_blob_index) = true; 27002: 27002: return false; 27002: } 27002: case kTypeValue: { 27002: if (s->inplace_update_support) { 27002: s->mem->GetLock(s->key->user_key())->ReadLock(); 27002: } 27002: 27002: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 27002: 27002: *(s->status) = Status::OK(); 27002: 27002: if (!s->do_merge) { 27002: 27002: 27002: 27002: merge_context->PushOperand( 27002: v, s->inplace_update_support == false ); 27002: } else if (*(s->merge_in_progress)) { 27002: 27002: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: s->do_merge 27002: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "s->do_merge" 27002: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 1065, __extension__ __PRETTY_FUNCTION__)) 27002: # 1065 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: 27002: if (s->value || s->columns) { 27002: std::string result; 27002: *(s->status) = MergeHelper::TimedFullMerge( 27002: merge_operator, s->key->user_key(), &v, 27002: merge_context->GetOperands(), &result, s->logger, s->statistics, 27002: s->clock, nullptr , true); 27002: 27002: if (s->status->ok()) { 27002: if (s->value) { 27002: *(s->value) = std::move(result); 27002: } else { 27002: 27002: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: s->columns 27002: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "s->columns" 27002: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 1078, __extension__ __PRETTY_FUNCTION__)) 27002: # 1078 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: s->columns->SetPlainValue(result); 27002: } 27002: } 27002: } 27002: } else if (s->value) { 27002: s->value->assign(v.data(), v.size()); 27002: } else if (s->columns) { 27002: s->columns->SetPlainValue(v); 27002: } 27002: 27002: if (s->inplace_update_support) { 27002: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 27002: } 27002: 27002: *(s->found_final_value) = true; 27002: 27002: if (s->is_blob_index != nullptr) { 27002: *(s->is_blob_index) = false; 27002: } 27002: 27002: return false; 27002: } 27002: case kTypeWideColumnEntity: { 27002: if (!s->do_merge) { 27002: *(s->status) = Status::NotSupported( 27002: "GetMergeOperands not supported for wide-column entities"); 27002: *(s->found_final_value) = true; 27002: return false; 27002: } 27002: 27002: if (*(s->merge_in_progress)) { 27002: *(s->status) = Status::NotSupported( 27002: "Merge not supported for wide-column entities"); 27002: *(s->found_final_value) = true; 27002: return false; 27002: } 27002: 27002: if (s->inplace_update_support) { 27002: s->mem->GetLock(s->key->user_key())->ReadLock(); 27002: } 27002: 27002: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 27002: 27002: *(s->status) = Status::OK(); 27002: 27002: if (s->value) { 27002: Slice value_of_default; 27002: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 27002: v, value_of_default); 27002: if (s->status->ok()) { 27002: s->value->assign(value_of_default.data(), value_of_default.size()); 27002: } 27002: } else if (s->columns) { 27002: *(s->status) = s->columns->SetWideColumnValue(v); 27002: } 27002: 27002: if (s->inplace_update_support) { 27002: s->mem->GetLock(s->key->user_key())->ReadUnlock(); 27002: } 27002: 27002: *(s->found_final_value) = true; 27002: 27002: if (s->is_blob_index != nullptr) { 27002: *(s->is_blob_index) = false; 27002: } 27002: 27002: return false; 27002: } 27002: case kTypeDeletion: 27002: case kTypeDeletionWithTimestamp: 27002: case kTypeSingleDeletion: 27002: case kTypeRangeDeletion: { 27002: if (*(s->merge_in_progress)) { 27002: if (s->value != nullptr) { 27002: *(s->status) = MergeHelper::TimedFullMerge( 27002: merge_operator, s->key->user_key(), nullptr, 27002: merge_context->GetOperands(), s->value, s->logger, 27002: s->statistics, s->clock, nullptr , true); 27002: } 27002: } else { 27002: *(s->status) = Status::NotFound(); 27002: } 27002: *(s->found_final_value) = true; 27002: return false; 27002: } 27002: case kTypeMerge: { 27002: if (!merge_operator) { 27002: *(s->status) = Status::InvalidArgument( 27002: "merge_operator is not properly initialized."); 27002: 27002: 27002: 27002: 27002: *(s->found_final_value) = true; 27002: return false; 27002: } 27002: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 27002: *(s->merge_in_progress) = true; 27002: merge_context->PushOperand( 27002: v, s->inplace_update_support == false ); 27002: if (s->do_merge && merge_operator->ShouldMerge( 27002: merge_context->GetOperandsDirectionBackward())) { 27002: *(s->status) = MergeHelper::TimedFullMerge( 27002: merge_operator, s->key->user_key(), nullptr, 27002: merge_context->GetOperands(), s->value, s->logger, s->statistics, 27002: s->clock, nullptr , true); 27002: *(s->found_final_value) = true; 27002: return false; 27002: } 27002: return true; 27002: } 27002: default: { 27002: std::string msg("Corrupted value not expected."); 27002: if (s->allow_data_in_errors) { 27002: msg.append("Unrecognized value type: " + 27002: std::to_string(static_cast(type)) + ". "); 27002: msg.append("User key: " + user_key_slice.ToString( true) + 27002: ". "); 27002: msg.append("seq: " + std::to_string(seq) + "."); 27002: } 27002: *(s->status) = Status::Corruption(msg.c_str()); 27002: return false; 27002: } 27002: } 27002: } 27002: 27002: 27002: return false; 27002: } 27002: 27002: bool MemTable::Get(const LookupKey& key, std::string* value, 27002: PinnableWideColumns* columns, std::string* timestamp, 27002: Status* s, MergeContext* merge_context, 27002: SequenceNumber* max_covering_tombstone_seq, 27002: SequenceNumber* seq, const ReadOptions& read_opts, 27002: bool immutable_memtable, ReadCallback* callback, 27002: bool* is_blob_index, bool do_merge) { 27002: 27002: if (IsEmpty()) { 27002: 27002: return false; 27002: } 27002: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 27002: 27002: std::unique_ptr range_del_iter( 27002: NewRangeTombstoneIterator(read_opts, 27002: GetInternalKeySeqno(key.internal_key()), 27002: immutable_memtable)); 27002: if (range_del_iter != nullptr) { 27002: SequenceNumber covering_seq = 27002: range_del_iter->MaxCoveringTombstoneSeqnum(key.user_key()); 27002: if (covering_seq > *max_covering_tombstone_seq) { 27002: *max_covering_tombstone_seq = covering_seq; 27002: if (timestamp) { 27002: 27002: 27002: timestamp->assign(range_del_iter->timestamp().data(), 27002: range_del_iter->timestamp().size()); 27002: } 27002: } 27002: } 27002: 27002: bool found_final_value = false; 27002: bool merge_in_progress = s->IsMergeInProgress(); 27002: bool may_contain = true; 27002: size_t ts_sz = GetInternalKeyComparator().user_comparator()->timestamp_size(); 27002: Slice user_key_without_ts = StripTimestampFromUserKey(key.user_key(), ts_sz); 27002: bool bloom_checked = false; 27002: if (bloom_filter_) { 27002: 27002: 27002: if (moptions_.memtable_whole_key_filtering) { 27002: may_contain = bloom_filter_->MayContain(user_key_without_ts); 27002: bloom_checked = true; 27002: } else { 27002: 27002: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: prefix_extractor_ 27002: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "prefix_extractor_" 27002: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 1254, __extension__ __PRETTY_FUNCTION__)) 27002: # 1254 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: if (prefix_extractor_->InDomain(user_key_without_ts)) { 27002: may_contain = bloom_filter_->MayContain( 27002: prefix_extractor_->Transform(user_key_without_ts)); 27002: bloom_checked = true; 27002: } 27002: } 27002: } 27002: 27002: if (bloom_filter_ && !may_contain) { 27002: 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 27002: *seq = kMaxSequenceNumber; 27002: } else { 27002: if (bloom_checked) { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 27002: } 27002: GetFromTable(key, *max_covering_tombstone_seq, do_merge, callback, 27002: is_blob_index, value, columns, timestamp, s, merge_context, 27002: seq, &found_final_value, &merge_in_progress); 27002: } 27002: 27002: 27002: 27002: if (!found_final_value && merge_in_progress && !s->IsCorruption()) { 27002: *s = Status::MergeInProgress(); 27002: } 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; }; 27002: return found_final_value; 27002: } 27002: 27002: void MemTable::GetFromTable(const LookupKey& key, 27002: SequenceNumber max_covering_tombstone_seq, 27002: bool do_merge, ReadCallback* callback, 27002: bool* is_blob_index, std::string* value, 27002: PinnableWideColumns* columns, 27002: std::string* timestamp, Status* s, 27002: MergeContext* merge_context, SequenceNumber* seq, 27002: bool* found_final_value, bool* merge_in_progress) { 27002: Saver saver; 27002: saver.status = s; 27002: saver.found_final_value = found_final_value; 27002: saver.merge_in_progress = merge_in_progress; 27002: saver.key = &key; 27002: saver.value = value; 27002: saver.columns = columns; 27002: saver.timestamp = timestamp; 27002: saver.seq = kMaxSequenceNumber; 27002: saver.mem = this; 27002: saver.merge_context = merge_context; 27002: saver.max_covering_tombstone_seq = max_covering_tombstone_seq; 27002: saver.merge_operator = moptions_.merge_operator; 27002: saver.logger = moptions_.info_log; 27002: saver.inplace_update_support = moptions_.inplace_update_support; 27002: saver.statistics = moptions_.statistics; 27002: saver.clock = clock_; 27002: saver.callback_ = callback; 27002: saver.is_blob_index = is_blob_index; 27002: saver.do_merge = do_merge; 27002: saver.allow_data_in_errors = moptions_.allow_data_in_errors; 27002: saver.protection_bytes_per_key = moptions_.protection_bytes_per_key; 27002: table_->Get(key, &saver, SaveValue); 27002: *seq = saver.seq; 27002: } 27002: 27002: void MemTable::MultiGet(const ReadOptions& read_options, MultiGetRange* range, 27002: ReadCallback* callback, bool immutable_memtable) { 27002: 27002: if (IsEmpty()) { 27002: 27002: return; 27002: } 27002: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 27002: 27002: 27002: 27002: 27002: bool no_range_del = read_options.ignore_range_deletions || 27002: is_range_del_table_empty_.load(std::memory_order_relaxed); 27002: MultiGetRange temp_range(*range, range->begin(), range->end()); 27002: if (bloom_filter_ && no_range_del) { 27002: bool whole_key = 27002: !prefix_extractor_ || moptions_.memtable_whole_key_filtering; 27002: std::array bloom_keys; 27002: std::array may_match; 27002: std::array range_indexes; 27002: int num_keys = 0; 27002: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 27002: if (whole_key) { 27002: bloom_keys[num_keys] = iter->ukey_without_ts; 27002: range_indexes[num_keys++] = iter.index(); 27002: } else if (prefix_extractor_->InDomain(iter->ukey_without_ts)) { 27002: bloom_keys[num_keys] = 27002: prefix_extractor_->Transform(iter->ukey_without_ts); 27002: range_indexes[num_keys++] = iter.index(); 27002: } 27002: } 27002: bloom_filter_->MayContain(num_keys, &bloom_keys[0], &may_match[0]); 27002: for (int i = 0; i < num_keys; ++i) { 27002: if (!may_match[i]) { 27002: temp_range.SkipIndex(range_indexes[i]); 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; }; 27002: } else { 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; }; 27002: } 27002: } 27002: } 27002: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 27002: bool found_final_value{false}; 27002: bool merge_in_progress = iter->s->IsMergeInProgress(); 27002: if (!no_range_del) { 27002: std::unique_ptr range_del_iter( 27002: NewRangeTombstoneIteratorInternal( 27002: read_options, GetInternalKeySeqno(iter->lkey->internal_key()), 27002: immutable_memtable)); 27002: SequenceNumber covering_seq = 27002: range_del_iter->MaxCoveringTombstoneSeqnum(iter->lkey->user_key()); 27002: if (covering_seq > iter->max_covering_tombstone_seq) { 27002: iter->max_covering_tombstone_seq = covering_seq; 27002: if (iter->timestamp) { 27002: 27002: 27002: iter->timestamp->assign(range_del_iter->timestamp().data(), 27002: range_del_iter->timestamp().size()); 27002: } 27002: } 27002: } 27002: SequenceNumber dummy_seq; 27002: GetFromTable(*(iter->lkey), iter->max_covering_tombstone_seq, true, 27002: callback, &iter->is_blob_index, iter->value->GetSelf(), 27002: nullptr, iter->timestamp, iter->s, 27002: &(iter->merge_context), &dummy_seq, &found_final_value, 27002: &merge_in_progress); 27002: 27002: if (!found_final_value && merge_in_progress) { 27002: *(iter->s) = Status::MergeInProgress(); 27002: } 27002: 27002: if (found_final_value) { 27002: iter->value->PinSelf(); 27002: range->AddValueSize(iter->value->size()); 27002: range->MarkKeyDone(iter); 27002: RecordTick(moptions_.statistics, MEMTABLE_HIT); 27002: if (range->GetValueSize() > read_options.value_size_soft_limit) { 27002: 27002: for (auto range_iter = range->begin(); range_iter != range->end(); 27002: ++range_iter) { 27002: range->MarkKeyDone(range_iter); 27002: *(range_iter->s) = Status::Aborted(); 27002: } 27002: break; 27002: } 27002: } 27002: } 27002: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; }; 27002: } 27002: 27002: Status MemTable::Update(SequenceNumber seq, ValueType value_type, 27002: const Slice& key, const Slice& value, 27002: const ProtectionInfoKVOS64* kv_prot_info) { 27002: LookupKey lkey(key, seq); 27002: Slice mem_key = lkey.memtable_key(); 27002: 27002: std::unique_ptr iter( 27002: table_->GetDynamicPrefixIterator()); 27002: iter->Seek(lkey.internal_key(), mem_key.data()); 27002: 27002: if (iter->Valid()) { 27002: 27002: 27002: 27002: 27002: const char* entry = iter->key(); 27002: uint32_t key_length = 0; 27002: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 27002: if (comparator_.comparator.user_comparator()->Equal( 27002: Slice(key_ptr, key_length - 8), lkey.user_key())) { 27002: 27002: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 27002: ValueType type; 27002: SequenceNumber existing_seq; 27002: UnPackSequenceAndType(tag, &existing_seq, &type); 27002: 27002: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: existing_seq != seq 27002: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "existing_seq != seq" 27002: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 1436, __extension__ __PRETTY_FUNCTION__)) 27002: # 1436 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: if (type == value_type) { 27002: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 27002: uint32_t prev_size = static_cast(prev_value.size()); 27002: uint32_t new_size = static_cast(value.size()); 27002: 27002: 27002: if (new_size <= prev_size) { 27002: char* p = 27002: EncodeVarint32(const_cast(key_ptr) + key_length, new_size); 27002: WriteLock wl(GetLock(lkey.user_key())); 27002: memcpy(p, value.data(), value.size()); 27002: 27002: # 1448 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 1448 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: (unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size()) 27002: # 1448 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1448 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "(unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size())" 27002: # 1448 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 1448, __extension__ __PRETTY_FUNCTION__)) 27002: 27002: 27002: # 1450 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 27002: if (kv_prot_info != nullptr) { 27002: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 27002: 27002: updated_kv_prot_info.UpdateS(seq, existing_seq); 27002: UpdateEntryChecksum(&updated_kv_prot_info, key, value, type, 27002: existing_seq, p + value.size()); 27002: Slice encoded(entry, p + value.size() - entry); 27002: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 27002: } else { 27002: UpdateEntryChecksum(nullptr, key, value, type, existing_seq, 27002: p + value.size()); 27002: } 27002: return Status::OK(); 27002: } 27002: } 27002: } 27002: } 27002: 27002: 27002: return Add(seq, value_type, key, value, kv_prot_info); 27002: } 27002: 27002: Status MemTable::UpdateCallback(SequenceNumber seq, const Slice& key, 27002: const Slice& delta, 27002: const ProtectionInfoKVOS64* kv_prot_info) { 27002: LookupKey lkey(key, seq); 27002: Slice memkey = lkey.memtable_key(); 27002: 27002: std::unique_ptr iter( 27002: table_->GetDynamicPrefixIterator()); 27002: iter->Seek(lkey.internal_key(), memkey.data()); 27002: 27002: if (iter->Valid()) { 27002: 27002: 27002: 27002: 27002: const char* entry = iter->key(); 27002: uint32_t key_length = 0; 27002: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 27002: if (comparator_.comparator.user_comparator()->Equal( 27002: Slice(key_ptr, key_length - 8), lkey.user_key())) { 27002: 27002: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 27002: ValueType type; 27002: uint64_t existing_seq; 27002: UnPackSequenceAndType(tag, &existing_seq, &type); 27002: if (type == kTypeValue) { 27002: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 27002: uint32_t prev_size = static_cast(prev_value.size()); 27002: 27002: char* prev_buffer = const_cast(prev_value.data()); 27002: uint32_t new_prev_size = prev_size; 27002: 27002: std::string str_value; 27002: WriteLock wl(GetLock(lkey.user_key())); 27002: auto status = moptions_.inplace_callback(prev_buffer, &new_prev_size, 27002: delta, &str_value); 27002: if (status == UpdateStatus::UPDATED_INPLACE) { 27002: 27002: 27002: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: new_prev_size <= prev_size 27002: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "new_prev_size <= prev_size" 27002: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 1512, __extension__ __PRETTY_FUNCTION__)) 27002: # 1512 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: if (new_prev_size < prev_size) { 27002: 27002: char* p = EncodeVarint32(const_cast(key_ptr) + key_length, 27002: new_prev_size); 27002: if (VarintLength(new_prev_size) < VarintLength(prev_size)) { 27002: 27002: memcpy(p, prev_buffer, new_prev_size); 27002: prev_buffer = p; 27002: } 27002: } 27002: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 27002: UpdateFlushState(); 27002: Slice new_value(prev_buffer, new_prev_size); 27002: if (kv_prot_info != nullptr) { 27002: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 27002: 27002: updated_kv_prot_info.UpdateS(seq, existing_seq); 27002: updated_kv_prot_info.UpdateV(delta, new_value); 27002: Slice encoded(entry, prev_buffer + new_prev_size - entry); 27002: UpdateEntryChecksum(&updated_kv_prot_info, key, new_value, type, 27002: existing_seq, prev_buffer + new_prev_size); 27002: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 27002: } else { 27002: UpdateEntryChecksum(nullptr, key, new_value, type, existing_seq, 27002: prev_buffer + new_prev_size); 27002: } 27002: return Status::OK(); 27002: } else if (status == UpdateStatus::UPDATED) { 27002: Status s; 27002: if (kv_prot_info != nullptr) { 27002: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 27002: updated_kv_prot_info.UpdateV(delta, str_value); 27002: s = Add(seq, kTypeValue, key, Slice(str_value), 27002: &updated_kv_prot_info); 27002: } else { 27002: s = Add(seq, kTypeValue, key, Slice(str_value), 27002: nullptr ); 27002: } 27002: RecordTick(moptions_.statistics, NUMBER_KEYS_WRITTEN); 27002: UpdateFlushState(); 27002: return s; 27002: } else if (status == UpdateStatus::UPDATE_FAILED) { 27002: 27002: 27002: UpdateFlushState(); 27002: return Status::OK(); 27002: } 27002: } 27002: } 27002: } 27002: 27002: return Status::NotFound(); 27002: } 27002: 27002: size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key) { 27002: Slice memkey = key.memtable_key(); 27002: 27002: 27002: 27002: 27002: std::unique_ptr iter( 27002: table_->GetDynamicPrefixIterator()); 27002: iter->Seek(key.internal_key(), memkey.data()); 27002: 27002: size_t num_successive_merges = 0; 27002: 27002: for (; iter->Valid(); iter->Next()) { 27002: const char* entry = iter->key(); 27002: uint32_t key_length = 0; 27002: const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 27002: if (!comparator_.comparator.user_comparator()->Equal( 27002: Slice(iter_key_ptr, key_length - 8), key.user_key())) { 27002: break; 27002: } 27002: 27002: const uint64_t tag = DecodeFixed64(iter_key_ptr + key_length - 8); 27002: ValueType type; 27002: uint64_t unused; 27002: UnPackSequenceAndType(tag, &unused, &type); 27002: if (type != kTypeMerge) { 27002: break; 27002: } 27002: 27002: ++num_successive_merges; 27002: } 27002: 27002: return num_successive_merges; 27002: } 27002: 27002: void MemTableRep::Get(const LookupKey& k, void* callback_args, 27002: bool (*callback_func)(void* arg, const char* entry)) { 27002: auto iter = GetDynamicPrefixIterator(); 27002: for (iter->Seek(k.internal_key(), k.memtable_key().data()); 27002: iter->Valid() && callback_func(callback_args, iter->key()); 27002: iter->Next()) { 27002: } 27002: } 27002: 27002: void MemTable::RefLogContainingPrepSection(uint64_t log) { 27002: 27002: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: (static_cast ( 27002: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: log > 0 27002: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: ) ? void (0) : __assert_fail ( 27002: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: "log > 0" 27002: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 3 4 27002: , "./db/memtable.cc", 1612, __extension__ __PRETTY_FUNCTION__)) 27002: # 1612 "/build/reproducible-path/rocksdb-7.8.3/db/memtable.cc" 27002: ; 27002: auto cur = min_prep_log_referenced_.load(); 27002: while ((log < cur || cur == 0) && 27002: !min_prep_log_referenced_.compare_exchange_strong(cur, log)) { 27002: cur = min_prep_log_referenced_.load(); 27002: } 27002: } 27002: 27002: uint64_t MemTable::GetMinLogContainingPrepSection() { 27002: return min_prep_log_referenced_.load(); 27002: } 27002: 27002: } === END GCC DUMP === make[3]: *** [CMakeFiles/rocksdb-shared.dir/build.make:1045: CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from /usr/include/c++/12/vector:70, from /build/reproducible-path/rocksdb-7.8.3/db/builder.h:11, from /build/reproducible-path/rocksdb-7.8.3/db/repair.cc:66: /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:63: /usr/include/c++/12/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++/12/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++/12/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++/12/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++/12/bits/stl_uninitialized.h:372: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++/12/bits/stl_vector.h:1617: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++/12/bits/vector.tcc:232:44: /usr/include/c++/12/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++/12/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++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h:450:8: /usr/include/c++/12/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++/12/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++/12/bits/stl_uninitialized.h:372:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/12/bits/stl_vector.h:601:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-7.8.3/include/rocksdb/options.h:65:8: /usr/include/c++/12/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int&, unsigned int, int}; _Tp = rocksdb::FileDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 /usr/include/c++/12/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const rocksdb::FileDescriptor&}; _Tp = rocksdb::FileDescriptor; _Alloc = std::allocator]': /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /usr/include/c++/12/vector:64: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = rocksdb::FileDescriptor; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::ConvertLogToTable(const std::string&, uint64_t)' at /build/reproducible-path/rocksdb-7.8.3/db/repair.cc:471:31: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::FindFiles()' at /build/reproducible-path/rocksdb-7.8.3/db/repair.cc:315:30, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/repair.cc:195:23: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int&, unsigned int, int}; _Tp = rocksdb::FileDescriptor; _Alloc = std::allocator]', inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::FindFiles()' at /build/reproducible-path/rocksdb-7.8.3/db/repair.cc:317:38, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/repair.cc:195:23: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, rocksdb::FileMetaData}; _Tp = std::pair; _Alloc = std::allocator >]', inlined from 'void rocksdb::VersionEdit::AddFile(int, uint64_t, uint32_t, uint64_t, const rocksdb::InternalKey&, const rocksdb::InternalKey&, const rocksdb::SequenceNumber&, const rocksdb::SequenceNumber&, bool, rocksdb::Temperature, uint64_t, uint64_t, uint64_t, const std::string&, const std::string&, const rocksdb::UniqueId64x2&)' at /build/reproducible-path/rocksdb-7.8.3/db/version_edit.h:431:28, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::AddTables()' at /build/reproducible-path/rocksdb-7.8.3/db/repair.cc:650:21, inlined from 'rocksdb::Status rocksdb::{anonymous}::Repairer::Run()' at /build/reproducible-path/rocksdb-7.8.3/db/repair.cc:224:25: /usr/include/c++/12/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' make[2]: *** [CMakeFiles/Makefile2:202: CMakeFiles/rocksdb-shared.dir/all] Error 2 make[2]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' make[1]: *** [Makefile:139: all] Error 2 make[1]: Leaving directory '/build/reproducible-path/rocksdb-7.8.3/obj-arm-linux-gnueabihf' dh_auto_build: error: cd obj-arm-linux-gnueabihf && make -j3 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2 make: *** [debian/rules:51: build] Error 25 dpkg-buildpackage: error: debian/rules build 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/22959 and its subdirectories